marketplacepos 5.46.6 → 5.46.7
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/3rdpartylicenses.txt +52 -52
- package/Marketplace/chunk-25345PS7.js +257 -0
- package/Marketplace/chunk-2UIK6NRS.js +1 -0
- package/Marketplace/chunk-37MIOA6D.js +1 -0
- package/Marketplace/chunk-3DCFDJVG.js +1 -0
- package/Marketplace/chunk-3X5SEOLP.js +1 -0
- package/Marketplace/chunk-4RTDKHTN.js +1 -0
- package/Marketplace/chunk-4VJ3SIJF.js +1 -0
- package/Marketplace/{chunk-PTNJ3YC5.js → chunk-5G3N7OU5.js} +1 -1
- package/Marketplace/{chunk-AWNZSJSP.js → chunk-5KNFEBH5.js} +1 -1
- package/Marketplace/{chunk-USBIAIK6.js → chunk-5QO5B7YG.js} +1 -1
- package/Marketplace/{chunk-4HOZLG47.js → chunk-6NRH3MJL.js} +1 -1
- package/Marketplace/chunk-6QFP63YQ.js +1 -0
- package/Marketplace/{chunk-P2IQLBGG.js → chunk-7KN3UVZI.js} +1 -1
- package/Marketplace/chunk-7L3UKJDU.js +1 -0
- package/Marketplace/{chunk-TI67Q3JR.js → chunk-AGURPBGY.js} +1 -1
- package/Marketplace/chunk-BDBETNFT.js +137 -0
- package/Marketplace/{chunk-YEDXFYTD.js → chunk-BTO76EDH.js} +1 -1
- package/Marketplace/{chunk-ZYQD6SBV.js → chunk-BVDLO6WD.js} +1 -1
- package/Marketplace/{chunk-5KUKIH4H.js → chunk-CMBQCMTZ.js} +1 -1
- package/Marketplace/{chunk-GSVFDIM6.js → chunk-CWNZ6HAV.js} +1 -1
- package/Marketplace/chunk-CYG42H2K.js +1 -0
- package/Marketplace/{chunk-FHNST4Y7.js → chunk-DNNH5AQJ.js} +1 -1
- package/Marketplace/{chunk-3PPLPXAX.js → chunk-DPAQQ77L.js} +1 -1
- package/Marketplace/{chunk-JZDOMET2.js → chunk-EAA6S4WB.js} +1 -1
- package/Marketplace/chunk-F2T43CJB.js +51 -0
- package/Marketplace/{chunk-MZWTCBAF.js → chunk-F4Z47C2S.js} +8 -8
- package/Marketplace/chunk-FJYAC47U.js +2 -0
- package/Marketplace/{chunk-22ARBR7W.js → chunk-GJTQNOXV.js} +1 -1
- package/Marketplace/chunk-GUO3DTDP.js +1 -0
- package/Marketplace/{chunk-X4B2FYY3.js → chunk-HBVCUV6A.js} +1 -1
- package/Marketplace/{chunk-OGJMVAEL.js → chunk-HZKRKNLA.js} +1 -1
- package/Marketplace/chunk-IQ3ER4NM.js +1 -0
- package/Marketplace/{chunk-FOT5AJYX.js → chunk-JP6HRQLK.js} +2 -2
- package/Marketplace/chunk-JZC463X6.js +1 -0
- package/Marketplace/chunk-K4NTJPH5.js +1 -0
- package/Marketplace/{chunk-LS7AO6KP.js → chunk-KXU32D3B.js} +1 -1
- package/Marketplace/{chunk-NDBC2CS6.js → chunk-LBDA5KP3.js} +1 -1
- package/Marketplace/chunk-LETC4UBH.js +1 -0
- package/Marketplace/chunk-LVZDOEKQ.js +1 -0
- package/Marketplace/{chunk-MGLOTL2T.js → chunk-LW3PTNRL.js} +1 -1
- package/Marketplace/chunk-LYCCI55Z.js +1 -0
- package/Marketplace/{chunk-Y4XF2TXJ.js → chunk-MAQ6FWVP.js} +1 -1
- package/Marketplace/{chunk-FGRPTNDB.js → chunk-MFMD6ZSP.js} +1 -1
- package/Marketplace/chunk-MYPTLVUU.js +1 -0
- package/Marketplace/{chunk-7Y7SPMGZ.js → chunk-NAGQF4JJ.js} +1 -1
- package/Marketplace/chunk-NCLAP5OW.js +1 -0
- package/Marketplace/{chunk-2DLU2LJJ.js → chunk-NTGU2UMX.js} +1 -1
- package/Marketplace/chunk-NX4WQMFK.js +1 -0
- package/Marketplace/chunk-O3ADJ3YS.js +1 -0
- package/Marketplace/{chunk-GZS2MOSK.js → chunk-OMPJUICC.js} +1 -1
- package/Marketplace/{chunk-EXSI44LD.js → chunk-OR6TBLPO.js} +2 -2
- package/Marketplace/{chunk-V3ZRQKJA.js → chunk-QPLUVWFA.js} +1 -1
- package/Marketplace/chunk-R5KKW4LC.js +1 -0
- package/Marketplace/{chunk-TWOIWWMO.js → chunk-SCHKXMJN.js} +1 -1
- package/Marketplace/chunk-TLEH7QMI.js +1 -0
- package/Marketplace/chunk-TUHKMG57.js +1 -0
- package/Marketplace/chunk-U7WCPDIV.js +1 -0
- package/Marketplace/{chunk-LLHPMXKP.js → chunk-UQWB6RQP.js} +1 -1
- package/Marketplace/{chunk-2BV7ZXRB.js → chunk-VLF5RZ3X.js} +1 -1
- package/Marketplace/{chunk-7WY57PVD.js → chunk-VRPKQ2HJ.js} +1 -1
- package/Marketplace/{chunk-CT73GC7O.js → chunk-WUKVYBD3.js} +1 -1
- package/Marketplace/{chunk-PGP3WHIS.js → chunk-YHT4EYQJ.js} +1 -1
- package/Marketplace/{chunk-P2AADVEN.js → chunk-ZHPHANAW.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-YKZPM7WW.js → main-HRVNLZTX.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-4YRBARG2.js +0 -1
- package/Marketplace/chunk-5BHSTOJT.js +0 -1
- package/Marketplace/chunk-5DTUHJSS.js +0 -1
- package/Marketplace/chunk-5Z5Y537T.js +0 -1
- package/Marketplace/chunk-B2ZWLW3F.js +0 -1
- package/Marketplace/chunk-CBQUB3KW.js +0 -1
- package/Marketplace/chunk-CRD4OUSG.js +0 -1
- package/Marketplace/chunk-D2TELRO7.js +0 -1
- package/Marketplace/chunk-EFB55SZR.js +0 -1
- package/Marketplace/chunk-ELZBUFG5.js +0 -1
- package/Marketplace/chunk-EPBVNII2.js +0 -51
- package/Marketplace/chunk-F3GLNINI.js +0 -1
- package/Marketplace/chunk-FKQ7ZVGD.js +0 -1
- package/Marketplace/chunk-JUJFPAAU.js +0 -1
- package/Marketplace/chunk-LXXEN7OV.js +0 -1
- package/Marketplace/chunk-OO2CSDGF.js +0 -1
- package/Marketplace/chunk-QREUIGWW.js +0 -1
- package/Marketplace/chunk-RGAKHXPF.js +0 -1
- package/Marketplace/chunk-SLEJQAL7.js +0 -1
- package/Marketplace/chunk-TMKLT3K2.js +0 -1
- package/Marketplace/chunk-URGPZLCB.js +0 -1
- package/Marketplace/chunk-UYFUJBC4.js +0 -2
- package/Marketplace/chunk-UZWED4UK.js +0 -137
- package/Marketplace/chunk-WGCIF2R4.js +0 -257
- package/Marketplace/chunk-X52QA4QU.js +0 -1
- package/Marketplace/chunk-XLWWNO5M.js +0 -1
- package/Marketplace/chunk-YF4XELSP.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Ie,b as Oe}from"./chunk-V3ZRQKJA.js";import{a as Ae,b as Ve,c as De}from"./chunk-T27ABFCP.js";import{a as Fe}from"./chunk-FHNST4Y7.js";import{a as H}from"./chunk-LLHPMXKP.js";import{a as Ne}from"./chunk-67HPC5Y3.js";import"./chunk-XPCRS7AL.js";import"./chunk-MX5SR3SR.js";import{a as Pe}from"./chunk-KTB223SK.js";import"./chunk-PFY5UG5D.js";import"./chunk-KS7ACI26.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"./chunk-JVNHFIYT.js";import{a as Ee}from"./chunk-CBQUB3KW.js";import"./chunk-FGRPTNDB.js";import"./chunk-3PPLPXAX.js";import"./chunk-OXWPLJEW.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-5CKVZBHM.js";import"./chunk-4YRBARG2.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-63ANFYRV.js";import"./chunk-YQLOB7IQ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-ACIMXBIC.js";import"./chunk-PYXL7UF7.js";import{a as Me}from"./chunk-LDL3A7NM.js";import"./chunk-P2AADVEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import{a as x}from"./chunk-CGOB6Y3X.js";import{b as M,e as z}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{b as m,c as E}from"./chunk-EUYQST7Q.js";import{b as we,d as ve,f as xe,g as ye,h as ke,m as Te,n as Le}from"./chunk-HJXYT6MI.js";import{A as R,b as fe,c as _e,h as O,m as W,o as Ce}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as be,s as Se}from"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{j as ue,k as he,m as ge,n as I}from"./chunk-FXQKRJWU.js";import{$c as P,Ac as oe,Bc as re,Cc as ae,G as J,Gb as V,Gc as s,Hc as L,Ic as D,Kc as C,Lc as b,Mb as y,Mc as S,Nc as le,Oc as pe,Pc as N,Qc as se,Ra as j,Sc as me,Yb as v,Z as X,aa as Y,ac as ee,ad as F,bd as ce,dc as k,ec as te,gc as ie,hc as ne,ic as n,ja as A,jc as r,kc as g,oa as B,oc as T,pa as _,pb as Z,rb as p,rd as de,tc as f,uc as h,v as G,xb as $,ya as d,za as u}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as q,b as K}from"./chunk-66YHNWRR.js";var We=(()=>{class o{constructor(e,t){this.http=e,this.toastr=t}printTokopediaShippingLabel(e,t=!1){let i={OrderNumber:e,Printed:t};return this.http.post(x.TokopediaPrintShippingLabel,i)}printTiktokShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.TiktokPrintShippingLabel,i)}printShopeeShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.ShopeePrintShippingLabel,i).pipe(G(a=>(a&&(a.Number=e),a)))}printLazadaShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.LazadaPrintShippingLabel,i)}handleShippingLabelResponse(e,t){switch(t){case m.Tokopedia:let c=window.open("about:blank","_blank");c.document.write(e.File),c.document.close();break;case m.Tiktok:e.data!=null?window.open(e.data.doc_url,"_blank"):this.toastr.error("Cannot Print the Shipping Label,The invoice Number is not set to Pickup","Cannot Print");break;case m.Shopee:var i=Uint8Array.from(atob(e.File),l=>l.charCodeAt(0)),a=new Blob([i],{type:"octet/stream"});E.openDownloadFile(a,`${e?.Number}.pdf`);break;case m.Lazada:e?.result?.data!=null?window.open(e?.result?.data?.pdf_url,"_blank"):this.toastr.error(e.message,"Cannot Print");break}}static{this.\u0275fac=function(t){return new(t||o)(B(z),B(M))}}static{this.\u0275prov=A({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var Re=(()=>{class o{constructor(e){this.dialogRef=e,this.tandaiSudahDicetak=!1}onCancel(){this.dialogRef.close()}onPrint(){this.dialogRef.close(this.tandaiSudahDicetak?1:0)}static{this.\u0275fac=function(t){return new(t||o)($(we))}}static{this.\u0275cmp=V({type:o,selectors:[["app-print-tokopedia"]],decls:17,vars:1,consts:[[1,"container-fluid"],[1,"text-center","mb-4","fw-bold","mt-6"],[1,"row"],[1,"col-12"],[1,"fs-5"],[1,"d-flex","align-items-center","text-center","justify-content-center","mb-8"],[1,"me-2",3,"ngModelChange","ngModel"],[1,"fs-5","pt-1"],[1,"d-flex","align-items-center","justify-content-center"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"click"]],template:function(t,i){t&1&&(n(0,"div",0)(1,"h2",1),s(2,"Cetak label pesanan"),r(),n(3,"mat-dialog-content")(4,"div",2)(5,"div",3)(6,"p",4),s(7,"Kamu akan mencetak label yang berisi detail pesanan"),r(),n(8,"div",5)(9,"mat-checkbox",6),S("ngModelChange",function(c){return b(i.tandaiSudahDicetak,c)||(i.tandaiSudahDicetak=c),c}),r(),n(10,"span",7),s(11,'Pesanan telah ditandai sebagai "Sudah Dicetak"'),r()()()()(),n(12,"mat-dialog-actions",8)(13,"button",9),f("click",function(){return i.onCancel()}),s(14,"Cancel"),r(),n(15,"button",10),f("click",function(){return i.onPrint()}),s(16,"Cetak Pesanan"),r()()()),t&2&&(p(9),C("ngModel",i.tandaiSudahDicetak))},dependencies:[I,R,O,W,ke,ye,xe],encapsulation:2})}}return o})();var Q=(()=>{class o{constructor(){this.httpService=_(z),this.shippingLabelService=_(We),this.toastrService=_(M),this.dialog=_(ve)}printShippingLabel(e){switch(e?.MarketType){case m.Shopee:this.shippingLabelService.printShopeeShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,m.Shopee));break;case m.Tiktok:this.shippingLabelService.printTiktokShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,m.Tiktok));break;case m.Tokopedia:this.dialog.open(Re).afterClosed().pipe(J(t=>E.IsNotEmpty(t)),Y(t=>this.shippingLabelService.printTokopediaShippingLabel(e.Number,t))).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,m.Tokopedia));break;case m.Lazada:this.shippingLabelService.printLazadaShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,m.Lazada));break;case m.Shopify:this.toastrService.error("Shopify not supported","Error Not supported");break}}printMultipleShippingLabel(e){let t=e.map(a=>({OrderNumber:a.Number,ShopID:a.ShopID})),i="";switch(e[0]?.MarketType){case m.Shopee:i=x.ShopeePrintMultipleShippingLabel;break;case m.Tiktok:i=x.TiktokPrintMultipleShippingLabel;break;case m.Lazada:i=x.LazadaPrintMultipleShippingLabel;break}this.httpService.post(i,t).subscribe(a=>{var c=Uint8Array.from(atob(a.File),ze=>ze.charCodeAt(0)),l=new Blob([c],{type:"octet/stream"});E.openDownloadFile(l,`${a?.Name}.pdf`)})}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=A({token:o,factory:o.\u0275fac})}}return o})();var je=["contextMenu"],He=o=>({"td-cell-hover":o});function Ue(o,w){if(o&1){let e=T();n(0,"button",20),f("click",function(){d(e);let i=h(),a=N(0);return u(i.onDowloadShippingLabel(a))}),g(1,"i",21),n(2,"span"),s(3,"Download Shipping Label"),r()()}}function Qe(o,w){if(o&1){let e=T();n(0,"input",45),S("ngModelChange",function(i){d(e);let a=h().$implicit;return b(a.selected,i)||(a.selected=i),u(i)}),f("ngModelChange",function(){d(e);let i=h(3),a=N(0);return u(i.onSelectOrders(a))}),r()}if(o&2){let e=h().$implicit,t=h(2);C("ngModel",e.selected),v("disabled",t.selectedChannelType()!=null&&t.selectedChannelType()!=e.MarketType)}}function qe(o,w){if(o&1&&g(0,"variants-dropdown",38),o&2){let e=h().$implicit;v("variants",e==null?null:e.Variants)}}function Ke(o,w){if(o&1&&g(0,"variant-with-image",39),o&2){let e=h().$implicit;v("variant",e==null?null:e.Variants[0])}}function Ge(o,w){if(o&1&&(n(0,"span"),s(1),r()),o&2){let e=h().$implicit;p(),D("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Je(o,w){if(o&1){let e=T();n(0,"button",46),f("click",function(){d(e);let i=h().$implicit,a=h(2);return u(a.onPrintShippingLabel(i))}),g(1,"i",47),r()}}function Xe(o,w){if(o&1){let e=T();n(0,"tr")(1,"td"),y(2,Qe,1,2,"input",30),r(),n(3,"td")(4,"div",31),g(5,"img",32),P(6,"channelImage"),n(7,"div",33)(8,"div"),s(9),r(),n(10,"small",34)(11,"span"),s(12),r()()()()(),n(13,"td")(14,"div",35)(15,"div",36)(16,"div"),g(17,"order-link",37),r()(),n(18,"small"),s(19),P(20,"date"),r()()(),n(21,"td"),s(22),r(),n(23,"td"),y(24,qe,1,1,"variants-dropdown",38)(25,Ke,1,1,"variant-with-image",39),r(),n(26,"td",40),s(27),P(28,"number"),r(),n(29,"td",41),f("mouseenter",function(i){let a=d(e).$implicit,c=h(2);return u(c.onMouseEnter(i,a))}),n(30,"div",42)(31,"div",35)(32,"div",36)(33,"span"),s(34),r(),y(35,Ge,2,1,"span"),r(),n(36,"small"),s(37),r()()()(),n(38,"td",43),y(39,Je,2,0,"button",44),r()()}if(o&2){let e=w.$implicit,t=h(2);p(2),k((e==null?null:e.MarketType)!=t.channelType.WooCommerce?2:-1),p(3),v("src",F(6,16,e==null?null:e.MarketType),Z)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),p(4),L(e.Outlet),p(3),L(e.ChannelName),p(5),v("order",e),p(2),D(" ",ce(20,18,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),p(3),L(e.Customer),p(),ee(me(23,He,(e.Variants==null?null:e.Variants.length)>1)),p(),k((e.Variants==null?null:e.Variants.length)>1?24:25),p(3),L(F(28,21,e.Amount)),p(7),L(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),p(),k(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?35:-1),p(2),D(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),p(2),k((e==null?null:e.MarketType)!=t.channelType.WooCommerce?39:-1)}}function Ye(o,w){if(o&1){let e=T();n(0,"div",17)(1,"table",22)(2,"thead",23)(3,"tr",24),g(4,"th",25),n(5,"th",26),s(6,"Outlet"),r(),n(7,"th",26),s(8,"Number"),r(),n(9,"th",26),s(10,"Customer"),r(),n(11,"th"),s(12,"Items"),r(),n(13,"th",27),s(14,"Amount"),r(),n(15,"th",26),s(16,"Shipping"),r(),g(17,"th",28),r()(),n(18,"tbody"),ie(19,Xe,40,25,"tr",null,te),r()(),n(21,"app-custom-paginator",29),f("next",function(){d(e);let i=h();return u(i.initAwaitingCollection())})("previous",function(){d(e);let i=h();return u(i.initAwaitingCollection())}),r()()}if(o&2){let e=h(),t=N(0);p(19),ne(t),p(2),v("filter",e.filter())("totaldata",t==null?null:t.length)}}function Ze(o,w){o&1&&(n(0,"div",18),g(1,"app-empty-state"),r())}var Jt=(()=>{class o{constructor(){this.printShippingService=_(Q),this.orderService=_(H),this.toastr=_(M),this.fulfillmentService=_(Ie),this.channelType=m,this.selectedOrders=j([]),this.selectedChannelType=de(()=>{let e=null;return this.selectedOrders().length>0&&(e=this.selectedOrders()[0].MarketType),e}),this.filter=j({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"},{id:"fulfillment",label:"Set Fulfillment",icon:"fa-solid fa-truck"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(t=>K(q({},t),{From:e})),this.initAwaitingCollection()}initAwaitingCollection(){this.awaitingCollections$=this.orderService.getAwaitingCollectionOrders(this.filter()).pipe(X(1))}onPrintShippingLabel(e){this.printShippingService.printShippingLabel(e)}onSelectOrders(e){let t=e.filter(i=>i.selected);this.selectedOrders.set(t)}onDowloadShippingLabel(e){e=e.map(t=>(t.selected=!1,t)),this.printShippingService.printMultipleShippingLabel(this.selectedOrders()),this.selectedOrders.set([])}onSetFulfillment(e){this.fulfillmentService.setFulfillmentOrder(e).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initAwaitingCollection()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initAwaitingCollection()})}onMouseEnter(e,t){(!t.LogisticService?.Name||!t.ReferenceNumber)&&this.contextMenuEl.show(e,t)}onSelectContextItem(e){e.item?.id==="refresh"?this.refreshShippingAndRefNumber(e.data):this.onSetFulfillment(e.data)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=V({type:o,selectors:[["app-awaiting-collection"]],viewQuery:function(t,i){if(t&1&&oe(je,5),t&2){let a;re(a=ae())&&(i.contextMenuEl=a.first)}},features:[se([H,Q])],decls:37,vars:13,consts:[["contextMenu",""],["headerTitle","Awaiting Collection","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-3"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line","me-3"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","50px"],["rowCountApi","/api/orders/awaitingcollectioncount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[3,"mouseenter"],[1,"d-flex","align-items-center","gap-6"],[1,"text-end","td-cell-hover"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line"]],template:function(t,i){if(t&1){let a=T();le(0),P(1,"async"),n(2,"mainpanel",1),f("onSubmit",function(){return d(a),u(i.initAwaitingCollection())}),S("textChange",function(l){return d(a),b(i.filter().Number,l)||(i.filter().Number=l),u(l)}),n(3,"actions"),y(4,Ue,4,0,"button",2),n(5,"a",3),g(6,"i",4),n(7,"span"),s(8,"Order Fulfillment Display"),r()()(),n(9,"filters")(10,"div")(11,"label",5),s(12,"Channel"),r(),n(13,"app-channel-options-v2",6),S("ngModelChange",function(l){return d(a),b(i.filter().ListChannelID,l)||(i.filter().ListChannelID=l),u(l)}),r()(),n(14,"div",7)(15,"label",5),s(16,"From/To"),r(),n(17,"div",8)(18,"datepicker",9),S("dateChange",function(l){return d(a),b(i.filter().From,l)||(i.filter().From=l),u(l)}),r()(),n(19,"div")(20,"datepicker",10),S("dateChange",function(l){return d(a),b(i.filter().To,l)||(i.filter().To=l),u(l)}),r()()(),n(21,"div",7)(22,"label",11),s(23,"Page Number"),r(),n(24,"input",12),S("ngModelChange",function(l){return d(a),b(i.filter().PageNumber,l)||(i.filter().PageNumber=l),u(l)}),r()(),n(25,"div",7)(26,"label",11),s(27,"Page Size"),r(),n(28,"input",13),S("ngModelChange",function(l){return d(a),b(i.filter().PageSize,l)||(i.filter().PageSize=l),u(l)}),r()()(),n(29,"content")(30,"div",14)(31,"div",15)(32,"div",16),y(33,Ye,22,2,"div",17)(34,Ze,2,0,"div",18),r()()()()(),n(35,"app-context-menu",19,0),f("onSelectItem",function(l){return d(a),u(i.onSelectContextItem(l))}),r()}if(t&2){let a=pe(F(1,10,i.awaitingCollections$));p(2),C("text",i.filter().Number),p(2),k(i.selectedOrders().length>0?4:-1),p(9),v("multiple",!0),C("ngModel",i.filter().ListChannelID),p(5),C("date",i.filter().From),p(2),C("date",i.filter().To),p(4),C("ngModel",i.filter().PageNumber),p(4),C("ngModel",i.filter().PageSize),p(5),k((a==null?null:a.length)>0?33:34),p(2),v("items",i.contextMenuItems)}},dependencies:[I,ue,ge,he,Le,Te,Pe,Me,R,_e,Ce,fe,O,W,Ae,Ve,De,Ne,Se,be,Fe,Oe,Ee],encapsulation:2})}}return o})();export{Jt as AwaitingCollectionComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Y}from"./chunk-CBQUB3KW.js";import"./chunk-FGRPTNDB.js";import"./chunk-3PPLPXAX.js";import"./chunk-OXWPLJEW.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-5CKVZBHM.js";import"./chunk-4YRBARG2.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-YQLOB7IQ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-P2AADVEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import{a as H}from"./chunk-CGOB6Y3X.js";import{e as F}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import"./chunk-EUYQST7Q.js";import{m as J,n as G}from"./chunk-HJXYT6MI.js";import{A as j,c as K,h as R,m as N,p as O}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{g as T,j as W,l as D,n as U}from"./chunk-FXQKRJWU.js";import{$c as P,Gb as I,Gc as a,Hc as V,Kc as h,Lc as g,Mb as S,Mc as f,Nc as E,Oc as L,Pc as M,Ra as C,Yb as m,Z as b,ad as v,dc as k,ic as n,jc as i,kc as A,oc as _,pa as B,rb as d,tc as x,uc as u,ya as p,za as s}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function q(o,w){if(o&1){let t=_();n(0,"input",30),f("ngModelChange",function(e){p(t);let r=u();return g(r.sku,e)||(r.sku=e),s(e)}),i()}if(o&2){let t=u();h("ngModel",t.sku)}}function z(o,w){if(o&1){let t=_();n(0,"input",31),f("ngModelChange",function(e){p(t);let r=u();return g(r.itemId,e)||(r.itemId=e),s(e)}),i()}if(o&2){let t=u();h("ngModel",t.itemId)}}function Q(o,w){if(o&1&&(n(0,"pre",28),a(1),P(2,"json"),i()),o&2){u();let t=M(35);d(),V(v(2,1,t))}}function X(o,w){o&1&&(n(0,"p",29),a(1," Your data will be shown here once it's available "),i())}var me=(()=>{class o{constructor(){this.httpService=B(F),this.selectedChannel=C(null),this.sku=C(null),this.itemId=C(null),this.searchBy="sku"}initProductLog(){let t={ChannelID:this.selectedChannel()};this.searchBy==="sku"?t.SKU=this.sku():t.ItemID=this.itemId(),this.productLog$=this.httpService.post(H.GetProductApiLog,t).pipe(b(1))}copyToClipboard(t){if(!t)return;let c=typeof t=="string"?t:JSON.stringify(t,null,2);navigator.clipboard.writeText(c),alert("Copied to clipboard!")}static{this.\u0275fac=function(c){return new(c||o)}}static{this.\u0275cmp=I({type:o,selectors:[["app-product-api"]],decls:50,vars:14,consts:[["headerTitle","Origin Product 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"],[1,"d-flex","align-items-center","mt-3"],[1,"mb-2"],[1,"form-check","form-check-inline"],["type","radio","name","searchBy","id","searchBySku",1,"form-check-input",3,"ngModelChange","ngModel","value"],["for","searchBySku",1,"form-check-label"],["type","radio","name","searchBy","id","searchByItemId",1,"form-check-input",3,"ngModelChange","ngModel","value"],["for","searchByItemId",1,"form-check-label"],["type","text","style","height: 40px","class","form-control rounded-1","placeholder","Product Code / SKU",3,"ngModel","ngModelChange",4,"ngIf"],["type","text","style","height: 40px","class","form-control rounded-1","placeholder","ItemID is Product id from seller center",3,"ngModel","ngModelChange",4,"ngIf"],[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","productLogText"],[1,"text-center","my-12","text-muted"],["type","text","placeholder","Product Code / SKU",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"],["type","text","placeholder","ItemID is Product id from seller center",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"]],template:function(c,e){if(c&1){let r=_();n(0,"mainpanel",0)(1,"actions")(2,"button",1),x("click",function(){return p(r),s(e.initProductLog())}),A(3,"i",2),a(4," Search "),i()(),n(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),a(12,"Channel"),i(),n(13,"p",8),a(14," View logs related to Product API Detail "),i()(),n(15,"div",9)(16,"app-channel-options-v2",10),f("ngModelChange",function(l){return p(r),g(e.selectedChannel,l)||(e.selectedChannel=l),s(l)}),i()()(),n(17,"div",11)(18,"div",7)(19,"h6"),a(20,"Product Code / SKU"),i(),n(21,"p",8),a(22," Product SKU or Code from Channel Product "),i()(),n(23,"div",9)(24,"div",12)(25,"div",13)(26,"input",14),f("ngModelChange",function(l){return p(r),g(e.searchBy,l)||(e.searchBy=l),s(l)}),i(),n(27,"label",15),a(28,"Search by SKU"),i()(),n(29,"div",13)(30,"input",16),f("ngModelChange",function(l){return p(r),g(e.searchBy,l)||(e.searchBy=l),s(l)}),i(),n(31,"label",17),a(32,"Search by ItemID"),i()()(),S(33,q,1,1,"input",18)(34,z,1,1,"input",19),i()()()(),E(35),P(36,"async"),n(37,"div",20)(38,"div",21)(39,"div",22)(40,"div",23)(41,"h5"),a(42,"Response"),i(),n(43,"button",24),x("click",function(){p(r);let l=M(35);return s(e.copyToClipboard(l))}),a(44," Copy "),i()(),n(45,"div",25)(46,"div",26)(47,"div",27),S(48,Q,3,3,"pre",28)(49,X,2,0,"p",29),i()()()()()()()()()}if(c&2){m("hideSearchBox",!0)("hideSearchDropdown",!0),d(16),h("ngModel",e.selectedChannel),d(10),h("ngModel",e.searchBy),m("value","sku"),d(4),h("ngModel",e.searchBy),m("value","itemid"),d(3),m("ngIf",e.searchBy==="sku"),d(),m("ngIf",e.searchBy==="itemid"),d();let r=L(v(36,11,e.productLog$));d(8),m("disabled",!r),d(5),k(r?48:49)}},dependencies:[U,T,W,D,j,K,O,R,N,G,J,Y],encapsulation:2})}}return o})();export{me as ProductApiComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as ie}from"./chunk-67HPC5Y3.js";import{a as $}from"./chunk-KTB223SK.js";import"./chunk-PFY5UG5D.js";import"./chunk-KS7ACI26.js";import{a as ee,b as te}from"./chunk-ABYG6YZT.js";import"./chunk-RAQRGWCZ.js";import"./chunk-HVCIQI7B.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"./chunk-JVNHFIYT.js";import{a as ne}from"./chunk-CBQUB3KW.js";import"./chunk-FGRPTNDB.js";import"./chunk-3PPLPXAX.js";import"./chunk-OXWPLJEW.js";import"./chunk-EPBVNII2.js";import"./chunk-UZWED4UK.js";import"./chunk-5CKVZBHM.js";import"./chunk-4YRBARG2.js";import"./chunk-BKRCW7SH.js";import"./chunk-RGAKHXPF.js";import"./chunk-T2OSIFLN.js";import"./chunk-QW4EOJRM.js";import"./chunk-Q4N2QUV6.js";import"./chunk-7G6GQTSH.js";import"./chunk-YQLOB7IQ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-ACIMXBIC.js";import{i as Q}from"./chunk-P2AADVEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-TGMCGROM.js";import"./chunk-CGOB6Y3X.js";import{e as K}from"./chunk-WN5DZGA4.js";import"./chunk-4NEKWRL7.js";import{c as J}from"./chunk-EUYQST7Q.js";import{m as X,n as Z}from"./chunk-HJXYT6MI.js";import{A as Y,c as j,h as U,m as q,o as G}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-MFQQEEHJ.js";import"./chunk-GZKOMS4T.js";import{H as A,J as H,f as W,g as F,k as B,m as k,n as z}from"./chunk-FXQKRJWU.js";import{$c as v,Fc as x,Gb as L,Gc as a,Hc as _,Ic as D,Kc as u,Lc as c,Mb as S,Mc as h,Sc as I,Yb as g,ad as V,bd as N,cd as R,ic as t,jc as n,kc as y,lc as T,mc as P,oc as O,pb as M,rb as r,tc as b,uc as E,xb as C,ya as m,za as p}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var oe=l=>({ID:l});function re(l,w){if(l&1&&(t(0,"tr")(1,"td"),a(2),n(),t(3,"td"),y(4,"img",25),n(),t(5,"td"),a(6),n(),t(7,"td",26)(8,"a",27),a(9),v(10,"number"),n()(),t(11,"td"),a(12),n(),t(13,"td"),a(14),v(15,"date"),n()()),l&2){let e=w.$implicit;r(2),_(e._source.ChannelName),r(2),g("src",e.logo,M),r(2),_(e._source.DateRange),r(2),g("queryParams",I(12,oe,e._source.ID)),r(),D(" ",V(10,7,e._source.CountOrder)," "),r(3),_(e._source.UserLogin),r(2),D(" ",N(15,9,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," ")}}function ae(l,w){if(l&1){let e=O();T(0),t(1,"div",16)(2,"table",17)(3,"thead")(4,"tr",18)(5,"th",19),a(6,"Channel"),n(),t(7,"th",20),a(8,"Type"),n(),t(9,"th",21),a(10,"Download Date Range"),n(),t(11,"th",22),a(12,"Count"),n(),t(13,"th"),a(14,"User Login"),n(),t(15,"th"),a(16,"Created"),n()()(),t(17,"tbody"),S(18,re,16,14,"tr",23),n()(),t(19,"mat-paginator",24),b("page",function(i){m(e);let d=E();return p(d.onPaginationChange(i))}),n()(),P()}if(l&2){let e=E();r(18),g("ngForOf",e.downloadOrders),r(),g("length",e.paginationTotal)("pageSize",e.paginationPageSize)("pageIndex",(e.filter==null?null:e.filter.PageNumber)==0?0:(e.filter==null?null:e.filter.PageNumber)-1)}}function le(l,w){l&1&&(t(0,"div",28),y(1,"app-empty-state"),n())}var De=(()=>{class l{constructor(e,s){this.http=e,this.authService=s,this.filter={PageNumber:0,RowCount:20,ChannelID:"",From:"",To:""},this.channelOptions=this.authService.getChannels(),this.onGetLoader()}onGetLoader(){this.http.post("/api/OrdersLoader/OrderLogsLoader",{}).subscribe(e=>{this.filter=e.Filter,this.getDownloadOrders()})}getDownloadOrders(){this.http.post("api/Orders/OrderLogsPaged",this.filter).subscribe(e=>{this.downloadOrders=e.hits,this.setChannelLogo(),this.paginationTotal=e.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}setChannelLogo(){this.downloadOrders=this.downloadOrders.map(e=>(e.logo=J.getChannelLogoByTypeId(e._source.TypeID),e))}onPaginationChange(e){this.filter.PageNumber=e.pageIndex+1,this.getDownloadOrders()}static{this.\u0275fac=function(s){return new(s||l)(C(K),C(Q))}}static{this.\u0275cmp=L({type:l,selectors:[["app-download-order-log"]],decls:28,vars:8,consts:[["EMPTY_STATE",""],["headerTitle","Download Order Log",3,"onSubmit","hideSearchBox"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[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,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[2,"width","200px"],[1,"text-end",2,"width","200px"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[2,"width","25px",3,"src"],[1,"text-end"],["routerLink","/menu/Order/Download_Order_Log/Detail",3,"queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(s,i){if(s&1){let d=O();t(0,"mainpanel",1),b("onSubmit",function(){return m(d),p(i.getDownloadOrders())}),t(1,"filters")(2,"div")(3,"label",2),a(4,"Channel"),n(),t(5,"app-channel-options-v2",3),h("ngModelChange",function(o){return m(d),c(i.filter.ChannelID,o)||(i.filter.ChannelID=o),p(o)}),n()(),t(6,"div",4)(7,"label",5),a(8,"From/To"),n(),t(9,"div",6)(10,"datepicker",7),h("dateChange",function(o){return m(d),c(i.filter.From,o)||(i.filter.From=o),p(o)}),n()(),t(11,"div")(12,"datepicker",8),h("dateChange",function(o){return m(d),c(i.filter.To,o)||(i.filter.To=o),p(o)}),n()()(),t(13,"div",4)(14,"label",9),a(15,"Page Number"),n(),t(16,"input",10),h("ngModelChange",function(o){return m(d),c(i.filter.PageNumber,o)||(i.filter.PageNumber=o),p(o)}),n()(),t(17,"div",4)(18,"label",9),a(19,"Page Size"),n(),t(20,"input",11),h("ngModelChange",function(o){return m(d),c(i.filter.RowCount,o)||(i.filter.RowCount=o),p(o)}),n()()(),t(21,"content")(22,"div",12)(23,"div",13)(24,"div",14),S(25,ae,20,4,"ng-container",15)(26,le,2,0,"ng-template",null,0,R),n()()()()()}if(s&2){let d=x(27);g("hideSearchBox",!0),r(5),u("ngModel",i.filter.ChannelID),r(5),u("date",i.filter.From),r(2),u("date",i.filter.To),r(4),u("ngModel",i.filter.PageNumber),r(4),u("ngModel",i.filter.RowCount),r(5),g("ngIf",(i.downloadOrders==null?null:i.downloadOrders.length)>0)("ngIfElse",d)}},dependencies:[z,W,F,k,B,te,ee,Z,X,Y,j,G,U,q,ie,H,A,$,ne],encapsulation:2})}}return l})();export{De as DownloadOrderLogComponent};
|