marketplacepos 3.5.0 → 3.6.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 (113) hide show
  1. package/Marketplace/3rdpartylicenses.txt +5 -5
  2. package/Marketplace/{chunk-75KTCVZF.js → chunk-233MWU5I.js} +2 -2
  3. package/Marketplace/chunk-2FZAKLVH.js +2 -0
  4. package/Marketplace/chunk-2GUSUJKR.js +2 -0
  5. package/Marketplace/chunk-2Y66HZFD.js +1 -0
  6. package/Marketplace/{chunk-FHIDET6K.js → chunk-35GLPUIA.js} +1 -1
  7. package/Marketplace/{chunk-TGSKHOI4.js → chunk-37HLVAAU.js} +1 -1
  8. package/Marketplace/chunk-3G5KO3TI.js +2 -0
  9. package/Marketplace/chunk-3KJSV75O.js +1 -0
  10. package/Marketplace/{chunk-SUBRCXIB.js → chunk-3ZNOGHL3.js} +1 -1
  11. package/Marketplace/chunk-4TY6WDXS.js +1 -0
  12. package/Marketplace/{chunk-PMCLVNMY.js → chunk-53K2CWAN.js} +1 -1
  13. package/Marketplace/chunk-5LICD27P.js +5 -0
  14. package/Marketplace/chunk-6HLIRI7N.js +1 -0
  15. package/Marketplace/chunk-6YFZBURX.js +1 -0
  16. package/Marketplace/{chunk-KLMICCVJ.js → chunk-7ARC4G4F.js} +1 -1
  17. package/Marketplace/{chunk-VPHHTNUD.js → chunk-AO2MXRCQ.js} +1 -1
  18. package/Marketplace/chunk-BUG6II55.js +1 -0
  19. package/Marketplace/{chunk-2NSPG6VQ.js → chunk-CIGF5YG5.js} +1 -1
  20. package/Marketplace/{chunk-CMHF5RTN.js → chunk-DKPFXQNF.js} +1 -1
  21. package/Marketplace/chunk-E64JNFG7.js +1 -0
  22. package/Marketplace/chunk-FBU5QXHN.js +1 -0
  23. package/Marketplace/chunk-FTYEJYHR.js +1 -0
  24. package/Marketplace/{chunk-FVAPOGDC.js → chunk-G4PZ5CPL.js} +1 -1
  25. package/Marketplace/chunk-HEYRRICW.js +1 -0
  26. package/Marketplace/chunk-HVNMMTYL.js +1 -0
  27. package/Marketplace/{chunk-GJLYUWSL.js → chunk-I7PLLVEH.js} +1 -1
  28. package/Marketplace/chunk-IM6ZDC7I.js +2 -0
  29. package/Marketplace/{chunk-NWWR3K33.js → chunk-IOUI2FZD.js} +1 -1
  30. package/Marketplace/{chunk-W5JLE65X.js → chunk-IPSBLHOU.js} +2 -2
  31. package/Marketplace/{chunk-3H6SWWM2.js → chunk-ISJRZPJX.js} +1 -1
  32. package/Marketplace/{chunk-VMNROKIK.js → chunk-JGYSNRH6.js} +1 -1
  33. package/Marketplace/chunk-JUIDNG6B.js +1 -0
  34. package/Marketplace/chunk-JWESCPR3.js +1 -0
  35. package/Marketplace/chunk-K5FAZTRK.js +1 -0
  36. package/Marketplace/{chunk-F55Q67A4.js → chunk-KDJNHDU2.js} +1 -1
  37. package/Marketplace/{chunk-QUDJWHMB.js → chunk-KTPCOMZ2.js} +1 -1
  38. package/Marketplace/{chunk-3UYUXGVK.js → chunk-M3XCT7JY.js} +1 -1
  39. package/Marketplace/{chunk-CQY6SBLJ.js → chunk-MBHOZDLB.js} +1 -1
  40. package/Marketplace/{chunk-QMFPH7XZ.js → chunk-MGVAWFYU.js} +7 -7
  41. package/Marketplace/{chunk-4FXEREAP.js → chunk-MIAEM23L.js} +1 -1
  42. package/Marketplace/chunk-MLMGMDJA.js +1 -0
  43. package/Marketplace/chunk-NAXDUEX4.js +1 -0
  44. package/Marketplace/{chunk-3EZXX4SY.js → chunk-NEAQH3FX.js} +1 -1
  45. package/Marketplace/chunk-PP4T4PLJ.js +1 -0
  46. package/Marketplace/{chunk-FKBDMXZF.js → chunk-PUSB4EIC.js} +1 -1
  47. package/Marketplace/chunk-Q2ZCP6BL.js +1 -0
  48. package/Marketplace/chunk-Q6Y22NLN.js +1 -0
  49. package/Marketplace/chunk-QC4HQRFC.js +1 -0
  50. package/Marketplace/{chunk-3S4B7FJG.js → chunk-R2U2NYVL.js} +1 -1
  51. package/Marketplace/chunk-SFDY7NUA.js +1 -0
  52. package/Marketplace/chunk-SUY2H7ZI.js +1 -0
  53. package/Marketplace/chunk-SY5WIR62.js +3 -0
  54. package/Marketplace/chunk-UTRK7TTD.js +1 -0
  55. package/Marketplace/chunk-UTSC6PL6.js +1 -0
  56. package/Marketplace/chunk-UWU5GEHX.js +1 -0
  57. package/Marketplace/chunk-V3NJFGV3.js +1 -0
  58. package/Marketplace/chunk-V752HOUZ.js +1 -0
  59. package/Marketplace/chunk-VX5ROJLM.js +1 -0
  60. package/Marketplace/chunk-W7OIIPRU.js +1 -0
  61. package/Marketplace/chunk-WNUGQVRM.js +5 -0
  62. package/Marketplace/{chunk-TXVLR2RN.js → chunk-YBAPXY6T.js} +1 -1
  63. package/Marketplace/chunk-YK6VKTWV.js +1 -0
  64. package/Marketplace/{chunk-RBJQ6EI6.js → chunk-YS2YJHB3.js} +1 -1
  65. package/Marketplace/{chunk-OVHULOR3.js → chunk-ZVELVZIL.js} +1 -1
  66. package/Marketplace/{chunk-CIUA5X4L.js → chunk-ZXU3FVPS.js} +11 -11
  67. package/Marketplace/index.html +2 -2
  68. package/Marketplace/main-ICOUGZTS.js +1 -0
  69. package/Marketplace/{styles-VIFLB3RD.css → styles-XDRE2JJC.css} +1 -1
  70. package/package.json +1 -1
  71. package/Marketplace/chunk-266DSHGO.js +0 -1
  72. package/Marketplace/chunk-2FIOSKRJ.js +0 -1
  73. package/Marketplace/chunk-3C4XDMT2.js +0 -1
  74. package/Marketplace/chunk-3KDFTXQM.js +0 -1
  75. package/Marketplace/chunk-3URAANI6.js +0 -5
  76. package/Marketplace/chunk-4PPU4SZR.js +0 -1
  77. package/Marketplace/chunk-5A74K34K.js +0 -2
  78. package/Marketplace/chunk-5BFBDU4Y.js +0 -1
  79. package/Marketplace/chunk-5FWZE3M6.js +0 -1
  80. package/Marketplace/chunk-6ORFYERF.js +0 -1
  81. package/Marketplace/chunk-6R23WA5G.js +0 -1
  82. package/Marketplace/chunk-A6HOOHGI.js +0 -1
  83. package/Marketplace/chunk-BFSIXPYE.js +0 -1
  84. package/Marketplace/chunk-BNL5KXTW.js +0 -1
  85. package/Marketplace/chunk-CGWBESJR.js +0 -1
  86. package/Marketplace/chunk-D7MTVAUX.js +0 -2
  87. package/Marketplace/chunk-EV36IP6L.js +0 -2
  88. package/Marketplace/chunk-F3YY7P47.js +0 -1
  89. package/Marketplace/chunk-G5PYEJ6I.js +0 -1
  90. package/Marketplace/chunk-G6FQOKR3.js +0 -1
  91. package/Marketplace/chunk-GUDIOT6F.js +0 -1
  92. package/Marketplace/chunk-IHMSIZQP.js +0 -1
  93. package/Marketplace/chunk-IKMQT2F2.js +0 -1
  94. package/Marketplace/chunk-KJQHDPO2.js +0 -1
  95. package/Marketplace/chunk-KSOIRHFB.js +0 -1
  96. package/Marketplace/chunk-KTTSCH5B.js +0 -1
  97. package/Marketplace/chunk-L73KNYMB.js +0 -1
  98. package/Marketplace/chunk-LKBZC32T.js +0 -1
  99. package/Marketplace/chunk-NGLKNAAE.js +0 -5
  100. package/Marketplace/chunk-NHFS3EQL.js +0 -3
  101. package/Marketplace/chunk-NVLJ23H4.js +0 -1
  102. package/Marketplace/chunk-QS23P4G5.js +0 -1
  103. package/Marketplace/chunk-R56RSI2V.js +0 -2
  104. package/Marketplace/chunk-RHYOB3FA.js +0 -1
  105. package/Marketplace/chunk-VPZ3M3XI.js +0 -1
  106. package/Marketplace/chunk-VVGZ7KQX.js +0 -1
  107. package/Marketplace/chunk-WX2VXA4V.js +0 -1
  108. package/Marketplace/main-FFSPLMLV.js +0 -1
  109. /package/Marketplace/{chunk-T6GUYLRX.js → chunk-6RUGKYFT.js} +0 -0
  110. /package/Marketplace/{chunk-GWMLSBG4.js → chunk-KPTAVWMG.js} +0 -0
  111. /package/Marketplace/{chunk-MNDH6U5G.js → chunk-V6VYUZWG.js} +0 -0
  112. /package/Marketplace/{chunk-2IH2MGS7.js → chunk-ZLME6FEU.js} +0 -0
  113. /package/Marketplace/{polyfills-HTM62PZX.js → polyfills-L2ZK4WXQ.js} +0 -0
