marketplacepos 26.40.7 → 26.40.8

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 (65) hide show
  1. package/Marketplace/{chunk-BCQBJKMO.js → chunk-3BU5F73V.js} +1 -1
  2. package/Marketplace/{chunk-KAXLULSL.js → chunk-4FOIA62W.js} +1 -1
  3. package/Marketplace/{chunk-NBCLCR62.js → chunk-4LUKCRLU.js} +1 -1
  4. package/Marketplace/{chunk-7CP3OSKC.js → chunk-4XNPUIUH.js} +1 -1
  5. package/Marketplace/{chunk-3FZB2PN2.js → chunk-5J5ZZDDO.js} +1 -1
  6. package/Marketplace/{chunk-U5AEON4A.js → chunk-5NVINBUN.js} +1 -1
  7. package/Marketplace/{chunk-NV26AQKT.js → chunk-6GRJEBZS.js} +1 -1
  8. package/Marketplace/{chunk-ZCXTH7QS.js → chunk-6MTRE22X.js} +1 -1
  9. package/Marketplace/{chunk-AUXH37N2.js → chunk-73GAA2GS.js} +1 -1
  10. package/Marketplace/{chunk-Y3MKFFH7.js → chunk-AF2EL3VP.js} +1 -1
  11. package/Marketplace/{chunk-SKBVCSWP.js → chunk-AFLAEWB5.js} +1 -1
  12. package/Marketplace/{chunk-7KLEPZXV.js → chunk-AW4UMRM6.js} +1 -1
  13. package/Marketplace/{chunk-VMCRPVYZ.js → chunk-BAU65KN4.js} +1 -1
  14. package/Marketplace/{chunk-GPIOS33D.js → chunk-BEXPPIK7.js} +1 -1
  15. package/Marketplace/{chunk-GVMGR2ZA.js → chunk-BY4CLTOZ.js} +1 -1
  16. package/Marketplace/{chunk-WXMGMMQ7.js → chunk-CWMEJMW4.js} +1 -1
  17. package/Marketplace/{chunk-ZTQXHQDN.js → chunk-D7RVGS52.js} +1 -1
  18. package/Marketplace/{chunk-FFMRENF3.js → chunk-DFX6RIJF.js} +1 -1
  19. package/Marketplace/{chunk-LLVIGYHI.js → chunk-E3OPTOBL.js} +1 -1
  20. package/Marketplace/{chunk-2AJUUZFF.js → chunk-ELVTO3I5.js} +1 -1
  21. package/Marketplace/chunk-EU7QQ5DB.js +3 -0
  22. package/Marketplace/{chunk-O4ISYWXL.js → chunk-EUQV2MQN.js} +1 -1
  23. package/Marketplace/{chunk-IFVVM2VT.js → chunk-EZOJIVRV.js} +1 -1
  24. package/Marketplace/{chunk-FY5KUYKR.js → chunk-F32CMMGC.js} +1 -1
  25. package/Marketplace/{chunk-4PDUAO6G.js → chunk-FBKY3A2B.js} +1 -1
  26. package/Marketplace/{chunk-4WHUSUHN.js → chunk-HVN7EMNG.js} +1 -1
  27. package/Marketplace/{chunk-V3VWDNJC.js → chunk-IEK26S7T.js} +1 -1
  28. package/Marketplace/{chunk-CVHWI4PB.js → chunk-IIOFKX5I.js} +1 -1
  29. package/Marketplace/{chunk-RRGKG4PE.js → chunk-IYVLYZ7G.js} +1 -1
  30. package/Marketplace/{chunk-5IZXGEQ4.js → chunk-KX4MJYTR.js} +1 -1
  31. package/Marketplace/{chunk-PD4C3QPZ.js → chunk-LNRINQ7X.js} +1 -1
  32. package/Marketplace/{chunk-ME36VSK5.js → chunk-MVBKTYGV.js} +1 -1
  33. package/Marketplace/{chunk-NPDKHBFY.js → chunk-NGOBXPJI.js} +1 -1
  34. package/Marketplace/{chunk-AKAGLFPT.js → chunk-NTOLBA75.js} +1 -1
  35. package/Marketplace/{chunk-JI4ELPJW.js → chunk-P4GP42TS.js} +1 -1
  36. package/Marketplace/{chunk-TPKSZN3I.js → chunk-PCAUPISK.js} +1 -1
  37. package/Marketplace/{chunk-OEEQLKK3.js → chunk-PEBZF2VL.js} +1 -1
  38. package/Marketplace/{chunk-7MDPZ4NX.js → chunk-PKA5HSWC.js} +1 -1
  39. package/Marketplace/{chunk-2FMM7PY4.js → chunk-QFEBXATF.js} +1 -1
  40. package/Marketplace/{chunk-2CWB26KO.js → chunk-QN2XB2TS.js} +1 -1
  41. package/Marketplace/{chunk-RR577B2W.js → chunk-S3FKNPUT.js} +1 -1
  42. package/Marketplace/{chunk-MWRLHBU6.js → chunk-SD2GVUJO.js} +1 -1
  43. package/Marketplace/{chunk-W5AL5H2N.js → chunk-SQAFBHTZ.js} +1 -1
  44. package/Marketplace/{chunk-622ZBEQT.js → chunk-SSUZ7WMI.js} +1 -1
  45. package/Marketplace/{chunk-L4LHOLTA.js → chunk-SXQNXQPV.js} +1 -1
  46. package/Marketplace/{chunk-DBIUPORL.js → chunk-T7XQ4WN5.js} +1 -1
  47. package/Marketplace/{chunk-7IJKOBQA.js → chunk-TCJ4TP64.js} +1 -1
  48. package/Marketplace/{chunk-VPQODBWR.js → chunk-TEMYZMY7.js} +1 -1
  49. package/Marketplace/{chunk-TE3BD5FH.js → chunk-TORGTLNM.js} +1 -1
  50. package/Marketplace/{chunk-VAHROJZ6.js → chunk-TOUNXTBL.js} +1 -1
  51. package/Marketplace/{chunk-4SN2PPHZ.js → chunk-UE77KS2V.js} +1 -1
  52. package/Marketplace/{chunk-PWHANPEF.js → chunk-URTVCWVT.js} +1 -1
  53. package/Marketplace/{chunk-JOSLTOJC.js → chunk-VHYQLZK3.js} +1 -1
  54. package/Marketplace/{chunk-VTTAWWRF.js → chunk-VS4EFXCJ.js} +1 -1
  55. package/Marketplace/{chunk-JMJSZXTK.js → chunk-VVTZ4GFI.js} +1 -1
  56. package/Marketplace/{chunk-52QY5PZN.js → chunk-XCY4ZMNE.js} +1 -1
  57. package/Marketplace/{chunk-VHUA5GCZ.js → chunk-XUEJETYQ.js} +1 -1
  58. package/Marketplace/{chunk-WBWFCMGS.js → chunk-YC4GUJYZ.js} +1 -1
  59. package/Marketplace/{chunk-LWYLAWMC.js → chunk-YCRPKXVR.js} +1 -1
  60. package/Marketplace/{chunk-WZWJUDC6.js → chunk-ZH4MZ5FW.js} +2 -2
  61. package/Marketplace/{chunk-CIWMBRWY.js → chunk-ZHYM7IH4.js} +2 -2
  62. package/Marketplace/index.html +2 -2
  63. package/Marketplace/{main-7PHXN73B.js → main-MFBXP6Z7.js} +2 -2
  64. package/package.json +1 -1
  65. package/Marketplace/chunk-BWF252DC.js +0 -3
