marketplacepos 5.46.1 → 5.46.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/{chunk-ZVKOEYH7.js → chunk-25N6ECN7.js} +1 -1
- package/Marketplace/chunk-2REDCSBO.js +1 -0
- package/Marketplace/{chunk-BAXQ2L7B.js → chunk-2WHJU6CS.js} +1 -1
- package/Marketplace/chunk-3NCIMELL.js +5 -0
- package/Marketplace/{chunk-FB2AEPXA.js → chunk-4PL4XC3C.js} +1 -1
- package/Marketplace/{chunk-L7TKCTLD.js → chunk-53AH4SKO.js} +1 -1
- package/Marketplace/{chunk-FGFIV3VO.js → chunk-57MSCWQ4.js} +1 -1
- package/Marketplace/chunk-6EMUVAZD.js +1 -0
- package/Marketplace/{chunk-CRKCNTXF.js → chunk-6GQN3CZ7.js} +1 -1
- package/Marketplace/{chunk-LOU3DIPY.js → chunk-6L24E3SM.js} +1 -1
- package/Marketplace/{chunk-2SGPD432.js → chunk-764WEWDX.js} +1 -1
- package/Marketplace/{chunk-T43QRQH5.js → chunk-7NGIEICQ.js} +1 -1
- package/Marketplace/{chunk-GPGD3XQH.js → chunk-ACNBNSCK.js} +1 -1
- package/Marketplace/{chunk-3BALA33G.js → chunk-B3HL4DNT.js} +1 -1
- package/Marketplace/chunk-B3RO2S3D.js +1 -0
- package/Marketplace/{chunk-CGEIIRYF.js → chunk-BPAZ4TES.js} +1 -1
- package/Marketplace/{chunk-GKRWJPI3.js → chunk-BXXJEM76.js} +1 -1
- package/Marketplace/{chunk-3YP6ORBR.js → chunk-C7YK5TDP.js} +1 -1
- package/Marketplace/{chunk-ZUYGRGXM.js → chunk-CTDSVBZQ.js} +1 -1
- package/Marketplace/{chunk-WAZXTB4X.js → chunk-DGIH7HSJ.js} +1 -1
- package/Marketplace/{chunk-V6UNCLNJ.js → chunk-DSAVJZIH.js} +2 -2
- package/Marketplace/{chunk-YB4KXB2C.js → chunk-E42O4ZCH.js} +1 -1
- package/Marketplace/chunk-EOYO5KJW.js +1 -0
- package/Marketplace/{chunk-NLPXBGIX.js → chunk-EPCXMVX3.js} +1 -1
- package/Marketplace/chunk-ER3SGZ7B.js +1 -0
- package/Marketplace/{chunk-6CIQBRO4.js → chunk-ESDWGP24.js} +1 -1
- package/Marketplace/chunk-GHFADTRR.js +1 -0
- package/Marketplace/{chunk-6VYFG4AQ.js → chunk-HAJDTNAW.js} +1 -1
- package/Marketplace/chunk-IJVKHW3C.js +1 -0
- package/Marketplace/chunk-JGKNYWZY.js +1 -0
- package/Marketplace/chunk-JOZJZEGN.js +1 -0
- package/Marketplace/chunk-JUHGMPX2.js +1 -0
- package/Marketplace/{chunk-6U4YIJLC.js → chunk-K5YVT6CU.js} +2 -2
- package/Marketplace/{chunk-ORLTYLPA.js → chunk-LSSYGFVV.js} +1 -1
- package/Marketplace/{chunk-KRQHTRFM.js → chunk-M7DDFDPD.js} +1 -1
- package/Marketplace/chunk-MP3G42LL.js +1 -0
- package/Marketplace/chunk-O73TXSTZ.js +1 -0
- package/Marketplace/{chunk-DB7C3AL2.js → chunk-OCJXLFB4.js} +2 -2
- package/Marketplace/chunk-PBHJGJHF.js +1 -0
- package/Marketplace/{chunk-HITTNWB6.js → chunk-PHLSX23M.js} +1 -1
- package/Marketplace/chunk-QOG52KD3.js +1 -0
- package/Marketplace/chunk-QPC5ZTYC.js +1 -0
- package/Marketplace/chunk-QSERFP5U.js +1 -0
- package/Marketplace/chunk-QTTNQJAK.js +1 -0
- package/Marketplace/chunk-RTF4FRXW.js +3 -0
- package/Marketplace/{chunk-UHJEXTOG.js → chunk-RU43F4UK.js} +1 -1
- package/Marketplace/chunk-RXQX7567.js +1 -0
- package/Marketplace/{chunk-LFGPYQCI.js → chunk-SBLG2UP7.js} +1 -1
- package/Marketplace/{chunk-DSYYZDXI.js → chunk-TG5SFCNG.js} +1 -1
- package/Marketplace/{chunk-HHO2NGCF.js → chunk-THMNZQLX.js} +1 -1
- package/Marketplace/{chunk-NWWYOZ4V.js → chunk-TKV7XWBT.js} +1 -1
- package/Marketplace/{chunk-SZGOLKC6.js → chunk-TYSVSEYQ.js} +1 -1
- package/Marketplace/{chunk-TGQ5CJ3A.js → chunk-UDXV6RW2.js} +1 -1
- package/Marketplace/{chunk-IWKRZSYG.js → chunk-V33UHV5X.js} +1 -1
- package/Marketplace/{chunk-TE5EYKIN.js → chunk-V54LZUEC.js} +1 -1
- package/Marketplace/chunk-VHOREEP5.js +1 -0
- package/Marketplace/chunk-VODHIYRA.js +1 -0
- package/Marketplace/{chunk-OE7TF7SI.js → chunk-W4MTON2T.js} +1 -1
- package/Marketplace/{chunk-DZEO4HK4.js → chunk-WBKGEDL6.js} +1 -1
- package/Marketplace/{chunk-2XWZQCUR.js → chunk-WHBI5II7.js} +1 -1
- package/Marketplace/{chunk-OVPVQS4J.js → chunk-WIMLQM6B.js} +1 -1
- package/Marketplace/{chunk-RJ5D24ZW.js → chunk-WY37QAZ4.js} +1 -1
- package/Marketplace/{chunk-4TDVVQ64.js → chunk-XMZNTZ72.js} +1 -1
- package/Marketplace/{chunk-4LZODV4E.js → chunk-XSCE2K6J.js} +1 -1
- package/Marketplace/{chunk-77MWKV5I.js → chunk-XSJBP4EN.js} +2 -2
- package/Marketplace/chunk-YIKOIRZU.js +1 -0
- package/Marketplace/{chunk-UGG2CIUU.js → chunk-ZC7VX6UG.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-CVD4P432.js +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-26ZM2UD3.js +0 -1
- package/Marketplace/chunk-2Z7CPNRS.js +0 -1
- package/Marketplace/chunk-3VUO4APC.js +0 -1
- package/Marketplace/chunk-7DJXZQ7M.js +0 -1
- package/Marketplace/chunk-EFI2CLNP.js +0 -1
- package/Marketplace/chunk-EI65NYTN.js +0 -1
- package/Marketplace/chunk-F2533PAC.js +0 -1
- package/Marketplace/chunk-FHWKSD5A.js +0 -3
- package/Marketplace/chunk-FIAI5SPR.js +0 -1
- package/Marketplace/chunk-FTWATKXK.js +0 -1
- package/Marketplace/chunk-ISUN5G42.js +0 -5
- package/Marketplace/chunk-JYCBJ7CC.js +0 -1
- package/Marketplace/chunk-KCFCXS2F.js +0 -1
- package/Marketplace/chunk-KFOHH7PE.js +0 -1
- package/Marketplace/chunk-M7LXGXUM.js +0 -1
- package/Marketplace/chunk-MJNFY4NT.js +0 -1
- package/Marketplace/chunk-OAG6OVUY.js +0 -1
- package/Marketplace/chunk-OHVOVAKD.js +0 -1
- package/Marketplace/chunk-OJZ7NGRW.js +0 -1
- package/Marketplace/chunk-PW42BQIY.js +0 -1
- package/Marketplace/chunk-RM2OSYMV.js +0 -1
- package/Marketplace/chunk-VIDSOLHF.js +0 -1
- package/Marketplace/chunk-ZXTHWBJ4.js +0 -1
- package/Marketplace/main-RRL4BIVO.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Ie,b as Oe}from"./chunk-XSJBP4EN.js";import{a as Ae,b as Ve,c as De}from"./chunk-RU43F4UK.js";import{a as Fe}from"./chunk-25N6ECN7.js";import{a as H}from"./chunk-BXXJEM76.js";import{a as Ne}from"./chunk-67HPC5Y3.js";import"./chunk-XPCRS7AL.js";import"./chunk-MX5SR3SR.js";import{a as Pe}from"./chunk-OLANEXLB.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-Q4N2QUV6.js";import"./chunk-7G6GQTSH.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-YQLOB7IQ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-YFDFIBAG.js";import"./chunk-RC5PUUVM.js";import"./chunk-JVNHFIYT.js";import{a as Ee}from"./chunk-THMNZQLX.js";import"./chunk-C7YK5TDP.js";import"./chunk-ACIMXBIC.js";import{a as Me}from"./chunk-LDL3A7NM.js";import"./chunk-RTF4FRXW.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"./chunk-PYXL7UF7.js";import{b as m,c as E}from"./chunk-RXQX7567.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 Se,s as be}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 S,Mb as y,Mc as b,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),b("ngModelChange",function(c){return S(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),b("ngModelChange",function(i){d(e);let a=h().$implicit;return S(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())}),b("textChange",function(l){return d(a),S(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,"channel-select-options",6),b("ngModelChange",function(l){return d(a),S(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),b("dateChange",function(l){return d(a),S(i.filter().From,l)||(i.filter().From=l),u(l)}),r()(),n(19,"div")(20,"datepicker",10),b("dateChange",function(l){return d(a),S(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),b("ngModelChange",function(l){return d(a),S(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),b("ngModelChange",function(l){return d(a),S(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,Ee,be,Se,Fe,Oe],encapsulation:2})}}return o})();export{Jt as AwaitingCollectionComponent};
|