marketplacepos 5.48.5 → 5.48.6
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-Z2CPXQ24.js → chunk-2B5DXBBJ.js} +1 -1
- package/Marketplace/{chunk-I7YNDTEK.js → chunk-2MEVIFIA.js} +1 -1
- package/Marketplace/{chunk-2PXOGGDS.js → chunk-3664K4KH.js} +1 -1
- package/Marketplace/{chunk-XUMLTOVI.js → chunk-4LQREJ6J.js} +1 -1
- package/Marketplace/{chunk-VKZ2UVXB.js → chunk-5A3P2NB3.js} +1 -1
- package/Marketplace/{chunk-35DCCWTG.js → chunk-6CM22SKR.js} +1 -1
- package/Marketplace/{chunk-MAK2RHFD.js → chunk-6LRZDPE5.js} +1 -1
- package/Marketplace/{chunk-VEBP36WX.js → chunk-6UOPF4ZP.js} +1 -1
- package/Marketplace/{chunk-QFGKR62M.js → chunk-7Z5X4HRT.js} +1 -1
- package/Marketplace/{chunk-PYQPYOIY.js → chunk-BQEBDVGB.js} +1 -1
- package/Marketplace/{chunk-JZL2233L.js → chunk-C4VD7LDS.js} +2 -2
- package/Marketplace/{chunk-LVRM4JAP.js → chunk-C6JVY2ER.js} +1 -1
- package/Marketplace/{chunk-SETHDR5R.js → chunk-CBD25LAJ.js} +1 -1
- package/Marketplace/{chunk-6T3PILHS.js → chunk-DDV2A3Y2.js} +1 -1
- package/Marketplace/{chunk-VNI2KCJE.js → chunk-DUXKDRDP.js} +1 -1
- package/Marketplace/{chunk-UN53SVGE.js → chunk-E32KODU7.js} +1 -1
- package/Marketplace/{chunk-UYG2OCBS.js → chunk-ESXDXSQ3.js} +1 -1
- package/Marketplace/{chunk-BI2LUCYC.js → chunk-FKPDG4AM.js} +1 -1
- package/Marketplace/{chunk-JTP3ZFNS.js → chunk-HNFW4VQS.js} +1 -1
- package/Marketplace/{chunk-2WEEVTKZ.js → chunk-HSQHQZV7.js} +1 -1
- package/Marketplace/{chunk-2HGLCZCJ.js → chunk-I3R7CC6J.js} +1 -1
- package/Marketplace/{chunk-E3TCC2HT.js → chunk-ICE4DSEP.js} +1 -1
- package/Marketplace/{chunk-AMHOLPZC.js → chunk-JWK3HR6P.js} +1 -1
- package/Marketplace/{chunk-F6SEXTTP.js → chunk-K2BII75W.js} +1 -1
- package/Marketplace/{chunk-TJUIBLFE.js → chunk-KSR5TQDN.js} +1 -1
- package/Marketplace/{chunk-FEQNJY7V.js → chunk-KTLMPVSK.js} +1 -1
- package/Marketplace/{chunk-6J3WQHJF.js → chunk-KUBWQQZK.js} +1 -1
- package/Marketplace/{chunk-DOVAN3PS.js → chunk-KUNITWR6.js} +1 -1
- package/Marketplace/{chunk-LA2EIRS6.js → chunk-L22SKCLL.js} +1 -1
- package/Marketplace/{chunk-ESXTZ7DM.js → chunk-LEUBNBGC.js} +1 -1
- package/Marketplace/{chunk-DDSVUI6T.js → chunk-LY32FUZ4.js} +2 -2
- package/Marketplace/{chunk-K2QHJ7WS.js → chunk-MDP2SGJI.js} +1 -1
- package/Marketplace/{chunk-KWRH5WFZ.js → chunk-MTPSSM64.js} +1 -1
- package/Marketplace/{chunk-CBB3JEV7.js → chunk-N5VHHR26.js} +1 -1
- package/Marketplace/{chunk-HVGTRPJH.js → chunk-NBCUYSP7.js} +1 -1
- package/Marketplace/{chunk-UJ4S2WZV.js → chunk-NH6QGSVC.js} +1 -1
- package/Marketplace/{chunk-GEDKSGFP.js → chunk-ODLI42YV.js} +1 -1
- package/Marketplace/{chunk-BY7LPG4A.js → chunk-ONPG3DER.js} +1 -1
- package/Marketplace/{chunk-E4BL56JJ.js → chunk-OQM7K2EA.js} +1 -1
- package/Marketplace/{chunk-WD4PA53F.js → chunk-Q56RJPES.js} +1 -1
- package/Marketplace/{chunk-WZYOXBEP.js → chunk-RI7L4QSY.js} +1 -1
- package/Marketplace/{chunk-3IGKGUHQ.js → chunk-RWVVRZJY.js} +1 -1
- package/Marketplace/{chunk-RXE72I2S.js → chunk-T5IUZ6UD.js} +1 -1
- package/Marketplace/{chunk-OCP5FDSY.js → chunk-TAITBX62.js} +1 -1
- package/Marketplace/{chunk-7NHO7E6W.js → chunk-UQK5JNU2.js} +1 -1
- package/Marketplace/{chunk-3J4WF3UO.js → chunk-WFVK32EW.js} +1 -1
- package/Marketplace/{chunk-MYJY2N6R.js → chunk-ZLBPUHTQ.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-JXUEQJZZ.js → main-K3MDOIIF.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as x}from"./chunk-PMVDQ2OP.js";import{a as O}from"./chunk-E66QUDQF.js";import{a as p}from"./chunk-
|
|
1
|
+
import{a as x}from"./chunk-PMVDQ2OP.js";import{a as O}from"./chunk-E66QUDQF.js";import{a as p}from"./chunk-MDP2SGJI.js";import"./chunk-4VNQYYVV.js";import{b}from"./chunk-FKGKMEDE.js";import"./chunk-ZKIO2ZQ6.js";import{a as m}from"./chunk-NH6QGSVC.js";import{a as P}from"./chunk-36U7D4LI.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import{c as C}from"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import{e as f}from"./chunk-6KWG6O5L.js";import{a as h}from"./chunk-PDCVMSLL.js";import"./chunk-BQEBDVGB.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{n as M}from"./chunk-EDEZ3JLR.js";import{A as g}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{w as u}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as s,I as a,m as i}from"./chunk-LNJUGHOX.js";import{Gb as l,Hb as r,jc as c,na as e}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var w=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=l({type:t,selectors:[["app-products"]],standalone:!1,decls:1,vars:0,template:function(n,N){n&1&&c(0,"router-outlet")},dependencies:[s],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}"]});let o=t;return o})();var v=[{path:"",component:w,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",loadChildren:()=>import("./chunk-C4VD7LDS.js").then(o=>o.StatusModule),canActivate:[m,p]},{path:"download",loadChildren:()=>import("./chunk-CBD25LAJ.js").then(o=>o.DownloadModule),canActivate:[m,p]},{path:"upload",loadComponent:()=>import("./chunk-ONPG3DER.js").then(o=>o.ProductUploadComponent),data:{title:"Upload Product"},canActivate:[m,p]}]}],y=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r({type:t}),t.\u0275inj=e({imports:[i,a.forChild(v)]});let o=t;return o})();var Y=(()=>{let t=class t{};t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=r({type:t}),t.\u0275inj=e({imports:[i,g,a,y,u,M,f,b,h,C,P,O,x]});let o=t;return o})();export{Y as ProductModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b}from"./chunk-S7CKRTJV.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import{a as I}from"./chunk-UJ4S2WZV.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import{a as ce,b as fe}from"./chunk-A7PUMY67.js";import"./chunk-N5AE5WMQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-PYQPYOIY.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import{e as pe}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as f}from"./chunk-JBEKD57G.js";import{m as w,n as he}from"./chunk-EDEZ3JLR.js";import{A as se}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as le,G as me,I as de,i as oe,j as D,l as re,m as ae}from"./chunk-LNJUGHOX.js";import{$b as _,Gb as v,Hb as $,Lc as te,Mc as c,Nc as U,Oc as J,Qc as y,Rc as C,Sc as g,Wc as Q,Z as z,_c as ie,bc as S,cc as ee,dc as V,dd as ne,ea as q,ec as A,fc as G,gc as p,hc as r,hd as x,ic as l,id as k,jc as T,lb as j,ma as X,na as Y,nb as m,od as H,qa as Z,ra as h,td as K,vc as P,xc as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ue=(()=>{let o=class o{constructor(){this.reportTabs=[{Title:"1.Create Order",Url:"/menu/sync-log/order/sync-order"},{Title:"2.Convert Order To Invoice",Url:"/menu/sync-log/order/convert-to-invoice"},{Title:"3.Create Invoice",Url:"/menu/sync-log/order/invoice"},{Title:"4.Create Outbound Logistic",Url:"/menu/sync-log/order/delivery"},{Title:"5.Add Payment",Url:"/menu/sync-log/order/payment"},{Title:"6.Void Invoice",Url:"/menu/sync-log/order/void-invoice"},{Title:"All",Url:"/menu/sync-log/order/all"}]}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-order"]],standalone:!1,decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,i){t&1&&(r(0,"nav",0)(1,"div",1)(2,"div"),T(3,"nav-tab",2),l()()(),T(4,"router-outlet")),t&2&&(m(3),p("Tabs",i.reportTabs))},dependencies:[ce,le],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]});let n=o;return n})();var F=class{};var E=(()=>{let o=class o{constructor(e){this.http=e}GetLoader(){return this.http.post("/api/Report/GetLoader",{})}GetSyncOrder(e){return new Promise((t,i)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/CreateInvoice",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncVoidInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/Void",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncConvertInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/ConvertToInvoice",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncDelivery(e){return new Promise((t,i)=>{this.http.post("/api/Report/Delivery",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncPayment(e){return new Promise((t,i)=>{this.http.post("/api/Report/Payment",JSON.stringify(e)).subscribe(s=>{t(s)})})}getAllReport(e){return this.http.post("/api/Report/all",JSON.stringify(e))}};o.\u0275fac=function(t){return new(t||o)(Z(pe))},o.\u0275prov=X({token:o,factory:o.\u0275fac,providedIn:"root"});let n=o;return n})();var O=(function(n){return n[n.OK=200]="OK",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.CONFLICT=409]="CONFLICT",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n})(O||{});var De=()=>["/menu/log/order"],we=(n,o,d,e,t)=>({responseCode:n,From:o,to:d,actionType:e,ChannelID:t});function Ee(n,o){if(n&1&&(r(0,"th",4)(1,"div",5)(2,"h4"),c(3),l(),r(4,"small",6),c(5),l()()()),n&2){let d=o.$implicit,e=u();m(3),U(d),m(),te(e.getTextBgColor(d)),m(),U(e.getHeaderStatusDesc(d))}}function Re(n,o){if(n&1&&(r(0,"a",10),c(1),x(2,"number"),l()),n&2){let d=u().$implicit,e=u().$implicit,t=u();p("routerLink",ie(5,De))("queryParams",ne(6,we,d.Key,t.fromQueryParam,t.toQueryParam,t.type(),e.ChannelID)),m(),J(" ",k(2,3,d.Value)," ")}}function Le(n,o){n&1&&(r(0,"span",11),c(1,"-"),l())}function Oe(n,o){if(n&1&&(r(0,"td",9),_(1,Re,3,12,"a",10)(2,Le,2,0,"span",11),l()),n&2){let d=o.$implicit;m(),S(d.Value?1:2)}}function Ie(n,o){if(n&1&&(r(0,"tr")(1,"td")(2,"a",7),T(3,"img",8),l()(),r(4,"td")(5,"div")(6,"a",7),c(7),l()(),r(8,"div"),c(9),l()(),A(10,Oe,3,1,"td",9,ee),l()),n&2){let d=o.$implicit,e=u();m(2),p("href",Q(d.Url),j),m(),p("src",e.getChannelLogo(d.Type),j),m(3),p("href",Q(d.Url),j),m(),U(d.Name),m(2),U(d.Url),m(),G(d.list)}}function Me(n,o){if(n&1&&(r(0,"td",9)(1,"div",14),c(2),x(3,"number"),l()()),n&2){let d=o.$implicit;m(2),J(" ",k(3,1,d.total)," ")}}function xe(n,o){if(n&1&&(r(0,"tfoot")(1,"tr")(2,"td",12)(3,"div",13),c(4,"Total"),l()(),A(5,Me,4,3,"td",9,V),l()()),n&2){let d=u();m(5),G(d.logsCalculation())}}var R=(()=>{let o=class o{constructor(){this.header=K([]),this.result=K([]),this.orderedHeader=H(()=>this.header().sort((e,t)=>e-t)),this.logsOrdered=H(()=>{let e=this.result();return e=e.map(t=>(this.orderedHeader().forEach(i=>{t.list.findIndex(a=>a.Key===i)===-1&&t.list.push({Key:i,Value:0}),t.list.sort((a,W)=>a.Key-W.Key)}),t)),e}),this.logsCalculation=H(()=>{let e=this.concatStatusCode(),t=[];return this.orderedHeader().forEach(i=>{let a=e.filter(W=>W.Key===i).reduce((W,be)=>W+be.Value,0);t.push({status:i,total:a})}),t}),this.type=K(null),this.headerStatus=O,this.listCalculationStatusCode=[]}set from(e){e&&(this.fromQueryParam=new Date(e).toJSON().toString())}set to(e){e&&(this.toQueryParam=new Date(e).toJSON().toString())}getHeaderStatusDesc(e){let t=null;switch(e){case O.BAD_REQUEST:t="BAD REQUEST";break;case O.CONFLICT:t="CONFLICT";break;case O.INTERNAL_SERVER_ERROR:t="INTERNAL SERVER ERROR";break;case O.NOT_FOUND:t="NOT FOUND";break;default:t="OK";break}return t}getTextBgColor(e){let t=null;switch(e){case O.OK:t="bg-success";break;case O.INTERNAL_SERVER_ERROR:t="bg-danger";break;default:t="bg-warning";break}return t}getChannelLogo(e){return f.getChannelLogoByTypeId(e)}concatStatusCode(){return this.logsOrdered().map(e=>e.list).reduce((e,t)=>[...e,...t],[])}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-table-report"]],inputs:{header:[1,"header"],result:[1,"result"],from:"from",to:"to",type:[1,"type"]},standalone:!1,decls:12,vars:1,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","5%"],[1,"text-start",2,"width","10%"],[1,"d-block"],[1,"text-white","p-1","rounded","response-desc"],["target","_blank",3,"href"],[2,"width","24px","height","24px",3,"src"],[1,"text-start"],[1,"h3","text-primary","fw-bold","ms-1",3,"routerLink","queryParams"],[1,"h3","fw-bold","ms-1"],["colspan","2"],[1,"text-center","h3","fw-bold"],[1,"d-inline-block","h3","text-primary","fw-bold","ms-1"]],template:function(t,i){t&1&&(r(0,"table",0)(1,"thead",1)(2,"tr"),T(3,"th",2),r(4,"th",3),c(5,"Channel"),l(),A(6,Ee,6,4,"th",4,V),l()(),r(8,"tbody"),A(9,Ie,12,7,"tr",null,V),l(),_(11,xe,7,0,"tfoot"),l()),t&2&&(m(6),G(i.orderedHeader()),m(3),G(i.logsOrdered()),m(2),S(i.logsCalculation().length>0?11:-1))},dependencies:[me,re],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]});let n=o;return n})();function ke(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",0)}}var ye=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.pageTitle="New Order";let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncOrder(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-sales-order"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.getChannelLogs()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,ke,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.pageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function Be(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",1)}}var Ce=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.PageTitle="Ready to Ship";let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-invoice"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,Be,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function Ne(n,o){if(n&1&&(r(0,"div",7)(1,"div",8),T(2,"app-table-report",9),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",3)}}var ge=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F;let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Shipped (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncDelivery(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-delivery"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"filterDate"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div",1)(3,"label",2),c(4,"From/To"),l(),r(5,"div",3)(6,"datepicker",4),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",5),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",6),_(11,Ne,3,5,"div",7),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function We(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",4)}}var Te=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.PageTitle="Completed";let e=new Date;this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Completed (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncPayment(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-payment"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,We,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function Ae(n,o){}function Ge(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=o,e=u();m(2),p("result",d.Body)("header",d.Header)("from",e.filter==null?null:e.filter.From)("to",e.filter==null?null:e.filter.To)}}var ve=(()=>{let o=class o{constructor(){this.reportOrderService=h(E),this.datePipe=h(D),this.filter=new F}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":t+"-"} ${i})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe(q(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(z())}onFilter(){this.updatePageTitle(),this.initData()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-all"]],standalone:!1,decls:15,vars:10,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(t,i){if(t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,Ae,0,0),x(12,"async"),_(13,Ge,3,4,"div",6),x(14,"async"),l()()()),t&2){let s;p("headerTitle",i.pageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(k(12,6,i.pageLoader$)?11:-1),m(2),S((s=k(14,8,i.reportData$))?13:-1,s)}},dependencies:[w,b,R,oe],encapsulation:2});let n=o;return n})();function Ue(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",1)}}var _e=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.PageTitle="Convert Sales Order To Invoice";let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Convert Sales Order To Invoice (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-convert-invoice"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,Ue,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function je(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",1)}}var Se=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.PageTitle="Ready to Ship";let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-void-invoice"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,je,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();var Ve=[{path:"",component:ue,children:[{path:"",redirectTo:"all",pathMatch:"full"},{path:"sync-order",component:ye,canActivate:[I],data:{title:"Sync Order"}},{path:"convert-to-invoice",component:_e,canActivate:[I],data:{title:"Sync Convert to Invoice"}},{path:"invoice",component:Ce,canActivate:[I],data:{title:"Sync Invoice"}},{path:"delivery",component:ge,canActivate:[I],data:{title:"Sync Delivery"}},{path:"payment",component:Te,canActivate:[I],data:{title:"Sync Payment"}},{path:"void-invoice",component:Se,canActivate:[I],data:{title:"Sync void invoice"}},{path:"all",component:ve,canActivate:[I],data:{title:"All Report"}}]}],hi=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=$({type:o}),o.\u0275inj=Y({imports:[ae,fe,se,he,b,de.forChild(Ve)]});let n=o;return n})();export{hi as OrderModule};
|
|
1
|
+
import{a as b}from"./chunk-S7CKRTJV.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import{a as I}from"./chunk-NH6QGSVC.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import{a as ce,b as fe}from"./chunk-A7PUMY67.js";import"./chunk-N5AE5WMQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-BQEBDVGB.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import{e as pe}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as f}from"./chunk-JBEKD57G.js";import{m as w,n as he}from"./chunk-EDEZ3JLR.js";import{A as se}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as le,G as me,I as de,i as oe,j as D,l as re,m as ae}from"./chunk-LNJUGHOX.js";import{$b as _,Gb as v,Hb as $,Lc as te,Mc as c,Nc as U,Oc as J,Qc as y,Rc as C,Sc as g,Wc as Q,Z as z,_c as ie,bc as S,cc as ee,dc as V,dd as ne,ea as q,ec as A,fc as G,gc as p,hc as r,hd as x,ic as l,id as k,jc as T,lb as j,ma as X,na as Y,nb as m,od as H,qa as Z,ra as h,td as K,vc as P,xc as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ue=(()=>{let o=class o{constructor(){this.reportTabs=[{Title:"1.Create Order",Url:"/menu/sync-log/order/sync-order"},{Title:"2.Convert Order To Invoice",Url:"/menu/sync-log/order/convert-to-invoice"},{Title:"3.Create Invoice",Url:"/menu/sync-log/order/invoice"},{Title:"4.Create Outbound Logistic",Url:"/menu/sync-log/order/delivery"},{Title:"5.Add Payment",Url:"/menu/sync-log/order/payment"},{Title:"6.Void Invoice",Url:"/menu/sync-log/order/void-invoice"},{Title:"All",Url:"/menu/sync-log/order/all"}]}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-order"]],standalone:!1,decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(t,i){t&1&&(r(0,"nav",0)(1,"div",1)(2,"div"),T(3,"nav-tab",2),l()()(),T(4,"router-outlet")),t&2&&(m(3),p("Tabs",i.reportTabs))},dependencies:[ce,le],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]});let n=o;return n})();var F=class{};var E=(()=>{let o=class o{constructor(e){this.http=e}GetLoader(){return this.http.post("/api/Report/GetLoader",{})}GetSyncOrder(e){return new Promise((t,i)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/CreateInvoice",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncVoidInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/Void",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncConvertInvoice(e){return new Promise((t,i)=>{this.http.post("/api/Report/ConvertToInvoice",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncDelivery(e){return new Promise((t,i)=>{this.http.post("/api/Report/Delivery",JSON.stringify(e)).subscribe(s=>{t(s)})})}GetSyncPayment(e){return new Promise((t,i)=>{this.http.post("/api/Report/Payment",JSON.stringify(e)).subscribe(s=>{t(s)})})}getAllReport(e){return this.http.post("/api/Report/all",JSON.stringify(e))}};o.\u0275fac=function(t){return new(t||o)(Z(pe))},o.\u0275prov=X({token:o,factory:o.\u0275fac,providedIn:"root"});let n=o;return n})();var O=(function(n){return n[n.OK=200]="OK",n[n.BAD_REQUEST=400]="BAD_REQUEST",n[n.CONFLICT=409]="CONFLICT",n[n.NOT_FOUND=404]="NOT_FOUND",n[n.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",n})(O||{});var De=()=>["/menu/log/order"],we=(n,o,d,e,t)=>({responseCode:n,From:o,to:d,actionType:e,ChannelID:t});function Ee(n,o){if(n&1&&(r(0,"th",4)(1,"div",5)(2,"h4"),c(3),l(),r(4,"small",6),c(5),l()()()),n&2){let d=o.$implicit,e=u();m(3),U(d),m(),te(e.getTextBgColor(d)),m(),U(e.getHeaderStatusDesc(d))}}function Re(n,o){if(n&1&&(r(0,"a",10),c(1),x(2,"number"),l()),n&2){let d=u().$implicit,e=u().$implicit,t=u();p("routerLink",ie(5,De))("queryParams",ne(6,we,d.Key,t.fromQueryParam,t.toQueryParam,t.type(),e.ChannelID)),m(),J(" ",k(2,3,d.Value)," ")}}function Le(n,o){n&1&&(r(0,"span",11),c(1,"-"),l())}function Oe(n,o){if(n&1&&(r(0,"td",9),_(1,Re,3,12,"a",10)(2,Le,2,0,"span",11),l()),n&2){let d=o.$implicit;m(),S(d.Value?1:2)}}function Ie(n,o){if(n&1&&(r(0,"tr")(1,"td")(2,"a",7),T(3,"img",8),l()(),r(4,"td")(5,"div")(6,"a",7),c(7),l()(),r(8,"div"),c(9),l()(),A(10,Oe,3,1,"td",9,ee),l()),n&2){let d=o.$implicit,e=u();m(2),p("href",Q(d.Url),j),m(),p("src",e.getChannelLogo(d.Type),j),m(3),p("href",Q(d.Url),j),m(),U(d.Name),m(2),U(d.Url),m(),G(d.list)}}function Me(n,o){if(n&1&&(r(0,"td",9)(1,"div",14),c(2),x(3,"number"),l()()),n&2){let d=o.$implicit;m(2),J(" ",k(3,1,d.total)," ")}}function xe(n,o){if(n&1&&(r(0,"tfoot")(1,"tr")(2,"td",12)(3,"div",13),c(4,"Total"),l()(),A(5,Me,4,3,"td",9,V),l()()),n&2){let d=u();m(5),G(d.logsCalculation())}}var R=(()=>{let o=class o{constructor(){this.header=K([]),this.result=K([]),this.orderedHeader=H(()=>this.header().sort((e,t)=>e-t)),this.logsOrdered=H(()=>{let e=this.result();return e=e.map(t=>(this.orderedHeader().forEach(i=>{t.list.findIndex(a=>a.Key===i)===-1&&t.list.push({Key:i,Value:0}),t.list.sort((a,W)=>a.Key-W.Key)}),t)),e}),this.logsCalculation=H(()=>{let e=this.concatStatusCode(),t=[];return this.orderedHeader().forEach(i=>{let a=e.filter(W=>W.Key===i).reduce((W,be)=>W+be.Value,0);t.push({status:i,total:a})}),t}),this.type=K(null),this.headerStatus=O,this.listCalculationStatusCode=[]}set from(e){e&&(this.fromQueryParam=new Date(e).toJSON().toString())}set to(e){e&&(this.toQueryParam=new Date(e).toJSON().toString())}getHeaderStatusDesc(e){let t=null;switch(e){case O.BAD_REQUEST:t="BAD REQUEST";break;case O.CONFLICT:t="CONFLICT";break;case O.INTERNAL_SERVER_ERROR:t="INTERNAL SERVER ERROR";break;case O.NOT_FOUND:t="NOT FOUND";break;default:t="OK";break}return t}getTextBgColor(e){let t=null;switch(e){case O.OK:t="bg-success";break;case O.INTERNAL_SERVER_ERROR:t="bg-danger";break;default:t="bg-warning";break}return t}getChannelLogo(e){return f.getChannelLogoByTypeId(e)}concatStatusCode(){return this.logsOrdered().map(e=>e.list).reduce((e,t)=>[...e,...t],[])}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-table-report"]],inputs:{header:[1,"header"],result:[1,"result"],from:"from",to:"to",type:[1,"type"]},standalone:!1,decls:12,vars:1,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","5%"],[1,"text-start",2,"width","10%"],[1,"d-block"],[1,"text-white","p-1","rounded","response-desc"],["target","_blank",3,"href"],[2,"width","24px","height","24px",3,"src"],[1,"text-start"],[1,"h3","text-primary","fw-bold","ms-1",3,"routerLink","queryParams"],[1,"h3","fw-bold","ms-1"],["colspan","2"],[1,"text-center","h3","fw-bold"],[1,"d-inline-block","h3","text-primary","fw-bold","ms-1"]],template:function(t,i){t&1&&(r(0,"table",0)(1,"thead",1)(2,"tr"),T(3,"th",2),r(4,"th",3),c(5,"Channel"),l(),A(6,Ee,6,4,"th",4,V),l()(),r(8,"tbody"),A(9,Ie,12,7,"tr",null,V),l(),_(11,xe,7,0,"tfoot"),l()),t&2&&(m(6),G(i.orderedHeader()),m(3),G(i.logsOrdered()),m(2),S(i.logsCalculation().length>0?11:-1))},dependencies:[me,re],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]});let n=o;return n})();function ke(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",0)}}var ye=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.pageTitle="New Order";let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncOrder(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-sales-order"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.getChannelLogs()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,ke,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.pageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function Be(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",1)}}var Ce=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.PageTitle="Ready to Ship";let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-invoice"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,Be,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function Ne(n,o){if(n&1&&(r(0,"div",7)(1,"div",8),T(2,"app-table-report",9),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",3)}}var ge=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F;let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Shipped (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncDelivery(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-delivery"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"filterDate"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div",1)(3,"label",2),c(4,"From/To"),l(),r(5,"div",3)(6,"datepicker",4),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",5),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",6),_(11,Ne,3,5,"div",7),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function We(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",4)}}var Te=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.PageTitle="Completed";let e=new Date;this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Completed (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncPayment(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-payment"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,We,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function Ae(n,o){}function Ge(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=o,e=u();m(2),p("result",d.Body)("header",d.Header)("from",e.filter==null?null:e.filter.From)("to",e.filter==null?null:e.filter.To)}}var ve=(()=>{let o=class o{constructor(){this.reportOrderService=h(E),this.datePipe=h(D),this.filter=new F}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":t+"-"} ${i})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe(q(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(z())}onFilter(){this.updatePageTitle(),this.initData()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-all"]],standalone:!1,decls:15,vars:10,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(t,i){if(t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,Ae,0,0),x(12,"async"),_(13,Ge,3,4,"div",6),x(14,"async"),l()()()),t&2){let s;p("headerTitle",i.pageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(k(12,6,i.pageLoader$)?11:-1),m(2),S((s=k(14,8,i.reportData$))?13:-1,s)}},dependencies:[w,b,R,oe],encapsulation:2});let n=o;return n})();function Ue(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",1)}}var _e=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.PageTitle="Convert Sales Order To Invoice";let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Convert Sales Order To Invoice (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-convert-invoice"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,Ue,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();function je(n,o){if(n&1&&(r(0,"div",6)(1,"div",7),T(2,"app-table-report",8),l()()),n&2){let d=u();m(2),p("result",d.result)("header",d.header)("from",d.filter.From)("to",d.filter.To)("type",1)}}var Se=(()=>{let o=class o{constructor(){this.http=h(E),this.datePipe=h(D),this.filter=new F,this.PageTitle="Ready to Ship";let e=new Date;this.maxDate=e,this.minDate=f.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=f.formatTitleFromDate(this.filter.From,this.filter.To),t=this.datePipe.transform(this.filter.From,e),i=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":t+"-"} ${i})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncInvoice(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-void-invoice"]],standalone:!1,decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(t,i){t&1&&(r(0,"mainpanel",0),P("onSubmit",function(){return i.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),c(4,"From/To"),l(),r(5,"div",2)(6,"datepicker",3),g("dateChange",function(a){return C(i.filter.From,a)||(i.filter.From=a),a}),l()(),r(7,"div")(8,"datepicker",4),g("dateChange",function(a){return C(i.filter.To,a)||(i.filter.To=a),a}),l()()()(),r(9,"content")(10,"div",5),_(11,je,3,5,"div",6),l()()()),t&2&&(p("headerTitle",i.PageTitle)("hideSearchBox",!0),m(6),y("date",i.filter.From),m(2),y("date",i.filter.To),m(3),S(i.result?11:-1))},dependencies:[w,b,R],encapsulation:2});let n=o;return n})();var Ve=[{path:"",component:ue,children:[{path:"",redirectTo:"all",pathMatch:"full"},{path:"sync-order",component:ye,canActivate:[I],data:{title:"Sync Order"}},{path:"convert-to-invoice",component:_e,canActivate:[I],data:{title:"Sync Convert to Invoice"}},{path:"invoice",component:Ce,canActivate:[I],data:{title:"Sync Invoice"}},{path:"delivery",component:ge,canActivate:[I],data:{title:"Sync Delivery"}},{path:"payment",component:Te,canActivate:[I],data:{title:"Sync Payment"}},{path:"void-invoice",component:Se,canActivate:[I],data:{title:"Sync void invoice"}},{path:"all",component:ve,canActivate:[I],data:{title:"All Report"}}]}],hi=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=$({type:o}),o.\u0275inj=Y({imports:[ae,fe,se,he,b,de.forChild(Ve)]});let n=o;return n})();export{hi as OrderModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as _e}from"./chunk-TYQY4WPY.js";import"./chunk-IM5M2CAI.js";import{a as fe}from"./chunk-UN53SVGE.js";import{a as ge}from"./chunk-GG3MDS4C.js";import{a as V}from"./chunk-ISMIPSYN.js";import{c as Se,d as O,e as R}from"./chunk-S5R6MCNP.js";import{c as ue,d as Ce}from"./chunk-VX75I7HA.js";import"./chunk-DAUML5UD.js";import"./chunk-DXYMG6QK.js";import"./chunk-3WRXJBHF.js";import"./chunk-UH5C5HXK.js";import"./chunk-O2YF5VGD.js";import"./chunk-63I3I3MX.js";import{a as me}from"./chunk-ESXTZ7DM.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import{a as ie}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import"./chunk-E4BL56JJ.js";import{e as se}from"./chunk-6KWG6O5L.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import{i as N}from"./chunk-PYQPYOIY.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as E}from"./chunk-AGBJEXIM.js";import{b as oe,e as re}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as _}from"./chunk-JBEKD57G.js";import{d as ce,l as pe,m as he,n as de}from"./chunk-EDEZ3JLR.js";import{A as ne,c as Z,h as $,m as ee,o as te}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as ae,c as le}from"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as X,m as Y}from"./chunk-LNJUGHOX.js";import{$b as F,$c as J,G as k,Gb as A,Ha as y,Mb as G,Mc as v,Qc as b,Rc as I,Sc as T,Tc as K,Zc as Q,bc as M,ea as H,gc as f,hc as s,hd as P,ic as d,id as w,jc as j,ma as W,nb as C,nc as z,oc as q,qc as D,ra as c,vc as S,xa as p,xc as g,ya as h}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as B,b as U}from"./chunk-66YHNWRR.js";var x=(()=>{let l=class l{constructor(){this.authService=c(N),this.channelOptions=this.authService.getChannels()}filterSelectedChannels(n,r){let e=Object.assign([],this.channelOptions),i=[],o;return n.forEach(t=>{o=e.find(u=>u.ID==t?.parent?.id),o&&(o=U(B({},o),{Name:`${t?.parent?.label} - ${t?.label}`,LocationID:t?.id}),i.push(o))}),r.forEach(t=>{o=e.find(u=>u.ID==t.id),o&&i.push(o)}),i}generateFilterLocation(n,r){let e=[],i=[],o=[];return n.length>0?(e=n.map(t=>t.id),i=n.filter(t=>_.IsNotEmpty(t?.parent?.id)).map(t=>t?.parent?.id).filter((t,u,L)=>L.indexOf(t)===u)):(e=[],i=[]),o=r.map(t=>t.id),o=o.concat(i).filter((t,u,L)=>L.indexOf(t)===u),{locationIds:e,channelIds:o}}};l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=W({token:l,factory:l.\u0275fac});let a=l;return a})();var ve=a=>[a];function be(a,l){if(a&1){let m=D();s(0,"button",17),S("click",function(){p(m);let r=g(2),e=g();return h(e.onUpdateItems(r))}),j(1,"i",18),v(2," Update "),d()}}function Ie(a,l){if(a&1&&(z(0),F(1,be,3,0,"button",16),q()),a&2){let m=g(),n=g();C(),M(n.productService.hasSelectionVariant(m)?1:-1)}}function Pe(a,l){if(a&1&&(s(0,"actions")(1,"div",14),G(2,Ie,2,1,"ng-container",15),d()()),a&2){let m=g();C(2),f("ngxPermissionsOnly",J(1,ve,m.inventoryUpdateRole))}}function we(a,l){if(a&1){let m=D();s(0,"app-table",19),S("onToggle",function(r){p(m);let e=g();return h(e.onShowDifferenceStock(r))})("onSubmit",function(r){p(m);let e=g();return h(e.updateStockByVariant(r))}),d()}if(a&2){let m=g();f("data",l)("channel",m.channels())("showProductToggle",!0)("hiddenIPOSInventory",m.searchFilter.HiddenIPOSInventory)}}var pt=(()=>{let l=class l{constructor(){this.http=c(re),this.toastr=c(oe),this.dialog=c(ce),this.productService=c(me),this.authService=c(N),this.mainPanelService=c(pe),this.placeholderService=c(ue),this.paginationService=c(O),this.multiChannelService=c(x),this.updateResHandling=c(R),this.searchFilter={PageNumber:1,RowCount:100},this.loaderEndpoint="InventoryLoader/GetMultipleInventoryComparison",this.dataEndpoint="Inventory/GetMultipleChannelComparison",this.allDataCountEndpoint="Inventory/GetMultipleChannelComparisonRowCount",this.selectedLocations=y([]),this.selectedChannels=y([]),this.channels=y([]),this.inventoryUpdateRole=ie.InventoryUpdate,this.searchPlaceholder=y("Search ..."),this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.paginationService.fethRowCountEndpoint=this.allDataCountEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`,{}).pipe(H(n=>{n.Filter={PageNumber:n.Filter.PageNumber,filterModel:V.ALL,RowCount:n.Filter.PageSize,HiddenIPOSInventory:n.Filter.HiddenIPOSInventory,SearchType:n.Filter.SearchType,NumberFilterComparator:n.Filter.NumberFilterComparator},this.searchFilter=n.Filter,this.initSearchPlaceholder(),this.mainPanelService.openModalFilter()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}onChannelChange(n=[]){let r=n.filter(i=>_.isValidGUID(i.id)==!1),e=n.filter(i=>_.isValidGUID(i.id));this.selectedLocations.set(r),this.selectedChannels.set(e)}onSearch(n){let r=this.multiChannelService.filterSelectedChannels(this.selectedLocations(),this.selectedChannels());this.channels.set(r);let e=this.multiChannelService.generateFilterLocation(this.selectedLocations(),this.selectedChannels());this.searchFilter.ListChannelID=e.channelIds,this.searchFilter.ListLocationID=e.locationIds,this.searchFilter.text=n,this.initSearchPlaceholder(),this.paginationService.reloadPagination(this.searchFilter)}updateStock(n,r){if(n.length>0){let e=[];n.forEach(t=>{t.Channel?.forEach(u=>{e.push({ChannelItemID:u?.ChannelItemID,ChannelVariationID:u?.ChannelVariationID,Inventory:t.Inventory,LocationID:u?.LocationID})})});let o={ListChannelID:r.filter(t=>t.selected).map(t=>t.ID),List:e};this.http.post(E.UpdateInventoryChannel,o).subscribe(t=>{this.paginationService.reloadPagination(this.searchFilter),this.toastr.success("Successfully updated "+o.List.length+" variants in "+o.ListChannelID.length+" channels","Success")})}}updateStockByVariant(n){let r=n.InventoryMultiwarehouse[0]?.LocationID,e={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,NewQuantity:n.Inventory,VariantID:n.ID,SKU:n?.Sku,LocationID:r};this.http.post(E.UpdateUpdateQuantityByItem,e).subscribe(i=>{this.paginationService.reloadPagination(this.searchFilter),this.handlingUpdateStock(i)})}handlingUpdateStock(n){if(n){let r=n?.Response?.Fail_list,e=n?.Response?.Success_list;this.updateResHandling.responseHandling(e,r,"Stock")}else this.toastr.error(n?.Exception,"Error")}onShowDifferenceStock(n){n?this.searchFilter.filterModel=V.DIFFERENCE:this.searchFilter.filterModel=V.ALL,this.paginationService.reloadPagination(this.searchFilter)}onUpdateItems(n){let r=this.productService.selectedVariantProduct(n),e=this.channelOptions.filter(i=>this.channels()?.find(o=>o.ID===i.ID));this.dialog.open(ge,{data:{selectedItems:r,channels:JSON.parse(JSON.stringify(e))},width:"400px"}).afterClosed().pipe(k(i=>_.IsNotEmpty(i))).subscribe(i=>{this.updateStock(r,i)})}};l.\u0275fac=function(r){return new(r||l)},l.\u0275cmp=A({type:l,selectors:[["app-multi-channel-comparison"]],features:[Q([O,x,R])],decls:28,vars:25,consts:[["headerTitle","Inventory Comparison","textButton","Search",3,"onSubmit","hideSearchBox","searchBoxPlaceHolder"],[1,"mb-5"],["for","selectChannel",1,"fw-bold","mb-3"],["id","selectChannel",3,"onChannelChange","multiple"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["table","inventory",3,"data","channel","showProductToggle","hiddenIPOSInventory"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[1,"d-flex"],[4,"ngxPermissionsOnly"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3",3,"click"],[1,"fas","fa-chevron-circle-up"],["table","inventory",3,"onToggle","onSubmit","data","channel","showProductToggle","hiddenIPOSInventory"]],template:function(r,e){if(r&1){let i=D();s(0,"mainpanel",0),S("onSubmit",function(t){return p(i),h(e.onSearch(t))}),F(1,Pe,3,3,"actions"),P(2,"async"),s(3,"filters"),K(4),P(5,"async"),s(6,"div",1)(7,"label",2),v(8,"Channel"),d(),s(9,"multiwarehouse-tree-select",3),S("onChannelChange",function(t){return p(i),h(e.onChannelChange(t))}),d()(),s(10,"div",1)(11,"filter-query-type",4),T("numberFilterComparatorChange",function(t){return p(i),I(e.searchFilter.NumberFilterComparator,t)||(e.searchFilter.NumberFilterComparator=t),h(t)})("searchTypeChange",function(t){return p(i),I(e.searchFilter.SearchType,t)||(e.searchFilter.SearchType=t),h(t)}),d()(),s(12,"div",1)(13,"label",5),v(14,"PageNumber"),d(),s(15,"input",6),T("ngModelChange",function(t){return p(i),I(e.searchFilter.PageNumber,t)||(e.searchFilter.PageNumber=t),h(t)}),d()(),s(16,"div")(17,"label",7),v(18,"Page Size"),d(),s(19,"input",8),T("ngModelChange",function(t){return p(i),I(e.searchFilter.RowCount,t)||(e.searchFilter.RowCount=t),h(t)}),d()()(),s(20,"content")(21,"div",9)(22,"div",10)(23,"div",11),F(24,we,1,4,"app-table",12),P(25,"async"),s(26,"infinite-paginator",13),P(27,"async"),S("onNextPage",function(){return p(i),h(e.paginationService.onNextPage(e.searchFilter))})("onLastPage",function(){return p(i),h(e.paginationService.onLastPage(e.searchFilter))})("onGetRowCount",function(){return p(i),h(e.paginationService.getRowCount(e.searchFilter))}),d()()()()()()}if(r&2){let i,o;f("hideSearchBox",!1)("searchBoxPlaceHolder",e.searchPlaceholder()),C(),M((i=w(2,17,e.paginationService.data$))?1:-1,i);let t=w(5,19,e.loader$);C(8),f("multiple",!0),C(2),f("numberFilterComparatorOptions",t==null||t.Options==null?null:t.Options.SearchComparatorTypeOptions),b("numberFilterComparator",e.searchFilter.NumberFilterComparator),f("searchTypeOptions",t==null||t.Options==null?null:t.Options.SearchSKUOnlyOrSKUNameOptions),b("searchType",e.searchFilter.SearchType),C(4),b("ngModel",e.searchFilter.PageNumber),C(4),b("ngModel",e.searchFilter.RowCount),C(5),M((o=w(25,21,e.paginationService.data$))?24:-1,o),C(2),f("totalData",e.paginationService.totalData())("hideCount",e.paginationService.hideCount())("rowCount",w(27,23,e.paginationService.totalRowCount$))("pageNumber",e.paginationService.pageNumber())("disableNextButton",e.paginationService.disableNextButton())("goToLastPage",e.paginationService.isLastPage())}},dependencies:[Y,de,he,fe,ne,Z,te,$,ee,Se,_e,le,ae,se,Ce,X],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]});let a=l;return a})();export{pt as MultiChannelComparison};
|
|
1
|
+
import{a as _e}from"./chunk-TYQY4WPY.js";import"./chunk-IM5M2CAI.js";import{a as fe}from"./chunk-E32KODU7.js";import{a as ge}from"./chunk-GG3MDS4C.js";import{a as V}from"./chunk-ISMIPSYN.js";import{c as Se,d as O,e as R}from"./chunk-S5R6MCNP.js";import{c as ue,d as Ce}from"./chunk-VX75I7HA.js";import"./chunk-DAUML5UD.js";import"./chunk-DXYMG6QK.js";import"./chunk-3WRXJBHF.js";import"./chunk-UH5C5HXK.js";import"./chunk-O2YF5VGD.js";import"./chunk-63I3I3MX.js";import{a as me}from"./chunk-LEUBNBGC.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import{a as ie}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import"./chunk-OQM7K2EA.js";import{e as se}from"./chunk-6KWG6O5L.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import{i as N}from"./chunk-BQEBDVGB.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as E}from"./chunk-AGBJEXIM.js";import{b as oe,e as re}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as _}from"./chunk-JBEKD57G.js";import{d as ce,l as pe,m as he,n as de}from"./chunk-EDEZ3JLR.js";import{A as ne,c as Z,h as $,m as ee,o as te}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as ae,c as le}from"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as X,m as Y}from"./chunk-LNJUGHOX.js";import{$b as F,$c as J,G as k,Gb as A,Ha as y,Mb as G,Mc as v,Qc as b,Rc as I,Sc as T,Tc as K,Zc as Q,bc as M,ea as H,gc as f,hc as s,hd as P,ic as d,id as w,jc as j,ma as W,nb as C,nc as z,oc as q,qc as D,ra as c,vc as S,xa as p,xc as g,ya as h}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as B,b as U}from"./chunk-66YHNWRR.js";var x=(()=>{let l=class l{constructor(){this.authService=c(N),this.channelOptions=this.authService.getChannels()}filterSelectedChannels(n,r){let e=Object.assign([],this.channelOptions),i=[],o;return n.forEach(t=>{o=e.find(u=>u.ID==t?.parent?.id),o&&(o=U(B({},o),{Name:`${t?.parent?.label} - ${t?.label}`,LocationID:t?.id}),i.push(o))}),r.forEach(t=>{o=e.find(u=>u.ID==t.id),o&&i.push(o)}),i}generateFilterLocation(n,r){let e=[],i=[],o=[];return n.length>0?(e=n.map(t=>t.id),i=n.filter(t=>_.IsNotEmpty(t?.parent?.id)).map(t=>t?.parent?.id).filter((t,u,L)=>L.indexOf(t)===u)):(e=[],i=[]),o=r.map(t=>t.id),o=o.concat(i).filter((t,u,L)=>L.indexOf(t)===u),{locationIds:e,channelIds:o}}};l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=W({token:l,factory:l.\u0275fac});let a=l;return a})();var ve=a=>[a];function be(a,l){if(a&1){let m=D();s(0,"button",17),S("click",function(){p(m);let r=g(2),e=g();return h(e.onUpdateItems(r))}),j(1,"i",18),v(2," Update "),d()}}function Ie(a,l){if(a&1&&(z(0),F(1,be,3,0,"button",16),q()),a&2){let m=g(),n=g();C(),M(n.productService.hasSelectionVariant(m)?1:-1)}}function Pe(a,l){if(a&1&&(s(0,"actions")(1,"div",14),G(2,Ie,2,1,"ng-container",15),d()()),a&2){let m=g();C(2),f("ngxPermissionsOnly",J(1,ve,m.inventoryUpdateRole))}}function we(a,l){if(a&1){let m=D();s(0,"app-table",19),S("onToggle",function(r){p(m);let e=g();return h(e.onShowDifferenceStock(r))})("onSubmit",function(r){p(m);let e=g();return h(e.updateStockByVariant(r))}),d()}if(a&2){let m=g();f("data",l)("channel",m.channels())("showProductToggle",!0)("hiddenIPOSInventory",m.searchFilter.HiddenIPOSInventory)}}var pt=(()=>{let l=class l{constructor(){this.http=c(re),this.toastr=c(oe),this.dialog=c(ce),this.productService=c(me),this.authService=c(N),this.mainPanelService=c(pe),this.placeholderService=c(ue),this.paginationService=c(O),this.multiChannelService=c(x),this.updateResHandling=c(R),this.searchFilter={PageNumber:1,RowCount:100},this.loaderEndpoint="InventoryLoader/GetMultipleInventoryComparison",this.dataEndpoint="Inventory/GetMultipleChannelComparison",this.allDataCountEndpoint="Inventory/GetMultipleChannelComparisonRowCount",this.selectedLocations=y([]),this.selectedChannels=y([]),this.channels=y([]),this.inventoryUpdateRole=ie.InventoryUpdate,this.searchPlaceholder=y("Search ..."),this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.paginationService.fethRowCountEndpoint=this.allDataCountEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`,{}).pipe(H(n=>{n.Filter={PageNumber:n.Filter.PageNumber,filterModel:V.ALL,RowCount:n.Filter.PageSize,HiddenIPOSInventory:n.Filter.HiddenIPOSInventory,SearchType:n.Filter.SearchType,NumberFilterComparator:n.Filter.NumberFilterComparator},this.searchFilter=n.Filter,this.initSearchPlaceholder(),this.mainPanelService.openModalFilter()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}onChannelChange(n=[]){let r=n.filter(i=>_.isValidGUID(i.id)==!1),e=n.filter(i=>_.isValidGUID(i.id));this.selectedLocations.set(r),this.selectedChannels.set(e)}onSearch(n){let r=this.multiChannelService.filterSelectedChannels(this.selectedLocations(),this.selectedChannels());this.channels.set(r);let e=this.multiChannelService.generateFilterLocation(this.selectedLocations(),this.selectedChannels());this.searchFilter.ListChannelID=e.channelIds,this.searchFilter.ListLocationID=e.locationIds,this.searchFilter.text=n,this.initSearchPlaceholder(),this.paginationService.reloadPagination(this.searchFilter)}updateStock(n,r){if(n.length>0){let e=[];n.forEach(t=>{t.Channel?.forEach(u=>{e.push({ChannelItemID:u?.ChannelItemID,ChannelVariationID:u?.ChannelVariationID,Inventory:t.Inventory,LocationID:u?.LocationID})})});let o={ListChannelID:r.filter(t=>t.selected).map(t=>t.ID),List:e};this.http.post(E.UpdateInventoryChannel,o).subscribe(t=>{this.paginationService.reloadPagination(this.searchFilter),this.toastr.success("Successfully updated "+o.List.length+" variants in "+o.ListChannelID.length+" channels","Success")})}}updateStockByVariant(n){let r=n.InventoryMultiwarehouse[0]?.LocationID,e={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,NewQuantity:n.Inventory,VariantID:n.ID,SKU:n?.Sku,LocationID:r};this.http.post(E.UpdateUpdateQuantityByItem,e).subscribe(i=>{this.paginationService.reloadPagination(this.searchFilter),this.handlingUpdateStock(i)})}handlingUpdateStock(n){if(n){let r=n?.Response?.Fail_list,e=n?.Response?.Success_list;this.updateResHandling.responseHandling(e,r,"Stock")}else this.toastr.error(n?.Exception,"Error")}onShowDifferenceStock(n){n?this.searchFilter.filterModel=V.DIFFERENCE:this.searchFilter.filterModel=V.ALL,this.paginationService.reloadPagination(this.searchFilter)}onUpdateItems(n){let r=this.productService.selectedVariantProduct(n),e=this.channelOptions.filter(i=>this.channels()?.find(o=>o.ID===i.ID));this.dialog.open(ge,{data:{selectedItems:r,channels:JSON.parse(JSON.stringify(e))},width:"400px"}).afterClosed().pipe(k(i=>_.IsNotEmpty(i))).subscribe(i=>{this.updateStock(r,i)})}};l.\u0275fac=function(r){return new(r||l)},l.\u0275cmp=A({type:l,selectors:[["app-multi-channel-comparison"]],features:[Q([O,x,R])],decls:28,vars:25,consts:[["headerTitle","Inventory Comparison","textButton","Search",3,"onSubmit","hideSearchBox","searchBoxPlaceHolder"],[1,"mb-5"],["for","selectChannel",1,"fw-bold","mb-3"],["id","selectChannel",3,"onChannelChange","multiple"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["table","inventory",3,"data","channel","showProductToggle","hiddenIPOSInventory"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[1,"d-flex"],[4,"ngxPermissionsOnly"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3",3,"click"],[1,"fas","fa-chevron-circle-up"],["table","inventory",3,"onToggle","onSubmit","data","channel","showProductToggle","hiddenIPOSInventory"]],template:function(r,e){if(r&1){let i=D();s(0,"mainpanel",0),S("onSubmit",function(t){return p(i),h(e.onSearch(t))}),F(1,Pe,3,3,"actions"),P(2,"async"),s(3,"filters"),K(4),P(5,"async"),s(6,"div",1)(7,"label",2),v(8,"Channel"),d(),s(9,"multiwarehouse-tree-select",3),S("onChannelChange",function(t){return p(i),h(e.onChannelChange(t))}),d()(),s(10,"div",1)(11,"filter-query-type",4),T("numberFilterComparatorChange",function(t){return p(i),I(e.searchFilter.NumberFilterComparator,t)||(e.searchFilter.NumberFilterComparator=t),h(t)})("searchTypeChange",function(t){return p(i),I(e.searchFilter.SearchType,t)||(e.searchFilter.SearchType=t),h(t)}),d()(),s(12,"div",1)(13,"label",5),v(14,"PageNumber"),d(),s(15,"input",6),T("ngModelChange",function(t){return p(i),I(e.searchFilter.PageNumber,t)||(e.searchFilter.PageNumber=t),h(t)}),d()(),s(16,"div")(17,"label",7),v(18,"Page Size"),d(),s(19,"input",8),T("ngModelChange",function(t){return p(i),I(e.searchFilter.RowCount,t)||(e.searchFilter.RowCount=t),h(t)}),d()()(),s(20,"content")(21,"div",9)(22,"div",10)(23,"div",11),F(24,we,1,4,"app-table",12),P(25,"async"),s(26,"infinite-paginator",13),P(27,"async"),S("onNextPage",function(){return p(i),h(e.paginationService.onNextPage(e.searchFilter))})("onLastPage",function(){return p(i),h(e.paginationService.onLastPage(e.searchFilter))})("onGetRowCount",function(){return p(i),h(e.paginationService.getRowCount(e.searchFilter))}),d()()()()()()}if(r&2){let i,o;f("hideSearchBox",!1)("searchBoxPlaceHolder",e.searchPlaceholder()),C(),M((i=w(2,17,e.paginationService.data$))?1:-1,i);let t=w(5,19,e.loader$);C(8),f("multiple",!0),C(2),f("numberFilterComparatorOptions",t==null||t.Options==null?null:t.Options.SearchComparatorTypeOptions),b("numberFilterComparator",e.searchFilter.NumberFilterComparator),f("searchTypeOptions",t==null||t.Options==null?null:t.Options.SearchSKUOnlyOrSKUNameOptions),b("searchType",e.searchFilter.SearchType),C(4),b("ngModel",e.searchFilter.PageNumber),C(4),b("ngModel",e.searchFilter.RowCount),C(5),M((o=w(25,21,e.paginationService.data$))?24:-1,o),C(2),f("totalData",e.paginationService.totalData())("hideCount",e.paginationService.hideCount())("rowCount",w(27,23,e.paginationService.totalRowCount$))("pageNumber",e.paginationService.pageNumber())("disableNextButton",e.paginationService.disableNextButton())("goToLastPage",e.paginationService.isLastPage())}},dependencies:[Y,de,he,fe,ne,Z,te,$,ee,Se,_e,le,ae,se,Ce,X],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]});let a=l;return a})();export{pt as MultiChannelComparison};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as b,b as st}from"./chunk-VWX2IX64.js";import"./chunk-BKR7YPEW.js";import{a as ct}from"./chunk-
|
|
1
|
+
import{a as b,b as st}from"./chunk-VWX2IX64.js";import"./chunk-BKR7YPEW.js";import{a as ct}from"./chunk-L22SKCLL.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as lt}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-BQEBDVGB.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as at,n as rt}from"./chunk-EDEZ3JLR.js";import{A as ot,h as it,m as nt}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{G as tt,I as et,c as Y,i as G,j as Q,l as X,m as Z}from"./chunk-LNJUGHOX.js";import{$b as f,$c as z,Gb as T,Ha as w,Lc as $,Mc as n,Nc as x,Oc as C,Pc as O,Qc as H,Rc as J,Sc as W,Tc as q,Z as P,Zc as A,_c as j,ad as K,bc as _,bd as U,cc as L,dc as k,ec as I,fc as N,gc as m,hc as e,hd as v,ic as i,id as y,jc as B,jd as D,lb as M,nb as l,qc as R,ra as F,v as E,vc as V,xa as p,xc as S,ya as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var dt=(t,o)=>({"bg-gradient-danger":t,"bg-gradient-warning":o}),mt=()=>["/menu/products/status/notificationV2/detailV2"],pt=t=>({ID:t}),ut=(t,o,a)=>({"text-warning":t,"text-success":o,"text-danger":a});function ft(t,o){t&1&&(e(0,"div"),n(1," Scan in progress. You will be notified once it is complete. "),i())}function _t(t,o){if(t&1&&(e(0,"div"),n(1),v(2,"number"),i()),t&2){let a=o.$implicit;l(),O(" ",a.Key,": ",y(2,2,a.Value)," ")}}function St(t,o){if(t&1&&(e(0,"div",19)(1,"div",18),n(2,"Status Product:"),i(),I(3,_t,3,4,"div",null,L),i()),t&2){let a=S(2).$implicit;l(3),N(a.ParsedStatus)}}function Ct(t,o){if(t&1&&(e(0,"div",18),n(1),i(),e(2,"div"),n(3),i(),f(4,St,5,0,"div",19)),t&2){let a=S().$implicit;l(),C(" ",a.ProcessLabel," "),l(2),x(a.ProcessDescription),l(),_(a!=null&&a.ParsedStatus&&(a==null||a.ParsedStatus==null?null:a.ParsedStatus.length)>0?4:-1)}}function vt(t,o){if(t&1&&(n(0),v(1,"number"),e(2,"span"),n(3,"s"),i()),t&2){let a=S().$implicit;C(" ",D(1,1,a.DurationInSecond,"1.1-1")," ")}}function xt(t,o){t&1&&n(0," - ")}function gt(t,o){t&1&&n(0," In Progress ")}function ht(t,o){t&1&&n(0," Completed ")}function It(t,o){t&1&&n(0," Failed ")}function Nt(t,o){if(t&1&&(e(0,"tr",12)(1,"td")(2,"a",15),n(3),i()(),e(4,"td")(5,"div",16),B(6,"img",17),e(7,"span"),n(8),i()()(),e(9,"td"),f(10,ft,2,0,"div")(11,Ct,5,3),i(),e(12,"td"),f(13,vt,4,4)(14,xt,1,0),i(),e(15,"td")(16,"div",18),f(17,gt,1,0)(18,ht,1,0)(19,It,1,0),i()(),e(20,"td",19)(21,"div"),n(22),i(),e(23,"div"),n(24),v(25,"date"),i()()()),t&2){let a,r=o.$implicit,c=S();m("ngClass",K(16,dt,r.Status==1,r.Status==0)),l(2),m("routerLink",j(19,mt))("queryParams",z(20,pt,r.ID)),l(),C(" ",r.ID," "),l(3),m("src",r.Img,M),l(2),x(r.ChannelName),l(2),_(r.StateID==c.scanState.InProgress?10:11),l(3),_(r.DurationInSecond?13:14),l(3),$(U(22,ut,r.StateID==c.scanState.InProgress,r.StateID==c.scanState.Completed,r.StateID==c.scanState.Failed)),l(),_((a=r.StateID)===c.scanState.InProgress?17:a===c.scanState.Completed?18:a===c.scanState.Failed?19:-1),l(5),x(r.LoginID),l(2),C(" ",D(25,13,r.Created,"dd MMM yyyy HH:mm")," ")}}var Jt=(()=>{let o=class o{constructor(){this.notificationService=F(b),this.filter=w({RowCount:20,PageNumber:1,ChannelID:null}),this.scanState=st,this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotificationList(this.filter()).pipe(E(r=>(r.Data=r.Data.map(c=>(c.StatusProduct&&(c.ParsedStatus=JSON.parse(c.StatusProduct)),c)),r)),P(1))}onFilter(){this.initNotifications()}};o.\u0275fac=function(c){return new(c||o)},o.\u0275cmp=T({type:o,selectors:[["app-notificationV2"]],features:[A([b])],decls:37,vars:8,consts:[["headerTitle","Notification",3,"onSubmit","hideSearchBox"],["routerLink","/menu/products/status/notification",1,"btn","btn-outline-secondary","btn-lg"],[1,"fw-bold","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"],[2,"width","260px"],[3,"ngClass"],[1,"col-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","gap-3"],[1,"channelLogo-md",3,"src","alt"],[1,"fw-bold"],[1,"lh-base"]],template:function(c,d){if(c&1){let s=R();q(0),v(1,"async"),e(2,"mainpanel",0),V("onSubmit",function(){return p(s),u(d.onFilter())}),e(3,"actions")(4,"a",1),n(5," Scan Job V1 "),i()(),e(6,"filters")(7,"div")(8,"label",2),n(9,"Channel"),i(),e(10,"app-channel-options-v2",3),W("ngModelChange",function(h){return p(s),J(d.filter().ChannelID,h)||(d.filter().ChannelID=h),u(h)}),i()()(),e(11,"content")(12,"div",4)(13,"div",5)(14,"div",6)(15,"div",7)(16,"table",8)(17,"thead",9)(18,"tr",10)(19,"th",11),n(20,"Job ID"),i(),e(21,"th"),n(22,"Channel"),i(),e(23,"th"),n(24,"Process"),i(),e(25,"th"),n(26,"Duration"),i(),e(27,"th"),n(28,"Status"),i(),e(29,"th"),n(30,"Creator"),i()()(),e(31,"tbody"),I(32,Nt,26,26,"tr",12,k),i()()()()(),e(34,"div",5)(35,"div",13)(36,"app-custom-paginator",14),V("next",function(){return p(s),u(d.initNotifications())})("previous",function(){return p(s),u(d.initNotifications())}),i()()()()()()}if(c&2){let s=y(1,6,d.notifications$);l(2),m("hideSearchBox",!0),l(8),H("ngModel",d.filter().ChannelID),l(22),N(s==null?null:s.Data),l(4),m("filter",d.filter())("totaldata",s==null||s.Data==null?null:s.Data.length)("paginationTotal",s==null?null:s.Count)("hasClicked",!0)}},dependencies:[Z,Y,ot,it,nt,rt,at,lt,et,tt,ct,G,X,Q],encapsulation:2});let t=o;return t})();export{Jt as NotificationV2Component};
|