marketplacepos 5.46.0 → 5.46.1
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-26ZM2UD3.js +1 -0
- package/Marketplace/{chunk-FPYZBABH.js → chunk-2O4IEGGR.js} +1 -1
- package/Marketplace/chunk-2SGPD432.js +1 -0
- package/Marketplace/{chunk-PONMPAT5.js → chunk-2XWZQCUR.js} +1 -1
- package/Marketplace/{chunk-VPFSU3X4.js → chunk-2Z7CPNRS.js} +1 -1
- package/Marketplace/{chunk-Z3ZYINRX.js → chunk-3BALA33G.js} +1 -1
- package/Marketplace/{chunk-6RLISMEX.js → chunk-3GDM5JNY.js} +1 -1
- package/Marketplace/chunk-3VUO4APC.js +1 -0
- package/Marketplace/{chunk-LBXSZJDS.js → chunk-4G7SG2H6.js} +1 -1
- package/Marketplace/{chunk-EBCTTFHD.js → chunk-4LZODV4E.js} +2 -2
- package/Marketplace/chunk-4NEKWRL7.js +1 -0
- package/Marketplace/chunk-4TDVVQ64.js +1 -0
- package/Marketplace/chunk-4YRBARG2.js +1 -0
- package/Marketplace/{chunk-LDD4NVMB.js → chunk-5CKVZBHM.js} +1 -1
- package/Marketplace/{chunk-PFXOFSJG.js → chunk-67HPC5Y3.js} +1 -1
- package/Marketplace/{chunk-X5KQU53P.js → chunk-6CIQBRO4.js} +1 -1
- package/Marketplace/{chunk-FFCWYWBW.js → chunk-6H2KAYSB.js} +6 -99
- package/Marketplace/{chunk-WLRPCY65.js → chunk-6OMSPZZC.js} +1 -1
- package/Marketplace/{chunk-A6G2H7IF.js → chunk-6U4YIJLC.js} +2 -2
- package/Marketplace/chunk-6VYFG4AQ.js +1 -0
- package/Marketplace/chunk-77MWKV5I.js +158 -0
- package/Marketplace/chunk-7DJXZQ7M.js +1 -0
- package/Marketplace/{chunk-DFGZ4L65.js → chunk-7G6GQTSH.js} +1 -1
- package/Marketplace/{chunk-BBQGPXDH.js → chunk-A6PXM4YX.js} +1 -1
- package/Marketplace/{chunk-HFCAD7GH.js → chunk-ABYG6YZT.js} +1 -1
- package/Marketplace/{chunk-3TYYN7ZX.js → chunk-AGZCB65X.js} +1 -1
- package/Marketplace/{chunk-QHE3PKRD.js → chunk-BAXQ2L7B.js} +1 -1
- package/Marketplace/{chunk-2HNZ6XV3.js → chunk-BKRCW7SH.js} +1 -1
- package/Marketplace/{chunk-IQ4AFE6X.js → chunk-BMYBLBSP.js} +3 -3
- package/Marketplace/chunk-CGEIIRYF.js +1 -0
- package/Marketplace/{chunk-MW6Q6DZF.js → chunk-CGOB6Y3X.js} +1 -1
- package/Marketplace/{chunk-5X2WQKXH.js → chunk-CJ4F7QUO.js} +1 -1
- package/Marketplace/chunk-CRKCNTXF.js +1 -0
- package/Marketplace/{chunk-NERXQ5KH.js → chunk-CVM573KF.js} +1 -1
- package/Marketplace/{chunk-ZDXNJIJA.js → chunk-DAXM2MPK.js} +1 -1
- package/Marketplace/chunk-DB7C3AL2.js +257 -0
- package/Marketplace/chunk-DSYYZDXI.js +1 -0
- package/Marketplace/chunk-DZEO4HK4.js +1 -0
- package/Marketplace/chunk-EFI2CLNP.js +1 -0
- package/Marketplace/{chunk-WKSCLDT7.js → chunk-EHBCYQSG.js} +1 -1
- package/Marketplace/{chunk-QP4C4R4W.js → chunk-EHUVS2VB.js} +1 -1
- package/Marketplace/{chunk-ZWEHKGL5.js → chunk-EI65NYTN.js} +1 -1
- package/Marketplace/chunk-EPBVNII2.js +51 -0
- package/Marketplace/{chunk-G7T42LFR.js → chunk-EYONZQ2W.js} +1 -1
- package/Marketplace/chunk-F2533PAC.js +1 -0
- package/Marketplace/chunk-FB2AEPXA.js +15 -0
- package/Marketplace/{chunk-VVX6LRMW.js → chunk-FGFIV3VO.js} +1 -1
- package/Marketplace/chunk-FGRPTNDB.js +234 -0
- package/Marketplace/chunk-FHWKSD5A.js +3 -0
- package/Marketplace/chunk-FIAI5SPR.js +1 -0
- package/Marketplace/chunk-FTWATKXK.js +1 -0
- package/Marketplace/chunk-GHVAGYK3.js +2 -0
- package/Marketplace/chunk-GKRWJPI3.js +2 -0
- package/Marketplace/chunk-GPGD3XQH.js +1 -0
- package/Marketplace/{chunk-N6HMVYWS.js → chunk-GQXYHXWJ.js} +1 -1
- package/Marketplace/{chunk-YIXZLIPA.js → chunk-GRYGUILI.js} +2 -2
- package/Marketplace/{chunk-BJUPMCEP.js → chunk-GZKOMS4T.js} +1 -1
- package/Marketplace/{chunk-W3JKSCRF.js → chunk-HERZ7KEM.js} +1 -1
- package/Marketplace/{chunk-QNM4JQ46.js → chunk-HHO2NGCF.js} +1 -1
- package/Marketplace/{chunk-3UN6FPMN.js → chunk-HIC5QC3Y.js} +1 -1
- package/Marketplace/{chunk-4VITMSIA.js → chunk-HITTNWB6.js} +1 -1
- package/Marketplace/{chunk-FO7G4GMY.js → chunk-HJXYT6MI.js} +3 -3
- package/Marketplace/{chunk-5LQRO4AI.js → chunk-IHSGQFDX.js} +2 -2
- package/Marketplace/{chunk-XXWBR6S5.js → chunk-IITU3NV6.js} +1 -1
- package/Marketplace/chunk-ISUN5G42.js +5 -0
- package/Marketplace/chunk-IWKRZSYG.js +1 -0
- package/Marketplace/{chunk-LDPDLCRL.js → chunk-JBT7GBCM.js} +1 -1
- package/Marketplace/{chunk-VKFFHT27.js → chunk-JGEU4EJT.js} +1 -1
- package/Marketplace/chunk-JYCBJ7CC.js +1 -0
- package/Marketplace/chunk-KCFCXS2F.js +1 -0
- package/Marketplace/{chunk-OPKLFRVD.js → chunk-KFOHH7PE.js} +1 -1
- package/Marketplace/chunk-KRQHTRFM.js +7 -0
- package/Marketplace/{chunk-B67DSLBY.js → chunk-KS7ACI26.js} +6 -6
- package/Marketplace/{chunk-OK3LLCAK.js → chunk-KSHWHTCH.js} +1 -1
- package/Marketplace/{chunk-3NHZEKEI.js → chunk-L7TKCTLD.js} +1 -1
- package/Marketplace/{chunk-RNTPX24O.js → chunk-LBMUKJV5.js} +1 -1
- package/Marketplace/{chunk-UXPULNCR.js → chunk-LDL3A7NM.js} +1 -1
- package/Marketplace/chunk-LFGPYQCI.js +1 -0
- package/Marketplace/chunk-LOU3DIPY.js +1 -0
- package/Marketplace/{chunk-DZYBXWL2.js → chunk-LYPHZP72.js} +1 -1
- package/Marketplace/chunk-M7LXGXUM.js +1 -0
- package/Marketplace/{chunk-NNRBGHXB.js → chunk-MFQQEEHJ.js} +3 -3
- package/Marketplace/chunk-MJNFY4NT.js +1 -0
- package/Marketplace/chunk-MX5SR3SR.js +94 -0
- package/Marketplace/{chunk-LSCMIKJ2.js → chunk-NLPXBGIX.js} +1 -1
- package/Marketplace/{chunk-CHWXOJDB.js → chunk-NNOI3AG4.js} +1 -1
- package/Marketplace/{chunk-I2Y5WJEO.js → chunk-NWWYOZ4V.js} +1 -1
- package/Marketplace/chunk-OAG6OVUY.js +1 -0
- package/Marketplace/{chunk-OIEZ4JUJ.js → chunk-OE7TF7SI.js} +1 -1
- package/Marketplace/{chunk-QK4BGDSS.js → chunk-OHVOVAKD.js} +1 -1
- package/Marketplace/chunk-OJZ7NGRW.js +1 -0
- package/Marketplace/{chunk-FHH5BTG7.js → chunk-ORLTYLPA.js} +1 -1
- package/Marketplace/chunk-OVPVQS4J.js +33 -0
- package/Marketplace/{chunk-UIFPDTMW.js → chunk-OXWPLJEW.js} +1 -1
- package/Marketplace/{chunk-BQIB3N6V.js → chunk-PFY5UG5D.js} +1 -1
- package/Marketplace/{chunk-74ELVGDK.js → chunk-PHUHUFYL.js} +1 -1
- package/Marketplace/{chunk-AHLYED4C.js → chunk-PIBVGTHJ.js} +1 -1
- package/Marketplace/{chunk-OFZOAEW5.js → chunk-PQQSREEC.js} +1 -1
- package/Marketplace/{chunk-QBL6V7QF.js → chunk-Q4N2QUV6.js} +1 -1
- package/Marketplace/{chunk-OXOTD33C.js → chunk-QOP7KZK7.js} +1 -1
- package/Marketplace/{chunk-M7V7A7Z6.js → chunk-QW4EOJRM.js} +1 -1
- package/Marketplace/{chunk-WPELZYFP.js → chunk-QWISVEBT.js} +1 -1
- package/Marketplace/{chunk-4KHHGHFJ.js → chunk-RAQRGWCZ.js} +2 -2
- package/Marketplace/chunk-RC5PUUVM.js +193 -0
- package/Marketplace/{chunk-WWISWZF5.js → chunk-RGAKHXPF.js} +1 -1
- package/Marketplace/{chunk-ZBKUZ4CN.js → chunk-RGAWEFPQ.js} +1 -1
- package/Marketplace/{chunk-V5KHEF77.js → chunk-RJ5D24ZW.js} +1 -1
- package/Marketplace/chunk-RM2OSYMV.js +1 -0
- package/Marketplace/{chunk-KXEADFBM.js → chunk-RNNH3EZC.js} +1 -1
- package/Marketplace/{chunk-753FTTID.js → chunk-S3FZRSRP.js} +1 -1
- package/Marketplace/{chunk-FXVFO74P.js → chunk-SLEJQAL7.js} +1 -1
- package/Marketplace/chunk-SZGOLKC6.js +1 -0
- package/Marketplace/{chunk-UYLSZYOD.js → chunk-T2OSIFLN.js} +1 -1
- package/Marketplace/chunk-T43QRQH5.js +1 -0
- package/Marketplace/{chunk-F6HNCBQX.js → chunk-TE5EYKIN.js} +1 -1
- package/Marketplace/chunk-TGQ5CJ3A.js +1 -0
- package/Marketplace/chunk-UGG2CIUU.js +1 -0
- package/Marketplace/{chunk-WFT47MCY.js → chunk-UZWED4UK.js} +1 -1
- package/Marketplace/{chunk-WCVSETLP.js → chunk-V6UNCLNJ.js} +2 -2
- package/Marketplace/{chunk-LRUVI2Z3.js → chunk-VFATXJRG.js} +1 -1
- package/Marketplace/chunk-VIDSOLHF.js +1 -0
- package/Marketplace/{chunk-FVORY74O.js → chunk-W3DTXPRM.js} +1 -1
- package/Marketplace/{chunk-6KBMGQMI.js → chunk-WAZXTB4X.js} +1 -1
- package/Marketplace/{chunk-W5L6FMO3.js → chunk-WN5DZGA4.js} +1 -1
- package/Marketplace/{chunk-A64VIOKR.js → chunk-WRJFUNM3.js} +1 -1
- package/Marketplace/{chunk-TYG67JH3.js → chunk-XPCRS7AL.js} +1 -1
- package/Marketplace/{chunk-TH6VZX34.js → chunk-XXT6F2ZS.js} +1 -1
- package/Marketplace/{chunk-RDJPSZRF.js → chunk-YB4KXB2C.js} +1 -1
- package/Marketplace/chunk-YFDFIBAG.js +1 -0
- package/Marketplace/{chunk-N2SPK2VI.js → chunk-YQLOB7IQ.js} +1 -1
- package/Marketplace/{chunk-PPHTN2H6.js → chunk-YTCIQBSO.js} +1 -1
- package/Marketplace/chunk-ZUYGRGXM.js +1 -0
- package/Marketplace/{chunk-7WG7VRYR.js → chunk-ZVKOEYH7.js} +1 -1
- package/Marketplace/chunk-ZXTHWBJ4.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-RRL4BIVO.js +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2KDM4NDG.js +0 -266
- package/Marketplace/chunk-3NFS6ZDY.js +0 -1
- package/Marketplace/chunk-43E7L4CY.js +0 -1
- package/Marketplace/chunk-4UWGWYKJ.js +0 -1
- package/Marketplace/chunk-5QLKBL54.js +0 -1
- package/Marketplace/chunk-76XHGJE7.js +0 -1
- package/Marketplace/chunk-7AE3725T.js +0 -193
- package/Marketplace/chunk-A6PK5NP6.js +0 -1
- package/Marketplace/chunk-AKVBFSUI.js +0 -1
- package/Marketplace/chunk-AP24AK5A.js +0 -1
- package/Marketplace/chunk-DFFRRMPT.js +0 -1
- package/Marketplace/chunk-DLURPTQ3.js +0 -1
- package/Marketplace/chunk-DQ3XZQ7W.js +0 -7
- package/Marketplace/chunk-DUF425GC.js +0 -1
- package/Marketplace/chunk-EOLVRL5H.js +0 -2
- package/Marketplace/chunk-EWTJL2KE.js +0 -1
- package/Marketplace/chunk-FHPIPQMB.js +0 -15
- package/Marketplace/chunk-GVLJDP5K.js +0 -1
- package/Marketplace/chunk-I4WCZRNL.js +0 -1
- package/Marketplace/chunk-ID2YZPRH.js +0 -1
- package/Marketplace/chunk-IL2CPGYS.js +0 -1
- package/Marketplace/chunk-J53BPEDH.js +0 -1
- package/Marketplace/chunk-JL5DYPDV.js +0 -1
- package/Marketplace/chunk-K5XRGNWG.js +0 -1
- package/Marketplace/chunk-KVZ7LQSK.js +0 -1
- package/Marketplace/chunk-LFMEBDL2.js +0 -1
- package/Marketplace/chunk-MVBY6S4R.js +0 -1
- package/Marketplace/chunk-NFN7BQB3.js +0 -3
- package/Marketplace/chunk-ORDCBJ4G.js +0 -2
- package/Marketplace/chunk-PFZOP2J7.js +0 -1
- package/Marketplace/chunk-QGK4LEFP.js +0 -1
- package/Marketplace/chunk-RTT3JVJM.js +0 -1
- package/Marketplace/chunk-SMRDRDSH.js +0 -1
- package/Marketplace/chunk-UBAADH47.js +0 -1
- package/Marketplace/chunk-UHTMVOX6.js +0 -1
- package/Marketplace/chunk-UUJWRGO4.js +0 -1
- package/Marketplace/chunk-V3CLQBGH.js +0 -1
- package/Marketplace/chunk-V4UHOZJ4.js +0 -1
- package/Marketplace/chunk-VCTMSNVC.js +0 -1
- package/Marketplace/chunk-WHNSPPOH.js +0 -1
- package/Marketplace/chunk-WJAE4LW2.js +0 -51
- package/Marketplace/chunk-WVHSR3DQ.js +0 -5
- package/Marketplace/chunk-XB3CW7KH.js +0 -1
- package/Marketplace/chunk-XEBKP2KL.js +0 -1
- package/Marketplace/chunk-ZHDGR4XE.js +0 -1
- package/Marketplace/main-3TBM4ISM.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as _}from"./chunk-67HPC5Y3.js";import"./chunk-PFY5UG5D.js";import"./chunk-KS7ACI26.js";import{a as R}from"./chunk-ORLTYLPA.js";import"./chunk-3GDM5JNY.js";import"./chunk-XXT6F2ZS.js";import"./chunk-QS22J2SC.js";import"./chunk-EHUVS2VB.js";import"./chunk-IHSGQFDX.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-3RK6DDJD.js";import"./chunk-HIC5QC3Y.js";import"./chunk-JBT7GBCM.js";import{a as ue,b as ye}from"./chunk-WRJFUNM3.js";import"./chunk-JVNHFIYT.js";import"./chunk-FHWKSD5A.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import{e as he}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{c as d}from"./chunk-PW42BQIY.js";import{m as w,n as ge}from"./chunk-HJXYT6MI.js";import{A as fe}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{F as pe,H as de,J as ce,f as ae,g as F,j as le,k as P,m as me,n as se}from"./chunk-FXQKRJWU.js";import{$c as k,Gb as T,Gc as p,Hb as Z,Hc as j,Ic as J,Kc as y,Lc as g,Mb as h,Mc as C,Oa as V,Rc as re,Wc as oe,Yb as m,Z as Q,ac as $,ad as B,dc as H,ea as z,ec as ee,gc as te,hc as ie,ic as r,ja as q,jc as a,ka as X,kc as v,nc as ne,oa as Y,pb as G,rb as l,rd as U,tc as b,uc as u,xb as f,xc as K}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var Ce=(()=>{class n{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"}]}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=T({type:n,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(i,t){i&1&&(r(0,"nav",0)(1,"div",1)(2,"div"),v(3,"nav-tab",2),a()()(),v(4,"router-outlet")),i&2&&(l(3),m("Tabs",t.reportTabs))},dependencies:[ue,pe],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]})}}return n})();var S=class{};var I=(()=>{class n{constructor(e){this.http=e}GetLoader(){return this.http.post("/api/Report/GetLoader",{})}GetSyncOrder(e){return new Promise((i,t)=>{this.http.post("/api/Report/Salesorder",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncInvoice(e){return new Promise((i,t)=>{this.http.post("/api/Report/CreateInvoice",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncVoidInvoice(e){return new Promise((i,t)=>{this.http.post("/api/Report/Void",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncConvertInvoice(e){return new Promise((i,t)=>{this.http.post("/api/Report/ConvertToInvoice",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncDelivery(e){return new Promise((i,t)=>{this.http.post("/api/Report/Delivery",JSON.stringify(e)).subscribe(s=>{i(s)})})}GetSyncPayment(e){return new Promise((i,t)=>{this.http.post("/api/Report/Payment",JSON.stringify(e)).subscribe(s=>{i(s)})})}getAllReport(e){return this.http.post("/api/Report/all",JSON.stringify(e))}static{this.\u0275fac=function(i){return new(i||n)(Y(he))}}static{this.\u0275prov=q({token:n,factory:n.\u0275fac,providedIn:"root"})}}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"],Ee=(n,c,e,i,t)=>({responseCode:n,From:c,to:e,actionType:i,ChannelID:t});function Oe(n,c){if(n&1&&(r(0,"th",6)(1,"div",7)(2,"h4"),p(3),a(),r(4,"small",8),p(5),a()()()),n&2){let e=c.$implicit,i=u();l(3),j(e),l(),$(i.getTextBgColor(e)),l(),j(i.getHeaderStatusDesc(e))}}function Re(n,c){if(n&1&&(r(0,"a",12),p(1),k(2,"number"),a()),n&2){let e=u().$implicit,i=u().$implicit,t=u();m("routerLink",re(5,De))("queryParams",oe(6,Ee,e.Key,t.fromQueryParam,t.toQueryParam,t.type,i.ChannelID)),l(),J(" ",B(2,3,e.Value)," ")}}function Le(n,c){n&1&&(r(0,"span",13),p(1,"-"),a())}function xe(n,c){if(n&1&&(r(0,"td",11),h(1,Re,3,12,"a",12)(2,Le,2,0,"span",13),a()),n&2){let e=c.$implicit;l(),H(e.Value?1:2)}}function Me(n,c){if(n&1&&(r(0,"tr")(1,"td")(2,"a",9),v(3,"img",10),a()(),r(4,"td")(5,"div")(6,"a",9),p(7),a()(),r(8,"div"),p(9),a()(),te(10,xe,3,1,"td",11,ee),a()),n&2){let e=c.$implicit,i=u();l(2),K("href",e.Url,G),l(),m("src",i.getChannelLogo(e.Type),G),l(3),K("href",e.Url,G),l(),j(e.Name),l(2),j(e.Url),l(),ie(e.list)}}function ke(n,c){if(n&1&&(r(0,"td",11)(1,"div",17),p(2),k(3,"number"),a()()),n&2){let e=c.$implicit;l(2),J(" ",B(3,1,e.total)," ")}}function Be(n,c){if(n&1&&(r(0,"tfoot")(1,"tr")(2,"td",14)(3,"div",15),p(4,"Total"),a()(),h(5,ke,4,3,"td",16),a()()),n&2){let e=u();l(5),m("ngForOf",e.logsCalculation())}}var D=(()=>{class n{constructor(){this.header=V(),this.result=V(),this.orderedHeader=U(()=>this.header().sort((e,i)=>e-i)),this.logsOrdered=U(()=>{let e=this.result();return e=e.map(i=>(this.orderedHeader().forEach(t=>{i.list.findIndex(o=>o.Key===t)===-1&&i.list.push({Key:t,Value:0}),i.list.sort((o,A)=>o.Key-A.Key)}),i)),e}),this.logsCalculation=U(()=>{let e=this.concatStatusCode(),i=[];return this.orderedHeader().forEach(t=>{let o=e.filter(A=>A.Key===t).reduce((A,we)=>A+we.Value,0);i.push({status:t,total:o})}),i}),this.type=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 i=null;switch(e){case O.BAD_REQUEST:i="BAD REQUEST";break;case O.CONFLICT:i="CONFLICT";break;case O.INTERNAL_SERVER_ERROR:i="INTERNAL SERVER ERROR";break;case O.NOT_FOUND:i="NOT FOUND";break;default:i="OK";break}return i}getTextBgColor(e){let i=null;switch(e){case O.OK:i="bg-success";break;case O.INTERNAL_SERVER_ERROR:i="bg-danger";break;default:i="bg-warning";break}return i}getChannelLogo(e){return d.getChannelLogoByTypeId(e)}concatStatusCode(){return this.logsOrdered().map(e=>e.list).reduce((e,i)=>[...e,...i],[])}static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275cmp=T({type:n,selectors:[["app-table-report"]],inputs:{header:[1,"header"],result:[1,"result"],from:"from",to:"to",type:"type"},standalone:!1,decls:10,vars:3,consts:[[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","0%"],[2,"width","5%"],["class","text-start","style","width: 10%",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[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"],["class","text-start",4,"ngFor","ngForOf"],[1,"d-inline-block","h3","text-primary","fw-bold","ms-1"]],template:function(i,t){i&1&&(r(0,"table",0)(1,"thead",1)(2,"tr"),v(3,"th",2),r(4,"th",3),p(5,"Channel"),a(),h(6,Oe,6,4,"th",4),a()(),r(7,"tbody"),h(8,Me,12,5,"tr",5),a(),h(9,Be,6,1,"tfoot"),a()),i&2&&(l(6),m("ngForOf",t.orderedHeader()),l(2),m("ngForOf",t.logsOrdered()),l(),H(t.logsCalculation().length>0?9:-1))},dependencies:[ae,de,me],styles:[".response-desc[_ngcontent-%COMP%]{font-size:12px}"]})}}return n})();function Ne(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",0)}}var ve=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.pageTitle="New Order";let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":i+"-"} ${t})`}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()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,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"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.getChannelLogs()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,Ne,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.pageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function We(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",1)}}var Te=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.PageTitle="Ready to Ship";let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":i+"-"} ${t})`}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()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,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"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,We,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function Ae(n,c){if(n&1&&(r(0,"div",8)(1,"div",9),v(2,"app-table-report",10),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",3)}}var _e=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S;let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Shipped (${e==null?"":i+"-"} ${t})`}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()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,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"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div",1)(3,"label",2),p(4,"From/To"),a(),r(5,"div",3)(6,"datepicker",4),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",5),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",6),h(11,Ae,3,5,"div",7),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function je(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",4)}}var Se=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.PageTitle="Completed";let t=new Date;this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Completed (${e==null?"":i+"-"} ${t})`}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()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,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"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,je,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function Ge(n,c){n&1&&ne(0)}function Ue(n,c){if(n&1&&(r(0,"div",8)(1,"div",9),v(2,"app-table-report",10),a()()),n&2){let e=c.ngIf,i=u();l(2),m("result",e.Body)("header",e.Header)("from",i.filter==null?null:i.filter.From)("to",i.filter==null?null:i.filter.To)}}var be=(()=>{class n{constructor(e,i){this.reportOrderService=e,this.datePipe=i,this.filter=new S}ngOnInit(){this.initFilter(),this.initLoader()}initFilter(){let e=new Date;this.minDate=d.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`All (${e==null?"":i+"-"} ${t})`}initLoader(){this.pageLoader$=this.reportOrderService.GetLoader().pipe(z(e=>{this.filter=e,this.updatePageTitle(),this.initData()}))}initData(){this.reportData$=this.reportOrderService.getAllReport(this.filter).pipe(Q())}onFilter(){this.updatePageTitle(),this.initData()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,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"],[4,"ngIf"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,Ge,1,0,"ng-container",6),k(12,"async"),h(13,Ue,3,4,"div",7),k(14,"async"),a()()()),i&2&&(m("headerTitle",t.pageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",B(12,6,t.pageLoader$)),l(2),m("ngIf",B(14,8,t.reportData$)))},dependencies:[F,w,_,D,le],encapsulation:2})}}return n})();function Ve(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",1)}}var Fe=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.PageTitle="Convert Sales Order To Invoice";let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Convert Sales Order To Invoice (${e==null?"":i+"-"} ${t})`}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()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,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"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,Ve,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();function He(n,c){if(n&1&&(r(0,"div",7)(1,"div",8),v(2,"app-table-report",9),a()()),n&2){let e=u();l(2),m("result",e.result)("header",e.header)("from",e.filter.From)("to",e.filter.To)("type",1)}}var Pe=(()=>{class n{constructor(e,i){this.http=e,this.datePipe=i,this.filter=new S,this.PageTitle="Ready to Ship";let t=new Date;this.maxDate=t,this.minDate=d.addDays(t,6),this.filter.From=t,this.filter.To=t,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=d.formatTitleFromDate(this.filter.From,this.filter.To),i=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.PageTitle=`Ready to Ship (${e==null?"":i+"-"} ${t})`}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()}static{this.\u0275fac=function(i){return new(i||n)(f(I),f(P))}}static{this.\u0275cmp=T({type:n,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"],["class","row mt-4",4,"ngIf"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(i,t){i&1&&(r(0,"mainpanel",0),b("onSubmit",function(){return t.onFilter()}),r(1,"filters")(2,"div")(3,"label",1),p(4,"From/To"),a(),r(5,"div",2)(6,"datepicker",3),C("dateChange",function(o){return g(t.filter.From,o)||(t.filter.From=o),o}),a()(),r(7,"div")(8,"datepicker",4),C("dateChange",function(o){return g(t.filter.To,o)||(t.filter.To=o),o}),a()()()(),r(9,"content")(10,"div",5),h(11,He,3,5,"div",6),a()()()),i&2&&(m("headerTitle",t.PageTitle)("hideSearchBox",!0),l(6),y("date",t.filter.From),l(2),y("date",t.filter.To),l(3),m("ngIf",t.result))},dependencies:[F,w,_,D],encapsulation:2})}}return n})();var Ke=[{path:"",component:Ce,children:[{path:"",redirectTo:"all",pathMatch:"full"},{path:"sync-order",component:ve,canActivate:[R],data:{title:"Sync Order"}},{path:"convert-to-invoice",component:Fe,canActivate:[R],data:{title:"Sync Convert to Invoice"}},{path:"invoice",component:Te,canActivate:[R],data:{title:"Sync Invoice"}},{path:"delivery",component:_e,canActivate:[R],data:{title:"Sync Delivery"}},{path:"payment",component:Se,canActivate:[R],data:{title:"Sync Payment"}},{path:"void-invoice",component:Pe,canActivate:[R],data:{title:"Sync void invoice"}},{path:"all",component:be,canActivate:[R],data:{title:"All Report"}}]}],Gt=(()=>{class n{static{this.\u0275fac=function(i){return new(i||n)}}static{this.\u0275mod=Z({type:n})}static{this.\u0275inj=X({imports:[se,ye,fe,ge,_,ce.forChild(Ke)]})}}return n})();export{Gt as OrderModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as q}from"./chunk-67HPC5Y3.js";import{a as oe}from"./chunk-OLANEXLB.js";import"./chunk-PFY5UG5D.js";import"./chunk-KS7ACI26.js";import{a as re,b as Be}from"./chunk-ABYG6YZT.js";import"./chunk-RAQRGWCZ.js";import"./chunk-HVCIQI7B.js";import{a as W}from"./chunk-ORLTYLPA.js";import"./chunk-3GDM5JNY.js";import"./chunk-XXT6F2ZS.js";import"./chunk-QS22J2SC.js";import"./chunk-EHUVS2VB.js";import"./chunk-IHSGQFDX.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-6OMSPZZC.js";import"./chunk-3RK6DDJD.js";import"./chunk-HIC5QC3Y.js";import"./chunk-JBT7GBCM.js";import{a as Ve,b as We}from"./chunk-WRJFUNM3.js";import"./chunk-JVNHFIYT.js";import{i as j}from"./chunk-FHWKSD5A.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import{e as M}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{a as te,b as ie,d as ne,e as Pe}from"./chunk-PYXL7UF7.js";import{c as B}from"./chunk-PW42BQIY.js";import{m as N,n as ke}from"./chunk-HJXYT6MI.js";import{A as Ne,B as Le,c as Q,h as X,m as $,o as ee,u as De,v as Me}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as Re,s as Oe}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{E as k,F as Te,H as P,J as fe,d as ge,f as Z,g as T,j as Ee,k as D,l as F,n as he}from"./chunk-FXQKRJWU.js";import{$c as b,Fc as J,Gb as x,Gc as r,Hb as pe,Hc as m,Ic as R,Kc as _,Lc as y,Mb as f,Mc as C,Rc as Y,Sc as A,Yb as p,ac as Ie,ad as O,bd as E,cd as K,ic as i,ja as ce,jc as n,ka as me,kc as L,lc as H,mc as z,oa as we,oc as I,pb as G,rb as l,tc as w,uc as S,v as ue,xb as h,ya as c,za as u}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var Ae=(()=>{class o{constructor(){this.ObjectlogTabs=[{Title:"Channel Push Log Exception",Url:"/menu/log/exception"},{Title:"Channel Push Log",Url:"/menu/log/rawlog"},{Title:"Sync Order",Url:"/menu/log/order"},{Title:"Inventory Sync ",Url:"/menu/log/inventory"},{Title:"Authorization Log ",Url:"/menu/log/authorization-log"}]}static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275cmp=x({type:o,selectors:[["app-logs"]],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(a,e){a&1&&(i(0,"nav",0)(1,"div",1)(2,"div"),L(3,"nav-tab",2),n()()(),L(4,"router-outlet")),a&2&&(l(3),p("Tabs",e.ObjectlogTabs))},dependencies:[Te,Ve],encapsulation:2})}}return o})();var ae=(()=>{class o{constructor(){}get Data(){return this._Data}set Data(t){this._Data=t}Fill(t){return this._Data.find(a=>a._id==t)}static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275prov=ce({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Xe=()=>["/menu/log/order/detail-user"],$e=o=>({ID:o}),et=o=>({"bg-warning":o});function tt(o,g){if(o&1&&(i(0,"span",22),L(1,"img",23),n(),r(2)),o&2){let t=g.item;l(),p("src",t.Img,G)("alt",t.Name),l(),R(" ",t.Name," ")}}function it(o,g){o&1&&(i(0,"th",27)(1,"span",33),r(2," Response Body Warning "),n()())}function nt(o,g){o&1&&(i(0,"th")(1,"span",33),r(2," Number Override "),n()())}function ot(o,g){if(o&1&&(i(0,"td",27)(1,"span",36),r(2),n()()),o&2){let t=S().$implicit;l(),p("ngClass",A(2,et,t.responseBodyWarning!=null)),l(),m(t.responseBodyWarning)}}function rt(o,g){if(o&1&&(i(0,"td"),r(1),n()),o&2){let t=S().$implicit;l(),R(" ",t.ResponseBodyWarningReference," ")}}function at(o,g){if(o&1&&(i(0,"tr")(1,"td")(2,"a",34),r(3),b(4,"date"),n()(),i(5,"td"),r(6),n(),i(7,"td"),r(8),n(),i(9,"td"),r(10),n(),i(11,"td",27)(12,"span",35),r(13),n()(),f(14,ot,3,4,"td",29)(15,rt,2,1,"td",30),n()),o&2){let t=g.$implicit,a=S(2);l(2),p("routerLink",Y(14,Xe))("queryParams",A(15,$e,t.ID)),l(),R(" ",E(4,11,t.Created,"dd MMM yyyy HH:mm:ss")," "),l(3),m(t.ChannelName),l(2),m(t.POSActionTypeString),l(2),m(t.Number),l(2),Ie(t.ResponseCode===200||t.ResponseCode===202?"bg-success":"bg-warning"),l(),R(" ",t.ResponseCode," "),l(),p("ngIf",a.responseBodyWarningVisible),l(),p("ngIf",a.responseBodyWarningVisible)}}function lt(o,g){if(o&1){let t=I();H(0),i(1,"div",24)(2,"table",25)(3,"thead")(4,"tr",26)(5,"th"),r(6,"Date"),n(),i(7,"th"),r(8,"Channel"),n(),i(9,"th"),r(10,"Actions"),n(),i(11,"th"),r(12,"Number"),n(),i(13,"th",27)(14,"span",28),r(15," Response Code "),n()(),f(16,it,3,0,"th",29)(17,nt,3,0,"th",30),n()(),i(18,"tbody"),f(19,at,16,17,"tr",31),n()(),i(20,"mat-paginator",32),w("page",function(e){c(t);let d=S();return u(d.changePage(e))}),n()(),z()}if(o&2){let t=S();l(16),p("ngIf",t.responseBodyWarningVisible),l(),p("ngIf",t.responseBodyWarningVisible),l(2),p("ngForOf",t.Result),l(),p("length",t.paginationTotal)("pageSize",t.paginationPageSize)("pageIndex",(t.filter==null?null:t.filter.PageNumber)==0?0:(t.filter==null?null:t.filter.PageNumber)-1)}}function st(o,g){o&1&&(i(0,"div",37),L(1,"app-empty-state"),n())}var Fe=(()=>{class o{constructor(t,a,e,d){this.http=t,this._RawLogService=a,this.route=e,this.authService=d,this.Result=Array(),this.filter={RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:"",responseBodyWarning:""},this.responseBodyWarningVisible=!1,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.route.queryParams.subscribe(t=>{this.responseCode=t.responseCode,this.responseCode!=null?this.Load(t):this.Load()})}Load(t={}){this.http.post("/api/OrdersLoader/Get",t).subscribe(a=>{this.filter=a.Filter,this.ActionTypeList=a.Options.ActionTypeList,this.Get()})}Get(t){this.filter.Number=t,this.http.post("/api/Orders/Get",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let e of a.hits){e._source.log.responseBodyWarning!=null&&(this.responseBodyWarningVisible=!0);let d={ID:e._id,Created:e._source["@timestamp_received"],shopId:e._source.shopId,MarketTypeString:e._source.log.type,ChannelName:e._source?.channelId!=null?this.channelOptions.find(v=>v.ID===e._source?.channelId)?.Name:"",POSActionTypeString:e._source.message,Number:e._source.log.number,ResponseCode:e._source.log.responseCode,responseBodyWarning:e._source.log.responseBodyWarning,ResponseBodyWarningReference:e._source.log.ResponseBodyWarningReference};this.Result.push(d)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(t){this.filter.PageNumber=t.pageIndex+1,this.Get()}static{this.\u0275fac=function(a){return new(a||o)(h(M),h(ae),h(k),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-order"]],standalone:!1,decls:43,vars:15,consts:[["EMPTY_STATE",""],["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"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[1,"text-center"],["matTooltip","Http Status Code from developer.dealpos.com."],["class","text-center",4,"ngIf"],[4,"ngIf"],[4,"ngFor","ngForOf"],[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"],[1,"text-white","p-2","rounded","response-desc",3,"ngClass"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let d=I();i(0,"mainpanel",1),C("textChange",function(s){return c(d),y(e.Number,s)||(e.Number=s),u(s)}),w("onSubmit",function(s){return c(d),u(e.Get(s))}),i(1,"filters")(2,"div")(3,"label",2),r(4,"Channel"),n(),i(5,"ng-select",3),C("ngModelChange",function(s){return c(d),y(e.filter.ChannelID,s)||(e.filter.ChannelID=s),u(s)}),f(6,tt,3,3,"ng-template",4),n()(),i(7,"div",5)(8,"label",2),r(9,"Action"),n(),i(10,"ng-select",6),C("ngModelChange",function(s){return c(d),y(e.filter.ActionType,s)||(e.filter.ActionType=s),u(s)}),n()(),i(11,"div",5)(12,"label",7),r(13,"From/To"),n(),i(14,"div",8)(15,"datepicker",9),C("dateChange",function(s){return c(d),y(e.filter.From,s)||(e.filter.From=s),u(s)}),n()(),i(16,"div")(17,"datepicker",10),C("dateChange",function(s){return c(d),y(e.filter.To,s)||(e.filter.To=s),u(s)}),n()()(),i(18,"div",5)(19,"label",11),r(20,"Response Code"),n(),i(21,"input",12),C("ngModelChange",function(s){return c(d),y(e.filter.StatusCode,s)||(e.filter.StatusCode=s),u(s)}),n()(),i(22,"div",5)(23,"label",11),r(24,"Response Body Warning"),n(),i(25,"input",13),C("ngModelChange",function(s){return c(d),y(e.filter.responseBodyWarning,s)||(e.filter.responseBodyWarning=s),u(s)}),n(),i(26,"datalist",14),L(27,"option",15),n()(),i(28,"div",5)(29,"label",11),r(30,"Page Number"),n(),i(31,"input",16),C("ngModelChange",function(s){return c(d),y(e.filter.PageNumber,s)||(e.filter.PageNumber=s),u(s)}),n()(),i(32,"div",5)(33,"label",11),r(34,"Page Size"),n(),i(35,"input",17),C("ngModelChange",function(s){return c(d),y(e.filter.RowCount,s)||(e.filter.RowCount=s),u(s)}),n()()(),i(36,"content")(37,"div",18)(38,"div",19)(39,"div",20),f(40,lt,21,6,"ng-container",21)(41,st,2,0,"ng-template",null,0,K),n()()()()()}if(a&2){let d=J(42);_("text",e.Number),l(5),p("clearable",!0)("items",e.channelOptions),_("ngModel",e.filter.ChannelID),l(5),p("clearable",!0)("items",e.ActionTypeList),_("ngModel",e.filter.ActionType),l(5),_("date",e.filter.From),l(2),_("date",e.filter.To),l(4),_("ngModel",e.filter.StatusCode),l(4),_("ngModel",e.filter.responseBodyWarning),l(6),_("ngModel",e.filter.PageNumber),l(4),_("ngModel",e.filter.RowCount),l(5),p("ngIf",(e.Result==null?null:e.Result.length)>0)("ngIfElse",d)}},dependencies:[ge,Z,T,De,Me,Q,ee,X,$,P,N,re,ne,te,ie,q,oe,Re,D],encapsulation:2})}}return o})();var dt=o=>({"bg-gradient-warning":o}),mt=()=>["/menu/log/inventory/sync-inventory/detail"],pt=o=>({ID:o});function ct(o,g){if(o&1&&(i(0,"span",19),L(1,"img",20),n(),r(2)),o&2){let t=g.item;l(),p("src",t.Img,G)("alt",t.Name),l(),R(" ",t.Name," ")}}function ut(o,g){if(o&1&&(i(0,"tr",26)(1,"td")(2,"a",27),r(3),b(4,"date"),n()(),i(5,"td"),r(6),n(),i(7,"td"),r(8),n(),i(9,"td"),r(10),n(),i(11,"td"),r(12),n()()),o&2){let t=g.$implicit;p("ngClass",A(11,dt,t.ResponseCode==400)),l(2),p("routerLink",Y(13,mt))("queryParams",A(14,pt,t.ID)),l(),R(" ",E(4,8,t.Created,"dd MMM yyyy HH:mm")," "),l(3),m(t.channelName),l(2),m(t.Sku),l(2),m(t.Stock),l(2),m(t.ResponseCode)}}function gt(o,g){if(o&1){let t=I();H(0),i(1,"div",21)(2,"table",22)(3,"thead")(4,"tr",23)(5,"th"),r(6,"Created"),n(),i(7,"th"),r(8,"Channel"),n(),i(9,"th"),r(10,"SKU"),n(),i(11,"th"),r(12,"Stock"),n(),i(13,"th"),r(14,"Response code"),n()()(),i(15,"tbody"),f(16,ut,13,16,"tr",24),n()(),i(17,"mat-paginator",25),w("page",function(e){c(t);let d=S();return u(d.changePage(e))}),n()(),z()}if(o&2){let t=S();l(16),p("ngForOf",t.Result),l(),p("length",t.paginationTotal)("pageSize",t.paginationPageSize)("pageIndex",(t.filter==null?null:t.filter.PageNumber)==0?0:(t.filter==null?null:t.filter.PageNumber)-1)}}function ht(o,g){o&1&&(i(0,"div",28),L(1,"app-empty-state"),n())}var je=(()=>{class o{constructor(t,a,e){this.http=t,this._RawLogService=a,this.authService=e,this.Result=Array(),this.filter={PageNumber:0,RowCount:20,Sku:null,ChannelID:"",StatusCode:"",From:"",To:""},this.Load(),this.channelOptions=this.authService.getChannels()}Load(){this.http.post("/api/OrdersLoader/Get",{}).subscribe(t=>{this.filter=t.Filter,this.ActionTypeList=t.Options.ActionTypeList,this.Get()})}Get(t){t!=null&&(this.filter.Sku=t),this.http.post("api/Inventory/GetLog",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let e of a.hits){let d={ID:e._source.log.id,Created:e._source["@timestamp_received"],channelName:e._source.log.channelName,Sku:e._source.log.sku,Stock:e._source.log.stock,ResponseCode:e._source.log.responseCode};this.Result.push(d)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(t){this.filter.PageNumber=t.pageIndex+1,this.Get()}static{this.\u0275fac=function(a){return new(a||o)(h(M),h(ae),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-inventory-log"]],standalone:!1,decls:33,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","Channel Inventory Sync","searchBoxPlaceHolder","Enter SKU...",3,"textChange","onSubmit","text"],["role","button","routerLink","/menu/log/inventory",1,"btn","btn-success"],["container",""],[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"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[3,"ngClass"],[3,"routerLink","queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let d=I();i(0,"mainpanel",1),C("textChange",function(s){return c(d),y(e.filter.Sku,s)||(e.filter.Sku=s),u(s)}),w("onSubmit",function(s){return c(d),u(e.Get(s))}),i(1,"actions")(2,"a",2),r(3," Order Inventory Sync Job "),n()(),i(4,"filters")(5,"div",3)(6,"div")(7,"label",4),r(8,"Channel"),n(),i(9,"ng-select",5),C("ngModelChange",function(s){return c(d),y(e.filter.ChannelID,s)||(e.filter.ChannelID=s),u(s)}),f(10,ct,3,3,"ng-template",6),n()(),i(11,"div",7)(12,"label",8),r(13,"From/To"),n(),i(14,"div",9)(15,"datepicker",10),C("dateChange",function(s){return c(d),y(e.filter.From,s)||(e.filter.From=s),u(s)}),n()(),i(16,"div")(17,"datepicker",11),C("dateChange",function(s){return c(d),y(e.filter.To,s)||(e.filter.To=s),u(s)}),n()()(),i(18,"div",7)(19,"label",12),r(20,"Page Number"),n(),i(21,"input",13),C("ngModelChange",function(s){return c(d),y(e.filter.PageNumber,s)||(e.filter.PageNumber=s),u(s)}),n()(),i(22,"div",7)(23,"label",12),r(24,"Page Size"),n(),i(25,"input",14),C("ngModelChange",function(s){return c(d),y(e.filter.RowCount,s)||(e.filter.RowCount=s),u(s)}),n()()()(),i(26,"content")(27,"div",15)(28,"div",16)(29,"div",17),f(30,gt,18,4,"ng-container",18)(31,ht,2,0,"ng-template",null,0,K),n()()()()()}if(a&2){let d=J(32);_("text",e.filter.Sku),l(9),p("clearable",!0)("items",e.channelOptions),_("ngModel",e.filter.ChannelID),l(6),_("date",e.filter.From),l(2),_("date",e.filter.To),l(4),_("ngModel",e.filter.PageNumber),l(4),_("ngModel",e.filter.RowCount),l(5),p("ngIf",(e.Result==null?null:e.Result.length)>0)("ngIfElse",d)}},dependencies:[ge,Z,T,Q,ee,X,$,P,N,re,ne,te,ie,q,oe,D],encapsulation:2})}}return o})();var ft=()=>["/menu/log/rawlog/detail"],vt=o=>({ID:o});function _t(o,g){if(o&1&&(i(0,"span",17),L(1,"img",18),n(),r(2)),o&2){let t=g.item;l(),p("src",t.Img,G)("alt",t.Name),l(),R(" ",t.Name," ")}}function yt(o,g){if(o&1&&(i(0,"tr")(1,"td")(2,"a",25),r(3),b(4,"date"),n()(),i(5,"td"),r(6),n(),i(7,"td"),r(8),n(),i(9,"td"),r(10),n()()),o&2){let t=g.$implicit;l(2),p("routerLink",Y(9,ft))("queryParams",A(10,vt,t.id)),l(),R(" ",E(4,6,t.Created,"dd MMM yyyy HH:mm:ss")," "),l(3),m(t.type),l(2),m(t.number),l(2),m(t.message)}}function Ct(o,g){if(o&1){let t=I();H(0),i(1,"div",19)(2,"table",20)(3,"thead",21)(4,"tr")(5,"th",22),r(6,"Date"),n(),i(7,"th"),r(8,"Type"),n(),i(9,"th"),r(10,"Number"),n(),i(11,"th"),r(12,"Message"),n()()(),i(13,"tbody"),f(14,yt,11,12,"tr",23),n()(),i(15,"mat-paginator",24),w("page",function(e){c(t);let d=S();return u(d.changePage(e))}),n()(),z()}if(o&2){let t=S();l(14),p("ngForOf",t.Result),l(),p("length",t.paginationTotal)("pageSize",t.paginationPageSize)("pageIndex",(t.filter==null?null:t.filter.PageNumber)==0?0:(t.filter==null?null:t.filter.PageNumber)-1)}}function St(o,g){o&1&&(i(0,"div",26),L(1,"app-empty-state"),n())}var qe=(()=>{class o{constructor(t,a,e){this.http=t,this._RawLogService=a,this.authService=e,this.Result=Array(),this.filter={RowCount:20,Number:"",PageNumber:1,ActionType:"",ChannelID:"",StatusCode:"",From:"",To:""},this.list=[],this.Types=[{Key:0,Value:"Shopee"},{Key:1,Value:"Tokopedia"}],this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}Load(t={}){this.http.post("/api/OrdersLoader/Get",t).subscribe(a=>{this.filter=a.Filter,this.ActionTypeList=a.Options.ActionTypeList,this.Get()})}Get(t){this.filter.Number=t,this.http.post("api/Orders/GetRawLog",this.filter).subscribe(a=>{this._RawLogService.Data=a.hits,this.Result=Array();for(let e of a.hits){let d={id:e._id,message:e._source.message,responseCode:e._source.log.responseCode,processTypeString:e._source.log.processType,type:e._source.log.type,number:e._source.log.number,Created:e._source["@timestamp_received"]};this.Result.push(d)}this.paginationTotal=a.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}changePage(t){this.filter.PageNumber=t.pageIndex+1,this.Get()}static{this.\u0275fac=function(a){return new(a||o)(h(M),h(ae),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-raw-log"]],standalone:!1,decls:29,vars:10,consts:[["EMPTY_STATE",""],["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"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table"],[1,"thead-light"],[2,"width","200px"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[3,"routerLink","queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let d=I();i(0,"mainpanel",1),C("textChange",function(s){return c(d),y(e.filter.Number,s)||(e.filter.Number=s),u(s)}),w("onSubmit",function(s){return c(d),u(e.Get(s))}),i(1,"filters")(2,"div")(3,"label",2),r(4,"Channel"),n(),i(5,"ng-select",3),C("ngModelChange",function(s){return c(d),y(e.filter.ChannelID,s)||(e.filter.ChannelID=s),u(s)}),f(6,_t,3,3,"ng-template",4),n()(),i(7,"div",5)(8,"label",6),r(9,"From/To"),n(),i(10,"div",7)(11,"datepicker",8),C("dateChange",function(s){return c(d),y(e.filter.From,s)||(e.filter.From=s),u(s)}),n()(),i(12,"div")(13,"datepicker",9),C("dateChange",function(s){return c(d),y(e.filter.To,s)||(e.filter.To=s),u(s)}),n()()(),i(14,"div",5)(15,"label",10),r(16,"Page Number"),n(),i(17,"input",11),C("ngModelChange",function(s){return c(d),y(e.filter.PageNumber,s)||(e.filter.PageNumber=s),u(s)}),n()(),i(18,"div",5)(19,"label",10),r(20,"Page Size"),n(),i(21,"input",12),C("ngModelChange",function(s){return c(d),y(e.filter.RowCount,s)||(e.filter.RowCount=s),u(s)}),n()()(),i(22,"content")(23,"div",13)(24,"div",14)(25,"div",15),f(26,Ct,16,4,"ng-container",16)(27,St,2,0,"ng-template",null,0,K),n()()()()()}if(a&2){let d=J(28);_("text",e.filter.Number),l(5),p("clearable",!0)("items",e.channelOptions),_("ngModel",e.filter.ChannelID),l(6),_("date",e.filter.From),l(2),_("date",e.filter.To),l(4),_("ngModel",e.filter.PageNumber),l(4),_("ngModel",e.filter.RowCount),l(5),p("ngIf",(e.Result==null?null:e.Result.length)>0)("ngIfElse",d)}},dependencies:[Z,T,Q,ee,X,$,P,N,re,ne,te,ie,q,oe,D],encapsulation:2})}}return o})();function bt(o,g){if(o&1&&(i(0,"div",9)(1,"div",10)(2,"label"),r(3,"Process Code"),n(),i(4,"div")(5,"span"),r(6),n()()()()),o&2){let t=S();l(6),m(t.ProcessedCode)}}function xt(o,g){if(o&1){let t=I();i(0,"a",16),w("click",function(){c(t);let e=S();return u(e.Retry())}),r(1,"Retry"),n()}}var Ge=(()=>{class o{constructor(t,a){this.route=t,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(e=>{this.ID=e.ID,this.Load()})}Retry(){var t={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",t).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var t={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",t).subscribe(a=>{for(let e of a.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=B.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=B.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(M))}}static{this.\u0275cmp=x({type:o,selectors:[["app-raw-detail"]],standalone:!1,decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),r(11,"General"),n()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),r(17,"Date"),n(),i(18,"div")(19,"span"),r(20),b(21,"date"),n()()()(),i(22,"div",9)(23,"div",10)(24,"label"),r(25,"Number"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",9)(30,"div",10)(31,"label"),r(32,"Type"),n(),i(33,"div")(34,"span"),r(35),n()()()(),i(36,"div",9)(37,"div",10)(38,"label"),r(39,"Response Code"),n(),i(40,"div")(41,"span"),r(42),n()()()(),i(43,"div",9)(44,"div",10)(45,"label"),r(46,"ShopID"),n(),i(47,"div")(48,"span"),r(49),n()()()(),f(50,bt,7,1,"div",11),i(51,"div",9)(52,"div",10)(53,"label"),r(54,"Action"),n(),i(55,"div")(56,"span"),r(57),n()()()()()()()()(),i(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),r(63,"Request"),n()(),i(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),r(68),b(69,"json"),n()()(),i(70,"actions",14),f(71,xt,2,0,"a",15),n()()()(),i(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),r(76,"Response"),n()(),i(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),r(81),b(82,"json"),n()()()()()()()()()()),a&2&&(p("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),m(E(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),l(8),m(e.Number),l(7),m(e.MarketTypeString),l(7),m(e.ResponseCode),l(7),m(e.shopId),l(),p("ngIf",e.ProcessedCode!=null),l(7),m(e.POSActionTypeString),l(11),m(O(69,17,e.request)),l(3),p("ngIf",e.ResponseCode!="200"&&e.ResponseCode!="201"),l(10),m(O(82,19,e.response)))},dependencies:[T,P,N,F,D],encapsulation:2})}}return o})();function wt(o,g){if(o&1&&(i(0,"div",10)(1,"div",7)(2,"div",8)(3,"h5"),r(4,"General"),n()(),i(5,"div",9)(6,"div",3)(7,"div",6)(8,"div",12)(9,"label"),r(10,"Date"),n(),i(11,"div")(12,"span"),r(13),b(14,"date"),n()()()(),i(15,"div",6)(16,"div",12)(17,"label"),r(18,"SKU"),n(),i(19,"div")(20,"span"),r(21),n()()()(),i(22,"div",6)(23,"div",12)(24,"label"),r(25,"Channel"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",6)(30,"div",12)(31,"label"),r(32,"Response Code"),n(),i(33,"div")(34,"span"),r(35),n()()()()()()()()),o&2){let t=S();l(13),m(E(14,4,t.data.Created,"dd MMM yyyy")),l(8),m(t.data.Sku),l(7),m(t.data.ChannelName),l(7),m(t.data.ResponseCode)}}var He=(()=>{class o{constructor(t,a,e){this.route=t,this.http=a,this._RawLogService=e,this.data={Created:"",Sku:"",ChannelName:"",ResponseCode:""},this.route.queryParams.subscribe(d=>{this.ID=d.ID,this.Load()})}ngOnInit(){}Load(){var t={ID:this.ID};this.http.post("/api/Inventory/GetInventoryLogDeatil",t).subscribe(a=>{this.data.Created=a.hits[0]._source["@timestamp_received"],this.data.Sku=a.hits[0]._source.log.sku,this.data.ChannelName=a.hits[0]._source.log.channelName,this.data.ResponseCode=a.hits[0]._source.log.responseCode,this.request=B.IsNotEmpty(a.hits[0]?._source.log?.request)?JSON.parse(a.hits[0]?._source?.log?.request):"",this.response=a.hits[0]._source.log.response})}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(M),h(ae))}}static{this.\u0275cmp=x({type:o,selectors:[["app-inventory-detail"]],standalone:!1,decls:30,vars:7,consts:[["headerTitle","Product Inventory Sync Detail",3,"hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/inventory/sync-inventory",1,"btn","btn-secondary","btn-fill","btn-lg","me-2"],[1,"container-fluid","mt-3"],[1,"row"],["class","col-sm-12",4,"ngIf"],[1,"row","mt-2"],[1,"col-sm-6"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group"],[1,"info-label-group"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3),f(7,wt,36,7,"div",4),n(),i(8,"div",5)(9,"div",6)(10,"div",7)(11,"div",8)(12,"h5"),r(13,"Request"),n()(),i(14,"div",9)(15,"div",10)(16,"div",11)(17,"pre"),r(18),b(19,"json"),n()()()()()(),i(20,"div",6)(21,"div",7)(22,"div",8)(23,"h5"),r(24,"Response"),n()(),i(25,"div",9)(26,"div",10)(27,"div",11)(28,"pre"),r(29),n()()()()()()()()()()),a&2&&(p("hideSearchBox",!0)("hideSearchDropdown",!0),l(7),p("ngIf",e.data),l(11),m(O(19,5,e.request)),l(11),m(e.response))},dependencies:[T,P,N,F,D],encapsulation:2})}}return o})();function It(o,g){if(o&1&&(i(0,"div",9)(1,"div",10)(2,"label"),r(3,"Process Code"),n(),i(4,"div")(5,"span"),r(6),n()()()()),o&2){let t=S();l(6),m(t.ProcessedCode)}}function Et(o,g){if(o&1){let t=I();i(0,"a",16),w("click",function(){c(t);let e=S();return u(e.Retry())}),r(1,"Retry"),n()}}var ze=(()=>{class o{constructor(t,a){this.route=t,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(e=>{this.ID=e.ID,this.Load()})}Retry(){var t={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",t).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var t={ID:this.ID};this.http.post("/api/Orders/GetDetailChannelWebhook",t).subscribe(a=>{for(let e of a.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=B.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=B.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(M))}}static{this.\u0275cmp=x({type:o,selectors:[["app-orderdetail"]],standalone:!1,decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),r(11,"General"),n()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),r(17,"Date"),n(),i(18,"div")(19,"span"),r(20),b(21,"date"),n()()()(),i(22,"div",9)(23,"div",10)(24,"label"),r(25,"Number"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",9)(30,"div",10)(31,"label"),r(32,"Type"),n(),i(33,"div")(34,"span"),r(35),n()()()(),i(36,"div",9)(37,"div",10)(38,"label"),r(39,"Response Code"),n(),i(40,"div")(41,"span"),r(42),n()()()(),i(43,"div",9)(44,"div",10)(45,"label"),r(46,"ShopID"),n(),i(47,"div")(48,"span"),r(49),n()()()(),f(50,It,7,1,"div",11),i(51,"div",9)(52,"div",10)(53,"label"),r(54,"Action"),n(),i(55,"div")(56,"span"),r(57),n()()()()()()()()(),i(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),r(63,"Request"),n()(),i(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),r(68),b(69,"json"),n()()(),i(70,"actions",14),f(71,Et,2,0,"a",15),n()()()(),i(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),r(76,"Response"),n()(),i(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),r(81),b(82,"json"),n()()()()()()()()()()),a&2&&(p("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),m(E(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),l(8),m(e.Number),l(7),m(e.MarketTypeString),l(7),m(e.ResponseCode),l(7),m(e.shopId),l(),p("ngIf",e.ProcessedCode!=null),l(7),m(e.POSActionTypeString),l(11),m(O(69,17,e.request)),l(3),p("ngIf",e.ResponseCode!="200"&&e.ResponseCode!="201"),l(10),m(O(82,19,e.response)))},dependencies:[T,P,N,F,D],encapsulation:2})}}return o})();var Tt=()=>["/menu/log/exception/detail"],Dt=o=>({ID:o});function Mt(o,g){if(o&1&&(i(0,"span",17),L(1,"img",18),n(),r(2)),o&2){let t=g.item;l(),p("src",t.Img,G)("alt",t.Name),l(),R(" ",t.Name," ")}}function Nt(o,g){if(o&1&&L(0,"img",27),o&2){let t=S().$implicit;p("src",t.Logo,G)}}function Lt(o,g){if(o&1&&(i(0,"tr")(1,"td"),f(2,Nt,1,1,"img",25),r(3),n(),i(4,"td")(5,"a",26),r(6),n()(),i(7,"td"),r(8),b(9,"date"),n(),i(10,"td")(11,"div",10),r(12),n(),i(13,"div"),r(14),n()()()),o&2){let t,a=g.$implicit;l(2),p("ngIf",a.Logo),l(),R(" ",a.ChannelName," "),l(2),p("routerLink",Y(11,Tt))("queryParams",A(12,Dt,a.id)),l(),R(" ",(t=a.number)!==null&&t!==void 0?t:"N/A"," "),l(2),m(E(9,8,a.date,"dd-MM-yyyy hh:mm:ss")),l(4),m(a.message),l(2),m(a.stackTrace)}}function Pt(o,g){if(o&1){let t=I();H(0),i(1,"mat-paginator",28),w("page",function(e){c(t);let d=S(2);return u(d.onPaginationChange(e))}),n(),z()}if(o&2){let t=S(2);l(),p("length",t.pageTotal)("pageSize",t.pageSize)("pageIndex",(t.filter==null?null:t.filter.PageNumber)==0?0:(t.filter==null?null:t.filter.PageNumber)-1)}}function Rt(o,g){if(o&1&&(H(0),i(1,"div",19)(2,"table",20)(3,"thead")(4,"tr",21)(5,"th",22),r(6,"Channel Name"),n(),i(7,"th",22),r(8,"Number"),n(),i(9,"th",22),r(10,"Date"),n(),i(11,"th"),r(12,"Exception"),n()()(),i(13,"tbody"),f(14,Lt,15,14,"tr",23),n()(),f(15,Pt,2,3,"ng-container",24),n(),z()),o&2){let t=S();l(14),p("ngForOf",t.exceptions),l(),p("ngIf",(t.exceptions==null?null:t.exceptions.length)>0)}}function Ot(o,g){o&1&&(i(0,"div",29),L(1,"app-empty-state"),n())}var Ue=(()=>{class o{constructor(t,a){this.http=t,this.authService=a,this.exceptions=[],this.filter={RowCount:50,PageNumber:1,Number:null,From:null,To:null,ChannelID:null},this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}Load(t={}){this.http.post("/api/OrdersLoader/Get",t).subscribe(a=>{this.filter=a.Filter,this.getData()})}getData(t){this.filter.Number=t,this.http.post("/api/Orders/GetExceptionList",this.filter).subscribe(a=>{this.exceptions=a.hits.map(e=>({id:e._id,ChannelName:e._source?.channelId!=null?this.channelOptions.find(d=>d.ID===e._source?.channelId)?.Name:e._source?.shopId,Logo:e._source?.channelId!=null?this.channelOptions.find(d=>d.ID===e._source?.channelId)?.Img:null,number:e._source?.error?.number,date:e._source["@timestamp_received"],stackTrace:e._source?.error?.stackTrace,message:e._source?.message,requestJSON:e._source?.error?.requestJSON})),this.pageTotal=a.total.value,this.pageSize=this.filter.RowCount>this.pageTotal?this.pageTotal:this.filter.RowCount})}onPaginationChange(t){this.filter.PageNumber=t.pageIndex+1,this.getData()}static{this.\u0275fac=function(a){return new(a||o)(h(M),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-exception-log"]],standalone:!1,decls:29,vars:9,consts:[["EMPTY_STATE",""],["headerTitle","Exception Log","searchBoxPlaceHolder","Enter Number...",3,"onSubmit"],[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"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","10%"],[4,"ngFor","ngForOf"],[4,"ngIf"],["alt","Logo","style","width: 18px;",3,"src",4,"ngIf"],[3,"routerLink","queryParams"],["alt","Logo",2,"width","18px",3,"src"],[3,"page","length","pageSize","pageIndex"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,e){if(a&1){let d=I();i(0,"mainpanel",1),w("onSubmit",function(s){return c(d),u(e.getData(s))}),i(1,"filters")(2,"div")(3,"label",2),r(4,"Channel"),n(),i(5,"ng-select",3),C("ngModelChange",function(s){return c(d),y(e.filter.ChannelID,s)||(e.filter.ChannelID=s),u(s)}),f(6,Mt,3,3,"ng-template",4),n()(),i(7,"div",5)(8,"label",6),r(9,"From/To"),n(),i(10,"div",7)(11,"datepicker",8),C("dateChange",function(s){return c(d),y(e.filter.From,s)||(e.filter.From=s),u(s)}),n()(),i(12,"div")(13,"datepicker",9),C("dateChange",function(s){return c(d),y(e.filter.To,s)||(e.filter.To=s),u(s)}),n()()(),i(14,"div",5)(15,"label",10),r(16,"Page Number"),n(),i(17,"input",11),C("ngModelChange",function(s){return c(d),y(e.filter.PageNumber,s)||(e.filter.PageNumber=s),u(s)}),n()(),i(18,"div",5)(19,"label",10),r(20,"Page Size"),n(),i(21,"input",12),C("ngModelChange",function(s){return c(d),y(e.filter.RowCount,s)||(e.filter.RowCount=s),u(s)}),n()()(),i(22,"content")(23,"div",13)(24,"div",14)(25,"div",15),f(26,Rt,16,2,"ng-container",16)(27,Ot,2,0,"ng-template",null,0,K),n()()()()()}if(a&2){let d=J(28);l(5),p("clearable",!0)("items",e.channelOptions),_("ngModel",e.filter.ChannelID),l(6),_("date",e.filter.From),l(2),_("date",e.filter.To),l(4),_("ngModel",e.filter.PageNumber),l(4),_("ngModel",e.filter.RowCount),l(5),p("ngIf",e.exceptions.length>0)("ngIfElse",d)}},dependencies:[Z,T,Q,ee,X,$,P,N,re,ne,te,ie,q,oe,D],encapsulation:2})}}return o})();var Je=(()=>{class o{constructor(t){this.httpService=t}getExceptionDetail(t){return this.httpService.post("/api/Orders/GetDetailException",{ID:t}).pipe(ue(e=>e?.hits[0]?._source))}static{this.\u0275fac=function(a){return new(a||o)(we(M))}}static{this.\u0275prov=ce({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();function Wt(o,g){if(o&1&&(i(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"h5"),r(6,"General"),n()(),i(7,"div",7)(8,"div",8)(9,"div",9)(10,"div",10)(11,"label"),r(12,"Date"),n(),i(13,"div")(14,"span"),r(15),b(16,"date"),n()()()(),i(17,"div",9)(18,"div",10)(19,"label"),r(20,"Number"),n(),i(21,"div")(22,"span"),r(23),n()()()(),i(24,"div",9)(25,"div",10)(26,"label"),r(27,"Channel Name"),n(),i(28,"div")(29,"span"),r(30),n()()()(),i(31,"div",9)(32,"div",10)(33,"label"),r(34,"ShopID"),n(),i(35,"div")(36,"span"),r(37),n()()()(),i(38,"div",9)(39,"div",10)(40,"label"),r(41,"Channel ID"),n(),i(42,"div")(43,"span"),r(44),n()()()()()()()()(),i(45,"div",11)(46,"div",9)(47,"div",5)(48,"div",6)(49,"h5"),r(50,"Request"),n()(),i(51,"div",7)(52,"div",12)(53,"div",13)(54,"pre"),r(55),b(56,"json"),n()()()()()(),i(57,"div",9)(58,"div",5)(59,"div",6)(60,"h5"),r(61,"Exception"),n()(),i(62,"div",7)(63,"div",14)(64,"div",13)(65,"pre"),r(66),n()()()()()()()()),o&2){let t=g.ngIf;l(15),m(E(16,7,t["@timestamp"],"dd MMM yyyy HH:mm:ss")),l(8),m(t==null||t.error==null?null:t.error.number),l(7),m(t==null?null:t.channelName),l(7),m(t==null?null:t.shopId),l(7),m(t==null?null:t.message),l(11),m(O(56,10,t==null||t.error==null?null:t.error.request)),l(11),m(t==null||t.error==null?null:t.error.response)}}var Ye=(()=>{class o{constructor(t,a,e){this.activatedRoute=t,this.exceptionService=a,this.authService=e,this.invoiceNumber="",this.channelName="",this.logo=null,this.channelOptions=this.authService.getChannels()}ngOnInit(){let t=this.activatedRoute.snapshot.queryParams;this.exceptionDetail$=this.exceptionService.getExceptionDetail(t?.ID).pipe(ue(a=>{let e=a;return{"@timestamp":e["@timestamp"]||e["@timestamp_received"],error:{number:e?.error?.number,request:JSON.parse(e?.error?.request),response:JSON.parse(e?.error?.response)},channelName:e?.channelId!=null?this.channelOptions.find(d=>d.ID===e?.channelId)?.Name:e?.shopId,shopId:e?.shopId,message:e?.message}}))}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(Je),h(j))}}static{this.\u0275cmp=x({type:o,selectors:[["app-exception-detail"]],standalone:!1,decls:4,vars:6,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["class","container-fluid mt-3",4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-2"],[1,"col-sm-12"],[1,"form-group"],[1,"col-sm-12","mt-2"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"content"),f(2,Wt,67,12,"div",1),b(3,"async"),n()()),a&2&&(p("headerTitle","Order #"+e.invoiceNumber)("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),p("ngIf",O(3,4,e.exceptionDetail$)))},dependencies:[T,N,Ee,F,D],encapsulation:2})}}return o})();function kt(o,g){if(o&1&&(i(0,"div",9)(1,"div",10)(2,"label"),r(3,"Process Code"),n(),i(4,"div")(5,"span"),r(6),n()()()()),o&2){let t=S();l(6),m(t.ProcessedCode)}}function Bt(o,g){if(o&1){let t=I();i(0,"a",16),w("click",function(){c(t);let e=S();return u(e.Retry())}),r(1,"Retry"),n()}}var Ke=(()=>{class o{constructor(t,a){this.route=t,this.http=a,this.ProcessDuration=0,this.request="",this.response="",this.route.queryParams.subscribe(e=>{this.ID=e.ID,this.Load()})}Retry(){var t={Number:this.Number,ShopID:this.shopId};this.http.post("/api/Orders/Retry",t).subscribe(a=>{alert(JSON.stringify(a))})}Load(){var t={ID:this.ID};this.http.post("/api/Orders/GetDetailSyncOrder",t).subscribe(a=>{for(let e of a.hits)this.Number=e._source.log.number,this.MarketTypeString=e._source.log.type,this.ResponseCode=e._source.log.responseCode,this.POSActionTypeString=e._source.message,this.ProcessDuration=0,this.Created=e._source["@timestamp_received"],this.request=B.IsNotEmpty(e._source?.log?.request)?JSON.parse(e._source.log?.request):"",this.response=B.IsNotEmpty(e._source?.log?.response)?JSON.parse(e._source.log?.response):"",this.shopId=e._source.shopId,this.ProcessedCode=e._source.log.processedCode})}static{this.\u0275fac=function(a){return new(a||o)(h(k),h(M))}}static{this.\u0275cmp=x({type:o,selectors:[["app-orderdetail-user"]],standalone:!1,decls:83,vars:21,consts:[[3,"headerTitle","pageData","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/log/order",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-sm-12"],[1,"card"],[1,"card-header"],[1,"card-body"],[1,"row","mt-7"],[1,"col-sm-6"],[1,"info-label-group"],["class","col-sm-6",4,"ngIf"],[1,"row","mt-2"],[1,"form-group"],[1,"float-right"],["role","button","class","btn btn-success btn-fill btn-lg me-3",3,"click",4,"ngIf"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","me-3",3,"click"]],template:function(a,e){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),r(3,"Back"),n()(),i(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),r(11,"General"),n()(),i(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),r(17,"Date"),n(),i(18,"div")(19,"span"),r(20),b(21,"date"),n()()()(),i(22,"div",9)(23,"div",10)(24,"label"),r(25,"Number"),n(),i(26,"div")(27,"span"),r(28),n()()()(),i(29,"div",9)(30,"div",10)(31,"label"),r(32,"Type"),n(),i(33,"div")(34,"span"),r(35),n()()()(),i(36,"div",9)(37,"div",10)(38,"label"),r(39,"Response Code"),n(),i(40,"div")(41,"span"),r(42),n()()()(),i(43,"div",9)(44,"div",10)(45,"label"),r(46,"ShopID"),n(),i(47,"div")(48,"span"),r(49),n()()()(),f(50,kt,7,1,"div",11),i(51,"div",9)(52,"div",10)(53,"label"),r(54,"Action"),n(),i(55,"div")(56,"span"),r(57),n()()()()()()()()(),i(58,"div",12)(59,"div",9)(60,"div",5)(61,"div",6)(62,"h5"),r(63,"Request"),n()(),i(64,"div",7)(65,"div",4)(66,"div",13)(67,"pre"),r(68),b(69,"json"),n()()(),i(70,"actions",14),f(71,Bt,2,0,"a",15),n()()()(),i(72,"div",9)(73,"div",5)(74,"div",6)(75,"h5"),r(76,"Response"),n()(),i(77,"div",7)(78,"div",4)(79,"div",13)(80,"pre"),r(81),b(82,"json"),n()()()()()()()()()()),a&2&&(p("headerTitle","Order #"+e.Number)("pageData","Orders Detail ")("hideSearchBox",!0)("hideSearchDropdown",!0),l(20),m(E(21,14,e.Created,"dd MMM yyyy HH:mm:ss")),l(8),m(e.Number),l(7),m(e.MarketTypeString),l(7),m(e.ResponseCode),l(7),m(e.shopId),l(),p("ngIf",e.ProcessedCode!=null),l(7),m(e.POSActionTypeString),l(11),m(O(69,17,e.request)),l(3),p("ngIf",e.ResponseCode!="200"&&e.ResponseCode!="201"),l(10),m(O(82,19,e.response)))},dependencies:[T,P,N,F,D],encapsulation:2})}}return o})();var At=[{path:"",component:Ae,children:[{path:"",redirectTo:"exception",pathMatch:"full"},{path:"order",component:Fe,canActivate:[W],data:{title:"Order Log"}},{path:"inventory/sync-inventory",component:je,canActivate:[W],data:{title:"Product Inventory Sync"}},{path:"rawlog",component:qe,canActivate:[W],data:{title:"Raw Log"}},{path:"rawlog/detail",component:Ge,canActivate:[W],data:{title:"Raw Log Detail"}},{path:"inventory/sync-inventory/detail",component:He,canActivate:[W],data:{title:"Product Inventory Sync Detail"}},{path:"order/detail",component:ze,canActivate:[W],data:{title:"Order Details"}},{path:"order/detail-user",component:Ke,canActivate:[W],data:{title:"Order User Details"}},{path:"exception",component:Ue,canActivate:[W],data:{title:"Exception Log"}},{path:"exception/detail",component:Ye,canActivate:[W],data:{title:"Exception Log Detail"}},{path:"inventory",loadComponent:()=>import("./chunk-AGZCB65X.js").then(o=>o.InventoryAsyncLogComponent),canActivate:[W],data:{title:"Product Inventory Sync"}},{path:"inventory/detail",loadComponent:()=>import("./chunk-LBMUKJV5.js").then(o=>o.InventoryAsyncDetailComponent),canActivate:[W],data:{title:"Product Inventory Sync Detail"}},{path:"authorization-log",loadComponent(){return import("./chunk-VIDSOLHF.js").then(o=>o.ChannelLogComponent)},canActivate:[W],data:{title:"Authorization Log"}}]}],Ze=(()=>{class o{static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275mod=pe({type:o})}static{this.\u0275inj=me({imports:[he,fe.forChild(At)]})}}return o})();var Qe=(()=>{class o{static \u0275fac=function(a){return new(a||o)};static \u0275mod=pe({type:o});static \u0275inj=me({})}return o})();var $i=(()=>{class o{static{this.\u0275fac=function(a){return new(a||o)}}static{this.\u0275mod=pe({type:o})}static{this.\u0275inj=me({imports:[he,Ne,Le,Ze,fe,ke,Qe,Be,Pe,We,q,Oe]})}}return o})();export{$i as LogsModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as P}from"./chunk-2Z7CPNRS.js";import"./chunk-YERZ6W22.js";import{a as ft}from"./chunk-HHO2NGCF.js";import{a as ut}from"./chunk-LDL3A7NM.js";import"./chunk-FHWKSD5A.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{e as st}from"./chunk-PYXL7UF7.js";import"./chunk-PW42BQIY.js";import{m as pt,n as dt}from"./chunk-HJXYT6MI.js";import{A as mt,h as lt,m as ct}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{H as at,J as rt,d as Y,f as Z,g as tt,j as et,k as it,m as nt,n as ot}from"./chunk-FXQKRJWU.js";import{$c as f,Fc as $,Gb as T,Gc as o,Hc as g,Ic as C,Jc as H,Kc as W,Lc as q,Mb as u,Mc as J,Nc as j,Qc as z,Ra as M,Rc as K,Sc as U,Tc as G,Uc as Q,Yb as s,Z as D,ac as k,ad as E,bd as y,cd as X,dc as x,ec as B,gc as L,hc as R,ic as i,jc as n,kc as O,lc as h,mc as N,oc as A,pa as w,pb as F,rb as a,tc as I,uc as _,v as V,ya as p,za as d}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var b=function(t){return t[t.InProgress=0]="InProgress",t[t.Completed=1]="Completed",t[t.Failed=2]="Failed",t}(b||{});var _t=(t,c)=>({"bg-gradient-danger":t,"bg-gradient-warning":c}),gt=()=>["/menu/products/status/notification/detailV2"],Ct=t=>({ID:t}),St=(t,c,l)=>({"text-warning":t,"text-success":c,"text-danger":l});function vt(t,c){if(t&1&&(i(0,"div"),o(1),f(2,"number"),n()),t&2){let l=c.$implicit;a(),H(" ",l.Key,": ",E(2,2,l.Value)," ")}}function xt(t,c){if(t&1&&(i(0,"div",21)(1,"div",20),o(2,"Status Product:"),n(),L(3,vt,3,4,"div",null,B),n()),t&2){let l=_().$implicit;a(3),R(l.ParsedStatus)}}function ht(t,c){if(t&1&&(h(0),o(1),f(2,"number"),i(3,"span"),o(4,"s"),n(),N()),t&2){let l=_().$implicit;a(),C(" ",y(2,1,l.DurationInSecond,"1.1-1")," ")}}function Nt(t,c){t&1&&o(0," - ")}function It(t,c){t&1&&o(0," In Progress ")}function Et(t,c){t&1&&o(0," Completed ")}function yt(t,c){t&1&&o(0," Failed ")}function Pt(t,c){if(t&1&&(h(0),i(1,"tr",16)(2,"td")(3,"a",17),o(4),n()(),i(5,"td")(6,"div",18),O(7,"img",19),i(8,"span"),o(9),n()()(),i(10,"td")(11,"div",20),o(12),n(),i(13,"div"),o(14),n(),u(15,xt,5,0,"div",21),n(),i(16,"td"),u(17,ht,5,4,"ng-container",22)(18,Nt,1,0,"ng-template",null,0,X),n(),i(20,"td")(21,"div",20),u(22,It,1,0)(23,Et,1,0)(24,yt,1,0),n()(),i(25,"td"),o(26),f(27,"date"),n()(),N()),t&2){let l,e=c.$implicit,m=$(19),r=_();a(),s("ngClass",G(18,_t,e.Status==1,e.Status==0)),a(2),s("routerLink",K(21,gt))("queryParams",U(22,Ct,e.ID)),a(),C(" ",e.ID," "),a(3),s("src",e.Img,F),a(2),g(e.ChannelName),a(3),g(e.ProcessLabel),a(2),g(e.ProcessDescription),a(),x(e!=null&&e.ParsedStatus&&(e==null||e.ParsedStatus==null?null:e.ParsedStatus.length)>0?15:-1),a(2),s("ngIf",e.DurationInSecond)("ngIfElse",m),a(4),k(Q(24,St,e.StateID==r.scanState.InProgress,e.StateID==r.scanState.Completed,e.StateID==r.scanState.Failed)),a(),x((l=e.StateID)===r.scanState.InProgress?22:l===r.scanState.Completed?23:l===r.scanState.Failed?24:-1),a(4),C(" ",y(27,15,e.Created,"dd MMM yyyy HH:mm")," ")}}var zt=(()=>{class t{constructor(){this.notificationService=w(P),this.filter=M({RowCount:20,PageNumber:1,ChannelID:null}),this.scanState=b,this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotificationList(this.filter()).pipe(V(l=>(l.Data=l.Data.map(e=>(e.StatusProduct&&(e.ParsedStatus=JSON.parse(e.StatusProduct)),e)),l)),D(1))}onFilter(){this.initNotifications()}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=T({type:t,selectors:[["app-notificationV2"]],features:[z([P])],decls:36,vars:9,consts:[["timeNotAvailable",""],["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"],[4,"ngFor","ngForOf"],[1,"col-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[3,"ngClass"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","gap-3"],[1,"channelLogo-md",3,"src","alt"],[1,"fw-bold"],[1,"lh-base"],[4,"ngIf","ngIfElse"]],template:function(e,m){if(e&1){let r=A();j(0),f(1,"async"),i(2,"mainpanel",1),I("onSubmit",function(){return p(r),d(m.onFilter())}),i(3,"actions")(4,"a",2),o(5," Back "),n()(),i(6,"filters")(7,"div")(8,"label",3),o(9,"Channel"),n(),i(10,"channel-select-options",4),J("ngModelChange",function(v){return p(r),q(m.filter().ChannelID,v)||(m.filter().ChannelID=v),d(v)}),n()()(),i(11,"content")(12,"div",5)(13,"div",6)(14,"div",7)(15,"div",8)(16,"table",9)(17,"thead",10)(18,"tr",11)(19,"th",12),o(20,"Job ID"),n(),i(21,"th"),o(22,"Channel"),n(),i(23,"th"),o(24,"Process"),n(),i(25,"th"),o(26,"Duration"),n(),i(27,"th"),o(28,"Status"),n(),i(29,"th"),o(30,"Created"),n()()(),i(31,"tbody"),u(32,Pt,28,28,"ng-container",13),n()()()()(),i(33,"div",6)(34,"div",14)(35,"app-custom-paginator",15),I("next",function(){return p(r),d(m.initNotifications())})("previous",function(){return p(r),d(m.initNotifications())}),n()()()()()()}if(e&2){let r=E(1,7,m.notifications$);a(2),s("hideSearchBox",!0),a(8),W("ngModel",m.filter().ChannelID),a(22),s("ngForOf",r==null?null:r.Data),a(3),s("filter",m.filter())("totaldata",r==null||r.Data==null?null:r.Data.length)("paginationTotal",r==null?null:r.Count)("hasClicked",!0)}},dependencies:[ot,Y,Z,tt,et,nt,it,mt,lt,ct,dt,pt,ut,st,rt,at,ft],encapsulation:2})}}return t})();export{zt as NotificationV2Component};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import{a}from"./chunk-CGOB6Y3X.js";import{b as h,e as p}from"./chunk-WN5DZGA4.js";import{ja as I,oa as o}from"./chunk-OJMQBH6T.js";var D=(()=>{class r{constructor(n,e){this.toastrService=n,this.http=e}getLastInfoDownloadInventory(n){return this.http.post(a.GetLastInfoDownloadInventory,{ChannelID:n})}refreshInventory(n){let e=n.map(t=>t.Channel.map(s=>(s.VariantID=t.ID,s))).reduce((t,i)=>(t=t.concat(i),t),[]).map(t=>({ChannelItemID:t.ChannelItemID,ChannelID:t.ChannelID,VariantID:t.VariantID,ChannelVariationID:t.ChannelVariationID}));return this.http.post(a.RefreshInventory,e)}static{this.\u0275fac=function(e){return new(e||r)(o(h),o(p))}}static{this.\u0275prov=I({token:r,factory:r.\u0275fac})}}return r})();export{D as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{M as o}from"./chunk-GZKOMS4T.js";import{Hb as i,ka as t}from"./chunk-OJMQBH6T.js";var m=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=i({type:e});static \u0275inj=t({imports:[o,o]})}return e})();export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as E}from"./chunk-
|
|
1
|
+
import{a as E}from"./chunk-WAZXTB4X.js";import{a as T}from"./chunk-KRQHTRFM.js";import{i as w}from"./chunk-FHWKSD5A.js";import{a as D}from"./chunk-CGOB6Y3X.js";import{b as j,e as s}from"./chunk-WN5DZGA4.js";import{b as i,c as m}from"./chunk-PW42BQIY.js";import{G as C}from"./chunk-FXQKRJWU.js";import{B as A,G as U,J as u,Ra as I,g as k,ja as c,pa as a,q as d,v as b}from"./chunk-OJMQBH6T.js";var F=(()=>{class o{constructor(){this.httpService=a(s)}getAttributes(t,e){return this.httpService.get("api/product/shopee/GetAttributesTree",[{key:"ID",value:t},{key:"CategoryID",value:e}])}getCategories(t){return this.httpService.get("api/product/shopee/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/shopee/AddProduct",t).pipe(u(r=>d(null)))}generateAttribute(t){return t.map(e=>({attribute_id:e.attribute_id,attribute_value_list:e.attribute_value_list.map(r=>({value_id:r.value_id,name:r.name}))})),t}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var x=(()=>{class o{constructor(){this.httpService=a(s)}getCategories(t){return this.httpService.get("api/product/tiktok/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/tiktok/AddProduct",t).pipe(u(r=>d(null)))}generateAttribute(t){let e;return t.map(r=>(r.type=="PRODUCT_PROPERTY"?e={id:r.id,name:r.name,type:r.type,values:r.values}:e={id:r.id,name:r.values[0].id,type:r.type},e))}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var H=(()=>{class o{constructor(){this.httpService=a(s)}getAttributes(t,e){return this.httpService.get("api/product/lazada/GetAttributes",[{key:"ID",value:t},{key:"CategoryID",value:e}])}getCategories(t){return this.httpService.get("api/product/lazada/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/lazada/AddProduct",t).pipe(u(r=>d(null)))}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var R=(()=>{class o{constructor(){this.httpService=a(s)}getAttributes(t,e){return this.httpService.get("api/product/woo/GetAttributes",[{key:"ID",value:t},{key:"CategoryID",value:e}])}getCategories(t){return this.httpService.get("api/product/woo/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/woo/AddProduct",t).pipe(u(r=>d(null)))}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var g=class{};var v=class{};var z=(()=>{class o{constructor(){this.httpService=a(s)}getCategories(t){return this.httpService.get("api/product/tokopedia/GetCategories",[{key:"ID",value:t}])}uploadProduct(t){return this.httpService.post("api/product/tokopedia/AddProduct",t).pipe(u(r=>d(null)))}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var G=(()=>{class o{constructor(){this.httpService=a(s)}uploadProduct(t){return this.httpService.post("api/product/shopify/AddProduct",t).pipe(u(r=>d(null)))}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var N=(()=>{class o{constructor(){this.httpService=a(s)}uploadProduct(t){return this.httpService.post(D.UploadPlugoProduct,t).pipe(u(e=>d(null)))}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Vt=(()=>{class o{constructor(){this.authService=a(w),this.productService=a(T),this.shoppeUploadService=a(F),this.tiktokUploadService=a(x),this.lazadaUploadService=a(H),this.tokopediaUploadService=a(z),this.wooUploadService=a(R),this.shopifyUploadService=a(G),this.plugoUploadService=a(N),this.toastrHandlingService=a(E),this.toastr=a(j),this.router=a(C),this.httpService=a(s),this._selectedProduct=new k(this.getStoredProducts()),this.selectedProduct$=this._selectedProduct.asObservable().pipe(U(t=>t&&t.length>0))}getStoredProducts(){let t=localStorage.getItem("productsUpload");if(t){let e=JSON.parse(t);return e&&e.length>0?e:[]}else return[]}setSelectedProduct(t){localStorage.setItem("productsUpload",JSON.stringify(t)),this._selectedProduct.next(t)}clearSelectedProduct(){localStorage.removeItem("productsUpload"),this._selectedProduct.next([])}getUnselectedChannels(){let t=this.authService.getChannels(),e=this._selectedProduct.getValue();return this.productService.filterUnselectedChannel(e,t)}getDefaultCategory(){return this.httpService.get("api/v1/Channel/ProductCategory/Default")}get channelProductUpload(){let t=this.getUnselectedChannels();return I(t.map(r=>{let p=new g;return p.id=r.ID,p.name=r.Name,p.type=r.TypeID,p.categoryId=null,p.attributes=[],p.selected=!1,p}))}onUploadProduct(t){let e=t.filter(r=>r.selected&&m.IsNotEmpty(r.categoryId)||r.selected&&(r.type==i.Shopify||r.type==i.Plugo));if(e.length>0){let r=this.generateDataForUpload(e);this.uploadProduct(r)}else this.toastr.warning("Please select a channel and category to upload the product.","Warning!")}uploadProduct(t){let e=this.generateObservableForUpload(t);A(e).pipe(b(r=>{let p=[];return r.filter(h=>m.IsNotEmpty(h)).forEach(h=>{p=[...p,...h]}),p})).subscribe({next:(r=[])=>{m.IsNotEmpty(r)&&this.toastrHandlingService.showToastrUploadMultiple(r),this.hasSuccessRes(r)&&this.onSuccessUpload()}})}hasSuccessRes(t){let e=!1;return t.forEach(r=>{r?.Response.Success_list?.length>0&&m.IsNotEmpty(r)&&(e=!0)}),e}onSuccessUpload(){this.router.navigate(["/menu/products/status/sold-in-channel"]),this.clearSelectedProduct()}generateObservableForUpload(t){let e=[],r=[],p=[],h=[],S=[],y=[],P=[];t.forEach(l=>{switch(l.ChannelType){case i.Shopee:r.push(l);break;case i.Tiktok:e.push(l);break;case i.Lazada:p.push(l);break;case i.Tokopedia:h.push(l);break;case i.WooCommerce:S.push(l);break;case i.Shopify:y.push(l);break;case i.Plugo:P.push(l);break}});let n=[];return[{type:i.Shopee,data:r},{type:i.Tiktok,data:e},{type:i.Lazada,data:p},{type:i.Tokopedia,data:h},{type:i.WooCommerce,data:S},{type:i.Shopify,data:y},{type:i.Plugo,data:P}].filter(l=>l.data.length>0).forEach(l=>{switch(l.type){case i.Shopee:n.push(this.shoppeUploadService.uploadProduct(r));break;case i.Tiktok:n.push(this.tiktokUploadService.uploadProduct(e));break;case i.Lazada:n.push(this.lazadaUploadService.uploadProduct(p));break;case i.Tokopedia:n.push(this.tokopediaUploadService.uploadProduct(h));break;case i.WooCommerce:n.push(this.wooUploadService.uploadProduct(S));break;case i.Shopify:n.push(this.shopifyUploadService.uploadProduct(y));break;case i.Plugo:n.push(this.plugoUploadService.uploadProduct(P));break}}),n}generateDataForUpload(t){let e=[];return t.forEach(r=>{let p=new v;p.ChannelID=r.id,p.ChannelType=r.type,p.Products=this._selectedProduct.getValue(),r.type==i.Shopify?delete p.CategoryID:p.CategoryID=r.categoryId,p=this.generateAttributeHttpRequest(r,p),e.push(p)}),e}generateAttributeHttpRequest(t,e){return t.type==i.WooCommerce||t.type==i.Shopify?e.Attribute=t.attributes[0]:t.type==i.Tiktok?(e.Attributes=this.formatAttributes(t.type,t.attributes),e.listing_platforms=t.listing_platforms):e.Attributes=this.formatAttributes(t.type,t.attributes),e}formatAttributes(t,e){let r;switch(t){case i.Shopee:r=this.shoppeUploadService.generateAttribute(e);break;case i.Tiktok:r=this.tiktokUploadService.generateAttribute(e);break;case i.WooCommerce:r=this.tiktokUploadService.generateAttribute(e);break;case i.Tokopedia:r=e;break;case i.Shopify:r=e;break;default:r=[];break}return r}static{this.\u0275fac=function(e){return new(e||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();export{F as a,x as b,H as c,R as d,Vt as e};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import{a as ee}from"./chunk-4YRBARG2.js";import{a as Z}from"./chunk-YFDFIBAG.js";import{fa as W,na as X,oa as y,pa as Y}from"./chunk-RC5PUUVM.js";import{d as H,g as U,i as G,n as J}from"./chunk-FXQKRJWU.js";import{$b as z,Bc as T,Ca as C,Cc as k,Fc as B,Gb as S,Gc as N,Hb as D,Hc as Q,Ka as b,Kb as F,Mb as m,Qc as K,Xb as _,Yb as c,Zb as j,ac as f,cd as L,ic as h,ja as $,jc as g,ka as E,kc as A,lc as x,mc as I,oc as u,od as q,pa as V,pb as P,rb as p,tc as d,uc as r,vc as O,wc as R,xa as M,ya as s,za as l,zc as w}from"./chunk-OJMQBH6T.js";var ne=["removeicon"],te=["*"];function oe(e,a){if(e&1){let i=u();h(0,"img",4),d("error",function(t){s(i);let o=r();return l(o.imageError(t))}),g()}if(e&2){let i=r();c("src",i.image,P)("alt",i.alt)}}function re(e,a){if(e&1&&A(0,"span",6),e&2){let i=r(2);f(i.icon),c("ngClass","p-chip-icon"),_("data-pc-section","icon")}}function ce(e,a){if(e&1&&m(0,re,1,4,"span",5),e&2){let i=r();c("ngIf",i.icon)}}function ae(e,a){if(e&1&&(h(0,"div",7),N(1),g()),e&2){let i=r();_("data-pc-section","label"),p(),Q(i.label)}}function pe(e,a){if(e&1){let i=u();h(0,"span",11),d("click",function(t){s(i);let o=r(3);return l(o.close(t))})("keydown",function(t){s(i);let o=r(3);return l(o.onKeydown(t))}),g()}if(e&2){let i=r(3);f(i.removeIcon),c("ngClass","p-chip-remove-icon"),_("data-pc-section","removeicon")("aria-label",i.removeAriaLabel)}}function se(e,a){if(e&1){let i=u();h(0,"TimesCircleIcon",12),d("click",function(t){s(i);let o=r(3);return l(o.close(t))})("keydown",function(t){s(i);let o=r(3);return l(o.onKeydown(t))}),g()}if(e&2){let i=r(3);f("p-chip-remove-icon"),_("data-pc-section","removeicon")("aria-label",i.removeAriaLabel)}}function le(e,a){if(e&1&&(x(0),m(1,pe,1,5,"span",9)(2,se,1,4,"TimesCircleIcon",10),I()),e&2){let i=r(2);p(),c("ngIf",i.removeIcon),p(),c("ngIf",!i.removeIcon)}}function me(e,a){}function _e(e,a){e&1&&m(0,me,0,0,"ng-template")}function he(e,a){if(e&1){let i=u();h(0,"span",13),d("click",function(t){s(i);let o=r(2);return l(o.close(t))})("keydown",function(t){s(i);let o=r(2);return l(o.onKeydown(t))}),m(1,_e,1,0,null,14),g()}if(e&2){let i=r(2);_("data-pc-section","removeicon")("aria-label",i.removeAriaLabel),p(),c("ngTemplateOutlet",i.removeIconTemplate||i._removeIconTemplate)}}function ge(e,a){if(e&1&&(x(0),m(1,le,3,2,"ng-container",3)(2,he,2,3,"span",8),I()),e&2){let i=r();p(),c("ngIf",!i.removeIconTemplate&&!i._removeIconTemplate),p(),c("ngIf",i.removeIconTemplate||i._removeIconTemplate)}}var fe=({dt:e})=>`
|
|
2
|
+
.p-chip {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
align-items: center;
|
|
5
|
+
background: ${e("chip.background")};
|
|
6
|
+
color: ${e("chip.color")};
|
|
7
|
+
border-radius: ${e("chip.border.radius")};
|
|
8
|
+
padding: ${e("chip.padding.y")} ${e("chip.padding.x")};
|
|
9
|
+
gap: ${e("chip.gap")};
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.p-chip-icon {
|
|
13
|
+
color: ${e("chip.icon.color")};
|
|
14
|
+
font-size: ${e("chip.icon.font.size")};
|
|
15
|
+
width: ${e("chip.icon.size")};
|
|
16
|
+
height: ${e("chip.icon.size")};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.p-chip-image {
|
|
20
|
+
border-radius: 50%;
|
|
21
|
+
width: ${e("chip.image.width")};
|
|
22
|
+
height: ${e("chip.image.height")};
|
|
23
|
+
margin-left: calc(-1 * ${e("chip.padding.y")});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.p-chip:has(.p-chip-remove-icon) {
|
|
27
|
+
padding-inline-end: ${e("chip.padding.y")};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.p-chip:has(.p-chip-image) {
|
|
31
|
+
padding-top: calc(${e("chip.padding.y")} / 2);
|
|
32
|
+
padding-bottom: calc(${e("chip.padding.y")} / 2);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.p-chip-remove-icon {
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
font-size: ${e("chip.remove.icon.font.size")};
|
|
38
|
+
width: ${e("chip.remove.icon.size")};
|
|
39
|
+
height: ${e("chip.remove.icon.size")};
|
|
40
|
+
color: ${e("chip.remove.icon.color")};
|
|
41
|
+
border-radius: 50%;
|
|
42
|
+
transition: outline-color ${e("chip.transition.duration")}, box-shadow ${e("chip.transition.duration")};
|
|
43
|
+
outline-color: transparent;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.p-chip-remove-icon:focus-visible {
|
|
47
|
+
box-shadow: ${e("chip.remove.icon.focus.ring.shadow")};
|
|
48
|
+
outline: ${e("chip.remove.icon.focus.ring.width")} ${e("chip.remove.icon.focus.ring.style")} ${e("chip.remove.icon.focus.ring.color")};
|
|
49
|
+
outline-offset: ${e("chip.remove.icon.focus.ring.offset")};
|
|
50
|
+
}
|
|
51
|
+
`,ue={root:"p-chip p-component",image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},ie=(()=>{class e extends W{name="chip";theme=fe;classes=ue;static \u0275fac=(()=>{let i;return function(t){return(i||(i=C(e)))(t||e)}})();static \u0275prov=$({token:e,factory:e.\u0275fac})}return e})();var de=(()=>{class e extends Z{label;icon;image;alt;style;styleClass;removable=!1;removeIcon;onRemove=new b;onImageError=new b;visible=!0;get removeAriaLabel(){return this.config.getTranslation(Y.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(i){this._chipProps=i,i&&typeof i=="object"&&Object.entries(i).forEach(([n,t])=>this[`_${n}`]!==t&&(this[`_${n}`]=t))}_chipProps;_componentStyle=V(ie);removeIconTemplate;templates;_removeIconTemplate;ngAfterContentInit(){this.templates.forEach(i=>{switch(i.getType()){case"removeicon":this._removeIconTemplate=i.template;break;default:this._removeIconTemplate=i.template;break}})}ngOnChanges(i){if(super.ngOnChanges(i),i.chipProps&&i.chipProps.currentValue){let{currentValue:n}=i.chipProps;n.label!==void 0&&(this.label=n.label),n.icon!==void 0&&(this.icon=n.icon),n.image!==void 0&&(this.image=n.image),n.alt!==void 0&&(this.alt=n.alt),n.style!==void 0&&(this.style=n.style),n.styleClass!==void 0&&(this.styleClass=n.styleClass),n.removable!==void 0&&(this.removable=n.removable),n.removeIcon!==void 0&&(this.removeIcon=n.removeIcon)}}containerClass(){let i="p-chip p-component";return this.styleClass&&(i+=` ${this.styleClass}`),i}close(i){this.visible=!1,this.onRemove.emit(i)}onKeydown(i){(i.key==="Enter"||i.key==="Backspace")&&this.close(i)}imageError(i){this.onImageError.emit(i)}static \u0275fac=(()=>{let i;return function(t){return(i||(i=C(e)))(t||e)}})();static \u0275cmp=S({type:e,selectors:[["p-chip"]],contentQueries:function(n,t,o){if(n&1&&(w(o,ne,4),w(o,X,4)),n&2){let v;T(v=k())&&(t.removeIconTemplate=v.first),T(v=k())&&(t.templates=v)}},hostVars:9,hostBindings:function(n,t){n&2&&(_("data-pc-name","chip")("aria-label",t.label)("data-pc-section","root"),z(t.style),f(t.containerClass()),j("display",!t.visible&&"none"))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",style:"style",styleClass:"styleClass",removable:[2,"removable","removable",q],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[K([ie]),F,M],ngContentSelectors:te,decls:6,vars:4,consts:[["iconTemplate",""],["class","p-chip-image",3,"src","alt","error",4,"ngIf","ngIfElse"],["class","p-chip-label",4,"ngIf"],[4,"ngIf"],[1,"p-chip-image",3,"error","src","alt"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-chip-label"],["tabindex","0","class","p-chip-remove-icon","role","button",3,"click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","ngClass","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"click","keydown","ngClass"],["tabindex","0","role","button",3,"click","keydown"],["tabindex","0","role","button",1,"p-chip-remove-icon",3,"click","keydown"],[4,"ngTemplateOutlet"]],template:function(n,t){if(n&1&&(O(),R(0),m(1,oe,1,2,"img",1)(2,ce,1,1,"ng-template",null,0,L)(4,ae,2,2,"div",2)(5,ge,3,2,"ng-container",3)),n&2){let o=B(3);p(),c("ngIf",t.image)("ngIfElse",o),p(3),c("ngIf",t.label),p(),c("ngIf",t.removable)}},dependencies:[J,H,U,G,ee,y],encapsulation:2,changeDetection:0})}return e})(),je=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=D({type:e});static \u0275inj=E({imports:[de,y,y]})}return e})();export{de as a,je as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
1
|
+
import{a as d}from"./chunk-7G6GQTSH.js";import{Aa as o,Ca as a,Gb as r,Kb as s,Xb as l,ac as C,ic as c,jc as f,kc as m}from"./chunk-OJMQBH6T.js";var u=(()=>{class t extends d{static \u0275fac=(()=>{let n;return function(e){return(n||(n=a(t)))(e||t)}})();static \u0275cmp=r({type:t,selectors:[["ChevronLeftIcon"]],features:[s],decls:2,vars:5,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M9.61296 13C9.50997 13.0005 9.40792 12.9804 9.3128 12.9409C9.21767 12.9014 9.13139 12.8433 9.05902 12.7701L3.83313 7.54416C3.68634 7.39718 3.60388 7.19795 3.60388 6.99022C3.60388 6.78249 3.68634 6.58325 3.83313 6.43628L9.05902 1.21039C9.20762 1.07192 9.40416 0.996539 9.60724 1.00012C9.81032 1.00371 10.0041 1.08597 10.1477 1.22959C10.2913 1.37322 10.3736 1.56698 10.3772 1.77005C10.3808 1.97313 10.3054 2.16968 10.1669 2.31827L5.49496 6.99022L10.1669 11.6622C10.3137 11.8091 10.3962 12.0084 10.3962 12.2161C10.3962 12.4238 10.3137 12.6231 10.1669 12.7701C10.0945 12.8433 10.0083 12.9014 9.91313 12.9409C9.81801 12.9804 9.71596 13.0005 9.61296 13Z","fill","currentColor"]],template:function(i,e){i&1&&(o(),c(0,"svg",0),m(1,"path",1),f()),i&2&&(C(e.getClassNames()),l("aria-label",e.ariaLabel)("aria-hidden",e.ariaHidden)("role",e.role))},encapsulation:2})}return t})();export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as G}from"./chunk-HHO2NGCF.js";import"./chunk-FHWKSD5A.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as F}from"./chunk-CGOB6Y3X.js";import{e as j}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import"./chunk-PYXL7UF7.js";import"./chunk-PW42BQIY.js";import{m as H,n as J}from"./chunk-HJXYT6MI.js";import{A as R,c as k,h as B,m as W}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{j as D,l as I,n as P}from"./chunk-FXQKRJWU.js";import{$c as b,Gb as S,Gc as i,Hc as N,Kc as g,Lc as f,Mb as x,Mc as C,Nc as O,Oc as V,Pc as _,Ra as w,Yb as m,Z as v,ad as y,dc as M,ic as e,jc as t,kc as L,oc as T,pa as E,rb as p,tc as h,uc as A,ya as d,za as s}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function Y(n,U){if(n&1&&(e(0,"pre",21),i(1),b(2,"json"),t()),n&2){A();let l=_(25);p(),N(y(2,1,l))}}function q(n,U){n&1&&(e(0,"p",22),i(1," Your data will be shown here once it's available "),t())}var pe=(()=>{class n{constructor(){this.httpService=E(j),this.selectedChannel=w(null),this.orderNumber=w(null)}initEscrowLog(){this.escrowLog$=this.httpService.post(F.GetEscrowDetail,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(v(1))}copyToClipboard(l){if(!l)return;let c=typeof l=="string"?l:JSON.stringify(l,null,2);navigator.clipboard.writeText(c),alert("Copied to clipboard!")}static{this.\u0275fac=function(c){return new(c||n)}}static{this.\u0275cmp=S({type:n,selectors:[["app-escrow-api"]],decls:40,vars:10,consts:[["headerTitle","Origin Escrow Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel","onlyInputTypeID"],[1,"d-flex","align-items-center","mt-3"],["type","text","placeholder","Order Number or Invoice Number",1,"form-control",3,"ngModelChange","ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","escrowLogText"],[1,"text-center","my-12","text-muted"]],template:function(c,o){if(c&1){let a=T();e(0,"mainpanel",0)(1,"actions")(2,"button",1),h("click",function(){return d(a),s(o.initEscrowLog())}),L(3,"i",2),i(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),i(12,"Channel"),t(),e(13,"p",8),i(14," View logs related to Escrow API "),t()(),e(15,"div",9)(16,"channel-select-options",10),C("ngModelChange",function(r){return d(a),f(o.selectedChannel,r)||(o.selectedChannel=r),s(r)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),i(20,"Order Number"),t(),e(21,"p",8),i(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),C("ngModelChange",function(r){return d(a),f(o.orderNumber,r)||(o.orderNumber=r),s(r)}),t()()()()(),O(25),b(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),i(32,"Response"),t(),e(33,"button",17),h("click",function(){d(a);let r=_(25);return s(o.copyToClipboard(r))}),i(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),x(38,Y,3,3,"pre",21)(39,q,2,0,"p",22),t()()()()()()()()()}if(c&2){m("hideSearchBox",!0)("hideSearchDropdown",!0),p(16),g("ngModel",o.selectedChannel),m("onlyInputTypeID",5),p(8),g("ngModel",o.orderNumber),p();let a=V(y(26,7,o.escrowLog$));p(8),m("disabled",!a),p(5),M(a?38:39)}},dependencies:[P,D,I,R,k,B,W,J,H,G],styles:[".container-fluid[_ngcontent-%COMP%]{padding-bottom:1rem}#escrowLogText[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word}"]})}}return n})();export{pe as EscrowApiComponent};
|