marketplacepos 3.15.0 → 3.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/{chunk-UJNV7X2C.js → chunk-2DXLUQ37.js} +1 -1
- package/Marketplace/{chunk-B4RTU5A6.js → chunk-2H6RTUI7.js} +1 -1
- package/Marketplace/{chunk-MS7TDJGD.js → chunk-377T6MRS.js} +1 -1
- package/Marketplace/{chunk-BCZNQVP7.js → chunk-3LFPRLIN.js} +4 -4
- package/Marketplace/{chunk-ZXDRQ5NO.js → chunk-6UIEOJ5F.js} +1 -1
- package/Marketplace/{chunk-L33MFTTM.js → chunk-AMJOGMUP.js} +1 -1
- package/Marketplace/{chunk-IQJZLNR7.js → chunk-BIJUW2YT.js} +1 -1
- package/Marketplace/{chunk-LIUFDNS2.js → chunk-CMEYJNG2.js} +3 -3
- package/Marketplace/{chunk-EZZU5A4W.js → chunk-E7OT7R3Z.js} +1 -1
- package/Marketplace/{chunk-K76GF3AP.js → chunk-FACXOOME.js} +1 -1
- package/Marketplace/{chunk-UYUDVWKN.js → chunk-G42YVZDB.js} +1 -1
- package/Marketplace/{chunk-Q4FOBI47.js → chunk-GHRADKBY.js} +1 -1
- package/Marketplace/{chunk-EI3KPHG7.js → chunk-GS4AHG4Z.js} +2 -2
- package/Marketplace/{chunk-MTGMHTUM.js → chunk-K2RTDCYM.js} +1 -1
- package/Marketplace/{chunk-PDMFRPES.js → chunk-LCVHYD7R.js} +1 -1
- package/Marketplace/{chunk-ZUTKRQCG.js → chunk-O4KD2NHK.js} +1 -1
- package/Marketplace/{chunk-TAUCMC6B.js → chunk-OML53I6I.js} +1 -1
- package/Marketplace/{chunk-BIWUQMY6.js → chunk-QWBRNEPW.js} +1 -1
- package/Marketplace/{chunk-6UPC6ZHH.js → chunk-QWWHTKOD.js} +1 -1
- package/Marketplace/{chunk-GMIPFSK2.js → chunk-VRWHBZNB.js} +1 -1
- package/Marketplace/{chunk-OKITFWXZ.js → chunk-VUAE4ACL.js} +1 -1
- package/Marketplace/{chunk-ETN6PAVE.js → chunk-XB2E6KQY.js} +1 -1
- package/Marketplace/{chunk-WUOENHV6.js → chunk-YDHKWEGR.js} +1 -1
- package/Marketplace/{chunk-UYBM65IV.js → chunk-ZSVDUB3D.js} +1 -1
- package/Marketplace/{chunk-PHVJKT43.js → chunk-ZYS3QD4F.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-AHDSMQXN.js → main-5VBEV3KS.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{g as c}from"./chunk-
|
|
1
|
+
import{g as c}from"./chunk-OML53I6I.js";import{b as a}from"./chunk-AAFEUTPF.js";import{$ as s,ca as o}from"./chunk-HSFUKC7R.js";var d=(()=>{let e=class e{constructor(i,t){this.toastr=i,this.authService=t}canActivate(i,t){let n=JSON.parse(window.localStorage.getItem("user")),l=new Date;if(n!=null){let p=new Date(n.Token.expiredAt);return l<p?!0:(this.onTokenExpired(),!1)}else return this.onTokenExpired(),!1}onTokenExpired(){this.toastr.error("Your session has expired. Please login again.","Session Expired").onShown.subscribe(()=>this.authService.logout())}};e.\u0275fac=function(t){return new(t||e)(o(a),o(c))},e.\u0275prov=s({token:e,factory:e.\u0275fac,providedIn:"root"});let r=e;return r})();export{d as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as R}from"./chunk-6NFPCNPI.js";import{a as Q}from"./chunk-XHAXYWZ7.js";import{a as Ve,b as De,c as $}from"./chunk-VVKIT2K2.js";import"./chunk-BVIRHZTZ.js";import{b as Ee}from"./chunk-RXDUUYMX.js";import{a as Me}from"./chunk-GP6U42SV.js";import{a as Pe,b as Fe}from"./chunk-O5FN3DLG.js";import{a as be}from"./chunk-EEOWKNSQ.js";import"./chunk-IJAO5VS5.js";import{a as Te}from"./chunk-C62XLEFW.js";import"./chunk-6NTRXLMW.js";import{a as ge,b as Ce,d as he,e as xe}from"./chunk-Y27IE54D.js";import{g as ue}from"./chunk-TAUCMC6B.js";import{b as ce,e as _e}from"./chunk-AAFEUTPF.js";import"./chunk-KCDL7SWP.js";import{d as ve,k as ye,l as Ie,m as we}from"./chunk-UUNZHJ6W.js";import{t as fe,u as Se}from"./chunk-CTKEWRX4.js";import"./chunk-GXHE2CDH.js";import{b as ae,c as le,h as re,l as se,n as pe,y as me}from"./chunk-QOA24ZLA.js";import{c as D,f as de}from"./chunk-2AMEIUWK.js";import{$a as c,$b as S,Ac as ne,B as z,Cc as ie,Dc as oe,Ha as F,Hb as O,Ia as s,Ib as m,Ja as T,Jb as V,Kb as P,Mb as I,Nb as w,Ob as b,Pb as Z,Q as G,Qb as q,Sb as k,X as B,Za as u,_b as C,ac as N,bc as U,da as H,ga as Y,gb as y,hb as L,jb as A,kb as W,lb as a,mb as r,nb as x,oa as _,ob as M,pa as d,pb as E,rb as v,tc as X,ub as f,vc as J,wb as l,wc as ee,zb as K,zc as te}from"./chunk-HSFUKC7R.js";import"./chunk-GNOSNGXM.js";var Re=n=>({"text-decoration-line-through":n}),Be=n=>({"ms-10":n}),Le=n=>({"bg-gradient-warning":n});function Ae(n,p){if(n&1){let e=v();a(0,"button",39),f("click",function(){_(e);let t=l().ngIf,o=l(2);return d(o.updateStock(t))}),x(1,"i",40),m(2," Update "),r()}}function We(n,p){if(n&1){let e=v();a(0,"div"),u(1,Ae,3,0,"button",36),a(2,"button",37),f("click",function(){_(e);let t=l(2);return d(t.openExportDialog())}),x(3,"i",38),a(4,"span"),m(5,"Export"),r()()()}if(n&2){let e=p.ngIf,i=l(2);s(),c("ngIf",i.productService.hasSelectionVariant(e))}}function Oe(n,p){if(n&1&&(a(0,"span",41),x(1,"img",42),r(),m(2)),n&2){let e=p.item;s(),c("src",e==null?null:e.Img,F),s(),P(" ",e.Name," ")}}function Ue(n,p){n&1&&(a(0,"div",43)(1,"span"),m(2," showing only different stock, please press next to populate more data "),r()())}function $e(n,p){if(n&1){let e=v();a(0,"th")(1,"input",44),b("ngModelChange",function(t){_(e);let o=l(2);return w(o.checkboxState,t)||(o.checkboxState=t),d(t)}),f("ngModelChange",function(){let t=_(e).ngIf,o=l(2);return d(o.onCheckboxStateChange(t))}),r()()}if(n&2){let e=l(2);s(),I("ngModel",e.checkboxState)}}function Qe(n,p){n&1&&(a(0,"th",33),m(1," Reserved "),r())}function je(n,p){}function ze(n,p){if(n&1){let e=v();a(0,"input",63),b("ngModelChange",function(t){_(e);let o=l(3).$implicit;return w(o.selected,t)||(o.selected=t),d(t)}),f("ngModelChange",function(){_(e);let t=l(3).$implicit,o=l(2);return d(o.onCheckboxStateProduct(t))}),r()}if(n&2){let e=l(3).$implicit;I("ngModel",e.selected)}}function Ge(n,p){if(n&1){let e=v();a(0,"img",64),f("click",function(t){_(e);let o=l(3).$implicit,h=l(2);return d(h.onZoomImage(t,o==null?null:o.ImageUrl))}),r()}if(n&2){let e=l(3).$implicit;K("src",e==null?null:e.ThumbnailUrl,F)}}function He(n,p){n&1&&x(0,"img",60)}function Ye(n,p){if(n&1&&(x(0,"br"),a(1,"div",65),x(2,"i",66),a(3,"small"),m(4),r()()),n&2){let e=l(3).$implicit;s(4),P("(",e==null?null:e.Category,")")}}function Ke(n,p){if(n&1&&(a(0,"td",56)(1,"div",15),u(2,ze,1,1,"input",57),a(3,"div",58),u(4,Ge,1,1,"img",59)(5,He,1,0,"img",60),r()()(),a(6,"td",61)(7,"span",62),m(8),r(),u(9,Ye,5,1),r()),n&2){let e=l(2).$implicit,i=l(2);c("rowSpan",e==null?null:e.Variants.length),s(2),y(e.Variants.length>1?2:-1),s(),c("ngClass",k(7,Be,e.Variants.length<=1)),s(),y(e!=null&&e.ThumbnailUrl?4:5),s(2),c("rowSpan",e==null?null:e.Variants.length),s(2),V(e==null?null:e.Name),s(),y(e.CategoryID!==null&&e.CategoryID!=i.guidEmpty?9:-1)}}function Ze(n,p){if(n&1){let e=v();a(0,"input",44),b("ngModelChange",function(t){_(e);let o=l(2).$implicit;return w(o.selected,t)||(o.selected=t),d(t)}),r()}if(n&2){let e=l(2).$implicit;I("ngModel",e.selected)}}function qe(n,p){if(n&1&&u(0,Ze,1,1,"input",50),n&2){let e=l().$implicit;y((e==null?null:e.Inventory)<=1e5?0:-1)}}function Xe(n,p){if(n&1){let e=v();a(0,"input",44),b("ngModelChange",function(t){_(e);let o=l().$implicit;return w(o.selected,t)||(o.selected=t),d(t)}),r()}if(n&2){let e=l().$implicit;I("ngModel",e.selected)}}function Je(n,p){n&1&&(a(0,"div",67),m(1," Not Found "),r())}function et(n,p){if(n&1&&(a(0,"div")(1,"span",68),m(2),C(3,"number"),r(),m(4," => "),a(5,"span",69),m(6),C(7,"number"),r()()),n&2){let e=l().$implicit;s(2),P(" ",S(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),V(S(7,4,e==null?null:e.Inventory))}}function tt(n,p){if(n&1&&(m(0),C(1,"number")),n&2){let e=l().$implicit;P(" ",S(1,1,e==null?null:e.Inventory)," ")}}function nt(n,p){if(n&1&&(M(0),a(1,"div",70)(2,"a",71),x(3,"i",72),r()(),E()),n&2){let e=l().$implicit,i=l(3);s(2),c("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),F)}}function it(n,p){if(n&1){let e=v();a(0,"span",77),f("click",function(){let t=_(e).ngIf,o=l(2).$implicit,h=l().$implicit,g=l(2);return d(g.openTableDialog(h,o,t))}),m(1),C(2,"number"),r()}if(n&2){let e=l(2).$implicit;s(),P(" ",S(2,1,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function ot(n,p){if(n&1){let e=v();a(0,"td",73)(1,"div",51)(2,"div"),u(3,it,3,3,"span",74),C(4,"async"),r(),a(5,"div",70)(6,"a",71),x(7,"i",72),r()(),a(8,"div",70)(9,"span",75),f("click",function(){_(e);let t=l().$implicit,o=l(3);return d(o.refreshInventory(t==null||t.Channel[0]==null?null:t.Channel[0].ChannelItemID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelVariationID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelID,t==null?null:t.ID))}),x(10,"i",76),r()()()()}if(n&2){let e=l().$implicit,i=l(3);c("ngClass",k(5,Le,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),c("ngIf",S(4,3,i.products$)),s(3),c("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,F)}}function at(n,p){if(n&1&&(M(0),a(1,"span",78),m(2),C(3,"number"),r(),E()),n&2){let e=l(2).$implicit;s(2),P(" (",S(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function lt(n,p){n&1&&m(0," - ")}function rt(n,p){if(n&1&&(M(0),a(1,"td",47),u(2,at,4,3,"ng-container",55)(3,lt,1,0,"ng-template",null,1,U),r(),E()),n&2){let e=O(4),i=l().$implicit;s(2),c("ngIf",i==null||i.Channel[0]==null?null:i.Channel[0].InventoryReserved)("ngIfElse",e)}}function st(n,p){n&1&&(M(0),m(1," - "),E())}function pt(n,p){if(n&1&&(a(0,"span",79),C(1,"date"),m(2),C(3,"date"),r()),n&2){let e=l().$implicit;c("matTooltip",N(1,2,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMMM yyyy HH:mm:ss")),s(2),P(" ",N(3,5,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMM yy HH:mm")," ")}}function mt(n,p){if(n&1&&(a(0,"tr"),u(1,Ke,10,9),a(2,"td",46),m(3),r(),a(4,"td",47)(5,"span",48),m(6),r()(),a(7,"td",49),u(8,qe,1,1)(9,Xe,1,1,"input",50),r(),a(10,"td")(11,"div",51),u(12,Je,2,0,"div",52)(13,et,8,6,"div")(14,tt,2,3)(15,nt,4,1,"ng-container",5),r()(),u(16,ot,11,7,"td",53)(17,rt,5,2,"ng-container",5),a(18,"td",54),u(19,st,2,0,"ng-container",55)(20,pt,4,8,"ng-template",null,0,U),r()()),n&2){let e=p.$implicit,i=p.index,t=O(21),o=l(3);s(),y(i==0?1:-1),s(2),V(e==null?null:e.Model),s(2),c("matTooltip",e.Discontinued?o.discontinuedVariantMsg:"")("ngClass",k(14,Re,e.Discontinued)),s(),V(e==null?null:e.Code),s(2),y((e==null?null:e.Channel[0].TypeID)==1?8:(e==null?null:e.Inventory)>=0?9:-1),s(4),c("ngIf",(e==null?null:e.I)==null),s(),y((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?13:-1),s(),y((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?14:-1),s(),c("ngIf",(e==null?null:e.I)!=null),s(),c("ngIf",e==null?null:e.Channel),s(),c("ngIf",o.isShowReservedColumn),s(2),c("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==o.minDate)("ngIfElse",t)}}function ct(n,p){if(n&1&&(a(0,"tbody"),A(1,je,0,0,null,null,L),u(3,mt,22,16,"tr",45),r()),n&2){let e=p.$implicit;s(),W(e.Variants),s(2),c("ngForOf",e.Variants)}}function _t(n,p){if(n&1){let e=v();a(0,"mainpanel",3),f("onSubmit",function(t){_(e);let o=l();return d(o.onSearch(t))}),a(1,"actions")(2,"div",4),u(3,We,6,1,"div",5),C(4,"async"),r()(),a(5,"filters")(6,"div")(7,"label",6),m(8,"Channel"),r(),a(9,"ng-select",7),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.ChannelID,t)||(o.searchFilter.ChannelID=t),d(t)}),u(10,Oe,3,2,"ng-template",8),r()(),a(11,"div",9)(12,"label",10),m(13,"PageNumber"),r(),a(14,"input",11),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.PageNumber,t)||(o.searchFilter.PageNumber=t),d(t)}),r()(),a(15,"div",9)(16,"label",12),m(17,"Page Size"),r(),a(18,"input",13),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.RowCount,t)||(o.searchFilter.RowCount=t),d(t)}),r()(),a(19,"div",9)(20,"label",14),m(21,"Quantity From - To"),r(),a(22,"div",15)(23,"input",16),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.QuantityFrom,t)||(o.searchFilter.QuantityFrom=t),d(t)}),r(),m(24," - "),a(25,"input",17),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.QuantityTo,t)||(o.searchFilter.QuantityTo=t),d(t)}),r()()()(),a(26,"content")(27,"div",18)(28,"div",19)(29,"div",20),u(30,Ue,3,0,"div",21),a(31,"table",22)(32,"thead",23)(33,"tr")(34,"th",24),m(35," Product "),x(36,"br"),a(37,"mat-slide-toggle",25),f("toggleChange",function(){_(e);let t=l();return t.showDifferenceStock=!t.showDifferenceStock,d(t.onShowDifferenceStock())}),a(38,"small",14),m(39,"FILTER DIFFERENT INVENTORY"),r()()(),a(40,"th",26),m(41,"Variant"),r(),a(42,"th",27),m(43,"SKU"),r(),u(44,$e,2,1,"th",5),C(45,"async"),a(46,"th",28),m(47,"POS"),r(),a(48,"th",29)(49,"div",30),f("click",function(){_(e);let t=l();return d(t.openModalFilter())}),x(50,"img",31),a(51,"span",32),m(52),C(53,"stringLimit"),r()()(),u(54,Qe,2,0,"th",33),a(55,"th",34),m(56,"Last Sync"),r()()(),A(57,ct,4,1,"tbody",null,L),C(59,"async"),r(),a(60,"infinite-paginator",35),C(61,"async"),f("onNextPage",function(){_(e);let t=l();return d(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){_(e);let t=l();return d(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){_(e);let t=l();return d(t.infinitePagination.getRowCount(t.searchFilter))}),r()()()()()()}if(n&2){let e=l();c("headerTitle","Inventory Comparison")("pageData",e.pageData)("hideSearchBox",!1),s(3),c("ngIf",S(4,23,e.products$)),s(6),c("clearable",!1)("items",e.channelOptions),I("ngModel",e.searchFilter.ChannelID),s(5),I("ngModel",e.searchFilter.PageNumber),s(4),I("ngModel",e.searchFilter.RowCount),s(5),I("ngModel",e.searchFilter.QuantityFrom),s(2),I("ngModel",e.searchFilter.QuantityTo),s(5),c("ngIf",(e.searchFilter==null?null:e.searchFilter.filterModel)==3),s(14),c("ngIf",S(45,25,e.products$)),s(5),c("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>13?e.selectedChannel==null?null:e.selectedChannel.Name:""),s(),c("src",e.selectedChannel==null?null:e.selectedChannel.Img,F),s(2),P(" ",N(53,27,e.selectedChannel==null?null:e.selectedChannel.Name,13)," "),s(2),y(e.isShowReservedColumn?54:-1),s(3),W(S(59,30,e.products$)),s(3),c("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",S(61,32,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage())}}var Ht=(()=>{let p=class p{constructor(i,t,o,h,g,j,ke,Ne){this.http=i,this.toastr=t,this.dialog=o,this.productService=h,this.authService=g,this.biggerPictureService=j,this.inventoryService=ke,this.mainPanelService=Ne,this.infinitePagination=H($),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=D.MinDate,this.isShowReservedColumn=!0,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.guidEmpty=D.GuidEMpty,this.Options=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.pageData={Title:"Inventory Realtime",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory",Active:!1},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!0}]}}ngOnInit(){this.channelOptions=this.authService.getChannels(),this.hostName=this.authService.getDomain(),this.initPageLoader(),this.products$=this.infinitePagination.data$.pipe(B(i=>{this.checkShowReservedColumn(i)}),G())}checkShowReservedColumn(i){let t=0,o;i.forEach(h=>{o=h.Variants.find(g=>D.IsNotEmpty(g?.Channel[0]?.InventoryReserved)),o&&(t+=1)}),this.isShowReservedColumn=t>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe(B(i=>{this.searchFilter={RowCount:i.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:i.Filter.ChannelID},this.initSelectedChannel(),this.infinitePagination.reloadPagination(this.searchFilter),this.showToastrMarketplaceInactive(!i.Filter.IsMarketplaceAppActive)}))}showToastrMarketplaceInactive(i){i&&this.toastr.warning(`Automatic inventory sync disabled.
|
|
1
|
+
import{a as R}from"./chunk-6NFPCNPI.js";import{a as Q}from"./chunk-XHAXYWZ7.js";import{a as Ve,b as De,c as $}from"./chunk-VVKIT2K2.js";import"./chunk-BVIRHZTZ.js";import{b as Ee}from"./chunk-RXDUUYMX.js";import{a as Me}from"./chunk-GP6U42SV.js";import{a as Pe,b as Fe}from"./chunk-O5FN3DLG.js";import{a as be}from"./chunk-EEOWKNSQ.js";import"./chunk-IJAO5VS5.js";import{a as Te}from"./chunk-C62XLEFW.js";import"./chunk-6NTRXLMW.js";import{a as ge,b as Ce,d as he,e as xe}from"./chunk-Y27IE54D.js";import{g as ue}from"./chunk-OML53I6I.js";import{b as ce,e as _e}from"./chunk-AAFEUTPF.js";import"./chunk-KCDL7SWP.js";import{d as ve,k as ye,l as Ie,m as we}from"./chunk-UUNZHJ6W.js";import{t as fe,u as Se}from"./chunk-CTKEWRX4.js";import"./chunk-GXHE2CDH.js";import{b as ae,c as le,h as re,l as se,n as pe,y as me}from"./chunk-QOA24ZLA.js";import{c as D,f as de}from"./chunk-2AMEIUWK.js";import{$a as c,$b as S,Ac as ne,B as z,Cc as ie,Dc as oe,Ha as F,Hb as O,Ia as s,Ib as m,Ja as T,Jb as V,Kb as P,Mb as I,Nb as w,Ob as b,Pb as Z,Q as G,Qb as q,Sb as k,X as B,Za as u,_b as C,ac as N,bc as U,da as H,ga as Y,gb as y,hb as L,jb as A,kb as W,lb as a,mb as r,nb as x,oa as _,ob as M,pa as d,pb as E,rb as v,tc as X,ub as f,vc as J,wb as l,wc as ee,zb as K,zc as te}from"./chunk-HSFUKC7R.js";import"./chunk-GNOSNGXM.js";var Re=n=>({"text-decoration-line-through":n}),Be=n=>({"ms-10":n}),Le=n=>({"bg-gradient-warning":n});function Ae(n,p){if(n&1){let e=v();a(0,"button",39),f("click",function(){_(e);let t=l().ngIf,o=l(2);return d(o.updateStock(t))}),x(1,"i",40),m(2," Update "),r()}}function We(n,p){if(n&1){let e=v();a(0,"div"),u(1,Ae,3,0,"button",36),a(2,"button",37),f("click",function(){_(e);let t=l(2);return d(t.openExportDialog())}),x(3,"i",38),a(4,"span"),m(5,"Export"),r()()()}if(n&2){let e=p.ngIf,i=l(2);s(),c("ngIf",i.productService.hasSelectionVariant(e))}}function Oe(n,p){if(n&1&&(a(0,"span",41),x(1,"img",42),r(),m(2)),n&2){let e=p.item;s(),c("src",e==null?null:e.Img,F),s(),P(" ",e.Name," ")}}function Ue(n,p){n&1&&(a(0,"div",43)(1,"span"),m(2," showing only different stock, please press next to populate more data "),r()())}function $e(n,p){if(n&1){let e=v();a(0,"th")(1,"input",44),b("ngModelChange",function(t){_(e);let o=l(2);return w(o.checkboxState,t)||(o.checkboxState=t),d(t)}),f("ngModelChange",function(){let t=_(e).ngIf,o=l(2);return d(o.onCheckboxStateChange(t))}),r()()}if(n&2){let e=l(2);s(),I("ngModel",e.checkboxState)}}function Qe(n,p){n&1&&(a(0,"th",33),m(1," Reserved "),r())}function je(n,p){}function ze(n,p){if(n&1){let e=v();a(0,"input",63),b("ngModelChange",function(t){_(e);let o=l(3).$implicit;return w(o.selected,t)||(o.selected=t),d(t)}),f("ngModelChange",function(){_(e);let t=l(3).$implicit,o=l(2);return d(o.onCheckboxStateProduct(t))}),r()}if(n&2){let e=l(3).$implicit;I("ngModel",e.selected)}}function Ge(n,p){if(n&1){let e=v();a(0,"img",64),f("click",function(t){_(e);let o=l(3).$implicit,h=l(2);return d(h.onZoomImage(t,o==null?null:o.ImageUrl))}),r()}if(n&2){let e=l(3).$implicit;K("src",e==null?null:e.ThumbnailUrl,F)}}function He(n,p){n&1&&x(0,"img",60)}function Ye(n,p){if(n&1&&(x(0,"br"),a(1,"div",65),x(2,"i",66),a(3,"small"),m(4),r()()),n&2){let e=l(3).$implicit;s(4),P("(",e==null?null:e.Category,")")}}function Ke(n,p){if(n&1&&(a(0,"td",56)(1,"div",15),u(2,ze,1,1,"input",57),a(3,"div",58),u(4,Ge,1,1,"img",59)(5,He,1,0,"img",60),r()()(),a(6,"td",61)(7,"span",62),m(8),r(),u(9,Ye,5,1),r()),n&2){let e=l(2).$implicit,i=l(2);c("rowSpan",e==null?null:e.Variants.length),s(2),y(e.Variants.length>1?2:-1),s(),c("ngClass",k(7,Be,e.Variants.length<=1)),s(),y(e!=null&&e.ThumbnailUrl?4:5),s(2),c("rowSpan",e==null?null:e.Variants.length),s(2),V(e==null?null:e.Name),s(),y(e.CategoryID!==null&&e.CategoryID!=i.guidEmpty?9:-1)}}function Ze(n,p){if(n&1){let e=v();a(0,"input",44),b("ngModelChange",function(t){_(e);let o=l(2).$implicit;return w(o.selected,t)||(o.selected=t),d(t)}),r()}if(n&2){let e=l(2).$implicit;I("ngModel",e.selected)}}function qe(n,p){if(n&1&&u(0,Ze,1,1,"input",50),n&2){let e=l().$implicit;y((e==null?null:e.Inventory)<=1e5?0:-1)}}function Xe(n,p){if(n&1){let e=v();a(0,"input",44),b("ngModelChange",function(t){_(e);let o=l().$implicit;return w(o.selected,t)||(o.selected=t),d(t)}),r()}if(n&2){let e=l().$implicit;I("ngModel",e.selected)}}function Je(n,p){n&1&&(a(0,"div",67),m(1," Not Found "),r())}function et(n,p){if(n&1&&(a(0,"div")(1,"span",68),m(2),C(3,"number"),r(),m(4," => "),a(5,"span",69),m(6),C(7,"number"),r()()),n&2){let e=l().$implicit;s(2),P(" ",S(3,2,e==null||e.I==null?null:e.I.Available),""),s(4),V(S(7,4,e==null?null:e.Inventory))}}function tt(n,p){if(n&1&&(m(0),C(1,"number")),n&2){let e=l().$implicit;P(" ",S(1,1,e==null?null:e.Inventory)," ")}}function nt(n,p){if(n&1&&(M(0),a(1,"div",70)(2,"a",71),x(3,"i",72),r()(),E()),n&2){let e=l().$implicit,i=l(3);s(2),c("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),F)}}function it(n,p){if(n&1){let e=v();a(0,"span",77),f("click",function(){let t=_(e).ngIf,o=l(2).$implicit,h=l().$implicit,g=l(2);return d(g.openTableDialog(h,o,t))}),m(1),C(2,"number"),r()}if(n&2){let e=l(2).$implicit;s(),P(" ",S(2,1,e==null||e.Channel[0]==null?null:e.Channel[0].Inventory)," ")}}function ot(n,p){if(n&1){let e=v();a(0,"td",73)(1,"div",51)(2,"div"),u(3,it,3,3,"span",74),C(4,"async"),r(),a(5,"div",70)(6,"a",71),x(7,"i",72),r()(),a(8,"div",70)(9,"span",75),f("click",function(){_(e);let t=l().$implicit,o=l(3);return d(o.refreshInventory(t==null||t.Channel[0]==null?null:t.Channel[0].ChannelItemID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelVariationID,t==null||t.Channel[0]==null?null:t.Channel[0].ChannelID,t==null?null:t.ID))}),x(10,"i",76),r()()()()}if(n&2){let e=l().$implicit,i=l(3);c("ngClass",k(5,Le,(e==null?null:e.Inventory)!=(e==null||e.Channel[0]==null?null:e.Channel[0].Inventory))),s(3),c("ngIf",S(4,3,i.products$)),s(3),c("href",e==null||e.Channel[0]==null?null:e.Channel[0].Url,F)}}function at(n,p){if(n&1&&(M(0),a(1,"span",78),m(2),C(3,"number"),r(),E()),n&2){let e=l(2).$implicit;s(2),P(" (",S(3,1,e==null||e.Channel[0]==null?null:e.Channel[0].InventoryReserved),") ")}}function lt(n,p){n&1&&m(0," - ")}function rt(n,p){if(n&1&&(M(0),a(1,"td",47),u(2,at,4,3,"ng-container",55)(3,lt,1,0,"ng-template",null,1,U),r(),E()),n&2){let e=O(4),i=l().$implicit;s(2),c("ngIf",i==null||i.Channel[0]==null?null:i.Channel[0].InventoryReserved)("ngIfElse",e)}}function st(n,p){n&1&&(M(0),m(1," - "),E())}function pt(n,p){if(n&1&&(a(0,"span",79),C(1,"date"),m(2),C(3,"date"),r()),n&2){let e=l().$implicit;c("matTooltip",N(1,2,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMMM yyyy HH:mm:ss")),s(2),P(" ",N(3,5,e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync,"dd MMM yy HH:mm")," ")}}function mt(n,p){if(n&1&&(a(0,"tr"),u(1,Ke,10,9),a(2,"td",46),m(3),r(),a(4,"td",47)(5,"span",48),m(6),r()(),a(7,"td",49),u(8,qe,1,1)(9,Xe,1,1,"input",50),r(),a(10,"td")(11,"div",51),u(12,Je,2,0,"div",52)(13,et,8,6,"div")(14,tt,2,3)(15,nt,4,1,"ng-container",5),r()(),u(16,ot,11,7,"td",53)(17,rt,5,2,"ng-container",5),a(18,"td",54),u(19,st,2,0,"ng-container",55)(20,pt,4,8,"ng-template",null,0,U),r()()),n&2){let e=p.$implicit,i=p.index,t=O(21),o=l(3);s(),y(i==0?1:-1),s(2),V(e==null?null:e.Model),s(2),c("matTooltip",e.Discontinued?o.discontinuedVariantMsg:"")("ngClass",k(14,Re,e.Discontinued)),s(),V(e==null?null:e.Code),s(2),y((e==null?null:e.Channel[0].TypeID)==1?8:(e==null?null:e.Inventory)>=0?9:-1),s(4),c("ngIf",(e==null?null:e.I)==null),s(),y((e==null?null:e.I)!=null&&(e==null?null:e.Inventory)!=(e==null||e.I==null?null:e.I.Available)?13:-1),s(),y((e==null?null:e.Inventory)==(e==null||e.I==null?null:e.I.Available)?14:-1),s(),c("ngIf",(e==null?null:e.I)!=null),s(),c("ngIf",e==null?null:e.Channel),s(),c("ngIf",o.isShowReservedColumn),s(2),c("ngIf",(e==null||e.Channel[0]==null?null:e.Channel[0].LastInventorySync)==o.minDate)("ngIfElse",t)}}function ct(n,p){if(n&1&&(a(0,"tbody"),A(1,je,0,0,null,null,L),u(3,mt,22,16,"tr",45),r()),n&2){let e=p.$implicit;s(),W(e.Variants),s(2),c("ngForOf",e.Variants)}}function _t(n,p){if(n&1){let e=v();a(0,"mainpanel",3),f("onSubmit",function(t){_(e);let o=l();return d(o.onSearch(t))}),a(1,"actions")(2,"div",4),u(3,We,6,1,"div",5),C(4,"async"),r()(),a(5,"filters")(6,"div")(7,"label",6),m(8,"Channel"),r(),a(9,"ng-select",7),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.ChannelID,t)||(o.searchFilter.ChannelID=t),d(t)}),u(10,Oe,3,2,"ng-template",8),r()(),a(11,"div",9)(12,"label",10),m(13,"PageNumber"),r(),a(14,"input",11),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.PageNumber,t)||(o.searchFilter.PageNumber=t),d(t)}),r()(),a(15,"div",9)(16,"label",12),m(17,"Page Size"),r(),a(18,"input",13),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.RowCount,t)||(o.searchFilter.RowCount=t),d(t)}),r()(),a(19,"div",9)(20,"label",14),m(21,"Quantity From - To"),r(),a(22,"div",15)(23,"input",16),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.QuantityFrom,t)||(o.searchFilter.QuantityFrom=t),d(t)}),r(),m(24," - "),a(25,"input",17),b("ngModelChange",function(t){_(e);let o=l();return w(o.searchFilter.QuantityTo,t)||(o.searchFilter.QuantityTo=t),d(t)}),r()()()(),a(26,"content")(27,"div",18)(28,"div",19)(29,"div",20),u(30,Ue,3,0,"div",21),a(31,"table",22)(32,"thead",23)(33,"tr")(34,"th",24),m(35," Product "),x(36,"br"),a(37,"mat-slide-toggle",25),f("toggleChange",function(){_(e);let t=l();return t.showDifferenceStock=!t.showDifferenceStock,d(t.onShowDifferenceStock())}),a(38,"small",14),m(39,"FILTER DIFFERENT INVENTORY"),r()()(),a(40,"th",26),m(41,"Variant"),r(),a(42,"th",27),m(43,"SKU"),r(),u(44,$e,2,1,"th",5),C(45,"async"),a(46,"th",28),m(47,"POS"),r(),a(48,"th",29)(49,"div",30),f("click",function(){_(e);let t=l();return d(t.openModalFilter())}),x(50,"img",31),a(51,"span",32),m(52),C(53,"stringLimit"),r()()(),u(54,Qe,2,0,"th",33),a(55,"th",34),m(56,"Last Sync"),r()()(),A(57,ct,4,1,"tbody",null,L),C(59,"async"),r(),a(60,"infinite-paginator",35),C(61,"async"),f("onNextPage",function(){_(e);let t=l();return d(t.infinitePagination.onNextPage(t.searchFilter))})("onLastPage",function(){_(e);let t=l();return d(t.infinitePagination.onLastPage(t.searchFilter))})("onGetRowCount",function(){_(e);let t=l();return d(t.infinitePagination.getRowCount(t.searchFilter))}),r()()()()()()}if(n&2){let e=l();c("headerTitle","Inventory Comparison")("pageData",e.pageData)("hideSearchBox",!1),s(3),c("ngIf",S(4,23,e.products$)),s(6),c("clearable",!1)("items",e.channelOptions),I("ngModel",e.searchFilter.ChannelID),s(5),I("ngModel",e.searchFilter.PageNumber),s(4),I("ngModel",e.searchFilter.RowCount),s(5),I("ngModel",e.searchFilter.QuantityFrom),s(2),I("ngModel",e.searchFilter.QuantityTo),s(5),c("ngIf",(e.searchFilter==null?null:e.searchFilter.filterModel)==3),s(14),c("ngIf",S(45,25,e.products$)),s(5),c("matTooltip",(e.selectedChannel==null||e.selectedChannel.Name==null?null:e.selectedChannel.Name.length)>13?e.selectedChannel==null?null:e.selectedChannel.Name:""),s(),c("src",e.selectedChannel==null?null:e.selectedChannel.Img,F),s(2),P(" ",N(53,27,e.selectedChannel==null?null:e.selectedChannel.Name,13)," "),s(2),y(e.isShowReservedColumn?54:-1),s(3),W(S(59,30,e.products$)),s(3),c("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",S(61,32,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage())}}var Ht=(()=>{let p=class p{constructor(i,t,o,h,g,j,ke,Ne){this.http=i,this.toastr=t,this.dialog=o,this.productService=h,this.authService=g,this.biggerPictureService=j,this.inventoryService=ke,this.mainPanelService=Ne,this.infinitePagination=H($),this.checkboxState=!1,this.showDifferenceStock=!1,this.loaderApi="InventoryLoader/Load",this.fetchApi="Inventory/GetSingleChannelComparison",this.rowCountApi="Inventory/GetInventoryByChannelRowCount",this.minDate=D.MinDate,this.isShowReservedColumn=!0,this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.guidEmpty=D.GuidEMpty,this.Options=[{Key:1,Value:"All"},{Key:3,Value:"Difference"}],this.pageData={Title:"Inventory Realtime",Nav:[{Title:"Inventory Cache",Url:"/menu/inventory",Active:!1},{Title:"Inventory Realtime",Url:"/menu/inventory/realtime",Active:!0}]}}ngOnInit(){this.channelOptions=this.authService.getChannels(),this.hostName=this.authService.getDomain(),this.initPageLoader(),this.products$=this.infinitePagination.data$.pipe(B(i=>{this.checkShowReservedColumn(i)}),G())}checkShowReservedColumn(i){let t=0,o;i.forEach(h=>{o=h.Variants.find(g=>D.IsNotEmpty(g?.Channel[0]?.InventoryReserved)),o&&(t+=1)}),this.isShowReservedColumn=t>0}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.fetchApi,this.infinitePagination.fethRowCountEndpoint=this.rowCountApi,this.loader$=this.http.post(`/api/${this.loaderApi}`,{}).pipe(B(i=>{this.searchFilter={RowCount:i.Filter.PageSize,filterModel:1,PageNumber:1,ChannelID:i.Filter.ChannelID},this.initSelectedChannel(),this.infinitePagination.reloadPagination(this.searchFilter),this.showToastrMarketplaceInactive(!i.Filter.IsMarketplaceAppActive)}))}showToastrMarketplaceInactive(i){i&&this.toastr.warning(`Automatic inventory sync disabled.
|
|
2
2
|
Please enable Dealpos X Marketplace Apps integration in POS Configuration`,"Warning")}initSelectedChannel(){this.selectedChannel=this.channelOptions.find(i=>i.ID==this.searchFilter.ChannelID)}onSearch(i){this.searchFilter.text=i,this.infinitePagination.reloadPagination(this.searchFilter),this.initSelectedChannel()}openModalFilter(){this.mainPanelService.openModalFilter()}updateStock(i){let t=this.productService.selectedVariantProduct(i);if(t.length>0){let o=t.map(g=>({ID:g.ID,Code:g.Code,Inventory:g.Inventory})),h={ListChannelID:[this.searchFilter.ChannelID],List:o};this.http.post("/api/Inventory/UpdateChannel",h).subscribe(g=>{this.searchFilter.PageNumber=1,this.infinitePagination.reloadPagination(this.searchFilter),this.checkboxState=!1,this.handlingUpdateStock(g)})}}handlingUpdateStock(i){if(i[0]?.StatusProduct){let t=i[0].StatusProduct.Fail_list,o=i[0].StatusProduct.Success_list;this.inventoryService.showToastrUpdateInventory("Stock",o,t)}else this.toastr.error(i[0]?.Exception,"Error")}refreshInventory(i,t,o,h){let g={ChannelItemID:i,ChannelVariationID:t,ChannelID:o,VariantID:h};this.http.post("/api/Inventory/RefreshInventoryChannel",g).subscribe(j=>{this.toastr.success("Successfully updated","Success"),this.infinitePagination.reloadPagination(this.searchFilter)})}onCheckboxStateProduct(i){i.Variants=i.Variants.map(t=>(t.Inventory>=0&&(t.selected=i.selected),t))}onCheckboxStateChange(i){i=i.map(t=>(t.Variants=t.Variants.map(o=>(o.selected=this.checkboxState,o)),t))}openTableDialog(i,t,o){this.dialog.open(Ve,{data:{Name:i.Name,Variant:t,ChannelID:t?.Channel[0].ChannelID,Table:"inventory",ChannelItemID:i.ChannelItemID}}).afterClosed().pipe(z(g=>D.IsNotEmpty(g))).subscribe(g=>{this.updateItemAfterDialog(g,o)})}updateItemAfterDialog(i,t){let o={ID:i.ChannelID,ChannelItemID:i.ChannelItemID,ChannelVariantID:i.ChannelVariationID,NewQuantity:parseFloat(i.Inventory),VariantID:i.ID,SKU:i.Sku};this.http.post("/api/Inventory/UpdateQuantityByItem",o).subscribe(h=>{this.searchFilter.PageNumber=1,this.infinitePagination.reloadPagination(this.searchFilter),this.handlingUpdateStock([h])})}openExportDialog(){this.dialog.open(Ee,{data:{title:"Export Inventory Single Channel Comparison",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:this.rowCountApi,QuantityFrom:this.searchFilter.QuantityFrom,QuantityTo:this.searchFilter.QuantityTo,exportApi:"Inventory/GetExportSingleChannelComparison"}}).afterClosed().subscribe()}onShowDifferenceStock(){this.showDifferenceStock?this.searchFilter.filterModel=Q.DIFFERENCE:this.searchFilter.filterModel=Q.ALL,this.infinitePagination.reloadPagination(this.searchFilter)}onZoomImage(i,t){this.biggerPictureService.openBiggerPicture(i,t)}};p.\u0275fac=function(t){return new(t||p)(T(_e),T(ce),T(ve),T(be),T(ue),T(Te),T(R),T(ye))},p.\u0275cmp=Y({type:p,selectors:[["app-single-channel-comparison"]],standalone:!0,features:[Z([$,R]),q],decls:2,vars:3,consts:[["SYNCDATE",""],["EMPTY_RESERVED",""],["textButton","Search",3,"headerTitle","pageData","hideSearchBox","onSubmit",4,"ngIf"],["textButton","Search",3,"onSubmit","headerTitle","pageData","hideSearchBox"],[1,"d-flex"],[4,"ngIf"],["for","ng-select",1,"fw-bold"],["id","ng-select","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel","appendTo","body",1,"center-text","mt-3",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"mat-mdc-tooltip-trigger","form-control","ng-pristine","ng-valid","ng-touched","mt-3",3,"ngModelChange","ngModel"],[1,"fw-bold"],[1,"d-flex","align-items-center","justify-content-start"],["type","number","name","QuantityFrom",1,"w-25","me-2","mt-3","form-control",3,"ngModelChange","ngModel"],["type","number","name","QuantityTo",1,"w-25","ms-2","form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["class","alert alert-warning d-flex justify-content-between text-dark","role","alert",4,"ngIf"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","ps-12",2,"width","25%"],[3,"toggleChange"],["scope","col",1,"text-start"],["scope","col",1,"text-end",2,"width","10%"],["scope","col",1,"text-end","w-10",2,"width","8%"],[1,"text-end",2,"width","150px"],["role","button","matTooltipPosition","above",1,"d-inline-block",3,"click","matTooltip"],[2,"width","16px",3,"src"],[1,"ms-1"],["matTooltip","Reserved Stock","matTooltipPosition","above",1,"text-end",2,"width","80px"],[1,"text-center",2,"width","145px"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["class","btn btn-success",3,"click",4,"ngIf"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"btn","btn-success",3,"click"],[1,"fas","fa-chevron-circle-up"],[1,"me-2"],[2,"width","18px",3,"src"],["role","alert",1,"alert","alert-warning","d-flex","justify-content-between","text-dark"],["type","checkbox",3,"ngModelChange","ngModel"],[4,"ngFor","ngForOf"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",3,"matTooltip","ngClass"],[1,"align-middle"],["type","checkbox",3,"ngModel"],[1,"d-flex","align-items-center","justify-content-end"],["class","text-danger","matTooltip","This product is no longer available in POS","matTooltipPosition","above",4,"ngIf"],["class","text-end",3,"ngClass",4,"ngIf"],[1,"text-center"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"width","0%",3,"rowSpan"],["type","checkbox",1,"me-3",3,"ngModel"],[3,"ngClass"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img",2,"margin-left","20px"],[1,"text-start",3,"rowSpan"],[1,"item-name","mb-0"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel"],[1,"border","rounded","w-img","cursor-pointer",2,"margin-left","20px",3,"click","src"],[1,"d-flex","align-items-center"],["title","Category",1,"fa-solid","fa-tags","me-2",2,"opacity","60%"],["matTooltip","This product is no longer available in POS","matTooltipPosition","above",1,"text-danger"],["title","Stock Available"],["title","Inventory below minimum inventory"],[1,"ms-3"],["target","_blank",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"text-end",3,"ngClass"],["class","cursor",3,"click",4,"ngIf"],["matTooltip","Refresh stock according to seller center",1,"pl-5","cursor-pointer",2,"color","var(--bs-link-color)",3,"click"],[1,"fas","fa-sync","fa-lg","external-link-custom","pt-1"],[1,"cursor",3,"click"],[1,"text-danger"],["matTooltipShowDelay","500",3,"matTooltip"]],template:function(t,o){t&1&&(u(0,_t,62,34,"mainpanel",2),C(1,"async")),t&2&&c("ngIf",S(1,1,o.loader$))},dependencies:[oe,X,J,ee,te,ie,ne,we,Ie,xe,he,ge,Ce,me,le,pe,ae,re,se,Me,De,de,Fe,Pe,Se,fe],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}input[type=checkbox][_ngcontent-%COMP%]{width:15px;height:15px}"]});let n=p;return n})();export{Ht as SingleChannelComparisonComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as rt}from"./chunk-O5FN3DLG.js";import{c as ot}from"./chunk-2L5RCILV.js";import{a as Q,b as X,d as Y,e as Z}from"./chunk-Y27IE54D.js";import{g as J}from"./chunk-
|
|
1
|
+
import{b as rt}from"./chunk-O5FN3DLG.js";import{c as ot}from"./chunk-2L5RCILV.js";import{a as Q,b as X,d as Y,e as Z}from"./chunk-Y27IE54D.js";import{g as J}from"./chunk-OML53I6I.js";import{b as $,e as q}from"./chunk-AAFEUTPF.js";import"./chunk-KCDL7SWP.js";import{l as it,m as nt}from"./chunk-UUNZHJ6W.js";import{t as tt,u as et}from"./chunk-CTKEWRX4.js";import"./chunk-GXHE2CDH.js";import{h as H,l as A,y as z}from"./chunk-QOA24ZLA.js";import{b as v,c as G}from"./chunk-2AMEIUWK.js";import{$a as m,$b as W,Dc as S,Ha as P,Ia as c,Ib as l,Ja as h,Jb as u,Kb as j,Mb as y,Nb as L,Ob as M,Q as T,X as x,Za as g,Zc as C,_b as V,aa as p,ga as E,ha as d,lb as r,mb as a,nb as D,oa as O,ob as U,pa as w,pb as F,q as I,rb as K,ub as _,vc as k,wb as f,wc as R,zc as B}from"./chunk-HSFUKC7R.js";import"./chunk-GNOSNGXM.js";function ct(n,e){if(n&1&&(r(0,"span",13),D(1,"img",14),a(),r(2,"span"),l(3),a()),n&2){let s=e.item;c(),m("src",s.Img,P)("alt",s.Name),c(2),j(" ",s.Name," ")}}function mt(n,e){if(n&1){let s=K();U(0),r(1,"ng-select",16),M("ngModelChange",function(i){O(s);let o=f().$implicit;return L(o.ProductSKU,i)||(o.ProductSKU=i),w(i)}),a(),F()}if(n&2){let s=e.ngIf,t=f().$implicit;c(),y("ngModel",t.ProductSKU),m("items",s)}}function pt(n,e){if(n&1&&(r(0,"tr")(1,"td"),l(2),a(),r(3,"td"),l(4),a(),r(5,"td"),l(6),a(),r(7,"td"),g(8,mt,2,2,"ng-container",15),V(9,"async"),a()()),n&2){let s=e.$implicit,t=f();c(2),u(s.Name),c(2),u(s.Service),c(2),u(s.TypeString),c(2),m("ngIf",W(9,4,t.logisticOptions$))}}var st=(()=>{let e=class e{constructor(t,i,o){this.http=t,this.toastr=i,this.authService=o,this.filter={ChannelID:""},this.logisticServiceOptions=[],this.channelOptions=this.authService.getChannels(),this.initUnsupportedChannel(),this.initLoader()}initUnsupportedChannel(){let t=[v.WooCommerce,v.Lazada,v.Shopify];this.channelOptions=this.channelOptions.map(i=>(t.forEach(o=>{i.TypeID===o&&(i.disabled=!0)}),i))}initLoader(){this.http.post("/api/Logistic/Load",{}).subscribe(t=>{this.filter=t.Filter,this.channelName=this.channelOptions[0].Name,this.initLogisticServiceOptions(),this.getLogisticService()})}initLogisticServiceOptions(){this.logisticOptions$=this.http.get("/api/Logistic/OptionLogisticsService").pipe(T(1),x(t=>{this.logisticServiceOptions=t}))}Validate(){for(let t of this.logisticServices)this.datasource.find(o=>o.ProductSKU==t.ProductSKU&&o.Name==t.Name)===void 0&&(t.IsChange=!0);return Promise.resolve(this.logisticServices)}submitLogistics(){this.Validate().then(t=>{this.http.post("/api/Logistic/Submit",this.logisticServices).subscribe(i=>{this.toastr.success("Success","Update Complete!",{timeOut:5e3,enableHtml:!0}),this.getLogisticService()})})}getLogisticService(){this.datasource=[],this.http.post("/api/Logistic/Get",this.filter).pipe(I(t=>t.map(i=>(i.ProductSKU=G.IsEmpty(i.ProductSKU)?null:i.ProductSKU,i)))).subscribe(t=>{this.iniTitle(),this.logisticServices=t,this.datasource=structuredClone(t)})}iniTitle(){let t=this.channelOptions.find(i=>i.ID==this.filter.ChannelID);this.channelName=t?t.Name:null}};e.\u0275fac=function(i){return new(i||e)(h(q),h($),h(J))},e.\u0275cmp=E({type:e,selectors:[["app-logistic"]],decls:28,vars:6,consts:[["hideSearchBox","true","searchBoxPlaceHolder","Enter Number...",3,"onSubmit","headerTitle","hideSearchDropdown"],[1,"mb-2","fw-bold"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],["role","button","data-toggle","tooltip","data-placement","top","matTooltip","enter Logistic for recorded",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[4,"ngIf"],["placeholder","Logistic Service Code","bindLabel","Name","bindValue","Code",1,"w-75",3,"ngModelChange","ngModel","items"]],template:function(i,o){i&1&&(r(0,"mainpanel",0),_("onSubmit",function(){return o.getLogisticService()}),r(1,"filters")(2,"div")(3,"label",1),l(4,"Select a Channel"),a(),r(5,"ng-select",2),M("ngModelChange",function(b){return L(o.filter.ChannelID,b)||(o.filter.ChannelID=b),b}),g(6,ct,4,3,"ng-template",3),a()()(),r(7,"actions")(8,"a",4),_("click",function(){return o.submitLogistics()}),l(9,"Submit"),a()(),r(10,"content")(11,"div",5)(12,"div",6)(13,"div",7)(14,"div",8)(15,"table",9)(16,"thead",10)(17,"tr",11)(18,"th"),l(19,"Logistic"),a(),r(20,"th"),l(21,"Service"),a(),r(22,"th"),l(23,"Type"),a(),r(24,"th"),l(25,"Logistic Service"),a()()(),r(26,"tbody"),g(27,pt,10,6,"tr",12),a()()()()()()()()),i&2&&(m("headerTitle","Logistic Courier - "+o.channelName)("hideSearchDropdown",!1),c(5),m("clearable",!1)("items",o.channelOptions),y("ngModel",o.filter.ChannelID),c(22),m("ngForOf",o.logisticServices))},dependencies:[k,R,H,A,it,Y,Q,X,tt,B]});let n=e;return n})();var dt=[{path:"",component:st}],lt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=d({type:e}),e.\u0275inj=p({imports:[S,C.forChild(dt)]});let n=e;return n})();var kt=(()=>{let e=class e{};e.\u0275fac=function(i){return new(i||e)},e.\u0275mod=d({type:e}),e.\u0275inj=p({imports:[S,C,lt,z,nt,Z,rt,ot,et]});let n=e;return n})();export{kt as LogisticModule};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ue}from"./chunk-VUL363BT.js";import"./chunk-6U6JR5K6.js";import{a as Mi}from"./chunk-BVIRHZTZ.js";import{a as be,b as we,c as Yi}from"./chunk-CHPESC5O.js";import{a as Se}from"./chunk-4URWFKAM.js";import{b as nn}from"./chunk-RXDUUYMX.js";import"./chunk-GP6U42SV.js";import"./chunk-O5FN3DLG.js";import{a as rn,b as on,c as ln,d as sn,e as pn,f as cn,g as dn}from"./chunk-KGSUB5OH.js";import"./chunk-XNGU3O4O.js";import{a as ji,b as Ui}from"./chunk-RKRJ4JOF.js";import{a as Be,b as mn,c as Ct,d as un,e as hn,f as _n,g as Rt,h as vt,i as De,k as b,l as gn,m as rt,n as Qt,o as Jt,p as Ht,q as fn,r as Cn,s as Xt,t as Wt,u as vn}from"./chunk-NEQN5BMS.js";import"./chunk-3TNPJNQS.js";import{a as yn,b as bn}from"./chunk-VHYFEAS2.js";import{a as xe,b as zi}from"./chunk-OXSGKWPW.js";import{f as Qi,g as Ji,h as Xi,i as en,j as tn}from"./chunk-DSDMENCN.js";import{a as Zi}from"./chunk-EEOWKNSQ.js";import"./chunk-IJAO5VS5.js";import{a as me}from"./chunk-AUMUHIAD.js";import{b as an}from"./chunk-ZG6JXFSY.js";import{b as qi}from"./chunk-ZQLDSEY5.js";import{a as Gi,b as Ki,c as $i}from"./chunk-2L5RCILV.js";import{a as Ae}from"./chunk-
|
|
1
|
+
import{a as ue}from"./chunk-VUL363BT.js";import"./chunk-6U6JR5K6.js";import{a as Mi}from"./chunk-BVIRHZTZ.js";import{a as be,b as we,c as Yi}from"./chunk-CHPESC5O.js";import{a as Se}from"./chunk-4URWFKAM.js";import{b as nn}from"./chunk-RXDUUYMX.js";import"./chunk-GP6U42SV.js";import"./chunk-O5FN3DLG.js";import{a as rn,b as on,c as ln,d as sn,e as pn,f as cn,g as dn}from"./chunk-KGSUB5OH.js";import"./chunk-XNGU3O4O.js";import{a as ji,b as Ui}from"./chunk-RKRJ4JOF.js";import{a as Be,b as mn,c as Ct,d as un,e as hn,f as _n,g as Rt,h as vt,i as De,k as b,l as gn,m as rt,n as Qt,o as Jt,p as Ht,q as fn,r as Cn,s as Xt,t as Wt,u as vn}from"./chunk-NEQN5BMS.js";import"./chunk-3TNPJNQS.js";import{a as yn,b as bn}from"./chunk-VHYFEAS2.js";import{a as xe,b as zi}from"./chunk-OXSGKWPW.js";import{f as Qi,g as Ji,h as Xi,i as en,j as tn}from"./chunk-DSDMENCN.js";import{a as Zi}from"./chunk-EEOWKNSQ.js";import"./chunk-IJAO5VS5.js";import{a as me}from"./chunk-AUMUHIAD.js";import{b as an}from"./chunk-ZG6JXFSY.js";import{b as qi}from"./chunk-ZQLDSEY5.js";import{a as Gi,b as Ki,c as $i}from"./chunk-2L5RCILV.js";import{a as Ae}from"./chunk-2DXLUQ37.js";import"./chunk-M4JG6342.js";import"./chunk-6NTRXLMW.js";import{a as ve,b as ye,c as Vi,d as de,e as Oi}from"./chunk-Y27IE54D.js";import{f as Pe,g as ce}from"./chunk-OML53I6I.js";import{b as nt,e as q}from"./chunk-AAFEUTPF.js";import"./chunk-KCDL7SWP.js";import{b as Ai,d as at,e as Bi,f as Ri,g as Hi,l as re,m as Wi}from"./chunk-UUNZHJ6W.js";import{t as Fi,u as Li}from"./chunk-CTKEWRX4.js";import{P as Ni}from"./chunk-GXHE2CDH.js";import{a as Ii,b as At,c as pe,h as ee,l as te,n as Ce,y as Bt}from"./chunk-QOA24ZLA.js";import{b as F,c as A}from"./chunk-2AMEIUWK.js";import{$ as He,$a as m,$b as z,Ab as wi,Ac as G,B as mi,Bb as Mt,Cb as Et,Cc as se,Db as Ke,Dc as Ee,Eb as $e,Ha as j,Hb as Y,Ia as s,Ib as c,Ja as x,Jb as y,Kb as k,Lb as xi,Mb as I,Nb as M,Oa as fi,Ob as E,Pa as Ci,Pb as Pt,Q as Ge,Qb as ge,Rb as le,Sb as ne,T as ui,Tb as J,Ua as vi,Uc as Ft,Vc as ki,Wa as tt,Wb as Si,X as Xe,Xb as Ti,Xc as fe,Ya as ht,Za as f,Zc as Lt,_ as hi,_a as B,_b as N,aa as We,ab as yi,ac as X,ad as Ei,bb as kt,bc as ae,bd as gt,ca as Ie,db as _e,ed as qe,fd as Pi,ga as L,gb as Zt,ha as Ye,hd as ft,ia as _i,jc as Di,kc as O,lb as r,lc as Me,mb as o,na as gi,nb as C,oa as h,ob as S,pa as _,pb as T,q as ie,qa as Fe,qb as Le,ra as qt,rb as D,rc as Vt,sa as et,tc as ze,ub as v,vc as $,w as di,wb as p,wc as U,xb as It,xc as Ot,ya as ut,yb as _t,yc as Nt,za as Q,zb as bi,zc as it}from"./chunk-HSFUKC7R.js";import{a as pi,b as ci}from"./chunk-GNOSNGXM.js";var wn=(()=>{let l=class l{constructor(){this.ObjectOrderTabs=[{Title:"1 - New Order",Url:"/menu/Order/new",Permissions:[]},{Title:"2 - Ready to Ship",Url:"/menu/Order/ready_to_ship",Permissions:[]},{Title:"3 - Shipped",Url:"/menu/Order/Shipped",Permissions:[]},{Title:"4 - Completed",Url:"/menu/Order/Delivered",Permissions:[]},{Title:"All",Url:"/menu/Order/All",Permissions:[]},{Title:"99 - Cancelled",Url:"/menu/Order/Cancelled",Permissions:[]},{Title:"Download",Url:"/menu/Order/Download",Permissions:[Mi.downloadOrder]}]}ngOnInit(){}};l.\u0275fac=function(i){return new(i||l)},l.\u0275cmp=L({type:l,selectors:[["app-orders"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(i,n){i&1&&(r(0,"nav",0)(1,"div",1)(2,"div"),C(3,"nav-tab",2),o()()(),C(4,"router-outlet")),i&2&&(s(3),m("Tabs",n.ObjectOrderTabs)("usePermissions",!0))},dependencies:[ji,ki]});let a=l;return a})();var xn=(()=>{let l=class l{constructor(){}convertToCSV(t,i){let n;if(typeof t=="string")n=t;else{var d=typeof t=="object"?t:JSON.parse(t);n=this.transformToCSVStringFormat(d)}this.downloadCSV(n,i)}transformToCSVStringFormat(t){if(!t||!t.length)return;let i=",",n=Object.keys(t[0]);return t.map(g=>n.map(u=>{let w=g[u]===null||g[u]===void 0?"":g[u];return w=w instanceof Date?w.toLocaleString():w.toString().replace(/"/g,'""'),w.search(/("|,|\n)/g)>=0&&(w=`"${w}"`),w}).join(i)).join(`
|
|
2
2
|
`)}downloadCSV(t,i){var n=new Blob([t],{type:"text/csv;charset=utf8;"}),d=document.createElement("a");d.setAttribute("href",window.URL.createObjectURL(n)),d.setAttribute("download",i),document.body.appendChild(d),d.click(),document.body.removeChild(d)}};l.\u0275fac=function(i){return new(i||l)},l.\u0275prov=He({token:l,factory:l.\u0275fac,providedIn:"root"});let a=l;return a})();var ot=(()=>{let l=class l{constructor(t,i){this.http=t,this.exportService=i}loadInitialPage(){return this.http.post("/api/ordersLoader/GetOrder",{})}getNewOrders(t){return this.http.post("/api/orders/GetNewOrder",t).pipe(ie(i=>i.Data))}getTotalNewOrders(t,i,n){let d={ListChannelID:t,From:i,To:n};return this.http.post("/api/orders/GetCountNewOrder",d).pipe(ie(g=>g.Count))}exportOrders(t,i){return this.http.post("api/Orders/ExportOrder",t).pipe(Xe(n=>{this.exportService.convertToCSV(n,i)}))}};l.\u0275fac=function(i){return new(i||l)(Ie(q),Ie(xn))},l.\u0275prov=He({token:l,factory:l.\u0275fac});let a=l;return a})();var Yt=(()=>{let l=class l{constructor(t,i){this.http=t,this.toastr=i}acceptTokopediaOrders(t){return this.http.post("/api/Orders/AcceptOrderTokopedia",t).pipe(Xe(i=>{this.tokopediaAcceptOrderHandler(i)}))}tokopediaAcceptOrderHandler(t){let i=t.filter(d=>d.Status==!1),n=t.filter(d=>d.Status==!0);if(i.length==0&&n.length>0){let d=`<ol>${this.generateSuccessMessage(n)}</ol>`;this.toastr.success(d,"Success",{enableHtml:!0})}else if(i.length>0&&n.length>0){let d=`<ol>
|
|
3
3
|
${this.generateSuccessMessage(n)}
|
|
4
4
|
${this.generateErrorMessage(i)}
|
|
@@ -15,8 +15,8 @@ import{a as ue}from"./chunk-VUL363BT.js";import"./chunk-6U6JR5K6.js";import{a as
|
|
|
15
15
|
${g}
|
|
16
16
|
}
|
|
17
17
|
`}}this.responsiveStyleElement.innerHTML=e}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentClickListener=this.renderer.listen(e,"mousedown",t=>{this.isOutsideClicked(t)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(t),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.renderer.listen(this.window,"resize",this.onWindowResize.bind(this)))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new gn(this.containerViewChild?.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return b.hasClass(e.target,"p-datepicker-prev")||b.hasClass(e.target,"p-datepicker-prev-icon")||b.hasClass(e.target,"p-datepicker-next")||b.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!b.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&Ct.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}static \u0275fac=function(t){return new(t||a)(x(Vt),x(ut),x(fi),x(Di),x(Ci),x(hn),x(un))};static \u0275cmp=L({type:a,selectors:[["p-calendar"]],contentQueries:function(t,i,n){if(t&1&&Mt(n,Rt,4),t&2){let d;Ke(d=$e())&&(i.templates=d)}},viewQuery:function(t,i){if(t&1&&(Et(vr,5),Et(yr,5),Et(br,5)),t&2){let n;Ke(n=$e())&&(i.containerViewChild=n.first),Ke(n=$e())&&(i.inputfieldViewChild=n.first),Ke(n=$e())&&(i.content=n.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(t,i){t&2&&kt("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focus)("p-calendar-clearable",i.showClear&&!i.disabled)},inputs:{iconDisplay:"iconDisplay",style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",iconAriaLabel:"iconAriaLabel",disabled:[2,"disabled","disabled",O],dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:[2,"inline","inline",O],showOtherMonths:[2,"showOtherMonths","showOtherMonths",O],selectOtherMonths:[2,"selectOtherMonths","selectOtherMonths",O],showIcon:[2,"showIcon","showIcon",O],icon:"icon",appendTo:"appendTo",readonlyInput:[2,"readonlyInput","readonlyInput",O],shortYearCutoff:"shortYearCutoff",monthNavigator:[2,"monthNavigator","monthNavigator",O],yearNavigator:[2,"yearNavigator","yearNavigator",O],hourFormat:"hourFormat",timeOnly:[2,"timeOnly","timeOnly",O],stepYearPicker:[2,"stepYearPicker","stepYearPicker",Me],stepHour:[2,"stepHour","stepHour",Me],stepMinute:[2,"stepMinute","stepMinute",Me],stepSecond:[2,"stepSecond","stepSecond",Me],showSeconds:[2,"showSeconds","showSeconds",O],required:[2,"required","required",O],showOnFocus:[2,"showOnFocus","showOnFocus",O],showWeek:[2,"showWeek","showWeek",O],startWeekFromFirstDayOfYear:"startWeekFromFirstDayOfYear",showClear:[2,"showClear","showClear",O],dataType:"dataType",selectionMode:"selectionMode",maxDateCount:[2,"maxDateCount","maxDateCount",Me],showButtonBar:[2,"showButtonBar","showButtonBar",O],todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autofocus:[2,"autofocus","autofocus",O],autoZIndex:[2,"autoZIndex","autoZIndex",O],baseZIndex:[2,"baseZIndex","baseZIndex",Me],panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:[2,"keepInvalid","keepInvalid",O],hideOnDateTimeSelect:[2,"hideOnDateTimeSelect","hideOnDateTimeSelect",O],touchUI:[2,"touchUI","touchUI",O],timeSeparator:"timeSeparator",focusTrap:[2,"focusTrap","focusTrap",O],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:[2,"tabindex","tabindex",Me],variant:"variant",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale",view:"view",defaultDate:"defaultDate"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Pt([pl]),ht],ngContentSelectors:xr,decls:4,vars:12,consts:[["container",""],["inputfield",""],["contentWrapper",""],[3,"ngClass","ngStyle"],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","role","combobox","aria-autocomplete","none","aria-haspopup","dialog","autocomplete","off","pAutoFocus","",3,"focus","keydown","click","blur","input","value","readonly","ngStyle","placeholder","disabled","ngClass","autofocus"],[4,"ngIf"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","class","p-datepicker-trigger p-button-icon-only","tabindex","0",3,"disabled","click",4,"ngIf"],[3,"styleClass","click",4,"ngIf"],["class","p-calendar-clear-icon",3,"click",4,"ngIf"],[3,"click","styleClass"],[1,"p-calendar-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["type","button","aria-haspopup","dialog","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger","p-button-icon-only",3,"click","disabled"],[3,"ngClass",4,"ngIf"],[3,"ngClass"],[3,"ngClass","click",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngClass"],[3,"click","ngStyle","ngClass"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[3,"styleClass",4,"ngIf"],["class","p-datepicker-next-icon",4,"ngIf"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],["class","p-datepicker-prev-icon",4,"ngIf"],[3,"styleClass"],[1,"p-datepicker-prev-icon"],["type","button",1,"p-datepicker-month","p-link",3,"click","keydown","disabled"],["type","button",1,"p-datepicker-year","p-link",3,"click","keydown","disabled"],[1,"p-datepicker-decade"],[1,"p-datepicker-next-icon"],[1,"p-datepicker-calendar-container"],["role","grid",1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],["draggable","false","pRipple","",3,"click","keydown","ngClass"],["class","p-hidden-accessible","aria-live","polite",4,"ngIf"],["aria-live","polite",1,"p-hidden-accessible"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"click","keydown","ngClass"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"click","keydown","ngClass"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"keydown","click","label","ngClass"]],template:function(t,i){t&1&&(It(wr),r(0,"span",3,0),f(2,Ur,5,22,"ng-template",4)(3,sl,9,32,"div",5),o()),t&2&&(_e(i.styleClass),m("ngClass",Si(6,Sr,i.showIcon&&i.iconDisplay==="input",i.showIcon&&i.iconDisplay==="button",i.timeOnly,i.disabled,i.focus||i.overlayVisible))("ngStyle",i.style),s(2),m("ngIf",!i.inline),s(),m("ngIf",i.inline||i.overlayVisible))},dependencies:()=>[ze,$,U,Nt,Ot,Gt,Ht,ii,Xt,ni,Qt,Jt,ai,Wt],styles:[`@layer primeng{.p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%;text-overflow:ellipsis}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-datepicker-icon{pointer-events:none}.p-calendar-clearable{position:relative}}
|
|
18
|
-
`],encapsulation:2,data:{animation:[Ei("overlayAnimation",[Pi("visibleTouchUI",qe({transform:"translate(-50%,-50%)",opacity:1})),ft("void => visible",[qe({opacity:0,transform:"scaleY(0.8)"}),gt("{{showTransitionParams}}",qe({opacity:1,transform:"*"}))]),ft("visible => void",[gt("{{hideTransitionParams}}",qe({opacity:0}))]),ft("void => visibleTouchUI",[qe({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),gt("{{showTransitionParams}}")]),ft("visibleTouchUI => void",[gt("{{hideTransitionParams}}",qe({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return a})(),Bn=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=Ye({type:a});static \u0275inj=We({imports:[Ee,ti,vt,fn,ii,Xt,ni,Qt,Jt,ai,vn,ti,vt]})}return a})();var dl=a=>({"full-width":a}),ml=()=>({standalone:!0}),Kt=(()=>{let l=class l{constructor(t){this.datePipe=t,this.fullWidth=!1,this.timeChange=new Q}ngOnInit(){}onTimeChange(t){let i=null;t&&(i=this.datePipe.transform(t,"HH:mm")),this.timeChange.emit(i),this.onTimePickerChange()}onShowCalendar(){let t=document.getElementById("dropdown-filter");if(t){var i=new bootstrap.Dropdown(t);i&&(i._config.autoClose="inside")}}onTimePickerChange(){let t=document.getElementById("dropdown-filter");if(t){var i=new bootstrap.Dropdown(t);i&&(i._config.autoClose="outside")}}};l.\u0275fac=function(i){return new(i||l)(x(G))},l.\u0275cmp=L({type:l,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:"fullWidth"},outputs:{timeChange:"timeChange"},standalone:!0,features:[ge],decls:4,vars:8,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body",3,"ngModelChange","onSelect","ngClass","baseZIndex","ngModel","timeOnly","ngModelOptions"],["pButton","","type","button","label","Close",3,"click"]],template:function(i,n){if(i&1){let d=D();r(0,"p-calendar",1,0),E("ngModelChange",function(u){return h(d),M(n.time,u)||(n.time=u),_(u)}),v("ngModelChange",function(u){return h(d),_(n.onTimeChange(u))})("onSelect",function(){return h(d),_(n.onShowCalendar())}),r(2,"p-footer")(3,"button",2),v("click",function(){return h(d),Y(1).hideOverlay(),_(n.onShowCalendar())}),o()()()}i&2&&(m("ngClass",ne(5,dl,n.fullWidth))("baseZIndex",1100),I("ngModel",n.time),m("timeOnly",!0)("ngModelOptions",le(7,ml)))},dependencies:[Ee,ze,Bn,li,Gt,_n,Bt,ee,te],styles:["p-calendar span.p-calendar.p-calendar-timeonly.custom-height{height:44px;width:55px} p-calendar.full-width span.p-calendar.p-calendar-timeonly.custom-height{height:44px;width:100%!important}"]});let a=l;return a})();var hl=(a,l)=>({"over-due-today":a,"over-due":l}),_l=a=>({"over-due":a});function gl(a,l){if(a&1){let e=D();S(0),r(1,"div",19)(2,"button",20),v("click",function(){h(e),p();let i=Y(11);return _(i.previous())}),c(3," Back "),o(),r(4,"button",21),v("click",function(){h(e);let i=p(),n=Y(11);return _(i.onNext(n))}),c(5," Next "),o(),r(6,"button",22),C(7,"b",23),o(),r(8,"ul",24)(9,"li",25)(10,"a",26),v("click",function(){h(e);let i=p();return _(i.exportOrders())}),c(11," Export "),o()()()(),T()}if(a&2){let e=p();s(4),m("disabled",e.checkDisabledNextFilter())}}function fl(a,l){if(a&1){let e=D();S(0),r(1,"button",27),v("click",function(){h(e);let i=p(),n=Y(11);return _(i.onNext(n))}),c(2," Next "),o(),T()}if(a&2){let e=p();s(),m("disabled",e.checkDisabledNextFilter())}}function Cl(a,l){if(a&1){let e=D();S(0),r(1,"button",28),v("click",function(){h(e);let i=p(),n=Y(11);return _(i.onNew(n))}),C(2,"i",29),c(3," New "),o(),T()}}function vl(a,l){a&1&&(C(0,"i",30),r(1,"span"),c(2,"Filter"),o())}function yl(a,l){if(a&1&&(r(0,"ng-option",40),C(1,"img",41),c(2),o()),a&2){let e=l.$implicit;m("value",e.ID),s(),m("src",e==null?null:e.Img,j),s(),k("",e.Name," ")}}function bl(a,l){if(a&1){let e=D();r(0,"div",36)(1,"div",32)(2,"h5"),c(3,"Type"),o(),r(4,"p",33),c(5,"Select Type want to download"),o()(),r(6,"div",32)(7,"div",42)(8,"div")(9,"mat-radio-group",43),E("ngModelChange",function(i){h(e);let n=p(2);return M(n.downloadType,i)||(n.downloadType=i),_(i)}),r(10,"mat-radio-button",44),c(11," Orders "),o(),r(12,"mat-radio-button",45),c(13," Disbursement
|
|
19
|
-
Payment : `,e.PaymentState,"")}}function Ol(a,l){if(a&1&&(r(0,"tr")(1,"td"),c(2),o(),r(3,"td"),c(4),o(),f(5,Il,3,4,"td",5),r(6,"td")(7,"span"),c(8),o(),c(9),o(),r(10,"td",
|
|
18
|
+
`],encapsulation:2,data:{animation:[Ei("overlayAnimation",[Pi("visibleTouchUI",qe({transform:"translate(-50%,-50%)",opacity:1})),ft("void => visible",[qe({opacity:0,transform:"scaleY(0.8)"}),gt("{{showTransitionParams}}",qe({opacity:1,transform:"*"}))]),ft("visible => void",[gt("{{hideTransitionParams}}",qe({opacity:0}))]),ft("void => visibleTouchUI",[qe({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),gt("{{showTransitionParams}}")]),ft("visibleTouchUI => void",[gt("{{hideTransitionParams}}",qe({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0})}return a})(),Bn=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=Ye({type:a});static \u0275inj=We({imports:[Ee,ti,vt,fn,ii,Xt,ni,Qt,Jt,ai,vn,ti,vt]})}return a})();var dl=a=>({"full-width":a}),ml=()=>({standalone:!0}),Kt=(()=>{let l=class l{constructor(t){this.datePipe=t,this.fullWidth=!1,this.timeChange=new Q}ngOnInit(){}onTimeChange(t){let i=null;t&&(i=this.datePipe.transform(t,"HH:mm")),this.timeChange.emit(i),this.onTimePickerChange()}onShowCalendar(){let t=document.getElementById("dropdown-filter");if(t){var i=new bootstrap.Dropdown(t);i&&(i._config.autoClose="inside")}}onTimePickerChange(){let t=document.getElementById("dropdown-filter");if(t){var i=new bootstrap.Dropdown(t);i&&(i._config.autoClose="outside")}}};l.\u0275fac=function(i){return new(i||l)(x(G))},l.\u0275cmp=L({type:l,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:"fullWidth"},outputs:{timeChange:"timeChange"},standalone:!0,features:[ge],decls:4,vars:8,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body",3,"ngModelChange","onSelect","ngClass","baseZIndex","ngModel","timeOnly","ngModelOptions"],["pButton","","type","button","label","Close",3,"click"]],template:function(i,n){if(i&1){let d=D();r(0,"p-calendar",1,0),E("ngModelChange",function(u){return h(d),M(n.time,u)||(n.time=u),_(u)}),v("ngModelChange",function(u){return h(d),_(n.onTimeChange(u))})("onSelect",function(){return h(d),_(n.onShowCalendar())}),r(2,"p-footer")(3,"button",2),v("click",function(){return h(d),Y(1).hideOverlay(),_(n.onShowCalendar())}),o()()()}i&2&&(m("ngClass",ne(5,dl,n.fullWidth))("baseZIndex",1100),I("ngModel",n.time),m("timeOnly",!0)("ngModelOptions",le(7,ml)))},dependencies:[Ee,ze,Bn,li,Gt,_n,Bt,ee,te],styles:["p-calendar span.p-calendar.p-calendar-timeonly.custom-height{height:44px;width:55px} p-calendar.full-width span.p-calendar.p-calendar-timeonly.custom-height{height:44px;width:100%!important}"]});let a=l;return a})();var hl=(a,l)=>({"over-due-today":a,"over-due":l}),_l=a=>({"over-due":a});function gl(a,l){if(a&1){let e=D();S(0),r(1,"div",19)(2,"button",20),v("click",function(){h(e),p();let i=Y(11);return _(i.previous())}),c(3," Back "),o(),r(4,"button",21),v("click",function(){h(e);let i=p(),n=Y(11);return _(i.onNext(n))}),c(5," Next "),o(),r(6,"button",22),C(7,"b",23),o(),r(8,"ul",24)(9,"li",25)(10,"a",26),v("click",function(){h(e);let i=p();return _(i.exportOrders())}),c(11," Export "),o()()()(),T()}if(a&2){let e=p();s(4),m("disabled",e.checkDisabledNextFilter())}}function fl(a,l){if(a&1){let e=D();S(0),r(1,"button",27),v("click",function(){h(e);let i=p(),n=Y(11);return _(i.onNext(n))}),c(2," Next "),o(),T()}if(a&2){let e=p();s(),m("disabled",e.checkDisabledNextFilter())}}function Cl(a,l){if(a&1){let e=D();S(0),r(1,"button",28),v("click",function(){h(e);let i=p(),n=Y(11);return _(i.onNew(n))}),C(2,"i",29),c(3," New "),o(),T()}}function vl(a,l){a&1&&(C(0,"i",30),r(1,"span"),c(2,"Filter"),o())}function yl(a,l){if(a&1&&(r(0,"ng-option",40),C(1,"img",41),c(2),o()),a&2){let e=l.$implicit;m("value",e.ID),s(),m("src",e==null?null:e.Img,j),s(),k("",e.Name," ")}}function bl(a,l){if(a&1){let e=D();r(0,"div",36)(1,"div",32)(2,"h5"),c(3,"Type"),o(),r(4,"p",33),c(5,"Select Type want to download"),o()(),r(6,"div",32)(7,"div",42)(8,"div")(9,"mat-radio-group",43),E("ngModelChange",function(i){h(e);let n=p(2);return M(n.downloadType,i)||(n.downloadType=i),_(i)}),r(10,"mat-radio-button",44),c(11," Orders "),o(),r(12,"mat-radio-button",45),c(13," Disbursement "),o()()()(),r(14,"div",46)(15,"div",47),C(16,"i",48),o(),r(17,"p",49),c(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),o()()()()}if(a&2){let e=p(2);s(9),I("ngModel",e.downloadType),s(),m("value",!1),s(2),m("value",!0)}}function wl(a,l){a&1&&(r(0,"p",33),c(1," Select Disbursement date of the channel you want to download (Max 1 Weeks) "),o())}function xl(a,l){a&1&&(r(0,"p",33),c(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),o())}function Sl(a,l){if(a&1){let e=D();S(0),r(1,"div",50)(2,"app-timepicker",51),E("timeChange",function(i){h(e);let n=p(2);return M(n.timeFrom,i)||(n.timeFrom=i),_(i)}),o(),r(3,"span",52),c(4,"-"),o(),r(5,"app-timepicker",51),E("timeChange",function(i){h(e);let n=p(2);return M(n.timeTo,i)||(n.timeTo=i),_(i)}),o()(),T()}if(a&2){let e=p(2);s(2),I("time",e.timeFrom),s(3),I("time",e.timeTo)}}function Tl(a,l){if(a&1){let e=D();r(0,"div",31)(1,"div",8)(2,"div",7)(3,"div",32)(4,"h5"),c(5,"Select a Channel"),o(),r(6,"p",33),c(7," Select Channel want to download order "),o()(),r(8,"div",32)(9,"ng-select",34),E("ngModelChange",function(i){h(e);let n=p();return M(n.channelID,i)||(n.channelID=i),_(i)}),v("ngModelChange",function(){h(e);let i=p();return _(i.onSelectChannel())}),f(10,yl,3,3,"ng-option",35),o()()(),f(11,bl,19,3,"div",36),N(12,"async"),r(13,"div",36)(14,"div",32)(15,"h5"),c(16,"Date Range"),o(),f(17,wl,2,0,"p",33)(18,xl,2,0,"p",33),o(),r(19,"div",32)(20,"div",8)(21,"mat-date-range-input",37)(22,"input",38),E("ngModelChange",function(i){h(e);let n=p();return M(n.startDate,i)||(n.startDate=i),_(i)}),v("click",function(){h(e);let i=Y(25);return _(i.open())}),o(),r(23,"input",39),E("ngModelChange",function(i){h(e);let n=p();return M(n.endDate,i)||(n.endDate=i),_(i)}),v("click",function(){h(e);let i=Y(25);return _(i.open())})("ngModelChange",function(){h(e);let i=p();return _(i.onFilterDateChange())}),o()(),C(24,"mat-date-range-picker",null,1),o(),f(26,Sl,6,2,"ng-container",5),o()()()()}if(a&2){let e,t=Y(25),i=p();s(9),m("clearable",!1),I("ngModel",i.channelID),s(),m("ngForOf",i.channelOptions),s(),Zt((e=z(12,9,i.channelDetail$))!=null&&e.ServiceFeeWriteOff?11:-1),s(6),Zt(i.downloadType()&&(i.currentChannel==null?null:i.currentChannel.TypeID)==i.channelType.Tokopedia?17:18),s(4),m("rangePicker",t),s(),I("ngModel",i.startDate),s(),I("ngModel",i.endDate),s(3),m("ngIf",i.showTimePicker)}}function Dl(a,l){a&1&&(C(0,"i",53),r(1,"span"),c(2,"Preview"),o())}function kl(a,l){if(a&1&&(r(0,"th",71),c(1),o()),a&2){let e=p(3);s(),k(" ",e.currentChannel?"Created Date":"Last Status Update"," ")}}function Il(a,l){if(a&1&&(r(0,"td"),c(1),N(2,"date"),o()),a&2){let e=p().$implicit;s(),k(" ",X(2,1,e.Date,"dd MMM yyyy HH:mm:ss")," ")}}function Ml(a,l){if(a&1&&(r(0,"span"),c(1),o()),a&2){let e=p().$implicit;s(),k(" ",e.ActionString," ")}}function El(a,l){if(a&1&&(r(0,"li"),c(1),o()),a&2){let e=l.$implicit;s(),k(" ",e," ")}}function Pl(a,l){if(a&1&&(r(0,"ul",76),f(1,El,2,1,"li",72),o()),a&2){let e=p().$implicit;s(),m("ngForOf",e.ActionString)}}function Vl(a,l){if(a&1&&(r(0,"span",77),C(1,"i",78),o()),a&2){let e=p().$implicit;wi("title","Delivery : ",e.DeliveryState,`
|
|
19
|
+
Payment : `,e.PaymentState,"")}}function Ol(a,l){if(a&1&&(r(0,"tr")(1,"td"),c(2),o(),r(3,"td"),c(4),o(),f(5,Il,3,4,"td",5),r(6,"td")(7,"span"),c(8),o(),c(9),o(),r(10,"td",73)(11,"span"),c(12),o(),c(13),o(),r(14,"td"),f(15,Ml,2,1,"span",5)(16,Pl,2,1,"ul",74),o(),r(17,"td"),f(18,Vl,2,3,"span",75),o()()),a&2){let e=l.$implicit,t=l.index,i=p(4);s(2),y(t+1),s(2),y(e.Number),s(),m("ngIf",(i.currentChannel==null?null:i.currentChannel.TypeID)!=i.channelType.Shopee&&(i.currentChannel==null?null:i.currentChannel.TypeID)!==i.channelType.Tiktok),s(3),k("",e.ChannelStatus," - "),s(),k("",e.ChannelStatusDescription," "),s(),m("ngClass",J(12,hl,(e==null?null:e.Action)==i.actionPreviewOrder.Update,(e==null?null:e.Action)==i.actionPreviewOrder.New))("matTooltip",e.POSStatus==91||e.POSStatusDescription=="Conflict"?"There is a missed status at POS, usually fulfillment has not been recorded but the payment has been recorded":""),s(2),k("",e.POSStatus," - "),s(),k("",e.POSStatusDescription," "),s(2),m("ngIf",e.ActionString.length==1),s(),m("ngIf",e.ActionString.length>1),s(2),m("ngIf",e.ChannelStatus!=99&&e.POSStatus!=99)}}function Nl(a,l){if(a&1&&(S(0),f(1,Ol,19,15,"tr",72),T()),a&2){let e=p(3);s(),m("ngForOf",e.displayedPreviewData)}}function Fl(a,l){a&1&&(r(0,"tr",79)(1,"td",80)(2,"div",81),C(3,"i",82),o(),r(4,"h4",83),c(5," There is no order to processed "),o()()())}function Ll(a,l){if(a&1){let e=D();r(0,"div",55)(1,"div",56)(2,"div",57)(3,"ul",58)(4,"li",59)(5,"button",60),v("click",function(){h(e);let i=p(2);return _(i.filterPreviewData(i.previewStatus.ALL))}),c(6),o()(),r(7,"li",59)(8,"button",61),v("click",function(){h(e);let i=p(2);return _(i.filterPreviewData(i.previewStatus.SYNC))}),c(9),o()(),r(10,"li",59)(11,"button",62),v("click",function(){h(e);let i=p(2);return _(i.filterPreviewData(i.previewStatus.WRONG))}),c(12),o()(),r(13,"li",59)(14,"button",63),v("click",function(){h(e);let i=p(2);return _(i.filterPreviewData(i.previewStatus.UNSYNC))}),c(15),o()()()(),r(16,"table",64)(17,"thead",65)(18,"tr"),C(19,"th",66),r(20,"th",67),c(21,"Number"),o(),f(22,kl,2,1,"th",68),r(23,"th",69),c(24,"Channel Status"),o(),r(25,"th",69),c(26,"POS Status"),o(),r(27,"th"),c(28,"Action"),o(),C(29,"th",66),o()(),r(30,"tbody"),f(31,Nl,2,1,"ng-container",70)(32,Fl,6,0,"ng-template",null,2,ae),o()()()()}if(a&2){let e=Y(33),t=p(2);s(5),m("ngClass",t.pillStatus=="all"?"btn-secondary text-white":"btn-outline-dark"),s(),k(" All (",t.allData,") "),s(2),m("ngClass",t.pillStatus=="sync"?"btn-success":"btn-outline-success"),s(),k(" Existing (",t.syncData,") "),s(2),m("ngClass",t.pillStatus=="wrong"?"btn-warning text-white":"btn-outline-warning"),s(),k(" Wrong Status (",t.wrongData,") "),s(2),m("ngClass",t.pillStatus=="unsync"?"btn-danger":"btn-outline-danger"),s(),k(" Missing (",t.unsyncData,") "),s(7),m("ngIf",(t.currentChannel==null?null:t.currentChannel.TypeID)!=t.channelType.Shopee&&(t.currentChannel==null?null:t.currentChannel.TypeID)!==t.channelType.Tiktok),s(9),m("ngIf",t.displayedPreviewData.length>0)("ngIfElse",e)}}function Al(a,l){if(a&1&&f(0,Ll,34,11,"div",54),a&2){let e=p();m("ngIf",e.currentState=="preview")}}function Bl(a,l){a&1&&(C(0,"i",84),r(1,"span"),c(2,"Finish"),o())}function Rl(a,l){if(a&1&&(r(0,"tr",86)(1,"td"),c(2),o(),r(3,"td"),c(4),o(),r(5,"td"),c(6),o(),r(7,"td"),c(8),o()()),a&2){let e=l.$implicit,t=l.index;m("ngClass",ne(5,_l,e.Exception)),s(2),y(t+1),s(2),y(e.Number),s(2),y(e.Status),s(2),y(e.Exception)}}function Hl(a,l){if(a&1&&(S(0),f(1,Rl,9,7,"tr",85),T()),a&2){let e=p(3);s(),m("ngForOf",e.downloadData)}}function Wl(a,l){a&1&&(r(0,"tr",79)(1,"td",80)(2,"div",81),C(3,"i",82),o(),r(4,"h4",83),c(5," There is no order to processed "),o()()())}function Yl(a,l){if(a&1&&(r(0,"div",55)(1,"div",56)(2,"table",64)(3,"thead",65)(4,"tr"),C(5,"th",66),r(6,"th"),c(7,"Order Number"),o(),r(8,"th"),c(9,"Status"),o(),r(10,"th"),c(11,"Exception"),o()()(),r(12,"tbody"),f(13,Hl,2,1,"ng-container",70)(14,Wl,6,0,"ng-template",null,3,ae),o()()()()),a&2){let e=Y(15),t=p(2);s(13),m("ngIf",(t.downloadData==null?null:t.downloadData.length)>0)("ngIfElse",e)}}function zl(a,l){if(a&1&&f(0,Yl,16,2,"div",54),a&2){let e=p();m("ngIf",e.currentState=="finish")}}function jl(a,l){a&1&&(r(0,"h6"),c(1,"1"),o())}function Ul(a,l){a&1&&(r(0,"h6"),c(1,"2"),o())}function Gl(a,l){a&1&&(r(0,"h6"),c(1,"3"),o())}var he=function(a){return a.ALL="all",a.SYNC="sync",a.WRONG="wrong",a.UNSYNC="unsync",a}(he||{}),Rn=(()=>{let l=class l{constructor(t,i,n,d,g,u,w){this.http=t,this.toastr=i,this.datePipe=n,this.url=d,this.productService=g,this.orderService=u,this.authService=w,this.pageTitle="Download to POS",this.pillStatus="all",this.displayedPreviewData=[],this.previewData=[],this.channelType=F,this.previewStatus=he,this.currentState="filter",this.wrongData=0,this.unsyncData=0,this.syncData=0,this.allData=0,this.actionPreviewOrder=ct,this.showTimePicker=!1,this.downloadType=vi(!1),this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initTimeFilter(),this.url.queryParams.subscribe(t=>{this.channelID=t.ChannelID,this.startDate=new Date(t.Date),this.endDate=new Date(t.Date)})}initTimeFilter(){this.timeFrom="00:00",this.timeTo="23:59"}onDownload(t){let i={ID:this.channelID,From:this.startDate,To:this.endDate,ListPreview:this.downloadedPreviewData,IsDisbursement:this.downloadType()};this.http.post("/api/Orders/Download",i).subscribe(n=>{this.downloadData=n.Body,this.onStepperNext(t)})}onPreview(t){if(!this.validateDatePreview())return;let i={ID:this.channelID,From:this.startDate,To:this.endDate,IsDisbursement:this.downloadType()};this.showTimePicker&&(i=ci(pi({},i),{TimeFrom:this.timeFrom+":00",TimeTo:this.timeTo+":00"})),this.http.post("/api/Orders/Preview",i).subscribe(n=>{if(n.length==0){this.toastrEmptyPreview();return}this.previewData=n,this.groupingPreviewData(),this.filterPreviewData(he.ALL),this.initLengthStatusData(),this.onStepperNext(t)})}toastrEmptyPreview(){let t=this.datePipe.transform(this.startDate,"dd MMM yyyy"),i=this.datePipe.transform(this.endDate,"dd MMM yyyy"),n=this.showTimePicker?this.timeFrom+":00":"",d=this.showTimePicker?this.timeTo+":00":"";this.toastr.info(`There is no orders from ${t} ${n} to ${i} ${d}!`,"No Orders!")}validateDatePreview(){let t=!0;return this.downloadType()==!0?A.getDaysDiff(this.startDate,this.endDate)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Failed"),t=!1):A.getDaysDiff(this.startDate,this.endDate)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Failed"),t=!1),t}onSelectChannel(){this.currentChannel=this.channelOptions.find(t=>t.ID==this.channelID),this.initGetChannelDetail()}initGetChannelDetail(){this.currentChannel.TypeID==F.Tokopedia?this.channelDetail$=this.http.post("/api/ChannelLoader/GetChannelView",{ID:this.currentChannel.ID}).pipe(ie(t=>t?.Model),Ge(1)):this.channelDetail$=null}setPageTitle(t){this.pageTitle=`
|
|
20
20
|
${t} (${this.getDateTitle()})
|
|
21
|
-
`}getDateTitle(){let t=A.formatTitleFromDate(new Date(this.startDate),new Date(this.endDate)),i=this.datePipe.transform(this.startDate,t),n=this.datePipe.transform(this.endDate,"dd MMM yyyy");return`${t==null?"":i+"-"} ${n}`}onNew(t){this.channelID=null,this.startDate=null,this.endDate=null,this.pageTitle="Download to POS",this.channelDetail$=null,t.reset()}groupingPreviewData(){let t=this.filterDataByStatus(he.UNSYNC),i=this.filterDataByStatus(he.WRONG),n=[];this.currentChannel.TypeID==F.Tokopedia&&(n=this.filterDataByStatus(he.SYNC)),this.downloadedPreviewData=[...n,...t,...i]}filterDataByStatus(t){let i=[];switch(t){case he.ALL:i=this.previewData;break;case he.SYNC:i=this.previewData.filter(n=>n.Action==ct.DoNothing);break;case he.WRONG:i=this.previewData.filter(n=>n.Action==ct.Update);break;case he.UNSYNC:i=this.previewData.filter(n=>n.Action==ct.New);break}return i}filterPreviewData(t){this.pillStatus=t,this.displayedPreviewData=this.filterDataByStatus(t)}initLengthStatusData(){this.wrongData=this.filterDataByStatus(he.WRONG).length,this.allData=this.previewData.length,this.syncData=this.filterDataByStatus(he.SYNC).length,this.unsyncData=this.filterDataByStatus(he.UNSYNC).length}getTypeID(){var t=this.channelOptions.find(i=>i.ID==this.channelID)?.TypeID;return t??0}onStepperChange(t){this.currentState=t.selectedStep.state}onStepperNext(t){t.selected.completed=!0,t.next()}onNext(t){switch(this.currentState){case"filter":this.onPreview(t);break;case"preview":this.onDownload(t);break}}stepChange(t){switch(t?.selectedStep?.state){case"filter":this.pageTitle="Download To POS",this.resetPreviewData();break;case"preview":let i=this.productService.findChannelById(this.channelID,this.channelOptions);this.setPageTitle(`Preview ${i?.Name}`);break;case"finish":this.setPageTitle("Download");break}}resetPreviewData(){this.displayedPreviewData=[],this.previewData=[],this.initLengthStatusData()}checkDisabledNextFilter(){let t=!A.isValidDate(this.startDate)||!A.isValidDate(this.endDate),i=A.IsEmpty(this.channelID);return t||i}exportOrders(){let t={ID:this.channelID,From:this.startDate,To:this.endDate},i=`Orders ${this.getDateTitle()}`;this.orderService.exportOrders(t,i).subscribe()}onFilterDateChange(){let t=1;this.startDate&&this.endDate&&(t=A.getDaysDiff(this.startDate,this.endDate)),this.showTimePicker=t==0}};l.\u0275fac=function(i){return new(i||l)(x(q),x(nt),x(G),x(Ft),x(Zi),x(ot),x(ce))},l.\u0275cmp=L({type:l,selectors:[["app-download"]],features:[Pt([{provide:rn,useValue:{displayDefaultIndicatorType:!1}}])],decls:24,vars:12,consts:[["stepper",""],["picker",""],["EMPTY",""],["EMPTY_DOWNLOAD",""],[3,"headerTitle","description","hideSearchBox","hideSearchDropdown"],[4,"ngIf"],[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,"selectionChange","ngClass"],["state","filter",3,"editable","completed"],["matStepLabel",""],["matStepContent",""],["state","preview",3,"editable","completed"],["state","finish"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn-group"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","border-end-0",3,"click","disabled"],["data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-outline-secondary","btn-sm","dropdown-toggle"],[1,"caret"],[1,"dropdown-menu","dropdown-menu-end",2,"min-width","85px !important"],[1,"dropdown-item"],[3,"click"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-2",3,"click","disabled"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],[1,"fa-solid","fa-filter","me-3"],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[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"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download
|
|
21
|
+
`}getDateTitle(){let t=A.formatTitleFromDate(new Date(this.startDate),new Date(this.endDate)),i=this.datePipe.transform(this.startDate,t),n=this.datePipe.transform(this.endDate,"dd MMM yyyy");return`${t==null?"":i+"-"} ${n}`}onNew(t){this.channelID=null,this.startDate=null,this.endDate=null,this.pageTitle="Download to POS",this.channelDetail$=null,t.reset()}groupingPreviewData(){let t=this.filterDataByStatus(he.UNSYNC),i=this.filterDataByStatus(he.WRONG),n=[];this.currentChannel.TypeID==F.Tokopedia&&(n=this.filterDataByStatus(he.SYNC)),this.downloadedPreviewData=[...n,...t,...i]}filterDataByStatus(t){let i=[];switch(t){case he.ALL:i=this.previewData;break;case he.SYNC:i=this.previewData.filter(n=>n.Action==ct.DoNothing);break;case he.WRONG:i=this.previewData.filter(n=>n.Action==ct.Update);break;case he.UNSYNC:i=this.previewData.filter(n=>n.Action==ct.New);break}return i}filterPreviewData(t){this.pillStatus=t,this.displayedPreviewData=this.filterDataByStatus(t)}initLengthStatusData(){this.wrongData=this.filterDataByStatus(he.WRONG).length,this.allData=this.previewData.length,this.syncData=this.filterDataByStatus(he.SYNC).length,this.unsyncData=this.filterDataByStatus(he.UNSYNC).length}getTypeID(){var t=this.channelOptions.find(i=>i.ID==this.channelID)?.TypeID;return t??0}onStepperChange(t){this.currentState=t.selectedStep.state}onStepperNext(t){t.selected.completed=!0,t.next()}onNext(t){switch(this.currentState){case"filter":this.onPreview(t);break;case"preview":this.onDownload(t);break}}stepChange(t){switch(t?.selectedStep?.state){case"filter":this.pageTitle="Download To POS",this.resetPreviewData();break;case"preview":let i=this.productService.findChannelById(this.channelID,this.channelOptions);this.setPageTitle(`Preview ${i?.Name}`);break;case"finish":this.setPageTitle("Download");break}}resetPreviewData(){this.displayedPreviewData=[],this.previewData=[],this.initLengthStatusData()}checkDisabledNextFilter(){let t=!A.isValidDate(this.startDate)||!A.isValidDate(this.endDate),i=A.IsEmpty(this.channelID);return t||i}exportOrders(){let t={ID:this.channelID,From:this.startDate,To:this.endDate},i=`Orders ${this.getDateTitle()}`;this.orderService.exportOrders(t,i).subscribe()}onFilterDateChange(){let t=1;this.startDate&&this.endDate&&(t=A.getDaysDiff(this.startDate,this.endDate)),this.showTimePicker=t==0}};l.\u0275fac=function(i){return new(i||l)(x(q),x(nt),x(G),x(Ft),x(Zi),x(ot),x(ce))},l.\u0275cmp=L({type:l,selectors:[["app-download"]],features:[Pt([{provide:rn,useValue:{displayDefaultIndicatorType:!1}}])],decls:24,vars:12,consts:[["stepper",""],["picker",""],["EMPTY",""],["EMPTY_DOWNLOAD",""],[3,"headerTitle","description","hideSearchBox","hideSearchDropdown"],[4,"ngIf"],[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,"selectionChange","ngClass"],["state","filter",3,"editable","completed"],["matStepLabel",""],["matStepContent",""],["state","preview",3,"editable","completed"],["state","finish"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn-group"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","border-end-0",3,"click","disabled"],["data-bs-toggle","dropdown","aria-expanded","false",1,"btn","btn-outline-secondary","btn-sm","dropdown-toggle"],[1,"caret"],[1,"dropdown-menu","dropdown-menu-end",2,"min-width","85px !important"],[1,"dropdown-item"],[3,"click"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-2",3,"click","disabled"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],[1,"fa-solid","fa-filter","me-3"],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[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"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[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,"mt-8"],[3,"timeChange","time"],[1,"mx-4"],[1,"fa-solid","fa-file","me-3"],["class","row pt-2",4,"ngIf"],[1,"row","pt-2"],[1,"col-md-12"],[1,"row","mx-1","mb-5"],[1,"nav","nav-pills"],[1,"nav-item","mx-3"],[1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["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"],[1,"table"],[1,"thead-light"],["width","1%"],["width","25%"],["width","15%",4,"ngIf"],["width","10%"],[4,"ngIf","ngIfElse"],["width","15%"],[4,"ngFor","ngForOf"],["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"],[1,"fa-sharp","fa-solid","fa-flag","me-3"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(i,n){if(i&1){let d=D();r(0,"mainpanel",4)(1,"actions"),f(2,gl,12,1,"ng-container",5)(3,fl,3,1,"ng-container",5)(4,Cl,4,0,"ng-container",5),o(),r(5,"content")(6,"div",6)(7,"div",7)(8,"div",8)(9,"div",9)(10,"mat-stepper",10,0),v("selectionChange",function(u){return h(d),_(n.stepChange(u))})("selectionChange",function(u){return h(d),_(n.onStepperChange(u))}),r(12,"mat-step",11),f(13,vl,3,0,"ng-template",12)(14,Tl,27,11,"ng-template",13),o(),r(15,"mat-step",14),f(16,Dl,3,0,"ng-template",12)(17,Al,1,1,"ng-template",13),o(),r(18,"mat-step",15),f(19,Bl,3,0,"ng-template",12)(20,zl,1,1,"ng-template",13),o(),f(21,jl,2,0,"ng-template",16)(22,Ul,2,0,"ng-template",17)(23,Gl,2,0,"ng-template",18),o()()()()()()()}if(i&2){let d=Y(11);m("headerTitle",n.pageTitle)("description",n.pageTitle)("hideSearchBox",!0)("hideSearchDropdown",!0),s(2),m("ngIf",n.currentState=="preview"),s(),m("ngIf",n.currentState=="filter"),s(),m("ngIf",n.currentState=="finish"),s(6),bi("ngClass","last-edited-step-"+d.selectedIndex),s(2),m("editable",n.currentState!="finish")("completed",!1),s(3),m("editable",n.currentState!="finish")("completed",!1)}},dependencies:[ze,$,U,pe,ee,te,re,de,Vi,Xi,Qi,Ji,en,pn,on,cn,ln,sn,Fi,Kt,Gi,Ki,it,G],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}
|
|
22
22
|
`],encapsulation:2});let a=l;return a})();var Kl=[{path:"",component:wn,children:[{path:"",redirectTo:"new",pathMatch:"full"},{path:"new",component:Dn,canActivate:[Ae],data:{title:"New Order"}},{path:"detail",component:kn,canActivate:[Ae],data:{title:"Orders detail"}},{path:"ready_to_ship",component:Mn,canActivate:[Ae],data:{title:"Ready To Ship"}},{path:"Shipped",component:En,canActivate:[Ae],data:{title:"Shipped"}},{path:"Delivered",component:Pn,canActivate:[Ae],data:{title:"Delivered"}},{path:"All",component:Vn,canActivate:[Ae],data:{title:"All Order"}},{path:"Cancelled",component:On,canActivate:[Ae],data:{title:"Cancelled"}},{path:"Download",component:Rn,canActivate:[Ae],data:{title:"Download"}}]}],Hn=(()=>{let l=class l{};l.\u0275fac=function(i){return new(i||l)},l.\u0275mod=Ye({type:l}),l.\u0275inj=We({imports:[Ee,Lt.forChild(Kl)]});let a=l;return a})();var nd=(()=>{let l=class l{};l.\u0275fac=function(i){return new(i||l)},l.\u0275mod=Ye({type:l}),l.\u0275inj=We({providers:[ot,Yt,jt],imports:[Ee,Bt,Hn,Ui,Wi,an,Lt,Oi,tn,Ni,me,dn,Li,zi,bn,Hi,qi,Yi,ue,Ut,Kt,$i]});let a=l;return a})();export{nd as OrdersModule};
|