marketplacepos 5.41.2 → 5.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/chunk-24DT5FN2.js +1 -0
- package/Marketplace/chunk-2DJWDXTZ.js +4 -0
- package/Marketplace/{chunk-IARG7PLL.js → chunk-2EL3WEWS.js} +1 -1
- package/Marketplace/chunk-3Y6LJS2H.js +1 -0
- package/Marketplace/chunk-6BFXOKCB.js +1 -0
- package/Marketplace/chunk-6DZKFXDF.js +1 -0
- package/Marketplace/{chunk-H6WIS2HR.js → chunk-6LULIB2P.js} +1 -1
- package/Marketplace/chunk-6QGSDBR7.js +1 -0
- package/Marketplace/{chunk-XGYBJAFE.js → chunk-736E275F.js} +1 -1
- package/Marketplace/{chunk-MCJRJUAO.js → chunk-ABQG3LB5.js} +1 -1
- package/Marketplace/{chunk-6RSAOZUV.js → chunk-ARZ2S6YD.js} +1 -1
- package/Marketplace/{chunk-EL2JACEW.js → chunk-AVVPZ3NI.js} +1 -1
- package/Marketplace/{chunk-FUWROOE4.js → chunk-AZ2FLWCK.js} +3 -2
- package/Marketplace/chunk-BAYW2AHI.js +1 -0
- package/Marketplace/{chunk-4JG3ZRYP.js → chunk-BCM6WRZR.js} +1 -1
- package/Marketplace/{chunk-HPGFBOM4.js → chunk-CFC5CQ3V.js} +1 -1
- package/Marketplace/{chunk-Z3KD73SP.js → chunk-CLDURV35.js} +2 -2
- package/Marketplace/{chunk-REL734JM.js → chunk-CRZOIZUQ.js} +1 -1
- package/Marketplace/{chunk-TQIIWFRF.js → chunk-D66XCOBY.js} +1 -1
- package/Marketplace/{chunk-SD7M7HOB.js → chunk-DIUEZVRG.js} +1 -1
- package/Marketplace/{chunk-SRJREA2O.js → chunk-DLSU35PZ.js} +1 -1
- package/Marketplace/{chunk-DS4AAABV.js → chunk-DMW4DWIM.js} +1 -1
- package/Marketplace/chunk-ECN3QRMT.js +1 -0
- package/Marketplace/chunk-F4HFUSVI.js +1 -0
- package/Marketplace/chunk-G4OF4YLE.js +2 -0
- package/Marketplace/{chunk-BM4KX73T.js → chunk-GMGCY3OL.js} +1 -1
- package/Marketplace/{chunk-5JYR3YJW.js → chunk-I5IZPTXZ.js} +1 -1
- package/Marketplace/{chunk-6UEHSA6E.js → chunk-IR5OMZTZ.js} +1 -1
- package/Marketplace/{chunk-Q6V3IOGL.js → chunk-ITTTKW6F.js} +1 -1
- package/Marketplace/{chunk-CEQA4PTY.js → chunk-IUWXRFDI.js} +1 -1
- package/Marketplace/{chunk-PEA6KVUS.js → chunk-JRXB6762.js} +1 -1
- package/Marketplace/{chunk-5B4KSPFM.js → chunk-K654EZ3I.js} +1 -1
- package/Marketplace/{chunk-WTAJSWM2.js → chunk-KC3C62UO.js} +2 -2
- package/Marketplace/{chunk-RHRJXX4W.js → chunk-KR2UT3GA.js} +1 -1
- package/Marketplace/{chunk-P5FCWMYK.js → chunk-MKOJVMRR.js} +1 -1
- package/Marketplace/{chunk-MP43HA4R.js → chunk-MMT3VFZZ.js} +1 -1
- package/Marketplace/{chunk-4YOHPIVG.js → chunk-NB5XHM62.js} +1 -1
- package/Marketplace/chunk-O6U5QCHJ.js +1 -0
- package/Marketplace/chunk-OJWFYXZX.js +1 -0
- package/Marketplace/{chunk-FFAZ3Q3F.js → chunk-OTFACGUB.js} +1 -1
- package/Marketplace/{chunk-CMZW5QAE.js → chunk-PB2SJSML.js} +1 -1
- package/Marketplace/{chunk-C7QA2BEN.js → chunk-PZ4PSWYM.js} +1 -1
- package/Marketplace/{chunk-YP2IPJ2O.js → chunk-QACWANJT.js} +1 -1
- package/Marketplace/{chunk-EVLYO3HX.js → chunk-QUXUEWEF.js} +1 -1
- package/Marketplace/chunk-R22TUWCL.js +15 -0
- package/Marketplace/{chunk-ZLNGASME.js → chunk-RCRPQNNW.js} +1 -1
- package/Marketplace/chunk-SACERVTF.js +1 -0
- package/Marketplace/{chunk-DG32XLYI.js → chunk-SDKAJBVB.js} +1 -1
- package/Marketplace/chunk-SMCI6XBO.js +1 -0
- package/Marketplace/chunk-SNDG7727.js +1 -0
- package/Marketplace/{chunk-S3YMF63V.js → chunk-T2IGESWD.js} +1 -1
- package/Marketplace/{chunk-KOKHDU4I.js → chunk-T3Z5OMIZ.js} +1 -1
- package/Marketplace/chunk-TGN4NMQY.js +1 -0
- package/Marketplace/{chunk-PBGDP6XV.js → chunk-UBB6E4VL.js} +1 -1
- package/Marketplace/chunk-UDIAPGRB.js +1 -0
- package/Marketplace/chunk-UEWZXE4O.js +1 -0
- package/Marketplace/chunk-WXQDF2MX.js +1 -0
- package/Marketplace/chunk-X5DJBQUZ.js +1 -0
- package/Marketplace/{chunk-BBVWQJ7M.js → chunk-XENOOCI4.js} +1 -1
- package/Marketplace/{chunk-4DV4IT7R.js → chunk-YR3PNRLA.js} +1 -1
- package/Marketplace/{chunk-R5TTZPDX.js → chunk-ZDYYX736.js} +1 -1
- package/Marketplace/chunk-ZFDUVL4I.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-SPNULRF2.js → main-OO7ZEZW4.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-4HZR3O3W.js +0 -1
- package/Marketplace/chunk-5ZX2OVBB.js +0 -1
- package/Marketplace/chunk-6SBCWEJJ.js +0 -1
- package/Marketplace/chunk-7H5ILTTK.js +0 -1
- package/Marketplace/chunk-H4PA2O6O.js +0 -1
- package/Marketplace/chunk-IIMHYIRJ.js +0 -1
- package/Marketplace/chunk-K6YEZYU4.js +0 -5
- package/Marketplace/chunk-KJHSB4A2.js +0 -1
- package/Marketplace/chunk-KTIKLSOU.js +0 -1
- package/Marketplace/chunk-KTXS7IPU.js +0 -1
- package/Marketplace/chunk-LOPJ3O56.js +0 -1
- package/Marketplace/chunk-MGVYUYPC.js +0 -15
- package/Marketplace/chunk-T4K3CJ2R.js +0 -1
- package/Marketplace/chunk-TQ4ZLZ7C.js +0 -1
- package/Marketplace/chunk-UDQBFSOV.js +0 -1
- package/Marketplace/chunk-UYW53K3I.js +0 -1
- package/Marketplace/chunk-WX5S3HCU.js +0 -1
- package/Marketplace/chunk-ZGZ74AJR.js +0 -1
- package/Marketplace/chunk-ZIUDNFYT.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as se,b as ce,c as ue}from"./chunk-2BUABOHG.js";import{a as _e}from"./chunk-P5FCWMYK.js";import{a as pe}from"./chunk-K6YEZYU4.js";import{a as de}from"./chunk-MCJRJUAO.js";import{a as me}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as ae}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-C7QA2BEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ne}from"./chunk-CMZW5QAE.js";import{e as ie}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import"./chunk-PW42BQIY.js";import{m as le,n as oe}from"./chunk-6X2OBNJQ.js";import{c as Y,h as Z,m as $,o as ee,z as te}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{s as re}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as J,k as K,m as Q,n as X}from"./chunk-MTUIRWOB.js";import{$c as w,Gb as I,Gc as a,Hc as v,Ic as k,Kc as g,Lc as C,Mb as x,Mc as h,Nc as z,Oc as j,Pc as H,Qc as R,Ra as O,Rc as U,Sc as G,Yb as c,Z as T,ac as W,ad as b,bd as q,dc as A,ec as N,gc as B,hc as D,ic as i,ja as L,jc as n,kc as f,oc as E,pa as y,pb as F,rb as l,tc as M,uc as u,v as P,ya as d,za as s}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var V=(()=>{class t{constructor(){this.httpService=y(ie)}getAllOrders(e){return this.httpService.post(ne.GetAll,e).pipe(P(m=>m.Data))}static{this.\u0275fac=function(m){return new(m||t)}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac})}}return t})();var ge=()=>[],Ce=t=>({"td-cell-hover":t});function he(t,_){if(t&1&&f(0,"variants-dropdown",25),t&2){let e=u().$implicit;c("variants",e==null?null:e.Variants)}}function Se(t,_){if(t&1&&f(0,"variant-with-image",26),t&2){let e=u().$implicit;c("variant",e==null?null:e.Variants[0])}}function ve(t,_){if(t&1&&(i(0,"span"),a(1),n()),t&2){let e=u().$implicit;l(),v(e.LogisticService==null?null:e.LogisticService.Option)}}function we(t,_){if(t&1&&(i(0,"tr")(1,"td")(2,"div",21)(3,"div",22)(4,"div"),f(5,"img",23),w(6,"channelImage"),n(),i(7,"div"),f(8,"order-link",24),n()(),i(9,"small"),a(10),w(11,"date"),n()()(),i(12,"td"),a(13),n(),i(14,"td"),x(15,he,1,1,"variants-dropdown",25)(16,Se,1,1,"variant-with-image",26),n(),i(17,"td"),a(18),w(19,"number"),n(),i(20,"td")(21,"span"),a(22),n(),x(23,ve,2,1,"span"),n()()),t&2){let e=_.$implicit;l(5),c("src",b(6,11,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(3),c("order",e),l(2),k(" ",q(11,13,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),v(e.Customer),l(),W(G(18,Ce,(e.Variants==null?null:e.Variants.length)>1)),l(),A((e.Variants==null?null:e.Variants.length)>1?15:16),l(3),v(b(19,16,e.Amount)),l(4),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),A(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?23:-1)}}function ye(t,_){if(t&1){let e=E();i(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),a(5,"Number"),n(),i(6,"th",18),a(7,"Customer"),n(),i(8,"th"),a(9,"Items"),n(),i(10,"th",19),a(11,"Amount"),n(),i(12,"th",19),a(13,"Shipping"),n()()(),i(14,"tbody"),B(15,we,24,20,"tr",null,N),n()(),i(17,"app-custom-paginator",20),M("next",function(){d(e);let r=u();return s(r.initAllOrders())})("previous",function(){d(e);let r=u();return s(r.initAllOrders())}),n()()}if(t&2){let e=u(),m=H(0);l(15),D(m),l(2),c("filter",e.filter())("totaldata",m==null?null:m.length)}}function xe(t,_){t&1&&(i(0,"div",14),f(1,"app-empty-state"),n())}var Xe=(()=>{class t{constructor(){this.allService=y(V),this.filter=O({PageNumber:1,PageSize:100,ListChannelID:[],From:null,To:null})}ngOnInit(){this.initAllOrders()}initAllOrders(){this.allOrders$=this.allService.getAllOrders(this.filter()).pipe(T(1))}static{this.\u0275fac=function(m){return new(m||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-all"]],features:[R([V])],decls:29,vars:12,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Search Orders...",3,"onSubmit","hideSearchBox"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],["rowCountApi","/api/orders/allcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[3,"order"],[3,"variants"],[3,"variant"]],template:function(m,r){if(m&1){let p=E();z(0),w(1,"async"),i(2,"mainpanel",0),M("onSubmit",function(){return d(p),s(r.initAllOrders())}),i(3,"filters")(4,"div")(5,"label",1),a(6,"From/To"),n(),i(7,"channel-select-options",2),h("ngModelChange",function(o){return d(p),C(r.filter().ListChannelID,o)||(r.filter().ListChannelID=o),s(o)}),n()(),i(8,"div",3)(9,"label",1),a(10,"From/To"),n(),i(11,"div",4)(12,"datepicker",5),h("dateChange",function(o){return d(p),C(r.filter().From,o)||(r.filter().From=o),s(o)}),n()(),i(13,"div")(14,"datepicker",6),h("dateChange",function(o){return d(p),C(r.filter().To,o)||(r.filter().To=o),s(o)}),n()()(),i(15,"div",3)(16,"label",7),a(17,"Page Number"),n(),i(18,"input",8),h("ngModelChange",function(o){return d(p),C(r.filter().PageNumber,o)||(r.filter().PageNumber=o),s(o)}),n()(),i(19,"div",3)(20,"label",7),a(21,"Page Size"),n(),i(22,"input",9),h("ngModelChange",function(o){return d(p),C(r.filter().PageSize,o)||(r.filter().PageSize=o),s(o)}),n()()(),i(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),x(27,ye,18,2,"div",13)(28,xe,2,0,"div",14),n()()()()()}if(m&2){let p=j(b(1,8,r.allOrders$)||U(11,ge));l(2),c("hideSearchBox",!0),l(5),c("multiple",!0),g("ngModel",r.filter().ListChannelID),l(5),g("date",r.filter().From),l(2),g("date",r.filter().To),l(4),g("ngModel",r.filter().PageNumber),l(4),g("ngModel",r.filter().PageSize),l(5),A((p==null?null:p.length)>0?27:28)}},dependencies:[X,J,Q,K,oe,le,me,ae,te,Y,ee,Z,$,se,ce,ue,pe,de,re,_e],encapsulation:2})}}return t})();export{Xe as AllComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as le}from"./chunk-P5FCWMYK.js";import{a as re}from"./chunk-K6YEZYU4.js";import{a as oe}from"./chunk-MCJRJUAO.js";import{a as ee,b as te}from"./chunk-KX5AWR75.js";import{a as ne}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as ie}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-C7QA2BEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as X}from"./chunk-CMZW5QAE.js";import{e as Q}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import"./chunk-PW42BQIY.js";import{m as Z,n as $}from"./chunk-6X2OBNJQ.js";import{c as G,h as U,m as q,o as J,z as K}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{s as Y}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as z,k as j,m as H,n as R}from"./chunk-MTUIRWOB.js";import{$c as w,Gb as O,Gc as d,Hc as h,Kc as u,Lc as C,Mb as I,Mc as f,Nc as D,Oc as F,Pc as N,Ra as V,Yb as s,Z as T,ad as M,bd as A,dc as L,ec as W,gc as B,hc as k,ic as e,ja as P,jc as t,kc as S,oc as b,pa as _,rb as a,tc as x,uc as y,v as E,ya as p,za as c}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var ae=(()=>{class r{constructor(){this.httpService=_(Q)}getCancelledOrders(o){return this.httpService.post(X.GetCancelled,o).pipe(E(l=>l.Data))}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275prov=P({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();function me(r,v){if(r&1&&(e(0,"tr")(1,"td"),d(2),t(),e(3,"td"),S(4,"order-link",24),t(),e(5,"td"),d(6),t(),e(7,"td"),d(8),w(9,"number"),t(),e(10,"td"),d(11),w(12,"date"),t(),e(13,"td"),S(14,"app-channel-logo",25),t()()),r&2){let o=v.$implicit;a(2),h(o.Outlet),a(2),s("order",o),a(2),h(o.Customer),a(2),h(M(9,6,o.Amount)),a(3),h(A(12,8,o.Created,"dd MMM yyyy HH:mm")),a(3),s("typeId",o==null?null:o.TypeID)}}function pe(r,v){if(r&1){let o=b();e(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),d(5,"Outlet"),t(),e(6,"th",19),d(7,"Order number"),t(),e(8,"th"),d(9,"Customer"),t(),e(10,"th",20),d(11,"Amount"),t(),e(12,"th",21),d(13," Created On "),t(),e(14,"th",22),d(15,"Channel"),t()()(),e(16,"tbody"),B(17,me,15,11,"tr",null,W),t()(),e(19,"app-custom-paginator",23),x("next",function(){p(o);let i=y();return c(i.initCancelledOrders())})("previous",function(){p(o);let i=y();return c(i.initCancelledOrders())}),t()()}if(r&2){let o=y(),l=N(0);a(17),k(l),a(2),s("filter",o.filter())("totaldata",l==null?null:l.length)("paginationTotal",l==null?null:l.length)("hasClicked",!0)("nextButtonAlwaysVisible",!0)}}function ce(r,v){r&1&&(e(0,"div",14),S(1,"app-empty-state"),t())}var Fe=(()=>{class r{constructor(){this.cancelledService=_(ae),this.filter=V({PageNumber:1,PageSize:100,ListChannelID:[],From:null,To:null})}ngOnInit(){this.initCancelledOrders()}initCancelledOrders(){this.cancelledOrders$=this.cancelledService.getCancelledOrders(this.filter()).pipe(T(1))}static{this.\u0275fac=function(l){return new(l||r)}}static{this.\u0275cmp=O({type:r,selectors:[["app-cancelled"]],decls:29,vars:11,consts:[["headerTitle","Cancelled","searchBoxPlaceHolder","Search Orders...",3,"onSubmit","hideSearchBox"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","120px"],[2,"width","220px"],[2,"width","100px"],["mat-sort-header","created",2,"width","130px"],[2,"width","130px"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked","nextButtonAlwaysVisible"],[3,"order"],[3,"typeId"]],template:function(l,i){if(l&1){let m=b();D(0),w(1,"async"),e(2,"mainpanel",0),x("onSubmit",function(){return p(m),c(i.initCancelledOrders())}),e(3,"filters")(4,"div")(5,"label",1),d(6,"From/To"),t(),e(7,"channel-select-options",2),f("ngModelChange",function(n){return p(m),C(i.filter().ListChannelID,n)||(i.filter().ListChannelID=n),c(n)}),t()(),e(8,"div",3)(9,"label",1),d(10,"From/To"),t(),e(11,"div",4)(12,"datepicker",5),f("dateChange",function(n){return p(m),C(i.filter().From,n)||(i.filter().From=n),c(n)}),t()(),e(13,"div")(14,"datepicker",6),f("dateChange",function(n){return p(m),C(i.filter().To,n)||(i.filter().To=n),c(n)}),t()()(),e(15,"div",3)(16,"label",7),d(17,"Page Number"),t(),e(18,"input",8),f("ngModelChange",function(n){return p(m),C(i.filter().PageNumber,n)||(i.filter().PageNumber=n),c(n)}),t()(),e(19,"div",3)(20,"label",7),d(21,"Page Size"),t(),e(22,"input",9),f("ngModelChange",function(n){return p(m),C(i.filter().PageSize,n)||(i.filter().PageSize=n),c(n)}),t()()(),e(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),I(27,pe,20,5,"div",13)(28,ce,2,0,"div",14),t()()()()()}if(l&2){let m=F(M(1,8,i.cancelledOrders$));a(2),s("hideSearchBox",!0),a(5),s("multiple",!0),u("ngModel",i.filter().ListChannelID),a(5),u("date",i.filter().From),a(2),u("date",i.filter().To),a(4),u("ngModel",i.filter().PageNumber),a(4),u("ngModel",i.filter().PageSize),a(5),L((m==null?null:m.length)>0?27:28)}},dependencies:[R,z,H,j,$,Z,ne,ie,K,G,J,U,q,re,oe,Y,le,te,ee],encapsulation:2})}}return r})();export{Fe as CancelledComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ge}from"./chunk-4PZ5Q3HI.js";import{a as ue,b as Ce,c as he}from"./chunk-2BUABOHG.js";import{a as _e}from"./chunk-P5FCWMYK.js";import{a as de}from"./chunk-K6YEZYU4.js";import{a as se}from"./chunk-MCJRJUAO.js";import"./chunk-6MPSYC77.js";import{a as ce}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as me}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-C7QA2BEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as oe}from"./chunk-CMZW5QAE.js";import{b as ie,e as ne}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import{b as v}from"./chunk-PW42BQIY.js";import{m as le,n as pe}from"./chunk-6X2OBNJQ.js";import{c as Y,h as Z,m as $,o as ee,z as te}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{r as ae,s as re}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as J,k as K,m as Q,n as X}from"./chunk-MTUIRWOB.js";import{$c as x,Gb as F,Gc as l,Hc as _,Ic as z,Kc as f,Lc as S,Mb as y,Mc as w,Nc as j,Oc as H,Pc as R,Qc as U,Ra as I,Sc as G,Yb as s,Z as P,ac as D,ad as E,bd as q,dc as L,ec as W,gc as B,hc as O,ic as i,ja as k,jc as t,kc as g,oc as T,pa as h,pb as N,rb as a,tc as A,uc as u,v as M,ya as c,za as d}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var V=(()=>{class n{constructor(){this.httpService=h(ne),this.shippingLabelService=h(ge),this.toastrService=h(ie)}getAwaitingCollectionOrders(e){return this.httpService.post(oe.GetAwaitingCollection,e).pipe(M(p=>p?.Data))}printShippingLabel(e){switch(e?.MarketType){case v.Shopee:this.shippingLabelService.printShippingLabelShopee(e.Number,e.ShopID);break;case v.Tiktok:this.shippingLabelService.printShippingLabelTiktok(e.Number,e.ShopID);break;case v.Tokopedia:this.shippingLabelService.printShippingLabelTokopedia(e.Number);break;case v.Lazada:this.shippingLabelService.printShippingLabelLazada(e.Number,e.ShopID);break;case v.Shopify:this.toastrService.error("Shopify not supported","Error Not supported");break}}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275prov=k({token:n,factory:n.\u0275fac})}}return n})();var Se=n=>({"td-cell-hover":n});function we(n,C){if(n&1&&g(0,"variants-dropdown",28),n&2){let e=u().$implicit;s("variants",e==null?null:e.Variants)}}function ve(n,C){if(n&1&&g(0,"variant-with-image",29),n&2){let e=u().$implicit;s("variant",e==null?null:e.Variants[0])}}function be(n,C){if(n&1&&(i(0,"span"),l(1),t()),n&2){let e=u().$implicit;a(),_(e.LogisticService==null?null:e.LogisticService.Option)}}function xe(n,C){if(n&1){let e=T();i(0,"tr")(1,"td"),l(2),t(),i(3,"td")(4,"div",24)(5,"div",25)(6,"div"),g(7,"img",26),x(8,"channelImage"),t(),i(9,"div"),g(10,"order-link",27),t()(),i(11,"small"),l(12),x(13,"date"),t()()(),i(14,"td"),l(15),t(),i(16,"td"),y(17,we,1,1,"variants-dropdown",28)(18,ve,1,1,"variant-with-image",29),t(),i(19,"td",30),l(20),x(21,"number"),t(),i(22,"td")(23,"span"),l(24),t(),y(25,be,2,1,"span"),t(),i(26,"td",31)(27,"button",32),A("click",function(){let o=c(e).$implicit,m=u(2);return d(m.onPrintShippingLabel(o))}),g(28,"i",33),t()()()}if(n&2){let e=C.$implicit;a(2),_(e.Outlet),a(5),s("src",E(8,12,e==null?null:e.MarketType),N)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(3),s("order",e),a(2),z(" ",q(13,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(3),_(e.Customer),a(),D(G(19,Se,(e.Variants==null?null:e.Variants.length)>1)),a(),L((e.Variants==null?null:e.Variants.length)>1?17:18),a(3),_(E(21,17,e.Amount)),a(4),_(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),L(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1)}}function ye(n,C){if(n&1){let e=T();i(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),l(5,"Outlet"),t(),i(6,"th",19),l(7,"Number"),t(),i(8,"th",19),l(9,"Customer"),t(),i(10,"th"),l(11,"Items"),t(),i(12,"th",20),l(13,"Amount"),t(),i(14,"th",21),l(15,"Shipping"),t(),g(16,"th",22),t()(),i(17,"tbody"),B(18,xe,29,21,"tr",null,W),t()(),i(20,"app-custom-paginator",23),A("next",function(){c(e);let o=u();return d(o.initAwaitingCollection())})("previous",function(){c(e);let o=u();return d(o.initAwaitingCollection())}),t()()}if(n&2){let e=u(),p=R(0);a(18),O(p),a(2),s("filter",e.filter())("totaldata",p==null?null:p.length)}}function Le(n,C){n&1&&(i(0,"div",14),g(1,"app-empty-state"),t())}var it=(()=>{class n{constructor(){this.awaitingCollectionService=h(V),this.filter=I({PageNumber:1,PageSize:100,ListChannelID:[],From:null,To:null})}ngOnInit(){this.initAwaitingCollection()}initAwaitingCollection(){this.awaitingCollections$=this.awaitingCollectionService.getAwaitingCollectionOrders(this.filter()).pipe(P(1))}onPrintShippingLabel(e){this.awaitingCollectionService.printShippingLabel(e)}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275cmp=F({type:n,selectors:[["app-awaiting-collection"]],features:[U([V])],decls:29,vars:11,consts:[["headerTitle","Awaiting Collection","searchBoxPlaceHolder","Search Orders...",3,"onSubmit","hideSearchBox"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],[2,"width","10px"],["rowCountApi","/api/orders/awaitingcollectioncount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"text-end","td-cell-hover"],["type","button","aria-label","Print order","title","Print","matTooltip","Print shipping label",1,"btn","p-0","border-0","bg-transparent",3,"click"],[1,"fa-solid","fa-print","fs-3"]],template:function(p,o){if(p&1){let m=T();j(0),x(1,"async"),i(2,"mainpanel",0),A("onSubmit",function(){return c(m),d(o.initAwaitingCollection())}),i(3,"filters")(4,"div")(5,"label",1),l(6,"From/To"),t(),i(7,"channel-select-options",2),w("ngModelChange",function(r){return c(m),S(o.filter().ListChannelID,r)||(o.filter().ListChannelID=r),d(r)}),t()(),i(8,"div",3)(9,"label",1),l(10,"From/To"),t(),i(11,"div",4)(12,"datepicker",5),w("dateChange",function(r){return c(m),S(o.filter().From,r)||(o.filter().From=r),d(r)}),t()(),i(13,"div")(14,"datepicker",6),w("dateChange",function(r){return c(m),S(o.filter().To,r)||(o.filter().To=r),d(r)}),t()()(),i(15,"div",3)(16,"label",7),l(17,"Page Number"),t(),i(18,"input",8),w("ngModelChange",function(r){return c(m),S(o.filter().PageNumber,r)||(o.filter().PageNumber=r),d(r)}),t()(),i(19,"div",3)(20,"label",7),l(21,"Page Size"),t(),i(22,"input",9),w("ngModelChange",function(r){return c(m),S(o.filter().PageSize,r)||(o.filter().PageSize=r),d(r)}),t()()(),i(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),y(27,ye,21,2,"div",13)(28,Le,2,0,"div",14),t()()()()()}if(p&2){let m=H(E(1,8,o.awaitingCollections$));a(2),s("hideSearchBox",!0),a(5),s("multiple",!0),f("ngModel",o.filter().ListChannelID),a(5),f("date",o.filter().From),a(2),f("date",o.filter().To),a(4),f("ngModel",o.filter().PageNumber),a(4),f("ngModel",o.filter().PageSize),a(5),L((m==null?null:m.length)>0?27:28)}},dependencies:[X,J,Q,K,pe,le,ce,me,te,Y,ee,Z,$,ue,Ce,he,de,se,re,ae,_e],encapsulation:2})}}return n})();export{it as AwaitingCollectionComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as me,b as se,c as ce}from"./chunk-2BUABOHG.js";import{a as ue}from"./chunk-P5FCWMYK.js";import{a as pe}from"./chunk-K6YEZYU4.js";import{a as de}from"./chunk-MCJRJUAO.js";import{a as le}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as ae}from"./chunk-5EQNOCXP.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-C7QA2BEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ie}from"./chunk-CMZW5QAE.js";import{e as te}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import"./chunk-PW42BQIY.js";import{m as re,n as oe}from"./chunk-6X2OBNJQ.js";import{c as X,h as Y,m as Z,o as $,z as ee}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{s as ne}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as q,k as J,m as K,n as Q}from"./chunk-MTUIRWOB.js";import{$c as w,Gb as F,Gc as l,Hc as S,Ic as k,Kc as f,Lc as g,Mb as y,Mc as C,Nc as z,Oc as A,Pc as j,Qc as H,Ra as O,Rc as R,Sc as U,Yb as c,ac as W,ad as b,bd as G,dc as E,ec as D,gc as N,hc as B,ic as t,ja as L,jc as i,kc as _,oc as M,pa as x,pb as I,rb as o,tc as V,uc as u,v as T,ya as d,za as m}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var P=(()=>{class n{constructor(){this.httpService=x(te)}getShippedOrders(e){return this.httpService.post(ie.GetShipped,e).pipe(T(p=>p.Data||[]))}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275prov=L({token:n,factory:n.\u0275fac})}}return n})();var _e=()=>[],Se=n=>({"td-cell-hover":n});function fe(n,h){if(n&1&&_(0,"variants-dropdown",27),n&2){let e=u().$implicit;c("variants",e==null?null:e.Variants)}}function ge(n,h){if(n&1&&_(0,"variant-with-image",28),n&2){let e=u().$implicit;c("variant",e==null?null:e.Variants[0])}}function Ce(n,h){if(n&1&&(t(0,"span"),l(1),i()),n&2){let e=u().$implicit;o(),S(e.LogisticService==null?null:e.LogisticService.Option)}}function ve(n,h){if(n&1&&(t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"div",23)(5,"div",24)(6,"div"),_(7,"img",25),w(8,"channelImage"),i(),t(9,"div"),_(10,"order-link",26),i()(),t(11,"small"),l(12),w(13,"date"),i()()(),t(14,"td"),l(15),i(),t(16,"td"),y(17,fe,1,1,"variants-dropdown",27)(18,ge,1,1,"variant-with-image",28),i(),t(19,"td",29),l(20),w(21,"number"),i(),t(22,"td")(23,"span"),l(24),i(),y(25,Ce,2,1,"span"),i()()),n&2){let e=h.$implicit;o(2),S(e.Outlet),o(5),c("src",b(8,12,e==null?null:e.MarketType),I)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),o(3),c("order",e),o(2),k(" ",G(13,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),o(3),S(e.Customer),o(),W(U(19,Se,(e.Variants==null?null:e.Variants.length)>1)),o(),E((e.Variants==null?null:e.Variants.length)>1?17:18),o(3),S(b(21,17,e.Amount)),o(4),S(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),o(),E(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1)}}function we(n,h){if(n&1){let e=M();t(0,"div",13)(1,"table",15)(2,"thead",16)(3,"tr",17)(4,"th",18),l(5,"Outlet"),i(),t(6,"th",19),l(7,"Number"),i(),t(8,"th",19),l(9,"Customer"),i(),t(10,"th"),l(11,"Items"),i(),t(12,"th",20),l(13,"Amount"),i(),t(14,"th",21),l(15,"Shipping"),i()()(),t(16,"tbody"),N(17,ve,26,21,"tr",null,D),i()(),t(19,"app-custom-paginator",22),V("next",function(){d(e);let r=u();return m(r.initShippedOrders())})("previous",function(){d(e);let r=u();return m(r.initShippedOrders())}),i()()}if(n&2){let e=u(),p=j(0);o(17),B(p),o(2),c("filter",e.filter())("totaldata",p==null?null:p.length)}}function xe(n,h){n&1&&(t(0,"div",14),_(1,"app-empty-state"),i())}var Ke=(()=>{class n{constructor(){this.shippedService=x(P),this.filter=O({PageNumber:1,PageSize:100,ListChannelID:[],From:new Date,To:new Date})}ngOnInit(){this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.shippedService.getShippedOrders(this.filter())}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275cmp=F({type:n,selectors:[["app-shipped"]],features:[H([P])],decls:29,vars:12,consts:[["headerTitle","Shipped","searchBoxPlaceHolder","Search Orders...",3,"onSubmit","hideSearchBox"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],["rowCountApi","/api/orders/shippedcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","12px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(p,r){if(p&1){let s=M();z(0),w(1,"async"),t(2,"mainpanel",0),V("onSubmit",function(){return d(s),m(r.initShippedOrders())}),t(3,"filters")(4,"div")(5,"label",1),l(6,"From/To"),i(),t(7,"channel-select-options",2),C("ngModelChange",function(a){return d(s),g(r.filter().ListChannelID,a)||(r.filter().ListChannelID=a),m(a)}),i()(),t(8,"div",3)(9,"label",1),l(10,"From/To"),i(),t(11,"div",4)(12,"datepicker",5),C("dateChange",function(a){return d(s),g(r.filter().From,a)||(r.filter().From=a),m(a)}),i()(),t(13,"div")(14,"datepicker",6),C("dateChange",function(a){return d(s),g(r.filter().To,a)||(r.filter().To=a),m(a)}),i()()(),t(15,"div",3)(16,"label",7),l(17,"Page Number"),i(),t(18,"input",8),C("ngModelChange",function(a){return d(s),g(r.filter().PageNumber,a)||(r.filter().PageNumber=a),m(a)}),i()(),t(19,"div",3)(20,"label",7),l(21,"Page Size"),i(),t(22,"input",9),C("ngModelChange",function(a){return d(s),g(r.filter().PageSize,a)||(r.filter().PageSize=a),m(a)}),i()()(),t(23,"content")(24,"div",10)(25,"div",11)(26,"div",12),y(27,we,20,2,"div",13)(28,xe,2,0,"div",14),i()()()()()}if(p&2){let s=A(b(1,8,r.shippedOrders$)||R(11,_e));o(2),c("hideSearchBox",!0),o(5),c("multiple",!0),f("ngModel",r.filter().ListChannelID),o(5),f("date",r.filter().From),o(2),f("date",r.filter().To),o(4),f("ngModel",r.filter().PageNumber),o(4),f("ngModel",r.filter().PageSize),o(5),E(s.length>0?27:28)}},dependencies:[Q,q,K,J,oe,re,le,ae,ee,X,$,Y,Z,me,se,ce,pe,de,ne,ue],encapsulation:2})}}return n})();export{Ke as ShippedComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as x}from"./chunk-PE5AFID4.js";import{h as u}from"./chunk-C7QA2BEN.js";import{b as h,d as C,i as M,j as v,k as S}from"./chunk-6X2OBNJQ.js";import{G as p,n as g}from"./chunk-MTUIRWOB.js";import{Gb as s,Gc as t,Yb as f,ic as o,ja as m,jc as n,kc as d,pa as i,tc as c}from"./chunk-JS55A2RS.js";var y=(()=>{class e{constructor(){this.dialogRef=i(h),this.route=i(p),this.modalConfig=new v,this.modalConfig.title="Setup to modern authorization",this.modalConfig.customWidth="450px",this.modalConfig.hideCancel=!0,this.modalConfig.headerType=M.Warning,this.modalConfig.okText="Setup"}onClose(){this.dialogRef.close()}onOk(){this.dialogRef.close(),this.route.navigate(["/menu/users"])}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=s({type:e,selectors:[["app-modal-user-migration-confirmation"]],decls:19,vars:1,consts:[[3,"onOk","onCancel","config"],["content",""],[1,"d-flex","align-items-center","justify-content-between","gap-6"],[1,"text-center",2,"width","300px"],[1,"fa-solid","fa-users-gear","fa-6x"],[1,"lh-base"],["href","#","target","_blank"]],template:function(r,l){r&1&&(o(0,"modal-material",0),c("onOk",function(){return l.onOk()})("onCancel",function(){return l.onClose()}),o(1,"div",1)(2,"div",2)(3,"div",3),d(4,"i",4),n(),o(5,"div",5)(6,"p"),t(7," We have introduced a new Modern Authorization, Please switch from "),o(8,"b"),t(9,"legacy"),n(),t(10," to "),o(11,"b"),t(12,"modern"),n(),t(13," authorization by inviting your users. "),n(),o(14,"div"),t(15," Please refer to this "),o(16,"a",6),t(17,"article"),n(),t(18," for more information "),n()()()()()),r&2&&f("config",l.modalConfig)},dependencies:[g,S],encapsulation:2})}}return e})();var R=(()=>{class e{constructor(){this.dialog=i(C),this.tokenService=i(u),this.dialogRef=null}openDialogMigrationConfirmation(){this.tokenService.getUser()?.AuthorizationMode===x.Legacy&&!this.dialogRef&&(this.dialogRef=this.dialog.open(y),this.dialogRef.afterClosed().subscribe(()=>{this.dialogRef=null}))}resetDialogState(){this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var B=(e,b)=>(i(R).openDialogMigrationConfirmation(),!0);export{B as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ae}from"./chunk-K6YEZYU4.js";import{a as ie}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as oe,b as re}from"./chunk-ZR5IXNXB.js";import"./chunk-LSXUXG54.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-SIYMMMKQ.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import{a as X,b as Z,d as $,e as ee}from"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import{i as Q}from"./chunk-C7QA2BEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-CMZW5QAE.js";import{e as K}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import{c as J}from"./chunk-PW42BQIY.js";import{m as te,n as ne}from"./chunk-6X2OBNJQ.js";import{c as j,h as q,m as G,o as H,z as Y}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{H as A,J as U,f as W,g as F,k as B,m as k,n as z}from"./chunk-MTUIRWOB.js";import{$c as L,Fc as P,Gb as T,Gc as l,Hc as S,Ic as y,Kc as c,Lc as u,Mb as w,Mc as h,Sc as I,Yb as m,ad as N,bd as V,cd as R,ic as t,jc as n,kc as C,lc as M,mc as x,oc as O,pb as b,rb as r,tc as E,uc as v,xb as D,ya as p,za as s}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var le=a=>({ID:a});function de(a,f){if(a&1&&(t(0,"span",17),C(1,"img",18),n(),l(2)),a&2){let e=f.item;r(),m("src",e.Img,b)("alt",e.Name),r(),y(" ",e.Name," ")}}function me(a,f){if(a&1&&(t(0,"tr")(1,"td"),l(2),n(),t(3,"td"),C(4,"img",28),n(),t(5,"td"),l(6),n(),t(7,"td",29)(8,"a",30),l(9),L(10,"number"),n()(),t(11,"td"),l(12),n(),t(13,"td"),l(14),L(15,"date"),n()()),a&2){let e=f.$implicit;r(2),S(e._source.ChannelName),r(2),m("src",e.logo,b),r(2),S(e._source.DateRange),r(2),m("queryParams",I(12,le,e._source.ID)),r(),y(" ",N(10,7,e._source.CountOrder)," "),r(3),S(e._source.UserLogin),r(2),y(" ",V(15,9,e._source["@timestamp_received"],"dd MMM yyyy hh:mm")," ")}}function pe(a,f){if(a&1){let e=O();M(0),t(1,"div",19)(2,"table",20)(3,"thead")(4,"tr",21)(5,"th",22),l(6,"Channel"),n(),t(7,"th",23),l(8,"Type"),n(),t(9,"th",24),l(10,"Download Date Range"),n(),t(11,"th",25),l(12,"Count"),n(),t(13,"th"),l(14,"User Login"),n(),t(15,"th"),l(16,"Created"),n()()(),t(17,"tbody"),w(18,me,16,14,"tr",26),n()(),t(19,"mat-paginator",27),E("page",function(i){p(e);let d=v();return s(d.onPaginationChange(i))}),n()(),x()}if(a&2){let e=v();r(18),m("ngForOf",e.downloadOrders),r(),m("length",e.paginationTotal)("pageSize",e.paginationPageSize)("pageIndex",(e.filter==null?null:e.filter.PageNumber)==0?0:(e.filter==null?null:e.filter.PageNumber)-1)}}function se(a,f){a&1&&(t(0,"div",31),C(1,"app-empty-state"),n())}var xe=(()=>{class a{constructor(e,g){this.http=e,this.authService=g,this.filter={PageNumber:0,RowCount:20,ChannelID:"",From:"",To:""},this.channelOptions=this.authService.getChannels(),this.onGetLoader()}onGetLoader(){this.http.post("/api/OrdersLoader/OrderLogsLoader",{}).subscribe(e=>{this.filter=e.Filter,this.getDownloadOrders()})}getDownloadOrders(){this.http.post("api/Orders/OrderLogsPaged",this.filter).subscribe(e=>{this.downloadOrders=e.hits,this.setChannelLogo(),this.paginationTotal=e.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}setChannelLogo(){this.downloadOrders=this.downloadOrders.map(e=>(e.logo=J.getChannelLogoByTypeId(e._source.TypeID),e))}onPaginationChange(e){this.filter.PageNumber=e.pageIndex+1,this.getDownloadOrders()}static{this.\u0275fac=function(g){return new(g||a)(D(K),D(Q))}}static{this.\u0275cmp=T({type:a,selectors:[["app-download-order-log"]],decls:29,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","Download Order Log",3,"onSubmit","hideSearchBox"],[1,"fw-bold","mb-2"],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel","appendTo","body",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[2,"width","200px"],[1,"text-end",2,"width","200px"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[2,"width","25px",3,"src"],[1,"text-end"],["routerLink","/menu/Order/Download_Order_Log/Detail",3,"queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(g,i){if(g&1){let d=O();t(0,"mainpanel",1),E("onSubmit",function(){return p(d),s(i.getDownloadOrders())}),t(1,"filters")(2,"div")(3,"label",2),l(4,"Channel"),n(),t(5,"ng-select",3),h("ngModelChange",function(o){return p(d),u(i.filter.ChannelID,o)||(i.filter.ChannelID=o),s(o)}),w(6,de,3,3,"ng-template",4),n()(),t(7,"div",5)(8,"label",6),l(9,"From/To"),n(),t(10,"div",7)(11,"datepicker",8),h("dateChange",function(o){return p(d),u(i.filter.From,o)||(i.filter.From=o),s(o)}),n()(),t(12,"div")(13,"datepicker",9),h("dateChange",function(o){return p(d),u(i.filter.To,o)||(i.filter.To=o),s(o)}),n()()(),t(14,"div",5)(15,"label",10),l(16,"Page Number"),n(),t(17,"input",11),h("ngModelChange",function(o){return p(d),u(i.filter.PageNumber,o)||(i.filter.PageNumber=o),s(o)}),n()(),t(18,"div",5)(19,"label",10),l(20,"Page Size"),n(),t(21,"input",12),h("ngModelChange",function(o){return p(d),u(i.filter.RowCount,o)||(i.filter.RowCount=o),s(o)}),n()()(),t(22,"content")(23,"div",13)(24,"div",14)(25,"div",15),w(26,pe,20,4,"ng-container",16)(27,se,2,0,"ng-template",null,0,R),n()()()()()}if(g&2){let d=P(28);m("hideSearchBox",!0),r(5),m("clearable",!0)("items",i.channelOptions),c("ngModel",i.filter.ChannelID),r(6),c("date",i.filter.From),r(2),c("date",i.filter.To),r(4),c("ngModel",i.filter.PageNumber),r(4),c("ngModel",i.filter.RowCount),r(5),m("ngIf",(i.downloadOrders==null?null:i.downloadOrders.length)>0)("ngIfElse",d)}},dependencies:[z,W,F,k,B,re,oe,ne,te,ee,$,X,Z,Y,j,H,q,G,ae,U,A,ie],encapsulation:2})}}return a})();export{xe as DownloadOrderLogComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as c,c as b}from"./chunk-PW42BQIY.js";import{b as P,c as k,j as E,k as V}from"./chunk-6X2OBNJQ.js";import{r as T}from"./chunk-HFKKITEW.js";import{d as S,f as H,g as Y,m as q}from"./chunk-MTUIRWOB.js";import{$c as K,Fc as W,Gb as y,Gc as r,Hc as _,Ic as u,Mb as x,Ra as L,Sc as I,Xb as $,Yb as p,ad as A,cd as G,ec as j,gc as z,hc as B,ic as i,jc as a,kc as f,lc as U,mc as w,pb as v,rb as o,tc as O,uc as C,xb as h}from"./chunk-JS55A2RS.js";var s=function(e){return e.Tokopedia="https://seller.tokopedia.com",e.Shoope="https://seller.shopee.co.id",e.Tiktok="https://seller-id.tiktok.com",e.WooCommerce="https://woocommerce.dealpos.app",e.Lazada="https://sellercenter.lazada.co.id",e}(s||{});var nt=e=>({"is-disabled":e});function it(e,d){if(e&1&&(U(0),i(1,"tr")(2,"td",11),r(3),a(),i(4,"td",11),r(5),a(),i(6,"td",12)(7,"p",13),r(8,"Product Not in Channel!"),a()()(),w()),e&2){let t=C().$implicit;o(3),u(" ",t==null?null:t.Model,""),o(2),u(" ",t==null?null:t.Code,"")}}function at(e,d){if(e&1&&(i(0,"td",11),r(1),a()),e&2){let t=C(3).$implicit;$("rowspan",t.Channel.length),o(),u(" ",t==null?null:t.Model,"")}}function ot(e,d){if(e&1&&(i(0,"td",11),r(1),a()),e&2){let t=C(3).$implicit;$("rowspan",t.Channel.length),o(),u(" ",t==null?null:t.Code,"")}}function rt(e,d){if(e&1&&(i(0,"tr"),x(1,at,2,2,"td",14)(2,ot,2,2,"td",14),i(3,"td",11)(4,"div",15)(5,"a",16),f(6,"img",17),a(),i(7,"div",18),r(8),a()()(),i(9,"td",11),r(10),K(11,"number"),a(),i(12,"td",19),r(13),K(14,"number"),a(),i(15,"td",19)(16,"a",20),f(17,"i",21),i(18,"span",22),r(19,"Edit"),a()()()()),e&2){let t=d.$implicit,n=d.index,l=C(3);o(),p("ngIf",n==0),o(),p("ngIf",n==0),o(3),p("href",t.Url,v)("title",t.Title),o(),p("src",l.getChannelLogo(t.TypeID),v),o(),p("matTooltip",(t==null||t.Name==null?null:t.Name.length)>55?t==null?null:t.Name:""),o(),u(" ",t.Name," "),o(2),_(A(11,12,t.Price)),o(3),_(A(14,14,t.Inventory)),o(3),p("href",l.getHyperlinkSellerCenter(t),v)("ngClass",I(16,nt,t.TypeID==l.channelType.KalCare))("matTooltip",t.TypeID!=l.channelType.KalCare?"Edit this product in Seller Center, inventory changes must be done via DEALPOS":"")}}function lt(e,d){if(e&1&&x(0,rt,20,18,"tr",9),e&2){let t=C().$implicit;p("ngForOf",t==null?null:t.Channel)}}function pt(e,d){if(e&1&&(U(0),x(1,it,9,2,"ng-container",10)(2,lt,1,1,"ng-template",null,0,G),w()),e&2){let t=d.$implicit,n=W(3);o(),p("ngIf",!t.Channel||t.Channel.length<1)("ngIfElse",n)}}var _t=(()=>{class e{constructor(t,n){this.data=t,this.dialogRef=n,this.channelType=c,this.variants=t.variants,this.title=t.title}ngOnInit(){this.initModalConfig()}initModalConfig(){this.modalConfig=new E,this.modalConfig.title=this.data.title,this.modalConfig.bodyScrollable=!0,this.modalConfig.hideCancel=!0,this.modalConfig.hideOk=!0}getChannelLogo(t){return b.getChannelLogoByTypeId(t)}getHyperlinkSellerCenter(t){let n="javascript:void(0)";switch(t.TypeID){case c.Shopee:n=`${s.Shoope}/portal/product/${t.ChannelItemID}`;break;case c.Tiktok:n=`${s.Tiktok}/product/edit/${t.ChannelItemID}`;break;case c.Tokopedia:n=`${s.Tokopedia}/edit-product/${t.ChannelItemID}`;break;case c.WooCommerce:n=`${s.WooCommerce}/wp-admin/post.php?post=${t.ChannelItemID}&action=edit`;break;case c.Lazada:n=`${s.Lazada}/apps/product/publish?productId=${t.ChannelItemID}`;break}return n}static{this.\u0275fac=function(n){return new(n||e)(h(k),h(P))}}static{this.\u0275cmp=y({type:e,selectors:[["app-modal-variant"]],standalone:!1,decls:22,vars:2,consts:[["printChannelModal",""],[3,"onCancel","config"],["content",""],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"text-start","sticky-top"],["matTooltip","Variant from POS",1,"fas","fa-info-circle","ms-1"],["matTooltip","Product and Variant from each Channel",1,"fas","fa-info-circle","ms-1"],[1,"text-start","sticky-top",2,"width","0%"],[4,"ngFor","ngForOf"],[4,"ngIf","ngIfElse"],[1,"text-start"],["colspan","3",1,"text-center"],[1,"my-auto"],["class","text-start",4,"ngIf"],[1,"d-flex"],["target","_blank",1,"me-1",3,"href","title"],[2,"width","20px","height","20px",3,"src"],[1,"text-ellipsis","ps-2",2,"max-width","18vw",3,"matTooltip"],[1,"text-center"],["target","_blank",1,"btn","btn-small","btn-light","px-4","py-2",3,"href","ngClass","matTooltip"],[1,"fa-solid","fa-pencil","me-2",2,"font-size","10px"],[1,"fs-6"]],template:function(n,l){n&1&&(i(0,"modal-material",1),O("onCancel",function(){return l.dialogRef.close()}),i(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr")(5,"th",5),r(6," VARIANT "),i(7,"sup"),f(8,"i",6),a()(),i(9,"th",5),r(10,"SKU"),a(),i(11,"th",5),r(12," PRODUCT "),i(13,"sup"),f(14,"i",7),a()(),i(15,"th",5),r(16,"PRICE"),a(),i(17,"th",8),r(18,"INVENTORY"),a(),f(19,"th",5),a()(),i(20,"tbody"),x(21,pt,4,2,"ng-container",9),a()()()()),n&2&&(p("config",l.modalConfig),o(21),p("ngForOf",l.variants))},dependencies:[S,H,Y,T,V,q],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.sticky-top-thead[_ngcontent-%COMP%] th.sticky-top[_ngcontent-%COMP%]{top:0}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr.sticky-top[_ngcontent-%COMP%]{border:none!important;border-bottom:1px solid!important}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fff!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child:after{border-right:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:before{border-left:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:before{border-top:0px}a.is-disabled[_ngcontent-%COMP%]{color:gray;cursor:default}a.is-disabled[_ngcontent-%COMP%]:hover{text-decoration:none}"]})}}return e})();var mt=e=>({"bg-gradient-warning":e});function dt(e,d){if(e&1&&(i(0,"tr",5)(1,"td"),r(2),a(),i(3,"td",6),r(4),a()()),e&2){let t=d.$implicit;p("matTooltip",t.duplicateMessage),o(2),_(t==null?null:t.Name),o(),p("ngClass",I(4,mt,t.isDuplicate)),o(),_(t!=null&&t.ChannelVariationSKU?t==null?null:t.ChannelVariationSKU:"Not Assigned")}}var It=(()=>{class e{constructor(t,n){this.data=t,this.dialogRef=n,this.variants=L([])}ngOnInit(){this.initModalConfig(),this.initVariants()}initVariants(){let t=this.data?.variants,n={},l=[],D=t.filter(m=>b.IsEmpty(m.ChannelVariationSKU));t.filter(m=>b.IsNotEmpty(m.ChannelVariationSKU)).forEach((m,g,R)=>{n[m.ChannelVariationSKU]=R.filter(M=>M.ChannelVariationSKU===m.ChannelVariationSKU)}),Object.keys(n).forEach(m=>{n[m].length>1&&(n[m]=n[m].map((g,R,M)=>{let F=`SKU ${g.ChannelVariationSKU} is duplicated with variant`;return M.forEach((N,J)=>{N.Name!==g.Name&&(F+=` ${M.length>2?N.Name+(J!==M.length-1?",":""):N.Name}`)}),g.duplicateMessage=F,g.isDuplicate=!0,g})),l.push(...n[m])}),l.push(...D),this.variants.set(l)}initModalConfig(){this.modalConfig=new E,this.modalConfig.title=this.data?.title,this.modalConfig.hideOk=!0,this.modalConfig.hideCancel=!0,this.modalConfig.bodyScrollable=!0}static{this.\u0275fac=function(n){return new(n||e)(h(k),h(P))}}static{this.\u0275cmp=y({type:e,selectors:[["app-modal-variants"]],standalone:!1,decls:12,vars:1,consts:[[3,"onCancel","config"],["content",""],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"sticky-top"],["matTooltipPosition","above",3,"matTooltip"],[3,"ngClass"]],template:function(n,l){n&1&&(i(0,"modal-material",0),O("onCancel",function(){return l.dialogRef.close()}),i(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),r(6,"Variant"),a(),i(7,"th",4),r(8,"SKU"),a()()(),i(9,"tbody"),z(10,dt,5,6,"tr",5,j),a()()()()),n&2&&(p("config",l.modalConfig),o(10),B(l.variants()))},dependencies:[S,T,V],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.sticky-top-thead[_ngcontent-%COMP%] th.sticky-top[_ngcontent-%COMP%]{top:0}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr.sticky-top[_ngcontent-%COMP%]{border:none!important;border-bottom:1px solid!important}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f6f6f6!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child:after{border-right:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:before{border-left:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:before{border-top:0px}"]})}}return e})();export{_t as a,It as b};
|