@@ -1 +0,0 @@
1
- import{a as me}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-PMCLVNMY.js";import{b as T}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-SUBRCXIB.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-3H6SWWM2.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-BNL5KXTW.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-6ORFYERF.js";import{a as pe,b as se}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QS23P4G5.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KTTSCH5B.js";import{e as ie}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-A6HOOHGI.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-CMHF5RTN.js";import{a as O}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FVAPOGDC.js";import{v as D,w as le}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-D7MTVAUX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-IKMQT2F2.js";import{u as ae}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KSOIRHFB.js";import{c as h}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GWMLSBG4.js";import{$ as Q,Bb as x,Cb as w,Ea as l,Fa as y,Gc as re,Ic as ne,Kc as oe,Na as s,P as U,Qa as z,Ta as u,W as $,Ya as o,Yb as Y,Za as a,Zb as _,_ as G,_a as g,ac as Z,ba as V,bb as H,bc as F,da as v,dc as ee,ea as J,ec as te,gb as d,ha as K,ib as C,lb as j,ob as f,pb as R,qb as q,ub as W,ya as k,zb as X}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.js";var de=(()=>{let r=class r{constructor(){this.reportTabs=[{Title:"1 - New Order",Url:"/menu/report/order/sync-order"},{Title:"2 - Ready to Ship",Url:"/menu/report/order/invoice"},{Title:"3 - Shipped",Url:"/menu/report/order/delivery"},{Title:"4 - Completed",Url:"/menu/report/order/payment"},{Title:"All",Url:"/menu/report/order/all"}]}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["app-order"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,i){t&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),g(3,"nav-tab",2),a()()(),g(4,"router-outlet")),t&2&&(l(3),s("Tabs",i.reportTabs))},dependencies:[pe,re],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]});let n=r;return n})();var S=class{};var P=(()=>{let r=class r{constructor(e){this.http=e}GetLoader(){return this.http.post("/api/Report/GetLoader",{})}GetSyncOrder(e){return new Promise((t,i)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/Invoice",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncDelivery(e){return new Promise((t,i)=>{this.http.post("/api/Report/Delivery",JSON.stringify(e)).subscribe(m=>{t(m)})})}GetSyncPayment(e){return new Promise((t,i)=>{this.http.post("/api/Report/Payment",JSON.stringify(e)).subscribe(m=>{t(m)})})}getAllReport(e){return this.http.post("/api/Report/all",JSON.stringify(e))}};r.\u0275fac=function(t){return new(t||r)(V(ie))},r.\u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var E=function(n){return n[n.OK=200]="OK",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.CONFLICT=409]="CONFLICT",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n}(E||{});function Ce(n,r){if(n&1&&(o(0,"th",9)(1,"div",10)(2,"h4"),f(3),a(),o(4,"small",11),f(5),a()()()),n&2){let p=r.$implicit,e=C();l(3),R(p),l(1),z(e.getTextBgColor(p)),l(1),R(e.getHeaderStatusDesc(p))}}var ve=()=>["/menu/log/order"],Te=(n,r,p,e,t)=>({responseCode:n,From:r,to:p,actionType:e,ChannelID:t});function Se(n,r){if(n&1&&(o(0,"td",14)(1,"a",15),f(2),a()()),n&2){let p=r.$implicit,e=C().$implicit,t=C();l(1),s("routerLink",W(3,ve))("queryParams",X(4,Te,p.Key,t.fromQueryParam,t.toQueryParam,t.type,e.ChannelID)),l(1),q(" ",p.Value," ")}}function _e(n,r){if(n&1&&(o(0,"tr")(1,"td")(2,"a",12),g(3,"img",13),a()(),o(4,"td")(5,"div")(6,"a",12),f(7),a()(),o(8,"div"),f(9),a()(),u(10,Se,3,10,"td",8),a()),n&2){let p=r.$implicit,e=C();l(2),j("href",p.Url,k),l(1),s("src",e.getChannelLogo(p.Type),k),l(3),j("href",p.Url,k),l(1),R(p.Name),l(2),R(p.Url),l(1),s("ngForOf",p.list)}}function Fe(n,r){if(n&1&&(o(0,"td",14)(1,"div",16),f(2),x(3,"number"),a()()),n&2){let p=r.$implicit;l(2),R(w(3,1,p.total))}}var b=(()=>{let r=class r{constructor(){this.type=null,this.headerStatus=E,this.listCalculationStatusCode=[]}set from(e){e&&(this.fromQueryParam=new Date(e).toJSON().toString())}set to(e){e&&(this.toQueryParam=new Date(e).toJSON().toString())}ngOnChanges(e){e.result&&this.calculateStatusCode()}getHeaderStatusDesc(e){let t=null;switch(e){case E.BAD_REQUEST:t="BAD REQUEST";break;case E.CONFLICT:t="CONFLICT";break;case E.INTERNAL_SERVER_ERROR:t="INTERNAL SERVER ERROR";break;case E.NOT_FOUND:t="NOT FOUND";break;default:t="OK";break}return t}getTextBgColor(e){let t=null;switch(e){case E.OK:t="bg-success";break;case E.INTERNAL_SERVER_ERROR:t="bg-danger";break;default:t="bg-warning";break}return t}getChannelLogo(e){return h.getChannelLogoByTypeId(e)}calculateStatusCode(){if(this.listCalculationStatusCode=[],this.result){let e,t;this.concatStatusCode().forEach(i=>{e=this.listCalculationStatusCode.findIndex(m=>m.status==i.Key),t=e!==-1,t?this.listCalculationStatusCode[e].total+=i.Value:this.listCalculationStatusCode=[...this.listCalculationStatusCode,{status:i.Key,total:i.Value}]})}}concatStatusCode(){return this.result.map(e=>e.list).reduce((e,t)=>[...e,...t])}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["app-table-report"]],inputs:{header:"header",result:"result",from:"from",to:"to",type:"type"},features:[K],decls:15,vars:3,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","5%"],["class","text-start","style","width: 10%;",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],["colspan","2"],[1,"text-center","h3","fw-bold"],["class","text-start",4,"ngFor","ngForOf"],[1,"text-start",2,"width","10%"],[1,"d-block"],[1,"text-white","p-1","rounded","response-desc"],["target","_blank",3,"href"],[2,"width","24px","height","24px",3,"src"],[1,"text-start"],[1,"h3","text-primary","fw-bold","ms-1",3,"routerLink","queryParams"],[1,"d-inline-block","h3","text-primary","fw-bold","ms-1"]],template:function(t,i){t&1&&(o(0,"table",0)(1,"thead",1)(2,"tr"),g(3,"th",2),o(4,"th",3),f(5,"Channel"),a(),u(6,Ce,6,4,"th",4),a()(),o(7,"tbody"),u(8,_e,11,6,"tr",5),a(),o(9,"tfoot")(10,"tr")(11,"td",6)(12,"div",7),f(13,"Total"),a()(),u(14,Fe,4,3,"td",8),a()()()),t&2&&(l(6),s("ngForOf",i.header),l(2),s("ngForOf",i.result),l(6),s("ngForOf",i.listCalculationStatusCode))},dependencies:[Y,ne,ee],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]});let n=r;return n})();function De(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",0)}}var ce=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.pageTitle="New Order";let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncOrder(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-sales-order"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.getChannelLogs()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,De,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.pageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function Pe(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",1)}}var fe=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.PageTitle="Ready to Ship";let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-invoice"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,Pe,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.PageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function be(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",3)}}var he=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S;let i=new Date;this.maxDate=i,this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Shipped (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncDelivery(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-delivery"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,be,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.PageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function Ee(n,r){if(n&1&&(o(0,"div",7)(1,"div",8),g(2,"app-table-report",9),a()()),n&2){let p=C();l(2),s("result",p.result)("header",p.header)("from",p.filter.From)("to",p.filter.To)("type",4)}}var ue=(()=>{let r=class r{constructor(e,t){this.http=e,this.datePipe=t,this.filter=new S,this.PageTitle="Completed";let i=new Date;this.minDate=h.addDays(i,6),this.filter.From=i,this.filter.To=i,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Completed (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncPayment(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-payment"]],decls:11,vars:5,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"h6"),f(5,"From/To"),a(),o(6,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(7,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()(),o(8,"content")(9,"div",5),u(10,Ee,3,5,"div",6),a()()()),t&2&&(s("headerTitle",i.PageTitle)("hideSearchBox",!0),l(6),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",i.result))},dependencies:[_,D,T,b]});let n=r;return n})();function Ie(n,r){n&1&&H(0)}function Re(n,r){if(n&1&&(o(0,"div",8)(1,"div",9),g(2,"app-table-report",10),a()()),n&2){let p=r.ngIf,e=C();l(2),s("result",p.Body)("header",p.Header)("from",e.filter==null?null:e.filter.From)("to",e.filter==null?null:e.filter.To)}}var ge=(()=>{let r=class r{constructor(e,t){this.reportOrderService=e,this.datePipe=t,this.filter=new S}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=h.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=h.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":t+"-"} ${i})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe($(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(U())}onFilter(){this.updatePageTitle(),this.initData()}};r.\u0275fac=function(t){return new(t||r)(y(P),y(F))},r.\u0275cmp=v({type:r,selectors:[["app-all"]],decls:15,vars:10,consts:[[3,"headerTitle","hideSearchBox","onSubmit"],["container","",2,"width","250px"],[1,"filterDate"],["name","From",3,"date","dateChange"],["name","To",3,"date","dateChange"],[1,"container-fluid"],[4,"ngIf"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(t,i){t&1&&(o(0,"mainpanel",0),d("onSubmit",function(){return i.onFilter()}),o(1,"filters")(2,"div",1)(3,"div",2)(4,"div")(5,"h6"),f(6,"From/To"),a(),o(7,"datepicker",3),d("dateChange",function(c){return i.filter.From=c}),a(),o(8,"datepicker",4),d("dateChange",function(c){return i.filter.To=c}),a()()()()(),o(9,"content")(10,"div",5),u(11,Ie,1,0,"ng-container",6),x(12,"async"),u(13,Re,3,4,"div",7),x(14,"async"),a()()()),t&2&&(s("headerTitle",i.pageTitle)("hideSearchBox",!0),l(7),s("date",i.filter.From),l(1),s("date",i.filter.To),l(3),s("ngIf",w(12,6,i.pageLoader$)),l(2),s("ngIf",w(14,8,i.reportData$)))},dependencies:[_,D,T,b,Z]});let n=r;return n})();var Oe=[{path:"",component:de,children:[{path:"",redirectTo:"sync-order",pathMatch:"full"},{path:"sync-order",component:ce,canActivate:[O],data:{title:"Sync Order"}},{path:"invoice",component:fe,canActivate:[O],data:{title:"Sync Invoice"}},{path:"delivery",component:he,canActivate:[O],data:{title:"Sync Delivery"}},{path:"payment",component:ue,canActivate:[O],data:{title:"Sync Payment"}},{path:"all",component:ge,canActivate:[O],data:{title:"All Report"}}]}],gt=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=J({type:r}),r.\u0275inj=Q({imports:[te,se,ae,le,me,T,oe.forChild(Oe)]});let n=r;return n})();export{gt as OrderModule};
@@ -1,5 +0,0 @@
1
- import{a as ee,b as ne,c as ie,d as oe,e as re,f as ae}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-3KDFTXQM.js";import{b as te}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-RHYOB3FA.js";import{c as q}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-75KTCVZF.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FHIDET6K.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-2NSPG6VQ.js";import{a as Y,b as Z}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QS23P4G5.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KTTSCH5B.js";import{e as V}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-A6HOOHGI.js";import{a as J}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-FVAPOGDC.js";import{v as Q,w as X}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-D7MTVAUX.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-IKMQT2F2.js";import{c as W,h as z,k as G,u as K}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-KSOIRHFB.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-GWMLSBG4.js";import{$ as N,$a as u,Ea as l,Fa as E,Gc as H,Ia as O,Ic as j,Kc as $,Na as p,Ta as c,Ya as o,Yb as w,Za as a,Zb as R,_ as T,_a as d,_b as P,ab as f,ba as U,cb as y,da as h,ea as k,ec as A,gb as _,ia as S,ib as g,ja as v,nb as C,ob as m,pb as F,qb as L,sb as B,vb as b,xa as M}from"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-QMFPH7XZ.js";import"https://cdn.jsdelivr.net/npm/marketplacepos@3.5.0/Marketplace/chunk-T6GUYLRX.js";var de=e=>[e];function ue(e,t){if(e&1&&(u(0),o(1,"a",9),m(2),a(),f()),e&2){let s=t.$implicit;l(1),p("routerLink",b(2,de,s.url)),l(1),L(" ",s.title,"")}}var pe=(()=>{let t=class t{constructor(){this.tabs=[{Title:"Download By Url",Url:"/menu/products/download/by-url",Description:"Download products information by product URL as a parameter"}],this.moreMenu=[{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"}]}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=h({type:t,selectors:[["app-download"]],decls:12,vars:2,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"],[4,"ngFor","ngForOf"],[1,"dropdown-item",3,"routerLink"]],template:function(i,r){i&1&&(o(0,"nav",0)(1,"div",1)(2,"div"),d(3,"nav-tab",2),a()(),o(4,"div")(5,"div",3)(6,"a",4),d(7,"i",5),a(),o(8,"div",6)(9,"div",7),c(10,ue,3,4,"ng-container",8),a()()()()(),d(11,"router-outlet")),i&2&&(l(3),p("Tabs",r.tabs),l(7),p("ngForOf",r.moreMenu))},dependencies:[w,Y,H,j]});let e=t;return e})();var I=(()=>{let t=class t{constructor(n){this.httpService=n}download(n){let i="/api/Product/downloadurl";return this.httpService.post(i,n)}};t.\u0275fac=function(i){return new(i||t)(U(V))},t.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();function ge(e,t){if(e&1&&(o(0,"th"),m(1),a()),e&2){let s=t.$implicit;l(1),F(s.column)}}function _e(e,t){if(e&1&&(u(0),o(1,"td"),d(2,"span",6),a(),f()),e&2){let s=t.$implicit,n=g().$implicit;l(2),p("innerHTML",n[s.prop],M)}}var he=e=>({"background-color":e});function Se(e,t){if(e&1&&(o(0,"tr",5),c(1,_e,3,1,"ng-container",3),a()),e&2){let s=t.$implicit,n=g();p("ngStyle",b(2,he,s.Status>200?"#F4D6D5":"#DEE9C9")),l(1),p("ngForOf",n.configs)}}var se=(()=>{let t=class t{constructor(){this.eventClose=new O}ngOnInit(){}onClose(){this.eventClose.emit()}};t.\u0275fac=function(i){return new(i||t)},t.\u0275cmp=h({type:t,selectors:[["app-response-api-list"]],inputs:{configs:"configs",data:"data",status:"status"},outputs:{eventClose:"onClose"},decls:7,vars:2,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[4,"ngFor","ngForOf"],[3,"ngStyle",4,"ngFor","ngForOf"],[3,"ngStyle"],[3,"innerHTML"]],template:function(i,r){i&1&&(o(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),c(4,ge,2,1,"th",3),a()(),o(5,"tbody"),c(6,Se,2,4,"tr",4),a()()()),i&2&&(l(4),p("ngForOf",r.configs),l(2),p("ngForOf",r.data))},dependencies:[w,P]});let e=t;return e})();function ye(e,t){if(e&1){let s=y();u(0),o(1,"button",23),_("click",function(){S(s);let i=g(),r=C(11);return v(i.onNewStepperState(r))}),d(2,"i",24),m(3," New "),a(),f()}}function Ce(e,t){if(e&1){let s=y();u(0),o(1,"button",23),_("click",function(){S(s),g();let i=C(11);return v(i.previous())}),m(2," Back "),a(),f()}}function be(e,t){if(e&1){let s=y();u(0),o(1,"button",25),_("click",function(){S(s);let i=g(),r=C(11);return v(i.onStepperNext(r))}),m(2," Next "),a(),f()}}function we(e,t){if(e&1){let s=y();u(0),o(1,"button",26),_("click",function(){S(s);let i=g(),r=C(11);return v(i.onSubmit(r))}),m(2,"Download"),a(),f()}if(e&2){let s=g();l(1),p("disabled",!s.urls)}}function xe(e,t){e&1&&m(0,"Instruction")}function Ie(e,t){e&1&&m(0,"Download")}function De(e,t){e&1&&m(0,"Finish")}function Ee(e,t){e&1&&d(0,"i",27)}function Te(e,t){e&1&&d(0,"i",28)}function Ne(e,t){e&1&&d(0,"i",29)}var me=(()=>{let t=class t{constructor(n,i){this.downloadService=n,this.authService=i,this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=[],this.stepperState="DOWNLOAD",this.urlPlaceholder=`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
2
- https://tokopedia.com/tokoriyanadi/Celana-Chinos-Coklat`,this.currentDomain=this.authService.getDomain()}onStepperChange(n){this.stepperState=n.selectedStep.state}onSubmit(n){let i=this.urls.split(/\r?\n/);this.downloadService.download(i).subscribe(r=>{this.downloadResponses=r,this.mappingLinkToProduct(),this.onStepperNext(n)})}mappingLinkToProduct(){this.downloadResponses=this.downloadResponses.map(n=>(n.Name=n?.Name?`<a href="${this.currentDomain}/menu/Products/Catalog/Products/Info?ID=${n.ID}" target="_blank">
3
- ${n?.Name}
4
- </a>`:"-",n))}onNewStepperState(n){this.downloadResponses=[],this.urls=null,this.stepperState="DOWNLOAD",n.reset(),this.onStepperNext(n)}onStepperNext(n){n.selected.completed=!0,n.next()}};t.\u0275fac=function(i){return new(i||t)(E(I),E(q))},t.\u0275cmp=h({type:t,selectors:[["app-by-url"]],features:[B([{provide:ee,useValue:{displayDefaultIndicatorType:!1}}])],decls:41,vars:15,consts:[["headerTitle","Tokopedia - Product Download By Url",3,"hideSearchBox","hideSearchDropdown"],[4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],["labelPosition","bottom","linear","",1,"stepper-downloadByUrl",3,"selectedIndex","selectionChange"],["stepper",""],["state","GUIDE",3,"editable","completed"],["matStepLabel",""],[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"],["state","DOWNLOAD",3,"editable","completed"],["name","url","cols","30","rows","25",1,"form-control",3,"placeholder","ngModel","ngModelChange"],["state","FINISH"],["status","error",3,"data","configs"],["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,"disabled","click"],[1,"fa-solid","fa-info"],[1,"fa-solid","fa-download"],[1,"fa-sharp","fa-solid","fa-flag"]],template:function(i,r){i&1&&(o(0,"mainpanel",0)(1,"actions"),c(2,ye,4,0,"ng-container",1)(3,Ce,3,0,"ng-container",1)(4,be,3,0,"ng-container",1)(5,we,3,1,"ng-container",1),a(),o(6,"content")(7,"div",2)(8,"div",3)(9,"div",4)(10,"mat-stepper",5,6),_("selectionChange",function(D){return r.onStepperChange(D)}),o(12,"mat-step",7),c(13,xe,1,0,"ng-template",8),o(14,"div",9)(15,"div",10)(16,"div",11)(17,"h4",12),m(18,"Note"),a()(),o(19,"div",13)(20,"ol",14)(21,"li"),m(22," Use this form to Download Products from Tokopedia using product URL "),a(),o(23,"li"),m(24," Copy Product URL from "),o(25,"a",15),m(26,"https://seller.tokopedia.com/ "),a(),m(27," and paste in this form "),a(),o(28,"li"),m(29," Use New Line when you want to input several product URLs "),a()()()()()(),o(30,"mat-step",16),c(31,Ie,1,0,"ng-template",8),o(32,"div",9)(33,"textarea",17),_("ngModelChange",function(D){return r.urls=D}),a()()(),o(34,"mat-step",18),c(35,De,1,0,"ng-template",8),o(36,"div",9),d(37,"app-response-api-list",19),a()(),c(38,Ee,1,0,"ng-template",20)(39,Te,1,0,"ng-template",21)(40,Ne,1,0,"ng-template",22),a()()()()()()),i&2&&(p("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),p("ngIf",r.stepperState=="FINISH"),l(1),p("ngIf",r.stepperState=="DOWNLOAD"),l(1),p("ngIf",r.stepperState=="GUIDE"),l(1),p("ngIf",r.stepperState=="DOWNLOAD"),l(5),p("selectedIndex",1),l(2),p("editable",r.stepperState!="FINISH")("completed",!0),l(18),p("editable",r.stepperState!="FINISH")("completed",!1),l(3),p("placeholder",r.urlPlaceholder)("ngModel",r.urls),l(4),p("data",r.downloadResponses)("configs",r.configs))},dependencies:[R,W,z,G,Q,oe,ne,re,ie,se],styles:[`.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%}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container mat-step-header>div.mat-step-label{padding-top:8px}
5
- `],encapsulation:2});let e=t;return e})();var Ue=[{path:"",component:pe,children:[{path:"by-url",component:me,data:{title:"Download Product By Url"},canActivate:[J]},{pathMatch:"full",path:"",redirectTo:"by-url"}]}],ot=(()=>{let t=class t{};t.\u0275fac=function(i){return new(i||t)},t.\u0275mod=k({type:t}),t.\u0275inj=N({providers:[I],imports:[A,K,Z,X,ae,te,$.forChild(Ue)]});let e=t;return e})();export{ot as DownloadModule};