marketplacepos 5.43.13 → 5.44.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/3rdpartylicenses.txt +41 -41
- package/Marketplace/{chunk-YSJSAVBS.js → chunk-2ODVHD2K.js} +1 -1
- package/Marketplace/{chunk-PXYBLGMN.js → chunk-2SCXTEPT.js} +1 -1
- package/Marketplace/{chunk-NEYMDA6P.js → chunk-2XV6YOOU.js} +1 -1
- package/Marketplace/{chunk-DRHWRRQV.js → chunk-35XX6SQT.js} +1 -1
- package/Marketplace/{chunk-5BSS4CVK.js → chunk-3OIE7ARG.js} +1 -1
- package/Marketplace/chunk-3ONIF6WO.js +1 -0
- package/Marketplace/chunk-4JS5MYC3.js +1 -0
- package/Marketplace/{chunk-ZUEJZI4O.js → chunk-4KKT6FMN.js} +1 -1
- package/Marketplace/{chunk-CRUPQQ56.js → chunk-4WI2DOJ7.js} +1 -1
- package/Marketplace/{chunk-Z7LBV3BO.js → chunk-57UYCHCW.js} +1 -1
- package/Marketplace/{chunk-G2YN5S5X.js → chunk-5JQJRPL3.js} +1 -1
- package/Marketplace/chunk-5TKBTQTA.js +2 -0
- package/Marketplace/{chunk-2IDDYNBR.js → chunk-6BIM4KEI.js} +1 -1
- package/Marketplace/{chunk-LROLRGKE.js → chunk-6INFVQEU.js} +11 -11
- package/Marketplace/{chunk-ALSCWTAY.js → chunk-6IYLH3EV.js} +1 -1
- package/Marketplace/{chunk-722SRHLY.js → chunk-6RKA4STM.js} +1 -1
- package/Marketplace/{chunk-XBUZ27V4.js → chunk-6ZVBRMK4.js} +1 -1
- package/Marketplace/{chunk-QWHPQWPM.js → chunk-77JJJNRM.js} +1 -1
- package/Marketplace/chunk-7PSP3KRN.js +1 -0
- package/Marketplace/{chunk-E6U3KRK7.js → chunk-7T2AVFH5.js} +1 -1
- package/Marketplace/{chunk-SRVGUGY2.js → chunk-AO46RPZ4.js} +1 -1
- package/Marketplace/chunk-B5BDARIM.js +1 -0
- package/Marketplace/{chunk-6FY74YFQ.js → chunk-B5V5KFQU.js} +1 -1
- package/Marketplace/{chunk-6BAZYVHI.js → chunk-BOGJ2QV5.js} +2 -2
- package/Marketplace/{chunk-WIAQQWWF.js → chunk-BU5LUO3S.js} +1 -1
- package/Marketplace/{chunk-YD5TUVFF.js → chunk-C5JZPXEW.js} +1 -1
- package/Marketplace/{chunk-3B2PNJWF.js → chunk-CCWNSX4Y.js} +1 -1
- package/Marketplace/{chunk-6W6DKFRE.js → chunk-CIAZIJGR.js} +3 -3
- package/Marketplace/{chunk-N3P55TG2.js → chunk-CSP6M3TO.js} +1 -1
- package/Marketplace/{chunk-J2KWRDVH.js → chunk-CUB2QFUO.js} +1 -1
- package/Marketplace/{chunk-WPW3D4MQ.js → chunk-D6URDVES.js} +1 -1
- package/Marketplace/{chunk-C3HL4S2R.js → chunk-DAVYBR3Z.js} +1 -1
- package/Marketplace/chunk-DHOJLUJI.js +1 -0
- package/Marketplace/{chunk-O5LFGGB2.js → chunk-DL66NZ2A.js} +1 -1
- package/Marketplace/{chunk-CUEO37N7.js → chunk-DRTTCT2P.js} +1 -1
- package/Marketplace/chunk-E2SXYIML.js +2 -0
- package/Marketplace/{chunk-L7K5HOBY.js → chunk-E4KNET2R.js} +1 -1
- package/Marketplace/{chunk-7ZXNQAAU.js → chunk-E4Z7OR75.js} +2 -2
- package/Marketplace/{chunk-2GSWEJRP.js → chunk-E66C2WAS.js} +1 -1
- package/Marketplace/{chunk-EZY2ATQQ.js → chunk-EGFBMQKW.js} +1 -1
- package/Marketplace/{chunk-AG2REZBE.js → chunk-EJG33GYS.js} +8 -8
- package/Marketplace/{chunk-B73M3AMU.js → chunk-EQIFZBRG.js} +1 -1
- package/Marketplace/{chunk-AJJSLBE3.js → chunk-ETOKAGEB.js} +2 -2
- package/Marketplace/{chunk-624I4PEE.js → chunk-EWYAB244.js} +1 -1
- package/Marketplace/{chunk-LOBNKJGT.js → chunk-F63CEOOT.js} +1 -1
- package/Marketplace/{chunk-TCS2Y6CC.js → chunk-F7QBIR6G.js} +1 -1
- package/Marketplace/chunk-G6VH553U.js +1 -0
- package/Marketplace/{chunk-7UHCDGAA.js → chunk-G7R7LUW4.js} +1 -1
- package/Marketplace/{chunk-2EOAYJGX.js → chunk-GCDQNJQN.js} +1 -1
- package/Marketplace/{chunk-G47XGOST.js → chunk-GIRXMYNI.js} +1 -1
- package/Marketplace/chunk-HFKZOM4I.js +1 -0
- package/Marketplace/chunk-I6VSPSNT.js +1 -0
- package/Marketplace/{chunk-YCH6HHU3.js → chunk-IHNN4Q2N.js} +3 -3
- package/Marketplace/{chunk-H3J5OAIG.js → chunk-IIZDEGGW.js} +2 -2
- package/Marketplace/{chunk-J7AN3ZQL.js → chunk-IM4DS3UA.js} +1 -1
- package/Marketplace/{chunk-7PN4XLNE.js → chunk-IMK2JGZA.js} +1 -1
- package/Marketplace/chunk-J5OHT4GM.js +1 -0
- package/Marketplace/{chunk-GH57P6KF.js → chunk-JPYSXZZO.js} +1 -1
- package/Marketplace/{chunk-6G5WVJGA.js → chunk-JUL73DOX.js} +1 -1
- package/Marketplace/{chunk-MHCAI6KP.js → chunk-K5GEJ2GZ.js} +1 -1
- package/Marketplace/{chunk-2TRFYYCP.js → chunk-K5VFEHP7.js} +1 -1
- package/Marketplace/chunk-K77RTNG2.js +1 -0
- package/Marketplace/{chunk-3TDK2RMH.js → chunk-K7ZFPSOU.js} +1 -1
- package/Marketplace/{chunk-7SVF5UPT.js → chunk-KALG6D6L.js} +1 -1
- package/Marketplace/chunk-KAQL5LN5.js +1 -0
- package/Marketplace/{chunk-OPXWL5G6.js → chunk-KIIVJXDR.js} +1 -1
- package/Marketplace/{chunk-5HO2IJ47.js → chunk-KMJM6UVY.js} +1 -1
- package/Marketplace/{chunk-G2CMMGM2.js → chunk-KWX3WSCT.js} +1 -1
- package/Marketplace/{chunk-M5JQ7BGW.js → chunk-L3FX4O3H.js} +6 -6
- package/Marketplace/{chunk-CROPN4YC.js → chunk-LDHQNVI5.js} +1 -1
- package/Marketplace/{chunk-3BT5DR3X.js → chunk-MH4SJTQX.js} +1 -1
- package/Marketplace/chunk-MS3ZBCON.js +157 -0
- package/Marketplace/chunk-MSQ7Z3W2.js +1 -0
- package/Marketplace/{chunk-U7TVLBC5.js → chunk-NOP5P5R5.js} +1 -1
- package/Marketplace/chunk-NXI7PMGL.js +1 -0
- package/Marketplace/{chunk-EOZ2J2CF.js → chunk-NZUPRMOX.js} +1 -1
- package/Marketplace/chunk-OA5PCIIS.js +1 -0
- package/Marketplace/{chunk-RZU7PSKG.js → chunk-OPFENZ3W.js} +1 -1
- package/Marketplace/chunk-OPYO4NH2.js +5 -0
- package/Marketplace/{chunk-MMVLDCF6.js → chunk-OTDC2LYA.js} +1 -1
- package/Marketplace/{chunk-3NMM37H7.js → chunk-P7NATRFC.js} +1 -1
- package/Marketplace/{chunk-JDIBETL5.js → chunk-PNITO7BE.js} +1 -1
- package/Marketplace/{chunk-WHG5PPSE.js → chunk-QIALMLQK.js} +1 -1
- package/Marketplace/{chunk-PFB7XEYZ.js → chunk-QJJ2WFVX.js} +1 -1
- package/Marketplace/{chunk-4JKDNUTX.js → chunk-RZZKFTCX.js} +1 -1
- package/Marketplace/{chunk-WS4A4RPE.js → chunk-SBZNADRN.js} +1 -1
- package/Marketplace/{chunk-GMVNN57A.js → chunk-SDVWA7KM.js} +1 -1
- package/Marketplace/{chunk-IVHM5DMM.js → chunk-SJU6ZU2K.js} +1 -1
- package/Marketplace/{chunk-VKMFDXJJ.js → chunk-SLI26GUH.js} +1 -1
- package/Marketplace/{chunk-JILE74BG.js → chunk-UBXKO4QI.js} +1 -1
- package/Marketplace/{chunk-CLER2MX6.js → chunk-UGVEAL7H.js} +3 -3
- package/Marketplace/{chunk-2OVYEC6Q.js → chunk-V2SXQQLG.js} +1 -1
- package/Marketplace/{chunk-POR3OF22.js → chunk-VWNEJWLI.js} +1 -1
- package/Marketplace/{chunk-E6XWD6WX.js → chunk-W6FZQ6XT.js} +1 -1
- package/Marketplace/{chunk-2YFZS6SG.js → chunk-WHDFRUFN.js} +1 -1
- package/Marketplace/chunk-WMYSG6O7.js +1 -0
- package/Marketplace/chunk-WVQIS27J.js +1 -0
- package/Marketplace/chunk-XHYJOIC5.js +3 -0
- package/Marketplace/chunk-XMIUIAY2.js +1 -0
- package/Marketplace/chunk-Y42GRQNF.js +1 -0
- package/Marketplace/chunk-YERZ6W22.js +1 -0
- package/Marketplace/{chunk-BFU7VKO3.js → chunk-YM4TJJMM.js} +1 -1
- package/Marketplace/{chunk-CIIO2CJ6.js → chunk-YPWHTELF.js} +1 -1
- package/Marketplace/{chunk-6NHTTVBK.js → chunk-YXGO35YT.js} +1 -1
- package/Marketplace/{chunk-OLCFJJOD.js → chunk-YZLHRAEO.js} +1 -1
- package/Marketplace/{chunk-DYWTLXMP.js → chunk-Z5GRNGHJ.js} +1 -1
- package/Marketplace/{chunk-QQXVBN22.js → chunk-Z5OLAUH6.js} +1 -1
- package/Marketplace/{chunk-L64EL5OU.js → chunk-ZQ5EGXEB.js} +2 -2
- package/Marketplace/chunk-ZXQNMGQG.js +1 -0
- package/Marketplace/index.html +3 -3
- package/Marketplace/{main-2SUNMEPM.js → main-AS37EDUH.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-4B4NNOKK.js +0 -1
- package/Marketplace/chunk-56IX4GTG.js +0 -1
- package/Marketplace/chunk-67N4UGA5.js +0 -2
- package/Marketplace/chunk-7AQ244V7.js +0 -5
- package/Marketplace/chunk-DRMAONR7.js +0 -1
- package/Marketplace/chunk-GSZJGR7K.js +0 -2
- package/Marketplace/chunk-GVL2YXE5.js +0 -1
- package/Marketplace/chunk-HLOBDI4F.js +0 -2
- package/Marketplace/chunk-I7FTVK26.js +0 -1
- package/Marketplace/chunk-IRLIWSK5.js +0 -1
- package/Marketplace/chunk-MY5ZX6JG.js +0 -1
- package/Marketplace/chunk-OOCYP2XG.js +0 -1
- package/Marketplace/chunk-Q3MVAL6O.js +0 -1
- package/Marketplace/chunk-QINGXOOA.js +0 -1
- package/Marketplace/chunk-SMUCMLEE.js +0 -1
- package/Marketplace/chunk-UG7VRDLB.js +0 -3
- package/Marketplace/chunk-V2RVHNCX.js +0 -1
- package/Marketplace/chunk-ZWBTWIGY.js +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"marketplacepos","version":"5.
|
|
1
|
+
{"name":"marketplacepos","version":"5.44.1"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as _e,b as he,c as Se}from"./chunk-V5BKQSAT.js";import{a as we}from"./chunk-V2RVHNCX.js";import{a as ge}from"./chunk-U7TVLBC5.js";import{a as Ce}from"./chunk-722SRHLY.js";import{a as fe}from"./chunk-YSJSAVBS.js";import{a as ue}from"./chunk-EPVCMYCI.js";import"./chunk-O5LFGGB2.js";import"./chunk-M5JQ7BGW.js";import"./chunk-JDIBETL5.js";import"./chunk-L7K5HOBY.js";import"./chunk-BFU7VKO3.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-5OHRA4AS.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import"./chunk-3BT5DR3X.js";import"./chunk-3RK6DDJD.js";import"./chunk-J2KWRDVH.js";import"./chunk-7SVF5UPT.js";import"./chunk-CMTBBXR5.js";import{a as de}from"./chunk-WPW3D4MQ.js";import{g as le}from"./chunk-UG7VRDLB.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ae}from"./chunk-5HO2IJ47.js";import"./chunk-5JVEEL2T.js";import{b as v}from"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import"./chunk-AEOSNAHH.js";import{b as oe,e as re}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as ce,n as se}from"./chunk-CLER2MX6.js";import{A as ne,c as $,h as ee,m as te,o as ie}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as me,s as pe}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{j as Q,k as X,m as Y,n as Z}from"./chunk-M2FCTYGU.js";import{$c as y,Gb as O,Gc as l,Hc as b,Ic as E,Kc as _,Lc as h,Mb as x,Mc as S,Nc as H,Oc as U,Pc as G,Qc as q,Ra as F,Sc as J,Yb as C,Z as D,ac as B,ad as k,bd as K,dc as T,ec as z,gc as R,hc as j,ic as t,ja as I,jc as i,kc as d,oc as V,pa as f,pb as W,rb as a,tc as L,uc as g,v as N,ya as c,za as s}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as M,b as P}from"./chunk-66YHNWRR.js";var A=(()=>{class n{constructor(){this.httpService=f(re),this.shippingLabelService=f(Ce),this.toastrService=f(oe)}getAwaitingCollectionOrders(e){return this.httpService.post(ae.GetAwaitingCollection,e).pipe(N(m=>m?.Data))}printShippingLabel(e){switch(e?.MarketType){case v.Shopee:this.shippingLabelService.printShippingLabelShopee(e.Number,e.ShopID);break;case v.Tiktok:this.shippingLabelService.printShippingLabelTiktok(e.Number,e.ShopID);break;case v.Tokopedia:this.shippingLabelService.printShippingLabelTokopedia(e.Number);break;case v.Lazada:this.shippingLabelService.printShippingLabelLazada(e.Number,e.ShopID);break;case v.Shopify:this.toastrService.error("Shopify not supported","Error Not supported");break}}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275prov=I({token:n,factory:n.\u0275fac})}}return n})();var be=n=>({"td-cell-hover":n});function ye(n,w){if(n&1&&d(0,"variants-dropdown",30),n&2){let e=g().$implicit;C("variants",e==null?null:e.Variants)}}function xe(n,w){if(n&1&&d(0,"variant-with-image",31),n&2){let e=g().$implicit;C("variant",e==null?null:e.Variants[0])}}function Te(n,w){if(n&1&&(t(0,"span"),l(1),i()),n&2){let e=g().$implicit;a(),E("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Ve(n,w){if(n&1){let e=V();t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"div",26)(5,"div",27)(6,"div"),d(7,"img",28),y(8,"channelImage"),i(),t(9,"div"),d(10,"order-link",29),i()(),t(11,"small"),l(12),y(13,"date"),i()()(),t(14,"td"),l(15),i(),t(16,"td"),x(17,ye,1,1,"variants-dropdown",30)(18,xe,1,1,"variant-with-image",31),i(),t(19,"td",32),l(20),y(21,"number"),i(),t(22,"td")(23,"div",26)(24,"div",27)(25,"span"),l(26),i(),x(27,Te,2,1,"span"),i(),t(28,"small"),l(29),i()()(),t(30,"td",33)(31,"button",34),L("click",function(){let o=c(e).$implicit,p=g(2);return s(p.onPrintShippingLabel(o))}),d(32,"i",35),i()()()}if(n&2){let e=w.$implicit;a(2),b(e.Outlet),a(5),C("src",k(8,13,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(3),C("order",e),a(2),E(" ",K(13,15,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(3),b(e.Customer),a(),B(J(20,be,(e.Variants==null?null:e.Variants.length)>1)),a(),T((e.Variants==null?null:e.Variants.length)>1?17:18),a(3),b(k(21,18,e.Amount)),a(6),b(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),T(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?27:-1),a(2),E(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function Le(n,w){if(n&1){let e=V();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Outlet"),i(),t(6,"th",21),l(7,"Number"),i(),t(8,"th",21),l(9,"Customer"),i(),t(10,"th"),l(11,"Items"),i(),t(12,"th",22),l(13,"Amount"),i(),t(14,"th",23),l(15,"Shipping"),i(),d(16,"th",24),i()(),t(17,"tbody"),R(18,Ve,33,22,"tr",null,z),i()(),t(20,"app-custom-paginator",25),L("next",function(){c(e);let o=g();return s(o.initAwaitingCollection())})("previous",function(){c(e);let o=g();return s(o.initAwaitingCollection())}),i()()}if(n&2){let e=g(),m=G(0);a(18),j(m),a(2),C("filter",e.filter())("totaldata",m==null?null:m.length)}}function Ee(n,w){n&1&&(t(0,"div",16),d(1,"app-empty-state"),i())}var at=(()=>{class n{constructor(){this.awaitingCollectionService=f(A),this.tokenService=f(le),this.filter=F({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){let e=this.tokenService.getTokenValue(),m=Number(e?.orddfl??0),o=new Date,p=m===0?null:new Date(o.setDate(o.getDate()-m));this.filter.update(u=>P(M({},u),{From:p})),this.initAwaitingCollection()}initAwaitingCollection(){this.awaitingCollections$=this.awaitingCollectionService.getAwaitingCollectionOrders(this.filter()).pipe(D(1))}getOrderDefaultValue(){return this.tokenService.getTokenValue()?.orddfl??null}onPrintShippingLabel(e){this.awaitingCollectionService.printShippingLabel(e)}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275cmp=O({type:n,selectors:[["app-awaiting-collection"]],features:[q([A])],decls:34,vars:11,consts:[["headerTitle","Awaiting Collection","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],[2,"width","10px"],["rowCountApi","/api/orders/awaitingcollectioncount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"text-end","td-cell-hover"],["type","button","aria-label","Print order","title","Print","matTooltip","Print shipping label",1,"btn","p-0","border-0","bg-transparent",3,"click"],[1,"fa-solid","fa-print","fs-3"]],template:function(m,o){if(m&1){let p=V();H(0),y(1,"async"),t(2,"mainpanel",0),L("onSubmit",function(){return c(p),s(o.initAwaitingCollection())}),S("textChange",function(r){return c(p),h(o.filter().Number,r)||(o.filter().Number=r),s(r)}),t(3,"actions")(4,"a",1),d(5,"i",2),t(6,"span"),l(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),l(11,"From/To"),i(),t(12,"channel-select-options",4),S("ngModelChange",function(r){return c(p),h(o.filter().ListChannelID,r)||(o.filter().ListChannelID=r),s(r)}),i()(),t(13,"div",5)(14,"label",3),l(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),S("dateChange",function(r){return c(p),h(o.filter().From,r)||(o.filter().From=r),s(r)}),i()(),t(18,"div")(19,"datepicker",8),S("dateChange",function(r){return c(p),h(o.filter().To,r)||(o.filter().To=r),s(r)}),i()()(),t(20,"div",5)(21,"label",9),l(22,"Page Number"),i(),t(23,"input",10),S("ngModelChange",function(r){return c(p),h(o.filter().PageNumber,r)||(o.filter().PageNumber=r),s(r)}),i()(),t(24,"div",5)(25,"label",9),l(26,"Page Size"),i(),t(27,"input",11),S("ngModelChange",function(r){return c(p),h(o.filter().PageSize,r)||(o.filter().PageSize=r),s(r)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),x(32,Le,21,2,"div",15)(33,Ee,2,0,"div",16),i()()()()()}if(m&2){let p=U(k(1,8,o.awaitingCollections$));a(2),_("text",o.filter().Number),a(10),C("multiple",!0),_("ngModel",o.filter().ListChannelID),a(5),_("date",o.filter().From),a(2),_("date",o.filter().To),a(4),_("ngModel",o.filter().PageNumber),a(4),_("ngModel",o.filter().PageSize),a(5),T((p==null?null:p.length)>0?32:33)}},dependencies:[Z,Q,Y,X,se,ce,ue,de,ne,$,ie,ee,te,_e,he,Se,fe,ge,pe,me,we],encapsulation:2})}}return n})();export{at as AwaitingCollectionComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Re,b as Ne,c as Le}from"./chunk-V5BKQSAT.js";import{a as Ae}from"./chunk-V2RVHNCX.js";import{a as Ie}from"./chunk-U7TVLBC5.js";import{a as Ve}from"./chunk-YSJSAVBS.js";import{a as Ee}from"./chunk-EPVCMYCI.js";import"./chunk-O5LFGGB2.js";import"./chunk-M5JQ7BGW.js";import"./chunk-JDIBETL5.js";import"./chunk-L7K5HOBY.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-5OHRA4AS.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import"./chunk-3BT5DR3X.js";import"./chunk-3RK6DDJD.js";import"./chunk-J2KWRDVH.js";import"./chunk-7SVF5UPT.js";import"./chunk-CMTBBXR5.js";import{a as Fe}from"./chunk-WPW3D4MQ.js";import{g as xe}from"./chunk-UG7VRDLB.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as M}from"./chunk-5HO2IJ47.js";import{c as Z,d as $,e as ee}from"./chunk-5JVEEL2T.js";import{b as C,c as K}from"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import"./chunk-AEOSNAHH.js";import{b as Te,e as G}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{b as te,c as ie,d as we,e as ne,f as oe,g as Oe,h as re,m as Me,n as Pe}from"./chunk-CLER2MX6.js";import{A as V,c as ke,h as H,m as U,o as ve}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as be,s as De}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{j as Ce,k as z,m as ye,n as O}from"./chunk-M2FCTYGU.js";import{$c as b,G as ae,Gb as D,Gc as a,Hc as y,Ic as B,Kc as k,Lc as v,Mb as E,Mc as T,Na as q,Nc as ue,Oa as J,Oc as he,Pc as ge,Qc as fe,Ra as S,Rc as _e,Sc as Se,Yb as u,Z as me,_b as le,aa as pe,ac as de,ad as Q,bd as I,dc as P,ec as N,gc as L,hc as A,ic as o,ja as F,jc as r,kc as x,oc as w,pa as c,pb as ce,rb as p,rd as X,tc as d,uc as h,v as j,ya as f,za as _}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as W,b as Y}from"./chunk-66YHNWRR.js";function Je(n,g){if(n&1){let e=w();o(0,"div",10),d("click",function(){f(e);let i=h();return _(i.onSelectDelivery("DROP_OFF"))}),o(1,"div",11),x(2,"i",12),o(3,"h3",13),a(4,"Drop off"),r()(),o(5,"p",14),a(6," You can drop off your package at the nearest shipping counter in your city. "),r()()}if(n&2){let e=h();le("text-muted",e.selectedDelivery()&&e.selectedDelivery()==="PICK_UP")("selected",e.selectedDelivery()==="DROP_OFF")}}function Qe(n,g){if(n&1){let e=w();o(0,"div",10),d("click",function(){f(e);let i=h();return _(i.onSelectDelivery("PICK_UP"))}),o(1,"div",11),x(2,"i",15),o(3,"h3",16),a(4,"Pick up"),r()(),o(5,"p",17),a(6," The courier will collect the package from your address. "),r()()}if(n&2){let e=h();le("text-muted",e.selectedDelivery()&&e.selectedDelivery()==="DROP_OFF")("selected",e.selectedDelivery()==="PICK_UP")}}var We=(()=>{class n{constructor(){this.data=c(ie),this.dialogRef=c(te),this.selectedDelivery=S("DROP_OFF"),this.showPickup=S(!0),this.showDropOff=S(!0),this.initOptionsCondition()}onSelectDelivery(e){this.selectedDelivery.set(e)}initOptionsCondition(){switch(this.data.channelType){case C.Shopee:break;case C.Tiktok:this.showPickup.set(this.data.options?.Form?.information?.can_pickup),this.showDropOff.set(this.data.options?.Form?.information?.can_drop_off);break}}onConfirm(){this.dialogRef.close(this.selectedDelivery())}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=D({type:n,selectors:[["app-delivery-dialog"]],decls:16,vars:2,consts:[["mat-dialog-title","",1,"mt-12","mb-8"],[1,"d-flex","justify-content-between","align-items-start","lh-lg"],[1,"ms-2"],[1,"text-secondary-emphasis"],[1,"fa-solid","fa-xmark","text-muted","cursor-pointer","fs-3",3,"click"],[1,"pb-0"],[1,"d-flex","align-items-center","justify-content-center","gap-12"],["role","button",1,"delivery-option","d-flex","flex-column","align-items-center","justify-content-center","p-4","cursor-pointer",3,"text-muted","selected"],[1,"d-flex","justify-content-end",2,"margin-top","1.5rem"],[1,"btn","btn-light-blue","me-3","text-primary","btn-lg","fw-bold","mx-3","py-6",2,"width","70px",3,"click"],["role","button",1,"delivery-option","d-flex","flex-column","align-items-center","justify-content-center","p-4","cursor-pointer",3,"click"],[1,"text-center"],[1,"fa-solid","fa-cart-shopping-fast","fa-4x"],[1,"mt-4","titlew"],[1,"text-center","mt-4","lh-sm","subtitlew"],[1,"fa-solid","fa-hand-holding-box","fa-4x"],[1,"mt-4"],[1,"text-center","mt-4","lh-sm"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),a(4,"Delivery Order"),r(),o(5,"div",3),a(6,"Your selected order(s) will be set to"),r()(),o(7,"div")(8,"i",4),d("click",function(){return i.onClose()}),r()()()(),o(9,"mat-dialog-content",5)(10,"div",6),E(11,Je,7,4,"div",7)(12,Qe,7,4,"div",7),r(),o(13,"div",8)(14,"button",9),d("click",function(){return i.onConfirm()}),a(15," OK "),r()()()),t&2&&(p(11),P(i.showPickup()?11:-1),p(),P(i.showDropOff()?12:-1))},dependencies:[O,re,ne,oe],styles:[".delivery-option[_ngcontent-%COMP%]{width:14rem;height:12rem;border:1px solid #656565}.delivery-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.delivery-option.text-muted[_ngcontent-%COMP%]{border-color:#000;color:#000}.delivery-option.selected[_ngcontent-%COMP%]{color:#5e9708;border-color:#5e9708}.delivery-option.selected[_ngcontent-%COMP%] .titlew[_ngcontent-%COMP%]{color:#5e9708;font-weight:700}.delivery-option.selected[_ngcontent-%COMP%] .subtitlew[_ngcontent-%COMP%]{color:#5e9708}"]})}}return n})();function Ze(n,g){if(n&1&&(o(0,"ng-option",3),a(1),r()),n&2){let e=g.$implicit;u("value",e==null?null:e.address_id)("matTooltip",e==null?null:e.address),p(),y(e==null?null:e.address)}}function $e(n,g){if(n&1&&(o(0,"ng-option",6)(1,"span",7),a(2),b(3,"date"),r(),o(4,"span"),a(5),r()()),n&2){let e=g.$implicit;u("value",e==null?null:e.pickup_time_id),p(2),y(I(3,3,e==null?null:e.date,"d MMMM")),p(3),y(e==null?null:e.time_text)}}var ze=(()=>{class n{constructor(){this.shippingOptions=J(),this.onFormChanges=q(),this.addressList=X(()=>this.shippingOptions()?.response?.pickup?.address_list||[]),this.selectedShipping=S(null),this.timeOptions=S(this.convertTimestampToDate(this.addressList()[0]?.time_slot_list||[])),this.pickupTime=S(null)}onAddressChange(e){let t=this.addressList().find(i=>i.address_id===e);this.timeOptions.set(this.convertTimestampToDate(t?.time_slot_list||[])),this.pickupTime.set(null)}onValueChanges(){this.onFormChanges.emit({address_id:this.selectedShipping(),pickup_time_id:this.pickupTime()})}convertTimestampToDate(e){return e.map(t=>{let i=new Date(t.date*1e3);return Y(W({},t),{date:i})})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=D({type:n,selectors:[["shopee-pickup"]],inputs:{shippingOptions:[1,"shippingOptions"]},outputs:{onFormChanges:"onFormChanges"},decls:12,vars:4,consts:[[1,"mb-6"],["for","address",1,"mb-2","text-muted"],["id","address","placeholder","Select Address to Pickup","appendTo","body",1,"shipping-timepicker",3,"ngModelChange","clearable","ngModel"],[3,"value","matTooltip"],["for","timepicker",1,"mb-2","text-muted"],["id","timepicker","placeholder","Select Date Pickup","appendTo","body",1,"shipping-timepicker",3,"ngModelChange","clearable","ngModel"],[3,"value"],[1,"me-2"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"label",1),a(2,"Address"),r(),o(3,"ng-select",2),T("ngModelChange",function(s){return v(i.selectedShipping,s)||(i.selectedShipping=s),s}),d("ngModelChange",function(s){return i.onAddressChange(s),i.onValueChanges()}),L(4,Ze,2,3,"ng-option",3,N),r()(),o(6,"div",0)(7,"label",4),a(8,"Date"),r(),o(9,"ng-select",5),T("ngModelChange",function(s){return v(i.pickupTime,s)||(i.pickupTime=s),s}),d("ngModelChange",function(){return i.onValueChanges()}),L(10,$e,6,6,"ng-option",6,N),r()()),t&2&&(p(3),u("clearable",!1),k("ngModel",i.selectedShipping),p(),A(i.addressList()),p(5),u("clearable",!1),k("ngModel",i.pickupTime),p(),A(i.timeOptions()))},dependencies:[O,z,ee,$,Z,V,H,U,De,be],encapsulation:2})}}return n})();function et(n,g){if(n&1&&(o(0,"ng-option",3)(1,"span",4),a(2),b(3,"date"),r(),o(4,"span"),a(5),b(6,"date"),r(),o(7,"span",5),a(8,"-"),r(),o(9,"span"),a(10),b(11,"date"),r()()),n&2){let e=g.$implicit,t=g.$index;u("value",t),p(2),y(I(3,4,e==null?null:e.start_date,"d MMMM")),p(3),y(I(6,7,e==null?null:e.start_date,"HH:mm")),p(5),y(I(11,10,e==null?null:e.end_date,"HH:mm"))}}var He=(()=>{class n{constructor(){this.shippingOptions=J(),this.onFormChanges=q(),this.timeOptions=X(()=>this.shippingOptions()?.Options?.pickup_slots),this.selectedTimeIndex=S(null)}onValueChanges(){let e=this.timeOptions()[this.selectedTimeIndex()];this.onFormChanges.emit({start_time:e?.start_time,end_time:e?.end_time})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=D({type:n,selectors:[["tiktok-pickup"]],inputs:{shippingOptions:[1,"shippingOptions"]},outputs:{onFormChanges:"onFormChanges"},decls:6,vars:2,consts:[[1,"mb-6"],["for","timepicker",1,"mb-2","text-muted"],["id","timepicker","placeholder","Select Time Pickup","appendTo","body",1,"shipping-timepicker",3,"ngModelChange","clearable","ngModel"],[3,"value"],[1,"me-2"],[1,"mx-1"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"label",1),a(2,"Time"),r(),o(3,"ng-select",2),T("ngModelChange",function(s){return v(i.selectedTimeIndex,s)||(i.selectedTimeIndex=s),s}),d("ngModelChange",function(){return i.onValueChanges()}),L(4,et,12,13,"ng-option",3,N),r()()),t&2&&(p(3),u("clearable",!1),k("ngModel",i.selectedTimeIndex),p(),A(i.timeOptions()))},dependencies:[O,z,ee,$,Z,V,H,U],encapsulation:2})}}return n})();function tt(n,g){if(n&1){let e=w();o(0,"shopee-pickup",10),d("onFormChanges",function(i){f(e);let l=h();return _(l.onFormChanges(i))}),r()}if(n&2){let e=h();u("shippingOptions",e.dialogData.shippingOptions)}}function it(n,g){if(n&1){let e=w();o(0,"tiktok-pickup",10),d("onFormChanges",function(i){f(e);let l=h();return _(l.onFormChanges(i))}),r()}if(n&2){let e=h();u("shippingOptions",e.dialogData.shippingOptions)}}var Ue=(()=>{class n{constructor(){this.dialogRef=c(te),this.dialogData=c(ie),this.shippingOptions=S(this.dialogData.shippingOptions),this.channelType=S(this.dialogData.channelType),this.order=S(this.dialogData.order),this.channelTypeEnum=C,this.pickupData=S(null)}onFormChanges(e){this.pickupData.set(e)}onClose(){this.dialogRef.close()}onSave(){let e=this.generatePickupData();this.dialogRef.close(e)}generatePickupData(){switch(this.channelType()){case C.Shopee:return{OrderNumber:this.order().Number,ShopID:this.order().ShopID,pickup:this.pickupData()};case C.Tiktok:return{handover_method:"PICKUP",PackageID:this.shippingOptions().Form?.information?.PackageID,ShopID:this.order().ShopID,pickup_slot:this.pickupData()}}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=D({type:n,selectors:[["app-pickup-dialog"]],decls:21,vars:2,consts:[["mat-dialog-title","",1,"mt-12","mb-6"],[1,"d-flex","justify-content-between","align-items-start","lh-lg"],[1,"lh-base","mt-6"],[1,"text-muted","fs-6"],["role","button",1,"fa-solid","fa-xmark","text-muted","cursor-pointer","fs-3",3,"click"],[2,"padding-bottom","10px"],[3,"shippingOptions"],[1,"d-flex","justify-content-end","align-items-center","w-100","pe-8","mb-4"],[1,"btn","btn-outline-secondary","me-4",2,"width","70px",3,"click"],[1,"btn","btn-success",2,"width","70px",3,"click"],[3,"onFormChanges","shippingOptions"]],template:function(t,i){if(t&1&&(o(0,"div",0)(1,"div",1)(2,"div")(3,"h3"),a(4,"Set Pickup"),r(),o(5,"div",2)(6,"div",3),a(7,"Shipping Method"),r(),o(8,"div",3),a(9),r()()(),o(10,"div")(11,"i",4),d("click",function(){return i.onClose()}),r()()()(),o(12,"mat-dialog-content",5),E(13,tt,1,1,"shopee-pickup",6)(14,it,1,1,"tiktok-pickup",6),r(),o(15,"mat-dialog-actions")(16,"div",7)(17,"button",8),d("click",function(){return i.onClose()}),a(18," Cancel "),r(),o(19,"button",9),d("click",function(){return i.onSave()}),a(20," Ok "),r()()()),t&2){let l,s;p(9),B(" ",!((l=i.order())==null||l.LogisticService==null)&&l.LogisticService.Name?(l=i.order())==null||l.LogisticService==null?null:l.LogisticService.Name:"-"," "),p(4),P((s=i.channelType())===i.channelTypeEnum.Shopee?13:s===i.channelTypeEnum.Tiktok?14:-1)}},dependencies:[O,re,ne,Oe,oe,V,ze,He],styles:['ng-select.shipping-timepicker .ng-arrow{border:none!important;width:0;height:0} ng-select.shipping-timepicker .ng-arrow-wrapper{width:28px;display:flex;align-items:center;justify-content:center} ng-select.shipping-timepicker .ng-arrow-wrapper:after{content:"\\f107";font-family:"Font Awesome 6 Pro","Font Awesome 6 Free","Font Awesome 5 Pro","Font Awesome 5 Free";font-style:normal;font-weight:400!important;font-size:16px;line-height:1;display:inline-block;color:#6b7280;pointer-events:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:auto}.label-opacity[_ngcontent-%COMP%]{opacity:.7}']})}}return n})();var se=(()=>{class n{constructor(){this.httpService=c(G)}getReadyToShipOrders(e){return this.httpService.post(M.GetToShip,e).pipe(j(t=>t?.Data))}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=F({token:n,factory:n.\u0275fac})}}return n})();var Ke=(()=>{class n{constructor(){this.httpService=c(G)}getShippingOptions(e,t){return this.httpService.post(M.GetTiktokShippingOptions,{OrderNumber:e,ShopID:t}).pipe(j(i=>this.formatDatePickUpOptions(i)))}pickupOrder(e){return this.httpService.post(M.TiktokSelectShipping,e)}dropOffOrder(e,t){let i={handover_method:"DROP_OFF",PackageID:e,ShopID:t};return this.httpService.post(M.TiktokSelectShipping,i)}formatDatePickUpOptions(e){return e?.Options?.pickup_slots&&(e.Options.pickup_slots=e?.Options?.pickup_slots.map(t=>{let i=K.convertTimestampToDate(t.start_time),l=K.convertTimestampToDate(t.end_time);return t.start_date=i,t.end_date=l,t})),e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=F({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ge=(()=>{class n{constructor(){this.httpService=c(G)}getShippingOptions(e,t){return this.httpService.post(M.GetShopeeShippingOptions,{OrderNumber:e,ShopID:t})}pickupOrder(e){return this.httpService.post(M.ShopeeSelectShipping,e)}dropOffOrder(e,t){let i={OrderNumber:e,ShopID:t,dropoff:{}};return this.httpService.post(M.ShopeeSelectShipping,i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=F({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ye=(()=>{class n{constructor(){this.shopeeShippingService=c(Ge),this.tiktokShippingService=c(Ke)}getShippingOptions(e,t,i){switch(i){case C.Shopee:return this.getShopeeShippingOptions(e,t);case C.Tiktok:return this.getTiktokShippingOptions(e,t)}}pickupOrder(e,t){switch(e.MarketType){case C.Shopee:return this.shopeeShippingService.pickupOrder(t);case C.Tiktok:return this.tiktokShippingService.pickupOrder(t)}}dropOffOrder(e,t){switch(e.MarketType){case C.Shopee:return this.shopeeShippingService.dropOffOrder(e.Number,e.ShopID);case C.Tiktok:let i=t?.Form?.information?.PackageID;return this.tiktokShippingService.dropOffOrder(i,e.ShopID)}}getShopeeShippingOptions(e,t){return this.shopeeShippingService.getShippingOptions(e,t)}getTiktokShippingOptions(e,t){return this.tiktokShippingService.getShippingOptions(e,t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=F({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var nt=()=>[],ot=n=>({"td-cell-hover":n});function rt(n,g){if(n&1&&x(0,"variants-dropdown",30),n&2){let e=h().$implicit;u("variants",e==null?null:e.Variants)}}function at(n,g){if(n&1&&x(0,"variant-with-image",31),n&2){let e=h().$implicit;u("variant",e==null?null:e.Variants[0])}}function pt(n,g){if(n&1&&(o(0,"span"),a(1),r()),n&2){let e=h().$implicit;p(),B("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function lt(n,g){if(n&1){let e=w();o(0,"tr")(1,"td"),a(2),r(),o(3,"td")(4,"div",26)(5,"div",27)(6,"div"),x(7,"img",28),b(8,"channelImage"),r(),o(9,"div"),x(10,"order-link",29),r()(),o(11,"small"),a(12),b(13,"date"),r()()(),o(14,"td"),a(15),r(),o(16,"td"),E(17,rt,1,1,"variants-dropdown",30)(18,at,1,1,"variant-with-image",31),r(),o(19,"td",32),a(20),b(21,"number"),r(),o(22,"td")(23,"div",26)(24,"div",27)(25,"span"),a(26),r(),E(27,pt,2,1,"span"),r(),o(28,"small"),a(29),r()()(),o(30,"td",33)(31,"button",34),d("click",function(){let i=f(e).$implicit,l=h(2);return _(l.onSetFulfillment(i))}),a(32," Set Fulfillment "),r()()()}if(n&2){let e=g.$implicit;p(2),y(e.Outlet),p(5),u("src",Q(8,13,e==null?null:e.MarketType),ce)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),p(3),u("order",e),p(2),B(" ",I(13,15,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),p(3),y(e.Customer),p(),de(Se(20,ot,(e.Variants==null?null:e.Variants.length)>1)),p(),P((e.Variants==null?null:e.Variants.length)>1?17:18),p(3),y(Q(21,18,e.Amount)),p(6),y(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),p(),P(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?27:-1),p(2),B(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function st(n,g){if(n&1){let e=w();o(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Outlet"),r(),o(6,"th",21),a(7,"Number"),r(),o(8,"th",21),a(9,"Customer"),r(),o(10,"th"),a(11,"Items"),r(),o(12,"th",22),a(13,"Amount"),r(),o(14,"th",23),a(15,"Shipping"),r(),x(16,"th",24),r()(),o(17,"tbody"),L(18,lt,33,22,"tr",null,N),r()(),o(20,"app-custom-paginator",25),d("next",function(){f(e);let i=h();return _(i.initReadyToShip())})("previous",function(){f(e);let i=h();return _(i.initReadyToShip())}),r()()}if(n&2){let e=h(),t=ge(0);p(18),A(t),p(2),u("filter",e.filter())("totaldata",t==null?null:t.length)}}function mt(n,g){n&1&&(o(0,"div",16),x(1,"app-empty-state"),r())}var Ri=(()=>{class n{constructor(){this.readyToShipService=c(se),this.dialog=c(we),this.pickupService=c(Ye),this.toastr=c(Te),this.tokenService=c(xe),this.filter=S({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){let e=this.tokenService.getTokenValue(),t=Number(e?.orddfl??0),i=new Date,l=t===0?null:new Date(i.setDate(i.getDate()-t));this.filter.update(s=>Y(W({},s),{From:l})),this.initReadyToShip()}initReadyToShip(){this.readyToShip$=this.readyToShipService.getReadyToShipOrders(this.filter()).pipe(me(1))}onFilterChange(e){this.filter.update(t=>W(W({},t),e))}getOrderDefaultValue(){return this.tokenService.getTokenValue()?.orddfl??null}onSetFulfillment(e){this.pickupService.getShippingOptions(e.Number,e.ShopID,e.MarketType).pipe(pe(t=>this.dialog.open(We,{height:"400px",width:"530px",data:{options:t,channelType:e.MarketType}}).afterClosed().pipe(ae(i=>K.IsNotEmpty(i)),j(i=>({type:i,order:e,options:t}))))).subscribe(t=>{t.type=="PICK_UP"?this.onSelectPickup(t.order,t.options):this.onSelectDropOff(t.order,t.options)})}onSelectPickup(e,t){this.dialog.open(Ue,{width:"530px",data:{order:e,shippingOptions:t,channelType:e.MarketType},disableClose:!0}).afterClosed().pipe(ae(i=>K.IsNotEmpty(i)),pe(i=>this.pickupService.pickupOrder(e,i))).subscribe(()=>{this.toastr.success("Pickup order created successfully","Success"),this.initReadyToShip()})}onSelectDropOff(e,t){this.pickupService.dropOffOrder(e,t).subscribe(()=>{this.toastr.success("Drop-off order created successfully","Success"),this.initReadyToShip()})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=D({type:n,selectors:[["app-ready-to-ship"]],features:[fe([se])],decls:34,vars:12,consts:[["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],[2,"width","160px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem",3,"click"]],template:function(t,i){if(t&1){let l=w();ue(0),b(1,"async"),o(2,"mainpanel",0),d("onSubmit",function(){return f(l),_(i.initReadyToShip())}),T("textChange",function(m){return f(l),v(i.filter().Number,m)||(i.filter().Number=m),_(m)}),o(3,"actions")(4,"a",1),x(5,"i",2),o(6,"span"),a(7,"Order Fulfillment Display"),r()()(),o(8,"filters")(9,"div")(10,"label",3),a(11,"From/To"),r(),o(12,"channel-select-options",4),T("ngModelChange",function(m){return f(l),v(i.filter().ListChannelID,m)||(i.filter().ListChannelID=m),_(m)}),r()(),o(13,"div",5)(14,"label",3),a(15,"From/To"),r(),o(16,"div",6)(17,"datepicker",7),T("dateChange",function(m){return f(l),v(i.filter().From,m)||(i.filter().From=m),_(m)}),r()(),o(18,"div")(19,"datepicker",8),T("dateChange",function(m){return f(l),v(i.filter().To,m)||(i.filter().To=m),_(m)}),r()()(),o(20,"div",5)(21,"label",9),a(22,"Page Number"),r(),o(23,"input",10),T("ngModelChange",function(m){return f(l),v(i.filter().PageNumber,m)||(i.filter().PageNumber=m),_(m)}),r()(),o(24,"div",5)(25,"label",9),a(26,"Page Size"),r(),o(27,"input",11),T("ngModelChange",function(m){return f(l),v(i.filter().PageSize,m)||(i.filter().PageSize=m),_(m)}),r()()(),o(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),E(32,st,21,2,"div",15)(33,mt,2,0,"div",16),r()()()()()}if(t&2){let l=he(Q(1,8,i.readyToShip$)||_e(11,nt));p(2),k("text",i.filter().Number),p(10),u("multiple",!0),k("ngModel",i.filter().ListChannelID),p(5),k("date",i.filter().From),p(2),k("date",i.filter().To),p(4),k("ngModel",i.filter().PageNumber),p(4),k("ngModel",i.filter().PageSize),p(5),P(l.length>0?32:33)}},dependencies:[O,Ce,ye,z,Pe,Me,Ee,Fe,V,ke,ve,H,U,Re,Ne,Le,Ve,Ie,Ae],styles:[".actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}"]})}}return n})();export{Ri as ReadyToShipComponent};
|