marketplacepos 5.45.0 → 5.46.0

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 (75) hide show
  1. package/Marketplace/{chunk-XNVULGQ3.js → chunk-2KDM4NDG.js} +1 -1
  2. package/Marketplace/{chunk-EVQLTXB7.js → chunk-3NFS6ZDY.js} +1 -1
  3. package/Marketplace/{chunk-LK2PMDRL.js → chunk-3NHZEKEI.js} +1 -1
  4. package/Marketplace/{chunk-BERZDE6Y.js → chunk-43E7L4CY.js} +1 -1
  5. package/Marketplace/{chunk-6ZOHSFR5.js → chunk-4UWGWYKJ.js} +1 -1
  6. package/Marketplace/{chunk-37L3YDKT.js → chunk-5QLKBL54.js} +1 -1
  7. package/Marketplace/{chunk-3LN6RMRN.js → chunk-5X2WQKXH.js} +1 -1
  8. package/Marketplace/{chunk-YNJPF4PB.js → chunk-753FTTID.js} +1 -1
  9. package/Marketplace/{chunk-L7KCZLIM.js → chunk-76XHGJE7.js} +1 -1
  10. package/Marketplace/{chunk-H46SHHXR.js → chunk-7WG7VRYR.js} +1 -1
  11. package/Marketplace/{chunk-6VDV7CA2.js → chunk-A6G2H7IF.js} +2 -2
  12. package/Marketplace/{chunk-LQ2NLQKV.js → chunk-A6PK5NP6.js} +1 -1
  13. package/Marketplace/{chunk-ELSSXU6Y.js → chunk-AHLYED4C.js} +1 -1
  14. package/Marketplace/{chunk-FAMP5PPX.js → chunk-AKVBFSUI.js} +1 -1
  15. package/Marketplace/{chunk-LCRPUAWG.js → chunk-AP24AK5A.js} +1 -1
  16. package/Marketplace/{chunk-TZEINVZY.js → chunk-DFFRRMPT.js} +1 -1
  17. package/Marketplace/{chunk-GLVYOZA4.js → chunk-DLURPTQ3.js} +1 -1
  18. package/Marketplace/{chunk-3FPEQHTI.js → chunk-DQ3XZQ7W.js} +1 -1
  19. package/Marketplace/{chunk-PQGPOOCK.js → chunk-DUF425GC.js} +1 -1
  20. package/Marketplace/{chunk-6WCXK7FR.js → chunk-EBCTTFHD.js} +1 -1
  21. package/Marketplace/{chunk-LHX4ZOLA.js → chunk-EOLVRL5H.js} +1 -1
  22. package/Marketplace/chunk-EWTJL2KE.js +1 -0
  23. package/Marketplace/chunk-F6HNCBQX.js +5 -0
  24. package/Marketplace/{chunk-DDVDUCPY.js → chunk-FHH5BTG7.js} +1 -1
  25. package/Marketplace/{chunk-DSQSL5VX.js → chunk-FHPIPQMB.js} +1 -1
  26. package/Marketplace/{chunk-HPFBJL3A.js → chunk-FXVFO74P.js} +1 -1
  27. package/Marketplace/{chunk-RHF7TPRF.js → chunk-GVLJDP5K.js} +1 -1
  28. package/Marketplace/chunk-I2Y5WJEO.js +5 -0
  29. package/Marketplace/chunk-I4WCZRNL.js +1 -0
  30. package/Marketplace/{chunk-4Q5ZSKVO.js → chunk-IL2CPGYS.js} +1 -1
  31. package/Marketplace/{chunk-R7INAZCD.js → chunk-JL5DYPDV.js} +1 -1
  32. package/Marketplace/{chunk-IML3KYQE.js → chunk-KVZ7LQSK.js} +1 -1
  33. package/Marketplace/{chunk-MWTFYMKY.js → chunk-LFMEBDL2.js} +1 -1
  34. package/Marketplace/chunk-LSCMIKJ2.js +1 -0
  35. package/Marketplace/{chunk-JBNND5FL.js → chunk-MVBY6S4R.js} +1 -1
  36. package/Marketplace/chunk-MW6Q6DZF.js +1 -0
  37. package/Marketplace/{chunk-ZKXPDUO4.js → chunk-N6HMVYWS.js} +1 -1
  38. package/Marketplace/{chunk-JJKMVDXR.js → chunk-NERXQ5KH.js} +1 -1
  39. package/Marketplace/{chunk-6VHVQEVM.js → chunk-NFN7BQB3.js} +1 -1
  40. package/Marketplace/{chunk-TC4JRJQL.js → chunk-OIEZ4JUJ.js} +1 -1
  41. package/Marketplace/{chunk-L7EQZACZ.js → chunk-OPKLFRVD.js} +1 -1
  42. package/Marketplace/{chunk-QE3IIBDW.js → chunk-OXOTD33C.js} +1 -1
  43. package/Marketplace/{chunk-YWSUS64O.js → chunk-PFZOP2J7.js} +1 -1
  44. package/Marketplace/{chunk-B7JSVIVV.js → chunk-PONMPAT5.js} +1 -1
  45. package/Marketplace/{chunk-BZBQHO76.js → chunk-QGK4LEFP.js} +1 -1
  46. package/Marketplace/{chunk-FESS3PG3.js → chunk-QNM4JQ46.js} +1 -1
  47. package/Marketplace/{chunk-KUUDZPGN.js → chunk-RDJPSZRF.js} +1 -1
  48. package/Marketplace/{chunk-RLBTXXCD.js → chunk-SMRDRDSH.js} +1 -1
  49. package/Marketplace/{chunk-CNJDARBM.js → chunk-UBAADH47.js} +1 -1
  50. package/Marketplace/{chunk-UML74HNB.js → chunk-UUJWRGO4.js} +1 -1
  51. package/Marketplace/{chunk-RQEQPIMI.js → chunk-V3CLQBGH.js} +1 -1
  52. package/Marketplace/{chunk-FOFXARTB.js → chunk-V4UHOZJ4.js} +1 -1
  53. package/Marketplace/{chunk-FJ455ZYZ.js → chunk-VCTMSNVC.js} +1 -1
  54. package/Marketplace/{chunk-BFPMFJI7.js → chunk-VKFFHT27.js} +1 -1
  55. package/Marketplace/{chunk-XP6R2ZYJ.js → chunk-VPFSU3X4.js} +1 -1
  56. package/Marketplace/{chunk-LF6HWNC2.js → chunk-W3JKSCRF.js} +1 -1
  57. package/Marketplace/{chunk-BYSLV4DQ.js → chunk-WCVSETLP.js} +1 -1
  58. package/Marketplace/{chunk-4ZQCJGTZ.js → chunk-WHNSPPOH.js} +1 -1
  59. package/Marketplace/{chunk-2I7ZZ3F2.js → chunk-WKSCLDT7.js} +1 -1
  60. package/Marketplace/{chunk-D5YID4W4.js → chunk-WVHSR3DQ.js} +1 -1
  61. package/Marketplace/{chunk-MMUSTFHH.js → chunk-X5KQU53P.js} +1 -1
  62. package/Marketplace/{chunk-6NUQGKRV.js → chunk-XB3CW7KH.js} +1 -1
  63. package/Marketplace/{chunk-SHRLQGK3.js → chunk-XEBKP2KL.js} +1 -1
  64. package/Marketplace/{chunk-6V4LFY52.js → chunk-ZDXNJIJA.js} +1 -1
  65. package/Marketplace/{chunk-JFS634DA.js → chunk-ZHDGR4XE.js} +1 -1
  66. package/Marketplace/{chunk-2TN45S53.js → chunk-ZWEHKGL5.js} +1 -1
  67. package/Marketplace/index.html +2 -2
  68. package/Marketplace/{main-ZZ76NVAH.js → main-3TBM4ISM.js} +1 -1
  69. package/package.json +1 -1
  70. package/Marketplace/chunk-2LK24YA5.js +0 -1
  71. package/Marketplace/chunk-3E7JHNVC.js +0 -5
  72. package/Marketplace/chunk-42MFOGHP.js +0 -5
  73. package/Marketplace/chunk-MBBQZFI4.js +0 -1
  74. package/Marketplace/chunk-QUKRHI5J.js +0 -1
  75. package/Marketplace/chunk-RDRNWLJI.js +0 -1
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"marketplacepos","version":"5.45.0"}
1
+ {"name":"marketplacepos","version":"5.46.0"}
@@ -1 +0,0 @@
1
- import{a as re}from"./chunk-2I7ZZ3F2.js";import{b as ee}from"./chunk-YIXZLIPA.js";import"./chunk-HVCIQI7B.js";import"./chunk-QS22J2SC.js";import"./chunk-QP4C4R4W.js";import{a as ne}from"./chunk-B7JSVIVV.js";import{a as ie}from"./chunk-ZBKUZ4CN.js";import{c as oe,d as F,e as V}from"./chunk-3E7JHNVC.js";import"./chunk-PPHTN2H6.js";import"./chunk-DZYBXWL2.js";import"./chunk-RHHHL4OR.js";import{a as Z}from"./chunk-3FPEQHTI.js";import"./chunk-5LQRO4AI.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-WLRPCY65.js";import"./chunk-3RK6DDJD.js";import"./chunk-3UN6FPMN.js";import"./chunk-LDPDLCRL.js";import"./chunk-UMP6ZMEJ.js";import"./chunk-JVNHFIYT.js";import{a as te}from"./chunk-FESS3PG3.js";import"./chunk-3YP6ORBR.js";import"./chunk-FJ455ZYZ.js";import{h as z}from"./chunk-6VHVQEVM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import{a as D}from"./chunk-RDRNWLJI.js";import{b as $,e as q}from"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import"./chunk-PYXL7UF7.js";import"./chunk-PW42BQIY.js";import{d as K,l as Q,m as X,n as Y}from"./chunk-FO7G4GMY.js";import{A as J,c as k,h as j,m as G,o as H}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{g as B,j as U,m as x,n as W}from"./chunk-FXQKRJWU.js";import{$c as P,G as R,Gb as L,Gc as g,Kc as w,Lc as b,Mb as v,Mc as I,Nc as A,Qc as O,Ra as S,Yb as m,Z as T,ad as f,ea as N,ic as r,jc as p,kc as y,oc as M,pa as C,rb as d,tc as u,uc as _,xb as h,ya as s,za as l}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function ae(c,E){if(c&1){let t=M();r(0,"button",16),u("click",function(){s(t);let e=_().ngIf,o=_();return l(o.onUpdateItems(e))}),y(1,"i",17),g(2," Update "),p()}}function se(c,E){if(c&1&&(r(0,"div"),v(1,ae,3,0,"button",15),p()),c&2){let t=E.ngIf,i=_();d(),m("ngIf",i.productService.hasSelectionVariant(t))}}var Le=(()=>{class c{constructor(t,i,e,o,a){this.http=t,this.toastr=i,this.dialog=e,this.productService=o,this.authService=a,this.infinitePagination=C(F),this.updateResHandling=C(V),this.mainPanelService=C(Q),this.channelOptions=S([]),this.searchFilter=S({PageNumber:1,RowCount:50,filterModel:1,text:"",ListChannelID:[]}),this.loaderAPI="PriceLoader/LoadMultiple",this.getDataAPI="Price/GetMultipleChannelComparison",this.rowCountAPI="Inventory/GetMultipleChannelComparisonRowCount",this.data$=this.infinitePagination.data$.pipe(T())}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.getDataAPI,this.infinitePagination.fethRowCountEndpoint=this.rowCountAPI,this.loader$=this.http.post(`/api/${this.loaderAPI}`).pipe(N(t=>{t.Filter={PageNumber:t.Filter.PageNumber,RowCount:t.Filter.RowCount,filterModel:1},this.searchFilter.set(t.Filter),this.mainPanelService.openModalFilter()}))}onShowDifferencePrice(t){let i=1;t&&(i=3),this.searchFilter.update(e=>(e.filterModel=i,e)),this.infinitePagination.reloadPagination(this.searchFilter())}onSearch(t){this.searchFilter.update(i=>(i.text=t,i)),this.infinitePagination.reloadPagination(this.searchFilter()),this.filterSelectedChannels()}filterSelectedChannels(){let i=this.authService.getChannels().filter(e=>this.searchFilter().ListChannelID?.indexOf(e.ID)!==-1);this.channelOptions.set(i)}updatePrice(t){let i=this.productService.selectedVariantProduct(t);if(i.length>0){let e=i.map(n=>({ID:n.ID,Code:n.Code,Price:n.UnitPrice})),a={ListChannelID:this.channelOptions().filter(n=>n.selected).map(n=>n.ID),ListPrice:e};this.http.post(D.UpdateChannelPrice,a).subscribe(n=>{this.infinitePagination.reloadPagination(this.searchFilter()),this.handlingUpdatePrice(n)})}}updatePriceByVariant(t){let i={ID:t.ChannelID,ChannelItemID:t.ChannelItemID,ChannelVariantID:t.ChannelVariationID,Price:t.Price-0,VariantID:t.ID};this.http.post(D.UpdatePriceById,i).subscribe(e=>{this.infinitePagination.reloadPagination(this.searchFilter()),this.handlingUpdatePrice(e)})}handlingUpdatePrice(t){let i=t?.Response?.success_list,e=t?.Response?.failure_list;i?.length>0||e?.length>0?this.updateResHandling.responseHandling(i,e,"Price"):this.toastr.error(t[0]?.Exception,"Error")}onUpdateItems(t){let i=JSON.parse(JSON.stringify(this.channelOptions())),e=this.productService.selectedVariantProduct(t);this.dialog.open(ie,{data:{title:"Updating Price",selectedItems:e,channels:i},width:"400px"}).afterClosed().pipe(R(o=>o!==void 0)).subscribe(()=>{this.updatePrice(t)})}openExportDialog(){this.dialog.open(ee,{data:{title:"Export Multi Channel Comparison",pageNumber:this.searchFilter().PageNumber,rowCount:this.searchFilter().RowCount,filterExport:this.searchFilter(),getRowCountApi:this.rowCountAPI,exportApi:"price/GetExportMultipleChannelComparison"}}).afterClosed().subscribe()}static{this.\u0275fac=function(i){return new(i||c)(h(q),h($),h(K),h(Z),h(z))}}static{this.\u0275cmp=L({type:c,selectors:[["app-price-pos-channel"]],features:[O([F,x,re,V])],decls:32,vars:23,consts:[["headerTitle","Price Comparison","textButton","Search",3,"onSubmit"],[1,"d-flex"],[4,"ngIf"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["productToggleTitle","FILTER DIFFERENT PRICE","table","price",3,"onToggle","onSubmit","showProductToggle","data","channel","hiddenIPOSInventory"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["type","button","class","btn btn-success shadow rounded","data-toggle","modal",3,"click",4,"ngIf"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"]],template:function(i,e){if(i&1){let o=M();A(0),P(1,"async"),r(2,"mainpanel",0),u("onSubmit",function(n){return s(o),l(e.onSearch(n))}),r(3,"actions")(4,"div",1),v(5,se,2,1,"div",2),P(6,"async"),r(7,"button",3),u("click",function(){return s(o),l(e.openExportDialog())}),y(8,"i",4),r(9,"span"),g(10,"Export"),p()()()(),r(11,"filters")(12,"div",5)(13,"label",6),g(14,"Channel"),p(),r(15,"channel-select-options",7),I("ngModelChange",function(n){return s(o),b(e.searchFilter().ListChannelID,n)||(e.searchFilter().ListChannelID=n),l(n)}),p()(),r(16,"div",5)(17,"label",8),g(18,"Page Number"),p(),r(19,"input",9),I("ngModelChange",function(n){return s(o),b(e.searchFilter().PageNumber,n)||(e.searchFilter().PageNumber=n),l(n)}),p()(),r(20,"div")(21,"label",8),g(22,"Page Size"),p(),r(23,"input",9),I("ngModelChange",function(n){return s(o),b(e.searchFilter().RowCount,n)||(e.searchFilter().RowCount=n),l(n)}),p()()(),r(24,"content")(25,"div",10)(26,"div",11)(27,"div",12)(28,"app-table",13),P(29,"async"),u("onToggle",function(n){return s(o),l(e.onShowDifferencePrice(n))})("onSubmit",function(n){return s(o),l(e.updatePriceByVariant(n))}),p(),r(30,"infinite-paginator",14),P(31,"async"),u("onNextPage",function(){return s(o),l(e.infinitePagination.onNextPage(e.searchFilter()))})("onLastPage",function(){return s(o),l(e.infinitePagination.onLastPage(e.searchFilter()))})("onGetRowCount",function(){return s(o),l(e.infinitePagination.getRowCount(e.searchFilter()))}),p()()()()()()}i&2&&(f(1,15,e.loader$),d(5),m("ngIf",f(6,17,e.data$)),d(10),m("multiple",!0),w("ngModel",e.searchFilter().ListChannelID),d(4),w("ngModel",e.searchFilter().PageNumber),d(4),w("ngModel",e.searchFilter().RowCount),d(5),m("showProductToggle",!0)("data",f(29,19,e.data$))("channel",e.channelOptions())("hiddenIPOSInventory",!1),d(2),m("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",f(31,21,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage()))},dependencies:[W,B,U,J,k,H,j,G,oe,Y,X,ne,te],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]})}}return c})();export{Le as PricePosChannelComponent};
@@ -1,5 +0,0 @@
1
- import{a as vt}from"./chunk-RHHHL4OR.js";import{b as Tt}from"./chunk-5LQRO4AI.js";import{a as Pt}from"./chunk-3UN6FPMN.js";import{a as lt}from"./chunk-UMP6ZMEJ.js";import{b as ct,e as pt}from"./chunk-W5L6FMO3.js";import{b as mt}from"./chunk-PW42BQIY.js";import{b as ut,c as ht,h as ft,j as _t,k as Ct}from"./chunk-FO7G4GMY.js";import{A as st,c as ot,h as at,m as rt}from"./chunk-5PS6ZS3N.js";import{a as dt,c as gt}from"./chunk-ERXVXBTU.js";import{r as bt,s as xt}from"./chunk-NNRBGHXB.js";import{g as L,i as nt,m as $,n as R}from"./chunk-FXQKRJWU.js";import{$c as I,Fc as V,G,Gb as S,Gc as m,Hc as w,Ic as j,Jb as X,K as W,Ka as D,Kc as tt,Lc as et,Mb as u,Mc as it,Oa as f,Ra as C,X as z,Yb as h,Z as J,ad as y,ca as Y,cd as A,dc as P,ea as B,f as U,fa as q,g as H,ic as r,ja as M,jc as s,kc as F,lc as T,mc as v,nc as Z,oa as K,oc as _,pa as Q,rb as a,rd as N,tc as b,uc as l,v as x,xb as E,ya as d,za as g}from"./chunk-OJMQBH6T.js";function Nt(e,p){e&1&&Z(0)}function Mt(e,p){if(e&1&&(T(0),u(1,Nt,1,0,"ng-container",5),v()),e&2){l(2);let t=V(4);a(),h("ngTemplateOutlet",t)}}function Dt(e,p){if(e&1&&(r(0,"div",6)(1,"label"),m(2,"Editing Data"),s(),r(3,"div")(4,"span"),m(5),I(6,"number"),s()()()),e&2){let t=l(2);a(5),w(y(6,1,t.value))}}function Et(e,p){if(e&1&&(T(0),u(1,Mt,2,1,"ng-container",4)(2,Dt,7,3,"ng-template",null,1,A),v()),e&2){let t=V(3),i=l();a(),h("ngIf",i.hasPriceEdit)("ngIfElse",t)}}function St(e,p){if(e&1){let t=_();r(0,"div",7)(1,"input",8),it("ngModelChange",function(n){d(t);let o=l();return et(o.value,n)||(o.value=n),g(n)}),s(),r(2,"label",9),m(3),s()()}if(e&2){let t=l();a(),tt("ngModel",t.value),h("max",t.maxEditInventory),a(2),w(t.item.Table)}}var Zt=(()=>{class e{constructor(t,i,n){this.dialogRef=t,this.item=i,this.permissionService=n,this.maxEditInventory=1e5,this.permissionService.hasPermission(lt.PriceUpdate).then(o=>this.hasPriceEdit=o)}ngOnInit(){this.selectedChannel=this.item.Variant.Channel.find(t=>t.ChannelID==this.item.ChannelID),this.selectedChannel.ID=this.item.Variant.ID,this.selectedChannel.Sku=this.item.Variant.Code,this.item.Table=="inventory"?(this.value=this.selectedChannel.Inventory,this.maxEditInventory=this.selectedChannel?.TypeID==mt.Tokopedia?1e5:null):this.item.Table=="price"&&(this.value=this.selectedChannel.Price,this.maxEditInventory=null),this.selectedChannel.ItemName=this.item.Name,this.selectedChannel.VarName=this.item.Variant.Model,this.initModalConfig()}initModalConfig(){let t=this.item.Table=="inventory"?"Update Inventory":"Update Price";this.modalConfig=new _t,this.modalConfig.title=`${t} ${this.item?.Name} in ${this.selectedChannel?.Title}`}onSubmit(){this.item.Table=="inventory"?this.selectedChannel.Inventory=this.value:this.item.Table=="price"&&(this.selectedChannel.Price=this.value),this.dialogRef.close(this.selectedChannel)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||e)(E(ut),E(ht),E(dt))}}static{this.\u0275cmp=S({type:e,selectors:[["app-table-dialog"]],decls:5,vars:4,consts:[["INVENTORY",""],["DISABLED",""],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["matTooltipPosition","above","matTooltip","Cannot edit Unit Price because you dont have access ProductEditor role",1,"info-label-group","mt-3",2,"background","#e9ecef","opacity","1"],[1,"form-label-group","mt-3"],["type","text","name","edit","autoNum","",1,"form-control",3,"ngModelChange","ngModel","max"],["for","edit",1,"text-capitalize"]],template:function(i,n){if(i&1){let o=_();r(0,"modal-material",2),b("onClose",function(){return d(o),g(n.onClose())})("onCancel",function(){return d(o),g(n.onClose())})("onOk",function(){return d(o),g(n.onSubmit())}),r(1,"div",3),u(2,Et,4,2,"ng-container",4)(3,St,4,3,"ng-template",null,0,A),s()()}if(i&2){let o=V(4);h("dynamicValidated",n.value)("config",n.modalConfig),a(2),h("ngIf",n.item.Table=="price")("ngIfElse",o)}},dependencies:[R,L,nt,$,ft,Pt,Tt,vt,Ct,st,ot,at,rt,gt,xt,bt],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}.mat-dialog-content[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;margin-left:.5rem;margin-right:.5rem}.font-lg[_ngcontent-%COMP%]{font-size:large}.font-lgr[_ngcontent-%COMP%]{font-size:larger}"]})}}return e})();var ee=(()=>{class e{transform(t,i,n=0){if(!t)return t;let o=i?parseInt(i,10):10;return t.length>o?t.substring(n,o)+"...":t}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275pipe=X({name:"stringLimit",type:e,pure:!0})}}return e})();function Vt(e,p){if(e&1){let t=_();r(0,"span",6),b("click",function(){d(t);let n=l();return g(n.onGetRowCount())}),r(1,"i",7),m(2,"?"),s()()}}function Lt(e,p){if(e&1&&(T(0),r(1,"span"),m(2),I(3,"number"),s(),v()),e&2){let t=l();a(2),w(y(3,1,t.rowCount()))}}function $t(e,p){if(e&1){let t=_();r(0,"a",10),b("click",function(){d(t);let n=l(2);return g(n.onNextPage())}),F(1,"i",11),m(2," Next"),s()}}function Rt(e,p){if(e&1){let t=_();r(0,"a",12),b("click",function(){d(t);let n=l(2);return g(n.onLastPage())}),F(1,"i",13),m(2," Last"),s()}}function Ot(e,p){if(e&1&&(r(0,"div",5),u(1,$t,3,0,"a",8)(2,Rt,3,0,"a",9),s()),e&2){let t=l();a(),P(t.disableNextButton()&&!t.goToLastPage()?1:-1),a(),P(t.disableNextButton()&&!t.goToLastPage()?2:-1)}}var se=(()=>{class e{constructor(){this.totalData=f(0),this.rowCount=f(),this.pageNumber=f(),this.disableNextButton=f(),this.goToLastPage=f(),this.hideCount=f(),this.nextPage=new D,this.lastPage=new D,this.getRowCount=new D}onNextPage(){this.nextPage.emit()}onLastPage(){this.lastPage.emit()}onGetRowCount(){this.getRowCount.emit()}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=S({type:e,selectors:[["infinite-paginator"]],inputs:{totalData:[1,"totalData"],rowCount:[1,"rowCount"],pageNumber:[1,"pageNumber"],disableNextButton:[1,"disableNextButton"],goToLastPage:[1,"goToLastPage"],hideCount:[1,"hideCount"]},outputs:{nextPage:"onNextPage",lastPage:"onLastPage",getRowCount:"onGetRowCount"},decls:9,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[4,"ngIf"],[1,"btn-group"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0",3,"click"],[1,"fas","fa-share"]],template:function(i,n){i&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),m(3),I(4,"number"),u(5,Vt,3,0,"span",3)(6,Lt,4,3,"ng-container",4),m(7),s()(),u(8,Ot,3,2,"div",5),s()),i&2&&(a(3),j(" Showing 1 - ",y(4,5,n.totalData())," of "),a(2),P(n.hideCount()?5:-1),a(),h("ngIf",!n.hideCount()&&n.rowCount()),a(),j(" records ~ ",n.pageNumber()," Page "),a(),P(n.totalData()>0?8:-1))},dependencies:[R,L,$],encapsulation:2})}}return e})();var ge=(()=>{class e{constructor(t){this.http=t,this.pagination$=new H(null),this._pageNumber=C(1),this.pageNumber=N(()=>this._pageNumber()),this._hideCount=C(!0),this.hideCount=N(()=>this._hideCount()),this._disableNextButton=C(!0),this.disableNextButton=N(()=>this._disableNextButton()),this._goToLastPage=C(!1),this.isLastPage=N(()=>this._goToLastPage()),this.totalData=C(0),this.destroy$=new U,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this._pageNumber.set(t.PageNumber)}setPaginationButtonState(t,i){i==0?this._disableNextButton.set(!0):this._disableNextButton.set(!(i<t.RowCount*t.PageNumber))}reloadPagination(t){t.PageNumber=1,this.pagination$.next(t),this._hideCount.set(!0),this._goToLastPage.set(!1)}onLastPage(t={}){let i=JSON.parse(JSON.stringify(t));this.totalRowCount$=this.http.post(`/api/${this.fethRowCountEndpoint}`,i).pipe(x(n=>n.Total),B(n=>{this._hideCount.set(!1),i.RowCount=n,i.PageNumber=1,this.pagination$.next(i),this._goToLastPage.set(!0)}))}paginationFunction(){return this.pagination$.pipe(Y(this.destroy$),G(t=>t!=null),W(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(x(i=>i.Data?i.Data:[]))),q(this.pagination$),z((t,i)=>{let[n,o]=t,[c]=i;return o.PageNumber==1?[c,o]:[n.concat(c),o]}),B(([t,i])=>{this.setPageNumberFooter(i);let n=this.calculateProductLength(t);this.totalData.set(n),this.setPaginationButtonState(i,n)}),x(([t])=>t),J())}getRowCount(t){this._hideCount.set(!1),this.totalRowCount$=this.http.post(`/API/${this.fethRowCountEndpoint}`,t).pipe(x(i=>i.Total))}calculateProductLength(t=[]){return t.reduce((n,o)=>n+(o.Variants?.length?o.Variants?.length:0),0)}static{this.\u0275fac=function(i){return new(i||e)(K(pt))}}static{this.\u0275prov=M({token:e,factory:e.\u0275fac})}}return e})();var Ce=(()=>{class e{constructor(){this.toastr=Q(ct)}responseHandling(t=[],i=[],n){let o=t.length>0,c=i.length>0;if(!c&&o&&this.toastr.success(`${this.generateSuccessMessage(t.length)}`,"Success",{enableHtml:!0}),c&&o){let k=`<li>${this.generateSuccessMessage(t.length)}</li>`,wt=this.generateErrorMessage(n,i),It=`<ol>${k} ${wt}</ol>`;this.toastr.warning(It,"Warning",{enableHtml:!0})}if(c&&!o){let k=`<ol>${this.generateErrorMessage(n,i)}</ol>`;this.toastr.error(k,"Error",{enableHtml:!0})}}generateSuccessMessage(t){return`
2
- <div>
3
- <span class="fw-bold">Successfully</span> updated ${t} variants in 1 channels
4
- </div>
5
- `}generateErrorMessage(t,i=[]){let n="";return i.forEach((o,c)=>{n+=`<li><span class="fw-bold">Error</span> Updating ${t} for [${o.Name} - ${o.Code}] - <b>${o.Message}</b></li>`}),n}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=M({token:e,factory:e.\u0275fac})}}return e})();export{Zt as a,ee as b,se as c,ge as d,Ce as e};
@@ -1,5 +0,0 @@
1
- import{a as Xe,b as et,c as tt}from"./chunk-FFCWYWBW.js";import"./chunk-G7T42LFR.js";import{a as se}from"./chunk-LHX4ZOLA.js";import{a as He,b as Ke,c as Qe,e as Ze,f as qe,g as Je}from"./chunk-IQ4AFE6X.js";import{e as Ae,k as Ye,l as $e,m as Ue,n as Ge,o as je}from"./chunk-B67DSLBY.js";import"./chunk-74ELVGDK.js";import{a as Re,b as Be,c as Le}from"./chunk-OK3LLCAK.js";import"./chunk-HVCIQI7B.js";import"./chunk-6RLISMEX.js";import"./chunk-TH6VZX34.js";import"./chunk-QS22J2SC.js";import"./chunk-QP4C4R4W.js";import"./chunk-LRUVI2Z3.js";import"./chunk-UYLSZYOD.js";import"./chunk-M7V7A7Z6.js";import"./chunk-QBL6V7QF.js";import"./chunk-DFGZ4L65.js";import{a as ze}from"./chunk-3FPEQHTI.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-WLRPCY65.js";import"./chunk-LDPDLCRL.js";import"./chunk-OZ7LWNOK.js";import"./chunk-UHTMVOX6.js";import{ha as We}from"./chunk-7AE3725T.js";import"./chunk-JVNHFIYT.js";import"./chunk-FJ455ZYZ.js";import{g as Me,h as re}from"./chunk-6VHVQEVM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import{a as oe}from"./chunk-RDRNWLJI.js";import{b as Pe,e as Ie}from"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import{c as Ve,d as ke,e as Fe}from"./chunk-PYXL7UF7.js";import{b as ne,c as x}from"./chunk-PW42BQIY.js";import{m as Oe,n as Ne}from"./chunk-FO7G4GMY.js";import{A as ie,c as be,h as ee,m as te,x as Ee}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as ae,s as le}from"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{J as Te,d as F,f as L,g as A,j as X,k as z,n as M}from"./chunk-FXQKRJWU.js";import{$c as R,Ac as Ce,Bc as Se,Cc as ve,Fc as D,Gb as I,Gc as p,Hc as k,Ic as S,Ka as B,Kc as b,Lc as E,Mb as w,Mc as P,Oa as O,Qc as Q,Ra as _,Rc as ye,Sc as Z,Tc as xe,Yb as s,Z as U,aa as ue,ad as j,bd as De,cd as q,dc as V,ea as G,ic as o,ja as he,jc as r,kc as C,lc as N,m as ce,mc as W,oc as v,pa as y,pb as fe,rb as a,sd as J,tc as g,uc as f,v as K,xb as _e,xc as ge,ya as m,yc as we,za as c}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as de,b as me}from"./chunk-66YHNWRR.js";var at=t=>({"over-due":t});function lt(t,d){if(t&1&&(o(0,"tr",8)(1,"td"),p(2),r(),o(3,"td"),p(4),r(),o(5,"td"),p(6),r(),o(7,"td"),p(8),r()()),t&2){let e=d.$implicit,n=d.index;s("ngClass",Z(5,at,e.Exception)),a(2),k(n+1),a(2),k(e.Number),a(2),k(e.Status),a(2),k(e.Exception)}}function pt(t,d){if(t&1&&(N(0),w(1,lt,9,7,"tr",7),W()),t&2){let e,n=f();a(),s("ngForOf",(e=n.downloadResult())==null?null:e.Body)}}function st(t,d){t&1&&(o(0,"tr",9)(1,"td",10)(2,"div",11),C(3,"i",12),r(),o(4,"h4",13),p(5," There is no order to processed "),r()()())}var it=(()=>{class t{constructor(){this.downloadResult=O()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["complete-step"]],inputs:{downloadResult:[1,"downloadResult"]},decls:16,vars:2,consts:[["EMPTY_DOWNLOAD",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"table"],[1,"thead-light"],["width","1%"],[4,"ngIf","ngIfElse"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1&&(o(0,"div",1)(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr"),C(5,"th",5),o(6,"th"),p(7,"Order Number"),r(),o(8,"th"),p(9,"Status"),r(),o(10,"th"),p(11,"Exception"),r()()(),o(12,"tbody"),w(13,pt,2,1,"ng-container",6)(14,st,6,0,"ng-template",null,0,q),r()()()()),n&2){let l,h=D(15);a(13),s("ngIf",((l=i.downloadResult())==null||l.Body==null?null:l.Body.length)>0)("ngIfElse",h)}},dependencies:[M,F,L,A],encapsulation:2})}}return t})();var mt=t=>({"full-width":t}),ct=()=>({standalone:!0}),nt=(()=>{class t{constructor(e){this.datePipe=e,this.fullWidth=!1,this.timeChange=new B}ngOnInit(){}onTimeChange(e){let n=null;e&&(n=this.datePipe.transform(e,"HH:mm")),this.timeChange.emit(n),this.onTimePickerChange()}onShowCalendar(){let e=document.getElementById("dropdown-filter");if(e){var n=new bootstrap.Dropdown(e);n&&(n._config.autoClose="inside")}}onTimePickerChange(){let e=document.getElementById("dropdown-filter");if(e){var n=new bootstrap.Dropdown(e);n&&(n._config.autoClose="outside")}}static{this.\u0275fac=function(n){return new(n||t)(_e(z))}}static{this.\u0275cmp=I({type:t,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:"fullWidth"},outputs:{timeChange:"timeChange"},decls:4,vars:8,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body",3,"ngModelChange","onSelect","ngClass","baseZIndex","ngModel","timeOnly","ngModelOptions"],["size","small","label","Close",3,"click"]],template:function(n,i){if(n&1){let l=v();o(0,"p-datepicker",1,0),P("ngModelChange",function(u){return m(l),E(i.time,u)||(i.time=u),c(u)}),g("ngModelChange",function(u){return m(l),c(i.onTimeChange(u))})("onSelect",function(){return m(l),c(i.onShowCalendar())}),o(2,"p-footer")(3,"p-button",2),g("click",function(){return m(l),D(1).hideOverlay(),c(i.onShowCalendar())}),r()()()}n&2&&(s("ngClass",Z(5,mt,i.fullWidth))("baseZIndex",1100),b("ngModel",i.time),s("timeOnly",!0)("ngModelOptions",ye(7,ct)))},dependencies:[M,F,ie,ee,te,tt,et,Xe,We],styles:["p-datepicker span.p-datepicker.custom-height{height:44px;width:70px} p-datepicker.full-width span.p-datepicker.custom-height{height:44px;width:100%!important}"]})}}return t})();var Y=(()=>{class t{constructor(){this.httpService=y(Ie),this.toastr=y(Pe),this.datePipe=y(z)}gerChannelDetailById(e){return this.httpService.post(oe.GetChannelDetail,{ID:e})}getOrderPreview(e){return this.httpService.post(oe.GetOrderPreviewV2,e)}getDownloadOrder(e){return this.httpService.post(oe.GetDownloadOrderV2,e)}onPreviewOrder(e){return this.validateDatePreview(e)?this.getOrderPreview(e).pipe(G(n=>{n.Data?.length===0&&this.toastrEmptyPreview(e)})):ce}toastrEmptyPreview(e){let n=this.datePipe.transform(e.From,"dd MMM yyyy"),i=this.datePipe.transform(e.To,"dd MMM yyyy"),l=e.TimeFrom?e.TimeFrom:"",h=e.TimeTo?e.TimeTo:"";this.toastr.info(`There is no orders from ${n} ${l} to ${i} ${h}!`,"No Orders!")}validateDatePreview(e){let n=!0;return e.downloadType==!0?x.getDaysDiff(e?.From,e?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),n=!1):x.getDaysDiff(e?.From,e?.To)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Warning"),n=!1),n}getDateTitle(e,n){let i=x.formatTitleFromDate(new Date(e),new Date(n)),l=this.datePipe.transform(e,i),h=this.datePipe.transform(n,"dd MMM yyyy");return`${i==null?"":l+"-"} ${h}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=he({token:t,factory:t.\u0275fac})}}return t})();function ut(t,d){if(t&1&&(o(0,"ng-option",13),C(1,"img",14),p(2),r()),t&2){let e=d.$implicit;s("value",e.ID),a(),s("src",e==null?null:e.Img,fe),a(),S("",e.Name," ")}}function ht(t,d){if(t&1){let e=v();o(0,"div",8)(1,"div",4)(2,"h5"),p(3,"Type"),r(),o(4,"p",5),p(5,"Select Type want to download"),r()(),o(6,"div",4)(7,"div",15)(8,"div")(9,"mat-radio-group",16),P("ngModelChange",function(i){m(e);let l=f();return E(l.downloadType,i)||(l.downloadType=i),c(i)}),g("ngModelChange",function(){m(e);let i=f();return c(i.onDownloadTypeChange())}),o(10,"mat-radio-button",17),p(11," Orders "),r(),o(12,"mat-radio-button",18),p(13," Disbursement "),r()()()(),o(14,"div",19)(15,"div",20),C(16,"i",21),r(),o(17,"p",22),p(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),r()()()()}if(t&2){let e=f();a(9),b("ngModel",e.downloadType),a(),s("value",!1),a(2),s("value",!0)}}function ft(t,d){t&1&&(o(0,"p",5),p(1," Select Disbursement date "),o(2,"span",23),p(3,"(payment date / order complete date)"),r(),p(4," of the channel you want to download (Max 1 Week). "),r())}function _t(t,d){t&1&&(o(0,"p",5),p(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),r())}function gt(t,d){if(t&1){let e=v();o(0,"div",12)(1,"app-timepicker",24),P("timeChange",function(i){m(e);let l=f();return E(l.startTime,i)||(l.startTime=i),c(i)}),g("timeChange",function(){m(e);let i=f();return c(i.onStartTimeChange())}),r(),o(2,"span",25),p(3,"-"),r(),o(4,"app-timepicker",24),P("timeChange",function(i){m(e);let l=f();return E(l.endTime,i)||(l.endTime=i),c(i)}),g("timeChange",function(){m(e);let i=f();return c(i.onEndTimeChange())}),r()()}if(t&2){let e=f();a(),b("time",e.startTime),a(3),b("time",e.endTime)}}var ot=(()=>{class t{constructor(){this.reset=O(!1),this.authService=y(re),this.tokenService=y(Me),this.downloadService=y(Y),this.downloadType=_(!1),this.selectedChannelId=_(null),this.channelOptions=_(this.authService.getChannels()),this.channelType=ne,this.selectedChannel=_(null),this.showTimePicker=_(!1),this.startDate=_(null),this.endDate=_(null),this.startTime=_("00:00"),this.endTime=_("23:59"),this.minDate=_(new Date),this.maxDate=_(new Date),this.filterData=new B,J(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0}),this.initDateValidation()}initDateValidation(){let e=this.tokenService?.getTokenValue(),n=e?.DownloadRange?JSON.parse(e?.DownloadRange):0;if(n<=0)this.minDate.set(null),this.maxDate.set(null);else{let i=new Date,l=x.addDays(i,n-1);this.minDate.set(l)}}resetFilter(){this.selectedChannelId.update(()=>null),this.startDate.update(()=>null),this.endDate.update(()=>null),this.startTime.update(()=>null),this.endTime.update(()=>null),this.downloadType.update(()=>!1),this.selectedChannel.update(()=>null),this.showTimePicker.update(()=>!1),this.channelDetail$=null}onSelectChannel(){this.selectedChannel.update(()=>this.channelOptions().find(e=>e.ID===this.selectedChannelId())),this.selectedChannel()?this.channelDetail$=this.downloadService.gerChannelDetailById(this.selectedChannelId()).pipe(K(e=>e?.Model),U(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let e=1;this.startDate()&&this.endDate()&&(e=x.getDaysDiff(this.startDate(),this.endDate())),this.showTimePicker.update(()=>e==0),this.emitFilterData()}onDownloadTypeChange(){this.emitFilterData()}onStartTimeChange(){this.emitFilterData()}onEndTimeChange(){this.emitFilterData()}emitFilterData(){this.filterData.emit({channelId:this.selectedChannelId(),startDate:this.startDate(),endDate:this.endDate(),downloadType:this.downloadType(),startTime:this.startTime(),endTime:this.endTime()})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange"},features:[Q([Y,Ae()])],decls:27,vars:13,consts:[["picker",""],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[1,"col-12"],[1,"row"],[1,"col-6"],[1,"text-muted"],["appendTo","body","placeholder","Select Channel",3,"ngModelChange","clearable","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"row","mt-6"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker","min","max"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel","maxlength"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"mt-8"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type",2,"margin-bottom","0px"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download from Create sales order until create logistics status",1,"me-5",3,"value"],["matTooltip","Download only Payment and write off",1,"me-5",3,"value"],[1,"d-flex","border","mb-4","pt-6","px-6","mt-3",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],[1,"fw-bold"],[3,"timeChange","time"],[1,"mx-4"]],template:function(n,i){if(n&1){let l=v();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),p(5,"Select a Channel"),r(),o(6,"p",5),p(7,"Select Channel want to download order"),r()(),o(8,"div",4)(9,"ng-select",6),P("ngModelChange",function(u){return m(l),E(i.selectedChannelId,u)||(i.selectedChannelId=u),c(u)}),g("ngModelChange",function(){return m(l),c(i.onSelectChannel())}),w(10,ut,3,3,"ng-option",7),r()()(),w(11,ht,19,3,"div",8),R(12,"async"),o(13,"div",8)(14,"div",4)(15,"h5"),p(16,"Date Range"),r(),w(17,ft,5,0,"p",5)(18,_t,2,0,"p",5),r(),o(19,"div",4)(20,"div",2)(21,"mat-date-range-input",9)(22,"input",10),P("ngModelChange",function(u){return m(l),E(i.startDate,u)||(i.startDate=u),c(u)}),g("click",function(){m(l);let u=D(25);return c(u.open())}),r(),o(23,"input",11),P("ngModelChange",function(u){return m(l),E(i.endDate,u)||(i.endDate=u),c(u)}),g("click",function(){m(l);let u=D(25);return c(u.open())})("ngModelChange",function(){return m(l),c(i.onFilterDateChange())}),r()(),C(24,"mat-date-range-picker",null,0),r(),w(26,gt,5,2,"div",12),r()()()()}if(n&2){let l,h,u=D(25);a(9),s("clearable",!1),b("ngModel",i.selectedChannelId),a(),s("ngForOf",i.channelOptions()),a(),V((l=j(12,11,i.channelDetail$))!=null&&l.ServiceFeeWriteOff&&((l=i.selectedChannel())==null?null:l.TypeID)==i.channelType.Tokopedia?11:-1),a(6),V(i.downloadType()&&((h=i.selectedChannel())==null?null:h.TypeID)==i.channelType.Tokopedia?17:18),a(4),s("rangePicker",u)("min",i.minDate())("max",i.maxDate()),a(),b("ngModel",i.startDate),a(),b("ngModel",i.endDate),a(3),V(i.showTimePicker()?26:-1)}},dependencies:[M,L,X,Fe,ke,Ve,Le,Re,Be,ie,be,ee,Ee,te,nt,Ge,Ye,je,$e,Ue],styles:[".vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.mt-1rem[_ngcontent-%COMP%]{margin-top:1rem}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}.form-label-group.radio.download-type[_ngcontent-%COMP%]{height:45.5938px!important;border-radius:.375rem!important}"]})}}return t})();var T=function(t){return t.ALL="all",t.SYNC="sync",t.WRONG="wrong",t.UNSYNC="unsync",t}(T||{});var $=function(t){return t[t.DoNothing=0]="DoNothing",t[t.New=1]="New",t[t.Update=2]="Update",t}($||{});var Ct=(t,d)=>({"over-due-today":t,"over-due":d});function St(t,d){if(t&1&&(o(0,"th",21),p(1),r()),t&2){let e=f();a(),S(" ",e.selectedChannel()?"Created Date":"Last Status Update"," ")}}function vt(t,d){if(t&1&&(o(0,"td"),p(1),R(2,"date"),r()),t&2){let e=f().$implicit;a(),S(" ",De(2,1,e.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function yt(t,d){if(t&1&&(o(0,"span"),p(1),r()),t&2){let e=f().$implicit;a(),S(" ",e.ActionString," ")}}function xt(t,d){if(t&1&&(o(0,"li"),p(1),r()),t&2){let e=d.$implicit;a(),S(" ",e," ")}}function Dt(t,d){if(t&1&&(o(0,"ul",27),w(1,xt,2,1,"li",22),r()),t&2){let e=f().$implicit;a(),s("ngForOf",e.ActionString)}}function Tt(t,d){if(t&1&&(o(0,"span",28),C(1,"i",29),r()),t&2){let e=f().$implicit;we("title","Delivery : ",e.DeliveryState,`
2
- Payment : `,e.PaymentState,"")}}function bt(t,d){if(t&1&&(o(0,"tr")(1,"td"),p(2),r(),o(3,"td"),p(4),r(),w(5,vt,3,4,"td",23),o(6,"td")(7,"span"),p(8),r(),p(9),r(),o(10,"td",24)(11,"span"),p(12),r(),p(13),r(),o(14,"td"),w(15,yt,2,1,"span",23)(16,Dt,2,1,"ul",25),r(),o(17,"td"),w(18,Tt,2,3,"span",26),r()()),t&2){let e,n=d.$implicit,i=d.index,l=f(2);a(2),k(i+1),a(2),k(n.Number),a(),s("ngIf",((e=l.selectedChannel())==null?null:e.TypeID)!=l.channelType.Shopee&&((e=l.selectedChannel())==null?null:e.TypeID)!==l.channelType.Tiktok),a(3),S("",n.ChannelStatus," - "),a(),S("",n.ChannelStatusDescription," "),a(),s("ngClass",xe(12,Ct,(n==null?null:n.Action)==l.actionPreviewOrder.Update,(n==null?null:n.Action)==l.actionPreviewOrder.New))("matTooltip",n.POSStatus==91||n.POSStatusDescription=="Conflict"?"There is a missed status at POS, usually fulfillment has not been recorded but the payment has been recorded":""),a(2),S("",n.POSStatus," - "),a(),S("",n.POSStatusDescription," "),a(2),s("ngIf",n.ActionString.length==1),a(),s("ngIf",n.ActionString.length>1),a(2),s("ngIf",n.ChannelStatus!=99&&n.POSStatus!=99)}}function Et(t,d){if(t&1&&(N(0),w(1,bt,19,15,"tr",22),W()),t&2){let e=f();a(),s("ngForOf",e.displayPreviewData())}}function Pt(t,d){t&1&&(o(0,"tr",30)(1,"td",31)(2,"div",32),C(3,"i",33),r(),o(4,"h4",34),p(5," There is no order to processed "),r()()())}var rt=(()=>{class t{constructor(){this.orderPreview=O(),this.selectedChannel=O(),this.channelType=ne,this.allData=_(0),this.syncData=_(0),this.wrongData=_(0),this.unsyncData=_(0),this.pillStatus=_(T.ALL),this.actionPreviewOrder=$,this.previewStatus=T,this.displayPreviewData=_([]),this.exportOrders=new B,J(()=>{this.orderPreview()&&(this.filterPreviewData(T.ALL),this.initLengthStatusData())},{allowSignalWrites:!0})}filterPreviewData(e){this.pillStatus.update(()=>e),this.displayPreviewData.update(()=>this.filterDataByStatus(e))}initLengthStatusData(){this.wrongData.update(()=>this.filterDataByStatus(T.WRONG).length),this.syncData.update(()=>this.filterDataByStatus(T.SYNC).length),this.allData.update(()=>this.orderPreview().length),this.unsyncData.update(()=>this.filterDataByStatus(T.UNSYNC).length)}filterDataByStatus(e){let n=[];switch(e){case T.ALL:n=this.orderPreview();break;case T.SYNC:n=this.orderPreview().filter(i=>i.Action==$.DoNothing);break;case T.WRONG:n=this.orderPreview().filter(i=>i.Action==$.Update);break;case T.UNSYNC:n=this.orderPreview().filter(i=>i.Action==$.New);break}return n}onExportOrders(){this.exportOrders.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["preview-step"]],inputs:{orderPreview:[1,"orderPreview"],selectedChannel:[1,"selectedChannel"]},outputs:{exportOrders:"onExportOrders"},decls:41,vars:11,consts:[["EMPTY",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"row","mx-1","mb-5"],[1,"col-12","d-flex","justify-content-between","align-items-end",2,"padding-left","0px","padding-right","0px"],[1,"nav","nav-pills"],[1,"nav-item","me-3"],[1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],[1,"nav-item","mx-3"],["matTooltip","All Invoice which is already available in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices that have different status between marketplace and POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices which is not exist in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"table"],[1,"thead-light"],["width","1%"],["width","25%"],["width","15%",4,"ngIf"],["width","10%"],[4,"ngIf","ngIfElse"],["width","15%"],[4,"ngFor","ngForOf"],[4,"ngIf"],["matTooltipClass","custom-width-tooltip",3,"ngClass","matTooltip"],["class","ps-5",4,"ngIf"],[3,"title",4,"ngIf"],[1,"ps-5"],[3,"title"],[1,"fas","fa-info-circle","ms-2"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1){let l=v();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"ul",5)(6,"li",6)(7,"button",7),g("click",function(){return m(l),c(i.filterPreviewData(i.previewStatus.ALL))}),p(8),r()(),o(9,"li",8)(10,"button",9),g("click",function(){return m(l),c(i.filterPreviewData(i.previewStatus.SYNC))}),p(11),r()(),o(12,"li",8)(13,"button",10),g("click",function(){return m(l),c(i.filterPreviewData(i.previewStatus.WRONG))}),p(14),r()(),o(15,"li",8)(16,"button",11),g("click",function(){return m(l),c(i.filterPreviewData(i.previewStatus.UNSYNC))}),p(17),r()()()(),o(18,"div")(19,"button",12),g("click",function(){return m(l),c(i.onExportOrders())}),C(20,"i",13),o(21,"span"),p(22,"Export"),r()()()()(),o(23,"table",14)(24,"thead",15)(25,"tr"),C(26,"th",16),o(27,"th",17),p(28,"Number"),r(),w(29,St,2,1,"th",18),o(30,"th",19),p(31,"Channel Status"),r(),o(32,"th",19),p(33,"POS Status"),r(),o(34,"th"),p(35,"Action"),r(),C(36,"th",16),r()(),o(37,"tbody"),w(38,Et,2,1,"ng-container",20)(39,Pt,6,0,"ng-template",null,0,q),r()()()()}if(n&2){let l,h,u=D(40);a(7),s("ngClass",i.pillStatus()=="all"?"btn-secondary text-white":"btn-outline-dark"),a(),S(" All (",i.allData(),") "),a(2),s("ngClass",i.pillStatus()=="sync"?"btn-success":"btn-outline-success"),a(),S(" Existing (",i.syncData(),") "),a(2),s("ngClass",i.pillStatus()=="wrong"?"btn-warning text-white":"btn-outline-warning"),a(),S(" Wrong Status (",i.wrongData(),") "),a(2),s("ngClass",i.pillStatus()=="unsync"?"btn-danger":"btn-outline-danger"),a(),S(" Missing (",i.unsyncData(),") "),a(12),s("ngIf",((l=i.selectedChannel())==null?null:l.TypeID)!=i.channelType.Shopee&&((l=i.selectedChannel())==null?null:l.TypeID)!==i.channelType.Tiktok),a(9),s("ngIf",((h=i.displayPreviewData())==null?null:h.length)>0)("ngIfElse",u)}},dependencies:[M,F,L,A,z,le,ae],encapsulation:2})}}return t})();var It=["stepper"];function Mt(t,d){if(t&1){let e=v();o(0,"div",2)(1,"button",18),g("click",function(){m(e);let i=f();return c(i.onStepperBack())}),p(2," Back "),r(),o(3,"button",19),g("click",function(){m(e);let i=f();return c(i.onNextStep())}),p(4," Next "),r()()}if(t&2){let e=f();a(3),s("disabled",e.disabledNextFilter())}}function Vt(t,d){if(t&1){let e=v();o(0,"button",20),g("click",function(){m(e);let i=f();return c(i.onNextStep())}),p(1," Next "),r()}if(t&2){let e=f();s("disabled",e.disabledNextFilter())}}function kt(t,d){if(t&1){let e=v();o(0,"div",2)(1,"button",21),g("click",function(){m(e);let i=f();return c(i.onNewDownload(!1))}),C(2,"i",22),p(3," Repeat Last "),r(),o(4,"button",23),g("click",function(){m(e);let i=f();return c(i.onNewDownload())}),C(5,"i",24),p(6," New "),r()()}}function Ft(t,d){t&1&&(C(0,"i",25),o(1,"span"),p(2,"Filter"),r())}function Ot(t,d){t&1&&(C(0,"i",26),o(1,"span"),p(2,"Preview"),r())}function Nt(t,d){if(t&1){let e=v();N(0),o(1,"preview-step",27),g("onExportOrders",function(){m(e);let i=f();return c(i.onExportOrders())}),r(),W()}if(t&2){let e=d.ngIf;a(),s("orderPreview",e)}}function Wt(t,d){t&1&&(C(0,"i",28),o(1,"span"),p(2,"Finish"),r())}function Rt(t,d){if(t&1&&(N(0),C(1,"complete-step",29),W()),t&2){let e=d.ngIf;a(),s("downloadResult",e)}}function Bt(t,d){t&1&&(o(0,"h6"),p(1,"1"),r())}function Lt(t,d){t&1&&(o(0,"h6"),p(1,"2"),r())}function At(t,d){t&1&&(o(0,"h6"),p(1,"3"),r())}var mn=(()=>{class t{constructor(){this.downloadService=y(Y),this.orderService=y(se),this.productService=y(ze),this.authService=y(re),this.stepperSelectedIndex=_(0),this.disabledNextFilter=_(!0),this.isResetFilter=_(!1),this.pageTitle=_("Download to POS"),this.cacheKey=_(x.GuidEMpty)}onFilterChange(e){this.filter=e,this.validateDisabledNext()}validateDisabledNext(){this.disabledNextFilter.update(()=>x.IsEmpty(this.filter?.channelId)||!x.isValidDate(this.filter.startDate)||!x.isValidDate(this.filter.endDate))}onNextStep(){switch(this.stepper.selectedIndex){case 0:this.onPreview();let e=this.productService.findChannelById(this.filter.channelId,this.authService.getChannels());this.setPageTitle(`Preview ${e?.Name}`);break;case 1:this.onDownload(),this.setPageTitle("Download");break}}onStepperNext(){this.stepper.selected.completed=!0,this.stepper.next()}onPreview(){let e={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,IsDisbursement:this.filter.downloadType};x.IsNotEmpty(this.filter.startTime)&&(e=me(de({},e),{TimeFrom:this.filter.startTime+":00",TimeTo:this.filter.endTime+":00"})),this.orderPreview$=this.downloadService.onPreviewOrder(e).pipe(G(n=>{n.Data?.length>0&&(this.cacheKey.update(()=>n.CacheKey),this.onStepperNext())}),K(n=>n.Data),U(1))}onExportOrders(){let e={ID:this.filter.channelId,From:this.filter.startDate?this.filter.startDate:null,To:this.filter.endDate?this.filter.endDate:null},n=`Orders ${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)}`;this.orderService.exportOrders(e,n).subscribe()}onDownload(){let e={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,ListPreview:[],IsDisbursement:this.filter.downloadType,CacheKey:this.cacheKey()};this.downloadPreview$=this.orderPreview$.pipe(ue(n=>(e.ListPreview=n,this.downloadService.getDownloadOrder(e))),G(()=>{this.onStepperNext()}),U(1))}setPageTitle(e){this.pageTitle.update(()=>`
3
- ${e} (${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)})
4
- `)}onStepperBack(){this.stepper.previous(),this.pageTitle.update(()=>"Download to POS")}onNewDownload(e=!0){this.isResetFilter.update(()=>e),this.stepper.reset(),this.stepperSelectedIndex.update(()=>0),this.orderPreview$=null,this.downloadPreview$=null,this.pageTitle.update(()=>"Download to POS")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-download-v2"]],viewQuery:function(n,i){if(n&1&&Ce(It,5),n&2){let l;Se(l=ve())&&(i.stepper=l.first)}},features:[Q([Y,se,{provide:He,useValue:{displayDefaultIndicatorType:!1}}])],decls:26,vars:20,consts:[["stepper",""],[3,"hideSearchBox","hideSearchDropdown","headerTitle","description"],[1,"btn-group","me-3"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"disabled"],[1,"container-fluid","pt-5","mt-5"],[1,"row"],[1,"col-12"],[1,"d-flex","justify-content-center"],["linear","",1,"w-100","stepper-download",3,"selectedIndexChange","ngClass","selectedIndex"],["state","filter",3,"completed","editable"],["matStepLabel",""],[1,"w-100",3,"onFilterChange","reset"],["state","preview",3,"editable","completed"],[4,"ngIf"],["state","finish"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","bg-success","text-white",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"click","disabled"],["matTooltip","Creates a new download order using previous channel and date settings.",1,"btn","btn-outline-secondary","border-end-0","d-flex","align-items-center","gap-2",3,"click"],[1,"fa-solid","fa-rotate"],[1,"btn","btn-outline-secondary","btn-fill","d-flex","align-items-center","gap-2",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt"],[1,"fa-solid","fa-filter","me-3"],[1,"fa-solid","fa-file","me-3"],[3,"onExportOrders","orderPreview"],[1,"fa-solid","fa-flag","me-3"],[3,"downloadResult"]],template:function(n,i){if(n&1){let l=v();o(0,"mainpanel",1)(1,"actions"),w(2,Mt,5,1,"div",2)(3,Vt,2,1,"button",3)(4,kt,7,0,"div",2),r(),o(5,"content")(6,"div",4)(7,"div",5)(8,"div",6)(9,"div",7)(10,"mat-stepper",8,0),P("selectedIndexChange",function(u){return m(l),E(i.stepperSelectedIndex,u)||(i.stepperSelectedIndex=u),c(u)}),o(12,"mat-step",9),w(13,Ft,3,0,"ng-template",10),o(14,"filter-step",11),g("onFilterChange",function(u){return m(l),c(i.onFilterChange(u))}),r()(),o(15,"mat-step",12),w(16,Ot,3,0,"ng-template",10)(17,Nt,2,1,"ng-container",13),R(18,"async"),r(),o(19,"mat-step",14),w(20,Wt,3,0,"ng-template",10)(21,Rt,2,1,"ng-container",13),R(22,"async"),r(),w(23,Bt,2,0,"ng-template",15)(24,Lt,2,0,"ng-template",16)(25,At,2,0,"ng-template",17),r()()()()()()()}if(n&2){let l=D(11);s("hideSearchBox",!0)("hideSearchDropdown",!0)("headerTitle",i.pageTitle())("description",i.pageTitle()),a(2),V(i.stepperSelectedIndex()==1?2:-1),a(),V(i.stepperSelectedIndex()==0?3:-1),a(),V(i.stepperSelectedIndex()==2?4:-1),a(6),ge("ngClass","last-edited-step-"+l.selectedIndex),b("selectedIndex",i.stepperSelectedIndex),a(2),s("completed",!1)("editable",i.stepperSelectedIndex()!=2),a(2),s("reset",i.isResetFilter()),a(),s("editable",i.stepperSelectedIndex()!=2)("completed",!1),a(2),s("ngIf",j(18,16,i.orderPreview$)),a(4),s("ngIf",j(22,18,i.downloadPreview$))}},dependencies:[M,F,A,X,it,ot,rt,Je,Ze,Ke,qe,Qe,Ne,Oe,Te,le,ae],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.vertical-radio{display:flex;flex-direction:column;margin:15px 0}.mt-1rem{margin-top:1rem}.dateRange{padding-top:.8rem;padding-bottom:.8rem}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container>div.mat-horizontal-stepper-content:nth-child(1){display:flex;justify-content:left}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container{margin-top:30px}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container>mat-step-header.mat-horizontal-stepper-header{pointer-events:none!important}.form-label-group.radio.download-type{height:45.5938px!important;border-radius:.375rem!important}
5
- `],encapsulation:2})}}return t})();export{mn as DownloadV2Component};
@@ -1 +0,0 @@
1
- import{a as x}from"./chunk-PE5AFID4.js";import{g as u}from"./chunk-6VHVQEVM.js";import{b as h,d as C,i as M,j as v,k as S}from"./chunk-FO7G4GMY.js";import{G as g,n as p}from"./chunk-FXQKRJWU.js";import{Gb as m,Gc as t,Yb as f,ic as i,ja as s,jc as n,kc as d,pa as o,tc as c}from"./chunk-OJMQBH6T.js";var y=(()=>{class e{constructor(){this.dialogRef=o(h),this.route=o(g),this.modalConfig=new v,this.modalConfig.title="Switch to modern authorization",this.modalConfig.customWidth="450px",this.modalConfig.hideCancel=!0,this.modalConfig.headerType=M.Warning,this.modalConfig.okText="Setup"}onClose(){this.dialogRef.close()}onOk(){this.dialogRef.close(),this.route.navigate(["/menu/users"])}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=m({type:e,selectors:[["app-modal-user-migration-confirmation"]],decls:19,vars:1,consts:[[3,"onOk","onCancel","config"],["content",""],[1,"d-flex","align-items-center","justify-content-between","gap-6"],[1,"text-center",2,"width","300px"],[1,"fa-solid","fa-users-gear","fa-6x"],[1,"lh-base"],["href","https://support.dealpos.com/en/collections/16213478-user-group","target","_blank"]],template:function(r,l){r&1&&(i(0,"modal-material",0),c("onOk",function(){return l.onOk()})("onCancel",function(){return l.onClose()}),i(1,"div",1)(2,"div",2)(3,"div",3),d(4,"i",4),n(),i(5,"div",5)(6,"p"),t(7," We have introduced a new Modern Authorization, Please switch from "),i(8,"b"),t(9,"legacy"),n(),t(10," to "),i(11,"b"),t(12,"modern"),n(),t(13," authorization by inviting your users. "),n(),i(14,"div"),t(15," Please refer to this "),i(16,"a",6),t(17,"article"),n(),t(18," for more information "),n()()()()()),r&2&&f("config",l.modalConfig)},dependencies:[p,S],encapsulation:2})}}return e})();var R=(()=>{class e{constructor(){this.dialog=o(C),this.tokenService=o(u),this.dialogRef=null}openDialogMigrationConfirmation(){this.tokenService.getUser()?.AuthorizationMode===x.Legacy&&!this.dialogRef&&(this.dialogRef=this.dialog.open(y),this.dialogRef.afterClosed().subscribe(()=>{this.dialogRef=null}))}resetDialogState(){this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=s({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var B=(e,b)=>(o(R).openDialogMigrationConfirmation(),!0);export{B as a};
@@ -1 +0,0 @@
1
- import{a as Ve,b as Ae,c as De}from"./chunk-UHJEXTOG.js";import{a as Ie}from"./chunk-H46SHHXR.js";import{a as U}from"./chunk-LHX4ZOLA.js";import{a as Ne}from"./chunk-PFXOFSJG.js";import{a as Pe}from"./chunk-OLANEXLB.js";import"./chunk-BQIB3N6V.js";import"./chunk-B67DSLBY.js";import"./chunk-6RLISMEX.js";import"./chunk-TH6VZX34.js";import"./chunk-QS22J2SC.js";import"./chunk-QP4C4R4W.js";import"./chunk-5LQRO4AI.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-WLRPCY65.js";import"./chunk-3RK6DDJD.js";import"./chunk-3UN6FPMN.js";import"./chunk-LDPDLCRL.js";import"./chunk-JVNHFIYT.js";import{a as Ee}from"./chunk-FESS3PG3.js";import"./chunk-3YP6ORBR.js";import{a as Me}from"./chunk-UXPULNCR.js";import"./chunk-6VHVQEVM.js";import"./chunk-Z3ITXK3D.js";import{a as Ce}from"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import{a as A}from"./chunk-RDRNWLJI.js";import{b as L,e as fe}from"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import"./chunk-PYXL7UF7.js";import{b as m,c as _e}from"./chunk-PW42BQIY.js";import{b as be,d as Se,f as we,g as ve,h as ye,m as Te,n as Le}from"./chunk-FO7G4GMY.js";import{A as B,b as ue,c as he,h as R,m as z,o as ge}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as xe,s as ke}from"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{j as me,k as ce,m as de,n as W}from"./chunk-FXQKRJWU.js";import{$c as V,B as Q,G as X,Gb as N,Gc as p,Hc as E,Ic as I,J as P,Kc as C,Lc as b,Mb as v,Mc as S,Nc as re,Oc as ae,Pc as F,Qc as le,Ra as H,Sc as pe,Yb as x,Z as Y,aa as Z,ac as te,ad as O,bd as se,dc as y,ec as ie,gc as ne,hc as oe,ic as o,ja as D,jc as a,kc as g,oa as j,oc as k,pa as w,pb as $,q as M,rb as l,tc as f,uc as c,v as T,xb as ee,ya as d,za as u}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as q,b as G}from"./chunk-66YHNWRR.js";var Fe=(()=>{class n{constructor(e,i){this.http=e,this.toastr=i}downloadMultipleShippingLabel(e){let i=e.map(t=>{switch(t.channelType){case m.Tokopedia:return this.printTokopediaShippingLabel(t.number).pipe(T(r=>({result:r,channelType:m.Tokopedia})),P(r=>M(null)));case m.Tiktok:return this.printTiktokShippingLabel(t.number,t.shopID).pipe(T(r=>({result:r,channelType:m.Tiktok})),P(r=>M(null)));case m.Shopee:return this.printShopeeShippingLabel(t.number,t.shopID).pipe(T(r=>({result:r,channelType:m.Shopee})),P(r=>M(null)));case m.Lazada:return this.printLazadaShippingLabel(t.number,t.shopID).pipe(T(r=>({result:r,channelType:m.Lazada})),P(r=>M(null)))}});Q(i).subscribe(t=>{t.filter(r=>r!=null).forEach(r=>{this.handleShippingLabelResponse(r.result,r.channelType)})})}printTokopediaShippingLabel(e,i=!1){let t={OrderNumber:e,Printed:i};return this.http.post(A.TokopediaPrintShippingLabel,t)}printTiktokShippingLabel(e,i){let t={ShopID:i,OrderNumber:e};return this.http.post(A.TiktokPrintShippingLabel,t)}printShopeeShippingLabel(e,i){let t={ShopID:i,OrderNumber:e};return this.http.post(A.ShopeePrintShippingLabel,t).pipe(T(r=>(r&&(r.Number=e),r)))}printLazadaShippingLabel(e,i){let t={ShopID:i,OrderNumber:e};return this.http.post(A.LazadaPrintShippingLabel,t)}handleShippingLabelResponse(e,i){switch(i){case m.Tokopedia:let h=window.open("about:blank","_blank");h.document.write(e.File),h.document.close();break;case m.Tiktok:e.data!=null?window.open(e.data.doc_url,"_blank"):this.toastr.error("Cannot Print the Shipping Label,The invoice Number is not set to Pickup","Cannot Print");break;case m.Shopee:var t=Uint8Array.from(atob(e.File),s=>s.charCodeAt(0)),r=new Blob([t],{type:"octet/stream"});_e.openDownloadFile(r,`${e?.Number}.pdf`);break;case m.Lazada:e?.result?.data!=null?window.open(e?.result?.data?.pdf_url,"_blank"):this.toastr.error(e.message,"Cannot Print");break}}static{this.\u0275fac=function(i){return new(i||n)(j(fe),j(L))}}static{this.\u0275prov=D({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Oe=(()=>{class n{constructor(e){this.dialogRef=e,this.tandaiSudahDicetak=!1}onCancel(){this.dialogRef.close()}onPrint(){this.dialogRef.close(this.tandaiSudahDicetak?1:0)}static{this.\u0275fac=function(i){return new(i||n)(ee(be))}}static{this.\u0275cmp=N({type:n,selectors:[["app-print-tokopedia"]],decls:17,vars:1,consts:[[1,"container-fluid"],[1,"text-center","mb-4","fw-bold","mt-6"],[1,"row"],[1,"col-12"],[1,"fs-5"],[1,"d-flex","align-items-center","text-center","justify-content-center","mb-8"],[1,"me-2",3,"ngModelChange","ngModel"],[1,"fs-5","pt-1"],[1,"d-flex","align-items-center","justify-content-center"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"click"]],template:function(i,t){i&1&&(o(0,"div",0)(1,"h2",1),p(2,"Cetak label pesanan"),a(),o(3,"mat-dialog-content")(4,"div",2)(5,"div",3)(6,"p",4),p(7,"Kamu akan mencetak label yang berisi detail pesanan"),a(),o(8,"div",5)(9,"mat-checkbox",6),S("ngModelChange",function(h){return b(t.tandaiSudahDicetak,h)||(t.tandaiSudahDicetak=h),h}),a(),o(10,"span",7),p(11,'Pesanan telah ditandai sebagai "Sudah Dicetak"'),a()()()()(),o(12,"mat-dialog-actions",8)(13,"button",9),f("click",function(){return t.onCancel()}),p(14,"Cancel"),a(),o(15,"button",10),f("click",function(){return t.onPrint()}),p(16,"Cetak Pesanan"),a()()()),i&2&&(l(9),C("ngModel",t.tandaiSudahDicetak))},dependencies:[W,B,R,z,ye,ve,we],encapsulation:2})}}return n})();var K=(()=>{class n{constructor(){this.shippingLabelService=w(Fe),this.toastrService=w(L),this.dialog=w(Se)}printShippingLabel(e){switch(e?.MarketType){case m.Shopee:this.shippingLabelService.printShopeeShippingLabel(e.Number,e.ShopID).subscribe(i=>this.shippingLabelService.handleShippingLabelResponse(i,m.Shopee));break;case m.Tiktok:this.shippingLabelService.printTiktokShippingLabel(e.Number,e.ShopID).subscribe(i=>this.shippingLabelService.handleShippingLabelResponse(i,m.Tiktok));break;case m.Tokopedia:this.dialog.open(Oe).afterClosed().pipe(X(i=>Ce.IsNotEmpty(i)),Z(i=>this.shippingLabelService.printTokopediaShippingLabel(e.Number,i))).subscribe(i=>this.shippingLabelService.handleShippingLabelResponse(i,m.Tokopedia));break;case m.Lazada:this.shippingLabelService.printLazadaShippingLabel(e.Number,e.ShopID).subscribe(i=>this.shippingLabelService.handleShippingLabelResponse(i,m.Lazada));break;case m.Shopify:this.toastrService.error("Shopify not supported","Error Not supported");break}}printMultipleShippingLabel(e){let i=e.map(t=>({number:t.Number,shopID:t.ShopID,channelType:t.MarketType}));this.shippingLabelService.downloadMultipleShippingLabel(i)}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275prov=D({token:n,factory:n.\u0275fac})}}return n})();var Re=n=>({"td-cell-hover":n});function ze(n,_){if(n&1){let e=k();o(0,"button",18),f("click",function(){d(e);let t=c(),r=F(0);return u(t.onDowloadShippingLabel(r))}),g(1,"i",19),o(2,"span"),p(3,"Download Shipping Label"),a()()}}function Be(n,_){if(n&1){let e=k();o(0,"input",41),S("ngModelChange",function(t){d(e);let r=c().$implicit;return b(r.selected,t)||(r.selected=t),u(t)}),f("ngModelChange",function(){d(e);let t=c(3),r=F(0);return u(t.onSelectOrders(r))}),a()}if(n&2){let e=c().$implicit;C("ngModel",e.selected)}}function je(n,_){if(n&1&&g(0,"variants-dropdown",35),n&2){let e=c().$implicit;x("variants",e==null?null:e.Variants)}}function He(n,_){if(n&1&&g(0,"variant-with-image",36),n&2){let e=c().$implicit;x("variant",e==null?null:e.Variants[0])}}function Ue(n,_){if(n&1&&(o(0,"span"),p(1),a()),n&2){let e=c().$implicit;l(),I("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Je(n,_){if(n&1){let e=k();o(0,"div")(1,"button",42),f("click",function(){d(e);let t=c().$implicit,r=c(2);return u(r.refreshShippingAndRefNumber(t))}),g(2,"i",43),a()()}}function Ke(n,_){if(n&1){let e=k();o(0,"button",44),f("click",function(){d(e);let t=c().$implicit,r=c(2);return u(r.onPrintShippingLabel(t))}),g(1,"i",45),a()}}function qe(n,_){if(n&1&&(o(0,"tr")(1,"td"),v(2,Be,1,1,"input",30),a(),o(3,"td"),p(4),a(),o(5,"td")(6,"div",31)(7,"div",32)(8,"div"),g(9,"img",33),V(10,"channelImage"),a(),o(11,"div"),g(12,"order-link",34),a()(),o(13,"small"),p(14),V(15,"date"),a()()(),o(16,"td"),p(17),a(),o(18,"td"),v(19,je,1,1,"variants-dropdown",35)(20,He,1,1,"variant-with-image",36),a(),o(21,"td",37),p(22),V(23,"number"),a(),o(24,"td")(25,"div",38)(26,"div",31)(27,"div",32)(28,"span"),p(29),a(),v(30,Ue,2,1,"span"),a(),o(31,"small"),p(32),a()(),v(33,Je,3,0,"div"),a()(),o(34,"td",39),v(35,Ke,2,0,"button",40),a()()),n&2){let e=_.$implicit,i=c(2);l(2),y((e==null?null:e.MarketType)!=i.channelType.WooCommerce?2:-1),l(2),E(e.Outlet),l(5),x("src",O(10,16,e==null?null:e.MarketType),$)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(3),x("order",e),l(2),I(" ",se(15,18,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),E(e.Customer),l(),te(pe(23,Re,(e.Variants==null?null:e.Variants.length)>1)),l(),y((e.Variants==null?null:e.Variants.length)>1?19:20),l(3),E(O(23,21,e.Amount)),l(7),E(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),y(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?30:-1),l(2),I(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(),y(!(e.LogisticService!=null&&e.LogisticService.Name)||!e.ReferenceNumber?33:-1),l(2),y((e==null?null:e.MarketType)!=i.channelType.WooCommerce?35:-1)}}function Ge(n,_){if(n&1){let e=k();o(0,"div",16)(1,"table",20)(2,"thead",21)(3,"tr",22),g(4,"th",23),o(5,"th",24),p(6,"Outlet"),a(),o(7,"th",25),p(8,"Number"),a(),o(9,"th",25),p(10,"Customer"),a(),o(11,"th"),p(12,"Items"),a(),o(13,"th",26),p(14,"Amount"),a(),o(15,"th",27),p(16,"Shipping"),a(),g(17,"th",28),a()(),o(18,"tbody"),ne(19,qe,36,25,"tr",null,ie),a()(),o(21,"app-custom-paginator",29),f("next",function(){d(e);let t=c();return u(t.initAwaitingCollection())})("previous",function(){d(e);let t=c();return u(t.initAwaitingCollection())}),a()()}if(n&2){let e=c(),i=F(0);l(19),oe(i),l(2),x("filter",e.filter())("totaldata",i==null?null:i.length)}}function Qe(n,_){n&1&&(o(0,"div",17),g(1,"app-empty-state"),a())}var Bt=(()=>{class n{constructor(){this.printShippingService=w(K),this.orderService=w(U),this.toastr=w(L),this.channelType=m,this.selectedOrders=H([]),this.filter=H({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){let e=this.orderService.getOrderDefaultValue();this.filter.update(i=>G(q({},i),{From:e})),this.initAwaitingCollection()}initAwaitingCollection(){this.awaitingCollections$=this.orderService.getAwaitingCollectionOrders(this.filter()).pipe(Y(1))}onPrintShippingLabel(e){this.printShippingService.printShippingLabel(e)}onSelectOrders(e){let i=e.filter(t=>t.selected);this.selectedOrders.set(i)}onDowloadShippingLabel(e){e=e.map(i=>(i.selected=!1,i)),this.printShippingService.printMultipleShippingLabel(this.selectedOrders()),this.selectedOrders.set([])}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initAwaitingCollection()})}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=N({type:n,selectors:[["app-awaiting-collection"]],features:[le([U,K])],decls:35,vars:12,consts:[["headerTitle","Awaiting Collection","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-3"],[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,"btn","btn-outline-secondary","shadow","rounded",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line","me-3"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],[2,"width","10px"],["rowCountApi","/api/orders/awaitingcollectioncount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModel"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"d-flex","align-items-center","gap-6"],[1,"text-end","td-cell-hover"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent"],["type","checkbox",3,"ngModelChange","ngModel"],["matTooltip","Retrieve shipping courier and reference number",1,"btn","btn-icon-only",3,"click"],[1,"fa-solid","fa-arrows-rotate","fs-6"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line"]],template:function(i,t){if(i&1){let r=k();re(0),V(1,"async"),o(2,"mainpanel",0),f("onSubmit",function(){return d(r),u(t.initAwaitingCollection())}),S("textChange",function(s){return d(r),b(t.filter().Number,s)||(t.filter().Number=s),u(s)}),o(3,"actions"),v(4,ze,4,0,"button",1),o(5,"a",2),g(6,"i",3),o(7,"span"),p(8,"Order Fulfillment Display"),a()()(),o(9,"filters")(10,"div")(11,"label",4),p(12,"From/To"),a(),o(13,"channel-select-options",5),S("ngModelChange",function(s){return d(r),b(t.filter().ListChannelID,s)||(t.filter().ListChannelID=s),u(s)}),a()(),o(14,"div",6)(15,"label",4),p(16,"From/To"),a(),o(17,"div",7)(18,"datepicker",8),S("dateChange",function(s){return d(r),b(t.filter().From,s)||(t.filter().From=s),u(s)}),a()(),o(19,"div")(20,"datepicker",9),S("dateChange",function(s){return d(r),b(t.filter().To,s)||(t.filter().To=s),u(s)}),a()()(),o(21,"div",6)(22,"label",10),p(23,"Page Number"),a(),o(24,"input",11),S("ngModelChange",function(s){return d(r),b(t.filter().PageNumber,s)||(t.filter().PageNumber=s),u(s)}),a()(),o(25,"div",6)(26,"label",10),p(27,"Page Size"),a(),o(28,"input",12),S("ngModelChange",function(s){return d(r),b(t.filter().PageSize,s)||(t.filter().PageSize=s),u(s)}),a()()(),o(29,"content")(30,"div",13)(31,"div",14)(32,"div",15),v(33,Ge,22,2,"div",16)(34,Qe,2,0,"div",17),a()()()()()}if(i&2){let r=ae(O(1,9,t.awaitingCollections$));l(2),C("text",t.filter().Number),l(2),y(t.selectedOrders().length>0?4:-1),l(9),x("multiple",!0),C("ngModel",t.filter().ListChannelID),l(5),C("date",t.filter().From),l(2),C("date",t.filter().To),l(4),C("ngModel",t.filter().PageNumber),l(4),C("ngModel",t.filter().PageSize),l(5),y((r==null?null:r.length)>0?33:34)}},dependencies:[W,me,de,ce,Le,Te,Pe,Me,B,he,ge,ue,R,z,Ve,Ae,De,Ne,Ee,ke,xe,Ie],encapsulation:2})}}return n})();export{Bt as AwaitingCollectionComponent};
@@ -1 +0,0 @@
1
- var e=(()=>{class t{static{this.SubmitConfig="/api/Channel/SubmitConfig"}static{this.PosAccountTest="/api/POSAccount/Test"}static{this.PosAccountRemove="/api/POSAccount/Remove"}static{this.PosAccountGetConfig="/api/ChannelLoader/GetConfig"}static{this.ChannelGetLastSyncByID="/api/Channel/GetLastSyncByID"}static{this.GetChannel="/api/Channel/GetChannel"}static{this.GetChannelLoader="/api/ChannelLoader/GetChannelLoader"}static{this.TestShopID="/api/Channel/TestShopID"}static{this.UpdateChannelIndex="/api/Channel/UpdateChannelIndex"}static{this.DeleteChannel="/api/Channel/DeleteChannel"}static{this.GetRegisterByOutletName="/api/Channel/GetRegistersByOutletOrder"}static{this.GetChannelRowCount="/api/Channel/GetCountChannel"}static{this.GetChannelWarehouse="/api/Channel/GetChannelWarehouseLocation"}static{this.UnSynchronizedWarehouse="/api/Channel/UnSynchronizedWarehouse"}static{this.GetChannelDetail="/api/ChannelLoader/GetChannelView"}static{this.GetOrderPreview="/api/Orders/Preview"}static{this.GetOrderPreviewV2="/api/Orders/PreviewV2"}static{this.GetDownloadOrder="/api/Orders/Download"}static{this.GetDownloadOrderV2="/api/Orders/DownloadV2"}static{this.ShopeeV2_URL="/api/ChannelAuthorization/ShopeeV2_URL"}static{this.Tiktok_URL="/api/ChannelAuthorization/Tiktok_URL"}static{this.Lazada_URL="/api/ChannelAuthorization/Lazada_URL"}static{this.AddTokopedia="/api/ChannelAdd/Tokopedia"}static{this.AddShopify="/api/ChannelAdd/AddShopify"}static{this.AddWoocommerce="/api/ChannelAdd/AddWooCommerce"}static{this.AddPlugo="/api/ChannelAdd/Plugo"}static{this.UploadPlugoProduct="/api/product/plugo/AddProduct"}static{this.RefreshToken="/api/RefreshToken"}static{this.RefreshInventory="/api/Inventory/RefreshInventory"}static{this.GetToShip="/api/orders/toship"}static{this.GetShipped="/api/orders/shipped"}static{this.GetCompleted="/api/orders/completed"}static{this.GetAll="/api/orders/all"}static{this.GetCancelled="/api/orders/GetCancelled"}static{this.GetAwaitingCollection="/api/orders/AwaitingCollection"}static{this.GetShopeeShippingOptions="/api/v1/shipping/shopee/OptionShip"}static{this.ShopeeSelectShipping="/api/v1/shipping/shopee/SelectShip"}static{this.GetTiktokShippingOptions="/api/v1/shipping/tiktok/OptionShip"}static{this.TiktokSelectShipping="/api/v1/shipping/tiktok/SelectShip"}static{this.GetOrderApiLog="/api/Orders/GetOrderDetailByChannel"}static{this.GetUserLoader="/api/userloader/List"}static{this.GetUsers="/api/user/list"}static{this.GetLoaderForm="/api/userloader/Form"}static{this.UpdateUser="/api/user/Submit"}static{this.DeleteUsers="/api/user/Delete"}static{this.MyProfile="/api/user/myprofile"}static{this.MigrateUsers="/api/user/migrate"}static{this.MigrateLoader="/api/userloader/Migrate"}static{this.GetGroups="/api/UserGroup/list"}static{this.GetGroupsLoader="/api/UserGroupLoader/list"}static{this.GetGroupFormLoader="/api/UserGrouploader/Form"}static{this.SubmitGroup="/api/userGroup/AssignRole"}static{this.DeleteGroups="/api/userGroup/Delete"}static{this.GetEscrowDetail="/api/Orders/GetEscrowDetail"}static{this.DetachVariant="/api/product/DetachVariant"}static{this.GetProductApiLog="/api/Product/GetProductDetailBySKU"}static{this.ScanSyncProductV2="/api/v2/ProductScan/SyncProduct"}static{this.ScanAsyncProductV2="/api/v2/ProductScan/AsyncProduct"}static{this.GetLastInfoDownloadInventory="/api/Inventory/GetOrderDownloadLatestOn"}static{this.UpdateInventoryChannel="/api/Inventory/UpdateChannel"}static{this.GetJobScanList="/api/notification/GetJobScanV2"}static{this.GetJobScanDetail="/api/notification/GetJobScanV2ByID"}static{this.UpdateChannelInventory="/api/Inventory/UpdateChannel"}static{this.GetMultiListingSKU="/api/product/GetMultiListingSKU"}static{this.UpdateUpdateQuantityByItem="/api/Inventory/UpdateQuantityByItem"}static{this.UpdatePriceById="/api/Price/UpdatePriceByID"}static{this.UpdateChannelPrice="/api/Price/UpdateChannel"}static{this.TokopediaPrintShippingLabel="api/v1/Shippinglabel/Tokopedia"}static{this.TiktokPrintShippingLabel="api/v1/Shippinglabel/Tiktok"}static{this.LazadaPrintShippingLabel="api/v1/Shippinglabel/Lazada/DownloadShipping"}static{this.ShopeePrintShippingLabel="api/v1/Shippinglabel/shopee/DownloadShipping"}static{this.RefreshShippingCourierAndRefNumber="/api/orders/RefreshShippingProvider"}}return t})();export{e as a};