marketplacepos 6.15.2 → 6.15.3
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-BG2TEGIZ.js → chunk-2IC4UJTX.js} +1 -1
- package/Marketplace/{chunk-SHIOTMJP.js → chunk-2MUZK6NK.js} +1 -1
- package/Marketplace/{chunk-5AMI5FKZ.js → chunk-2W6RQPSX.js} +1 -1
- package/Marketplace/{chunk-BDMSORVY.js → chunk-3BY33BGE.js} +1 -1
- package/Marketplace/{chunk-MSLFPEIM.js → chunk-3FO74BSI.js} +1 -1
- package/Marketplace/{chunk-UXUOTQHD.js → chunk-3FZJVREK.js} +1 -1
- package/Marketplace/{chunk-IOSNHFSC.js → chunk-3OIOPWX2.js} +1 -1
- package/Marketplace/{chunk-4XHNA5C2.js → chunk-5T3JVQAW.js} +1 -1
- package/Marketplace/{chunk-2DJZCCOV.js → chunk-5Z6QKHSC.js} +1 -1
- package/Marketplace/{chunk-BBL5IDM4.js → chunk-AQS2I4RK.js} +1 -1
- package/Marketplace/{chunk-HSFW6BCX.js → chunk-B2W6QRVX.js} +1 -1
- package/Marketplace/{chunk-3656TXPU.js → chunk-B6YUBY76.js} +1 -1
- package/Marketplace/{chunk-TD2ZCT65.js → chunk-D3UWEINK.js} +1 -1
- package/Marketplace/{chunk-6PSPJHVG.js → chunk-D3VIAABI.js} +1 -1
- package/Marketplace/{chunk-ND3E3JXY.js → chunk-D6DJZ3DI.js} +1 -1
- package/Marketplace/{chunk-MS5FB7FV.js → chunk-DGBHRZQR.js} +1 -1
- package/Marketplace/{chunk-VVGTZ46O.js → chunk-DVPYMK4D.js} +1 -1
- package/Marketplace/{chunk-2423HFPY.js → chunk-EW22J5H7.js} +1 -1
- package/Marketplace/{chunk-ISADM5C7.js → chunk-G4KMAVSY.js} +1 -1
- package/Marketplace/{chunk-3UPK5AOH.js → chunk-GDFI5NWI.js} +1 -1
- package/Marketplace/{chunk-XRA2GQ7O.js → chunk-HKV2WMZV.js} +1 -1
- package/Marketplace/{chunk-ITWEKB4F.js → chunk-HOS7X43R.js} +1 -1
- package/Marketplace/{chunk-L67B5QHG.js → chunk-I5DDYXK5.js} +1 -1
- package/Marketplace/{chunk-RZ6GLNUY.js → chunk-IROKRRP6.js} +1 -1
- package/Marketplace/{chunk-I3YXIZDJ.js → chunk-ITVDTOA5.js} +1 -1
- package/Marketplace/{chunk-TLWYHUUO.js → chunk-J3PV4KJL.js} +2 -2
- package/Marketplace/{chunk-LOGLFY77.js → chunk-KZSEEEMR.js} +1 -1
- package/Marketplace/{chunk-JDSWLUNI.js → chunk-LFBBMS4X.js} +1 -1
- package/Marketplace/{chunk-VUNIQEWB.js → chunk-LQFIN647.js} +1 -1
- package/Marketplace/{chunk-ONRCXNH7.js → chunk-LTZWL7XN.js} +1 -1
- package/Marketplace/{chunk-ITOV7TL4.js → chunk-LZFBKDLD.js} +1 -1
- package/Marketplace/{chunk-VRXDV32Q.js → chunk-MH63UCPP.js} +1 -1
- package/Marketplace/{chunk-YRXAFHY5.js → chunk-MRZXWRN2.js} +1 -1
- package/Marketplace/{chunk-JZTTGV4L.js → chunk-N3MRCLU7.js} +1 -1
- package/Marketplace/{chunk-27E3Z5GH.js → chunk-NEH4CGOJ.js} +1 -1
- package/Marketplace/{chunk-5IG5BJ54.js → chunk-NWXS6RL3.js} +1 -1
- package/Marketplace/{chunk-B6ZMX4IH.js → chunk-O4KESYNN.js} +1 -1
- package/Marketplace/{chunk-MOBWKV55.js → chunk-OH2U44NI.js} +1 -1
- package/Marketplace/{chunk-BOGEXKW5.js → chunk-OHX3W4BQ.js} +1 -1
- package/Marketplace/{chunk-PKX4YRZ4.js → chunk-ORHCA6WM.js} +1 -1
- package/Marketplace/{chunk-EOGHANPX.js → chunk-OVZUFYSU.js} +1 -1
- package/Marketplace/{chunk-NJVJP7SN.js → chunk-OZG7ZXR3.js} +1 -1
- package/Marketplace/{chunk-UWXXJN47.js → chunk-QATF6C4R.js} +1 -1
- package/Marketplace/{chunk-D36S23WF.js → chunk-QQ2C5PIP.js} +1 -1
- package/Marketplace/{chunk-TYKTMYLX.js → chunk-R5TBPE6Y.js} +1 -1
- package/Marketplace/{chunk-TMRQFTQQ.js → chunk-R72RNTJA.js} +1 -1
- package/Marketplace/{chunk-5MNZXL7V.js → chunk-SVWYDDRX.js} +1 -1
- package/Marketplace/{chunk-G6KTKEOU.js → chunk-TAR7XWSR.js} +1 -1
- package/Marketplace/{chunk-VZHQPWY7.js → chunk-TRX74FWJ.js} +1 -1
- package/Marketplace/{chunk-4MNXTOKF.js → chunk-USAK63L4.js} +1 -1
- package/Marketplace/{chunk-5NS3HMYX.js → chunk-W64R3U5L.js} +1 -1
- package/Marketplace/{chunk-XFYJD2DA.js → chunk-WPLYGDEQ.js} +1 -1
- package/Marketplace/{chunk-EAWEMKYY.js → chunk-XXN6XSRV.js} +1 -1
- package/Marketplace/{chunk-LNL76CCI.js → chunk-YPDNP5VH.js} +1 -1
- package/Marketplace/{chunk-P3OEO26J.js → chunk-YQZB7IP3.js} +1 -1
- package/Marketplace/{chunk-FXZT2H5P.js → chunk-Z3TJGPZE.js} +1 -1
- package/Marketplace/{chunk-AAXLJBQR.js → chunk-ZI424XUA.js} +1 -1
- package/Marketplace/{chunk-YTGA7YY7.js → chunk-ZWBTBEQK.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-GVW5UY6D.js → main-FL42OUTQ.js} +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as x}from"./chunk-
|
|
1
|
+
import{f as x}from"./chunk-TAR7XWSR.js";import{c as o}from"./chunk-C63EIRLC.js";import{e as k,g as C}from"./chunk-JLWI4DHM.js";import{$b as b,Eb as v,Mc as u,Oc as p,ad as I,bc as D,gc as s,hc as c,ia as h,ic as m,kb as g,mb as l,na as i,pd as f,td as _,xc as d}from"./chunk-32SEKQJM.js";var y=(()=>{class e{constructor(){this.localDataService=i(x),this.baseUrl=this.localDataService.getHostName()}getBaseUrl(r){let t="";return o.IsNotEmpty(r.ID)?t=`https://${this.baseUrl}/menu/Orders/Orders/Customer_Invoice/Info?ID=${r.ID}`:t="/menu/Order/detail",t}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var L=(e,a)=>({Number:e,Outlet:a});function N(e,a){if(e&1&&(c(0,"a",0),u(1),m()),e&2){let r,t=d();s("href",t.baseUrl(),g),l(),p(" ",(r=t.order())==null?null:r.Number," ")}}function S(e,a){if(e&1&&(c(0,"a",1),u(1),m()),e&2){let r,t,n=d();s("routerLink",n.baseUrl())("queryParams",I(3,L,(r=n.order())==null?null:r.Number,(r=n.order())==null?null:r.Outlet)),l(),p(" ",(t=n.order())==null?null:t.Number," ")}}var z=(()=>{class e{constructor(){this.order=_(),this.generateLinkService=i(y),this.baseUrl=f(()=>this.generateLinkService.getBaseUrl(this.order())),this.hasOrderID=f(()=>o.IsNotEmpty(this.order()?.ID))}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=v({type:e,selectors:[["order-link"]],inputs:{order:[1,"order"]},decls:2,vars:1,consts:[["target","_blank",3,"href"],["target","_blank",3,"routerLink","queryParams"]],template:function(t,n){t&1&&b(0,N,2,2,"a",0)(1,S,2,6,"a",1),t&2&&D(n.hasOrderID()?0:1)},dependencies:[C,k],encapsulation:2,changeDetection:0})}}return e})();export{z as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as P}from"./chunk-
|
|
1
|
+
import{b as P}from"./chunk-OVZUFYSU.js";import"./chunk-ACIMXBIC.js";import{b as R}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import"./chunk-TZKJPNYV.js";import"./chunk-3ZLKAFXU.js";import"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import"./chunk-TAR7XWSR.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import"./chunk-C63EIRLC.js";import"./chunk-IOSMSIMJ.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import"./chunk-UB4NDUUT.js";import{b as I,e as M,g as T}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import{B as y,x as b,z as g}from"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{$b as c,Eb as C,Mc as n,Nc as d,Oc as _,Y as h,bc as m,gc as D,hc as i,hd as p,ic as t,id as E,jd as f,mb as o,na as s,t as x,xc as u}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function w(a,v){if(a&1&&(i(0,"div",9)(1,"div",12)(2,"div",6)(3,"h5"),n(4,"Perflog"),t()(),i(5,"div",7)(6,"div",13)(7,"div",14)(8,"pre"),n(9),t()()()()()()),a&2){let e=u();o(9),d(e.Perflog)}}function k(a,v){if(a&1&&(i(0,"div",15)(1,"div",12)(2,"div",6)(3,"h5"),n(4,"StackTrace"),t()(),i(5,"div",7)(6,"div",13)(7,"div",14)(8,"pre"),n(9),t()()()()()()),a&2){let e=u();o(9),d(e==null?null:e.StackTrace)}}function B(a,v){if(a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),n(3,"Back"),t()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),n(11,"General"),t()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),n(17,"Created Date"),t(),i(18,"div")(19,"span"),n(20),p(21,"date"),t()()()(),i(22,"div",9)(23,"div",10)(24,"label"),n(25,"Status"),t(),i(26,"div")(27,"span"),n(28),t()()()()(),i(29,"div",11)(30,"div",9)(31,"div",10)(32,"label"),n(33,"Duration"),t(),i(34,"div")(35,"span"),n(36),p(37,"number"),t()()()(),i(38,"div",9)(39,"div",10)(40,"label"),n(41,"Label"),t(),i(42,"div")(43,"span"),n(44),t()()()()()()()()(),i(45,"div",3)(46,"div",9)(47,"div",12)(48,"div",6)(49,"h5"),n(50,"Message"),t()(),i(51,"div",7)(52,"div",13)(53,"div",14)(54,"pre"),n(55),t()()()()()(),c(56,w,10,1,"div",9),c(57,k,10,1,"div",15),t()()()()),a&2){let e=v;D("headerTitle","Notification "+e.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),o(20),d(f(21,10,e.Created,"dd MMM yyyy HH:mm:ss")),o(8),d(e.StatusLabel),o(8),_("",f(37,13,e.DurationInSecond,"1.1-1")," s"),o(8),d(e.Label),o(11),d(e.Message),o(),m(e!=null&&e.Perflog?56:-1),o(),m(e!=null&&e.StackTrace?57:-1)}}var J=(()=>{class a{constructor(){this.activatedRoute=s(I),this.notificationService=s(P)}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(h(e=>{let l=e.ID;return this.notificationService.getNotificationDetail(l).pipe(x(r=>(r.DurationInSecond=parseInt(r.Duration)/1e3,r)))}))}static{this.\u0275fac=function(l){return new(l||a)}}static{this.\u0275cmp=C({type:a,selectors:[["app-detail"]],decls:2,vars:3,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/products/status/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],[1,"col-sm-12"]],template:function(l,r){if(l&1&&(c(0,B,58,16,"mainpanel",0),p(1,"async")),l&2){let S;m((S=E(1,1,r.notification$))?0:-1,S)}},dependencies:[R,T,M,b,g,y],encapsulation:2,changeDetection:0})}}return a})();export{J as DetailComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as oe}from"./chunk-PXMRNUFQ.js";import{a as le,b as pe}from"./chunk-XC7OQBOZ.js";import{a as me}from"./chunk-
|
|
1
|
+
import{a as oe}from"./chunk-PXMRNUFQ.js";import{a as le,b as pe}from"./chunk-XC7OQBOZ.js";import{a as me}from"./chunk-2IC4UJTX.js";import{a as T}from"./chunk-VMJQJV6R.js";import{a as de}from"./chunk-6PB45QZ6.js";import{a as ae}from"./chunk-QQ2C5PIP.js";import"./chunk-OENELFWU.js";import"./chunk-Q2SYKVKJ.js";import"./chunk-VFDR5NPN.js";import"./chunk-24WQV4GR.js";import{a as re}from"./chunk-VHZANZHX.js";import"./chunk-O25VE5LE.js";import{a as ne}from"./chunk-TEPGHGSB.js";import"./chunk-42BVLTJ4.js";import"./chunk-LU4HPRNF.js";import"./chunk-F5Z5UY7J.js";import"./chunk-EGTLH4SZ.js";import"./chunk-ISJ4LKGT.js";import"./chunk-CO4RYE2Z.js";import"./chunk-R4E2KUA4.js";import"./chunk-TCEDNSUD.js";import"./chunk-ZF5KQSJ4.js";import"./chunk-IRD67CHJ.js";import"./chunk-ACIMXBIC.js";import"./chunk-AKXKYRV4.js";import"./chunk-JE2WUBFR.js";import"./chunk-U5MTAUWW.js";import{b as ie}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import"./chunk-TZKJPNYV.js";import{a as te}from"./chunk-3ZLKAFXU.js";import"./chunk-JU6FJIOF.js";import"./chunk-TF3XKSU7.js";import"./chunk-YJQOSNK6.js";import"./chunk-3LRU75PM.js";import"./chunk-V66GUTDK.js";import"./chunk-7X3SWRGG.js";import"./chunk-D5XV3F5J.js";import"./chunk-GVNUAV72.js";import"./chunk-FWUEMMUS.js";import"./chunk-AYV5TW7O.js";import"./chunk-SW3PJVJ6.js";import"./chunk-2QSN46Q7.js";import"./chunk-LTASTRU4.js";import"./chunk-POKR5NDC.js";import"./chunk-LR2HY6YC.js";import"./chunk-NGMSEBXY.js";import"./chunk-JFGCW6ML.js";import"./chunk-L63YO3M7.js";import{b as ee}from"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import"./chunk-TAR7XWSR.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import"./chunk-C63EIRLC.js";import{A as $,c as Q,h as X,m as Y,o as Z}from"./chunk-IOSMSIMJ.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import"./chunk-UB4NDUUT.js";import"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import{B as K,x as G,z as J}from"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{$b as y,$c as U,Eb as W,Ga as O,Lc as k,Mc as l,Nc as v,Oc as w,Qc as h,Rc as g,Sc as f,Tc as z,Uc as A,Vc as R,Zc as H,_c as j,bc as b,cc as D,ec as I,fc as B,gc as u,hc as t,hd as x,ic as i,id as V,jc as c,jd as q,kb as F,mb as o,na as N,qc as E,ua as d,va as m,vc as M,xc as _}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import{a as P,b as L}from"./chunk-66YHNWRR.js";var se=()=>[],ce=r=>({"td-cell-hover":r});function ue(r,S){if(r&1&&c(0,"variants-dropdown",31),r&2){let e=_().$implicit;u("variants",e==null?null:e.Variants)}}function _e(r,S){if(r&1&&c(0,"variant-with-image",32),r&2){let e=_().$implicit;u("variant",e==null?null:e.Variants[0])}}function he(r,S){if(r&1&&(t(0,"span"),l(1),i()),r&2){let e=_().$implicit;o(),w("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function ge(r,S){if(r&1&&(t(0,"tr")(1,"td")(2,"div",24),c(3,"img",25),x(4,"channelImage"),t(5,"div",26)(6,"div"),l(7),i(),t(8,"small",27)(9,"span"),l(10),i()()()()(),t(11,"td")(12,"div",28)(13,"div"),c(14,"order-link",29),i(),t(15,"small"),l(16),x(17,"date"),i(),c(18,"br"),t(19,"small"),c(20,"i",30),l(21),i()()(),t(22,"td"),y(23,ue,1,1,"variants-dropdown",31)(24,_e,1,1,"variant-with-image",32),i(),t(25,"td",33),l(26),x(27,"number"),i(),t(28,"td")(29,"div",28)(30,"div",34)(31,"span"),l(32),i(),y(33,he,2,1,"span"),i(),t(34,"small"),l(35),i()()()()),r&2){let e=S.$implicit;o(3),u("src",V(4,14,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),o(4),v(e.Outlet),o(3),v(e.ChannelName),o(4),u("order",e),o(2),w(" ",q(17,16,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),o(5),w(" ",e.Customer," "),o(),k(U(21,ce,(e.Variants==null?null:e.Variants.length)>1)),o(),b((e.Variants==null?null:e.Variants.length)>1?23:24),o(3),v(V(27,19,e.Amount)),o(6),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),o(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?33:-1),o(2),w(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function fe(r,S){if(r&1){let e=E();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Outlet"),i(),t(6,"th",20),l(7,"Number"),i(),t(8,"th"),l(9,"Items"),i(),t(10,"th",21),l(11,"Amount"),i(),t(12,"th",22),l(13,"Shipping"),i()()(),t(14,"tbody"),I(15,ge,36,23,"tr",null,D),i()(),t(17,"app-custom-paginator",23),M("next",function(){d(e);let n=_();return m(n.initShippedOrders())})("previous",function(){d(e);let n=_();return m(n.initShippedOrders())}),i()()}if(r&2){let e=_(),p=R(0);o(15),B(p),o(2),u("filter",e.filter())("totaldata",p==null?null:p.length)}}function Se(r,S){r&1&&(t(0,"div",16),c(1,"app-empty-state"),i())}var ke=(()=>{class r{constructor(){this.orderService=N(T),this.filter=O({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(p=>L(P({},p),{From:e})),this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.orderService.getShippedOrders(this.filter())}static{this.\u0275fac=function(p){return new(p||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-shipped"]],features:[H([T])],decls:34,vars:12,consts:[["headerTitle","Shipped","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],["rowCountApi","/api/orders/shippedcount",3,"next","previous","filter","totaldata"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"d-flex","align-items-end","gap-2"]],template:function(p,n){if(p&1){let s=E();z(0),x(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return d(s),m(n.initShippedOrders())}),f("textChange",function(a){return d(s),g(n.filter().Number,a)||(n.filter().Number=a),m(a)}),t(3,"actions")(4,"a",1),c(5,"i",2),t(6,"span"),l(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),l(11,"Channel"),i(),t(12,"app-channel-options-v2",4),f("ngModelChange",function(a){return d(s),g(n.filter().ListChannelID,a)||(n.filter().ListChannelID=a),m(a)}),i()(),t(13,"div",5)(14,"label",3),l(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),f("dateChange",function(a){return d(s),g(n.filter().From,a)||(n.filter().From=a),m(a)}),i()(),t(18,"div")(19,"datepicker",8),f("dateChange",function(a){return d(s),g(n.filter().To,a)||(n.filter().To=a),m(a)}),i()()(),t(20,"div",5)(21,"label",9),l(22,"Page Number"),i(),t(23,"input",10),f("ngModelChange",function(a){return d(s),g(n.filter().PageNumber,a)||(n.filter().PageNumber=a),m(a)}),i()(),t(24,"div",5)(25,"label",9),l(26,"Page Size"),i(),t(27,"input",11),f("ngModelChange",function(a){return d(s),g(n.filter().PageSize,a)||(n.filter().PageSize=a),m(a)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,fe,18,2,"div",15)(33,Se,2,0,"div",16),i()()()()()}if(p&2){let s=A(V(1,8,n.shippedOrders$)||j(11,se));o(2),h("text",n.filter().Number),o(10),u("multiple",!0),h("ngModel",n.filter().ListChannelID),o(5),h("date",n.filter().From),o(2),h("date",n.filter().To),o(4),h("ngModel",n.filter().PageNumber),o(4),h("ngModel",n.filter().PageSize),o(5),b(s.length>0?32:33)}},dependencies:[ie,ne,re,$,Q,Z,X,Y,le,pe,de,te,ee,me,ae,oe,G,J,K],encapsulation:2})}}return r})();export{ke as ShippedComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-66YHNWRR.js";var o=[{path:"",loadComponent(){return import("./chunk-
|
|
1
|
+
import"./chunk-66YHNWRR.js";var o=[{path:"",loadComponent(){return import("./chunk-NWXS6RL3.js").then(t=>t.LoginComponent)},data:{title:"Dealpos x Marketplace"}},{path:"shopee",loadComponent(){return import("./chunk-ISOXSZIS.js").then(t=>t.ShopeeAuthorizedComponent)},data:{title:"Success"}},{path:"tiktok",loadComponent(){return import("./chunk-42WHRMNF.js").then(t=>t.TiktokComponent)},data:{title:"Success"}},{path:"lazada",loadComponent(){return import("./chunk-VHO2MFOQ.js").then(t=>t.LazadaComponent)},data:{title:"Success"}},{path:"shopify",loadComponent(){return import("./chunk-XVTWP76Q.js").then(t=>t.ShopifyAuthorizedComponent)},data:{title:"Success"}}];export{o as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ut}from"./chunk-
|
|
1
|
+
import{a as ut}from"./chunk-QQ2C5PIP.js";import"./chunk-OENELFWU.js";import"./chunk-Q2SYKVKJ.js";import"./chunk-VFDR5NPN.js";import"./chunk-24WQV4GR.js";import{a as mt}from"./chunk-7KG3DC5J.js";import{a as dt}from"./chunk-VHZANZHX.js";import"./chunk-42BVLTJ4.js";import"./chunk-LU4HPRNF.js";import"./chunk-F5Z5UY7J.js";import"./chunk-EGTLH4SZ.js";import"./chunk-ISJ4LKGT.js";import"./chunk-CO4RYE2Z.js";import"./chunk-R4E2KUA4.js";import"./chunk-TCEDNSUD.js";import"./chunk-ZF5KQSJ4.js";import"./chunk-IRD67CHJ.js";import{b as ct}from"./chunk-OVZUFYSU.js";import"./chunk-ACIMXBIC.js";import"./chunk-AKXKYRV4.js";import"./chunk-JE2WUBFR.js";import"./chunk-U5MTAUWW.js";import{e as st}from"./chunk-5TH35CMP.js";import{b as pt}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import"./chunk-TZKJPNYV.js";import"./chunk-3ZLKAFXU.js";import"./chunk-NGMSEBXY.js";import"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import"./chunk-TAR7XWSR.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import{c as et}from"./chunk-C63EIRLC.js";import{A as lt,h as at,m as rt}from"./chunk-IOSMSIMJ.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import{e as it}from"./chunk-UB4NDUUT.js";import{e as nt,g as ot}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import{B as tt,x as Y,z as Z}from"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{$b as h,$c as Q,Eb as k,Ga as R,Lc as W,Mc as r,Nc as S,Oc as D,Qc as j,Rc as q,Sc as A,Tc as J,Uc as U,V as v,Vc as I,Wc as G,_ as F,_c as K,ad as X,bc as g,d as V,dc as H,ec as O,fc as z,gc as f,hc as o,hd as s,ic as a,id as _,jb as $,jc as b,jd as M,kb as B,mb as l,na as N,qc as w,t as C,ua as m,va as d,vc as T,xc as p}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import{a as L,b as P}from"./chunk-66YHNWRR.js";var ft=(i,c)=>({"bg-gradient-danger":i,"bg-gradient-warning":c}),_t=()=>["/menu/products/status/notification/detail"],Ct=i=>({ID:i});function ht(i,c){if(i&1&&(r(0),s(1,"number"),o(2,"span"),r(3,"s"),a()),i&2){let t=p().$implicit;D(" ",M(1,1,t.DurationInSecond,"1.1-1")," ")}}function gt(i,c){i&1&&r(0," - ")}function St(i,c){if(i&1&&(o(0,"tr")(1,"td")(2,"a",12),b(3,"img",13),o(4,"span"),r(5),a()()(),o(6,"td")(7,"b"),r(8),a(),b(9,"div",14),a(),o(10,"td"),h(11,ht,4,4)(12,gt,1,0),a(),o(13,"td"),r(14),a(),o(15,"td"),r(16),s(17,"date"),a()()),i&2){let t=c.$implicit;W(X(15,ft,t.Status==1,t.Status==0)),l(2),f("routerLink",K(18,_t))("queryParams",Q(19,Ct,t.ID)),l(),f("src",G(t.Img),B),l(2),S(t.Name),l(3),S(t.Label),l(),f("innerHTML",t.Message,$),l(2),g(t.DurationInSecond?11:12),l(3),S(t.StatusLabel),l(2),D(" ",M(17,12,t.Created,"dd MMM yyyy HH:mm")," ")}}function xt(i,c){if(i&1){let t=w();o(0,"div",5)(1,"div",15)(2,"app-custom-paginator",16),s(3,"async"),s(4,"async"),T("total",function(){m(t);let n=p(2);return d(n.getRowCount())})("next",function(){m(t);let n=p(2);return d(n.getNotifications())})("previous",function(){m(t);let n=p(2);return d(n.getNotifications())}),a()()()}if(i&2){let t=p(),e=p(),n=I(8);l(2),f("filter",n)("totaldata",t==null?null:t.length)("paginationTotal",_(3,4,e.rowCount$))("hasClicked",_(4,6,e.rowCount$))}}function yt(i,c){i&1&&h(0,xt,5,8,"div",5),i&2&&g(c.length>0?0:-1)}var zt=(()=>{class i{constructor(){this.http=N(it),this.notificationService=N(ct),this.filter=R(new mt),this.destroy$=new V}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(F(this.destroy$)).subscribe(t=>{t.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(t=>{this.filter.set(t.Filter),this.filter.update(e=>P(L({},e),{PageSize:t.Filter.RowCount})),this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let t=this.filter(),e={ChannelID:t.ChannelID,RowCount:t.PageSize,PageNumber:t.PageNumber};this.notifications$=this.http.post("/api/notification/Get",e).pipe(C(n=>n.Data),C(n=>(n=this.setChannelLogoToNotifications(n),n=this.setTimeToSecond(n),n)),v(1))}setTimeToSecond(t){return t=t.map(e=>(e.DurationInSecond=parseInt(e.Duration)/1e3,e)),t}setChannelLogoToNotifications(t){return t=t.map(e=>(e.Img=et.getChannelLogoByTypeId(e.TypeID),e)),t}getRowCount(){let e={ChannelID:this.filter().ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",e).pipe(C(n=>n.Count),v(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=k({type:i,selectors:[["app-notification"]],decls:34,vars:7,consts:[["headerTitle","Product Scan Job","hideSearchBox","true",3,"onSubmit"],["routerLink","/menu/products/status/notificationV2",1,"btn","btn-outline-secondary","btn-lg"],[1,"mb-2"],[3,"ngModelChange","ngModel"],[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"],[3,"class"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(e,n){if(e&1){let u=w();o(0,"mainpanel",0),T("onSubmit",function(){return m(u),d(n.onFilter())}),o(1,"actions")(2,"a",1),r(3," Scan Job V2 "),a()(),o(4,"filters")(5,"div")(6,"h6",2),r(7,"Channel"),a(),J(8),o(9,"app-channel-options-v2",3),A("ngModelChange",function(y){m(u);let E=I(8);return q(E.ChannelID,y)||(E.ChannelID=y),d(y)}),a()()(),o(10,"content")(11,"div",4)(12,"div",5)(13,"div",6)(14,"div",7)(15,"table",8)(16,"thead",9)(17,"tr",10)(18,"th"),r(19,"Channel"),a(),o(20,"th"),r(21,"Process"),a(),o(22,"th"),r(23,"Duration"),a(),o(24,"th"),r(25,"Status"),a(),o(26,"th"),r(27,"Created"),a()()(),o(28,"tbody"),O(29,St,18,21,"tr",11,H),s(31,"async"),a()()()()(),h(32,yt,1,1),s(33,"async"),a()()()}if(e&2){let u;l(8);let x=U(n.filter());l(),j("ngModel",x.ChannelID),l(20),z(_(31,3,n.notifications$)),l(3),g((u=_(33,5,n.notifications$))?32:-1,u)}},dependencies:[lt,at,rt,pt,dt,st,ot,nt,ut,Y,Z,tt],encapsulation:2,changeDetection:0})}}return i})();export{zt as NotificationComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as n}from"./chunk-
|
|
1
|
+
import{a as n}from"./chunk-AQS2I4RK.js";import{a as s}from"./chunk-2SOE3U6K.js";import"./chunk-3ZLKAFXU.js";import"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import"./chunk-TAR7XWSR.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import"./chunk-C63EIRLC.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import"./chunk-UB4NDUUT.js";import{c as m,g as c}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{Eb as i,gc as r,hc as p,ic as l,jc as o,mb as a}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var u=(()=>{class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"},{Title:"Multi Channel Row Comparison",Url:"/menu/price/update"}]}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=i({type:e,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,C){t&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),l()()(),o(4,"router-outlet")),t&2&&(a(3),r("Tabs",C.priceTabs))},dependencies:[s,c,m],encapsulation:2,changeDetection:0})}}return e})();var S=[{path:"",component:u,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-W64R3U5L.js").then(e=>e.PricePosChannelComponent)},canActivate:[n],data:{title:"Global Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-USAK63L4.js").then(e=>e.PriceSingleChannelComponent)},canActivate:[n],data:{title:"Price Single Channel Comparison"}},{path:"update",loadComponent(){return import("./chunk-R5TBPE6Y.js").then(e=>e.PriceUpdateComponent)},canActivate:[n],data:{title:"Multi Channel Row Comparison"}}]}];export{S as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o}from"./chunk-S4BKNFXC.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-
|
|
1
|
+
import{a as o}from"./chunk-S4BKNFXC.js";import"./chunk-4VNQYYVV.js";import{a as n}from"./chunk-AQS2I4RK.js";import"./chunk-TZKJPNYV.js";import"./chunk-2JS4LVCG.js";import"./chunk-TAR7XWSR.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import"./chunk-C63EIRLC.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import"./chunk-UB4NDUUT.js";import{c as a}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{Eb as r,jc as i}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var p=(()=>{class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=r({type:t,selectors:[["app-products"]],decls:1,vars:0,template:function(e,c){e&1&&i(0,"router-outlet")},dependencies:[a],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media(min-width:1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]})}}return t})();var h=[{path:"",component:p,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",loadChildren:()=>import("./chunk-TRX74FWJ.js").then(t=>t.routes),canActivate:[n,o]},{path:"download",loadChildren:()=>import("./chunk-XXN6XSRV.js").then(t=>t.routes),canActivate:[n,o]},{path:"upload",loadComponent:()=>import("./chunk-I5DDYXK5.js").then(t=>t.ProductUploadComponent),data:{title:"Upload Product"},canActivate:[n,o]}]}];export{h as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as oe}from"./chunk-JQCO6BLN.js";import{a as ie}from"./chunk-BPC3UE7K.js";import{a as ne}from"./chunk-6PB45QZ6.js";import"./chunk-7W2KUJR5.js";import"./chunk-KHG2CM5S.js";import{a as te}from"./chunk-TEPGHGSB.js";import"./chunk-ACIMXBIC.js";import{a as Y,b as Z,d as ee}from"./chunk-5TH35CMP.js";import{b as X}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import"./chunk-TZKJPNYV.js";import"./chunk-3ZLKAFXU.js";import"./chunk-JU6FJIOF.js";import"./chunk-TF3XKSU7.js";import"./chunk-YJQOSNK6.js";import"./chunk-3LRU75PM.js";import"./chunk-V66GUTDK.js";import"./chunk-7X3SWRGG.js";import"./chunk-D5XV3F5J.js";import"./chunk-GVNUAV72.js";import"./chunk-FWUEMMUS.js";import"./chunk-AYV5TW7O.js";import"./chunk-SW3PJVJ6.js";import"./chunk-2QSN46Q7.js";import"./chunk-LTASTRU4.js";import"./chunk-POKR5NDC.js";import"./chunk-LR2HY6YC.js";import"./chunk-JFGCW6ML.js";import"./chunk-L63YO3M7.js";import{b as Q}from"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import{h as G}from"./chunk-
|
|
1
|
+
import{a as oe}from"./chunk-JQCO6BLN.js";import{a as ie}from"./chunk-BPC3UE7K.js";import{a as ne}from"./chunk-6PB45QZ6.js";import"./chunk-7W2KUJR5.js";import"./chunk-KHG2CM5S.js";import{a as te}from"./chunk-TEPGHGSB.js";import"./chunk-ACIMXBIC.js";import{a as Y,b as Z,d as ee}from"./chunk-5TH35CMP.js";import{b as X}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import"./chunk-TZKJPNYV.js";import"./chunk-3ZLKAFXU.js";import"./chunk-JU6FJIOF.js";import"./chunk-TF3XKSU7.js";import"./chunk-YJQOSNK6.js";import"./chunk-3LRU75PM.js";import"./chunk-V66GUTDK.js";import"./chunk-7X3SWRGG.js";import"./chunk-D5XV3F5J.js";import"./chunk-GVNUAV72.js";import"./chunk-FWUEMMUS.js";import"./chunk-AYV5TW7O.js";import"./chunk-SW3PJVJ6.js";import"./chunk-2QSN46Q7.js";import"./chunk-LTASTRU4.js";import"./chunk-POKR5NDC.js";import"./chunk-LR2HY6YC.js";import"./chunk-JFGCW6ML.js";import"./chunk-L63YO3M7.js";import{b as Q}from"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import{h as G}from"./chunk-TAR7XWSR.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import"./chunk-C63EIRLC.js";import{A as J,c as H,h as q,m as $,o as j,u as K,v as U}from"./chunk-IOSMSIMJ.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import{e as V}from"./chunk-UB4NDUUT.js";import{b as k,e as z}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import{z as L}from"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{$b as _,$c as W,Eb as N,Ga as c,Jc as I,Kb as E,Lc as B,Mc as l,Nc as b,Oc as v,_c as P,bc as h,dc as O,ec as R,fc as w,gc as s,hc as n,hd as F,ic as t,jc as S,jd as A,kb as x,mb as o,na as f,qc as D,ua as M,va as T,vc as m,xc as C}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import{a as u,b as y}from"./chunk-66YHNWRR.js";var re=()=>["/menu/log/order/detail-user"],le=a=>({ID:a});function de(a,g){if(a&1&&(n(0,"span",22),S(1,"img",23),t(),l(2)),a&2){let e=g.item;o(),s("src",e.Img,x)("alt",e.Name),o(),v(" ",e.Name," ")}}function pe(a,g){a&1&&(n(0,"th")(1,"span",29),l(2," Response Body Warning "),t()())}function se(a,g){a&1&&(n(0,"th")(1,"span",29),l(2," Number Override "),t()())}function me(a,g){if(a&1&&(n(0,"td",26)(1,"span",31),l(2),t()()),a&2){let e=C().$implicit;o(),I("bg-warning",e.responseBodyWarning!=null),o(),b(e.responseBodyWarning)}}function ge(a,g){if(a&1&&(n(0,"td"),l(1),t()),a&2){let e=C().$implicit;o(),v(" ",e.ResponseBodyWarningReference," ")}}function ce(a,g){if(a&1&&(n(0,"tr")(1,"td")(2,"a",30),l(3),F(4,"date"),t()(),n(5,"td"),l(6),t(),n(7,"td"),l(8),t(),n(9,"td"),l(10),t(),n(11,"td",26)(12,"span",31),l(13),t()(),_(14,me,3,3,"td",26),_(15,ge,2,1,"td"),t()),a&2){let e=g.$implicit,d=C(2);o(2),s("routerLink",P(14,re))("queryParams",W(15,le,e.ID)),o(),v(" ",A(4,11,e.Created,"dd MMM yyyy HH:mm:ss")," "),o(3),b(e.ChannelName),o(2),b(e.POSActionTypeString),o(2),b(e.Number),o(2),B(e.ResponseCode===200||e.ResponseCode===202?"bg-success":"bg-warning"),o(),v(" ",e.ResponseCode," "),o(),h(d.responseBodyWarningVisible()?14:-1),o(),h(d.responseBodyWarningVisible()?15:-1)}}function ue(a,g){if(a&1){let e=D();n(0,"div",20)(1,"table",24)(2,"thead")(3,"tr",25)(4,"th"),l(5,"Date"),t(),n(6,"th"),l(7,"Channel"),t(),n(8,"th"),l(9,"Actions"),t(),n(10,"th"),l(11,"Number"),t(),n(12,"th",26)(13,"span",27),l(14," Response Code "),t()(),_(15,pe,3,0,"th"),_(16,se,3,0,"th"),t()(),n(17,"tbody"),R(18,ce,16,17,"tr",null,O),t()(),n(20,"mat-paginator",28),m("page",function(i){M(e);let r=C();return T(r.changePage(i))}),t()()}if(a&2){let e=C();o(15),h(e.responseBodyWarningVisible()?15:-1),o(),h(e.responseBodyWarningVisible()?16:-1),o(2),w(e.Result()),o(2),s("length",e.paginationTotal())("pageSize",e.paginationPageSize())("pageIndex",e.filter().PageNumber==0?0:e.filter().PageNumber-1)}}function _e(a,g){a&1&&(n(0,"div",21),S(1,"app-empty-state"),t())}var Pe=(()=>{class a{constructor(){this.http=f(V),this._RawLogService=f(oe),this.route=f(k),this.authService=f(G),this.Result=c([]),this.filter=c({RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:"",responseBodyWarning:""}),this.paginationTotal=c(0),this.paginationPageSize=c(0),this.Number=c(null),this.channelOptions=c(this.authService.getChannels()),this.ActionTypeList=c(null),this.responseBodyWarningVisible=c(!1)}ngOnInit(){this.route.queryParams.subscribe(e=>{this.responseCode=e.responseCode,this.responseCode!=null?this.Load(e):this.Load()})}Load(e={}){this.http.post("/api/OrdersLoader/Get",e).subscribe(d=>{this.filter.update(i=>u(u({},i),d.Filter)),this.ActionTypeList.set(d.Options.ActionTypeList),this.Get()})}Get(e){this.filter.update(d=>y(u({},d),{Number:e})),this.http.post("/api/Orders/Get",this.filter()).subscribe(d=>{this._RawLogService.Data=d.hits;let i=[];for(let r of d.hits){r._source.log.responseBodyWarning!=null&&this.responseBodyWarningVisible.set(!0);let p={ID:r._id,Created:r._source["@timestamp_received"],shopId:r._source.shopId,MarketTypeString:r._source.log.type,ChannelName:r._source?.channelId!=null?this.channelOptions().find(ae=>ae.ID===r._source?.channelId)?.Name:"",POSActionTypeString:r._source.message,Number:r._source.log.number,ResponseCode:r._source.log.responseCode,responseBodyWarning:r._source.log.responseBodyWarning,ResponseBodyWarningReference:r._source.log.ResponseBodyWarningReference};i.push(p)}this.Result.set(i),this.paginationTotal.set(d.total.value),this.paginationPageSize.set(this.filter().RowCount>this.paginationTotal()?this.paginationTotal():this.filter().RowCount)})}changePage(e){this.filter.update(d=>y(u({},d),{PageNumber:e.pageIndex+1})),this.Get()}updateFilter(e,d){this.filter.update(i=>y(u({},i),{[e]:d}))}static{this.\u0275fac=function(d){return new(d||a)}}static{this.\u0275cmp=N({type:a,selectors:[["app-order"]],decls:42,vars:14,consts:[["headerTitle","Order Log","searchBoxPlaceHolder","Invoice Number..",3,"textChange","onSubmit","text"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],["bindLabel","Value","name","ActionType","bindValue","Key","placeholder","Action Type",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","text","name","StatusCode",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","text","name","responseBodyWarning","list","listresponseBodyWarning",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["id","listresponseBodyWarning"],["value","number-override"],["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"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table","table-hover"],[1,"table-light"],[1,"text-center"],["matTooltip","Http Status Code from developer.dealpos.com."],[3,"page","length","pageSize","pageIndex"],["matTooltip","ex: when payload.Number != response.Number value will be number-override"],[3,"routerLink","queryParams"],[1,"text-white","p-2","rounded","response-desc"]],template:function(d,i){if(d&1&&(n(0,"mainpanel",0),m("textChange",function(p){return i.Number.set(p)})("onSubmit",function(p){return i.Get(p)}),n(1,"filters")(2,"div")(3,"label",1),l(4,"Channel"),t(),n(5,"ng-select",2),m("ngModelChange",function(p){return i.updateFilter("ChannelID",p)}),E(6,de,3,3,"ng-template",3),t()(),n(7,"div",4)(8,"label",1),l(9,"Action"),t(),n(10,"ng-select",5),m("ngModelChange",function(p){return i.updateFilter("ActionType",p)}),t()(),n(11,"div",4)(12,"label",6),l(13,"From/To"),t(),n(14,"div",7)(15,"datepicker",8),m("dateChange",function(p){return i.updateFilter("From",p)}),t()(),n(16,"div")(17,"datepicker",9),m("dateChange",function(p){return i.updateFilter("To",p)}),t()()(),n(18,"div",4)(19,"label",10),l(20,"Response Code"),t(),n(21,"input",11),m("ngModelChange",function(p){return i.updateFilter("StatusCode",p)}),t()(),n(22,"div",4)(23,"label",10),l(24,"Response Body Warning"),t(),n(25,"input",12),m("ngModelChange",function(p){return i.updateFilter("responseBodyWarning",p)}),t(),n(26,"datalist",13),S(27,"option",14),t()(),n(28,"div",4)(29,"label",10),l(30,"Page Number"),t(),n(31,"input",15),m("ngModelChange",function(p){return i.updateFilter("PageNumber",p)}),t()(),n(32,"div",4)(33,"label",10),l(34,"Page Size"),t(),n(35,"input",16),m("ngModelChange",function(p){return i.updateFilter("RowCount",p)}),t()()(),n(36,"content")(37,"div",17)(38,"div",18)(39,"div",19),_(40,ue,21,5,"div",20)(41,_e,2,0,"div",21),t()()()()()),d&2){let r;s("text",i.Number()),o(5),s("clearable",!0)("items",i.channelOptions())("ngModel",i.filter().ChannelID),o(5),s("clearable",!0)("items",i.ActionTypeList())("ngModel",i.filter().ActionType),o(5),s("date",i.filter().From),o(2),s("date",i.filter().To),o(4),s("ngModel",i.filter().StatusCode),o(4),s("ngModel",i.filter().responseBodyWarning),o(6),s("ngModel",i.filter().PageNumber),o(4),s("ngModel",i.filter().RowCount),o(5),h(((r=i.Result())==null?null:r.length)>0?40:41)}},dependencies:[X,ee,J,K,U,H,j,q,$,Y,Z,ne,Q,z,ie,te,L],encapsulation:2,changeDetection:0})}}return a})();export{Pe as OrderComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Nt}from"./chunk-D36S23WF.js";import"./chunk-OENELFWU.js";import"./chunk-Q2SYKVKJ.js";import"./chunk-VFDR5NPN.js";import"./chunk-24WQV4GR.js";import{a as bt}from"./chunk-6M6TTQHG.js";import{a as xt}from"./chunk-7KG3DC5J.js";import{a as Mt}from"./chunk-VHZANZHX.js";import{c as Ot,d as It}from"./chunk-NTWBF7FL.js";import"./chunk-GOGRK2G4.js";import"./chunk-O25VE5LE.js";import{a as wt}from"./chunk-A3AORE6F.js";import"./chunk-3KBCOKLA.js";import{a as St,b as Pt}from"./chunk-67HYWVMS.js";import"./chunk-KHG2CM5S.js";import{a as vt}from"./chunk-TEPGHGSB.js";import{a as yt}from"./chunk-5MNZXL7V.js";import"./chunk-42BVLTJ4.js";import"./chunk-LU4HPRNF.js";import"./chunk-F5Z5UY7J.js";import"./chunk-EGTLH4SZ.js";import"./chunk-ISJ4LKGT.js";import"./chunk-CO4RYE2Z.js";import"./chunk-R4E2KUA4.js";import"./chunk-TCEDNSUD.js";import"./chunk-ZF5KQSJ4.js";import"./chunk-IRD67CHJ.js";import"./chunk-BKR7YPEW.js";import"./chunk-EOGHANPX.js";import"./chunk-ACIMXBIC.js";import"./chunk-AKXKYRV4.js";import"./chunk-JE2WUBFR.js";import"./chunk-U5MTAUWW.js";import"./chunk-5TH35CMP.js";import{b as ft}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import{a as ht,b as ut,c as gt,i as Ct,j as _t}from"./chunk-TZKJPNYV.js";import"./chunk-3ZLKAFXU.js";import"./chunk-7X3SWRGG.js";import"./chunk-D5XV3F5J.js";import"./chunk-GVNUAV72.js";import"./chunk-FWUEMMUS.js";import"./chunk-AYV5TW7O.js";import"./chunk-SW3PJVJ6.js";import"./chunk-2QSN46Q7.js";import"./chunk-LTASTRU4.js";import"./chunk-POKR5NDC.js";import"./chunk-LR2HY6YC.js";import"./chunk-NGMSEBXY.js";import"./chunk-JFGCW6ML.js";import"./chunk-L63YO3M7.js";import{b as mt}from"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import{a as K}from"./chunk-ZSUWHVKX.js";import{h as lt}from"./chunk-G6KTKEOU.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import{a as at}from"./chunk-NSH3XZXC.js";import{a as ot,b as it,c as rt}from"./chunk-SH7PSBLU.js";import{c as _}from"./chunk-C63EIRLC.js";import{A as pt,c as st,h as ct,m as dt}from"./chunk-IOSMSIMJ.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import{b as tt,e as et}from"./chunk-UB4NDUUT.js";import{b as nt}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import{x as X}from"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{$b as D,$c as A,E as L,Eb as I,Ga as f,Jc as j,Kb as G,Mc as g,Nc as R,Oc as q,Qc as x,Rc as b,Sc as N,Tc as U,Uc as z,Vc as v,_c as Y,aa as W,bc as V,cc as H,ec as T,fc as F,gc as h,hc as l,hd as Z,ic as c,id as Q,jc as k,mb as s,na as C,nc as $,oc as J,qc as O,ua as p,va as m,vc as y,xc as u}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import{a as P,b as w}from"./chunk-66YHNWRR.js";function Et(a,S){if(a&1&&(l(0,"tr",5)(1,"td"),g(2),c(),l(3,"td"),g(4),c()()),a&2){let t=S.$implicit;h("matTooltip",t.duplicateMessage),s(2),R(t==null?null:t.Name),s(),j("bg-gradient-warning",t.isDuplicate),s(),R(t!=null&&t.ChannelVariationSKU?t==null?null:t.ChannelVariationSKU:"Not Assigned")}}var Dt=(()=>{class a{constructor(){this.data=C(ut),this.dialogRef=C(ht),this.variants=f([])}ngOnInit(){this.initModalConfig(),this.initVariants()}initVariants(){let t=this.data?.variants,e={},n=[],i=t.filter(r=>_.IsEmpty(r.ChannelVariationSKU));t.filter(r=>_.IsNotEmpty(r.ChannelVariationSKU)).forEach((r,o,d)=>{e[r.ChannelVariationSKU]=d.filter(M=>M.ChannelVariationSKU===r.ChannelVariationSKU)}),Object.keys(e).forEach(r=>{e[r].length>1&&(e[r]=e[r].map((o,d,M)=>{let B=`SKU ${o.ChannelVariationSKU} is duplicated with variant`;return M.forEach((E,Tt)=>{E.Name!==o.Name&&(B+=` ${M.length>2?E.Name+(Tt!==M.length-1?",":""):E.Name}`)}),o.duplicateMessage=B,o.isDuplicate=!0,o})),n.push(...e[r])}),n.push(...i),this.variants.set(n)}initModalConfig(){this.modalConfig=new Ct,this.modalConfig.title=this.data?.title,this.modalConfig.hideOk=!0,this.modalConfig.hideCancel=!0,this.modalConfig.bodyScrollable=!0}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275cmp=I({type:a,selectors:[["app-modal-variants"]],decls:12,vars:1,consts:[[3,"onCancel","config"],["content",""],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"sticky-top"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,n){e&1&&(l(0,"modal-material",0),y("onCancel",function(){return n.dialogRef.close()}),l(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),g(6,"Variant"),c(),l(7,"th",4),g(8,"SKU"),c()()(),l(9,"tbody"),T(10,Et,5,5,"tr",5,H),c()()()()),e&2&&(h("config",n.modalConfig),s(10),F(n.variants()))},dependencies:[_t,mt],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}"],changeDetection:0})}}return a})();var Vt=a=>[a],kt=()=>[],Rt=(a,S)=>S.ID;function Ut(a,S){if(a&1){let t=O();l(0,"button",16),y("click",function(){p(t);let n=u(2);return m(n.onDownloadAllProduct("SELECTED"))}),k(1,"i",17),g(2),c()}if(a&2){let t,e=u(2);s(2),q(" Download (",(t=e.productService.selectedProduct(e.products()))==null?null:t.length,") ")}}function At(a,S){if(a&1&&($(0),D(1,Ut,3,1,"button",15),J()),a&2){let t=u();s(),V(t.productService.hasSelection(t.products())?1:-1)}}function Kt(a,S){if(a&1){let t=O();l(0,"div",12)(1,"app-product-card",18),y("onCheckBoxChange",function(n){let i=p(t).$index,r=u();return m(r.onSelectProduct(n,i))})("onDescEvent",function(){let n=p(t).$index,i=u();return m(i.onShowVariantDetail(n))})("onDownload",function(){let n=p(t).$implicit,i=u();return m(i.onDownloadProduct(n))})("onScan",function(){let n=p(t).$implicit,i=u();return m(i.onScanChannel(n))}),c()()}if(a&2){let t=S.$implicit,e=u();s(),h("showRedirectIcon",!1)("title",t==null?null:t.Name)("image",t==null?null:t.Image)("imageForZoom",t==null?null:t.Image)("code",t==null?null:t.SKU)("description",(t==null||t.Variant==null?null:t.Variant.length)>0?(t==null||t.Variant==null?null:t.Variant.length)+" Variants":null)("downloadButton",!0)("channels",t!=null&&t.Channel?A(10,Vt,t==null?null:t.Channel):Y(12,kt))("showCheckBox",e.hasDownloadRole())("scanButton",!0)}}function Bt(a,S){a&1&&(l(0,"div",13),k(1,"app-empty-state"),c())}function Lt(a,S){if(a&1){let t=O();l(0,"div",14)(1,"div",19)(2,"app-custom-paginator",20),y("total",function(){p(t);let n=u();return m(n.getRowCount())})("next",function(){p(t);let n=u();return m(n.getProducts())})("previous",function(){p(t);let n=u();return m(n.getProducts())}),c()()()}if(a&2){let t,e=u();s(2),h("filter",e.searchFilter())("totaldata",(t=e.products())==null?null:t.length)("paginationTotal",e.rowCount())("hasClicked",e.hasClickRowCount())}}var Oe=(()=>{class a{constructor(){this.http=C(et),this.dialog=C(gt),this.productService=C(yt),this.toastrService=C(tt),this.activateRouter=C(nt),this.authService=C(lt),this.placeholderService=C(Ot),this.permissionService=C(ot),this.channelOptions=f([]),this.searchFilter=f(new xt),this.products=f([]),this.hasClickRowCount=f(!1),this.rowCount=f(0),this.scanProductRole=K.ProductScan,this.downloadProductRole=K.ProductDownload,this.hasDownloadRole=f(!0),this.searchPlaceholder=f("Search ..."),this.channelOptions.set(this.authService.getChannels()),this.permissionService.hasPermission(this.downloadProductRole).then(t=>{this.hasDownloadRole.set(t)})}ngOnInit(){this.activateRouter.queryParams.subscribe(t=>{t.ID?this.initPageLoader(t.ID):this.initPageLoader(_.GuidEMpty)})}initPageLoader(t){this.loader$=this.productService.loader(t).pipe(W(e=>{this.searchFilter.set(e.Filter),this.searchFilter.update(n=>w(P({},n),{PageSize:e.Filter.RowCount})),this.getProducts(),this.initSearchPlaceholder()}))}initSearchPlaceholder(){let t=this.searchFilter();this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(t.SearchType,t.NumberFilterComparator))}getProducts(){let t=this.searchFilter();this.http.post("/api/product/GetProductChannelNotPOS",t).subscribe(e=>{this.products.set(e.Data),this.mapChannelToProduct(),this.setSkuProduct()})}mapChannelToProduct(){let t=this.channelOptions(),e=this.products().map(n=>{let i=t.find(r=>r.ID==n.ChannelID);return n.Channel=i?JSON.parse(JSON.stringify(i)):null,n.Channel&&(n.Channel.Url=n.Url),n});this.products.set(e)}setSkuProduct(){let t=this.products().map(e=>(e?.Variant?.length==0?e.SKU=_.IsNotEmpty(e?.ChannelItemSKU)?e?.ChannelItemSKU:"SKU not assigned":e.SKU=e?.Variant[0]?.ChannelVariationSKU?e?.Variant[0]?.ChannelVariationSKU:"SKU not assigned",e));this.products.set(t)}onSearch(t){this.searchFilter.update(e=>w(P({},e),{text:t})),this.hasClickRowCount.set(!1),this.getProducts(),this.initSearchPlaceholder()}onClearChannelFilter(){this.searchFilter.update(t=>w(P({},t),{ChannelID:_.GuidEMpty}))}onScanAll(){let t=this.searchFilter(),e=this.productService.findChannelById(t.ChannelID,this.channelOptions());this.productService.scanAll(t.ChannelID,t.ScanFull,t.UpdatedProduct,t.Async).subscribe(n=>{t.Async?this.toastrService.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"}):(this.initPageLoader(_.GuidEMpty),this.productService.successToastrScanAllProduct(n,e,!t.UpdatedProduct)),this.searchFilter.update(i=>w(P({},i),{ChannelID:_.GuidEMpty}))})}openScanDialog(){let t=JSON.parse(JSON.stringify(this.searchFilter()));t.ChannelID=_.GuidEMpty,this.dialog.open(wt,{data:{filter:t,channelOptions:this.channelOptions()},width:"600px"}).afterClosed().pipe(L(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.update(i=>w(P({},i),{ChannelID:n.ChannelID,UpdatedProduct:n.UpdatedProduct,ScanFull:n.ScanFull,Async:n.Async})),this.onScanAll()})}onDownloadAllProduct(t){let e;t=="ALL"?e=this.products():e=this.productService.selectedProduct(this.products()),e.length>0&&this.productService.downloadMultipleProduct(e).subscribe({next:()=>{this.getProducts()}})}onSelectProduct(t,e){let n=this.products().map((i,r)=>r===e?w(P({},i),{selected:t}):i);this.products.set(n)}onDownloadProduct(t){confirm(`Are you sure you want to Retrieve product ${t?.Name} from ${t?.Channel.Name} to POS?`)&&this.productService.downloadProduct(t).subscribe({next:()=>{this.getProducts()}})}onScanChannel(t){let e=JSON.parse(JSON.stringify(t));delete e.Channel,this.productService.scanCompareToPos([e]).subscribe(n=>{n.Status?(this.initPageLoader(_.GuidEMpty),this.toastrService.success(`product ${t.Name} have been successfully scanned and synchronized with POS`,"Success")):this.toastrService.error(`Product ${t.Name} is not existed in POS`,"Error")})}onShowVariantDetail(t){let e=this.products()[t],n=e.Variant;n.length>0&&this.dialog.open(Dt,{data:{title:e.Name,variants:n},width:"30%"})}getRowCount(){let t=this.searchFilter(),e={ChannelID:t.ChannelID,text:t.text,HaveSku:parseInt(t.HaveSku),SearchType:t.SearchType,NumberFilterComparator:t.NumberFilterComparator};this.http.post(at.GetNotInPosRowCount,e).subscribe(n=>{this.hasClickRowCount.set(!0),this.rowCount.set(n.Count)})}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275cmp=I({type:a,selectors:[["app-not-in-pos"]],decls:34,vars:19,consts:[["headerTitle","Not in POS","textButton","Search","description","SKU sold in Marketplace but not exist in DEALPOS",3,"onSubmit","searchBoxPlaceHolder"],[4,"ngxPermissionsOnly"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[1,"fw-bold"],["name","haveSKU",1,"form-control","h-100","pt-3","rounded","mt-2",3,"ngModelChange","ngModel"],[1,"me-5",3,"value"],["type","text","name","Item_id","id","Item_id","placeholder","item id",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"container-fluid","mt-3"],[1,"row","mt-8"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row"],["type","button",1,"btn","btn-success","shadow-sm","rounded","ms-3"],["type","button",1,"btn","btn-success","shadow-sm","rounded","ms-3",3,"click"],[1,"fa","fa-download"],[3,"onCheckBoxChange","onDescEvent","onDownload","onScan","showRedirectIcon","title","image","imageForZoom","code","description","downloadButton","channels","showCheckBox","scanButton"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(e,n){if(e&1){let i=O();U(0),Z(1,"async"),l(2,"mainpanel",0),y("onSubmit",function(o){return p(i),m(n.onSearch(o))}),l(3,"actions"),G(4,At,2,1,"ng-container",1),c(),l(5,"filters")(6,"div",2)(7,"label",3),g(8,"Channel"),c(),U(9),l(10,"app-channel-options-v2",4),N("ngModelChange",function(o){p(i);let d=v(9);return b(d.ChannelID,o)||(d.ChannelID=o),m(o)}),c()(),l(11,"div",2)(12,"label",5),g(13,"SKU Assigned"),c(),l(14,"mat-radio-group",6),N("ngModelChange",function(o){p(i);let d=v(9);return b(d.HaveSku,o)||(d.HaveSku=o),m(o)}),l(15,"mat-radio-button",7),g(16," All "),c(),l(17,"mat-radio-button",7),g(18," Yes "),c(),l(19,"mat-radio-button",7),g(20," No "),c()()(),l(21,"div",2)(22,"label",5),g(23,"Item ID"),c(),l(24,"input",8),N("ngModelChange",function(o){p(i);let d=v(9);return b(d.Item_id,o)||(d.Item_id=o),m(o)}),c()(),l(25,"div")(26,"filter-query-type",9),N("numberFilterComparatorChange",function(o){p(i);let d=v(9);return b(d.NumberFilterComparator,o)||(d.NumberFilterComparator=o),m(o)})("searchTypeChange",function(o){p(i);let d=v(9);return b(d.SearchType,o)||(d.SearchType=o),m(o)}),c()()(),l(27,"content")(28,"div",10)(29,"div",11),T(30,Kt,2,13,"div",12,Rt),D(32,Bt,2,0,"div",13),c(),D(33,Lt,3,4,"div",14),c()()()}if(e&2){let i,r=Q(1,14,n.loader$);s(2),h("searchBoxPlaceHolder",n.searchPlaceholder()),s(2),h("ngxPermissionsOnly",A(17,Vt,n.downloadProductRole)),s(5);let o=z(n.searchFilter());s(),x("ngModel",o.ChannelID),s(4),x("ngModel",o.HaveSku),s(),h("value",0),s(2),h("value",1),s(2),h("value",2),s(5),x("ngModel",o.Item_id),s(2),h("numberFilterComparatorOptions",r==null||r.Options==null?null:r.Options.SearchComparatorTypeOptions),x("numberFilterComparator",o.NumberFilterComparator),h("searchTypeOptions",r==null||r.Options==null?null:r.Options.SearchSKUOnlyOrSKUNameOptions),x("searchType",o.SearchType),s(4),F(n.products()),s(2),V(n.products().length==0?32:-1),s(),V(((i=n.products())==null?null:i.length)>0?33:-1)}},dependencies:[ft,rt,it,Nt,pt,st,ct,dt,St,Pt,It,bt,vt,Mt,X],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media(min-width:1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}.itemTitle[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0})}}return a})();export{Oe as NotInPosComponent};
|
|
1
|
+
import{a as Nt}from"./chunk-QQ2C5PIP.js";import"./chunk-OENELFWU.js";import"./chunk-Q2SYKVKJ.js";import"./chunk-VFDR5NPN.js";import"./chunk-24WQV4GR.js";import{a as bt}from"./chunk-6M6TTQHG.js";import{a as xt}from"./chunk-7KG3DC5J.js";import{a as Mt}from"./chunk-VHZANZHX.js";import{c as Ot,d as It}from"./chunk-NTWBF7FL.js";import"./chunk-GOGRK2G4.js";import"./chunk-O25VE5LE.js";import{a as wt}from"./chunk-A3AORE6F.js";import"./chunk-3KBCOKLA.js";import{a as St,b as Pt}from"./chunk-67HYWVMS.js";import"./chunk-KHG2CM5S.js";import{a as vt}from"./chunk-TEPGHGSB.js";import{a as yt}from"./chunk-SVWYDDRX.js";import"./chunk-42BVLTJ4.js";import"./chunk-LU4HPRNF.js";import"./chunk-F5Z5UY7J.js";import"./chunk-EGTLH4SZ.js";import"./chunk-ISJ4LKGT.js";import"./chunk-CO4RYE2Z.js";import"./chunk-R4E2KUA4.js";import"./chunk-TCEDNSUD.js";import"./chunk-ZF5KQSJ4.js";import"./chunk-IRD67CHJ.js";import"./chunk-BKR7YPEW.js";import"./chunk-OVZUFYSU.js";import"./chunk-ACIMXBIC.js";import"./chunk-AKXKYRV4.js";import"./chunk-JE2WUBFR.js";import"./chunk-U5MTAUWW.js";import"./chunk-5TH35CMP.js";import{b as ft}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import{a as ht,b as ut,c as gt,i as Ct,j as _t}from"./chunk-TZKJPNYV.js";import"./chunk-3ZLKAFXU.js";import"./chunk-7X3SWRGG.js";import"./chunk-D5XV3F5J.js";import"./chunk-GVNUAV72.js";import"./chunk-FWUEMMUS.js";import"./chunk-AYV5TW7O.js";import"./chunk-SW3PJVJ6.js";import"./chunk-2QSN46Q7.js";import"./chunk-LTASTRU4.js";import"./chunk-POKR5NDC.js";import"./chunk-LR2HY6YC.js";import"./chunk-NGMSEBXY.js";import"./chunk-JFGCW6ML.js";import"./chunk-L63YO3M7.js";import{b as mt}from"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import{a as K}from"./chunk-ZSUWHVKX.js";import{h as lt}from"./chunk-TAR7XWSR.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import{a as at}from"./chunk-NSH3XZXC.js";import{a as ot,b as it,c as rt}from"./chunk-SH7PSBLU.js";import{c as _}from"./chunk-C63EIRLC.js";import{A as pt,c as st,h as ct,m as dt}from"./chunk-IOSMSIMJ.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import{b as tt,e as et}from"./chunk-UB4NDUUT.js";import{b as nt}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import{x as X}from"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{$b as D,$c as A,E as L,Eb as I,Ga as f,Jc as j,Kb as G,Mc as g,Nc as R,Oc as q,Qc as x,Rc as b,Sc as N,Tc as U,Uc as z,Vc as v,_c as Y,aa as W,bc as V,cc as H,ec as T,fc as F,gc as h,hc as l,hd as Z,ic as c,id as Q,jc as k,mb as s,na as C,nc as $,oc as J,qc as O,ua as p,va as m,vc as y,xc as u}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import{a as P,b as w}from"./chunk-66YHNWRR.js";function Et(a,S){if(a&1&&(l(0,"tr",5)(1,"td"),g(2),c(),l(3,"td"),g(4),c()()),a&2){let t=S.$implicit;h("matTooltip",t.duplicateMessage),s(2),R(t==null?null:t.Name),s(),j("bg-gradient-warning",t.isDuplicate),s(),R(t!=null&&t.ChannelVariationSKU?t==null?null:t.ChannelVariationSKU:"Not Assigned")}}var Dt=(()=>{class a{constructor(){this.data=C(ut),this.dialogRef=C(ht),this.variants=f([])}ngOnInit(){this.initModalConfig(),this.initVariants()}initVariants(){let t=this.data?.variants,e={},n=[],i=t.filter(r=>_.IsEmpty(r.ChannelVariationSKU));t.filter(r=>_.IsNotEmpty(r.ChannelVariationSKU)).forEach((r,o,d)=>{e[r.ChannelVariationSKU]=d.filter(M=>M.ChannelVariationSKU===r.ChannelVariationSKU)}),Object.keys(e).forEach(r=>{e[r].length>1&&(e[r]=e[r].map((o,d,M)=>{let B=`SKU ${o.ChannelVariationSKU} is duplicated with variant`;return M.forEach((E,Tt)=>{E.Name!==o.Name&&(B+=` ${M.length>2?E.Name+(Tt!==M.length-1?",":""):E.Name}`)}),o.duplicateMessage=B,o.isDuplicate=!0,o})),n.push(...e[r])}),n.push(...i),this.variants.set(n)}initModalConfig(){this.modalConfig=new Ct,this.modalConfig.title=this.data?.title,this.modalConfig.hideOk=!0,this.modalConfig.hideCancel=!0,this.modalConfig.bodyScrollable=!0}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275cmp=I({type:a,selectors:[["app-modal-variants"]],decls:12,vars:1,consts:[[3,"onCancel","config"],["content",""],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"sticky-top"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,n){e&1&&(l(0,"modal-material",0),y("onCancel",function(){return n.dialogRef.close()}),l(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),g(6,"Variant"),c(),l(7,"th",4),g(8,"SKU"),c()()(),l(9,"tbody"),T(10,Et,5,5,"tr",5,H),c()()()()),e&2&&(h("config",n.modalConfig),s(10),F(n.variants()))},dependencies:[_t,mt],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}"],changeDetection:0})}}return a})();var Vt=a=>[a],kt=()=>[],Rt=(a,S)=>S.ID;function Ut(a,S){if(a&1){let t=O();l(0,"button",16),y("click",function(){p(t);let n=u(2);return m(n.onDownloadAllProduct("SELECTED"))}),k(1,"i",17),g(2),c()}if(a&2){let t,e=u(2);s(2),q(" Download (",(t=e.productService.selectedProduct(e.products()))==null?null:t.length,") ")}}function At(a,S){if(a&1&&($(0),D(1,Ut,3,1,"button",15),J()),a&2){let t=u();s(),V(t.productService.hasSelection(t.products())?1:-1)}}function Kt(a,S){if(a&1){let t=O();l(0,"div",12)(1,"app-product-card",18),y("onCheckBoxChange",function(n){let i=p(t).$index,r=u();return m(r.onSelectProduct(n,i))})("onDescEvent",function(){let n=p(t).$index,i=u();return m(i.onShowVariantDetail(n))})("onDownload",function(){let n=p(t).$implicit,i=u();return m(i.onDownloadProduct(n))})("onScan",function(){let n=p(t).$implicit,i=u();return m(i.onScanChannel(n))}),c()()}if(a&2){let t=S.$implicit,e=u();s(),h("showRedirectIcon",!1)("title",t==null?null:t.Name)("image",t==null?null:t.Image)("imageForZoom",t==null?null:t.Image)("code",t==null?null:t.SKU)("description",(t==null||t.Variant==null?null:t.Variant.length)>0?(t==null||t.Variant==null?null:t.Variant.length)+" Variants":null)("downloadButton",!0)("channels",t!=null&&t.Channel?A(10,Vt,t==null?null:t.Channel):Y(12,kt))("showCheckBox",e.hasDownloadRole())("scanButton",!0)}}function Bt(a,S){a&1&&(l(0,"div",13),k(1,"app-empty-state"),c())}function Lt(a,S){if(a&1){let t=O();l(0,"div",14)(1,"div",19)(2,"app-custom-paginator",20),y("total",function(){p(t);let n=u();return m(n.getRowCount())})("next",function(){p(t);let n=u();return m(n.getProducts())})("previous",function(){p(t);let n=u();return m(n.getProducts())}),c()()()}if(a&2){let t,e=u();s(2),h("filter",e.searchFilter())("totaldata",(t=e.products())==null?null:t.length)("paginationTotal",e.rowCount())("hasClicked",e.hasClickRowCount())}}var Oe=(()=>{class a{constructor(){this.http=C(et),this.dialog=C(gt),this.productService=C(yt),this.toastrService=C(tt),this.activateRouter=C(nt),this.authService=C(lt),this.placeholderService=C(Ot),this.permissionService=C(ot),this.channelOptions=f([]),this.searchFilter=f(new xt),this.products=f([]),this.hasClickRowCount=f(!1),this.rowCount=f(0),this.scanProductRole=K.ProductScan,this.downloadProductRole=K.ProductDownload,this.hasDownloadRole=f(!0),this.searchPlaceholder=f("Search ..."),this.channelOptions.set(this.authService.getChannels()),this.permissionService.hasPermission(this.downloadProductRole).then(t=>{this.hasDownloadRole.set(t)})}ngOnInit(){this.activateRouter.queryParams.subscribe(t=>{t.ID?this.initPageLoader(t.ID):this.initPageLoader(_.GuidEMpty)})}initPageLoader(t){this.loader$=this.productService.loader(t).pipe(W(e=>{this.searchFilter.set(e.Filter),this.searchFilter.update(n=>w(P({},n),{PageSize:e.Filter.RowCount})),this.getProducts(),this.initSearchPlaceholder()}))}initSearchPlaceholder(){let t=this.searchFilter();this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(t.SearchType,t.NumberFilterComparator))}getProducts(){let t=this.searchFilter();this.http.post("/api/product/GetProductChannelNotPOS",t).subscribe(e=>{this.products.set(e.Data),this.mapChannelToProduct(),this.setSkuProduct()})}mapChannelToProduct(){let t=this.channelOptions(),e=this.products().map(n=>{let i=t.find(r=>r.ID==n.ChannelID);return n.Channel=i?JSON.parse(JSON.stringify(i)):null,n.Channel&&(n.Channel.Url=n.Url),n});this.products.set(e)}setSkuProduct(){let t=this.products().map(e=>(e?.Variant?.length==0?e.SKU=_.IsNotEmpty(e?.ChannelItemSKU)?e?.ChannelItemSKU:"SKU not assigned":e.SKU=e?.Variant[0]?.ChannelVariationSKU?e?.Variant[0]?.ChannelVariationSKU:"SKU not assigned",e));this.products.set(t)}onSearch(t){this.searchFilter.update(e=>w(P({},e),{text:t})),this.hasClickRowCount.set(!1),this.getProducts(),this.initSearchPlaceholder()}onClearChannelFilter(){this.searchFilter.update(t=>w(P({},t),{ChannelID:_.GuidEMpty}))}onScanAll(){let t=this.searchFilter(),e=this.productService.findChannelById(t.ChannelID,this.channelOptions());this.productService.scanAll(t.ChannelID,t.ScanFull,t.UpdatedProduct,t.Async).subscribe(n=>{t.Async?this.toastrService.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"}):(this.initPageLoader(_.GuidEMpty),this.productService.successToastrScanAllProduct(n,e,!t.UpdatedProduct)),this.searchFilter.update(i=>w(P({},i),{ChannelID:_.GuidEMpty}))})}openScanDialog(){let t=JSON.parse(JSON.stringify(this.searchFilter()));t.ChannelID=_.GuidEMpty,this.dialog.open(wt,{data:{filter:t,channelOptions:this.channelOptions()},width:"600px"}).afterClosed().pipe(L(n=>_.IsNotEmpty(n))).subscribe(n=>{this.searchFilter.update(i=>w(P({},i),{ChannelID:n.ChannelID,UpdatedProduct:n.UpdatedProduct,ScanFull:n.ScanFull,Async:n.Async})),this.onScanAll()})}onDownloadAllProduct(t){let e;t=="ALL"?e=this.products():e=this.productService.selectedProduct(this.products()),e.length>0&&this.productService.downloadMultipleProduct(e).subscribe({next:()=>{this.getProducts()}})}onSelectProduct(t,e){let n=this.products().map((i,r)=>r===e?w(P({},i),{selected:t}):i);this.products.set(n)}onDownloadProduct(t){confirm(`Are you sure you want to Retrieve product ${t?.Name} from ${t?.Channel.Name} to POS?`)&&this.productService.downloadProduct(t).subscribe({next:()=>{this.getProducts()}})}onScanChannel(t){let e=JSON.parse(JSON.stringify(t));delete e.Channel,this.productService.scanCompareToPos([e]).subscribe(n=>{n.Status?(this.initPageLoader(_.GuidEMpty),this.toastrService.success(`product ${t.Name} have been successfully scanned and synchronized with POS`,"Success")):this.toastrService.error(`Product ${t.Name} is not existed in POS`,"Error")})}onShowVariantDetail(t){let e=this.products()[t],n=e.Variant;n.length>0&&this.dialog.open(Dt,{data:{title:e.Name,variants:n},width:"30%"})}getRowCount(){let t=this.searchFilter(),e={ChannelID:t.ChannelID,text:t.text,HaveSku:parseInt(t.HaveSku),SearchType:t.SearchType,NumberFilterComparator:t.NumberFilterComparator};this.http.post(at.GetNotInPosRowCount,e).subscribe(n=>{this.hasClickRowCount.set(!0),this.rowCount.set(n.Count)})}static{this.\u0275fac=function(e){return new(e||a)}}static{this.\u0275cmp=I({type:a,selectors:[["app-not-in-pos"]],decls:34,vars:19,consts:[["headerTitle","Not in POS","textButton","Search","description","SKU sold in Marketplace but not exist in DEALPOS",3,"onSubmit","searchBoxPlaceHolder"],[4,"ngxPermissionsOnly"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[1,"fw-bold"],["name","haveSKU",1,"form-control","h-100","pt-3","rounded","mt-2",3,"ngModelChange","ngModel"],[1,"me-5",3,"value"],["type","text","name","Item_id","id","Item_id","placeholder","item id",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"container-fluid","mt-3"],[1,"row","mt-8"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"row"],["type","button",1,"btn","btn-success","shadow-sm","rounded","ms-3"],["type","button",1,"btn","btn-success","shadow-sm","rounded","ms-3",3,"click"],[1,"fa","fa-download"],[3,"onCheckBoxChange","onDescEvent","onDownload","onScan","showRedirectIcon","title","image","imageForZoom","code","description","downloadButton","channels","showCheckBox","scanButton"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(e,n){if(e&1){let i=O();U(0),Z(1,"async"),l(2,"mainpanel",0),y("onSubmit",function(o){return p(i),m(n.onSearch(o))}),l(3,"actions"),G(4,At,2,1,"ng-container",1),c(),l(5,"filters")(6,"div",2)(7,"label",3),g(8,"Channel"),c(),U(9),l(10,"app-channel-options-v2",4),N("ngModelChange",function(o){p(i);let d=v(9);return b(d.ChannelID,o)||(d.ChannelID=o),m(o)}),c()(),l(11,"div",2)(12,"label",5),g(13,"SKU Assigned"),c(),l(14,"mat-radio-group",6),N("ngModelChange",function(o){p(i);let d=v(9);return b(d.HaveSku,o)||(d.HaveSku=o),m(o)}),l(15,"mat-radio-button",7),g(16," All "),c(),l(17,"mat-radio-button",7),g(18," Yes "),c(),l(19,"mat-radio-button",7),g(20," No "),c()()(),l(21,"div",2)(22,"label",5),g(23,"Item ID"),c(),l(24,"input",8),N("ngModelChange",function(o){p(i);let d=v(9);return b(d.Item_id,o)||(d.Item_id=o),m(o)}),c()(),l(25,"div")(26,"filter-query-type",9),N("numberFilterComparatorChange",function(o){p(i);let d=v(9);return b(d.NumberFilterComparator,o)||(d.NumberFilterComparator=o),m(o)})("searchTypeChange",function(o){p(i);let d=v(9);return b(d.SearchType,o)||(d.SearchType=o),m(o)}),c()()(),l(27,"content")(28,"div",10)(29,"div",11),T(30,Kt,2,13,"div",12,Rt),D(32,Bt,2,0,"div",13),c(),D(33,Lt,3,4,"div",14),c()()()}if(e&2){let i,r=Q(1,14,n.loader$);s(2),h("searchBoxPlaceHolder",n.searchPlaceholder()),s(2),h("ngxPermissionsOnly",A(17,Vt,n.downloadProductRole)),s(5);let o=z(n.searchFilter());s(),x("ngModel",o.ChannelID),s(4),x("ngModel",o.HaveSku),s(),h("value",0),s(2),h("value",1),s(2),h("value",2),s(5),x("ngModel",o.Item_id),s(2),h("numberFilterComparatorOptions",r==null||r.Options==null?null:r.Options.SearchComparatorTypeOptions),x("numberFilterComparator",o.NumberFilterComparator),h("searchTypeOptions",r==null||r.Options==null?null:r.Options.SearchSKUOnlyOrSKUNameOptions),x("searchType",o.SearchType),s(4),F(n.products()),s(2),V(n.products().length==0?32:-1),s(),V(((i=n.products())==null?null:i.length)>0?33:-1)}},dependencies:[ft,rt,it,Nt,pt,st,ct,dt,St,Pt,It,bt,vt,Mt,X],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media(min-width:1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}.itemTitle[_ngcontent-%COMP%]{cursor:pointer}"],changeDetection:0})}}return a})();export{Oe as NotInPosComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as u}from"./chunk-
|
|
1
|
+
import{h as u}from"./chunk-TAR7XWSR.js";import{a as p}from"./chunk-SH7PSBLU.js";import{b as c}from"./chunk-UB4NDUUT.js";import{d as l}from"./chunk-JLWI4DHM.js";import{ia as a,ma as t}from"./chunk-32SEKQJM.js";var S=(()=>{class e{constructor(o,i,r,s){this.toastr=o,this.authService=i,this.router=r,this.permissionService=s}canActivate(o,i){let r=JSON.parse(window.localStorage.getItem("user")),s=new Date,n=!1;if(r!=null){let h=new Date(r?.Token?.expiredAt);s<h?n=!0:(this.authService.logout(),this.onTokenExpired())}else this.router.navigate([""]),this.onTokenExpired();return n}onTokenExpired(){this.toastr.error("Your session has expired. Please login again.","Session Expired")}static{this.\u0275fac=function(i){return new(i||e)(t(c),t(u),t(l),t(p))}}static{this.\u0275prov=a({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();export{S as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as te}from"./chunk-VMJQJV6R.js";import{a as Ye,b as He,c as Ke,e as Qe,f as Ze,g as qe}from"./chunk-UDRFFKP5.js";import{a as Je,b as Xe,c as et}from"./chunk-B32YXHS3.js";import"./chunk-RW5XHGSL.js";import"./chunk-UPP7PYWV.js";import"./chunk-XQP3JKDZ.js";import{a as Re,b as Be,c as $e}from"./chunk-67HYWVMS.js";import"./chunk-KHG2CM5S.js";import{a as Le}from"./chunk-5MNZXL7V.js";import"./chunk-LU4HPRNF.js";import"./chunk-CO4RYE2Z.js";import"./chunk-R4E2KUA4.js";import"./chunk-TCEDNSUD.js";import"./chunk-ZF5KQSJ4.js";import"./chunk-IRD67CHJ.js";import"./chunk-EOGHANPX.js";import"./chunk-ACIMXBIC.js";import"./chunk-JE2WUBFR.js";import"./chunk-U5MTAUWW.js";import{c as Ve,d as Fe,e as Oe}from"./chunk-5TH35CMP.js";import{b as Ne}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import"./chunk-TZKJPNYV.js";import{a as X}from"./chunk-3ZLKAFXU.js";import"./chunk-DHKYJUQU.js";import{f as We,g as ze,h as Ue,i as Ge,j as je}from"./chunk-TF3XKSU7.js";import"./chunk-YJQOSNK6.js";import"./chunk-V66GUTDK.js";import{e as Ae}from"./chunk-7X3SWRGG.js";import"./chunk-D5XV3F5J.js";import"./chunk-GVNUAV72.js";import"./chunk-AYV5TW7O.js";import"./chunk-SW3PJVJ6.js";import"./chunk-2QSN46Q7.js";import"./chunk-LTASTRU4.js";import"./chunk-POKR5NDC.js";import"./chunk-LR2HY6YC.js";import{qa as Me}from"./chunk-NGMSEBXY.js";import"./chunk-JFGCW6ML.js";import"./chunk-L63YO3M7.js";import{b as Ie}from"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import{h as Q}from"./chunk-G6KTKEOU.js";import{a as Te}from"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import{a as K}from"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import{b as H,c as y}from"./chunk-C63EIRLC.js";import{A as J,b as Ee,c as Pe,h as Z,m as q,x as ke}from"./chunk-IOSMSIMJ.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import{b as ye,e as xe}from"./chunk-UB4NDUUT.js";import{g as be}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import{x as De,z as $}from"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{$b as w,Bc as pe,Ca as O,Cc as me,Dc as ce,Eb as E,Ga as p,Hc as k,Ja as U,Jc as G,Kb as W,Lc as R,Mc as d,Nc as I,Oc as D,Qc as ue,Rc as he,Sc as fe,V as re,Wc as ge,Yc as _e,Zc as j,_c as we,aa as le,ad as B,bc as C,dc as N,ec as V,fc as F,gc as c,hc as a,hd as Y,ia as de,ic as o,id as Ce,jc as v,jd as ve,k as oe,kb as se,kc as x,lc as M,mb as l,mc as ee,na as S,qc as b,sd as Se,t as ae,td as P,ua as f,va as g,vc as h,xc as _}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import{a as ne,b as ie}from"./chunk-66YHNWRR.js";function at(t,s){if(t&1&&(x(0,"tr")(1,"td"),d(2),M(),x(3,"td"),d(4),M(),x(5,"td"),d(6),M(),x(7,"td"),d(8),M()()),t&2){let e=s.$implicit,i=s.$index;G("over-due",e.Exception),l(2),I(i+1),l(2),I(e.Number),l(2),I(e.Status),l(2),I(e.Exception)}}function rt(t,s){if(t&1&&V(0,at,9,6,"tr",6,N),t&2){let e,i=_();F((e=i.downloadResult())==null?null:e.Body)}}function lt(t,s){t&1&&(x(0,"tr",5)(1,"td",7)(2,"div",8),ee(3,"i",9),M(),x(4,"h4",10),d(5," There is no order to processed "),M()()())}var tt=(()=>{class t{constructor(){this.downloadResult=P()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["complete-step"]],inputs:{downloadResult:[1,"downloadResult"]},decls:15,vars:1,consts:[[1,"row","pt-2"],[1,"col-md-12"],[1,"table"],[1,"thead-light"],["width","1%"],[1,"text-center"],[3,"over-due"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(i,n){if(i&1&&(x(0,"div",0)(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr"),ee(5,"th",4),x(6,"th"),d(7,"Order Number"),M(),x(8,"th"),d(9,"Status"),M(),x(10,"th"),d(11,"Exception"),M()()(),x(12,"tbody"),w(13,rt,2,0)(14,lt,6,0,"tr",5),M()()()()),i&2){let r;l(13),C(((r=n.downloadResult())==null||r.Body==null?null:r.Body.length)>0?13:14)}},encapsulation:2,changeDetection:0})}}return t})();var st=()=>({standalone:!0}),nt=(()=>{class t{constructor(){this.datePipe=S($),this.fullWidth=P(!1),this.timeChange=new O}ngOnInit(){}onTimeChange(e){let i=null;e&&(i=this.datePipe.transform(e,"HH:mm")),this.timeChange.emit(i),this.onTimePickerChange()}onShowCalendar(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="inside")}}onTimePickerChange(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="outside")}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:[1,"fullWidth"]},outputs:{timeChange:"timeChange"},decls:4,vars:7,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body",3,"ngModelChange","onSelect","baseZIndex","ngModel","timeOnly","ngModelOptions"],["size","small","label","Close",3,"click"]],template:function(i,n){if(i&1){let r=b();a(0,"p-datepicker",1,0),fe("ngModelChange",function(m){return f(r),he(n.time,m)||(n.time=m),g(m)}),h("ngModelChange",function(m){return f(r),g(n.onTimeChange(m))})("onSelect",function(){return f(r),g(n.onShowCalendar())}),a(2,"p-footer")(3,"p-button",2),h("click",function(){return f(r),k(1).hideOverlay(),g(n.onShowCalendar())}),o()()()}i&2&&(G("full-width",n.fullWidth()),c("baseZIndex",1100),ue("ngModel",n.time),c("timeOnly",!0)("ngModelOptions",we(6,st)))},dependencies:[J,Z,q,et,Xe,Je,Me],styles:["p-datepicker span.p-datepicker.custom-height{height:44px;width:70px} p-datepicker.full-width span.p-datepicker.custom-height{height:44px;width:100%!important}"],changeDetection:0})}}return t})();var A=(()=>{class t{constructor(){this.httpService=S(xe),this.toastr=S(ye),this.datePipe=S($)}gerChannelDetailById(e){return this.httpService.post(K.GetChannelDetail,{ID:e})}getOrderPreview(e){return this.httpService.post(K.GetOrderPreviewV2,e)}getDownloadOrder(e){return this.httpService.post(K.GetDownloadOrderV2,e)}onPreviewOrder(e){return this.validateDatePreview(e)?this.getOrderPreview(e).pipe(le(i=>{i.Data?.length===0&&this.toastrEmptyPreview(e)})):oe}toastrEmptyPreview(e){let i=this.datePipe.transform(e.From,"dd MMM yyyy"),n=this.datePipe.transform(e.To,"dd MMM yyyy"),r=e.TimeFrom?e.TimeFrom:"",u=e.TimeTo?e.TimeTo:"";this.toastr.info(`There is no orders from ${i} ${r} to ${n} ${u}!`,"No Orders!")}validateDatePreview(e){let i=!0;return e.downloadType==!0?y.getDaysDiff(e?.From,e?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),i=!1):y.getDaysDiff(e?.From,e?.To)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Warning"),i=!1),i}getDateTitle(e,i){let n=y.formatTitleFromDate(new Date(e),new Date(i)),r=this.datePipe.transform(e,n),u=this.datePipe.transform(i,"dd MMM yyyy");return`${n==null?"":r+"-"} ${u}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac})}}return t})();function pt(t,s){if(t&1&&(a(0,"ng-option",7),v(1,"img",17),d(2),o()),t&2){let e=s.$implicit;c("value",e.ID),l(),c("src",e==null?null:e.Img,se),l(),D("",e.Name," ")}}function mt(t,s){if(t&1){let e=b();a(0,"div",8)(1,"div",4)(2,"h5"),d(3,"Type"),o(),a(4,"p",5),d(5,"Select Type want to download"),o()(),a(6,"div",4)(7,"div",18)(8,"div")(9,"mat-radio-group",19),h("ngModelChange",function(n){f(e);let r=_();return r.downloadType.set(n),g(r.onDownloadTypeChange())}),a(10,"mat-radio-button",20),d(11," Orders "),o(),a(12,"mat-radio-button",21),d(13," Disbursement "),o()()()(),a(14,"div",22)(15,"div",23),v(16,"i",24),o(),a(17,"p",25),d(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),o()()()()}if(t&2){let e=_();l(9),c("ngModel",e.downloadType()),l(),c("value",!1),l(2),c("value",!0)}}function ct(t,s){t&1&&(a(0,"p",5),d(1," Select Disbursement date "),a(2,"span",26),d(3,"(payment date / order complete date)"),o(),d(4," of the channel you want to download (Max 1 Week). "),o())}function ut(t,s){t&1&&(a(0,"p",5),d(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),o())}function ht(t,s){if(t&1){let e=b();a(0,"div",16)(1,"app-timepicker",27),h("timeChange",function(n){f(e);let r=_();return r.startTime.set(n),g(r.onStartTimeChange())}),o(),a(2,"span",28),d(3,"-"),o(),a(4,"app-timepicker",27),h("timeChange",function(n){f(e);let r=_();return r.endTime.set(n),g(r.onEndTimeChange())}),o()()}if(t&2){let e=_();l(),c("time",e.startTime()),l(3),c("time",e.endTime())}}var it=(()=>{class t{constructor(){this.reset=P(!1),this.authService=S(Q),this.tokenService=S(Te),this.downloadService=S(A),this.downloadType=p(!1),this.selectedChannelId=p(null),this.channelOptions=p(this.authService.getChannels()),this.channelType=H,this.selectedChannel=p(null),this.showTimePicker=p(!1),this.startDate=p(null),this.endDate=p(null),this.startTime=p("00:00"),this.endTime=p("23:59"),this.minDate=p(new Date),this.maxDate=p(new Date),this.filterData=new O,this._onRememberMeChange=Se({alias:"onRememberMeChange"}),this.rememberMe=p(!1),U(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0}),this.initDateValidation()}initDateValidation(){let e=this.tokenService?.getTokenValue(),i=e?.DownloadRange?JSON.parse(e?.DownloadRange):0;if(i<=0)this.minDate.set(null),this.maxDate.set(null);else{let n=new Date,r=y.addDays(n,i-1);this.minDate.set(r)}}resetFilter(){this.selectedChannelId.update(()=>null),this.startDate.update(()=>null),this.endDate.update(()=>null),this.startTime.update(()=>null),this.endTime.update(()=>null),this.downloadType.update(()=>!1),this.selectedChannel.update(()=>null),this.showTimePicker.update(()=>!1),this.channelDetail$=null}onSelectChannel(){this.selectedChannel.update(()=>this.channelOptions().find(e=>e.ID===this.selectedChannelId())),this.selectedChannel()?this.channelDetail$=this.downloadService.gerChannelDetailById(this.selectedChannelId()).pipe(ae(e=>e?.Model),re(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let e=1;this.startDate()&&this.endDate()&&(e=y.getDaysDiff(this.startDate(),this.endDate())),this.showTimePicker.update(()=>e==0),this.emitFilterData()}onDownloadTypeChange(){this.emitFilterData()}onStartTimeChange(){this.emitFilterData()}onEndTimeChange(){this.emitFilterData()}emitFilterData(){this.filterData.emit({channelId:this.selectedChannelId(),startDate:this.startDate(),endDate:this.endDate(),downloadType:this.downloadType(),startTime:this.startTime(),endTime:this.endTime()})}onChangeRememberMe(e){this._onRememberMeChange.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange",_onRememberMeChange:"onRememberMeChange"},features:[j([A,Ae()])],decls:32,vars:13,consts:[["picker",""],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[1,"col-12"],[1,"row"],[1,"col-6"],[1,"text-muted"],["appendTo","body","placeholder","Select Channel",3,"ngModelChange","clearable","ngModel"],[3,"value"],[1,"row","mt-6"],[1,"col-12","d-flex","align-items-center"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker","min","max"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel","maxlength"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"col-6","d-flex","align-items-center","gap-2","mt-10"],["type","checkbox",2,"width","16px","height","16px",3,"ngModelChange","ngModel"],[1,"ms-2"],[1,"mt-8","d-flex","align-items-center"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type",2,"margin-bottom","0px"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download from Create sales order until create logistics status",1,"me-5",3,"value"],["matTooltip","Download only Payment and write off",1,"me-5",3,"value"],[1,"d-flex","border","mb-4","pt-6","px-6","mt-3",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],[1,"fw-bold"],[3,"timeChange","time"],[1,"mx-4"]],template:function(i,n){if(i&1){let r=b();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),d(5,"Select a Channel"),o(),a(6,"p",5),d(7,"Select Channel want to download order"),o()(),a(8,"div",4)(9,"ng-select",6),h("ngModelChange",function(m){return f(r),n.selectedChannelId.set(m),g(n.onSelectChannel())}),V(10,pt,3,3,"ng-option",7,N),o()()(),w(12,mt,19,3,"div",8),Y(13,"async"),a(14,"div",8)(15,"div",4)(16,"h5"),d(17,"Date Range"),o(),w(18,ct,5,0,"p",5)(19,ut,2,0,"p",5),o(),a(20,"div",4)(21,"div",9)(22,"mat-date-range-input",10)(23,"input",11),h("ngModelChange",function(m){return f(r),g(n.startDate.set(m))})("click",function(){f(r);let m=k(26);return g(m.open())}),o(),a(24,"input",12),h("ngModelChange",function(m){return f(r),n.endDate.set(m),g(n.onFilterDateChange())})("click",function(){f(r);let m=k(26);return g(m.open())}),o()(),v(25,"mat-date-range-picker",null,0),o(),a(27,"div",13)(28,"input",14),h("ngModelChange",function(m){return f(r),n.rememberMe.set(m),g(n.onChangeRememberMe(m))}),o(),a(29,"h5",15),d(30,"Save Date"),o()(),w(31,ht,5,2,"div",16),o()()()()}if(i&2){let r,u,m=k(26);l(9),c("clearable",!1)("ngModel",n.selectedChannelId()),l(),F(n.channelOptions()),l(2),C((r=Ce(13,11,n.channelDetail$))!=null&&r.ServiceFeeWriteOff&&((r=n.selectedChannel())==null?null:r.TypeID)==n.channelType.Tokopedia?12:-1),l(6),C(n.downloadType()&&((u=n.selectedChannel())==null?null:u.TypeID)==n.channelType.Tokopedia?18:19),l(4),c("rangePicker",m)("min",n.minDate())("max",n.maxDate()),l(),c("ngModel",n.startDate()),l(),c("ngModel",n.endDate()),l(4),c("ngModel",n.rememberMe()),l(3),C(n.showTimePicker()?31:-1)}},dependencies:[Oe,Fe,Ve,$e,Re,Be,J,Pe,Ee,Z,ke,q,nt,Ge,We,je,ze,Ue,De],styles:[".vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.mt-1rem[_ngcontent-%COMP%]{margin-top:1rem}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}.form-label-group.radio.download-type[_ngcontent-%COMP%]{height:45.5938px!important;border-radius:.375rem!important}"],changeDetection:0})}}return t})();var T=(function(t){return t.ALL="all",t.SYNC="sync",t.WRONG="wrong",t.UNSYNC="unsync",t})(T||{});var L=(function(t){return t[t.DoNothing=0]="DoNothing",t[t.New=1]="New",t[t.Update=2]="Update",t})(L||{});var ft=(t,s)=>({"btn-secondary text-white":t,"btn-outline-dark":s}),gt=(t,s)=>({"btn-success":t,"btn-outline-success":s}),_t=(t,s)=>({"btn-warning text-white":t,"btn-outline-warning":s}),wt=(t,s)=>({"btn-danger":t,"btn-outline-danger":s}),Ct=(t,s)=>({"over-due-today":t,"over-due":s});function vt(t,s){if(t&1&&(a(0,"th",17),d(1),o()),t&2){let e=_();l(),D(" ",e.selectedChannel()?"Created Date":"Last Status Update"," ")}}function St(t,s){if(t&1&&(a(0,"td"),d(1),Y(2,"date"),o()),t&2){let e=_().$implicit;l(),D(" ",ve(2,1,e.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function Dt(t,s){if(t&1&&(a(0,"span"),d(1),o()),t&2){let e=_().$implicit;l(),D(" ",e.ActionString," ")}}function yt(t,s){if(t&1&&(a(0,"li"),d(1),o()),t&2){let e=s.$implicit;l(),D(" ",e," ")}}function xt(t,s){if(t&1&&(a(0,"ul",21),V(1,yt,2,1,"li",null,N),o()),t&2){let e=_().$implicit;l(),F(e.ActionString)}}function bt(t,s){if(t&1&&(a(0,"span",22),v(1,"i",23),o()),t&2){let e=_().$implicit;c("title",_e("Delivery : ",e.DeliveryState,`
|
|
1
|
+
import{a as te}from"./chunk-VMJQJV6R.js";import{a as Ye,b as He,c as Ke,e as Qe,f as Ze,g as qe}from"./chunk-UDRFFKP5.js";import{a as Je,b as Xe,c as et}from"./chunk-B32YXHS3.js";import"./chunk-RW5XHGSL.js";import"./chunk-UPP7PYWV.js";import"./chunk-XQP3JKDZ.js";import{a as Re,b as Be,c as $e}from"./chunk-67HYWVMS.js";import"./chunk-KHG2CM5S.js";import{a as Le}from"./chunk-SVWYDDRX.js";import"./chunk-LU4HPRNF.js";import"./chunk-CO4RYE2Z.js";import"./chunk-R4E2KUA4.js";import"./chunk-TCEDNSUD.js";import"./chunk-ZF5KQSJ4.js";import"./chunk-IRD67CHJ.js";import"./chunk-OVZUFYSU.js";import"./chunk-ACIMXBIC.js";import"./chunk-JE2WUBFR.js";import"./chunk-U5MTAUWW.js";import{c as Ve,d as Fe,e as Oe}from"./chunk-5TH35CMP.js";import{b as Ne}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import"./chunk-TZKJPNYV.js";import{a as X}from"./chunk-3ZLKAFXU.js";import"./chunk-DHKYJUQU.js";import{f as We,g as ze,h as Ue,i as Ge,j as je}from"./chunk-TF3XKSU7.js";import"./chunk-YJQOSNK6.js";import"./chunk-V66GUTDK.js";import{e as Ae}from"./chunk-7X3SWRGG.js";import"./chunk-D5XV3F5J.js";import"./chunk-GVNUAV72.js";import"./chunk-AYV5TW7O.js";import"./chunk-SW3PJVJ6.js";import"./chunk-2QSN46Q7.js";import"./chunk-LTASTRU4.js";import"./chunk-POKR5NDC.js";import"./chunk-LR2HY6YC.js";import{qa as Me}from"./chunk-NGMSEBXY.js";import"./chunk-JFGCW6ML.js";import"./chunk-L63YO3M7.js";import{b as Ie}from"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import{h as Q}from"./chunk-TAR7XWSR.js";import{a as Te}from"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import{a as K}from"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import{b as H,c as y}from"./chunk-C63EIRLC.js";import{A as J,b as Ee,c as Pe,h as Z,m as q,x as ke}from"./chunk-IOSMSIMJ.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import{b as ye,e as xe}from"./chunk-UB4NDUUT.js";import{g as be}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import{x as De,z as $}from"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{$b as w,Bc as pe,Ca as O,Cc as me,Dc as ce,Eb as E,Ga as p,Hc as k,Ja as U,Jc as G,Kb as W,Lc as R,Mc as d,Nc as I,Oc as D,Qc as ue,Rc as he,Sc as fe,V as re,Wc as ge,Yc as _e,Zc as j,_c as we,aa as le,ad as B,bc as C,dc as N,ec as V,fc as F,gc as c,hc as a,hd as Y,ia as de,ic as o,id as Ce,jc as v,jd as ve,k as oe,kb as se,kc as x,lc as M,mb as l,mc as ee,na as S,qc as b,sd as Se,t as ae,td as P,ua as f,va as g,vc as h,xc as _}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import{a as ne,b as ie}from"./chunk-66YHNWRR.js";function at(t,s){if(t&1&&(x(0,"tr")(1,"td"),d(2),M(),x(3,"td"),d(4),M(),x(5,"td"),d(6),M(),x(7,"td"),d(8),M()()),t&2){let e=s.$implicit,i=s.$index;G("over-due",e.Exception),l(2),I(i+1),l(2),I(e.Number),l(2),I(e.Status),l(2),I(e.Exception)}}function rt(t,s){if(t&1&&V(0,at,9,6,"tr",6,N),t&2){let e,i=_();F((e=i.downloadResult())==null?null:e.Body)}}function lt(t,s){t&1&&(x(0,"tr",5)(1,"td",7)(2,"div",8),ee(3,"i",9),M(),x(4,"h4",10),d(5," There is no order to processed "),M()()())}var tt=(()=>{class t{constructor(){this.downloadResult=P()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["complete-step"]],inputs:{downloadResult:[1,"downloadResult"]},decls:15,vars:1,consts:[[1,"row","pt-2"],[1,"col-md-12"],[1,"table"],[1,"thead-light"],["width","1%"],[1,"text-center"],[3,"over-due"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(i,n){if(i&1&&(x(0,"div",0)(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr"),ee(5,"th",4),x(6,"th"),d(7,"Order Number"),M(),x(8,"th"),d(9,"Status"),M(),x(10,"th"),d(11,"Exception"),M()()(),x(12,"tbody"),w(13,rt,2,0)(14,lt,6,0,"tr",5),M()()()()),i&2){let r;l(13),C(((r=n.downloadResult())==null||r.Body==null?null:r.Body.length)>0?13:14)}},encapsulation:2,changeDetection:0})}}return t})();var st=()=>({standalone:!0}),nt=(()=>{class t{constructor(){this.datePipe=S($),this.fullWidth=P(!1),this.timeChange=new O}ngOnInit(){}onTimeChange(e){let i=null;e&&(i=this.datePipe.transform(e,"HH:mm")),this.timeChange.emit(i),this.onTimePickerChange()}onShowCalendar(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="inside")}}onTimePickerChange(){let e=document.getElementById("dropdown-filter");if(e){var i=new bootstrap.Dropdown(e);i&&(i._config.autoClose="outside")}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:[1,"fullWidth"]},outputs:{timeChange:"timeChange"},decls:4,vars:7,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body",3,"ngModelChange","onSelect","baseZIndex","ngModel","timeOnly","ngModelOptions"],["size","small","label","Close",3,"click"]],template:function(i,n){if(i&1){let r=b();a(0,"p-datepicker",1,0),fe("ngModelChange",function(m){return f(r),he(n.time,m)||(n.time=m),g(m)}),h("ngModelChange",function(m){return f(r),g(n.onTimeChange(m))})("onSelect",function(){return f(r),g(n.onShowCalendar())}),a(2,"p-footer")(3,"p-button",2),h("click",function(){return f(r),k(1).hideOverlay(),g(n.onShowCalendar())}),o()()()}i&2&&(G("full-width",n.fullWidth()),c("baseZIndex",1100),ue("ngModel",n.time),c("timeOnly",!0)("ngModelOptions",we(6,st)))},dependencies:[J,Z,q,et,Xe,Je,Me],styles:["p-datepicker span.p-datepicker.custom-height{height:44px;width:70px} p-datepicker.full-width span.p-datepicker.custom-height{height:44px;width:100%!important}"],changeDetection:0})}}return t})();var A=(()=>{class t{constructor(){this.httpService=S(xe),this.toastr=S(ye),this.datePipe=S($)}gerChannelDetailById(e){return this.httpService.post(K.GetChannelDetail,{ID:e})}getOrderPreview(e){return this.httpService.post(K.GetOrderPreviewV2,e)}getDownloadOrder(e){return this.httpService.post(K.GetDownloadOrderV2,e)}onPreviewOrder(e){return this.validateDatePreview(e)?this.getOrderPreview(e).pipe(le(i=>{i.Data?.length===0&&this.toastrEmptyPreview(e)})):oe}toastrEmptyPreview(e){let i=this.datePipe.transform(e.From,"dd MMM yyyy"),n=this.datePipe.transform(e.To,"dd MMM yyyy"),r=e.TimeFrom?e.TimeFrom:"",u=e.TimeTo?e.TimeTo:"";this.toastr.info(`There is no orders from ${i} ${r} to ${n} ${u}!`,"No Orders!")}validateDatePreview(e){let i=!0;return e.downloadType==!0?y.getDaysDiff(e?.From,e?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),i=!1):y.getDaysDiff(e?.From,e?.To)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Warning"),i=!1),i}getDateTitle(e,i){let n=y.formatTitleFromDate(new Date(e),new Date(i)),r=this.datePipe.transform(e,n),u=this.datePipe.transform(i,"dd MMM yyyy");return`${n==null?"":r+"-"} ${u}`}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=de({token:t,factory:t.\u0275fac})}}return t})();function pt(t,s){if(t&1&&(a(0,"ng-option",7),v(1,"img",17),d(2),o()),t&2){let e=s.$implicit;c("value",e.ID),l(),c("src",e==null?null:e.Img,se),l(),D("",e.Name," ")}}function mt(t,s){if(t&1){let e=b();a(0,"div",8)(1,"div",4)(2,"h5"),d(3,"Type"),o(),a(4,"p",5),d(5,"Select Type want to download"),o()(),a(6,"div",4)(7,"div",18)(8,"div")(9,"mat-radio-group",19),h("ngModelChange",function(n){f(e);let r=_();return r.downloadType.set(n),g(r.onDownloadTypeChange())}),a(10,"mat-radio-button",20),d(11," Orders "),o(),a(12,"mat-radio-button",21),d(13," Disbursement "),o()()()(),a(14,"div",22)(15,"div",23),v(16,"i",24),o(),a(17,"p",25),d(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),o()()()()}if(t&2){let e=_();l(9),c("ngModel",e.downloadType()),l(),c("value",!1),l(2),c("value",!0)}}function ct(t,s){t&1&&(a(0,"p",5),d(1," Select Disbursement date "),a(2,"span",26),d(3,"(payment date / order complete date)"),o(),d(4," of the channel you want to download (Max 1 Week). "),o())}function ut(t,s){t&1&&(a(0,"p",5),d(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),o())}function ht(t,s){if(t&1){let e=b();a(0,"div",16)(1,"app-timepicker",27),h("timeChange",function(n){f(e);let r=_();return r.startTime.set(n),g(r.onStartTimeChange())}),o(),a(2,"span",28),d(3,"-"),o(),a(4,"app-timepicker",27),h("timeChange",function(n){f(e);let r=_();return r.endTime.set(n),g(r.onEndTimeChange())}),o()()}if(t&2){let e=_();l(),c("time",e.startTime()),l(3),c("time",e.endTime())}}var it=(()=>{class t{constructor(){this.reset=P(!1),this.authService=S(Q),this.tokenService=S(Te),this.downloadService=S(A),this.downloadType=p(!1),this.selectedChannelId=p(null),this.channelOptions=p(this.authService.getChannels()),this.channelType=H,this.selectedChannel=p(null),this.showTimePicker=p(!1),this.startDate=p(null),this.endDate=p(null),this.startTime=p("00:00"),this.endTime=p("23:59"),this.minDate=p(new Date),this.maxDate=p(new Date),this.filterData=new O,this._onRememberMeChange=Se({alias:"onRememberMeChange"}),this.rememberMe=p(!1),U(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0}),this.initDateValidation()}initDateValidation(){let e=this.tokenService?.getTokenValue(),i=e?.DownloadRange?JSON.parse(e?.DownloadRange):0;if(i<=0)this.minDate.set(null),this.maxDate.set(null);else{let n=new Date,r=y.addDays(n,i-1);this.minDate.set(r)}}resetFilter(){this.selectedChannelId.update(()=>null),this.startDate.update(()=>null),this.endDate.update(()=>null),this.startTime.update(()=>null),this.endTime.update(()=>null),this.downloadType.update(()=>!1),this.selectedChannel.update(()=>null),this.showTimePicker.update(()=>!1),this.channelDetail$=null}onSelectChannel(){this.selectedChannel.update(()=>this.channelOptions().find(e=>e.ID===this.selectedChannelId())),this.selectedChannel()?this.channelDetail$=this.downloadService.gerChannelDetailById(this.selectedChannelId()).pipe(ae(e=>e?.Model),re(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let e=1;this.startDate()&&this.endDate()&&(e=y.getDaysDiff(this.startDate(),this.endDate())),this.showTimePicker.update(()=>e==0),this.emitFilterData()}onDownloadTypeChange(){this.emitFilterData()}onStartTimeChange(){this.emitFilterData()}onEndTimeChange(){this.emitFilterData()}emitFilterData(){this.filterData.emit({channelId:this.selectedChannelId(),startDate:this.startDate(),endDate:this.endDate(),downloadType:this.downloadType(),startTime:this.startTime(),endTime:this.endTime()})}onChangeRememberMe(e){this._onRememberMeChange.emit(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange",_onRememberMeChange:"onRememberMeChange"},features:[j([A,Ae()])],decls:32,vars:13,consts:[["picker",""],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[1,"col-12"],[1,"row"],[1,"col-6"],[1,"text-muted"],["appendTo","body","placeholder","Select Channel",3,"ngModelChange","clearable","ngModel"],[3,"value"],[1,"row","mt-6"],[1,"col-12","d-flex","align-items-center"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker","min","max"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel","maxlength"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"col-6","d-flex","align-items-center","gap-2","mt-10"],["type","checkbox",2,"width","16px","height","16px",3,"ngModelChange","ngModel"],[1,"ms-2"],[1,"mt-8","d-flex","align-items-center"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type",2,"margin-bottom","0px"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download from Create sales order until create logistics status",1,"me-5",3,"value"],["matTooltip","Download only Payment and write off",1,"me-5",3,"value"],[1,"d-flex","border","mb-4","pt-6","px-6","mt-3",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],[1,"fw-bold"],[3,"timeChange","time"],[1,"mx-4"]],template:function(i,n){if(i&1){let r=b();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),d(5,"Select a Channel"),o(),a(6,"p",5),d(7,"Select Channel want to download order"),o()(),a(8,"div",4)(9,"ng-select",6),h("ngModelChange",function(m){return f(r),n.selectedChannelId.set(m),g(n.onSelectChannel())}),V(10,pt,3,3,"ng-option",7,N),o()()(),w(12,mt,19,3,"div",8),Y(13,"async"),a(14,"div",8)(15,"div",4)(16,"h5"),d(17,"Date Range"),o(),w(18,ct,5,0,"p",5)(19,ut,2,0,"p",5),o(),a(20,"div",4)(21,"div",9)(22,"mat-date-range-input",10)(23,"input",11),h("ngModelChange",function(m){return f(r),g(n.startDate.set(m))})("click",function(){f(r);let m=k(26);return g(m.open())}),o(),a(24,"input",12),h("ngModelChange",function(m){return f(r),n.endDate.set(m),g(n.onFilterDateChange())})("click",function(){f(r);let m=k(26);return g(m.open())}),o()(),v(25,"mat-date-range-picker",null,0),o(),a(27,"div",13)(28,"input",14),h("ngModelChange",function(m){return f(r),n.rememberMe.set(m),g(n.onChangeRememberMe(m))}),o(),a(29,"h5",15),d(30,"Save Date"),o()(),w(31,ht,5,2,"div",16),o()()()()}if(i&2){let r,u,m=k(26);l(9),c("clearable",!1)("ngModel",n.selectedChannelId()),l(),F(n.channelOptions()),l(2),C((r=Ce(13,11,n.channelDetail$))!=null&&r.ServiceFeeWriteOff&&((r=n.selectedChannel())==null?null:r.TypeID)==n.channelType.Tokopedia?12:-1),l(6),C(n.downloadType()&&((u=n.selectedChannel())==null?null:u.TypeID)==n.channelType.Tokopedia?18:19),l(4),c("rangePicker",m)("min",n.minDate())("max",n.maxDate()),l(),c("ngModel",n.startDate()),l(),c("ngModel",n.endDate()),l(4),c("ngModel",n.rememberMe()),l(3),C(n.showTimePicker()?31:-1)}},dependencies:[Oe,Fe,Ve,$e,Re,Be,J,Pe,Ee,Z,ke,q,nt,Ge,We,je,ze,Ue,De],styles:[".vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.mt-1rem[_ngcontent-%COMP%]{margin-top:1rem}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}.form-label-group.radio.download-type[_ngcontent-%COMP%]{height:45.5938px!important;border-radius:.375rem!important}"],changeDetection:0})}}return t})();var T=(function(t){return t.ALL="all",t.SYNC="sync",t.WRONG="wrong",t.UNSYNC="unsync",t})(T||{});var L=(function(t){return t[t.DoNothing=0]="DoNothing",t[t.New=1]="New",t[t.Update=2]="Update",t})(L||{});var ft=(t,s)=>({"btn-secondary text-white":t,"btn-outline-dark":s}),gt=(t,s)=>({"btn-success":t,"btn-outline-success":s}),_t=(t,s)=>({"btn-warning text-white":t,"btn-outline-warning":s}),wt=(t,s)=>({"btn-danger":t,"btn-outline-danger":s}),Ct=(t,s)=>({"over-due-today":t,"over-due":s});function vt(t,s){if(t&1&&(a(0,"th",17),d(1),o()),t&2){let e=_();l(),D(" ",e.selectedChannel()?"Created Date":"Last Status Update"," ")}}function St(t,s){if(t&1&&(a(0,"td"),d(1),Y(2,"date"),o()),t&2){let e=_().$implicit;l(),D(" ",ve(2,1,e.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function Dt(t,s){if(t&1&&(a(0,"span"),d(1),o()),t&2){let e=_().$implicit;l(),D(" ",e.ActionString," ")}}function yt(t,s){if(t&1&&(a(0,"li"),d(1),o()),t&2){let e=s.$implicit;l(),D(" ",e," ")}}function xt(t,s){if(t&1&&(a(0,"ul",21),V(1,yt,2,1,"li",null,N),o()),t&2){let e=_().$implicit;l(),F(e.ActionString)}}function bt(t,s){if(t&1&&(a(0,"span",22),v(1,"i",23),o()),t&2){let e=_().$implicit;c("title",_e("Delivery : ",e.DeliveryState,`
|
|
2
2
|
Payment : `,e.PaymentState))}}function Tt(t,s){if(t&1&&(a(0,"tr")(1,"td"),d(2),o(),a(3,"td"),d(4),o(),w(5,St,3,4,"td"),a(6,"td")(7,"span"),d(8),o(),d(9),o(),a(10,"td",20)(11,"span"),d(12),o(),d(13),o(),a(14,"td"),w(15,Dt,2,1,"span"),w(16,xt,3,0,"ul",21),o(),a(17,"td"),w(18,bt,2,3,"span",22),o()()),t&2){let e,i=s.$implicit,n=s.$index,r=_(2);l(2),I(n+1),l(2),I(i.Number),l(),C(((e=r.selectedChannel())==null?null:e.TypeID)!=r.channelType.Shopee&&((e=r.selectedChannel())==null?null:e.TypeID)!==r.channelType.Tiktok?5:-1),l(3),D("",i.ChannelStatus," - "),l(),D("",i.ChannelStatusDescription," "),l(),R(B(13,Ct,(i==null?null:i.Action)==r.actionPreviewOrder.Update,(i==null?null:i.Action)==r.actionPreviewOrder.New)),c("matTooltip",i.POSStatus==91||i.POSStatusDescription=="Conflict"?"There is a missed status at POS, usually fulfillment has not been recorded but the payment has been recorded":""),l(2),D("",i.POSStatus," - "),l(),D("",i.POSStatusDescription," "),l(2),C(i.ActionString.length==1?15:-1),l(),C(i.ActionString.length>1?16:-1),l(2),C(i.ChannelStatus!=99&&i.POSStatus!=99?18:-1)}}function Mt(t,s){if(t&1&&V(0,Tt,19,16,"tr",null,N),t&2){let e=_();F(e.displayPreviewData())}}function Et(t,s){t&1&&(a(0,"tr",19)(1,"td",24)(2,"div",25),v(3,"i",26),o(),a(4,"h4",27),d(5," There is no order to processed "),o()()())}var ot=(()=>{class t{constructor(){this.orderPreview=P(),this.selectedChannel=P(),this.channelType=H,this.allData=p(0),this.syncData=p(0),this.wrongData=p(0),this.unsyncData=p(0),this.pillStatus=p(T.ALL),this.actionPreviewOrder=L,this.previewStatus=T,this.displayPreviewData=p([]),this.exportOrders=new O,U(()=>{this.orderPreview()&&(this.filterPreviewData(T.ALL),this.initLengthStatusData())},{allowSignalWrites:!0})}filterPreviewData(e){this.pillStatus.update(()=>e),this.displayPreviewData.update(()=>this.filterDataByStatus(e))}initLengthStatusData(){this.wrongData.update(()=>this.filterDataByStatus(T.WRONG).length),this.syncData.update(()=>this.filterDataByStatus(T.SYNC).length),this.allData.update(()=>this.orderPreview().length),this.unsyncData.update(()=>this.filterDataByStatus(T.UNSYNC).length)}filterDataByStatus(e){let i=[];switch(e){case T.ALL:i=this.orderPreview();break;case T.SYNC:i=this.orderPreview().filter(n=>n.Action==L.DoNothing);break;case T.WRONG:i=this.orderPreview().filter(n=>n.Action==L.Update);break;case T.UNSYNC:i=this.orderPreview().filter(n=>n.Action==L.New);break}return i}onExportOrders(){this.exportOrders.emit()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["preview-step"]],inputs:{orderPreview:[1,"orderPreview"],selectedChannel:[1,"selectedChannel"]},outputs:{exportOrders:"onExportOrders"},decls:40,vars:26,consts:[[1,"row","pt-2"],[1,"col-md-12"],[1,"row","mx-1","mb-5"],[1,"col-12","d-flex","justify-content-between","align-items-end",2,"padding-left","0px","padding-right","0px"],[1,"nav","nav-pills"],[1,"nav-item","me-3"],[1,"btn","btn-sm","rounded-pill",3,"click"],[1,"nav-item","mx-3"],["matTooltip","All Invoice which is already available in POS",1,"btn","btn-sm","rounded-pill",3,"click"],["matTooltip","Invoices that have different status between marketplace and POS",1,"btn","btn-sm","rounded-pill",3,"click"],["matTooltip","Invoices which is not exist in POS",1,"btn","btn-sm","rounded-pill",3,"click"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"table"],[1,"thead-light"],["width","1%"],["width","25%"],["width","15%"],["width","10%"],[1,"text-center"],["matTooltipClass","custom-width-tooltip",3,"matTooltip"],[1,"ps-5"],[3,"title"],[1,"fas","fa-info-circle","ms-2"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(i,n){if(i&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div")(5,"ul",4)(6,"li",5)(7,"button",6),h("click",function(){return n.filterPreviewData(n.previewStatus.ALL)}),d(8),o()(),a(9,"li",7)(10,"button",8),h("click",function(){return n.filterPreviewData(n.previewStatus.SYNC)}),d(11),o()(),a(12,"li",7)(13,"button",9),h("click",function(){return n.filterPreviewData(n.previewStatus.WRONG)}),d(14),o()(),a(15,"li",7)(16,"button",10),h("click",function(){return n.filterPreviewData(n.previewStatus.UNSYNC)}),d(17),o()()()(),a(18,"div")(19,"button",11),h("click",function(){return n.onExportOrders()}),v(20,"i",12),a(21,"span"),d(22,"Export"),o()()()()(),a(23,"table",13)(24,"thead",14)(25,"tr"),v(26,"th",15),a(27,"th",16),d(28,"Number"),o(),w(29,vt,2,1,"th",17),a(30,"th",18),d(31,"Channel Status"),o(),a(32,"th",18),d(33,"POS Status"),o(),a(34,"th"),d(35,"Action"),o(),v(36,"th",15),o()(),a(37,"tbody"),w(38,Mt,2,0)(39,Et,6,0,"tr",19),o()()()()),i&2){let r,u;l(7),R(B(14,ft,n.pillStatus()=="all",n.pillStatus()!="all")),l(),D(" All (",n.allData(),") "),l(2),R(B(17,gt,n.pillStatus()=="sync",n.pillStatus()!="sync")),l(),D(" Existing (",n.syncData(),") "),l(2),R(B(20,_t,n.pillStatus()=="wrong",n.pillStatus()!="wrong")),l(),D(" Wrong Status (",n.wrongData(),") "),l(2),R(B(23,wt,n.pillStatus()=="unsync",n.pillStatus()!="unsync")),l(),D(" Missing (",n.unsyncData(),") "),l(12),C(((r=n.selectedChannel())==null?null:r.TypeID)!=n.channelType.Shopee&&((r=n.selectedChannel())==null?null:r.TypeID)!==n.channelType.Tiktok?29:-1),l(9),C(((u=n.displayPreviewData())==null?null:u.length)>0?38:39)}},dependencies:[X,Ie,$],encapsulation:2,changeDetection:0})}}return t})();var Pt=["stepper"];function kt(t,s){if(t&1){let e=b();a(0,"div",2)(1,"button",20),h("click",function(){f(e);let n=_();return g(n.onStepperBack())}),d(2," Back "),o(),a(3,"button",21),h("click",function(){f(e);let n=_();return g(n.onNextStep())}),d(4," Next "),o()()}if(t&2){let e=_();l(3),c("disabled",e.disabledNextFilter())}}function It(t,s){if(t&1){let e=b();a(0,"button",22),h("click",function(){f(e);let n=_();return g(n.onNextStep())}),d(1," Next "),o()}if(t&2){let e=_();c("disabled",e.disabledNextFilter())}}function Nt(t,s){if(t&1){let e=b();a(0,"button",23),h("click",function(){f(e);let n=_();return g(n.onNewDownload())}),v(1,"i",24),d(2," New "),o()}}function Vt(t,s){t&1&&(v(0,"i",25),a(1,"span"),d(2,"Filter"),o())}function Ft(t,s){t&1&&(v(0,"i",26),a(1,"span"),d(2,"Preview"),o())}function Ot(t,s){if(t&1){let e=b();a(0,"preview-step",27),h("onExportOrders",function(){f(e);let n=_();return g(n.onExportOrders())}),o()}t&2&&c("orderPreview",s)}function Rt(t,s){t&1&&(v(0,"i",28),a(1,"span"),d(2,"Finish"),o())}function Bt(t,s){t&1&&v(0,"complete-step",16),t&2&&c("downloadResult",s)}function $t(t,s){t&1&&(a(0,"h6"),d(1,"1"),o())}function At(t,s){t&1&&(a(0,"h6"),d(1,"2"),o())}function Lt(t,s){t&1&&(a(0,"h6"),d(1,"3"),o())}var ui=(()=>{class t{constructor(){this.downloadService=S(A),this.orderService=S(te),this.productService=S(Le),this.authService=S(Q),this.stepperSelectedIndex=p(0),this.disabledNextFilter=p(!0),this.filter=p(void 0),this.isResetFilter=p(!1),this.orderPreview=p(void 0),this.downloadPreview=p(void 0),this.pageTitle=p("Download to POS"),this.cacheKey=p(y.GuidEMpty),this.rememberMe=p(!1)}onFilterChange(e){this.filter.set(e),this.validateDisabledNext()}validateDisabledNext(){this.disabledNextFilter.update(()=>{let e=this.filter();return y.IsEmpty(e?.channelId)||!y.isValidDate(e.startDate)||!y.isValidDate(e.endDate)})}onNextStep(){switch(this.stepper.selectedIndex){case 0:this.onPreview();let e=this.productService.findChannelById(this.filter().channelId,this.authService.getChannels());this.setPageTitle(`Preview ${e?.Name}`);break;case 1:this.onDownload(),this.setPageTitle("Download");break}}onStepperNext(){this.stepper.selected.completed=!0,this.stepper.next()}onPreview(){let e=this.filter(),i={ID:e.channelId,From:e.startDate,To:e.endDate,IsDisbursement:e.downloadType};y.IsNotEmpty(e.startTime)&&(i=ie(ne({},i),{TimeFrom:e.startTime+":00",TimeTo:e.endTime+":00"})),this.downloadService.onPreviewOrder(i).subscribe(n=>{n.Data?.length>0&&(this.cacheKey.update(()=>n.CacheKey),this.onStepperNext()),this.orderPreview.set(n.Data)})}onExportOrders(){let e=this.filter(),i={ID:e.channelId,From:e.startDate?e.startDate:null,To:e.endDate?e.endDate:null},n=`Orders ${this.downloadService.getDateTitle(e.startDate,e.endDate)}`;this.orderService.exportOrders(i,n).subscribe()}onDownload(){let e=this.filter(),i={ID:e.channelId,From:e.startDate,To:e.endDate,ListPreview:[],IsDisbursement:e.downloadType,CacheKey:this.cacheKey()},n=this.orderPreview();i.ListPreview=n,this.downloadService.getDownloadOrder(i).subscribe(r=>{this.downloadPreview.set(r),this.onStepperNext()})}setPageTitle(e){let i=this.filter();this.pageTitle.update(()=>`
|
|
3
3
|
${e} (${this.downloadService.getDateTitle(i.startDate,i.endDate)})
|
|
4
4
|
`)}onStepperBack(){this.stepper.previous(),this.pageTitle.update(()=>"Download to POS")}onNewDownload(){this.isResetFilter.update(()=>!this.rememberMe()),this.stepper.reset(),this.stepperSelectedIndex.update(()=>0),this.orderPreview.set(void 0),this.downloadPreview.set(void 0),this.pageTitle.update(()=>"Download to POS")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-download-v2"]],viewQuery:function(i,n){if(i&1&&pe(Pt,5),i&2){let r;me(r=ce())&&(n.stepper=r.first)}},features:[j([A,te,{provide:Ye,useValue:{displayDefaultIndicatorType:!1}}])],decls:24,vars:17,consts:[["stepper",""],[3,"hideSearchBox","hideSearchDropdown","headerTitle","description"],[1,"btn-group","me-3"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"disabled"],[1,"btn","btn-outline-secondary","btn-fill","d-flex","align-items-center","gap-2"],[1,"container-fluid","pt-5","mt-5"],[1,"row"],[1,"col-12"],[1,"d-flex","justify-content-center"],["linear","",1,"w-100","stepper-download",3,"selectedIndexChange","ngClass","selectedIndex"],["state","filter",3,"completed","editable"],["matStepLabel",""],[1,"w-100",3,"onFilterChange","onRememberMeChange","reset"],["state","preview",3,"editable","completed"],[3,"orderPreview"],["state","finish"],[3,"downloadResult"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","bg-success","text-white",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"click","disabled"],[1,"btn","btn-outline-secondary","btn-fill","d-flex","align-items-center","gap-2",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt"],[1,"fa-solid","fa-filter","me-3"],[1,"fa-solid","fa-file","me-3"],[3,"onExportOrders","orderPreview"],[1,"fa-solid","fa-flag","me-3"]],template:function(i,n){if(i&1){let r=b();a(0,"mainpanel",1)(1,"actions"),w(2,kt,5,1,"div",2),w(3,It,2,1,"button",3),w(4,Nt,3,0,"button",4),o(),a(5,"content")(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"mat-stepper",9,0),h("selectedIndexChange",function(m){return f(r),g(n.stepperSelectedIndex.set(m))}),a(12,"mat-step",10),W(13,Vt,3,0,"ng-template",11),a(14,"filter-step",12),h("onFilterChange",function(m){return f(r),g(n.onFilterChange(m))})("onRememberMeChange",function(m){return f(r),g(n.rememberMe.set(m))}),o()(),a(15,"mat-step",13),W(16,Ft,3,0,"ng-template",11),w(17,Ot,1,1,"preview-step",14),o(),a(18,"mat-step",15),W(19,Rt,3,0,"ng-template",11),w(20,Bt,1,1,"complete-step",16),o(),W(21,$t,2,0,"ng-template",17)(22,At,2,0,"ng-template",18)(23,Lt,2,0,"ng-template",19),o()()()()()()()}if(i&2){let r,u,m=k(11);c("hideSearchBox",!0)("hideSearchDropdown",!0)("headerTitle",n.pageTitle())("description",n.pageTitle()),l(2),C(n.stepperSelectedIndex()==1?2:-1),l(),C(n.stepperSelectedIndex()==0?3:-1),l(),C(n.stepperSelectedIndex()==2?4:-1),l(6),c("ngClass",ge("last-edited-step-"+m.selectedIndex))("selectedIndex",n.stepperSelectedIndex()),l(2),c("completed",!1)("editable",n.stepperSelectedIndex()!=2),l(2),c("reset",n.isResetFilter()),l(),c("editable",n.stepperSelectedIndex()!=2)("completed",!1),l(2),C((r=n.orderPreview())?17:-1,r),l(3),C((u=n.downloadPreview())?20:-1,u)}},dependencies:[tt,it,ot,qe,Qe,He,Ze,Ke,Ne,be,X],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}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as te}from"./chunk-JQCO6BLN.js";import{a as ee}from"./chunk-BPC3UE7K.js";import{a as $}from"./chunk-6PB45QZ6.js";import"./chunk-7W2KUJR5.js";import"./chunk-KHG2CM5S.js";import{a as Z}from"./chunk-TEPGHGSB.js";import"./chunk-ACIMXBIC.js";import{a as Q,b as X,d as Y}from"./chunk-5TH35CMP.js";import{b as J}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import"./chunk-TZKJPNYV.js";import"./chunk-3ZLKAFXU.js";import"./chunk-JU6FJIOF.js";import"./chunk-TF3XKSU7.js";import"./chunk-YJQOSNK6.js";import"./chunk-3LRU75PM.js";import"./chunk-V66GUTDK.js";import"./chunk-7X3SWRGG.js";import"./chunk-D5XV3F5J.js";import"./chunk-GVNUAV72.js";import"./chunk-FWUEMMUS.js";import"./chunk-AYV5TW7O.js";import"./chunk-SW3PJVJ6.js";import"./chunk-2QSN46Q7.js";import"./chunk-LTASTRU4.js";import"./chunk-POKR5NDC.js";import"./chunk-LR2HY6YC.js";import"./chunk-JFGCW6ML.js";import"./chunk-L63YO3M7.js";import"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import{h as B}from"./chunk-
|
|
1
|
+
import{a as te}from"./chunk-JQCO6BLN.js";import{a as ee}from"./chunk-BPC3UE7K.js";import{a as $}from"./chunk-6PB45QZ6.js";import"./chunk-7W2KUJR5.js";import"./chunk-KHG2CM5S.js";import{a as Z}from"./chunk-TEPGHGSB.js";import"./chunk-ACIMXBIC.js";import{a as Q,b as X,d as Y}from"./chunk-5TH35CMP.js";import{b as J}from"./chunk-G5DPFGUC.js";import"./chunk-OKMFQVL4.js";import"./chunk-TZKJPNYV.js";import"./chunk-3ZLKAFXU.js";import"./chunk-JU6FJIOF.js";import"./chunk-TF3XKSU7.js";import"./chunk-YJQOSNK6.js";import"./chunk-3LRU75PM.js";import"./chunk-V66GUTDK.js";import"./chunk-7X3SWRGG.js";import"./chunk-D5XV3F5J.js";import"./chunk-GVNUAV72.js";import"./chunk-FWUEMMUS.js";import"./chunk-AYV5TW7O.js";import"./chunk-SW3PJVJ6.js";import"./chunk-2QSN46Q7.js";import"./chunk-LTASTRU4.js";import"./chunk-POKR5NDC.js";import"./chunk-LR2HY6YC.js";import"./chunk-JFGCW6ML.js";import"./chunk-L63YO3M7.js";import"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import{h as B}from"./chunk-TAR7XWSR.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import"./chunk-C63EIRLC.js";import{A as U,c as W,h as j,m as q,o as K}from"./chunk-IOSMSIMJ.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import{e as G}from"./chunk-UB4NDUUT.js";import{e as H}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import{z as V}from"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{$b as L,$c as O,Eb as T,Ga as g,Kb as R,Mc as p,Nc as f,Oc as S,Qc as D,Rc as F,Sc as I,_c as k,bc as M,dc as N,ec as x,fc as E,gc as d,hc as n,hd as A,ic as i,jc as C,jd as z,kb as w,mb as m,na as _,qc as P,ua as v,va as y,vc as s,xc as b}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import{a as u,b as h}from"./chunk-66YHNWRR.js";var ne=()=>["/menu/log/rawlog/detail"],ie=r=>({ID:r});function ae(r,c){if(r&1&&(n(0,"span",17),C(1,"img",18),i(),p(2)),r&2){let e=c.item;m(),d("src",e.Img,w)("alt",e.Name),m(),S(" ",e.Name," ")}}function oe(r,c){if(r&1&&(n(0,"tr")(1,"td")(2,"a",23),p(3),A(4,"date"),i()(),n(5,"td"),p(6),i(),n(7,"td"),p(8),i(),n(9,"td"),p(10),i()()),r&2){let e=c.$implicit;m(2),d("routerLink",k(9,ne))("queryParams",O(10,ie,e.id)),m(),S(" ",z(4,6,e.Created,"dd MMM yyyy HH:mm:ss")," "),m(3),f(e.type),m(2),f(e.number),m(2),f(e.message)}}function re(r,c){if(r&1){let e=P();n(0,"div",15)(1,"table",19)(2,"thead",20)(3,"tr")(4,"th",21),p(5,"Date"),i(),n(6,"th"),p(7,"Type"),i(),n(8,"th"),p(9,"Number"),i(),n(10,"th"),p(11,"Message"),i()()(),n(12,"tbody"),x(13,oe,11,12,"tr",null,N),i()(),n(15,"mat-paginator",22),s("page",function(t){v(e);let a=b();return y(a.changePage(t))}),i()()}if(r&2){let e=b();m(13),E(e.Result()),m(2),d("length",e.paginationTotal())("pageSize",e.paginationPageSize())("pageIndex",e.filter().PageNumber==0?0:e.filter().PageNumber-1)}}function le(r,c){r&1&&(n(0,"div",16),C(1,"app-empty-state"),i())}var Re=(()=>{class r{constructor(){this.http=_(G),this._RawLogService=_(te),this.authService=_(B),this.Result=g([]),this.filter=g({RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:""}),this.list=[],this.paginationTotal=g(0),this.paginationPageSize=g(0),this.ActionTypeList=g(null),this.Types=[{Key:0,Value:"Shopee"},{Key:1,Value:"Tokopedia"}],this.channelOptions=g(this.authService.getChannels())}ngOnInit(){this.Load()}Load(e={}){this.http.post("/api/OrdersLoader/Get",e).subscribe(o=>{this.filter.update(t=>u(u({},t),o.Filter)),this.ActionTypeList.set(o.Options.ActionTypeList),this.Get()})}Get(e){this.filter.update(o=>h(u({},o),{Number:e})),this.http.post("api/Orders/GetRawLog",this.filter()).subscribe(o=>{this._RawLogService.Data=o.hits;let t=[];for(let a of o.hits){let l={id:a._id,message:a._source.message,responseCode:a._source.log.responseCode,processTypeString:a._source.log.processType,type:a._source.log.type,number:a._source.log.number,Created:a._source["@timestamp_received"]};t.push(l)}this.Result.set(t),this.paginationTotal.set(o.total.value),this.paginationPageSize.set(this.filter().RowCount>this.paginationTotal()?this.paginationTotal():this.filter().RowCount)})}changePage(e){this.filter.update(o=>h(u({},o),{PageNumber:e.pageIndex+1})),this.Get()}updateFilter(e,o){this.filter.update(t=>h(u({},t),{[e]:o}))}static{this.\u0275fac=function(o){return new(o||r)}}static{this.\u0275cmp=T({type:r,selectors:[["app-raw-log"]],decls:28,vars:9,consts:[["headerTitle","Channel Push Log","searchBoxPlaceHolder","Invoice Number..",3,"textChange","onSubmit","text"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",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"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table"],[1,"thead-light"],[2,"width","200px"],[3,"page","length","pageSize","pageIndex"],[3,"routerLink","queryParams"]],template:function(o,t){if(o&1&&(n(0,"mainpanel",0),I("textChange",function(l){return F(t.filter().Number,l)||(t.filter().Number=l),l}),s("onSubmit",function(l){return t.Get(l)}),n(1,"filters")(2,"div")(3,"label",1),p(4,"Channel"),i(),n(5,"ng-select",2),s("ngModelChange",function(l){return t.updateFilter("ChannelID",l)}),R(6,ae,3,3,"ng-template",3),i()(),n(7,"div",4)(8,"label",5),p(9,"From/To"),i(),n(10,"div",6)(11,"datepicker",7),s("dateChange",function(l){return t.updateFilter("From",l)}),i()(),n(12,"div")(13,"datepicker",8),s("dateChange",function(l){return t.updateFilter("To",l)}),i()()(),n(14,"div",4)(15,"label",9),p(16,"Page Number"),i(),n(17,"input",10),s("ngModelChange",function(l){return t.updateFilter("PageNumber",l)}),i()(),n(18,"div",4)(19,"label",9),p(20,"Page Size"),i(),n(21,"input",11),s("ngModelChange",function(l){return t.updateFilter("RowCount",l)}),i()()(),n(22,"content")(23,"div",12)(24,"div",13)(25,"div",14),L(26,re,16,3,"div",15)(27,le,2,0,"div",16),i()()()()()),o&2){let a;D("text",t.filter().Number),m(5),d("clearable",!0)("items",t.channelOptions())("ngModel",t.filter().ChannelID),m(6),d("date",t.filter().From),m(2),d("date",t.filter().To),m(4),d("ngModel",t.filter().PageNumber),m(4),d("ngModel",t.filter().RowCount),m(5),M(((a=t.Result())==null?null:a.length)>0?26:27)}},dependencies:[J,Y,U,W,K,j,q,Q,X,$,H,ee,Z,V],encapsulation:2})}}return r})();export{Re as RawLogComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-AQS2I4RK.js";import{a as m}from"./chunk-2SOE3U6K.js";import"./chunk-3ZLKAFXU.js";import"./chunk-A2ISS3K6.js";import"./chunk-2JS4LVCG.js";import"./chunk-TAR7XWSR.js";import"./chunk-4NJQ2IME.js";import"./chunk-QXRG5XYP.js";import"./chunk-NSH3XZXC.js";import"./chunk-SH7PSBLU.js";import"./chunk-C63EIRLC.js";import"./chunk-MMOZES77.js";import"./chunk-34FX4M3J.js";import"./chunk-UB4NDUUT.js";import{c as i}from"./chunk-JLWI4DHM.js";import"./chunk-ZTKWKQRJ.js";import"./chunk-BI4K5Y2V.js";import"./chunk-ASFPLYOZ.js";import{Eb as a,gc as l,hc as p,ic as c,jc as o,mb as r}from"./chunk-32SEKQJM.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var g=(()=>{class n{constructor(){this.channelTabs=[{Title:"Channel",Url:"/menu/channel/marketplace"},{Title:"POS",Url:"/menu/channel/pos"}]}static{this.\u0275fac=function(e){return new(e||n)}}static{this.\u0275cmp=a({type:n,selectors:[["app-channels"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(e,u){e&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),c()()(),o(4,"router-outlet")),e&2&&(r(3),l("Tabs",u.channelTabs))},dependencies:[m,i],styles:[".form-label-group[_ngcontent-%COMP%]{position:relative;margin-bottom:1rem}.form-label-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;font-size:.875rem;border-radius:.25rem!important;border-color:#c8d3df}.form-label-group[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important}.form-label-group[_ngcontent-%COMP%] > label[_ngcontent-%COMP%]{width:auto;position:absolute;top:1.125rem;left:.75rem;display:block;margin-bottom:0;line-height:1.5;color:#ccc;pointer-events:none;cursor:text;border:1px solid transparent;border-radius:.25rem;transition:all .1s ease-in-out;font-size:.875rem}.form-label-group[_ngcontent-%COMP%] > textarea[_ngcontent-%COMP%]{padding:.75rem;color:#343434;resize:both;font-size:.875rem;border-radius:.25rem;border-color:#c8d3df}.form-label-group[_ngcontent-%COMP%] > textarea[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{top:.9375rem}.form-label-group[_ngcontent-%COMP%] > textarea[_ngcontent-%COMP%]:focus{border:solid 1.5px #1A73E8!important}.form-label-group[_ngcontent-%COMP%] > textarea[_ngcontent-%COMP%]:focus ~ label[_ngcontent-%COMP%]{top:1rem;left:.78125rem}.form-label-group[_ngcontent-%COMP%] > ng-select[_ngcontent-%COMP%] .ng-select-container{min-height:3.625rem;border-color:#c8d3df;box-shadow:none}.form-label-group[_ngcontent-%COMP%] > ng-select[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{display:inline-block;top:-.625rem;background-color:#fff;font-size:.75rem!important;color:#9da2a6;padding:0 .25rem;z-index:1002;left:.5rem}.form-label-group.multiple[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-input{padding-left:.25rem!important}.form-label-group.multiple[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-placeholder{top:18px!important}.form-label-group.radio[_ngcontent-%COMP%]{height:3.625rem;padding:.75rem;color:#343434;border-radius:.25rem!important;border:solid 1px #c8d3df}.form-label-group.radio[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:.75rem!important;top:-10px!important;padding:0 .25rem;left:.5rem}.form-label-group.empty[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] ~ label[_ngcontent-%COMP%]{display:none}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-webkit-input-placeholder, .form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:-ms-input-placeholder, .form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-ms-input-placeholder, .form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::-moz-placeholder, .form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-webkit-input-placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:-ms-input-placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-ms-input-placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::-moz-placeholder, .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]::placeholder{color:transparent}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:placeholder-shown) ~ label[_ngcontent-%COMP%], .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:not(:placeholder-shown) ~ label[_ngcontent-%COMP%]{background-color:#fff;font-size:.75rem!important;color:#9da2a6;top:-10px!important;padding:0 .25rem;left:.5rem}.form-label-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:not(:placeholder-shown):focus ~ label[_ngcontent-%COMP%], .form-label-group[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]:not(:placeholder-shown):focus ~ label[_ngcontent-%COMP%]{color:#3f8aec}.form-label-group[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-placeholder{padding-left:.25rem;color:#ccc!important;font-size:.875rem}.form-label-group[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-has-value .ng-value{padding-left:.25rem;font-size:.875rem}.form-label-group[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-value-container{overflow:initial!important}.form-label-group[_ngcontent-%COMP%] ng-select[_ngcontent-%COMP%] .ng-input{top:auto!important;padding-left:.875rem!important;font-size:.875rem}"]})}}return n})();var b=[{path:"",component:g,children:[{path:"",redirectTo:"marketplace",pathMatch:"full"},{path:"marketplace",loadComponent(){return import("./chunk-3OQULH4O.js").then(n=>n.MarketplaceComponent)},canActivate:[t],data:{title:"List"}},{path:"marketplace/form",loadComponent(){return import("./chunk-5PDKID4R.js").then(n=>n.MarketplaceFormComponent)},canActivate:[t],data:{title:"Add new Channel"}},{path:"marketplace/view",loadComponent(){return import("./chunk-IEDJTOMP.js").then(n=>n.MarketplaceViewComponent)},canActivate:[t],data:{title:"Marketplace View"}},{path:"marketplace/add",loadComponent(){return import("./chunk-2SLUX5IP.js").then(n=>n.MarketplaceAddComponent)},canActivate:[t],data:{title:"Marketplace Add"}},{path:"pos",loadComponent(){return import("./chunk-AZAZ7BJH.js").then(n=>n.PosComponent)},canActivate:[t],data:{title:"POS"}},{path:"pos/edit",loadComponent(){return import("./chunk-VITCXEPW.js").then(n=>n.EditComponent)},canActivate:[t],data:{title:"POS Edit"}}]}];export{b as routes};
|