@@ -1,3 +1,3 @@
1
- import{a as z,b as q,c as J,d as K,e as Q,f as X}from"./chunk-UASBQJZD.js";import{b as G}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import"./chunk-GAI4CMX3.js";import"./chunk-NCZ46DU6.js";import"./chunk-JYH45M2L.js";import"./chunk-SOTWA42R.js";import"./chunk-3OTK6GG2.js";import"./chunk-KFJBIBDQ.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import{f as F}from"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import{c as H,h as $,m as W,z as j}from"./chunk-7HUEGPJN.js";import{e as A}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{$b as E,Aa as g,Dc as w,Eb as x,Ec as P,Ic as l,Jc as R,Vc as V,Xb as y,Zb as v,ac as N,bc as T,ca as I,cb as B,cc as m,dc as o,ec as r,fc as h,gb as p,gc as C,ha as b,hc as S,ic as M,mc as _,nc as L,oa as d,pa as u,rc as f,rd as O,sd as U,tc as c,yb as D}from"./chunk-5VYDZBNH.js";import{a as k}from"./chunk-QWWW7GFA.js";var Z=(()=>{class e{constructor(){this.httpService=b(A)}download(t){return this.httpService.post("/api/Product/downloadurl",t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ne(e,s){if(e&1&&(C(0,"th"),l(1),S()),e&2){let t=s.$implicit;p(),R(t.column)}}function ie(e,s){if(e&1&&(C(0,"td"),M(1,"span",4),S()),e&2){let t=s.$implicit,n=c().$implicit;p(),L("innerHTML",n[t.prop],B)}}function oe(e,s){if(e&1&&(C(0,"tr"),N(1,ie,2,1,"td",null,E),S()),e&2){let t=s.$implicit,n=c();P("background-color",t.Status>200?"#F4D6D5":"#DEE9C9"),p(),T(n.configs())}}var ee=(()=>{class e{constructor(){this.configs=U([]),this.data=U([]),this.status=U(void 0),this.eventClose=O({alias:"onClose"})}onClose(){this.eventClose.emit()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=D({type:e,selectors:[["app-response-api-list"]],inputs:{configs:[1,"configs"],data:[1,"data"],status:[1,"status"]},outputs:{eventClose:"onClose"},decls:9,vars:0,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[3,"background-color"],[3,"innerHTML"]],template:function(n,i){n&1&&(C(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),N(4,ne,2,1,"th",null,E),S()(),C(6,"tbody"),N(7,oe,3,2,"tr",3,E),S()()()),n&2&&(p(4),T(i.configs()),p(3),T(i.data()))},encapsulation:2,changeDetection:0})}}return e})();function re(e,s){if(e&1){let t=_();o(0,"button",17),f("click",function(){d(t);let i=c(),a=w(11);return u(i.onNewStepperState(a))}),h(1,"i",18),l(2," New "),r()}}function ae(e,s){if(e&1){let t=_();o(0,"button",17),f("click",function(){d(t),c();let i=w(11);return u(i.previous())}),l(1," Back "),r()}}function le(e,s){if(e&1){let t=_();o(0,"button",19),f("click",function(){d(t);let i=c(),a=w(11);return u(i.onStepperNext(a))}),l(1," Next "),r()}}function se(e,s){if(e&1){let t=_();o(0,"button",20),f("click",function(){d(t);let i=c(),a=w(11);return u(i.onSubmit(a))}),l(1," Download "),r()}if(e&2){let t=c();m("disabled",!t.urls)}}function pe(e,s){e&1&&(h(0,"i",21),o(1,"span"),l(2,"Instruction"),r())}function ce(e,s){e&1&&(o(0,"div",22)(1,"div",23)(2,"div",24)(3,"h4",25),l(4,"Note"),r()(),o(5,"div",26)(6,"ol",27)(7,"li"),l(8," Use this form to Download Products from Tokopedia using product URL "),r(),o(9,"li"),l(10," Copy Product URL from "),o(11,"a",28),l(12,"https://seller.tokopedia.com/ "),r(),l(13," and paste in this form "),r(),o(14,"li"),l(15," Use New Line when you want to input several product URLs "),r()()()()())}function me(e,s){e&1&&(h(0,"i",29),o(1,"span"),l(2,"Download"),r())}function de(e,s){if(e&1){let t=_();o(0,"div",22)(1,"textarea",30),f("ngModelChange",function(i){d(t);let a=c();return u(a.urls.set(i))}),r()()}if(e&2){let t=c();p(),m("placeholder",t.urlPlaceholder())("ngModel",t.urls())}}function ue(e,s){e&1&&(h(0,"i",31),o(1,"span"),l(2,"Finish"),r())}function _e(e,s){if(e&1&&(o(0,"div",22),h(1,"app-response-api-list",32),r()),e&2){let t=c();p(),m("data",t.downloadResponses())("configs",t.configs)}}function fe(e,s){e&1&&(o(0,"h6"),l(1,"1"),r())}function ge(e,s){e&1&&(o(0,"h6"),l(1,"2"),r())}function he(e,s){e&1&&(o(0,"h6"),l(1,"3"),r())}var Fe=(()=>{class e{constructor(){this.downloadService=b(Z),this.authService=b(F),this.urls=g(null),this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=g([]),this.stepperState=g("DOWNLOAD"),this.urlPlaceholder=g(`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
1
+ import{a as z,b as q,c as J,d as K,e as Q,f as X}from"./chunk-UASBQJZD.js";import{b as G}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import"./chunk-GAI4CMX3.js";import"./chunk-NCZ46DU6.js";import"./chunk-JYH45M2L.js";import"./chunk-SOTWA42R.js";import"./chunk-3OTK6GG2.js";import"./chunk-KFJBIBDQ.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import{f as F}from"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import{c as H,h as $,m as W,z as j}from"./chunk-7HUEGPJN.js";import{e as A}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{$b as E,Aa as g,Dc as w,Eb as x,Ec as P,Ic as l,Jc as R,Vc as V,Xb as y,Zb as v,ac as N,bc as T,ca as I,cb as B,cc as m,dc as o,ec as r,fc as h,gb as p,gc as C,ha as b,hc as S,ic as M,mc as _,nc as L,oa as d,pa as u,rc as f,rd as O,sd as U,tc as c,yb as D}from"./chunk-5VYDZBNH.js";import{a as k}from"./chunk-QWWW7GFA.js";var Z=(()=>{class e{constructor(){this.httpService=b(A)}download(t){return this.httpService.post("/api/Product/downloadurl",t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=I({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ne(e,s){if(e&1&&(C(0,"th"),l(1),S()),e&2){let t=s.$implicit;p(),R(t.column)}}function ie(e,s){if(e&1&&(C(0,"td"),M(1,"span",4),S()),e&2){let t=s.$implicit,n=c().$implicit;p(),L("innerHTML",n[t.prop],B)}}function oe(e,s){if(e&1&&(C(0,"tr"),N(1,ie,2,1,"td",null,E),S()),e&2){let t=s.$implicit,n=c();P("background-color",t.Status>200?"#F4D6D5":"#DEE9C9"),p(),T(n.configs())}}var ee=(()=>{class e{constructor(){this.configs=U([]),this.data=U([]),this.status=U(void 0),this.eventClose=O({alias:"onClose"})}onClose(){this.eventClose.emit()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=D({type:e,selectors:[["app-response-api-list"]],inputs:{configs:[1,"configs"],data:[1,"data"],status:[1,"status"]},outputs:{eventClose:"onClose"},decls:9,vars:0,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[3,"background-color"],[3,"innerHTML"]],template:function(n,i){n&1&&(C(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),N(4,ne,2,1,"th",null,E),S()(),C(6,"tbody"),N(7,oe,3,2,"tr",3,E),S()()()),n&2&&(p(4),T(i.configs()),p(3),T(i.data()))},encapsulation:2,changeDetection:0})}}return e})();function re(e,s){if(e&1){let t=_();o(0,"button",17),f("click",function(){d(t);let i=c(),a=w(11);return u(i.onNewStepperState(a))}),h(1,"i",18),l(2," New "),r()}}function ae(e,s){if(e&1){let t=_();o(0,"button",17),f("click",function(){d(t),c();let i=w(11);return u(i.previous())}),l(1," Back "),r()}}function le(e,s){if(e&1){let t=_();o(0,"button",19),f("click",function(){d(t);let i=c(),a=w(11);return u(i.onStepperNext(a))}),l(1," Next "),r()}}function se(e,s){if(e&1){let t=_();o(0,"button",20),f("click",function(){d(t);let i=c(),a=w(11);return u(i.onSubmit(a))}),l(1," Download "),r()}if(e&2){let t=c();m("disabled",!t.urls)}}function pe(e,s){e&1&&(h(0,"i",21),o(1,"span"),l(2,"Instruction"),r())}function ce(e,s){e&1&&(o(0,"div",22)(1,"div",23)(2,"div",24)(3,"h4",25),l(4,"Note"),r()(),o(5,"div",26)(6,"ol",27)(7,"li"),l(8," Use this form to Download Products from Tokopedia using product URL "),r(),o(9,"li"),l(10," Copy Product URL from "),o(11,"a",28),l(12,"https://seller.tokopedia.com/ "),r(),l(13," and paste in this form "),r(),o(14,"li"),l(15," Use New Line when you want to input several product URLs "),r()()()()())}function me(e,s){e&1&&(h(0,"i",29),o(1,"span"),l(2,"Download"),r())}function de(e,s){if(e&1){let t=_();o(0,"div",22)(1,"textarea",30),f("ngModelChange",function(i){d(t);let a=c();return u(a.urls.set(i))}),r()()}if(e&2){let t=c();p(),m("placeholder",t.urlPlaceholder())("ngModel",t.urls())}}function ue(e,s){e&1&&(h(0,"i",31),o(1,"span"),l(2,"Finish"),r())}function _e(e,s){if(e&1&&(o(0,"div",22),h(1,"app-response-api-list",32),r()),e&2){let t=c();p(),m("data",t.downloadResponses())("configs",t.configs)}}function fe(e,s){e&1&&(o(0,"h6"),l(1,"1"),r())}function ge(e,s){e&1&&(o(0,"h6"),l(1,"2"),r())}function he(e,s){e&1&&(o(0,"h6"),l(1,"3"),r())}var Fe=(()=>{class e{constructor(){this.downloadService=b(Z),this.authService=b(F),this.urls=g(null),this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=g([]),this.stepperState=g("DOWNLOAD"),this.urlPlaceholder=g(`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
2
2
  https://tokopedia.com/tokoriyanadi/Celana-Chinos-Coklat`),this.currentDomain=g(this.authService.getDomain())}onStepperChange(t){this.stepperState.set(t.selectedStep.state)}onSubmit(t){let i=(this.urls()??"").split(/\r?\n/).filter(a=>a.trim());this.downloadService.download(i).subscribe(a=>{this.downloadResponses.set(a),this.mappingLinkToProduct(),this.onStepperNext(t)})}mappingLinkToProduct(){let t=this.currentDomain(),n=this.downloadResponses().map(i=>{let a=k({},i);return a.Name=a?.Name?`<a href="${t}/menu/Products/Catalog/Products/Info?ID=${a.ID}" target="_blank">${a?.Name}</a>`:"-",a});this.downloadResponses.set(n)}onNewStepperState(t){this.downloadResponses.set([]),this.urls.set(null),this.stepperState.set("DOWNLOAD"),t.reset(),this.onStepperNext(t)}onStepperNext(t){t.selected.completed=!0,t.next()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=D({type:e,selectors:[["app-by-url"]],features:[V([{provide:z,useValue:{displayDefaultIndicatorType:!1}}])],decls:24,vars:11,consts:[["stepper",""],["headerTitle","Tokopedia - Product Download By Url",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"disabled"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],["linear","",1,"stepper-downloadByUrl",3,"selectionChange","selectedIndex"],["state","GUIDE",3,"editable","completed"],["matStepLabel",""],["matStepContent",""],["state","DOWNLOAD",3,"editable","completed"],["state","FINISH"],["matStepperIcon","GUIDE"],["matStepperIcon","DOWNLOAD"],["matStepperIcon","FINISH"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3",3,"click"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"click","disabled"],[1,"fa-solid","fa-info","me-3"],[1,"mt-8"],[1,"card","border","w-50"],[1,"card-header","py-6"],[1,"text-primary"],[1,"card-body",2,"padding-left","0px"],[1,"mt-6"],["href","https://seller.tokopedia.com","target","_blank"],[1,"fa-solid","fa-download","me-3"],["name","url","cols","30","rows","25",1,"form-control",3,"ngModelChange","placeholder","ngModel"],[1,"fa-sharp","fa-solid","fa-flag","me-3"],["status","error",3,"data","configs"]],template:function(n,i){if(n&1){let a=_();o(0,"mainpanel",1)(1,"actions"),y(2,re,3,0,"button",2),y(3,ae,2,0,"button",2),y(4,le,2,0,"button",3),y(5,se,2,1,"button",4),r(),o(6,"content")(7,"div",5)(8,"div",6)(9,"div",7)(10,"mat-stepper",8,0),f("selectionChange",function(te){return d(a),u(i.onStepperChange(te))}),o(12,"mat-step",9),x(13,pe,3,0,"ng-template",10)(14,ce,16,0,"ng-template",11),r(),o(15,"mat-step",12),x(16,me,3,0,"ng-template",10)(17,de,2,2,"ng-template",11),r(),o(18,"mat-step",13),x(19,ue,3,0,"ng-template",10)(20,_e,2,2,"ng-template",11),r(),x(21,fe,2,0,"ng-template",14)(22,ge,2,0,"ng-template",15)(23,he,2,0,"ng-template",16),r()()()()()()}n&2&&(m("hideSearchBox",!0)("hideSearchDropdown",!0),p(2),v(i.stepperState()=="FINISH"?2:-1),p(),v(i.stepperState()=="DOWNLOAD"?3:-1),p(),v(i.stepperState()=="GUIDE"?4:-1),p(),v(i.stepperState()=="DOWNLOAD"?5:-1),p(5),m("selectedIndex",1),p(2),m("editable",i.stepperState()!="FINISH")("completed",!0),p(3),m("editable",i.stepperState()!="FINISH")("completed",!1))},dependencies:[G,X,Q,q,K,j,H,$,W,ee,J],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.card-header{background-color:#00000008}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}
3
3
  `],encapsulation:2,changeDetection:0})}}return e})();export{Fe as ByUrlComponent};
@@ -1 +1 @@
1
- import{a as E}from"./chunk-QNSVLW6H.js";import{a as F}from"./chunk-OEEQLKK3.js";import{f as T}from"./chunk-VHUA5GCZ.js";import{a as w}from"./chunk-63X2BBS4.js";import{b as i,c as m}from"./chunk-NNVT5X6O.js";import{b as j,e as s}from"./chunk-ZE4OOGMT.js";import{d as D}from"./chunk-56N77BXA.js";import{Aa as C,C as I,F as u,ca as c,e as b,ha as a,l as d,r as A,x as U}from"./chunk-5VYDZBNH.js";var x=(()=>{class r{constructor(){this.httpService=a(s)}getAttributes(t,e){return this.httpService.get("api/product/shopee/GetAttributesTree",[{key:"ID",value:t},{key:"CategoryID",value:e}])}getCategories(t){return this.httpService.get("api/product/shopee/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/shopee/AddProduct",t).pipe(u(o=>d(null)))}generateAttribute(t){return t.map(e=>({attribute_id:e.attribute_id,attribute_value_list:e.attribute_value_list.map(o=>({value_id:o.value_id,name:o.name}))})),t}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var H=(()=>{class r{constructor(){this.httpService=a(s)}getCategories(t){return this.httpService.get("api/product/tiktok/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/tiktok/AddProduct",t).pipe(u(o=>d(null)))}generateAttribute(t){let e;return t.map(o=>(o.type=="PRODUCT_PROPERTY"?e={id:o.id,name:o.name,type:o.type,values:o.values}:e={id:o.id,name:o.values[0].id,type:o.type},e))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var z=(()=>{class r{constructor(){this.httpService=a(s)}getAttributes(t,e){return this.httpService.get("api/product/lazada/GetAttributes",[{key:"ID",value:t},{key:"CategoryID",value:e}])}getCategories(t){return this.httpService.get("api/product/lazada/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/lazada/AddProduct",t).pipe(u(o=>d(null)))}generateAttribute(t){return t.map(e=>({name:e.name,options:e.options}))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=(()=>{class r{constructor(){this.httpService=a(s)}getAttributes(t,e){return this.httpService.get("api/product/woo/GetAttributes",[{key:"ID",value:t},{key:"CategoryID",value:e}])}getCategories(t){return this.httpService.get("api/product/woo/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/woo/AddProduct",t).pipe(u(o=>d(null)))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var g=class{};var S=class{};var V=(()=>{class r{constructor(){this.httpService=a(s)}getCategories(t){return this.httpService.get("api/product/tokopedia/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/tokopedia/AddProduct",t).pipe(u(o=>d(null)))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var G=(()=>{class r{constructor(){this.httpService=a(s)}uploadProduct(t){return this.httpService.post("api/product/ShopifyV2/AddProduct",t).pipe(u(o=>d(null)))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var N=(()=>{class r{constructor(){this.httpService=a(s)}uploadProduct(t){return this.httpService.post(w.UploadPlugoProduct,t).pipe(u(e=>d(null)))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Mt=(()=>{class r{constructor(){this.authService=a(T),this.productService=a(F),this.shoppeUploadService=a(x),this.tiktokUploadService=a(H),this.lazadaUploadService=a(z),this.tokopediaUploadService=a(V),this.wooUploadService=a(R),this.shopifyUploadService=a(G),this.plugoUploadService=a(N),this.toastrHandlingService=a(E),this.toastr=a(j),this.router=a(D),this.httpService=a(s),this._selectedProduct=new b(this.getStoredProducts()),this.selectedProduct$=this._selectedProduct.asObservable().pipe(I(t=>t&&t.length>0))}getStoredProducts(){let t=localStorage.getItem("productsUpload");if(t){let e=JSON.parse(t);return e&&e.length>0?e:[]}else return[]}setSelectedProduct(t){localStorage.setItem("productsUpload",JSON.stringify(t)),this._selectedProduct.next(t)}clearSelectedProduct(){localStorage.removeItem("productsUpload"),this._selectedProduct.next([])}getUnselectedChannels(){let t=this.authService.getChannels(),e=this._selectedProduct.getValue();return this.productService.filterUnselectedChannel(e,t)}getDefaultCategory(){return this.httpService.get("api/v1/Channel/ProductCategory/Default")}get channelProductUpload(){let t=this.getUnselectedChannels();return C(t.map(o=>{let p=new g;return p.id=o.ID,p.name=o.Name,p.type=o.TypeID,p.categoryId=null,p.attributes=[],p.selected=!1,p}))}onUploadProduct(t){let e=t.filter(o=>o.selected&&m.IsNotEmpty(o.categoryId)||o.selected&&(o.type==i.Shopify||o.type==i.ShopifyV2||o.type==i.Plugo));if(e.length>0){let o=this.generateDataForUpload(e);this.uploadProduct(o)}else this.toastr.warning("Please select a channel and category to upload the product.","Warning!")}uploadProduct(t){let e=this.generateObservableForUpload(t);U(e).pipe(A(o=>{let p=[];return o.filter(h=>m.IsNotEmpty(h)).forEach(h=>{p=[...p,...h]}),p})).subscribe({next:(o=[])=>{m.IsNotEmpty(o)&&this.toastrHandlingService.showToastrUploadMultiple(o),this.hasSuccessRes(o)&&this.onSuccessUpload()}})}hasSuccessRes(t){let e=!1;return t.forEach(o=>{o?.Response.Success_list?.length>0&&m.IsNotEmpty(o)&&(e=!0)}),e}onSuccessUpload(){this.router.navigate(["/menu/products/status/sold-in-channel"]),this.clearSelectedProduct()}generateObservableForUpload(t){let e=[],o=[],p=[],h=[],v=[],y=[],P=[],k=[];t.forEach(l=>{switch(l.ChannelType){case i.Shopee:o.push(l);break;case i.Tiktok:e.push(l);break;case i.Lazada:p.push(l);break;case i.Tokopedia:h.push(l);break;case i.WooCommerce:v.push(l);break;case i.Shopify:y.push(l);break;case i.ShopifyV2:P.push(l);break;case i.Plugo:k.push(l);break}});let n=[];return[{type:i.Shopee,data:o},{type:i.Tiktok,data:e},{type:i.Lazada,data:p},{type:i.Tokopedia,data:h},{type:i.WooCommerce,data:v},{type:i.Shopify,data:y},{type:i.ShopifyV2,data:P},{type:i.Plugo,data:k}].filter(l=>l.data.length>0).forEach(l=>{switch(l.type){case i.Shopee:n.push(this.shoppeUploadService.uploadProduct(o));break;case i.Tiktok:n.push(this.tiktokUploadService.uploadProduct(e));break;case i.Lazada:n.push(this.lazadaUploadService.uploadProduct(p));break;case i.Tokopedia:n.push(this.tokopediaUploadService.uploadProduct(h));break;case i.WooCommerce:n.push(this.wooUploadService.uploadProduct(v));break;case i.Shopify:n.push(this.shopifyUploadService.uploadProduct(y));break;case i.ShopifyV2:n.push(this.shopifyUploadService.uploadProduct(P));break;case i.Plugo:n.push(this.plugoUploadService.uploadProduct(k));break}}),n}generateDataForUpload(t){let e=[];return t.forEach(o=>{let p=new S;p.ChannelID=o.id,p.ChannelType=o.type,p.Products=this._selectedProduct.getValue(),o.type==i.Shopify||o.type==i.ShopifyV2?delete p.CategoryID:p.CategoryID=o.categoryId,p=this.generateAttributeHttpRequest(o,p),e.push(p)}),e}generateAttributeHttpRequest(t,e){return t.type==i.WooCommerce||t.type==i.Shopify||t.type==i.ShopifyV2?e.Attribute=t.attributes[0]:t.type==i.Tiktok?(e.Attributes=this.formatAttributes(t.type,t.attributes),e.listing_platforms=t.listing_platforms):e.Attributes=this.formatAttributes(t.type,t.attributes),e}formatAttributes(t,e){let o;switch(t){case i.Shopee:o=this.shoppeUploadService.generateAttribute(e);break;case i.Tiktok:o=this.tiktokUploadService.generateAttribute(e);break;case i.WooCommerce:o=this.tiktokUploadService.generateAttribute(e);break;case i.Lazada:o=this.lazadaUploadService.generateAttribute(e);break;case i.Tokopedia:o=e;break;case i.Shopify:o=e;break;case i.ShopifyV2:o=e;break;default:o=[];break}return o}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{x as a,H as b,z as c,R as d,Mt as e};
1
+ import{a as E}from"./chunk-QNSVLW6H.js";import{a as F}from"./chunk-PEBZF2VL.js";import{f as T}from"./chunk-XUEJETYQ.js";import{a as w}from"./chunk-63X2BBS4.js";import{b as i,c as m}from"./chunk-NNVT5X6O.js";import{b as j,e as s}from"./chunk-ZE4OOGMT.js";import{d as D}from"./chunk-56N77BXA.js";import{Aa as C,C as I,F as u,ca as c,e as b,ha as a,l as d,r as A,x as U}from"./chunk-5VYDZBNH.js";var x=(()=>{class r{constructor(){this.httpService=a(s)}getAttributes(t,e){return this.httpService.get("api/product/shopee/GetAttributesTree",[{key:"ID",value:t},{key:"CategoryID",value:e}])}getCategories(t){return this.httpService.get("api/product/shopee/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/shopee/AddProduct",t).pipe(u(o=>d(null)))}generateAttribute(t){return t.map(e=>({attribute_id:e.attribute_id,attribute_value_list:e.attribute_value_list.map(o=>({value_id:o.value_id,name:o.name}))})),t}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var H=(()=>{class r{constructor(){this.httpService=a(s)}getCategories(t){return this.httpService.get("api/product/tiktok/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/tiktok/AddProduct",t).pipe(u(o=>d(null)))}generateAttribute(t){let e;return t.map(o=>(o.type=="PRODUCT_PROPERTY"?e={id:o.id,name:o.name,type:o.type,values:o.values}:e={id:o.id,name:o.values[0].id,type:o.type},e))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var z=(()=>{class r{constructor(){this.httpService=a(s)}getAttributes(t,e){return this.httpService.get("api/product/lazada/GetAttributes",[{key:"ID",value:t},{key:"CategoryID",value:e}])}getCategories(t){return this.httpService.get("api/product/lazada/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/lazada/AddProduct",t).pipe(u(o=>d(null)))}generateAttribute(t){return t.map(e=>({name:e.name,options:e.options}))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var R=(()=>{class r{constructor(){this.httpService=a(s)}getAttributes(t,e){return this.httpService.get("api/product/woo/GetAttributes",[{key:"ID",value:t},{key:"CategoryID",value:e}])}getCategories(t){return this.httpService.get("api/product/woo/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/woo/AddProduct",t).pipe(u(o=>d(null)))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var g=class{};var S=class{};var V=(()=>{class r{constructor(){this.httpService=a(s)}getCategories(t){return this.httpService.get("api/product/tokopedia/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/tokopedia/AddProduct",t).pipe(u(o=>d(null)))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var G=(()=>{class r{constructor(){this.httpService=a(s)}uploadProduct(t){return this.httpService.post("api/product/ShopifyV2/AddProduct",t).pipe(u(o=>d(null)))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var N=(()=>{class r{constructor(){this.httpService=a(s)}uploadProduct(t){return this.httpService.post(w.UploadPlugoProduct,t).pipe(u(e=>d(null)))}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();var Mt=(()=>{class r{constructor(){this.authService=a(T),this.productService=a(F),this.shoppeUploadService=a(x),this.tiktokUploadService=a(H),this.lazadaUploadService=a(z),this.tokopediaUploadService=a(V),this.wooUploadService=a(R),this.shopifyUploadService=a(G),this.plugoUploadService=a(N),this.toastrHandlingService=a(E),this.toastr=a(j),this.router=a(D),this.httpService=a(s),this._selectedProduct=new b(this.getStoredProducts()),this.selectedProduct$=this._selectedProduct.asObservable().pipe(I(t=>t&&t.length>0))}getStoredProducts(){let t=localStorage.getItem("productsUpload");if(t){let e=JSON.parse(t);return e&&e.length>0?e:[]}else return[]}setSelectedProduct(t){localStorage.setItem("productsUpload",JSON.stringify(t)),this._selectedProduct.next(t)}clearSelectedProduct(){localStorage.removeItem("productsUpload"),this._selectedProduct.next([])}getUnselectedChannels(){let t=this.authService.getChannels(),e=this._selectedProduct.getValue();return this.productService.filterUnselectedChannel(e,t)}getDefaultCategory(){return this.httpService.get("api/v1/Channel/ProductCategory/Default")}get channelProductUpload(){let t=this.getUnselectedChannels();return C(t.map(o=>{let p=new g;return p.id=o.ID,p.name=o.Name,p.type=o.TypeID,p.categoryId=null,p.attributes=[],p.selected=!1,p}))}onUploadProduct(t){let e=t.filter(o=>o.selected&&m.IsNotEmpty(o.categoryId)||o.selected&&(o.type==i.Shopify||o.type==i.ShopifyV2||o.type==i.Plugo));if(e.length>0){let o=this.generateDataForUpload(e);this.uploadProduct(o)}else this.toastr.warning("Please select a channel and category to upload the product.","Warning!")}uploadProduct(t){let e=this.generateObservableForUpload(t);U(e).pipe(A(o=>{let p=[];return o.filter(h=>m.IsNotEmpty(h)).forEach(h=>{p=[...p,...h]}),p})).subscribe({next:(o=[])=>{m.IsNotEmpty(o)&&this.toastrHandlingService.showToastrUploadMultiple(o),this.hasSuccessRes(o)&&this.onSuccessUpload()}})}hasSuccessRes(t){let e=!1;return t.forEach(o=>{o?.Response.Success_list?.length>0&&m.IsNotEmpty(o)&&(e=!0)}),e}onSuccessUpload(){this.router.navigate(["/menu/products/status/sold-in-channel"]),this.clearSelectedProduct()}generateObservableForUpload(t){let e=[],o=[],p=[],h=[],v=[],y=[],P=[],k=[];t.forEach(l=>{switch(l.ChannelType){case i.Shopee:o.push(l);break;case i.Tiktok:e.push(l);break;case i.Lazada:p.push(l);break;case i.Tokopedia:h.push(l);break;case i.WooCommerce:v.push(l);break;case i.Shopify:y.push(l);break;case i.ShopifyV2:P.push(l);break;case i.Plugo:k.push(l);break}});let n=[];return[{type:i.Shopee,data:o},{type:i.Tiktok,data:e},{type:i.Lazada,data:p},{type:i.Tokopedia,data:h},{type:i.WooCommerce,data:v},{type:i.Shopify,data:y},{type:i.ShopifyV2,data:P},{type:i.Plugo,data:k}].filter(l=>l.data.length>0).forEach(l=>{switch(l.type){case i.Shopee:n.push(this.shoppeUploadService.uploadProduct(o));break;case i.Tiktok:n.push(this.tiktokUploadService.uploadProduct(e));break;case i.Lazada:n.push(this.lazadaUploadService.uploadProduct(p));break;case i.Tokopedia:n.push(this.tokopediaUploadService.uploadProduct(h));break;case i.WooCommerce:n.push(this.wooUploadService.uploadProduct(v));break;case i.Shopify:n.push(this.shopifyUploadService.uploadProduct(y));break;case i.ShopifyV2:n.push(this.shopifyUploadService.uploadProduct(P));break;case i.Plugo:n.push(this.plugoUploadService.uploadProduct(k));break}}),n}generateDataForUpload(t){let e=[];return t.forEach(o=>{let p=new S;p.ChannelID=o.id,p.ChannelType=o.type,p.Products=this._selectedProduct.getValue(),o.type==i.Shopify||o.type==i.ShopifyV2?delete p.CategoryID:p.CategoryID=o.categoryId,p=this.generateAttributeHttpRequest(o,p),e.push(p)}),e}generateAttributeHttpRequest(t,e){return t.type==i.WooCommerce||t.type==i.Shopify||t.type==i.ShopifyV2?e.Attribute=t.attributes[0]:t.type==i.Tiktok?(e.Attributes=this.formatAttributes(t.type,t.attributes),e.listing_platforms=t.listing_platforms):e.Attributes=this.formatAttributes(t.type,t.attributes),e}formatAttributes(t,e){let o;switch(t){case i.Shopee:o=this.shoppeUploadService.generateAttribute(e);break;case i.Tiktok:o=this.tiktokUploadService.generateAttribute(e);break;case i.WooCommerce:o=this.tiktokUploadService.generateAttribute(e);break;case i.Lazada:o=this.lazadaUploadService.generateAttribute(e);break;case i.Tokopedia:o=e;break;case i.Shopify:o=e;break;case i.ShopifyV2:o=e;break;default:o=[];break}return o}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{x as a,H as b,z as c,R as d,Mt as e};
@@ -1 +1 @@
1
- import{a as ge}from"./chunk-ZCXTH7QS.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import{a as me}from"./chunk-7KG3DC5J.js";import{a as ue}from"./chunk-PGDBJOSL.js";import{a as pe}from"./chunk-VYXSV6K4.js";import{a as se}from"./chunk-EYHQ2ZKL.js";import{a as E}from"./chunk-OEEQLKK3.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import"./chunk-2KBEFXEF.js";import"./chunk-O476ULLD.js";import"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-2CWB26KO.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import"./chunk-KRIYDIQQ.js";import{b as ce}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import{a as oe,b as ae,c as re,g as I,h as le,i as B,j as de}from"./chunk-TFTF5VH3.js";import{a as ie}from"./chunk-CBPURQKN.js";import"./chunk-7LEHDN2Q.js";import"./chunk-KFJBIBDQ.js";import{b as ne}from"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import{c as P}from"./chunk-NNVT5X6O.js";import{h as ee,m as te,z as F}from"./chunk-7HUEGPJN.js";import{b as Q,e as X}from"./chunk-ZE4OOGMT.js";import{e as Y}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{D as q,F as K,L as J}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{$b as T,Aa as x,Fc as V,Ic as d,Jc as D,Kc as k,Lc as j,Mc as $,Nc as Z,Oc as z,Pc as A,Qc as G,Rb as N,Rc as W,Xb as g,Zb as h,_b as U,ac as y,bc as w,cc as m,db as L,dc as a,ec as r,ed as R,fc as u,fd as O,gb as o,ha as s,mc as M,oa as _,pa as v,rc as C,sd as S,tc as p,yb as b,yd as H}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var Ce=(()=>{class i{constructor(){this.data=s(ae),this.dialogRef=s(oe),this.modalConfig=x(new B)}ngOnInit(){let e=new B;e.title="Delete Variant",e.okText="Delete",e.cancelText="Cancel",e.headerType=le.Error,e.customWidth="450px",this.modalConfig.set(e)}onConfirm(){this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-modal-confirm-delete"]],decls:10,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],["content","",1,"p-3"]],template:function(t,n){t&1&&(a(0,"modal-material",0),C("onOk",function(){return n.onConfirm()})("onCancel",function(){return n.onCancel()})("onClose",function(){return n.onCancel()}),a(1,"div",1)(2,"p"),d(3,"Are you sure to delete Variant "),a(4,"strong"),d(5),r(),d(6," from Product "),a(7,"strong"),d(8),r(),d(9,"?"),r()()()),t&2&&(m("config",n.modalConfig()),o(5),D(n.data==null?null:n.data.variantName),o(3),D(n.data==null?null:n.data.productName))},dependencies:[K,I,de],styles:[".modal-material mat-dialog-actions{margin-top:0!important}"]})}}return i})();function _e(i,c){if(i&1){let e=M();a(0,"img",15),C("click",function(n){_(e);let l=p();return v(l.onZoomImage(n))}),r()}if(i&2){let e=p();m("ngSrc",e.image)("fill",!0)}}function ve(i,c){i&1&&u(0,"img",7),i&2&&m("fill",!0)}function xe(i,c){if(i&1&&(a(0,"div",10),u(1,"i",16),a(2,"span"),d(3),r()()),i&2){let e=p();o(3),D(e.code)}}function be(i,c){if(i&1&&(a(0,"div",11),d(1),R(2,"number"),r()),i&2){let e=p();o(),k("",O(2,1,e.totalChannel())," Listing")}}function De(i,c){if(i&1&&(a(0,"div",23),d(1),R(2,"number"),r()),i&2){p();let e=W(7);o(),k(" (",O(2,1,e)," Listing) ")}}function Se(i,c){if(i&1){let e=M();a(0,"div",27)(1,"div",28),d(2),r(),a(3,"div",29)(4,"a",30),u(5,"i",31),r(),a(6,"a",32),C("click",function(){let n=_(e).$implicit,l=p(2);return v(l.onDeleteVariant(n.ID,n.Name))}),u(7,"i",33),r()()()}if(i&2){let e=c.$implicit,t=c.$index,n=p().$implicit;V("border-bottom",t!==(n==null?null:n.Variants.length)-1),o(2),j(" ",e.ProductName," - ",e.Name," "),o(2),m("href",e.URL,L)}}function ye(i,c){if(i&1&&(a(0,"div",17)(1,"h2",18)(2,"button",19)(3,"div",20),u(4,"img",21),a(5,"span",22),d(6),r(),A(7),g(8,De,3,3,"div",23),r()()(),a(9,"div",24)(10,"div",25),y(11,Se,8,5,"div",26,U),r()()()),i&2){let e,t=c.$implicit,n=c.$index,l=p();V("border-bottom-0",l.channels().length-1==n),o(),m("id","heading"+n+l.id()),o(),N("data-bs-target","#collapse"+n+l.id())("aria-controls","#collapse"+n+l.id()),o(2),m("src",l.getChannelLogo(t.TypeID),L),o(),m("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t==null?null:t.ChannelName:""),o(),D(t==null?null:t.ChannelName),o();let f=G(t==null||t.Variants==null?null:t.Variants.length);o(),h(f>1&&((e=l.channels())==null?null:e.length)>1?8:-1),o(),m("id","collapse"+n+l.id()),N("aria-labelledby","heading"+n+l.id()),o(2),w(t==null?null:t.Variants)}}var fe=(()=>{class i{constructor(){this.biggerPictureService=s(pe),this.productService=s(E),this.cdr=s(H),this.toastr=s(Q),this.dialog=s(re),this.totalChannel=S(0),this.imageForZoom=S(void 0),this.title=S(void 0),this.channels=S(void 0),this.id=S(void 0)}getChannelLogo(e){return P.getChannelLogoByTypeId(e)}onZoomImage(e){this.biggerPictureService.openBiggerPicture(e,this.imageForZoom())}onDeleteVariant(e,t){this.dialog.open(Ce,{data:{variantName:t,productName:this.title()}}).afterClosed().subscribe(l=>{l&&this.productService.deleteSingleVariantID(e).subscribe({next:()=>{this.toastr.success(`Variant "${t}" has been deleted successfully.`,"Deleted"),setTimeout(()=>window.location.reload(),1500)},error:()=>{this.toastr.error(`Failed to delete variant "${t}". Please try again.`,"Error")}})})}updateTotalChannel(){this.cdr.markForCheck()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",code:"code",totalChannel:[1,"totalChannel"],imageForZoom:[1,"imageForZoom"],title:[1,"title"],channels:[1,"channels"],id:[1,"id"]},decls:17,vars:4,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],[1,"description"],[1,"fs-5"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],[1,"accordion-item","border-start-0","border-end-0",3,"border-bottom-0"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],[1,"fs-4","ms-2"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"border-bottom"],[1,"d-flex","justify-content-between","align-items-center","py-4"],[1,"text-ellipsis"],[1,"d-flex","align-items-center","gap-3"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],["href","javascript:void(0)","title","Delete variant",1,"text-danger",3,"click"],[1,"fa-solid","fa-trash-can"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),g(6,_e,1,2,"img",6)(7,ve,1,1,"img",7),r()()(),a(8,"div",8)(9,"h4",9),d(10),r(),g(11,xe,4,1,"div",10),g(12,be,3,3,"div",11),r()()(),a(13,"div",12)(14,"div",13),y(15,ye,13,12,"div",14,T),r()()()),t&2&&(o(6),h(n.image?6:7),o(4),k(" ",n.title()," "),o(),h(n.code?11:-1),o(),h(n.totalChannel()?12:-1),o(3),w(n.channels()))},dependencies:[F,ie,ne,I,J,q],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`],changeDetection:0})}}return i})();function we(i,c){if(i&1&&(a(0,"div",8),u(1,"app-duplicate-product-card",11),r()),i&2){let e=c.$implicit,t=c.$index;o(),m("imageForZoom",e.ImageUrl)("title",e.Name)("code",e.Code)("id",t)("image",e.ThumbnailURL)("channels",e.Channels)("totalChannel",e.Total)}}function Me(i,c){i&1&&(a(0,"div",9),u(1,"app-empty-state"),r())}function Pe(i,c){if(i&1){let e=M();a(0,"div",10)(1,"div",12)(2,"app-custom-paginator",13),C("next",function(){_(e);let n=p();return v(n.getProducts())})("previous",function(){_(e);let n=p();return v(n.getProducts())})("total",function(){_(e);let n=p();return v(n.getRowCount())}),r()()()}if(i&2){let e,t=p();o(2),m("filter",t.searchFilter())("totaldata",(e=t.products())==null?null:e.length)("paginationTotal",t.rowCount())("hasClicked",t.hasClickedRowCount())}}var ut=(()=>{class i{constructor(){this.httpService=s(X),this.productService=s(E),this.searchFilter=x(new me),this.products=x([]),this.rowCount=x(0),this.hasClickedRowCount=x(!1),this.getPageLoader()}getPageLoader(){this.productService.loader().subscribe(e=>{this.searchFilter.set(e.Filter),this.searchFilter.update(t=>(t.PageSize=e.Filter.RowCount,t)),this.getProducts()})}getProducts(){let e={ListChannelID:this.searchFilter().ListChannelID,RowCount:this.searchFilter().RowCount,PageNumber:this.searchFilter().PageNumber,text:this.searchFilter().text};this.httpService.post("/api/product/GetDuplicateInChannel",e).subscribe(t=>{this.products.set(t.Data)})}onSearch(e){this.searchFilter.update(t=>(t.text=e,t)),this.hasClickedRowCount.set(!1),this.getProducts()}onClearFilter(){this.searchFilter.update(e=>(e.ChannelID=P.GuidEMpty,e))}getChannelLogo(e){return P.getChannelLogoByTypeId(e)}getRowCount(){let e={text:this.searchFilter().text,ChannelID:this.searchFilter().ChannelID};this.httpService.post("/api/product/GetDuplicateInChannelRowCount",e).subscribe(t=>{this.hasClickedRowCount.set(!0),this.rowCount.set(t.Total)})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-duplicate-sku"]],decls:19,vars:4,consts:[["headerTitle","Multiple Listing","textButton"," Search","description","SKU(s) which is listed more than one time (one to many)",3,"onSubmit"],["routerLink","/menu/products/status/duplicate-sku/table",1,"btn","btn-outline-secondary","btn-lg","d-flex","align-items-center","gap-2"],[1,"fa-solid","fa-table"],["container",""],[1,"mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"container-fluid"],[1,"row","mt-8","mx-1"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row","mt-2","justify-content-end"],[3,"imageForZoom","title","code","id","image","channels","totalChannel"],[1,"col-md-12"],[3,"next","previous","total","filter","totaldata","paginationTotal","hasClicked"]],template:function(t,n){if(t&1&&(a(0,"mainpanel",0),C("onSubmit",function(f){return n.onSearch(f)}),a(1,"actions")(2,"a",1),u(3,"i",2),a(4,"span"),d(5,"Table View"),r()()(),a(6,"filters")(7,"div",3)(8,"div")(9,"h6",4),d(10,"Channel"),r(),a(11,"app-channel-options-v2",5),z("ngModelChange",function(f){return Z(n.searchFilter().ListChannelID,f)||(n.searchFilter().ListChannelID=f),f}),r()()()(),a(12,"content")(13,"div",6)(14,"div",7),y(15,we,2,7,"div",8,T),g(17,Me,2,0,"div",9),r(),g(18,Pe,3,4,"div",10),r()()()),t&2){let l;o(11),m("multiple",!0),$("ngModel",n.searchFilter().ListChannelID),o(4),w(n.products()),o(2),h(n.products().length==0?17:-1),o(),h(((l=n.products())==null?null:l.length)>0?18:-1)}},dependencies:[ce,Y,ge,F,ee,te,fe,se,ue],encapsulation:2,changeDetection:0})}}return i})();export{ut as DuplicateSkuComponent};
1
+ import{a as ge}from"./chunk-6MTRE22X.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import{a as me}from"./chunk-7KG3DC5J.js";import{a as ue}from"./chunk-PGDBJOSL.js";import{a as pe}from"./chunk-VYXSV6K4.js";import{a as se}from"./chunk-EYHQ2ZKL.js";import{a as E}from"./chunk-PEBZF2VL.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import"./chunk-2KBEFXEF.js";import"./chunk-O476ULLD.js";import"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-QN2XB2TS.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import"./chunk-KRIYDIQQ.js";import{b as ce}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import{a as oe,b as ae,c as re,g as I,h as le,i as B,j as de}from"./chunk-TFTF5VH3.js";import{a as ie}from"./chunk-CBPURQKN.js";import"./chunk-7LEHDN2Q.js";import"./chunk-KFJBIBDQ.js";import{b as ne}from"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import{c as P}from"./chunk-NNVT5X6O.js";import{h as ee,m as te,z as F}from"./chunk-7HUEGPJN.js";import{b as Q,e as X}from"./chunk-ZE4OOGMT.js";import{e as Y}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{D as q,F as K,L as J}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{$b as T,Aa as x,Fc as V,Ic as d,Jc as D,Kc as k,Lc as j,Mc as $,Nc as Z,Oc as z,Pc as A,Qc as G,Rb as N,Rc as W,Xb as g,Zb as h,_b as U,ac as y,bc as w,cc as m,db as L,dc as a,ec as r,ed as R,fc as u,fd as O,gb as o,ha as s,mc as M,oa as _,pa as v,rc as C,sd as S,tc as p,yb as b,yd as H}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var Ce=(()=>{class i{constructor(){this.data=s(ae),this.dialogRef=s(oe),this.modalConfig=x(new B)}ngOnInit(){let e=new B;e.title="Delete Variant",e.okText="Delete",e.cancelText="Cancel",e.headerType=le.Error,e.customWidth="450px",this.modalConfig.set(e)}onConfirm(){this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-modal-confirm-delete"]],decls:10,vars:3,consts:[[3,"onOk","onCancel","onClose","config"],["content","",1,"p-3"]],template:function(t,n){t&1&&(a(0,"modal-material",0),C("onOk",function(){return n.onConfirm()})("onCancel",function(){return n.onCancel()})("onClose",function(){return n.onCancel()}),a(1,"div",1)(2,"p"),d(3,"Are you sure to delete Variant "),a(4,"strong"),d(5),r(),d(6," from Product "),a(7,"strong"),d(8),r(),d(9,"?"),r()()()),t&2&&(m("config",n.modalConfig()),o(5),D(n.data==null?null:n.data.variantName),o(3),D(n.data==null?null:n.data.productName))},dependencies:[K,I,de],styles:[".modal-material mat-dialog-actions{margin-top:0!important}"]})}}return i})();function _e(i,c){if(i&1){let e=M();a(0,"img",15),C("click",function(n){_(e);let l=p();return v(l.onZoomImage(n))}),r()}if(i&2){let e=p();m("ngSrc",e.image)("fill",!0)}}function ve(i,c){i&1&&u(0,"img",7),i&2&&m("fill",!0)}function xe(i,c){if(i&1&&(a(0,"div",10),u(1,"i",16),a(2,"span"),d(3),r()()),i&2){let e=p();o(3),D(e.code)}}function be(i,c){if(i&1&&(a(0,"div",11),d(1),R(2,"number"),r()),i&2){let e=p();o(),k("",O(2,1,e.totalChannel())," Listing")}}function De(i,c){if(i&1&&(a(0,"div",23),d(1),R(2,"number"),r()),i&2){p();let e=W(7);o(),k(" (",O(2,1,e)," Listing) ")}}function Se(i,c){if(i&1){let e=M();a(0,"div",27)(1,"div",28),d(2),r(),a(3,"div",29)(4,"a",30),u(5,"i",31),r(),a(6,"a",32),C("click",function(){let n=_(e).$implicit,l=p(2);return v(l.onDeleteVariant(n.ID,n.Name))}),u(7,"i",33),r()()()}if(i&2){let e=c.$implicit,t=c.$index,n=p().$implicit;V("border-bottom",t!==(n==null?null:n.Variants.length)-1),o(2),j(" ",e.ProductName," - ",e.Name," "),o(2),m("href",e.URL,L)}}function ye(i,c){if(i&1&&(a(0,"div",17)(1,"h2",18)(2,"button",19)(3,"div",20),u(4,"img",21),a(5,"span",22),d(6),r(),A(7),g(8,De,3,3,"div",23),r()()(),a(9,"div",24)(10,"div",25),y(11,Se,8,5,"div",26,U),r()()()),i&2){let e,t=c.$implicit,n=c.$index,l=p();V("border-bottom-0",l.channels().length-1==n),o(),m("id","heading"+n+l.id()),o(),N("data-bs-target","#collapse"+n+l.id())("aria-controls","#collapse"+n+l.id()),o(2),m("src",l.getChannelLogo(t.TypeID),L),o(),m("matTooltip",(t==null||t.ChannelName==null?null:t.ChannelName.length)>30?t==null?null:t.ChannelName:""),o(),D(t==null?null:t.ChannelName),o();let f=G(t==null||t.Variants==null?null:t.Variants.length);o(),h(f>1&&((e=l.channels())==null?null:e.length)>1?8:-1),o(),m("id","collapse"+n+l.id()),N("aria-labelledby","heading"+n+l.id()),o(2),w(t==null?null:t.Variants)}}var fe=(()=>{class i{constructor(){this.biggerPictureService=s(pe),this.productService=s(E),this.cdr=s(H),this.toastr=s(Q),this.dialog=s(re),this.totalChannel=S(0),this.imageForZoom=S(void 0),this.title=S(void 0),this.channels=S(void 0),this.id=S(void 0)}getChannelLogo(e){return P.getChannelLogoByTypeId(e)}onZoomImage(e){this.biggerPictureService.openBiggerPicture(e,this.imageForZoom())}onDeleteVariant(e,t){this.dialog.open(Ce,{data:{variantName:t,productName:this.title()}}).afterClosed().subscribe(l=>{l&&this.productService.deleteSingleVariantID(e).subscribe({next:()=>{this.toastr.success(`Variant "${t}" has been deleted successfully.`,"Deleted"),setTimeout(()=>window.location.reload(),1500)},error:()=>{this.toastr.error(`Failed to delete variant "${t}". Please try again.`,"Error")}})})}updateTotalChannel(){this.cdr.markForCheck()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",code:"code",totalChannel:[1,"totalChannel"],imageForZoom:[1,"imageForZoom"],title:[1,"title"],channels:[1,"channels"],id:[1,"id"]},decls:17,vars:4,consts:[[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],[1,"description"],[1,"fs-5"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],[1,"accordion-item","border-start-0","border-end-0",3,"border-bottom-0"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],[1,"fs-4","ms-2"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"border-bottom"],[1,"d-flex","justify-content-between","align-items-center","py-4"],[1,"text-ellipsis"],[1,"d-flex","align-items-center","gap-3"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],["href","javascript:void(0)","title","Delete variant",1,"text-danger",3,"click"],[1,"fa-solid","fa-trash-can"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div",5),g(6,_e,1,2,"img",6)(7,ve,1,1,"img",7),r()()(),a(8,"div",8)(9,"h4",9),d(10),r(),g(11,xe,4,1,"div",10),g(12,be,3,3,"div",11),r()()(),a(13,"div",12)(14,"div",13),y(15,ye,13,12,"div",14,T),r()()()),t&2&&(o(6),h(n.image?6:7),o(4),k(" ",n.title()," "),o(),h(n.code?11:-1),o(),h(n.totalChannel()?12:-1),o(3),w(n.channels()))},dependencies:[F,ie,ne,I,J,q],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`],changeDetection:0})}}return i})();function we(i,c){if(i&1&&(a(0,"div",8),u(1,"app-duplicate-product-card",11),r()),i&2){let e=c.$implicit,t=c.$index;o(),m("imageForZoom",e.ImageUrl)("title",e.Name)("code",e.Code)("id",t)("image",e.ThumbnailURL)("channels",e.Channels)("totalChannel",e.Total)}}function Me(i,c){i&1&&(a(0,"div",9),u(1,"app-empty-state"),r())}function Pe(i,c){if(i&1){let e=M();a(0,"div",10)(1,"div",12)(2,"app-custom-paginator",13),C("next",function(){_(e);let n=p();return v(n.getProducts())})("previous",function(){_(e);let n=p();return v(n.getProducts())})("total",function(){_(e);let n=p();return v(n.getRowCount())}),r()()()}if(i&2){let e,t=p();o(2),m("filter",t.searchFilter())("totaldata",(e=t.products())==null?null:e.length)("paginationTotal",t.rowCount())("hasClicked",t.hasClickedRowCount())}}var ut=(()=>{class i{constructor(){this.httpService=s(X),this.productService=s(E),this.searchFilter=x(new me),this.products=x([]),this.rowCount=x(0),this.hasClickedRowCount=x(!1),this.getPageLoader()}getPageLoader(){this.productService.loader().subscribe(e=>{this.searchFilter.set(e.Filter),this.searchFilter.update(t=>(t.PageSize=e.Filter.RowCount,t)),this.getProducts()})}getProducts(){let e={ListChannelID:this.searchFilter().ListChannelID,RowCount:this.searchFilter().RowCount,PageNumber:this.searchFilter().PageNumber,text:this.searchFilter().text};this.httpService.post("/api/product/GetDuplicateInChannel",e).subscribe(t=>{this.products.set(t.Data)})}onSearch(e){this.searchFilter.update(t=>(t.text=e,t)),this.hasClickedRowCount.set(!1),this.getProducts()}onClearFilter(){this.searchFilter.update(e=>(e.ChannelID=P.GuidEMpty,e))}getChannelLogo(e){return P.getChannelLogoByTypeId(e)}getRowCount(){let e={text:this.searchFilter().text,ChannelID:this.searchFilter().ChannelID};this.httpService.post("/api/product/GetDuplicateInChannelRowCount",e).subscribe(t=>{this.hasClickedRowCount.set(!0),this.rowCount.set(t.Total)})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-duplicate-sku"]],decls:19,vars:4,consts:[["headerTitle","Multiple Listing","textButton"," Search","description","SKU(s) which is listed more than one time (one to many)",3,"onSubmit"],["routerLink","/menu/products/status/duplicate-sku/table",1,"btn","btn-outline-secondary","btn-lg","d-flex","align-items-center","gap-2"],[1,"fa-solid","fa-table"],["container",""],[1,"mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"container-fluid"],[1,"row","mt-8","mx-1"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row","mt-2","justify-content-end"],[3,"imageForZoom","title","code","id","image","channels","totalChannel"],[1,"col-md-12"],[3,"next","previous","total","filter","totaldata","paginationTotal","hasClicked"]],template:function(t,n){if(t&1&&(a(0,"mainpanel",0),C("onSubmit",function(f){return n.onSearch(f)}),a(1,"actions")(2,"a",1),u(3,"i",2),a(4,"span"),d(5,"Table View"),r()()(),a(6,"filters")(7,"div",3)(8,"div")(9,"h6",4),d(10,"Channel"),r(),a(11,"app-channel-options-v2",5),z("ngModelChange",function(f){return Z(n.searchFilter().ListChannelID,f)||(n.searchFilter().ListChannelID=f),f}),r()()()(),a(12,"content")(13,"div",6)(14,"div",7),y(15,we,2,7,"div",8,T),g(17,Me,2,0,"div",9),r(),g(18,Pe,3,4,"div",10),r()()()),t&2){let l;o(11),m("multiple",!0),$("ngModel",n.searchFilter().ListChannelID),o(4),w(n.products()),o(2),h(n.products().length==0?17:-1),o(),h(((l=n.products())==null?null:l.length)>0?18:-1)}},dependencies:[ce,Y,ge,F,ee,te,fe,se,ue],encapsulation:2,changeDetection:0})}}return i})();export{ut as DuplicateSkuComponent};
@@ -1 +1 @@
1
- import{a as _e,b as P}from"./chunk-Z55UMNTS.js";import{a as se,b as ge,c as ue}from"./chunk-DSBGQ5B7.js";import{a as fe}from"./chunk-AUXH37N2.js";import{a as R}from"./chunk-CLX6T6AB.js";import{a as he}from"./chunk-ZLMUYIKY.js";import"./chunk-DCGQK4V6.js";import"./chunk-H276HPOG.js";import{a as me}from"./chunk-ZCXTH7QS.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import{a as pe}from"./chunk-PGDBJOSL.js";import"./chunk-VYXSV6K4.js";import{a as ce}from"./chunk-EYHQ2ZKL.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import"./chunk-2KBEFXEF.js";import"./chunk-O476ULLD.js";import"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import"./chunk-KRIYDIQQ.js";import"./chunk-474G6BPL.js";import{b as de}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import{a as ae}from"./chunk-CBPURQKN.js";import"./chunk-7RKWOSCN.js";import"./chunk-3RA4CRAW.js";import"./chunk-W55ZHKHY.js";import"./chunk-P6EVJYEB.js";import"./chunk-DXXROE3I.js";import"./chunk-3X54ZT7P.js";import"./chunk-GDOAWQKS.js";import"./chunk-TIHANIPI.js";import"./chunk-PF3J5XPT.js";import"./chunk-IRNBEBQA.js";import"./chunk-P2HR36CY.js";import"./chunk-NCZ46DU6.js";import"./chunk-OUE6X2ER.js";import"./chunk-JYH45M2L.js";import"./chunk-SOTWA42R.js";import"./chunk-7LEHDN2Q.js";import"./chunk-3OTK6GG2.js";import"./chunk-KFJBIBDQ.js";import{b as le}from"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import{b as Y}from"./chunk-NNVT5X6O.js";import{b as ee,c as te,h as ie,m as ne,o as oe,z as re}from"./chunk-7HUEGPJN.js";import{b as Z}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{B as K,D as X}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as b,Bc as L,Cc as z,Hc as A,Ic as a,Jc as v,Kc as M,Mc as B,Nc as W,Oc as H,Pc as $,Qc as j,Rc as V,Vc as Q,Xb as C,Xc as U,Zb as S,_b as N,ac as D,bc as I,cc as m,db as F,dc as t,ec as i,ed as O,fc as s,fd as E,gb as l,gd as q,ha as y,mc as x,md as G,oa as c,pa as p,rc as h,tc as g,td as J,yb as k}from"./chunk-5VYDZBNH.js";import{a as T,b as w}from"./chunk-QWWW7GFA.js";var Ce=r=>({"td-cell-hover":r});function Se(r,f){if(r&1){let e=x();t(0,"button",19),h("click",function(){c(e);let n=g();return p(n.setMultipleFulfillment())}),a(1," Set Fulfillment "),i()}}function xe(r,f){if(r&1&&s(0,"variants-dropdown",37),r&2){let e=g().$implicit;m("variants",e==null?null:e.Variants)}}function ve(r,f){if(r&1&&s(0,"variant-with-image",38),r&2){let e=g().$implicit;m("variant",e==null?null:e.Variants[0])}}function Me(r,f){if(r&1&&(t(0,"span"),a(1),i()),r&2){let e=g().$implicit;l(),M("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function ye(r,f){if(r&1){let e=x();t(0,"div",43)(1,"button",44),h("click",function(){c(e);let n=g().$implicit,d=g(2);return p(d.onSetFulfillment(n))}),s(2,"i",45),a(3,"Set Fulfillment "),i(),t(4,"button",46)(5,"span",47),a(6,"Toggle Dropdown"),i()(),t(7,"ul",48)(8,"li")(9,"a",49),h("click",function(){c(e);let n=g().$implicit,d=g(2);return p(d.refreshShippingAndRefNumber(n))}),s(10,"i",50),a(11,"Refresh Shipping Courier "),i()(),t(12,"li")(13,"a",51),s(14,"i",52),a(15,"Set Picklist (Coming Soon!) "),i()()()()}}function be(r,f){if(r&1){let e=x();t(0,"tr")(1,"td")(2,"input",29),H("ngModelChange",function(n){let d=c(e).$implicit;return W(d.selected,n)||(d.selected=n),p(n)}),h("ngModelChange",function(){c(e);let n=g(2),d=V(0);return p(n.onSelectOrder(d))}),i()(),t(3,"td")(4,"div",30),s(5,"img",31),O(6,"channelImage"),t(7,"div",32)(8,"div"),a(9),i(),t(10,"small",33)(11,"span"),a(12),i()()()()(),t(13,"td")(14,"div",34)(15,"div"),s(16,"order-link",35),i(),t(17,"small"),a(18),O(19,"date"),i(),s(20,"br"),t(21,"small"),s(22,"i",36),a(23),i()()(),t(24,"td"),C(25,xe,1,1,"variants-dropdown",37)(26,ve,1,1,"variant-with-image",38),i(),t(27,"td",39),a(28),O(29,"number"),i(),t(30,"td",40)(31,"div",41)(32,"div",34)(33,"div",42)(34,"span"),a(35),i(),C(36,Me,2,1,"span"),i(),t(37,"small"),a(38),i()()()(),t(39,"td",40),C(40,ye,16,0,"div",43),i()()}if(r&2){let e=f.$implicit,o=g(2);l(2),B("ngModel",e.selected),m("disabled",o.selectedChannelType()!=null&&o.selectedChannelType()!=e.MarketType),l(3),m("src",E(6,17,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(4),v(e.Outlet),l(3),v(e.ChannelName),l(4),m("order",e),l(2),M(" ",q(19,19,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),M(" ",e.Customer," "),l(),A(U(24,Ce,(e.Variants==null?null:e.Variants.length)>1)),l(),S((e.Variants==null?null:e.Variants.length)>1?25:26),l(3),v(E(29,22,e.Amount)),l(7),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),S(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?36:-1),l(2),M(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(2),S((e==null?null:e.MarketType)!=o.channelType.WooCommerce?40:-1)}}function Oe(r,f){if(r&1){let e=x();t(0,"div",16)(1,"table",20)(2,"thead",21)(3,"tr",22),s(4,"th",23),t(5,"th",24),a(6,"Outlet"),i(),t(7,"th",24),a(8,"Number"),i(),t(9,"th"),a(10,"Items"),i(),t(11,"th",25),a(12,"Amount"),i(),t(13,"th",26),a(14,"Shipping"),i(),s(15,"th",27),i()(),t(16,"tbody"),D(17,be,41,26,"tr",null,N),i()(),t(19,"app-custom-paginator",28),h("next",function(){c(e);let n=g();return p(n.initReadyToShip())})("previous",function(){c(e);let n=g();return p(n.initReadyToShip())}),i()()}if(r&2){let e=g(),o=V(0);l(17),I(o),l(2),m("filter",e.filter())("totaldata",o==null?null:o.length)}}function Pe(r,f){r&1&&(t(0,"div",17),s(1,"app-empty-state"),i())}var Xe=(()=>{class r{constructor(){this.toastr=y(Z),this.orderService=y(R),this.fulfillmentService=y(_e),this.channelType=Y,this.selectedOrders=b([]),this.selectedChannelType=G(()=>{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:void 0}),this.contextMenuEl=J(P),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(T({},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(n=>w(T({},n),{[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(n=>n.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=k({type:r,selectors:[["app-ready-to-ship"]],viewQuery:function(o,n){o&1&&L(n.contextMenuEl,P,5),o&2&&z()},features:[Q([R])],decls:38,vars:11,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...","filterDialogWidth","625px",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,"dialog-filter","grid-filter"],[1,"filter-item","full"],[3,"ngModelChange","multiple","ngModel"],[1,"filter-item"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],["type","number","name","PageNumber",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"form-control","input-filter",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,n){if(o&1){let d=x();$(0),t(1,"mainpanel",1),h("onSubmit",function(){return c(d),p(n.initReadyToShip())})("textChange",function(u){return c(d),p(n.onFilterPropertyChange("Number",u))}),t(2,"actions"),C(3,Se,2,0,"button",2),t(4,"a",3),s(5,"i",4),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div",5)(10,"div",6)(11,"h6"),a(12,"Channel"),i(),t(13,"app-channel-options-v2",7),h("ngModelChange",function(u){return c(d),p(n.onFilterPropertyChange("ListChannelID",u))}),i()(),t(14,"div",8)(15,"h6"),a(16,"From"),i(),t(17,"datepicker",9),h("dateChange",function(u){return c(d),p(n.onFilterPropertyChange("From",u))}),i()(),t(18,"div",8)(19,"h6"),a(20,"To"),i(),t(21,"datepicker",10),h("dateChange",function(u){return c(d),p(n.onFilterPropertyChange("To",u))}),i()(),t(22,"div",8)(23,"h6"),a(24,"Page Number"),i(),t(25,"input",11),h("ngModelChange",function(u){return c(d),p(n.onFilterPropertyChange("PageNumber",+u))}),i()(),t(26,"div",8)(27,"h6"),a(28,"Page Size"),i(),t(29,"input",12),h("ngModelChange",function(u){return c(d),p(n.onFilterPropertyChange("PageSize",+u))}),i()()()(),t(30,"content")(31,"div",13)(32,"div",14)(33,"div",15),C(34,Oe,20,2,"div",16)(35,Pe,2,0,"div",17),i()()()()(),t(36,"app-context-menu",18,0),h("onSelectItem",function(u){return c(d),p(n.onSelectContextItem(u))}),i()}if(o&2){let d=j(n.readyToShip());l(),m("text",n.filter().Number),l(2),S(n.selectedOrders().length>0?3:-1),l(10),m("multiple",!0)("ngModel",n.filter().ListChannelID),l(4),m("date",n.filter().From),l(4),m("date",n.filter().To),l(4),m("ngModel",n.filter().PageNumber),l(4),m("ngModel",n.filter().PageSize),l(5),S(d.length>0?34:35),l(2),m("items",n.contextMenuItems)}},dependencies:[de,ce,pe,re,te,oe,ee,ie,ne,ge,ue,he,fe,ae,le,P,me,se,K,X],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}.dialog-filter.grid-filter[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;width:100%}.dialog-filter.grid-filter[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.dialog-filter.grid-filter[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin-bottom:6px}.dialog-filter.grid-filter[_ngcontent-%COMP%] .filter-item.full[_ngcontent-%COMP%]{grid-column:1/-1}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] multiwarehouse-tree-select[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] radio-options[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{min-width:0!important;width:100%!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] input.input-filter[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{height:40px;min-height:40px;border:1px solid #ccc;border-radius:4px;font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] input.input-filter[_ngcontent-%COMP%]:focus, .dialog-filter.grid-filter[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]:focus{border:1px solid #86b7fe;box-shadow:none;outline:0}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select .ng-select-container{height:40px!important;min-height:40px!important;align-items:center;border:1px solid #ccc!important;border-radius:4px!important;font-size:.875rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#86b7fe!important;box-shadow:none!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select .ng-value-container{padding-left:.75rem;padding-right:.75rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select .ng-value, .dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select .ng-placeholder{font-size:.875rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2 .p-multiselect{box-sizing:border-box;width:100%!important;height:40px!important;min-height:40px!important;--p-multiselect-padding-y: 8px;border:1px solid #ccc!important;border-radius:4px!important;font-size:.875rem!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2 .p-multiselect:not(.p-disabled):hover{border-color:#ccc}.dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2 .p-multiselect-label, .dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2 .p-multiselect-chip{font-size:.75rem!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined{height:40px!important;min-height:40px!important;padding-left:.75rem!important;padding-right:.75rem!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__leading, .dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__notch, .dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__trailing{border-color:#ccc!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__leading, .dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__trailing{width:.75rem!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mat-mdc-form-field-infix{display:flex;align-items:center;height:40px;min-height:0!important;padding:0!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker input.mat-mdc-input-element{font-size:.875rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .datepicker-toggle-icon{height:auto;width:auto;margin-right:0}'],changeDetection:0})}}return r})();export{Xe as ReadyToShipComponent};
1
+ import{a as _e,b as P}from"./chunk-Z55UMNTS.js";import{a as se,b as ge,c as ue}from"./chunk-DSBGQ5B7.js";import{a as fe}from"./chunk-73GAA2GS.js";import{a as R}from"./chunk-CLX6T6AB.js";import{a as he}from"./chunk-ZLMUYIKY.js";import"./chunk-DCGQK4V6.js";import"./chunk-H276HPOG.js";import{a as me}from"./chunk-6MTRE22X.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import{a as pe}from"./chunk-PGDBJOSL.js";import"./chunk-VYXSV6K4.js";import{a as ce}from"./chunk-EYHQ2ZKL.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import"./chunk-2KBEFXEF.js";import"./chunk-O476ULLD.js";import"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import"./chunk-KRIYDIQQ.js";import"./chunk-474G6BPL.js";import{b as de}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import{a as ae}from"./chunk-CBPURQKN.js";import"./chunk-7RKWOSCN.js";import"./chunk-3RA4CRAW.js";import"./chunk-W55ZHKHY.js";import"./chunk-P6EVJYEB.js";import"./chunk-DXXROE3I.js";import"./chunk-3X54ZT7P.js";import"./chunk-GDOAWQKS.js";import"./chunk-TIHANIPI.js";import"./chunk-PF3J5XPT.js";import"./chunk-IRNBEBQA.js";import"./chunk-P2HR36CY.js";import"./chunk-NCZ46DU6.js";import"./chunk-OUE6X2ER.js";import"./chunk-JYH45M2L.js";import"./chunk-SOTWA42R.js";import"./chunk-7LEHDN2Q.js";import"./chunk-3OTK6GG2.js";import"./chunk-KFJBIBDQ.js";import{b as le}from"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import{b as Y}from"./chunk-NNVT5X6O.js";import{b as ee,c as te,h as ie,m as ne,o as oe,z as re}from"./chunk-7HUEGPJN.js";import{b as Z}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{B as K,D as X}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as b,Bc as L,Cc as z,Hc as A,Ic as a,Jc as v,Kc as M,Mc as B,Nc as W,Oc as H,Pc as $,Qc as j,Rc as V,Vc as Q,Xb as C,Xc as U,Zb as S,_b as N,ac as D,bc as I,cc as m,db as F,dc as t,ec as i,ed as O,fc as s,fd as E,gb as l,gd as q,ha as y,mc as x,md as G,oa as c,pa as p,rc as h,tc as g,td as J,yb as k}from"./chunk-5VYDZBNH.js";import{a as T,b as w}from"./chunk-QWWW7GFA.js";var Ce=r=>({"td-cell-hover":r});function Se(r,f){if(r&1){let e=x();t(0,"button",19),h("click",function(){c(e);let n=g();return p(n.setMultipleFulfillment())}),a(1," Set Fulfillment "),i()}}function xe(r,f){if(r&1&&s(0,"variants-dropdown",37),r&2){let e=g().$implicit;m("variants",e==null?null:e.Variants)}}function ve(r,f){if(r&1&&s(0,"variant-with-image",38),r&2){let e=g().$implicit;m("variant",e==null?null:e.Variants[0])}}function Me(r,f){if(r&1&&(t(0,"span"),a(1),i()),r&2){let e=g().$implicit;l(),M("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function ye(r,f){if(r&1){let e=x();t(0,"div",43)(1,"button",44),h("click",function(){c(e);let n=g().$implicit,d=g(2);return p(d.onSetFulfillment(n))}),s(2,"i",45),a(3,"Set Fulfillment "),i(),t(4,"button",46)(5,"span",47),a(6,"Toggle Dropdown"),i()(),t(7,"ul",48)(8,"li")(9,"a",49),h("click",function(){c(e);let n=g().$implicit,d=g(2);return p(d.refreshShippingAndRefNumber(n))}),s(10,"i",50),a(11,"Refresh Shipping Courier "),i()(),t(12,"li")(13,"a",51),s(14,"i",52),a(15,"Set Picklist (Coming Soon!) "),i()()()()}}function be(r,f){if(r&1){let e=x();t(0,"tr")(1,"td")(2,"input",29),H("ngModelChange",function(n){let d=c(e).$implicit;return W(d.selected,n)||(d.selected=n),p(n)}),h("ngModelChange",function(){c(e);let n=g(2),d=V(0);return p(n.onSelectOrder(d))}),i()(),t(3,"td")(4,"div",30),s(5,"img",31),O(6,"channelImage"),t(7,"div",32)(8,"div"),a(9),i(),t(10,"small",33)(11,"span"),a(12),i()()()()(),t(13,"td")(14,"div",34)(15,"div"),s(16,"order-link",35),i(),t(17,"small"),a(18),O(19,"date"),i(),s(20,"br"),t(21,"small"),s(22,"i",36),a(23),i()()(),t(24,"td"),C(25,xe,1,1,"variants-dropdown",37)(26,ve,1,1,"variant-with-image",38),i(),t(27,"td",39),a(28),O(29,"number"),i(),t(30,"td",40)(31,"div",41)(32,"div",34)(33,"div",42)(34,"span"),a(35),i(),C(36,Me,2,1,"span"),i(),t(37,"small"),a(38),i()()()(),t(39,"td",40),C(40,ye,16,0,"div",43),i()()}if(r&2){let e=f.$implicit,o=g(2);l(2),B("ngModel",e.selected),m("disabled",o.selectedChannelType()!=null&&o.selectedChannelType()!=e.MarketType),l(3),m("src",E(6,17,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(4),v(e.Outlet),l(3),v(e.ChannelName),l(4),m("order",e),l(2),M(" ",q(19,19,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(5),M(" ",e.Customer," "),l(),A(U(24,Ce,(e.Variants==null?null:e.Variants.length)>1)),l(),S((e.Variants==null?null:e.Variants.length)>1?25:26),l(3),v(E(29,22,e.Amount)),l(7),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),S(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?36:-1),l(2),M(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(2),S((e==null?null:e.MarketType)!=o.channelType.WooCommerce?40:-1)}}function Oe(r,f){if(r&1){let e=x();t(0,"div",16)(1,"table",20)(2,"thead",21)(3,"tr",22),s(4,"th",23),t(5,"th",24),a(6,"Outlet"),i(),t(7,"th",24),a(8,"Number"),i(),t(9,"th"),a(10,"Items"),i(),t(11,"th",25),a(12,"Amount"),i(),t(13,"th",26),a(14,"Shipping"),i(),s(15,"th",27),i()(),t(16,"tbody"),D(17,be,41,26,"tr",null,N),i()(),t(19,"app-custom-paginator",28),h("next",function(){c(e);let n=g();return p(n.initReadyToShip())})("previous",function(){c(e);let n=g();return p(n.initReadyToShip())}),i()()}if(r&2){let e=g(),o=V(0);l(17),I(o),l(2),m("filter",e.filter())("totaldata",o==null?null:o.length)}}function Pe(r,f){r&1&&(t(0,"div",17),s(1,"app-empty-state"),i())}var Xe=(()=>{class r{constructor(){this.toastr=y(Z),this.orderService=y(R),this.fulfillmentService=y(_e),this.channelType=Y,this.selectedOrders=b([]),this.selectedChannelType=G(()=>{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:void 0}),this.contextMenuEl=J(P),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(T({},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(n=>w(T({},n),{[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(n=>n.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=k({type:r,selectors:[["app-ready-to-ship"]],viewQuery:function(o,n){o&1&&L(n.contextMenuEl,P,5),o&2&&z()},features:[Q([R])],decls:38,vars:11,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...","filterDialogWidth","625px",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,"dialog-filter","grid-filter"],[1,"filter-item","full"],[3,"ngModelChange","multiple","ngModel"],[1,"filter-item"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],["type","number","name","PageNumber",1,"form-control","input-filter",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"form-control","input-filter",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,n){if(o&1){let d=x();$(0),t(1,"mainpanel",1),h("onSubmit",function(){return c(d),p(n.initReadyToShip())})("textChange",function(u){return c(d),p(n.onFilterPropertyChange("Number",u))}),t(2,"actions"),C(3,Se,2,0,"button",2),t(4,"a",3),s(5,"i",4),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div",5)(10,"div",6)(11,"h6"),a(12,"Channel"),i(),t(13,"app-channel-options-v2",7),h("ngModelChange",function(u){return c(d),p(n.onFilterPropertyChange("ListChannelID",u))}),i()(),t(14,"div",8)(15,"h6"),a(16,"From"),i(),t(17,"datepicker",9),h("dateChange",function(u){return c(d),p(n.onFilterPropertyChange("From",u))}),i()(),t(18,"div",8)(19,"h6"),a(20,"To"),i(),t(21,"datepicker",10),h("dateChange",function(u){return c(d),p(n.onFilterPropertyChange("To",u))}),i()(),t(22,"div",8)(23,"h6"),a(24,"Page Number"),i(),t(25,"input",11),h("ngModelChange",function(u){return c(d),p(n.onFilterPropertyChange("PageNumber",+u))}),i()(),t(26,"div",8)(27,"h6"),a(28,"Page Size"),i(),t(29,"input",12),h("ngModelChange",function(u){return c(d),p(n.onFilterPropertyChange("PageSize",+u))}),i()()()(),t(30,"content")(31,"div",13)(32,"div",14)(33,"div",15),C(34,Oe,20,2,"div",16)(35,Pe,2,0,"div",17),i()()()()(),t(36,"app-context-menu",18,0),h("onSelectItem",function(u){return c(d),p(n.onSelectContextItem(u))}),i()}if(o&2){let d=j(n.readyToShip());l(),m("text",n.filter().Number),l(2),S(n.selectedOrders().length>0?3:-1),l(10),m("multiple",!0)("ngModel",n.filter().ListChannelID),l(4),m("date",n.filter().From),l(4),m("date",n.filter().To),l(4),m("ngModel",n.filter().PageNumber),l(4),m("ngModel",n.filter().PageSize),l(5),S(d.length>0?34:35),l(2),m("items",n.contextMenuItems)}},dependencies:[de,ce,pe,re,te,oe,ee,ie,ne,ge,ue,he,fe,ae,le,P,me,se,K,X],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}.dialog-filter.grid-filter[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px;width:100%}.dialog-filter.grid-filter[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.dialog-filter.grid-filter[_ngcontent-%COMP%] .filter-item[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{margin-bottom:6px}.dialog-filter.grid-filter[_ngcontent-%COMP%] .filter-item.full[_ngcontent-%COMP%]{grid-column:1/-1}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] multiwarehouse-tree-select[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] radio-options[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{min-width:0!important;width:100%!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] input.input-filter[_ngcontent-%COMP%], .dialog-filter.grid-filter[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]{height:40px;min-height:40px;border:1px solid #ccc;border-radius:4px;font-size:.875rem;padding-left:.75rem;padding-right:.75rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] input.input-filter[_ngcontent-%COMP%]:focus, .dialog-filter.grid-filter[_ngcontent-%COMP%] input.form-control[_ngcontent-%COMP%]:focus{border:1px solid #86b7fe;box-shadow:none;outline:0}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select .ng-select-container{height:40px!important;min-height:40px!important;align-items:center;border:1px solid #ccc!important;border-radius:4px!important;font-size:.875rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select.ng-select-focused:not(.ng-select-opened)>.ng-select-container{border-color:#86b7fe!important;box-shadow:none!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select .ng-value-container{padding-left:.75rem;padding-right:.75rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select .ng-value, .dialog-filter.grid-filter[_ngcontent-%COMP%] ng-select .ng-placeholder{font-size:.875rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2 .p-multiselect{box-sizing:border-box;width:100%!important;height:40px!important;min-height:40px!important;--p-multiselect-padding-y: 8px;border:1px solid #ccc!important;border-radius:4px!important;font-size:.875rem!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2 .p-multiselect:not(.p-disabled):hover{border-color:#ccc}.dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2 .p-multiselect-label, .dialog-filter.grid-filter[_ngcontent-%COMP%] app-channel-options-v2 .p-multiselect-chip{font-size:.75rem!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined{height:40px!important;min-height:40px!important;padding-left:.75rem!important;padding-right:.75rem!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__leading, .dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__notch, .dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__trailing{border-color:#ccc!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__leading, .dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mdc-notched-outline__trailing{width:.75rem!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .mat-mdc-form-field-infix{display:flex;align-items:center;height:40px;min-height:0!important;padding:0!important}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker input.mat-mdc-input-element{font-size:.875rem}.dialog-filter.grid-filter[_ngcontent-%COMP%] datepicker .datepicker-toggle-icon{height:auto;width:auto;margin-right:0}'],changeDetection:0})}}return r})();export{Xe as ReadyToShipComponent};
@@ -1 +1 @@
1
- import{a as n}from"./chunk-7KLEPZXV.js";import{a as d}from"./chunk-7KBF6RRT.js";import"./chunk-CBPURQKN.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import"./chunk-ZE4OOGMT.js";import{c,g as s}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as a,cc as p,dc as l,ec as m,fc as o,gb as i,yb as r}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var u=(()=>{class e{constructor(){this.priceTabs=a([{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"},{Title:"Multi Channel Row Comparison",Url:"/menu/price/update"}])}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=r({type:e,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,h){t&1&&(l(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),m()()(),o(4,"router-outlet")),t&2&&(i(3),p("Tabs",h.priceTabs()))},dependencies:[d,s,c],encapsulation:2,changeDetection:0})}}return e})();var A=[{path:"",component:u,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-ZTQXHQDN.js").then(e=>e.PricePosChannelComponent)},canActivate:[n],data:{title:"Global Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-V3VWDNJC.js").then(e=>e.PriceSingleChannelComponent)},canActivate:[n],data:{title:"Price Single Channel Comparison"}},{path:"update",loadComponent(){return import("./chunk-GPIOS33D.js").then(e=>e.PriceUpdateComponent)},canActivate:[n],data:{title:"Multi Channel Row Comparison"}}]}];export{A as routes};
1
+ import{a as n}from"./chunk-AW4UMRM6.js";import{a as d}from"./chunk-7KBF6RRT.js";import"./chunk-CBPURQKN.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import"./chunk-ZE4OOGMT.js";import{c,g as s}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as a,cc as p,dc as l,ec as m,fc as o,gb as i,yb as r}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var u=(()=>{class e{constructor(){this.priceTabs=a([{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"},{Title:"Multi Channel Row Comparison",Url:"/menu/price/update"}])}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=r({type:e,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,h){t&1&&(l(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),m()()(),o(4,"router-outlet")),t&2&&(i(3),p("Tabs",h.priceTabs()))},dependencies:[d,s,c],encapsulation:2,changeDetection:0})}}return e})();var A=[{path:"",component:u,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-D7RVGS52.js").then(e=>e.PricePosChannelComponent)},canActivate:[n],data:{title:"Global Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-IEK26S7T.js").then(e=>e.PriceSingleChannelComponent)},canActivate:[n],data:{title:"Price Single Channel Comparison"}},{path:"update",loadComponent(){return import("./chunk-BEXPPIK7.js").then(e=>e.PriceUpdateComponent)},canActivate:[n],data:{title:"Multi Channel Row Comparison"}}]}];export{A as routes};
@@ -1 +1 @@
1
- import{a as F}from"./chunk-ZCXTH7QS.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import"./chunk-2KBEFXEF.js";import"./chunk-O476ULLD.js";import"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import"./chunk-KRIYDIQQ.js";import{e as $}from"./chunk-474G6BPL.js";import{b as B}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import"./chunk-7LEHDN2Q.js";import{a as j}from"./chunk-KFJBIBDQ.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import{a as V}from"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import{c as I,h as R,m as O,z as P}from"./chunk-7HUEGPJN.js";import{b as L,e as A}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{C as E}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as h,Ic as n,Jc as y,Pc as w,Qc as M,Rc as b,Xb as S,Zb as C,cc as m,dc as e,ec as t,ed as D,fc as _,fd as N,gb as c,ha as u,mc as x,oa as p,pa as s,rc as g,tc as T,ua as k,yb as v}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";function J(r,H){if(r&1&&(e(0,"pre",21),n(1),D(2,"json"),t()),r&2){T();let i=b(25);c(),y(N(2,1,i))}}function U(r,H){r&1&&(e(0,"p",22),n(1," Your data will be shown here once it's available "),t())}var ae=(()=>{class r{constructor(){this.httpService=u(A),this.toastr=u(L),this.destroyRef=u(k),this.selectedShopId=h(null),this.trackingNumber=h(null),this.trackingLogData=h(null)}fetchLog(){if(!this.selectedShopId()||!this.trackingNumber()){this.toastr.warning("Please select a channel and enter a tracking number","Warning");return}this.httpService.get(`${V.GetTrackingNumber}?ChannelID=${this.selectedShopId()}&Number=${this.trackingNumber()}`).pipe(j(this.destroyRef)).subscribe(i=>this.trackingLogData.set(i))}copyToClipboard(i){if(!i)return;let l=typeof i=="string"?i:JSON.stringify(i,null,2);navigator.clipboard.writeText(l),this.toastr.success("Copied to clipboard!","Success")}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275cmp=v({type:r,selectors:[["app-tracking-api"]],decls:39,vars:7,consts:[["headerTitle","Tracking 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","Enter tracking 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","trackingLogText"],[1,"text-center","my-12","text-muted"]],template:function(l,o){if(l&1){let a=x();e(0,"mainpanel",0)(1,"actions")(2,"button",1),g("click",function(){return p(a),s(o.fetchLog())}),_(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," Select Shopee channel for tracking number lookup. "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),g("ngModelChange",function(d){return p(a),s(o.selectedShopId.set(d))}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),n(20,"Tracking Number"),t(),e(21,"p",8),n(22," Enter the tracking number to search. "),t()(),e(23,"div",9)(24,"input",12),g("ngModelChange",function(d){return p(a),s(o.trackingNumber.set(d))}),t()()()()(),w(25),e(26,"div",13)(27,"div",14)(28,"div",15)(29,"div",16)(30,"h5"),n(31,"Response"),t(),e(32,"button",17),g("click",function(){p(a);let d=b(25);return s(o.copyToClipboard(d))}),n(33," Copy "),t()(),e(34,"div",18)(35,"div",19)(36,"div",20),S(37,J,3,3,"pre",21)(38,U,2,0,"p",22),t()()()()()()()()()}if(l&2){m("hideSearchBox",!0)("hideSearchDropdown",!0),c(16),m("ngModel",o.selectedShopId()),c(8),m("ngModel",o.trackingNumber()),c();let a=M(o.trackingLogData());c(7),m("disabled",!a),c(5),C(a?37:38)}},dependencies:[B,$,P,I,R,O,F,E],encapsulation:2,changeDetection:0})}}return r})();export{ae as TrackingApiComponent};
1
+ import{a as F}from"./chunk-6MTRE22X.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import"./chunk-2KBEFXEF.js";import"./chunk-O476ULLD.js";import"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import"./chunk-KRIYDIQQ.js";import{e as $}from"./chunk-474G6BPL.js";import{b as B}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import"./chunk-7LEHDN2Q.js";import{a as j}from"./chunk-KFJBIBDQ.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import{a as V}from"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import{c as I,h as R,m as O,z as P}from"./chunk-7HUEGPJN.js";import{b as L,e as A}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{C as E}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as h,Ic as n,Jc as y,Pc as w,Qc as M,Rc as b,Xb as S,Zb as C,cc as m,dc as e,ec as t,ed as D,fc as _,fd as N,gb as c,ha as u,mc as x,oa as p,pa as s,rc as g,tc as T,ua as k,yb as v}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";function J(r,H){if(r&1&&(e(0,"pre",21),n(1),D(2,"json"),t()),r&2){T();let i=b(25);c(),y(N(2,1,i))}}function U(r,H){r&1&&(e(0,"p",22),n(1," Your data will be shown here once it's available "),t())}var ae=(()=>{class r{constructor(){this.httpService=u(A),this.toastr=u(L),this.destroyRef=u(k),this.selectedShopId=h(null),this.trackingNumber=h(null),this.trackingLogData=h(null)}fetchLog(){if(!this.selectedShopId()||!this.trackingNumber()){this.toastr.warning("Please select a channel and enter a tracking number","Warning");return}this.httpService.get(`${V.GetTrackingNumber}?ChannelID=${this.selectedShopId()}&Number=${this.trackingNumber()}`).pipe(j(this.destroyRef)).subscribe(i=>this.trackingLogData.set(i))}copyToClipboard(i){if(!i)return;let l=typeof i=="string"?i:JSON.stringify(i,null,2);navigator.clipboard.writeText(l),this.toastr.success("Copied to clipboard!","Success")}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275cmp=v({type:r,selectors:[["app-tracking-api"]],decls:39,vars:7,consts:[["headerTitle","Tracking 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","Enter tracking 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","trackingLogText"],[1,"text-center","my-12","text-muted"]],template:function(l,o){if(l&1){let a=x();e(0,"mainpanel",0)(1,"actions")(2,"button",1),g("click",function(){return p(a),s(o.fetchLog())}),_(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," Select Shopee channel for tracking number lookup. "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),g("ngModelChange",function(d){return p(a),s(o.selectedShopId.set(d))}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),n(20,"Tracking Number"),t(),e(21,"p",8),n(22," Enter the tracking number to search. "),t()(),e(23,"div",9)(24,"input",12),g("ngModelChange",function(d){return p(a),s(o.trackingNumber.set(d))}),t()()()()(),w(25),e(26,"div",13)(27,"div",14)(28,"div",15)(29,"div",16)(30,"h5"),n(31,"Response"),t(),e(32,"button",17),g("click",function(){p(a);let d=b(25);return s(o.copyToClipboard(d))}),n(33," Copy "),t()(),e(34,"div",18)(35,"div",19)(36,"div",20),S(37,J,3,3,"pre",21)(38,U,2,0,"p",22),t()()()()()()()()()}if(l&2){m("hideSearchBox",!0)("hideSearchDropdown",!0),c(16),m("ngModel",o.selectedShopId()),c(8),m("ngModel",o.trackingNumber()),c();let a=M(o.trackingLogData());c(7),m("disabled",!a),c(5),C(a?37:38)}},dependencies:[B,$,P,I,R,O,F,E],encapsulation:2,changeDetection:0})}}return r})();export{ae as TrackingApiComponent};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-WU7F62BU.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-7KLEPZXV.js";import{a as u}from"./chunk-7KBF6RRT.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import"./chunk-ZE4OOGMT.js";import{c as s}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{cc as c,dc as l,ec as p,fc as a,gb as i,yb as r}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.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-2AJUUZFF.js").then(t=>t.InPosComponent)},canActivate:[n,e],data:{title:"Products in POS"}},{path:"sold-in-channel",loadComponent(){return import("./chunk-7MDPZ4NX.js").then(t=>t.SoldInChannelComponent)},canActivate:[n,e],data:{title:"Products Sold in Channel"}},{path:"not-in-channel",loadComponent(){return import("./chunk-IFVVM2VT.js").then(t=>t.NotInChannelComponent)},canActivate:[n,e],data:{title:"Products not in Channel"}},{path:"not-in-pos",loadComponent(){return import("./chunk-PWHANPEF.js").then(t=>t.NotInPosComponent)},canActivate:[n,e],data:{title:"Products not in POS"}},{path:"duplicate-sku",loadComponent(){return import("./chunk-NBCLCR62.js").then(t=>t.DuplicateSkuComponent)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"duplicate-sku/table",loadComponent(){return import("./chunk-O4ISYWXL.js").then(t=>t.DuplicateSkuV2Component)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"channel-statistic",loadComponent(){return import("./chunk-JMJSZXTK.js").then(t=>t.ChannelStatisticComponent)},canActivate:[n,e],data:{title:"Channel Statistic"}},{path:"notification",loadComponent(){return import("./chunk-VPQODBWR.js").then(t=>t.NotificationComponent)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2",loadComponent(){return import("./chunk-TPKSZN3I.js").then(t=>t.NotificationV2Component)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2/detailV2",loadComponent(){return import("./chunk-OTMUN66U.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}},{path:"notification/detail",loadComponent(){return import("./chunk-4SN2PPHZ.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}}]}];export{T as routes};
1
+ import{a as e}from"./chunk-WU7F62BU.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-AW4UMRM6.js";import{a as u}from"./chunk-7KBF6RRT.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import"./chunk-ZE4OOGMT.js";import{c as s}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{cc as c,dc as l,ec as p,fc as a,gb as i,yb as r}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.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-ELVTO3I5.js").then(t=>t.InPosComponent)},canActivate:[n,e],data:{title:"Products in POS"}},{path:"sold-in-channel",loadComponent(){return import("./chunk-PKA5HSWC.js").then(t=>t.SoldInChannelComponent)},canActivate:[n,e],data:{title:"Products Sold in Channel"}},{path:"not-in-channel",loadComponent(){return import("./chunk-EZOJIVRV.js").then(t=>t.NotInChannelComponent)},canActivate:[n,e],data:{title:"Products not in Channel"}},{path:"not-in-pos",loadComponent(){return import("./chunk-URTVCWVT.js").then(t=>t.NotInPosComponent)},canActivate:[n,e],data:{title:"Products not in POS"}},{path:"duplicate-sku",loadComponent(){return import("./chunk-4LUKCRLU.js").then(t=>t.DuplicateSkuComponent)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"duplicate-sku/table",loadComponent(){return import("./chunk-EUQV2MQN.js").then(t=>t.DuplicateSkuV2Component)},canActivate:[n,e],data:{title:"Duplicate Sku in Channel"}},{path:"channel-statistic",loadComponent(){return import("./chunk-VVTZ4GFI.js").then(t=>t.ChannelStatisticComponent)},canActivate:[n,e],data:{title:"Channel Statistic"}},{path:"notification",loadComponent(){return import("./chunk-TEMYZMY7.js").then(t=>t.NotificationComponent)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2",loadComponent(){return import("./chunk-PCAUPISK.js").then(t=>t.NotificationV2Component)},canActivate:[n,e],data:{title:"Notification"}},{path:"notificationV2/detailV2",loadComponent(){return import("./chunk-OTMUN66U.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}},{path:"notification/detail",loadComponent(){return import("./chunk-UE77KS2V.js").then(t=>t.DetailComponent)},canActivate:[n,e],data:{title:"Notification Detail"}}]}];export{T as routes};
@@ -1 +1 @@
1
- import{a as X,b as Y}from"./chunk-P2ISUSTI.js";import{b as J}from"./chunk-W3ZGCYFJ.js";import{a as K,b as Q}from"./chunk-IO5P3Z5D.js";import{a as H}from"./chunk-VGVK74K7.js";import{b as R,c as q}from"./chunk-EPY6UT4Z.js";import{a as z}from"./chunk-BGFEVOPZ.js";import{ra as G}from"./chunk-7LEHDN2Q.js";import{f as P}from"./chunk-VHUA5GCZ.js";import{b as W}from"./chunk-NNVT5X6O.js";import{a as A,h as B,m as U,z as j}from"./chunk-7HUEGPJN.js";import{Aa as S,Db as N,Eb as V,Ic as f,Jc as x,Mc as w,Nc as y,Oc as b,Vc as E,Xb as L,Zb as k,cc as r,db as T,dc as p,ec as m,fc as v,gb as d,ha as D,id as F,mc as g,md as O,oa as s,pa as a,rc as h,sd as u,tc as o,yb as I}from"./chunk-5VYDZBNH.js";import{a as C,b as _}from"./chunk-QWWW7GFA.js";function Z(l,c){if(l&1){let e=g();p(0,"div",7)(1,"p-checkbox",8),b("ngModelChange",function(t){let i=s(e).$implicit;return y(i.selected,t)||(i.selected=t),a(t)}),h("ngModelChange",function(t){let i=s(e).$implicit,M=o(2);return a(M.onGroupSelect(t,i))}),m(),v(2,"img",9),p(3,"span"),f(4),m()()}if(l&2){let e=c.$implicit;d(),r("binary",!0),w("ngModel",e.selected),d(),r("src",e.img,T),d(2),x(e.label)}}function $(l,c){if(l&1&&(p(0,"div"),f(1),m()),l&2){let e=c.$implicit;d(),x(e.Name)}}function ee(l,c){if(l&1){let e=g();p(0,"p-multiselect",5,0),h("click",function(){s(e);let t=o();return a(t.onClickSelect())}),b("ngModelChange",function(t){s(e);let i=o();return y(i.selectedChannels,t)||(i.selectedChannels=t),a(t)}),h("ngModelChange",function(t){s(e);let i=o();return a(i.onChannelChange(t))})("onClear",function(){s(e);let t=o();return a(t.onClearSelectedChannel())}),V(2,Z,5,4,"ng-template",null,1,F)(4,$,2,1,"ng-template",6),m()}if(l&2){let e=o();r("options",e.effectiveMultiselectOptions())("placeholder",e.placeholder()),w("ngModel",e.selectedChannels),r("showClear",e.clearable())("autofocusFilter",!0)("maxSelectedLabels",e.maxSelectedLabels())("group",!0)}}function te(l,c){if(l&1&&(p(0,"div",11),v(1,"img",12),p(2,"div"),f(3),m()()),l&2){let e=c.$implicit;d(),r("src",e.logo,T),d(2),x(e.Name)}}function ie(l,c){if(l&1){let e=g();p(0,"p-select",10,2),h("click",function(){s(e);let t=o();return a(t.onClickSelect())}),b("ngModelChange",function(t){s(e);let i=o();return y(i.selectedChannels,t)||(i.selectedChannels=t),a(t)}),h("ngModelChange",function(t){s(e);let i=o();return a(i.onChannelChange(t))}),V(2,te,4,2,"ng-template",6),m()}if(l&2){let e=o();r("options",e.effectiveOptions())("placeholder",e.placeholder()),w("ngModel",e.selectedChannels),r("showClear",e.clearable())("autofocusFilter",!0)("filter",!0)}}var ye=(()=>{class l extends H{constructor(){super(),this.authService=D(P),this.multiple=u(!1),this.clearable=u(!0),this.placeholder=u("Select Channels"),this.options=S(this.authService.getChannels()),this.maxSelectedLabels=u(6),this.multiselectOptions=S([]),this.allowedTypes=u(null),this.allowedChannelTypes=u(null),this.effectiveOptions=O(()=>{let e=this.allowedTypes()??this.allowedChannelTypes(),n=this.options();return!e||e.length===0?n:n.map(t=>_(C({},t),{disabled:!e.includes(t.TypeID)}))}),this.effectiveMultiselectOptions=O(()=>{let e=this.allowedTypes()??this.allowedChannelTypes(),n=this.multiselectOptions();return!e||e.length===0?n:n.map(t=>_(C({},t),{disabled:!e.includes(t.value),items:t.items.map(i=>_(C({},i),{disabled:!e.includes(i.TypeID)}))}))}),this.onChange=e=>{},this.initMultiSelectOptions()}initMultiSelectOptions(){let e=this.authService.getChannels(),n=[];e.forEach(t=>{let i=n.find(M=>M.value===t.TypeID);i?i.items.push(t):(i={label:W[t.TypeID],selected:!1,img:t.Img,value:t.TypeID,items:[t]},n.push(i))}),this.multiselectOptions.set(n)}onGroupSelect(e,n){this.selectedChannels=this.selectedChannels?this.selectedChannels:[];let t=n.items.map(i=>i.ID);e?this.selectedChannels=[...this.selectedChannels,...t.filter(i=>!this.selectedChannels.includes(i))]:this.selectedChannels=this.selectedChannels.filter(i=>!t.includes(i)),this.onChange(this.selectedChannels)}onChannelChange(e){this.multiple()?e=e||[]:e=e||z.GuidEmpty,this.checkSelectedGroup(),this.onChange(e)}checkSelectedGroup(){this.multiselectOptions.update(e=>(e.forEach(n=>{let t=n.items.map(i=>i.ID);n.selected=t.every(i=>this.selectedChannels.includes(i))}),e))}onClearSelectedChannel(){this.multiselectOptions.update(e=>(e.forEach(n=>{n.selected=!1}),e)),this.onChange([])}onClickSelect(){this.initTopPosition(),setTimeout(()=>{this.adjustOverlayPosition()},0)}writeValue(e){this.selectedChannels=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){}static{this.\u0275fac=function(n){return new(n||l)}}static{this.\u0275cmp=I({type:l,selectors:[["app-channel-options-v2"]],inputs:{multiple:[1,"multiple"],clearable:[1,"clearable"],placeholder:[1,"placeholder"],maxSelectedLabels:[1,"maxSelectedLabels"],allowedTypes:[1,"allowedTypes"],allowedChannelTypes:[1,"allowedChannelTypes"]},features:[E([{provide:A,multi:!0,useExisting:l}]),N],decls:2,vars:1,consts:[["multiSelect",""],["group",""],["select",""],["optionLabel","Name","optionValue","ID","optionDisabled","disabled","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels","group"],["optionLabel","Name","optionValue","ID","optionDisabled","disabled","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","filter"],["optionLabel","Name","optionValue","ID","optionDisabled","disabled","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"click","ngModelChange","onClear","options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels","group"],["pTemplate","item"],[1,"flex","items-center"],[1,"me-3",3,"ngModelChange","binary","ngModel"],[1,"me-2",2,"width","18px",3,"src"],["optionLabel","Name","optionValue","ID","optionDisabled","disabled","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"click","ngModelChange","options","placeholder","ngModel","showClear","autofocusFilter","filter"],[1,"d-flex","align-items-center","gap-2"],[2,"width","18px",3,"src"]],template:function(n,t){n&1&&L(0,ee,5,7,"p-multiselect",3)(1,ie,3,6,"p-select",4),n&2&&k(t.multiple()?0:1)},dependencies:[Y,X,G,J,j,B,U,q,R,Q,K],styles:["li.p-multiselect-option{margin-left:30px}"],changeDetection:0})}}return l})();export{ye as a};
1
+ import{a as X,b as Y}from"./chunk-P2ISUSTI.js";import{b as J}from"./chunk-W3ZGCYFJ.js";import{a as K,b as Q}from"./chunk-IO5P3Z5D.js";import{a as H}from"./chunk-VGVK74K7.js";import{b as R,c as q}from"./chunk-EPY6UT4Z.js";import{a as z}from"./chunk-BGFEVOPZ.js";import{ra as G}from"./chunk-7LEHDN2Q.js";import{f as P}from"./chunk-XUEJETYQ.js";import{b as W}from"./chunk-NNVT5X6O.js";import{a as A,h as B,m as U,z as j}from"./chunk-7HUEGPJN.js";import{Aa as S,Db as N,Eb as V,Ic as f,Jc as x,Mc as w,Nc as y,Oc as b,Vc as E,Xb as L,Zb as k,cc as r,db as T,dc as p,ec as m,fc as v,gb as d,ha as D,id as F,mc as g,md as O,oa as s,pa as a,rc as h,sd as u,tc as o,yb as I}from"./chunk-5VYDZBNH.js";import{a as C,b as _}from"./chunk-QWWW7GFA.js";function Z(l,c){if(l&1){let e=g();p(0,"div",7)(1,"p-checkbox",8),b("ngModelChange",function(t){let i=s(e).$implicit;return y(i.selected,t)||(i.selected=t),a(t)}),h("ngModelChange",function(t){let i=s(e).$implicit,M=o(2);return a(M.onGroupSelect(t,i))}),m(),v(2,"img",9),p(3,"span"),f(4),m()()}if(l&2){let e=c.$implicit;d(),r("binary",!0),w("ngModel",e.selected),d(),r("src",e.img,T),d(2),x(e.label)}}function $(l,c){if(l&1&&(p(0,"div"),f(1),m()),l&2){let e=c.$implicit;d(),x(e.Name)}}function ee(l,c){if(l&1){let e=g();p(0,"p-multiselect",5,0),h("click",function(){s(e);let t=o();return a(t.onClickSelect())}),b("ngModelChange",function(t){s(e);let i=o();return y(i.selectedChannels,t)||(i.selectedChannels=t),a(t)}),h("ngModelChange",function(t){s(e);let i=o();return a(i.onChannelChange(t))})("onClear",function(){s(e);let t=o();return a(t.onClearSelectedChannel())}),V(2,Z,5,4,"ng-template",null,1,F)(4,$,2,1,"ng-template",6),m()}if(l&2){let e=o();r("options",e.effectiveMultiselectOptions())("placeholder",e.placeholder()),w("ngModel",e.selectedChannels),r("showClear",e.clearable())("autofocusFilter",!0)("maxSelectedLabels",e.maxSelectedLabels())("group",!0)}}function te(l,c){if(l&1&&(p(0,"div",11),v(1,"img",12),p(2,"div"),f(3),m()()),l&2){let e=c.$implicit;d(),r("src",e.logo,T),d(2),x(e.Name)}}function ie(l,c){if(l&1){let e=g();p(0,"p-select",10,2),h("click",function(){s(e);let t=o();return a(t.onClickSelect())}),b("ngModelChange",function(t){s(e);let i=o();return y(i.selectedChannels,t)||(i.selectedChannels=t),a(t)}),h("ngModelChange",function(t){s(e);let i=o();return a(i.onChannelChange(t))}),V(2,te,4,2,"ng-template",6),m()}if(l&2){let e=o();r("options",e.effectiveOptions())("placeholder",e.placeholder()),w("ngModel",e.selectedChannels),r("showClear",e.clearable())("autofocusFilter",!0)("filter",!0)}}var ye=(()=>{class l extends H{constructor(){super(),this.authService=D(P),this.multiple=u(!1),this.clearable=u(!0),this.placeholder=u("Select Channels"),this.options=S(this.authService.getChannels()),this.maxSelectedLabels=u(6),this.multiselectOptions=S([]),this.allowedTypes=u(null),this.allowedChannelTypes=u(null),this.effectiveOptions=O(()=>{let e=this.allowedTypes()??this.allowedChannelTypes(),n=this.options();return!e||e.length===0?n:n.map(t=>_(C({},t),{disabled:!e.includes(t.TypeID)}))}),this.effectiveMultiselectOptions=O(()=>{let e=this.allowedTypes()??this.allowedChannelTypes(),n=this.multiselectOptions();return!e||e.length===0?n:n.map(t=>_(C({},t),{disabled:!e.includes(t.value),items:t.items.map(i=>_(C({},i),{disabled:!e.includes(i.TypeID)}))}))}),this.onChange=e=>{},this.initMultiSelectOptions()}initMultiSelectOptions(){let e=this.authService.getChannels(),n=[];e.forEach(t=>{let i=n.find(M=>M.value===t.TypeID);i?i.items.push(t):(i={label:W[t.TypeID],selected:!1,img:t.Img,value:t.TypeID,items:[t]},n.push(i))}),this.multiselectOptions.set(n)}onGroupSelect(e,n){this.selectedChannels=this.selectedChannels?this.selectedChannels:[];let t=n.items.map(i=>i.ID);e?this.selectedChannels=[...this.selectedChannels,...t.filter(i=>!this.selectedChannels.includes(i))]:this.selectedChannels=this.selectedChannels.filter(i=>!t.includes(i)),this.onChange(this.selectedChannels)}onChannelChange(e){this.multiple()?e=e||[]:e=e||z.GuidEmpty,this.checkSelectedGroup(),this.onChange(e)}checkSelectedGroup(){this.multiselectOptions.update(e=>(e.forEach(n=>{let t=n.items.map(i=>i.ID);n.selected=t.every(i=>this.selectedChannels.includes(i))}),e))}onClearSelectedChannel(){this.multiselectOptions.update(e=>(e.forEach(n=>{n.selected=!1}),e)),this.onChange([])}onClickSelect(){this.initTopPosition(),setTimeout(()=>{this.adjustOverlayPosition()},0)}writeValue(e){this.selectedChannels=e}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){}static{this.\u0275fac=function(n){return new(n||l)}}static{this.\u0275cmp=I({type:l,selectors:[["app-channel-options-v2"]],inputs:{multiple:[1,"multiple"],clearable:[1,"clearable"],placeholder:[1,"placeholder"],maxSelectedLabels:[1,"maxSelectedLabels"],allowedTypes:[1,"allowedTypes"],allowedChannelTypes:[1,"allowedChannelTypes"]},features:[E([{provide:A,multi:!0,useExisting:l}]),N],decls:2,vars:1,consts:[["multiSelect",""],["group",""],["select",""],["optionLabel","Name","optionValue","ID","optionDisabled","disabled","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels","group"],["optionLabel","Name","optionValue","ID","optionDisabled","disabled","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"options","placeholder","ngModel","showClear","autofocusFilter","filter"],["optionLabel","Name","optionValue","ID","optionDisabled","disabled","display","chip","id","multiSelect","appendTo","body",1,"w-100",2,"--p-multiselect-padding-y","12px",3,"click","ngModelChange","onClear","options","placeholder","ngModel","showClear","autofocusFilter","maxSelectedLabels","group"],["pTemplate","item"],[1,"flex","items-center"],[1,"me-3",3,"ngModelChange","binary","ngModel"],[1,"me-2",2,"width","18px",3,"src"],["optionLabel","Name","optionValue","ID","optionDisabled","disabled","appendTo","body",1,"w-100",2,"--p-select-padding-y","12px",3,"click","ngModelChange","options","placeholder","ngModel","showClear","autofocusFilter","filter"],[1,"d-flex","align-items-center","gap-2"],[2,"width","18px",3,"src"]],template:function(n,t){n&1&&L(0,ee,5,7,"p-multiselect",3)(1,ie,3,6,"p-select",4),n&2&&k(t.multiple()?0:1)},dependencies:[Y,X,G,J,j,B,U,q,R,Q,K],styles:["li.p-multiselect-option{margin-left:30px}"],changeDetection:0})}}return l})();export{ye as a};
@@ -1 +1 @@
1
- import{d as x}from"./chunk-VHUA5GCZ.js";import{c as o}from"./chunk-NNVT5X6O.js";import{e as k,g as C}from"./chunk-56N77BXA.js";import{Ic as u,Kc as p,Xb as b,Yc as I,Zb as D,ca as h,cc as s,db as g,dc as c,ec as m,gb as l,ha as i,md as f,sd as _,tc as d,yb as v}from"./chunk-5VYDZBNH.js";var y=(()=>{class e{constructor(){this.localDataService=i(x),this.baseUrl=this.localDataService.getHostName()}getBaseUrl(r){let t="";return o.IsNotEmpty(r.ID)?t=`https://${this.baseUrl}/menu/Orders/Orders/Customer_Invoice/Info?ID=${r.ID}`:t="/menu/Order/detail",t}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var L=(e,a)=>({Number:e,Outlet:a});function N(e,a){if(e&1&&(c(0,"a",0),u(1),m()),e&2){let r,t=d();s("href",t.baseUrl(),g),l(),p(" ",(r=t.order())==null?null:r.Number," ")}}function S(e,a){if(e&1&&(c(0,"a",1),u(1),m()),e&2){let r,t,n=d();s("routerLink",n.baseUrl())("queryParams",I(3,L,(r=n.order())==null?null:r.Number,(r=n.order())==null?null:r.Outlet)),l(),p(" ",(t=n.order())==null?null:t.Number," ")}}var z=(()=>{class e{constructor(){this.order=_(),this.generateLinkService=i(y),this.baseUrl=f(()=>this.generateLinkService.getBaseUrl(this.order())),this.hasOrderID=f(()=>o.IsNotEmpty(this.order()?.ID))}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=v({type:e,selectors:[["order-link"]],inputs:{order:[1,"order"]},decls:2,vars:1,consts:[["target","_blank",3,"href"],["target","_blank",3,"routerLink","queryParams"]],template:function(t,n){t&1&&b(0,N,2,2,"a",0)(1,S,2,6,"a",1),t&2&&D(n.hasOrderID()?0:1)},dependencies:[C,k],encapsulation:2,changeDetection:0})}}return e})();export{z as a};
1
+ import{d as x}from"./chunk-XUEJETYQ.js";import{c as o}from"./chunk-NNVT5X6O.js";import{e as k,g as C}from"./chunk-56N77BXA.js";import{Ic as u,Kc as p,Xb as b,Yc as I,Zb as D,ca as h,cc as s,db as g,dc as c,ec as m,gb as l,ha as i,md as f,sd as _,tc as d,yb as v}from"./chunk-5VYDZBNH.js";var y=(()=>{class e{constructor(){this.localDataService=i(x),this.baseUrl=this.localDataService.getHostName()}getBaseUrl(r){let t="";return o.IsNotEmpty(r.ID)?t=`https://${this.baseUrl}/menu/Orders/Orders/Customer_Invoice/Info?ID=${r.ID}`:t="/menu/Order/detail",t}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var L=(e,a)=>({Number:e,Outlet:a});function N(e,a){if(e&1&&(c(0,"a",0),u(1),m()),e&2){let r,t=d();s("href",t.baseUrl(),g),l(),p(" ",(r=t.order())==null?null:r.Number," ")}}function S(e,a){if(e&1&&(c(0,"a",1),u(1),m()),e&2){let r,t,n=d();s("routerLink",n.baseUrl())("queryParams",I(3,L,(r=n.order())==null?null:r.Number,(r=n.order())==null?null:r.Outlet)),l(),p(" ",(t=n.order())==null?null:t.Number," ")}}var z=(()=>{class e{constructor(){this.order=_(),this.generateLinkService=i(y),this.baseUrl=f(()=>this.generateLinkService.getBaseUrl(this.order())),this.hasOrderID=f(()=>o.IsNotEmpty(this.order()?.ID))}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=v({type:e,selectors:[["order-link"]],inputs:{order:[1,"order"]},decls:2,vars:1,consts:[["target","_blank",3,"href"],["target","_blank",3,"routerLink","queryParams"]],template:function(t,n){t&1&&b(0,N,2,2,"a",0)(1,S,2,6,"a",1),t&2&&D(n.hasOrderID()?0:1)},dependencies:[C,k],encapsulation:2,changeDetection:0})}}return e})();export{z as a};
@@ -1 +1 @@
1
- import{a as le,b as ae,c as me}from"./chunk-DSBGQ5B7.js";import{a as pe}from"./chunk-AUXH37N2.js";import{a as T}from"./chunk-CLX6T6AB.js";import{a as de}from"./chunk-ZLMUYIKY.js";import{a as oe}from"./chunk-ZCXTH7QS.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import{a as re}from"./chunk-PGDBJOSL.js";import"./chunk-VYXSV6K4.js";import{a as ne}from"./chunk-EYHQ2ZKL.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import"./chunk-2KBEFXEF.js";import"./chunk-O476ULLD.js";import"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import"./chunk-KRIYDIQQ.js";import{b as ie}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import{a as te}from"./chunk-CBPURQKN.js";import"./chunk-7RKWOSCN.js";import"./chunk-3RA4CRAW.js";import"./chunk-W55ZHKHY.js";import"./chunk-P6EVJYEB.js";import"./chunk-DXXROE3I.js";import"./chunk-3X54ZT7P.js";import"./chunk-GDOAWQKS.js";import"./chunk-TIHANIPI.js";import"./chunk-PF3J5XPT.js";import"./chunk-IRNBEBQA.js";import"./chunk-P2HR36CY.js";import"./chunk-NCZ46DU6.js";import"./chunk-OUE6X2ER.js";import"./chunk-JYH45M2L.js";import"./chunk-SOTWA42R.js";import"./chunk-7LEHDN2Q.js";import"./chunk-3OTK6GG2.js";import"./chunk-KFJBIBDQ.js";import{b as ee}from"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import{c as Q,h as X,m as Y,o as Z,z as $}from"./chunk-7HUEGPJN.js";import"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{B as J,D as K,z as G}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as D,Hc as z,Ic as a,Jc as S,Kc as w,Mc as g,Nc as _,Oc as f,Pc as A,Qc as R,Rc as H,S as N,Vc as j,Xb as y,Xc as U,Zb as b,_b as I,ac as B,bc as k,cc as u,db as F,dc as t,ec as i,ed as x,fc as c,fd as V,gb as l,gd as q,ha as O,mc as E,oa as p,pa as s,rc as M,tc as C,yb as W}from"./chunk-5VYDZBNH.js";import{a as P,b as L}from"./chunk-QWWW7GFA.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",V(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(V(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=E();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=E();A(0),x(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return p(d),s(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(V(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-DSBGQ5B7.js";import{a as pe}from"./chunk-73GAA2GS.js";import{a as T}from"./chunk-CLX6T6AB.js";import{a as de}from"./chunk-ZLMUYIKY.js";import{a as oe}from"./chunk-6MTRE22X.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import{a as re}from"./chunk-PGDBJOSL.js";import"./chunk-VYXSV6K4.js";import{a as ne}from"./chunk-EYHQ2ZKL.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import"./chunk-2KBEFXEF.js";import"./chunk-O476ULLD.js";import"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import"./chunk-KRIYDIQQ.js";import{b as ie}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import{a as te}from"./chunk-CBPURQKN.js";import"./chunk-7RKWOSCN.js";import"./chunk-3RA4CRAW.js";import"./chunk-W55ZHKHY.js";import"./chunk-P6EVJYEB.js";import"./chunk-DXXROE3I.js";import"./chunk-3X54ZT7P.js";import"./chunk-GDOAWQKS.js";import"./chunk-TIHANIPI.js";import"./chunk-PF3J5XPT.js";import"./chunk-IRNBEBQA.js";import"./chunk-P2HR36CY.js";import"./chunk-NCZ46DU6.js";import"./chunk-OUE6X2ER.js";import"./chunk-JYH45M2L.js";import"./chunk-SOTWA42R.js";import"./chunk-7LEHDN2Q.js";import"./chunk-3OTK6GG2.js";import"./chunk-KFJBIBDQ.js";import{b as ee}from"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import{c as Q,h as X,m as Y,o as Z,z as $}from"./chunk-7HUEGPJN.js";import"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{B as J,D as K,z as G}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as D,Hc as z,Ic as a,Jc as S,Kc as w,Mc as g,Nc as _,Oc as f,Pc as A,Qc as R,Rc as H,S as N,Vc as j,Xb as y,Xc as U,Zb as b,_b as I,ac as B,bc as k,cc as u,db as F,dc as t,ec as i,ed as x,fc as c,fd as V,gb as l,gd as q,ha as O,mc as E,oa as p,pa as s,rc as M,tc as C,yb as W}from"./chunk-5VYDZBNH.js";import{a as P,b as L}from"./chunk-QWWW7GFA.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",V(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(V(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=E();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=E();A(0),x(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return p(d),s(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(V(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 y}from"./chunk-7KLEPZXV.js";import{a as g}from"./chunk-7KBF6RRT.js";import"./chunk-CBPURQKN.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import"./chunk-ZE4OOGMT.js";import{c as h,e as w}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{$b as m,Aa as d,Ic as f,Kc as v,Xc as b,ac as s,bc as c,cc as l,dc as t,ec as n,fc as i,gb as r,yb as u}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var M=e=>[e];function S(e,C){if(e&1&&(t(0,"a",8),f(1),n()),e&2){let o=C.$implicit;l("routerLink",b(2,M,o.url)),r(),v(" ",o.title," ")}}var D=(()=>{class e{constructor(){this.tabs=d([{Title:"Download By Url",Url:"/menu/products/download/by-url",Description:"Download products information by product URL as a parameter"}]),this.moreMenu=d([{title:"Sold In Channel",url:"/menu/products/status/sold-in-channel"},{title:"In POS",url:"/menu/products/status/in-pos"},{title:"Not In Channel",url:"/menu/products/status/not-in-channel"},{title:"Duplicate SKU",url:"/menu/products/status/duplicate-sku"}])}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=u({type:e,selectors:[["app-download"]],decls:13,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"],[1,"dropdown","me-6"],["role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"text-dark"],[1,"fa-solid","fa-bars","fa-lg"],[1,"dropdown-menu","dropdown-menu-end","row"],[1,"d-block"],[1,"dropdown-item",3,"routerLink"]],template:function(a,p){a&1&&(t(0,"nav",0)(1,"div",1)(2,"div"),i(3,"nav-tab",2),n()(),t(4,"div")(5,"div",3)(6,"a",4),i(7,"i",5),n(),t(8,"div",6)(9,"div",7),s(10,S,2,4,"a",8,m),n()()()()(),i(12,"router-outlet")),a&2&&(r(3),l("Tabs",p.tabs()),r(7),c(p.moreMenu()))},dependencies:[g,w,h],encapsulation:2,changeDetection:0})}}return e})();var N=[{path:"",component:D,children:[{path:"by-url",loadComponent(){return import("./chunk-BCQBJKMO.js").then(e=>e.ByUrlComponent)},data:{title:"Download Product By Url"},canActivate:[y]},{pathMatch:"full",path:"",redirectTo:"by-url"}]}];export{N as routes};
1
+ import{a as y}from"./chunk-AW4UMRM6.js";import{a as g}from"./chunk-7KBF6RRT.js";import"./chunk-CBPURQKN.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import"./chunk-ZE4OOGMT.js";import{c as h,e as w}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{$b as m,Aa as d,Ic as f,Kc as v,Xc as b,ac as s,bc as c,cc as l,dc as t,ec as n,fc as i,gb as r,yb as u}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var M=e=>[e];function S(e,C){if(e&1&&(t(0,"a",8),f(1),n()),e&2){let o=C.$implicit;l("routerLink",b(2,M,o.url)),r(),v(" ",o.title," ")}}var D=(()=>{class e{constructor(){this.tabs=d([{Title:"Download By Url",Url:"/menu/products/download/by-url",Description:"Download products information by product URL as a parameter"}]),this.moreMenu=d([{title:"Sold In Channel",url:"/menu/products/status/sold-in-channel"},{title:"In POS",url:"/menu/products/status/in-pos"},{title:"Not In Channel",url:"/menu/products/status/not-in-channel"},{title:"Duplicate SKU",url:"/menu/products/status/duplicate-sku"}])}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=u({type:e,selectors:[["app-download"]],decls:13,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"],[1,"dropdown","me-6"],["role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"text-dark"],[1,"fa-solid","fa-bars","fa-lg"],[1,"dropdown-menu","dropdown-menu-end","row"],[1,"d-block"],[1,"dropdown-item",3,"routerLink"]],template:function(a,p){a&1&&(t(0,"nav",0)(1,"div",1)(2,"div"),i(3,"nav-tab",2),n()(),t(4,"div")(5,"div",3)(6,"a",4),i(7,"i",5),n(),t(8,"div",6)(9,"div",7),s(10,S,2,4,"a",8,m),n()()()()(),i(12,"router-outlet")),a&2&&(r(3),l("Tabs",p.tabs()),r(7),c(p.moreMenu()))},dependencies:[g,w,h],encapsulation:2,changeDetection:0})}}return e})();var N=[{path:"",component:D,children:[{path:"by-url",loadComponent(){return import("./chunk-3BU5F73V.js").then(e=>e.ByUrlComponent)},data:{title:"Download Product By Url"},canActivate:[y]},{pathMatch:"full",path:"",redirectTo:"by-url"}]}];export{N as routes};
@@ -1 +1 @@
1
- import{f as u}from"./chunk-VHUA5GCZ.js";import{a as p}from"./chunk-MDHMVGYC.js";import{b as c}from"./chunk-ZE4OOGMT.js";import{d as l}from"./chunk-56N77BXA.js";import{ca as a,ga as t}from"./chunk-5VYDZBNH.js";var S=(()=>{class e{constructor(o,i,r,s){this.toastr=o,this.authService=i,this.router=r,this.permissionService=s}canActivate(o,i){let r=JSON.parse(window.localStorage.getItem("user")),s=new Date,n=!1;if(r!=null){let h=new Date(r?.Token?.expiredAt);s<h?n=!0:(this.authService.logout(),this.onTokenExpired())}else this.router.navigate([""]),this.onTokenExpired();return n}onTokenExpired(){this.toastr.error("Your session has expired. Please login again.","Session Expired")}static{this.\u0275fac=function(i){return new(i||e)(t(c),t(u),t(l),t(p))}}static{this.\u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{S as a};
1
+ import{f as u}from"./chunk-XUEJETYQ.js";import{a as p}from"./chunk-MDHMVGYC.js";import{b as c}from"./chunk-ZE4OOGMT.js";import{d as l}from"./chunk-56N77BXA.js";import{ca as a,ga as t}from"./chunk-5VYDZBNH.js";var S=(()=>{class e{constructor(o,i,r,s){this.toastr=o,this.authService=i,this.router=r,this.permissionService=s}canActivate(o,i){let r=JSON.parse(window.localStorage.getItem("user")),s=new Date,n=!1;if(r!=null){let h=new Date(r?.Token?.expiredAt);s<h?n=!0:(this.authService.logout(),this.onTokenExpired())}else this.router.navigate([""]),this.onTokenExpired();return n}onTokenExpired(){this.toastr.error("Your session has expired. Please login again.","Session Expired")}static{this.\u0275fac=function(i){return new(i||e)(t(c),t(u),t(l),t(p))}}static{this.\u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{S as a};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-7KLEPZXV.js";import{a as s}from"./chunk-7KBF6RRT.js";import"./chunk-CBPURQKN.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import"./chunk-ZE4OOGMT.js";import{c as d,g as l}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as a,cc as p,dc as c,ec as m,fc as o,gb as r,yb as i}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var u=(()=>{class t{constructor(){this.tabs=a([{Title:"Origin Order API",Url:"/menu/json-api/order-api"},{Title:"Origin Product API",Url:"/menu/json-api/product-api"},{Title:"Origin Escrow API",Url:"/menu/json-api/escrow-api"},{Title:"Tracking API",Url:"/menu/json-api/tracking-api"},{Title:"Return API",Url:"/menu/json-api/return-api"}])}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=i({type:t,selectors:[["app-json-api"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,h){n&1&&(c(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),m()()(),o(4,"router-outlet")),n&2&&(r(3),p("Tabs",h.tabs()))},dependencies:[s,l,d],encapsulation:2,changeDetection:0})}}return t})();var w=[{path:"",component:u,children:[{path:"",redirectTo:"order-api",pathMatch:"full"},{path:"order-api",loadComponent(){return import("./chunk-JI4ELPJW.js").then(t=>t.OrderApiComponent)},canActivate:[e],data:{title:"Order API"}},{path:"product-api",loadComponent(){return import("./chunk-4WHUSUHN.js").then(t=>t.ProductApiComponent)},canActivate:[e],data:{title:"Product API"}},{path:"escrow-api",loadComponent(){return import("./chunk-VAHROJZ6.js").then(t=>t.EscrowApiComponent)},canActivate:[e],data:{title:"Escrow API"}},{path:"tracking-api",loadComponent(){return import("./chunk-U5AEON4A.js").then(t=>t.TrackingApiComponent)},canActivate:[e],data:{title:"Tracking API"}},{path:"return-api",loadComponent(){return import("./chunk-JOSLTOJC.js").then(t=>t.ReturnApiComponent)},canActivate:[e],data:{title:"Return API"}}]}];export{w as routes};
1
+ import{a as e}from"./chunk-AW4UMRM6.js";import{a as s}from"./chunk-7KBF6RRT.js";import"./chunk-CBPURQKN.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import"./chunk-ZE4OOGMT.js";import{c as d,g as l}from"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as a,cc as p,dc as c,ec as m,fc as o,gb as r,yb as i}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var u=(()=>{class t{constructor(){this.tabs=a([{Title:"Origin Order API",Url:"/menu/json-api/order-api"},{Title:"Origin Product API",Url:"/menu/json-api/product-api"},{Title:"Origin Escrow API",Url:"/menu/json-api/escrow-api"},{Title:"Tracking API",Url:"/menu/json-api/tracking-api"},{Title:"Return API",Url:"/menu/json-api/return-api"}])}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=i({type:t,selectors:[["app-json-api"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,h){n&1&&(c(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),m()()(),o(4,"router-outlet")),n&2&&(r(3),p("Tabs",h.tabs()))},dependencies:[s,l,d],encapsulation:2,changeDetection:0})}}return t})();var w=[{path:"",component:u,children:[{path:"",redirectTo:"order-api",pathMatch:"full"},{path:"order-api",loadComponent(){return import("./chunk-P4GP42TS.js").then(t=>t.OrderApiComponent)},canActivate:[e],data:{title:"Order API"}},{path:"product-api",loadComponent(){return import("./chunk-HVN7EMNG.js").then(t=>t.ProductApiComponent)},canActivate:[e],data:{title:"Product API"}},{path:"escrow-api",loadComponent(){return import("./chunk-TOUNXTBL.js").then(t=>t.EscrowApiComponent)},canActivate:[e],data:{title:"Escrow API"}},{path:"tracking-api",loadComponent(){return import("./chunk-5NVINBUN.js").then(t=>t.TrackingApiComponent)},canActivate:[e],data:{title:"Tracking API"}},{path:"return-api",loadComponent(){return import("./chunk-VHYQLZK3.js").then(t=>t.ReturnApiComponent)},canActivate:[e],data:{title:"Return API"}}]}];export{w as routes};
@@ -1,4 +1,4 @@
1
- import{a as Ot}from"./chunk-ZCXTH7QS.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import{a as yt,b as Tt}from"./chunk-FBOJCUGO.js";import{a as It}from"./chunk-62QUGB6I.js";import{a as wt}from"./chunk-EYHQ2ZKL.js";import"./chunk-VGVK74K7.js";import{a as ht}from"./chunk-EPY6UT4Z.js";import{a as Ct}from"./chunk-2KBEFXEF.js";import{c as gt,e as bt,g as vt}from"./chunk-O476ULLD.js";import{a as mt,d as _t,e as ft,i as xt}from"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import{a as U}from"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import{b as et,c as ct,e as ie,f as dt}from"./chunk-KRIYDIQQ.js";import{e as ut}from"./chunk-474G6BPL.js";import{a as rt,b as st}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import{Aa as ot,V as Te,Y as te,Z as q,_ as H,aa as Oe,oa as tt,ra as it,sa as ue,ta as nt,v as de,w as D}from"./chunk-7LEHDN2Q.js";import{b as pt}from"./chunk-KFJBIBDQ.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import{f as Ye}from"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import{a as we}from"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import{a as lt,c as at,h as me,m as he,z as G}from"./chunk-7HUEGPJN.js";import{e as ce}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{D as Xe,F as se,r as re,t as je,u as We,x as Ze,y as Je,z as pe}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as w,Cb as Be,Da as Ae,Db as Fe,Dc as ve,Dd as y,Ea as De,Eb as h,Ec as Re,Ed as N,Ga as Pe,Gc as le,Hc as b,Ic as f,Jc as X,Kc as A,Lc as qe,Mc as K,Nc as $,Oc as z,Pc as He,Rb as I,S as Se,Vc as Ge,Wc as Qe,Xb as Z,Xc as V,Y as j,Yc as ae,Zb as J,Zc as Ie,_b as Ue,ac as Ke,ba as Ve,bc as $e,ca as ne,cc as p,da as Me,db as oe,dc as c,e as be,ec as d,ed as L,fa as Ee,fc as T,fd as B,gb as s,ha as O,id as F,jc as E,kc as k,l as Q,lc as M,mc as x,md as R,oa as u,pa as m,qa as W,r as xe,rb as Ce,rc as g,rd as Y,sd as ee,tc as a,wa as S,wc as ze,xa as ke,xc as Ne,yb as P,yc as C,zb as Le,zc as v}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var St=`
1
+ import{a as Ot}from"./chunk-6MTRE22X.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import"./chunk-IO5P3Z5D.js";import{a as yt,b as Tt}from"./chunk-FBOJCUGO.js";import{a as It}from"./chunk-62QUGB6I.js";import{a as wt}from"./chunk-EYHQ2ZKL.js";import"./chunk-VGVK74K7.js";import{a as ht}from"./chunk-EPY6UT4Z.js";import{a as Ct}from"./chunk-2KBEFXEF.js";import{c as gt,e as bt,g as vt}from"./chunk-O476ULLD.js";import{a as mt,d as _t,e as ft,i as xt}from"./chunk-HBAHB3P5.js";import"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import{a as U}from"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import{b as et,c as ct,e as ie,f as dt}from"./chunk-KRIYDIQQ.js";import{e as ut}from"./chunk-474G6BPL.js";import{a as rt,b as st}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import{Aa as ot,V as Te,Y as te,Z as q,_ as H,aa as Oe,oa as tt,ra as it,sa as ue,ta as nt,v as de,w as D}from"./chunk-7LEHDN2Q.js";import{b as pt}from"./chunk-KFJBIBDQ.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import{f as Ye}from"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import{a as we}from"./chunk-63X2BBS4.js";import"./chunk-MDHMVGYC.js";import"./chunk-NNVT5X6O.js";import{a as lt,c as at,h as me,m as he,z as G}from"./chunk-7HUEGPJN.js";import{e as ce}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{D as Xe,F as se,r as re,t as je,u as We,x as Ze,y as Je,z as pe}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as w,Cb as Be,Da as Ae,Db as Fe,Dc as ve,Dd as y,Ea as De,Eb as h,Ec as Re,Ed as N,Ga as Pe,Gc as le,Hc as b,Ic as f,Jc as X,Kc as A,Lc as qe,Mc as K,Nc as $,Oc as z,Pc as He,Rb as I,S as Se,Vc as Ge,Wc as Qe,Xb as Z,Xc as V,Y as j,Yc as ae,Zb as J,Zc as Ie,_b as Ue,ac as Ke,ba as Ve,bc as $e,ca as ne,cc as p,da as Me,db as oe,dc as c,e as be,ec as d,ed as L,fa as Ee,fc as T,fd as B,gb as s,ha as O,id as F,jc as E,kc as k,l as Q,lc as M,mc as x,md as R,oa as u,pa as m,qa as W,r as xe,rb as Ce,rc as g,rd as Y,sd as ee,tc as a,wa as S,wc as ze,xa as ke,xc as Ne,yb as P,yc as C,zb as Le,zc as v}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var St=`
2
2
  .p-autocomplete {
3
3
  display: inline-flex;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{a as fe,b as be,c as Ce,d as ve,e as we,f as Le,g as Re,h as Ne,j as Ve}from"./chunk-LLMHCE7Y.js";import"./chunk-DCGQK4V6.js";import{a as De,b as Pe}from"./chunk-DEBF436Y.js";import"./chunk-RZM45AEI.js";import{b as ze}from"./chunk-H276HPOG.js";import{a as Te}from"./chunk-SJBVLNCR.js";import{a as Ee}from"./chunk-QNSVLW6H.js";import{a as Me}from"./chunk-ZCXTH7QS.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import{a as ke}from"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import{a as Se}from"./chunk-2KBEFXEF.js";import{c as xe,g as Ie}from"./chunk-O476ULLD.js";import{d as ye}from"./chunk-HBAHB3P5.js";import{a as _e}from"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import{f as ge}from"./chunk-KRIYDIQQ.js";import{b as me}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import{ra as G,sa as W}from"./chunk-7LEHDN2Q.js";import{a as Q,c as ue}from"./chunk-KFJBIBDQ.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import{a as de}from"./chunk-ZSUWHVKX.js";import{f as se}from"./chunk-VHUA5GCZ.js";import"./chunk-MWRLHBU6.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import{b as re,c as ae}from"./chunk-MDHMVGYC.js";import{c as U}from"./chunk-NNVT5X6O.js";import{b as ce,h as pe,m as he,z as R}from"./chunk-7HUEGPJN.js";import{b as oe,e as le}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{D as ie,F as ne}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as S,Eb as T,Fc as C,Ic as d,Jc as te,Kc as g,Mc as O,Nc as H,Oc as K,Vc as A,Wc as L,Xb as D,Xc as k,Y as V,Zb as P,_b as Z,ac as Y,bc as ee,ca as F,cc as h,da as j,db as z,dc as o,ec as l,ed as w,fc as _,fd as x,gb as a,ha as v,id as M,jc as I,kc as E,mc as y,oa as u,pa as m,r as q,rc as b,tc as s,ua as J,yb as B,zb as X}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var Be=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=X({type:i});static \u0275inj=j({imports:[ne,Le,Ie,xe,fe,be,Ce,we,ve,ze,_e,ye,Te,ke,W,R,ge,W]})}return i})();var $=(()=>{class i{constructor(){this.httpSerivice=v(le),this.toastrHandlingService=v(Ee),this.toastr=v(oe)}getChannelSummary$(e=[]){return this.httpSerivice.post("api/inventory/InventorySummary",{ListChannelID:e}).pipe(q(n=>n.Data.map((t,r)=>(t.id=r,t.Img=U.getChannelLogoByTypeId(t.Type),t.Groups=this.groupingProductByOutlet(t.Products),t.LocationNames=this.groupingLocationName(t.Groups),t))))}groupingProductByOutlet(e){let n=null;return U.IsNotEmpty(e[0].Outlet)&&(n=e.reduce((t,r)=>{let p=r.Outlet;return t[p]||(t[p]=[]),t[p].push(r),t},{})),n}groupingLocationName(e){let n=[];return e&&(n=Object.keys(e).map(t=>t)),n}refreshInventory(e,n){let t={ChannelItemID:e.ChannelItemID,ChannelVariationID:e.ChannelVariationID,ChannelID:n,VariantID:e.POSVariantID};return this.httpSerivice.post("/api/Inventory/RefreshInventoryChannel",t).pipe(V(()=>{this.toastr.success("Inventory refreshed successfully","Success")}))}updateChannelInventory(e){let n=this.mappingPayloadUpdateInventory(e);return this.httpSerivice.post("/api/Inventory/UpdateChannel",n).pipe(V(t=>{this.toastrHandlingService.showToastrUploadMultiple(t,this.customizeToastrMessage)}))}customizeToastrMessage(e,n){return`
1
+ import{a as fe,b as be,c as Ce,d as ve,e as we,f as Le,g as Re,h as Ne,j as Ve}from"./chunk-LLMHCE7Y.js";import"./chunk-DCGQK4V6.js";import{a as De,b as Pe}from"./chunk-DEBF436Y.js";import"./chunk-RZM45AEI.js";import{b as ze}from"./chunk-H276HPOG.js";import{a as Te}from"./chunk-SJBVLNCR.js";import{a as Ee}from"./chunk-QNSVLW6H.js";import{a as Me}from"./chunk-6MTRE22X.js";import"./chunk-P2ISUSTI.js";import"./chunk-W3ZGCYFJ.js";import{a as ke}from"./chunk-IO5P3Z5D.js";import"./chunk-FBOJCUGO.js";import"./chunk-VGVK74K7.js";import"./chunk-EPY6UT4Z.js";import{a as Se}from"./chunk-2KBEFXEF.js";import{c as xe,g as Ie}from"./chunk-O476ULLD.js";import{d as ye}from"./chunk-HBAHB3P5.js";import{a as _e}from"./chunk-5BO5IGZG.js";import"./chunk-CP5ER4QN.js";import"./chunk-TZFPNLRF.js";import"./chunk-BGFEVOPZ.js";import"./chunk-HY5QRLIV.js";import"./chunk-AWU3GJLO.js";import{f as ge}from"./chunk-KRIYDIQQ.js";import{b as me}from"./chunk-636FAHVP.js";import"./chunk-7BDGR7WQ.js";import"./chunk-TFTF5VH3.js";import"./chunk-CBPURQKN.js";import{ra as G,sa as W}from"./chunk-7LEHDN2Q.js";import{a as Q,c as ue}from"./chunk-KFJBIBDQ.js";import"./chunk-KMY7VNWE.js";import"./chunk-NMXGNJWD.js";import{a as de}from"./chunk-ZSUWHVKX.js";import{f as se}from"./chunk-XUEJETYQ.js";import"./chunk-SD2GVUJO.js";import"./chunk-HQPDTUOR.js";import"./chunk-QXRG5XYP.js";import"./chunk-63X2BBS4.js";import{b as re,c as ae}from"./chunk-MDHMVGYC.js";import{c as U}from"./chunk-NNVT5X6O.js";import{b as ce,h as pe,m as he,z as R}from"./chunk-7HUEGPJN.js";import{b as oe,e as le}from"./chunk-ZE4OOGMT.js";import"./chunk-56N77BXA.js";import"./chunk-I7RVCGXC.js";import{D as ie,F as ne}from"./chunk-QEN2WRFO.js";import"./chunk-ASFPLYOZ.js";import{Aa as S,Eb as T,Fc as C,Ic as d,Jc as te,Kc as g,Mc as O,Nc as H,Oc as K,Vc as A,Wc as L,Xb as D,Xc as k,Y as V,Zb as P,_b as Z,ac as Y,bc as ee,ca as F,cc as h,da as j,db as z,dc as o,ec as l,ed as w,fc as _,fd as x,gb as a,ha as v,id as M,jc as I,kc as E,mc as y,oa as u,pa as m,r as q,rc as b,tc as s,ua as J,yb as B,zb as X}from"./chunk-5VYDZBNH.js";import"./chunk-QWWW7GFA.js";var Be=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=X({type:i});static \u0275inj=j({imports:[ne,Le,Ie,xe,fe,be,Ce,we,ve,ze,_e,ye,Te,ke,W,R,ge,W]})}return i})();var $=(()=>{class i{constructor(){this.httpSerivice=v(le),this.toastrHandlingService=v(Ee),this.toastr=v(oe)}getChannelSummary$(e=[]){return this.httpSerivice.post("api/inventory/InventorySummary",{ListChannelID:e}).pipe(q(n=>n.Data.map((t,r)=>(t.id=r,t.Img=U.getChannelLogoByTypeId(t.Type),t.Groups=this.groupingProductByOutlet(t.Products),t.LocationNames=this.groupingLocationName(t.Groups),t))))}groupingProductByOutlet(e){let n=null;return U.IsNotEmpty(e[0].Outlet)&&(n=e.reduce((t,r)=>{let p=r.Outlet;return t[p]||(t[p]=[]),t[p].push(r),t},{})),n}groupingLocationName(e){let n=[];return e&&(n=Object.keys(e).map(t=>t)),n}refreshInventory(e,n){let t={ChannelItemID:e.ChannelItemID,ChannelVariationID:e.ChannelVariationID,ChannelID:n,VariantID:e.POSVariantID};return this.httpSerivice.post("/api/Inventory/RefreshInventoryChannel",t).pipe(V(()=>{this.toastr.success("Inventory refreshed successfully","Success")}))}updateChannelInventory(e){let n=this.mappingPayloadUpdateInventory(e);return this.httpSerivice.post("/api/Inventory/UpdateChannel",n).pipe(V(t=>{this.toastrHandlingService.showToastrUploadMultiple(t,this.customizeToastrMessage)}))}customizeToastrMessage(e,n){return`
2
2
  <div>
3
3
  Product ${e.Name} was <div class="d-inline fw-bold">successfully</div> updated to ${n}
4
4
  </div>