marketplacepos 5.44.2 → 5.46.0
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 +31 -31
- package/Marketplace/{chunk-IA6KOBDJ.js → chunk-2HNZ6XV3.js} +1 -1
- package/Marketplace/{chunk-NAT7HRBS.js → chunk-2KDM4NDG.js} +1 -1
- package/Marketplace/chunk-3NFS6ZDY.js +1 -0
- package/Marketplace/chunk-3NHZEKEI.js +1 -0
- package/Marketplace/{chunk-5JQJRPL3.js → chunk-3TYYN7ZX.js} +1 -1
- package/Marketplace/{chunk-CUB2QFUO.js → chunk-3UN6FPMN.js} +1 -1
- package/Marketplace/{chunk-SYUFPF3D.js → chunk-3YP6ORBR.js} +1 -1
- package/Marketplace/{chunk-NXOXSOUJ.js → chunk-43E7L4CY.js} +1 -1
- package/Marketplace/{chunk-E4Z7OR75.js → chunk-4KHHGHFJ.js} +1 -1
- package/Marketplace/chunk-4UWGWYKJ.js +1 -0
- package/Marketplace/{chunk-MS3ZBCON.js → chunk-4VITMSIA.js} +1 -1
- package/Marketplace/{chunk-IIZDEGGW.js → chunk-5LQRO4AI.js} +1 -1
- package/Marketplace/{chunk-6QYD6NIJ.js → chunk-5PS6ZS3N.js} +1 -1
- package/Marketplace/{chunk-M7HQIICB.js → chunk-5QLKBL54.js} +1 -1
- package/Marketplace/{chunk-KCH7AGAT.js → chunk-5X2WQKXH.js} +1 -1
- package/Marketplace/{chunk-35XX6SQT.js → chunk-6KBMGQMI.js} +1 -1
- package/Marketplace/{chunk-IL5JIRWJ.js → chunk-6L7TD5DW.js} +1 -1
- package/Marketplace/{chunk-PNITO7BE.js → chunk-6RLISMEX.js} +1 -1
- package/Marketplace/{chunk-G7R7LUW4.js → chunk-74ELVGDK.js} +1 -1
- package/Marketplace/{chunk-4GW36MPQ.js → chunk-753FTTID.js} +1 -1
- package/Marketplace/{chunk-DXEJKRNB.js → chunk-76XHGJE7.js} +1 -1
- package/Marketplace/{chunk-LZCEM2PC.js → chunk-7AE3725T.js} +1 -1
- package/Marketplace/chunk-7WG7VRYR.js +1 -0
- package/Marketplace/{chunk-H3IVI3LN.js → chunk-A44LN77B.js} +1 -1
- package/Marketplace/{chunk-IMK2JGZA.js → chunk-A64VIOKR.js} +1 -1
- package/Marketplace/chunk-A6G2H7IF.js +2 -0
- package/Marketplace/chunk-A6PK5NP6.js +1 -0
- package/Marketplace/{chunk-CZDUJH26.js → chunk-AHLYED4C.js} +1 -1
- package/Marketplace/{chunk-QINTIYLK.js → chunk-AKVBFSUI.js} +1 -1
- package/Marketplace/{chunk-HVLMIZAB.js → chunk-AP24AK5A.js} +1 -1
- package/Marketplace/{chunk-L3FX4O3H.js → chunk-B67DSLBY.js} +1 -1
- package/Marketplace/{chunk-PFIBU2IX.js → chunk-BBQGPXDH.js} +1 -1
- package/Marketplace/{chunk-EQIFZBRG.js → chunk-BJUPMCEP.js} +2 -2
- package/Marketplace/{chunk-DL66NZ2A.js → chunk-BQIB3N6V.js} +1 -1
- package/Marketplace/{chunk-LA6B2JGP.js → chunk-CHWXOJDB.js} +1 -1
- package/Marketplace/{chunk-AVT3WVH4.js → chunk-DFFRRMPT.js} +1 -1
- package/Marketplace/{chunk-SM3P57SO.js → chunk-DFGZ4L65.js} +1 -1
- package/Marketplace/{chunk-PAMSUURJ.js → chunk-DLURPTQ3.js} +1 -1
- package/Marketplace/{chunk-YTL4RBBS.js → chunk-DQ3XZQ7W.js} +1 -1
- package/Marketplace/{chunk-M6UQ3NJ3.js → chunk-DUF425GC.js} +1 -1
- package/Marketplace/{chunk-YM4TJJMM.js → chunk-DZYBXWL2.js} +1 -1
- package/Marketplace/chunk-EBCTTFHD.js +2 -0
- package/Marketplace/chunk-EOLVRL5H.js +2 -0
- package/Marketplace/{chunk-SWQXSJ7O.js → chunk-ERXVXBTU.js} +1 -1
- package/Marketplace/chunk-EWTJL2KE.js +1 -0
- package/Marketplace/chunk-F6HNCBQX.js +5 -0
- package/Marketplace/{chunk-WW22F76D.js → chunk-FFCWYWBW.js} +1 -1
- package/Marketplace/{chunk-Q6P7MEKT.js → chunk-FHH5BTG7.js} +1 -1
- package/Marketplace/chunk-FHPIPQMB.js +15 -0
- package/Marketplace/{chunk-UGVEAL7H.js → chunk-FO7G4GMY.js} +1 -1
- package/Marketplace/{chunk-OC2FBL33.js → chunk-FPYZBABH.js} +1 -1
- package/Marketplace/{chunk-Z5GRNGHJ.js → chunk-FVORY74O.js} +1 -1
- package/Marketplace/{chunk-M2FCTYGU.js → chunk-FXQKRJWU.js} +1 -1
- package/Marketplace/{chunk-UWAXFTHD.js → chunk-FXVFO74P.js} +1 -1
- package/Marketplace/{chunk-B5VBBEEN.js → chunk-G7T42LFR.js} +1 -1
- package/Marketplace/{chunk-AJL3CYNX.js → chunk-GH5FTODR.js} +1 -1
- package/Marketplace/chunk-GVLJDP5K.js +1 -0
- package/Marketplace/{chunk-B5V5KFQU.js → chunk-HFCAD7GH.js} +1 -1
- package/Marketplace/{chunk-3LRWABHB.js → chunk-HVCIQI7B.js} +1 -1
- package/Marketplace/chunk-I2Y5WJEO.js +5 -0
- package/Marketplace/chunk-I4WCZRNL.js +1 -0
- package/Marketplace/{chunk-GCDQNJQN.js → chunk-ID2YZPRH.js} +1 -1
- package/Marketplace/chunk-IL2CPGYS.js +1 -0
- package/Marketplace/{chunk-CIAZIJGR.js → chunk-IQ4AFE6X.js} +1 -1
- package/Marketplace/{chunk-AEOSNAHH.js → chunk-J53BPEDH.js} +1 -1
- package/Marketplace/{chunk-SNPFU5TF.js → chunk-JL5DYPDV.js} +1 -1
- package/Marketplace/{chunk-CMTBBXR5.js → chunk-JVNHFIYT.js} +1 -1
- package/Marketplace/{chunk-UTCTTFIM.js → chunk-KVZ7LQSK.js} +1 -1
- package/Marketplace/{chunk-OAOQONOA.js → chunk-KXEADFBM.js} +1 -1
- package/Marketplace/chunk-LBXSZJDS.js +1 -0
- package/Marketplace/{chunk-OLOIQI4D.js → chunk-LDD4NVMB.js} +1 -1
- package/Marketplace/{chunk-KALG6D6L.js → chunk-LDPDLCRL.js} +1 -1
- package/Marketplace/chunk-LFMEBDL2.js +1 -0
- package/Marketplace/{chunk-E3ROEHBW.js → chunk-LRUVI2Z3.js} +1 -1
- package/Marketplace/chunk-LSCMIKJ2.js +1 -0
- package/Marketplace/{chunk-SB7NWPDS.js → chunk-M7V7A7Z6.js} +1 -1
- package/Marketplace/chunk-MO53T3IK.js +1 -0
- package/Marketplace/{chunk-6JUVLRWS.js → chunk-MVBY6S4R.js} +1 -1
- package/Marketplace/chunk-MW6Q6DZF.js +1 -0
- package/Marketplace/{chunk-PAEIUO2F.js → chunk-N2SPK2VI.js} +1 -1
- package/Marketplace/{chunk-EYBZQLBT.js → chunk-N6HMVYWS.js} +1 -1
- package/Marketplace/{chunk-UYYAK364.js → chunk-NERXQ5KH.js} +1 -1
- package/Marketplace/chunk-NFN7BQB3.js +3 -0
- package/Marketplace/{chunk-IHNN4Q2N.js → chunk-NNRBGHXB.js} +1 -1
- package/Marketplace/{chunk-W6FZQ6XT.js → chunk-OFZOAEW5.js} +1 -1
- package/Marketplace/{chunk-VPWALMDU.js → chunk-OIEZ4JUJ.js} +1 -1
- package/Marketplace/{chunk-B7KTCPKC.js → chunk-OJMQBH6T.js} +3 -3
- package/Marketplace/{chunk-K5GEJ2GZ.js → chunk-OK3LLCAK.js} +1 -1
- package/Marketplace/{chunk-EPVCMYCI.js → chunk-OLANEXLB.js} +1 -1
- package/Marketplace/{chunk-M6UMLTY2.js → chunk-OPKLFRVD.js} +1 -1
- package/Marketplace/{chunk-E2SXYIML.js → chunk-ORDCBJ4G.js} +1 -1
- package/Marketplace/{chunk-WQ3GDXQW.js → chunk-OXOTD33C.js} +1 -1
- package/Marketplace/{chunk-2ODVHD2K.js → chunk-PFXOFSJG.js} +1 -1
- package/Marketplace/{chunk-3IIKX554.js → chunk-PFZOP2J7.js} +1 -1
- package/Marketplace/{chunk-BXW7N3ER.js → chunk-PONMPAT5.js} +1 -1
- package/Marketplace/{chunk-YPWHTELF.js → chunk-PPHTN2H6.js} +1 -1
- package/Marketplace/{chunk-5JVEEL2T.js → chunk-PYXL7UF7.js} +1 -1
- package/Marketplace/{chunk-AYPY47VM.js → chunk-QBL6V7QF.js} +1 -1
- package/Marketplace/chunk-QGK4LEFP.js +1 -0
- package/Marketplace/{chunk-CCWNSX4Y.js → chunk-QHE3PKRD.js} +1 -1
- package/Marketplace/{chunk-AO46RPZ4.js → chunk-QK4BGDSS.js} +1 -1
- package/Marketplace/{chunk-WMFWJNS5.js → chunk-QNM4JQ46.js} +1 -1
- package/Marketplace/chunk-QP4C4R4W.js +1 -0
- package/Marketplace/{chunk-74IXJYWO.js → chunk-QS22J2SC.js} +1 -1
- package/Marketplace/{chunk-U7I4JXN6.js → chunk-RDJPSZRF.js} +1 -1
- package/Marketplace/{chunk-M5XGP4SG.js → chunk-RHHHL4OR.js} +1 -1
- package/Marketplace/{chunk-6BIM4KEI.js → chunk-RNTPX24O.js} +1 -1
- package/Marketplace/{chunk-M7NQID2Z.js → chunk-RTT3JVJM.js} +1 -1
- package/Marketplace/{chunk-KPGKJKR5.js → chunk-SMRDRDSH.js} +1 -1
- package/Marketplace/{chunk-E4KNET2R.js → chunk-TH6VZX34.js} +1 -1
- package/Marketplace/{chunk-WUHNNJ2C.js → chunk-TYG67JH3.js} +1 -1
- package/Marketplace/chunk-UBAADH47.js +1 -0
- package/Marketplace/chunk-UHJEXTOG.js +1 -0
- package/Marketplace/{chunk-ECRWEMEV.js → chunk-UHTMVOX6.js} +1 -1
- package/Marketplace/{chunk-UEPQYAWE.js → chunk-UIFPDTMW.js} +1 -1
- package/Marketplace/{chunk-GYPJGQYN.js → chunk-UUJWRGO4.js} +1 -1
- package/Marketplace/{chunk-D6URDVES.js → chunk-UXPULNCR.js} +1 -1
- package/Marketplace/{chunk-SN4AOGQK.js → chunk-UYLSZYOD.js} +1 -1
- package/Marketplace/{chunk-PH6H2XX4.js → chunk-V3CLQBGH.js} +1 -1
- package/Marketplace/{chunk-ATZ475FN.js → chunk-V3USB3ZU.js} +1 -1
- package/Marketplace/{chunk-74U7L3IP.js → chunk-V4UHOZJ4.js} +1 -1
- package/Marketplace/{chunk-77JJJNRM.js → chunk-V5KHEF77.js} +1 -1
- package/Marketplace/{chunk-ZOKAF4JQ.js → chunk-VCTMSNVC.js} +1 -1
- package/Marketplace/{chunk-5SYAYUVP.js → chunk-VKFFHT27.js} +1 -1
- package/Marketplace/{chunk-6EH5RQIV.js → chunk-VPFSU3X4.js} +1 -1
- package/Marketplace/chunk-VVX6LRMW.js +1 -0
- package/Marketplace/{chunk-GGSB6FC2.js → chunk-W3JKSCRF.js} +1 -1
- package/Marketplace/{chunk-5OHRA4AS.js → chunk-W3JTS22H.js} +1 -1
- package/Marketplace/{chunk-JXSBFTQM.js → chunk-W5L6FMO3.js} +1 -1
- package/Marketplace/chunk-WCVSETLP.js +2 -0
- package/Marketplace/{chunk-EH6HWI3G.js → chunk-WFT47MCY.js} +1 -1
- package/Marketplace/{chunk-3DMGCQAD.js → chunk-WHNSPPOH.js} +1 -1
- package/Marketplace/{chunk-NS46QSCM.js → chunk-WJAE4LW2.js} +1 -1
- package/Marketplace/chunk-WKSCLDT7.js +1 -0
- package/Marketplace/{chunk-MH4SJTQX.js → chunk-WLRPCY65.js} +1 -1
- package/Marketplace/{chunk-VIMB2VWB.js → chunk-WPELZYFP.js} +1 -1
- package/Marketplace/{chunk-IBCRFNV4.js → chunk-WVHSR3DQ.js} +1 -1
- package/Marketplace/{chunk-RECNBAEB.js → chunk-WWISWZF5.js} +1 -1
- package/Marketplace/{chunk-FIXI7CJ5.js → chunk-X5KQU53P.js} +1 -1
- package/Marketplace/{chunk-KX7FIURR.js → chunk-XB3CW7KH.js} +1 -1
- package/Marketplace/chunk-XEBKP2KL.js +1 -0
- package/Marketplace/{chunk-5KS4WK6H.js → chunk-XXWBR6S5.js} +1 -1
- package/Marketplace/{chunk-ZQ5EGXEB.js → chunk-YIXZLIPA.js} +1 -1
- package/Marketplace/{chunk-QJJ2WFVX.js → chunk-Z3ZYINRX.js} +1 -1
- package/Marketplace/chunk-ZBKUZ4CN.js +1 -0
- package/Marketplace/{chunk-VK3NG4L3.js → chunk-ZDXNJIJA.js} +1 -1
- package/Marketplace/chunk-ZHDGR4XE.js +1 -0
- package/Marketplace/chunk-ZWEHKGL5.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-QWLBNOBB.js → main-3TBM4ISM.js} +1 -1
- package/Marketplace/{styles-X3FXEB7T.css → styles-EW2SXTVD.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-2TXL3UEN.js +0 -1
- package/Marketplace/chunk-3OIE7ARG.js +0 -1
- package/Marketplace/chunk-3YNS3PF3.js +0 -1
- package/Marketplace/chunk-4J4NGUMH.js +0 -1
- package/Marketplace/chunk-5UGNYVSK.js +0 -1
- package/Marketplace/chunk-66N77XWP.js +0 -1
- package/Marketplace/chunk-6RKA4STM.js +0 -1
- package/Marketplace/chunk-7YA3MQOI.js +0 -1
- package/Marketplace/chunk-AQTXFEBA.js +0 -1
- package/Marketplace/chunk-BAUHJDSM.js +0 -1
- package/Marketplace/chunk-BU5LUO3S.js +0 -1
- package/Marketplace/chunk-DUEZ2ZYL.js +0 -2
- package/Marketplace/chunk-GIRXMYNI.js +0 -1
- package/Marketplace/chunk-GLZJR5RB.js +0 -1
- package/Marketplace/chunk-IT3DTSKV.js +0 -1
- package/Marketplace/chunk-L6WNU54G.js +0 -1
- package/Marketplace/chunk-LDHQNVI5.js +0 -1
- package/Marketplace/chunk-LZQRF7OP.js +0 -1
- package/Marketplace/chunk-MMLMRH2X.js +0 -1
- package/Marketplace/chunk-MS4AQ6UA.js +0 -0
- package/Marketplace/chunk-NRNXUMZX.js +0 -1
- package/Marketplace/chunk-O6GXF2YS.js +0 -4
- package/Marketplace/chunk-O75DCJY4.js +0 -1
- package/Marketplace/chunk-OPFENZ3W.js +0 -1
- package/Marketplace/chunk-OWQ3RWNF.js +0 -1
- package/Marketplace/chunk-P7NATRFC.js +0 -1
- package/Marketplace/chunk-QANQWW5Y.js +0 -15
- package/Marketplace/chunk-R46PZJM7.js +0 -1
- package/Marketplace/chunk-ROEKFCHJ.js +0 -2
- package/Marketplace/chunk-S25SHAFH.js +0 -5
- package/Marketplace/chunk-SLI26GUH.js +0 -1
- package/Marketplace/chunk-UBXKO4QI.js +0 -1
- package/Marketplace/chunk-UD3DLFU3.js +0 -1
- package/Marketplace/chunk-V5BKQSAT.js +0 -1
- package/Marketplace/chunk-VA7FHRY6.js +0 -2
- package/Marketplace/chunk-X3TNRXVW.js +0 -5
- package/Marketplace/chunk-YZKPQRLO.js +0 -2
- package/Marketplace/chunk-ZKZ5DIIR.js +0 -3
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{a as Ve}from"./chunk-6RKA4STM.js";import{a as ke,b as _t}from"./chunk-YZKPQRLO.js";import"./chunk-WW22F76D.js";import"./chunk-B5VBBEEN.js";import{a as G}from"./chunk-2ODVHD2K.js";import"./chunk-MS4AQ6UA.js";import{a as re}from"./chunk-EPVCMYCI.js";import{g as ct}from"./chunk-CIAZIJGR.js";import"./chunk-DL66NZ2A.js";import{d as lt,o as mt}from"./chunk-L3FX4O3H.js";import"./chunk-G7R7LUW4.js";import{a as z}from"./chunk-AJL3CYNX.js";import{c as ot}from"./chunk-K5GEJ2GZ.js";import{b as st}from"./chunk-B5V5KFQU.js";import{b as pt}from"./chunk-E4Z7OR75.js";import{a as ae}from"./chunk-Q6P7MEKT.js";import"./chunk-PNITO7BE.js";import"./chunk-E4KNET2R.js";import{b as gt}from"./chunk-YM4TJJMM.js";import{b as dt}from"./chunk-ZQ5EGXEB.js";import"./chunk-3LRWABHB.js";import"./chunk-74IXJYWO.js";import"./chunk-GIRXMYNI.js";import"./chunk-YPWHTELF.js";import"./chunk-E3ROEHBW.js";import"./chunk-M5XGP4SG.js";import"./chunk-SN4AOGQK.js";import"./chunk-SB7NWPDS.js";import"./chunk-AYPY47VM.js";import"./chunk-SM3P57SO.js";import"./chunk-IIZDEGGW.js";import"./chunk-AQTXFEBA.js";import"./chunk-SDUUFQUI.js";import"./chunk-5OHRA4AS.js";import"./chunk-IL5JIRWJ.js";import"./chunk-MH4SJTQX.js";import"./chunk-3RK6DDJD.js";import"./chunk-CUB2QFUO.js";import"./chunk-KALG6D6L.js";import{a as Se}from"./chunk-UMP6ZMEJ.js";import"./chunk-OZ7LWNOK.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import{a as tt,b as it}from"./chunk-IMK2JGZA.js";import{a as ne,b as at}from"./chunk-M7NQID2Z.js";import{a as te,b as ie,c as rt}from"./chunk-E2SXYIML.js";import"./chunk-CMTBBXR5.js";import{e as pe,h as Q}from"./chunk-ZKZ5DIIR.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-AEOSNAHH.js";import"./chunk-TGMCGROM.js";import"./chunk-OWQ3RWNF.js";import{b as Ke,e as W}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{a as Z,b as $,d as ee,e as Ze}from"./chunk-5JVEEL2T.js";import{b as I,c as D}from"./chunk-PW42BQIY.js";import{d as Le,h as $e,m as B,n as nt}from"./chunk-UGVEAL7H.js";import{A as Je,b as Me,c as Y,h as J,m as K,o as X}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{b as Xe,c as Qe}from"./chunk-SWQXSJ7O.js";import{s as et}from"./chunk-IHNN4Q2N.js";import"./chunk-EQIFZBRG.js";import{E as qe,F as Ye,H as q,J as De,f as A,g as F,j as Oe,k as V,m as R,n as ce}from"./chunk-M2FCTYGU.js";import{$c as x,Aa as Be,B as je,Ba as ze,Fc as j,Gb as L,Gc as l,Hb as Ne,Hc as h,Ic as E,Kc as C,Lc as y,Mb as u,Mc as b,Rc as U,Sc as Ge,Tc as le,Yb as d,Z as fe,ad as O,bd as k,cd as H,ea as Ee,ic as i,ja as He,jc as n,ka as Ie,kc as S,lc as w,mc as P,oa as We,oc as N,pb as M,rb as o,tc as v,uc as s,v as de,xa as Ue,xb as T,ya as g,za as _}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var ht=(()=>{class r{constructor(){this.ObjectOrderTabs=[{Title:"1 - New Order",Url:"/menu/Order/new",Permissions:[]},{Title:"2 - Ready to Ship",Url:"/menu/Order/ready_to_ship",Permissions:[]},{Title:"3 - Shipped",Url:"/menu/Order/Shipped",Permissions:[]},{Title:"4 - Completed",Url:"/menu/Order/Delivered",Permissions:[]},{Title:"All",Url:"/menu/Order/All",Permissions:[]},{Title:"99 - Cancelled",Url:"/menu/Order/Cancelled",Permissions:[]},{Title:"Download",Url:"/menu/Order/Download",Permissions:[Se.DownloadOrder]},{Title:"Log",Url:"/menu/Order/Download_Order_Log",Permissions:[Se.DownloadOrder]}]}ngOnInit(){}static{this.\u0275fac=function(a){return new(a||r)}}static{this.\u0275cmp=L({type:r,selectors:[["app-orders"]],standalone:!1,decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(a,t){a&1&&(i(0,"nav",0)(1,"div",1)(2,"div"),S(3,"nav-tab",2),n()()(),S(4,"router-outlet")),a&2&&(o(3),d("Tabs",t.ObjectOrderTabs)("usePermissions",!0))},dependencies:[tt,Ye],encapsulation:2})}}return r})();var Ae=(()=>{class r{constructor(e,a){this.http=e,this.toastr=a}acceptTokopediaOrders(e){return this.http.post("/api/Orders/AcceptOrderTokopedia",e).pipe(Ee(a=>{this.tokopediaAcceptOrderHandler(a)}))}tokopediaAcceptOrderHandler(e){let a=e.filter(m=>m.Status==!1),t=e.filter(m=>m.Status==!0);if(a.length==0&&t.length>0){let m=`<ol>${this.generateSuccessMessage(t)}</ol>`;this.toastr.success(m,"Success",{enableHtml:!0})}else if(a.length>0&&t.length>0){let m=`<ol>
|
|
2
|
-
${this.generateSuccessMessage(t)}
|
|
3
|
-
${this.generateErrorMessage(a)}
|
|
4
|
-
</ol>`;this.toastr.warning(m,"Warning",{enableHtml:!0})}else{let m=`<ol>${this.generateErrorMessage(a)}</ol>`;this.toastr.error(m,"Error",{enableHtml:!0})}}generateSuccessMessage(e){let a="";return e.forEach(t=>{a+=`<li><b>${t.OrderNumber}</b> was successfully Accept</li>`}),a}generateErrorMessage(e){let a="";return e.forEach(t=>{a+=`<li><b>${t.OrderNumber}</b> ${t.Message}</li>`}),a}static{this.\u0275fac=function(a){return new(a||r)(We(W),We(Ke))}}static{this.\u0275prov=He({token:r,factory:r.\u0275fac})}}return r})();function Et(r,c){if(r&1){let e=N();w(0),i(1,"button",20),v("click",function(){g(e);let t=s().ngIf,m=s();return _(m.onAcceptOrder(t))}),S(2,"i",21),l(3," Accept "),n(),P()}}function It(r,c){if(r&1&&(w(0),u(1,Et,4,0,"ng-container",3),P()),r&2){let e=s();o(),d("ngIf",e.isTokopediaAvailable&&e.isTokopediaSelected)}}function Nt(r,c){if(r&1&&(i(0,"span",22),S(1,"img",23),n(),l(2)),r&2){let e=c.item;o(),d("src",e==null?null:e.Img,M),o(),E(" ",e.Name," ")}}function Ot(r,c){if(r&1){let e=N();w(0),i(1,"th",35)(2,"input",36),b("ngModelChange",function(t){g(e);let m=s(3);return y(m.isCheckAll,t)||(m.isCheckAll=t),_(t)}),v("ngModelChange",function(){g(e);let t=s(2).ngIf,m=s();return _(m.onSelectAllOrderData(t))}),n()(),P()}if(r&2){let e=s(3);o(2),C("ngModel",e.isCheckAll)}}function Dt(r,c){if(r&1){let e=N();w(0),i(1,"input",36),b("ngModelChange",function(t){g(e);let m=s(2).$implicit;return y(m.selected,t)||(m.selected=t),_(t)}),v("ngModelChange",function(){g(e);let t=s(4).ngIf,m=s();return _(m.onSelectOrderData(t))}),n(),P()}if(r&2){let e=s(2).$implicit;o(),C("ngModel",e.selected)}}function Mt(r,c){if(r&1&&(w(0),i(1,"td"),u(2,Dt,2,1,"ng-container",3),n(),P()),r&2){let e=s().$implicit,a=s(3);o(2),d("ngIf",e.Type==a.tokopediaType)}}function Lt(r,c){if(r&1&&(w(0),i(1,"span"),l(2),n(),P()),r&2){let e=s().$implicit;o(2),h(e.Number)}}function kt(r,c){if(r&1&&(i(0,"a",38),l(1),n()),r&2){let e=s().$implicit,a=s(3);d("href",a.domain+"/menu/Orders/Order/Sales_Order/Info?ID="+e.ID,M),o(),h(e.Number)}}function Vt(r,c){if(r&1&&(i(0,"tr"),u(1,Mt,3,1,"ng-container",3),i(2,"td"),l(3),n(),i(4,"td"),u(5,Lt,3,1,"ng-container",24)(6,kt,2,2,"ng-template",null,1,H),n(),i(8,"td"),l(9),n(),i(10,"td"),l(11),x(12,"date"),n(),i(13,"td"),S(14,"app-channel-logo",37),n()()),r&2){let e=c.$implicit,a=j(7),t=s(3);o(),d("ngIf",t.isTokopediaAvailable),o(2),h(e.Outlet),o(2),d("ngIf",e.ID==t.guidEmpty)("ngIfElse",a),o(4),h(e.Customer),o(2),h(k(12,7,e.Created,"dd MMM yyyy HH:mm")),o(3),d("typeId",e.Type)}}function At(r,c){if(r&1){let e=N();w(0),i(1,"div",25)(2,"table",26),v("matSortChange",function(t){g(e);let m=s(2);return _(m.onSort(t))}),i(3,"thead",27)(4,"tr",28),u(5,Ot,3,1,"ng-container",3),i(6,"th",29),l(7,"Outlet"),n(),i(8,"th",30),l(9,"Order number"),n(),i(10,"th"),l(11,"Customer"),n(),i(12,"th",31),l(13," Created On "),n(),i(14,"th",32),l(15,"Channel"),n()()(),i(16,"tbody"),u(17,Vt,15,10,"tr",33),n()(),i(18,"app-mat-paginator-no-count",34),x(19,"async"),x(20,"async"),v("total",function(){g(e);let t=s(2);return _(t.getPaginatonTotal())})("next",function(){g(e);let t=s(2);return _(t.onNextPage())})("previous",function(){g(e);let t=s(2);return _(t.onPreviousPage())}),n()(),P()}if(r&2){let e,a=s().ngIf,t=s();o(5),d("ngIf",t.isTokopediaAvailable&&a),o(12),d("ngForOf",a),o(),d("filter",t.filter)("totaldata",(e=O(19,5,t.newOrdersData$))==null?null:e.length)("paginationTotal",O(20,7,t.paginationTotal$))}}function Ft(r,c){if(r&1&&(w(0),u(1,At,21,9,"ng-container",24),P()),r&2){let e=c.ngIf;s();let a=j(36);o(),d("ngIf",(e==null?null:e.length)>0)("ngIfElse",a)}}function Rt(r,c){r&1&&(i(0,"div",39),S(1,"app-empty-state"),n())}var ut=(()=>{class r{constructor(e,a,t,m){this.localDataService=e,this.orderService=a,this.acceptOrderService=t,this.authService=m,this.filter={PageNumber:null,PageSize:null,ListChannelID:[],From:null,To:null},this.domain=`https://${this.localDataService.getHostName()}`,this.guidEmpty=D.GuidEMpty,this.tokopediaType=I.Tokopedia,this.isTokopediaSelected=!1,this.isTokopediaAvailable=!1,this.isCheckAll=!1,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initLoadPage()}initLoadPage(){this.orderService.loadInitialPage().subscribe(e=>{this.filter.PageNumber=e.Filter.PageNumber,this.filter.PageSize=e.Filter.RowCount,this.filter.From=e.Filter.From,this.filter.To=e.Filter.To,this.getNewOrders()})}getNewOrders(){let e={PageNumber:this.filter.PageNumber,PageSize:this.filter.PageSize,ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.sourceObs$=this.orderService.getNewOrders(e).pipe(fe()),this.newOrdersData$=this.sourceObs$.pipe(Ee(a=>{a.filter(m=>m.Type==I.Tokopedia).length>0&&(this.isTokopediaAvailable=!0)}))}getPaginatonTotal(){this.paginationTotal$=this.orderService.getTotalNewOrders(this.filter.ListChannelID,this.filter.From,this.filter.To).pipe(fe())}onNextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.getNewOrders()}onPreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.getNewOrders()}onSelectOrderData(e){this.isTokopediaSelected=!1,e.filter(t=>t.selected).length>0&&(this.isTokopediaSelected=!0)}onSelectAllOrderData(e){e=e.map(a=>(a.Type==I.Tokopedia&&(a.selected=this.isCheckAll),a)),this.onSelectOrderData(e)}onAcceptOrder(e){let a=this.getSelectedTokopediaOrders(e);this.acceptOrderService.acceptTokopediaOrders(a).subscribe(t=>{this.isTokopediaSelected=!1,location.reload()})}getSelectedTokopediaOrders(e){return e.filter(t=>t.selected).map(t=>t.Number)}onSort(e){if(e.direction==""){this.newOrdersData$=this.sourceObs$;return}if(e.active=="created"){let a=e.direction=="asc";this.newOrdersData$=this.newOrdersData$.pipe(de(t=>(t=t.sort((m,f)=>D.compare(m.Created,f.Created,a)),t)))}}static{this.\u0275fac=function(a){return new(a||r)(T(pe),T(ke),T(Ae),T(Q))}}static{this.\u0275cmp=L({type:r,selectors:[["app-new-order"]],standalone:!1,decls:37,vars:15,consts:[["EMPTY_STATE",""],["NOT_EMPTY",""],["headerTitle","1 - New Order","searchBoxPlaceHolder","Search Orders...",3,"onSubmit","hideSearchBox"],[4,"ngIf"],["href","https://ods.dealpos.app","target","_blank",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","me-3"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","multiple","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[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,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid","mt-3","d-print-none"],[1,"row"],[1,"col-md-12"],["type","button","data-cy","scanInPos",1,"btn","btn-outline-secondary","shadow","rounded","me-3",3,"click"],[1,"fa-solid","fa-check"],[1,"me-2"],["alt","",2,"width","18px",3,"src"],[4,"ngIf","ngIfElse"],[1,"table-responsive"],["matSort","",1,"table","table-hover",3,"matSortChange"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","120px"],[2,"width","220px"],["mat-sort-header","created",2,"width","130px"],[2,"width","130px"],[4,"ngFor","ngForOf"],[3,"total","next","previous","filter","totaldata","paginationTotal"],[2,"width","5px"],["type","checkbox",3,"ngModelChange","ngModel"],[3,"typeId"],["target","_blank",3,"href"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,t){if(a&1){let m=N();i(0,"mainpanel",2),v("onSubmit",function(){return g(m),_(t.getNewOrders())}),i(1,"actions"),u(2,It,2,1,"ng-container",3),x(3,"async"),i(4,"a",4),S(5,"i",5),i(6,"span"),l(7,"Visit our Fulfillment Display System"),n()()(),i(8,"filters")(9,"div")(10,"label",6),l(11,"Channel"),n(),i(12,"ng-select",7),b("ngModelChange",function(p){return g(m),y(t.filter.ListChannelID,p)||(t.filter.ListChannelID=p),_(p)}),u(13,Nt,3,2,"ng-template",8),n()(),i(14,"div",9)(15,"label",10),l(16,"Page Number"),n(),i(17,"input",11),b("ngModelChange",function(p){return g(m),y(t.filter.PageNumber,p)||(t.filter.PageNumber=p),_(p)}),n()(),i(18,"div",9)(19,"label",10),l(20,"Page Size"),n(),i(21,"input",12),b("ngModelChange",function(p){return g(m),y(t.filter.PageSize,p)||(t.filter.PageSize=p),_(p)}),n()(),i(22,"div",9)(23,"label",13),l(24,"From/To"),n(),i(25,"div",14)(26,"datepicker",15),b("dateChange",function(p){return g(m),y(t.filter.From,p)||(t.filter.From=p),_(p)}),n()(),i(27,"div")(28,"datepicker",16),b("dateChange",function(p){return g(m),y(t.filter.To,p)||(t.filter.To=p),_(p)}),n()()()(),i(29,"content")(30,"div",17)(31,"div",18)(32,"div",19),u(33,Ft,2,2,"ng-container",3),x(34,"async"),u(35,Rt,2,0,"ng-template",null,0,H),n()()()()()}a&2&&(d("hideSearchBox",!0),o(2),d("ngIf",O(3,11,t.newOrdersData$)),o(10),d("clearable",!0)("multiple",!0)("items",t.channelOptions),C("ngModel",t.filter.ListChannelID),o(5),C("ngModel",t.filter.PageNumber),o(4),C("ngModel",t.filter.PageSize),o(5),C("date",t.filter.From),o(2),C("date",t.filter.To),o(5),d("ngIf",O(34,13,t.newOrdersData$)))},dependencies:[A,F,Y,X,Me,J,K,B,ee,Z,$,z,ne,re,te,ie,G,Oe,V],encapsulation:2})}}return r})();var Wt=()=>["/menu/Order"];function Bt(r,c){if(r&1&&(i(0,"tr")(1,"td"),l(2),n(),i(3,"td"),l(4),x(5,"number"),n(),i(6,"td"),l(7),x(8,"number"),n()()),r&2){let e=c.$implicit;o(2),h(e.Code),o(2),h(O(5,3,e.Quantity)),o(3),h(O(8,5,e.Price))}}function zt(r,c){if(r&1&&(i(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"h3",8),l(5,"Outlet Info"),n()(),i(6,"div",4)(7,"div",9),l(8," Outlet : "),n(),i(9,"div",9),l(10),n()(),i(11,"div",4)(12,"div",9),l(13," Date : "),n(),i(14,"div",9),l(15),x(16,"date"),n()(),i(17,"div",4)(18,"div",9),l(19," Status : "),n(),i(20,"div",9),l(21),n()(),i(22,"div",4)(23,"div",9),l(24," Tax Type : "),n(),i(25,"div",9),l(26),n()(),i(27,"div",4)(28,"div",9),l(29," Due Date : "),n(),i(30,"div",9),l(31),x(32,"date"),n()()(),i(33,"div",6)(34,"div",7)(35,"h3",8),l(36,"Customer Info"),n()(),i(37,"div",4)(38,"div",9),l(39," Name : "),n(),i(40,"div",9),l(41),n()(),i(42,"div",4)(43,"div",9),l(44," Email : "),n(),i(45,"div",9),l(46),n()(),i(47,"div",4)(48,"div",9),l(49," Mobile : "),n(),i(50,"div",9),l(51),n()()()(),i(52,"div",10)(53,"h3",11),l(54,"Products Sold"),n(),i(55,"div",12)(56,"table",13)(57,"thead",14)(58,"tr",15)(59,"th"),l(60,"Code"),n(),i(61,"th"),l(62,"Quantity"),n(),i(63,"th"),l(64,"Price"),n()()(),i(65,"tbody"),u(66,Bt,9,7,"tr",16),n()()()()()),r&2){let e=s();o(10),E(" ",e.model.Outlet," "),o(5),E(" ",k(16,9,e.model.Date,"dd MMM yyyy")," "),o(6),E(" ",e.model.Delivery," "),o(5),E(" ",e.model.TaxType," "),o(5),E(" ",k(32,12,e.model.DueDate,"dd MMM yyyy")," "),o(10),E(" ",e.model.Customer.Name," "),o(5),E(" ",e.model.Customer.Email," "),o(5),E(" ",e.model.Customer.Mobile," "),o(15),d("ngForOf",e.model.Variants)}}var ft=(()=>{class r{constructor(e,a){this.http=e,this.url=a,this.number=this.url.snapshot.queryParams.Number,this.outlet=this.url.snapshot.queryParams.Outlet}ngOnInit(){this.Load()}Load(){var e={Number:this.number,Outlet:this.outlet};this.http.post("/api/orders/GetInvoiceDetail",e).subscribe(a=>{this.model=a})}static{this.\u0275fac=function(a){return new(a||r)(T(W),T(qe))}}static{this.\u0275cmp=L({type:r,selectors:[["app-detail-order"]],standalone:!1,decls:7,vars:6,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button",1,"btn","btn-secondary","btn-fill","btn-lg","me-3",3,"routerLink"],[1,"container"],["class","row",4,"ngIf"],[1,"row"],[1,"col-4"],[1,"border","my-3","py-3","col-12"],[1,"row","m-2"],[1,"text-center"],[1,"col"],[1,"col-8"],[1,"text-center","my-3","py-3"],[1,"table-responsive"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[4,"ngFor","ngForOf"]],template:function(a,t){a&1&&(i(0,"mainpanel",0)(1,"actions")(2,"a",1),l(3,"Back"),n()(),i(4,"content")(5,"div",2),u(6,zt,67,15,"div",3),n()()()),a&2&&(d("headerTitle","Order #"+t.number)("hideSearchBox",!0)("hideSearchDropdown",!0),o(2),d("routerLink",U(5,Wt)),o(4),d("ngIf",t.model))},dependencies:[A,F,B,q,R,V],encapsulation:2})}}return r})();var me=function(r){return r.SPX="https://res.cloudinary.com/pos/image/upload/v1698216798/APP/Print%20Shipping%20Label/SPX_Logo.png",r.SICEPAT="https://res.cloudinary.com/pos/image/upload/v1698216793/APP/Print%20Shipping%20Label/SiCepat_Logo.png",r.JNT="https://res.cloudinary.com/pos/image/upload/v1698216792/APP/Print%20Shipping%20Label/J_T_Logo.png",r.ANTERAJA="https://res.cloudinary.com/pos/image/upload/v1698218271/APP/Print%20Shipping%20Label/anteraja_Logo.png",r.JNE="https://res.cloudinary.com/pos/image/upload/v1698216791/APP/Print%20Shipping%20Label/JNE_Logo.png",r.GRAB="https://res.cloudinary.com/pos/image/upload/v1698216794/APP/Print%20Shipping%20Label/GrabExpress_Logo.png",r.GOSEND="https://res.cloudinary.com/pos/image/upload/v1698218375/APP/Print%20Shipping%20Label/Gosend_Logo.png",r.LAZADA_EXPRESS="https://res.cloudinary.com/pos/image/upload/v1698914677/icons/Marketplace%20logo/lazada-Logistics.png",r}(me||{});var ue=function(r){return r.TOKOPEDIA="https://res.cloudinary.com/pos/image/upload/v1698216793/APP/Print%20Shipping%20Label/Tokopedia_Logo.png",r.SHOPEE="https://res.cloudinary.com/pos/image/upload/v1698219243/APP/Print%20Shipping%20Label/shopee-logo.png",r.LAZADA="https://res.cloudinary.com/pos/image/upload/v1698912333/icons/Marketplace%20logo/Lazada_icon.png",r.TIKTOK="https://res.cloudinary.com/pos/image/upload/v1645761565/icons/Marketplace%20logo/tiktok-logo.png",r}(ue||{});function Gt(r,c){if(r&1&&(w(0),i(1,"div",36)(2,"div",12)(3,"div",37),l(4),n()(),i(5,"div",12)(6,"div",37),l(7),n()()(),P()),r&2){let e=s();o(4),E(" ",e.recipient==null?null:e.recipient.City," "),o(3),E(" ",e.recipient==null?null:e.recipient.District," ")}}function jt(r,c){if(r&1&&(w(0),i(1,"div")(2,"span",15),l(3,"Berat: "),n(),i(4,"span",18),l(5),n()(),P()),r&2){let e=s();o(5),E("",e.shippingLabel==null?null:e.shippingLabel.Weight," gr")}}function Ht(r,c){if(r&1&&(w(0),i(1,"div",38)(2,"span",14),l(3,"Batas Kirim:"),n(),i(4,"span",18),l(5),x(6,"date"),n()(),P()),r&2){let e=s();o(5),h(k(6,1,e.logistic==null?null:e.logistic.Batas_kirim,"dd-MM-yyy"))}}function Ut(r,c){if(r&1&&(w(0),i(1,"div",38)(2,"span",14),l(3,"No.Pesanan:"),n(),i(4,"span",18),l(5),n()(),P()),r&2){let e=s();o(5),h(e.shippingLabel==null?null:e.shippingLabel.OrderNumber)}}function qt(r,c){if(r&1&&(i(0,"tr")(1,"td",39),l(2),n(),i(3,"td"),l(4),n(),i(5,"td"),l(6),n(),i(7,"td"),l(8),x(9,"number"),n()()),r&2){let e=c.$implicit,a=c.index;o(2),h(a+1),o(2),h(e.Product_Name),o(2),h(e.SKU),o(2),h(O(9,4,e.Quantity))}}var Re=(()=>{class r{constructor(){this.minDate=D.MinDate,this.channelType=I}ngOnChanges(e){e.shippingLabel&&e.shippingLabel.currentValue&&(this.initShippingLabel(),this.getShippingLogo(),this.getChannelLogo())}ngAfterViewInit(){this.initBarcodeConfig()}getChannelLogo(){switch(this.shippingLabel.ChannelType){case I.Tokopedia:this.marketplaceLogo=ue.TOKOPEDIA;break;case I.Shopee:this.marketplaceLogo=ue.SHOPEE;break;case I.Lazada:this.marketplaceLogo=ue.LAZADA;break;case I.Tiktok:this.marketplaceLogo=ue.TIKTOK;break}}getShippingLogo(){let e=this.shippingLabel.Logistic.Logistic_Name;e=e?.toLowerCase(),e.includes("anteraja")?this.shippingLogo=me.ANTERAJA:e.includes("grabexpress")?this.shippingLogo=me.GRAB:e.includes("jne")?this.shippingLogo=me.JNE:e.includes("gosend")?this.shippingLogo=me.GOSEND:e.includes("j&t")||e.includes("jnt")?this.shippingLogo=me.JNT:e.includes("sicepat")?this.shippingLogo=me.SICEPAT:e.includes("spx")?this.shippingLogo=me.SPX:(e.includes("lex")||e.includes("lx")||e.includes("lazada express"))&&(this.shippingLogo=me.LAZADA_EXPRESS)}initShippingLabel(){this.recipient=this.shippingLabel.Recipient,this.store=this.shippingLabel.Store,this.products=this.shippingLabel.Products,this.logistic=this.shippingLabel.Logistic}initBarcodeConfig(){if(D.IsNotEmpty(this.logistic?.Resi_Number)){let e=this.logistic?.Resi_Number;JsBarcode(`#RESI${this.id}`,this.logistic?.Resi_Number,{displayValue:!1,width:e.length>15?1:1.5,height:40})}D.IsNotEmpty(this.shippingLabel?.OrderNumber)&&JsBarcode(`#NO${this.id}`,this.shippingLabel?.OrderNumber,{displayValue:!1,width:this.shippingLabel?.OrderNumber.length>15?.5:1,height:40})}static{this.\u0275fac=function(a){return new(a||r)}}static{this.\u0275cmp=L({type:r,selectors:[["app-shipping-label"]],inputs:{shippingLabel:"shippingLabel",id:"id"},features:[Ue],decls:87,vars:20,consts:[[1,"label-container"],[2,"border","1px solid","padding","12px"],[1,"row","mb-2"],[1,"col-12"],[1,"d-flex","align-items-center","justify-content-between"],["width","105px",1,"border-0",3,"src"],[1,"mb-4"],[1,"row","mb-1"],[1,"text-center","fw-bold","border","p-2","fs-5","border-dark"],[1,"me-2"],[1,"col-12","text-center"],[3,"id"],[1,"col-6"],[1,"d-flex"],[1,"fw-bold","fs-6","me-1"],[1,"fw-bold","fs-6"],[1,"mt-2"],[1,"mb-0","fs-6",2,"max-width","200px","word-wrap","break-word"],[1,"fs-6"],[1,"fs-6",2,"word-wrap","break-word","max-width","160px"],[4,"ngIf"],[1,"row","px-6"],[1,"col-5","border","border-dark","border-end-0","text-center","p-2"],[1,"col-7","border","border-dark","p-2","text-center","fs-6"],[1,"fst-italic"],[1,"row"],[1,"col-5","pt-4",2,"padding-right","0px"],[1,"d-flex","justify-content-between"],[1,"col-7","text-center"],[1,"mt-1",3,"id"],[1,"table","table-sm","fs-6"],[1,"text-center",2,"width","5px"],[2,"width","150px"],[2,"width","50px"],[2,"width","25px"],[4,"ngFor","ngForOf"],[1,"row","mb-4"],[1,"text-center","fw-bold","border","p-2","fs-6","border-dark","text-uppercase"],[1,"mt-4"],[1,"text-center"]],template:function(a,t){a&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"div"),S(6,"img",5),n(),i(7,"div")(8,"h4"),l(9),n()(),i(10,"div"),S(11,"img",5),n()()()(),i(12,"div",6),S(13,"hr"),n(),i(14,"div",7)(15,"div",3)(16,"div",8)(17,"span",9),l(18),n(),i(19,"span"),l(20),n()()()(),i(21,"div",7)(22,"div",10),Be(),S(23,"svg",11),n()(),ze(),i(24,"div",6),S(25,"hr"),n(),i(26,"div",2)(27,"div",12)(28,"div",13)(29,"div",14),l(30,"Penerima: "),n(),i(31,"div",15),l(32),n()(),i(33,"div",16)(34,"span",15),l(35,"Alamat Pengiriman:"),n(),i(36,"div",17),l(37),n()()(),i(38,"div",12)(39,"div",13)(40,"div",14),l(41,"Pengirim: "),n(),i(42,"div")(43,"div",15),l(44),n(),i(45,"div",18),l(46),n(),i(47,"div",19),l(48),n()()(),S(49,"div"),n()(),u(50,Gt,8,2,"ng-container",20),i(51,"div",21)(52,"div",22)(53,"div",15),l(54,"CASHLESS"),n()(),i(55,"div",23)(56,"small",24),l(57,"Penjual tidak perlu membayar ongkos kirim ke kurir"),n()()(),i(58,"div",25)(59,"div",26)(60,"div",27),u(61,jt,6,1,"ng-container",20),i(62,"div")(63,"span",15),l(64,"COD: "),n(),i(65,"span",18),l(66),x(67,"number"),n()()(),u(68,Ht,7,4,"ng-container",20)(69,Ut,6,1,"ng-container",20),n(),i(70,"div",28),Be(),S(71,"svg",29),n()()(),ze(),i(72,"div",25)(73,"div",3)(74,"table",30)(75,"thead")(76,"tr")(77,"th",31),l(78,"No."),n(),i(79,"th",32),l(80,"Nama Produk"),n(),i(81,"th",33),l(82,"SKU"),n(),i(83,"th",34),l(84,"Qty"),n()()(),i(85,"tbody"),u(86,qt,10,6,"tr",35),n()()()()()),a&2&&(o(6),d("src",t.marketplaceLogo,M),o(3),h(t.logistic==null?null:t.logistic.Service),o(2),d("src",t.shippingLogo,M),o(7),E(" ",(t.shippingLabel==null?null:t.shippingLabel.ChannelType)==(t.channelType==null?null:t.channelType.Tokopedia)?"Kode Booking: ":"No. Resi: "," "),o(2),h(t.logistic==null?null:t.logistic.Resi_Number),o(3),d("id","RESI"+t.id),o(9),h(t.recipient==null?null:t.recipient.Name),o(5),E(" ",t.recipient==null?null:t.recipient.Address," "),o(7),h(t.store==null?null:t.store.Name),o(2),h(t.store==null?null:t.store.Phone),o(2),E(" ",t.store==null?null:t.store.Address," "),o(2),d("ngIf",(t.recipient==null?null:t.recipient.City)&&(t.recipient==null?null:t.recipient.District)),o(11),d("ngIf",t.shippingLabel==null?null:t.shippingLabel.Weight),o(5),E("Rp. ",t.shippingLabel!=null&&t.shippingLabel.IsCOD?O(67,18,t.shippingLabel==null||t.shippingLabel.SummaryPrice==null?null:t.shippingLabel.SummaryPrice.Total):0,""),o(2),d("ngIf",(t.logistic==null?null:t.logistic.Batas_kirim)&&(t.logistic==null?null:t.logistic.Batas_kirim)!==t.minDate),o(),d("ngIf",t.shippingLabel==null?null:t.shippingLabel.OrderNumber),o(2),d("id","NO"+t.id),o(15),d("ngForOf",t.products))},dependencies:[ce,A,F,R,V],styles:[".table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border:none!important}.table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-transform:capitalize;padding:4px!important}.table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:none!important;padding:2px 2px 2px 5px!important;font-size:10px}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.4509803922)}.label-container[_ngcontent-%COMP%]{width:465px;float:left}hr[_ngcontent-%COMP%]{opacity:.8;margin:0}"]})}}return r})();var St=r=>[r],Kt=()=>["/menu/Order/detail"],Xt=(r,c)=>({Number:r,Outlet:c});function Qt(r,c){if(r&1){let e=N();w(0),i(1,"button",21),v("click",function(){g(e);let t=s();return _(t.onPrintMultipleShippingLabel())}),S(2,"i",22),i(3,"span"),l(4,"Print Shipping Label"),n()(),P()}}function Zt(r,c){if(r&1&&(i(0,"span",23),S(1,"img",24),n(),l(2)),r&2){let e=c.item;o(),d("src",e==null?null:e.Img,M)("alt",e.Name),o(),E(" ",e.Name," ")}}function $t(r,c){r&1&&(w(0),S(1,"th",39),P())}function ei(r,c){if(r&1){let e=N();w(0),i(1,"input",31),b("ngModelChange",function(t){g(e);let m=s().$implicit;return y(m.Selected,t)||(m.Selected=t),_(t)}),v("ngModelChange",function(){g(e);let t=s(3).ngIf,m=s();return _(m.onSelectReadyToShip(t))}),n(),P()}if(r&2){let e=s().$implicit;o(),C("ngModel",e.Selected)}}function ti(r,c){if(r&1&&(i(0,"a",43),l(1),n()),r&2){let e=s().$implicit;d("routerLink",U(3,Kt))("queryParams",le(4,Xt,e.Number,e.Outlet)),o(),h(e.Number)}}function ii(r,c){if(r&1&&(i(0,"a",44),l(1),n()),r&2){let e=s().$implicit,a=s(3);d("href",a.domain+e.ID,M),o(),h(e.Number)}}function ni(r,c){if(r&1){let e=N();i(0,"a",47),v("click",function(){g(e);let t=s(2).$implicit,m=s(3);return _(m.onPrintShippingLabel(t.Number,t.ShopID,t.TypeID))}),S(1,"i",48),n()}}function ri(r,c){if(r&1&&(w(0),i(1,"td",45),u(2,ni,2,0,"a",46),n(),P()),r&2){let e=s().$implicit,a=s(3);o(2),d("ngIf",e.TypeID==a.channelType.Shopee||e.TypeID==a.channelType.Tokopedia||e.TypeID==a.channelType.Tiktok||e.TypeID==a.channelType.Lazada)}}function ai(r,c){if(r&1&&(i(0,"tr")(1,"td"),u(2,ei,2,1,"ng-container",4),n(),i(3,"td"),l(4),n(),i(5,"td"),u(6,ti,2,7,"a",40)(7,ii,2,2,"a",41),n(),i(8,"td"),l(9),n(),i(10,"td"),l(11),x(12,"number"),n(),i(13,"td"),l(14),x(15,"date"),n(),i(16,"td"),S(17,"app-channel-logo",42),n(),u(18,ri,3,1,"ng-container",37),n()),r&2){let e=c.$implicit,a=s(3);o(2),d("ngIf",e.TypeID==a.channelType.Shopee||e.TypeID==a.channelType.Tokopedia||e.TypeID==a.channelType.Tiktok),o(2),h(e.Outlet),o(2),d("ngIf",a.guidEmpty==e.ID),o(),d("ngIf",a.guidEmpty!=e.ID),o(2),h(e.Customer),o(2),h(O(12,9,e.Amount)),o(3),h(k(15,11,e.Date,"dd MMM yyyy")),o(3),d("typeId",e.TypeID),o(),d("ngxPermissionsOnly",Ge(14,St,a.fulfillmentRole))}}function oi(r,c){if(r&1){let e=N();w(0),i(1,"div",26)(2,"table",27),v("matSortChange",function(t){g(e);let m=s(2);return _(m.onSort(t))}),i(3,"thead",28)(4,"tr",29)(5,"th",30)(6,"input",31),b("ngModelChange",function(t){g(e);let m=s(2);return y(m.isCheckAll,t)||(m.isCheckAll=t),_(t)}),v("ngModelChange",function(){g(e);let t=s().ngIf,m=s();return _(m.onSelectAllReadyToShip(t))}),n()(),i(7,"th",32),l(8,"Outlet"),n(),i(9,"th",33),l(10,"Order number"),n(),i(11,"th"),l(12,"Customer"),n(),i(13,"th",34),l(14,"Amount"),n(),i(15,"th",35),l(16,"Date"),n(),i(17,"th",36),l(18,"Channel"),n(),u(19,$t,2,0,"ng-container",37),n()(),i(20,"tbody"),u(21,ai,19,16,"tr",20),n()(),i(22,"app-mat-paginator-no-count",38),x(23,"async"),x(24,"async"),v("total",function(){g(e);let t=s(2);return _(t.getRowCount())})("next",function(){g(e);let t=s(2);return _(t.NextPage())})("previous",function(){g(e);let t=s(2);return _(t.PreviousPage())}),n()(),P()}if(r&2){let e,a=s().ngIf,t=s();o(6),C("ngModel",t.isCheckAll),o(13),d("ngxPermissionsOnly",Ge(10,St,t.fulfillmentRole)),o(2),d("ngForOf",a),o(),d("filter",t.filter)("totaldata",(e=O(23,6,t.readyToShip$))==null?null:e.length)("paginationTotal",O(24,8,t.paginationTotal$))}}function li(r,c){if(r&1&&(w(0),u(1,oi,25,12,"ng-container",25),P()),r&2){let e=c.ngIf;s();let a=j(35);o(),d("ngIf",e.length>0)("ngIfElse",a)}}function pi(r,c){r&1&&(i(0,"div",49),S(1,"app-empty-state"),n())}function mi(r,c){r&1&&(w(0),i(1,"div",51),l(2,"\xA0"),n(),P())}function di(r,c){if(r&1&&(w(0),S(1,"app-shipping-label",50),u(2,mi,3,0,"ng-container",4),P()),r&2){let e=c.$implicit,a=c.index,t=s();o(),d("shippingLabel",e)("id",a),o(),d("ngIf",a!==(t.shippingLabels==null?null:t.shippingLabels.length)-1)}}var Ct=(()=>{class r{constructor(e,a,t,m,f,p){this.http=e,this.localDataService=a,this.dialog=t,this.shippingLabelService=m,this.datePipe=f,this.authService=p,this.filter={PageNumber:null,PageSize:null,ListChannelID:[],From:null,To:null},this.channelType=I,this.guidEmpty=D.GuidEMpty,this.selectedReadyToShip=[],this.isCheckAll=!1,this.fulfillmentRole=Se.Fulfillment,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}Load(){this.http.post("/api/ordersLoader/GetOrder",{}).subscribe(e=>{this.filter.PageNumber=e.Filter.PageNumber,this.filter.PageSize=e.Filter.RowCount,this.filter.From=e.Filter.From,this.filter.To=e.Filter.To,this.domain=`https://${this.localDataService.getHostName()}/menu/Orders/Orders/Customer_Invoice/Info?ID=`,this.getReadyToShip()})}getReadyToShip(e){var a={Number:e,PageNumber:this.filter.PageNumber,PageSize:this.filter.PageSize,ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.sourceObs$=this.http.post("api/orders/GetReadyToShip",a).pipe(de(t=>t.Data),fe(1)),this.readyToShip$=this.sourceObs$}onPrintMultipleShippingLabel(){let e=this.filterReadyToShipByChannel(this.selectedReadyToShip,I.Tokopedia),a=this.filterReadyToShipByChannel(this.selectedReadyToShip,I.Shopee),t=this.filterReadyToShipByChannel(this.selectedReadyToShip,I.Tiktok),m=[];e.length>0&&m.push(this.shippingLabelService.getTokopediaShippingLabel(this.shippingLabelPayload(e))),a.length>0&&m.push(this.shippingLabelService.getShopeeShippingLabel(this.shippingLabelPayload(a))),t.length>0&&m.push(this.shippingLabelService.getTiktokShippingLabel(this.shippingLabelPayload(t))),je(m).pipe(de(f=>f.reduce((p,wt)=>p.concat(wt),[]))).subscribe({next:f=>{this.shippingLabels=f,this.printShippingLabel()}})}filterReadyToShipByChannel(e,a){return e.filter(t=>t.TypeID==a)}shippingLabelPayload(e){return e.map(a=>({ShopID:a.ShopID,OrderNumber:a.Number}))}printShippingLabel(){setTimeout(()=>{this.setPdfname(),window.print()},500)}onPrintShippingLabel(e,a,t){switch(t){case I.Tokopedia:this.shippingLabelService.printShippingLabelTokopedia(e);break;case I.Tiktok:this.shippingLabelService.printShippingLabelTiktok(e,a);break;case I.Shopee:this.shippingLabelService.printShippingLabelShopee(e,a);break;case I.Lazada:this.shippingLabelService.printShippingLabelLazada(e,a);break}}setPdfname(){if(this.selectedReadyToShip.length>1){let e=new Date,a=this.datePipe.transform(e,"dd-MM-yyyy"),t=this.datePipe.transform(e,"HH-mm");document.title=`ShippingLabel_${a}_${t}`}else{let e=this.selectedReadyToShip[0].Number;document.title=`ShippingLabel_${e}`}}getSelectedReadyToShip(e){return e.filter(a=>a.Selected)}getRowCount(){var e={PaymentState:"Unpaid",DeliveryState:"Unsent",ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.paginationTotal$=this.http.post("api/orders/GetRowCount",e).pipe(de(a=>a?.Total))}NextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.getReadyToShip()}PreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.getReadyToShip()}onSort(e){if(e.direction==""){this.readyToShip$=this.sourceObs$;return}if(e.active=="date"){let a=e.direction=="asc";this.readyToShip$=this.readyToShip$.pipe(de(t=>t.sort((m,f)=>D.compare(m.Date,f.Date,a))))}}onSelectReadyToShip(e){this.selectedReadyToShip=this.getSelectedReadyToShip(e)}onSelectAllReadyToShip(e){e=e.map(a=>((a.TypeID==I.Tokopedia||a.TypeID==I.Shopee||a.TypeID==I.Lazada)&&(a.Selected=this.isCheckAll),a)),this.selectedReadyToShip=this.getSelectedReadyToShip(e)}static{this.\u0275fac=function(a){return new(a||r)(T(W),T(pe),T(Le),T(Ve),T(V),T(Q))}}static{this.\u0275cmp=L({type:r,selectors:[["app-ready-to-ship"]],standalone:!1,decls:38,vars:13,consts:[["EMPTY_STATE",""],["headerTitle","2 - Ready to Ship","searchBoxPlaceHolder","Search ...",3,"onSubmit"],["href","https://ods.dealpos.app","target","_blank",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","me-3"],[4,"ngIf"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","multiple","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[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,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid","mt-3","d-print-none"],[1,"row"],[1,"col-md-12"],[1,"print_containers"],[4,"ngFor","ngForOf"],[1,"btn","btn-outline-secondary","shadow","rounded","me-3",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[4,"ngIf","ngIfElse"],[1,"table-responsive"],["matSort","",1,"table","table-hover",3,"matSortChange"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],["type","checkbox",3,"ngModelChange","ngModel"],[2,"width","120px"],[2,"width","220px"],[2,"width","100px"],["mat-sort-header","date",2,"width","130px"],[2,"width","114px"],[4,"ngxPermissionsOnly"],[3,"total","next","previous","filter","totaldata","paginationTotal"],[2,"width","10px"],[3,"routerLink","queryParams",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[3,"typeId"],[3,"routerLink","queryParams"],["target","_blank",3,"href"],[1,"text-center","text-primary"],["title","Print shipping label",3,"click",4,"ngIf"],["title","Print shipping label",3,"click"],[1,"fa-solid","fa-print","fs-3","cursor"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"shippingLabel","id"],[1,"page-break"]],template:function(a,t){if(a&1){let m=N();i(0,"mainpanel",1),v("onSubmit",function(p){return g(m),_(t.getReadyToShip(p))}),i(1,"actions")(2,"a",2),S(3,"i",3),i(4,"span"),l(5,"Visit our Fulfillment Display System"),n()(),u(6,Qt,5,0,"ng-container",4),n(),i(7,"filters")(8,"div")(9,"label",5),l(10,"Channel"),n(),i(11,"ng-select",6),b("ngModelChange",function(p){return g(m),y(t.filter.ListChannelID,p)||(t.filter.ListChannelID=p),_(p)}),u(12,Zt,3,3,"ng-template",7),n()(),i(13,"div",8)(14,"label",9),l(15,"Page Number"),n(),i(16,"input",10),b("ngModelChange",function(p){return g(m),y(t.filter.PageNumber,p)||(t.filter.PageNumber=p),_(p)}),n()(),i(17,"div",8)(18,"label",9),l(19,"Page Size"),n(),i(20,"input",11),b("ngModelChange",function(p){return g(m),y(t.filter.PageSize,p)||(t.filter.PageSize=p),_(p)}),n()(),i(21,"div",8)(22,"label",12),l(23,"From/To"),n(),i(24,"div",13)(25,"datepicker",14),b("dateChange",function(p){return g(m),y(t.filter.From,p)||(t.filter.From=p),_(p)}),n()(),i(26,"div")(27,"datepicker",15),b("dateChange",function(p){return g(m),y(t.filter.To,p)||(t.filter.To=p),_(p)}),n()()()(),i(28,"content")(29,"div",16)(30,"div",17)(31,"div",18),u(32,li,2,2,"ng-container",4),x(33,"async"),u(34,pi,2,0,"ng-template",null,0,H),n()()()()(),i(36,"div",19),u(37,di,3,3,"ng-container",20),n()}a&2&&(o(6),d("ngIf",t.selectedReadyToShip.length>0),o(5),d("clearable",!0)("multiple",!0)("items",t.channelOptions),C("ngModel",t.filter.ListChannelID),o(5),C("ngModel",t.filter.PageNumber),o(4),C("ngModel",t.filter.PageSize),o(5),C("date",t.filter.From),o(2),C("date",t.filter.To),o(5),d("ngIf",O(33,11,t.readyToShip$)),o(5),d("ngForOf",t.shippingLabels))},dependencies:[A,F,Y,X,Me,J,K,B,q,ee,Z,$,z,ne,re,te,ie,G,Re,Xe,Oe,R,V],styles:[".print_containers[_ngcontent-%COMP%]{display:none}@media print{.print_containers[_ngcontent-%COMP%]{display:block}}@media print{.page-break[_ngcontent-%COMP%]{page-break-after:always}}"]})}}return r})();var si=()=>["/menu/Order/detail"],ci=(r,c)=>({Number:r,Outlet:c});function gi(r,c){if(r&1&&(i(0,"span",19),S(1,"img",20),n(),l(2)),r&2){let e=c.item;o(),d("src",e==null?null:e.Img,M)("alt",e.Name),o(),E(" ",e.Name," ")}}function _i(r,c){if(r&1&&(i(0,"a",35),l(1),n()),r&2){let e=s().$implicit;d("routerLink",U(3,si))("queryParams",le(4,ci,e.Number,e.Outlet)),o(),h(e.Number)}}function hi(r,c){if(r&1&&(i(0,"a",36),l(1),n()),r&2){let e=s().$implicit,a=s(2);d("href",a.domain+e.ID,M),o(),h(e.Number)}}function ui(r,c){if(r&1&&(i(0,"tr")(1,"td"),l(2),n(),i(3,"td"),u(4,_i,2,7,"a",32)(5,hi,2,2,"a",33),n(),i(6,"td"),l(7),n(),i(8,"td"),l(9),x(10,"number"),n(),i(11,"td"),l(12),x(13,"date"),n(),i(14,"td"),S(15,"app-channel-logo",34),n()()),r&2){let e=c.$implicit,a=s(2);o(2),h(e.Outlet),o(2),d("ngIf",a.hasGuidEmpty(e.ID)),o(),d("ngIf",!a.hasGuidEmpty(e.ID)),o(2),h(e.Customer),o(2),h(O(10,7,e.Amount)),o(3),h(k(13,9,e.Created,"dd MMM yyyy HH:mm")),o(3),d("typeId",e.TypeID)}}function fi(r,c){if(r&1){let e=N();w(0),i(1,"div",21)(2,"table",22),v("matSortChange",function(t){g(e);let m=s();return _(m.onSort(t))}),i(3,"thead",23)(4,"tr",24)(5,"th",25),l(6,"Outlet"),n(),i(7,"th",26),l(8,"Order number"),n(),i(9,"th"),l(10,"Customer"),n(),i(11,"th",27),l(12,"Amount"),n(),i(13,"th",28),l(14," Created On "),n(),i(15,"th",29),l(16,"Channel"),n()()(),i(17,"tbody"),u(18,ui,16,12,"tr",30),n()(),i(19,"app-mat-paginator-no-count",31),v("total",function(){g(e);let t=s();return _(t.StoreRowsCountAPIResult())})("next",function(){g(e);let t=s();return _(t.NextPage())})("previous",function(){g(e);let t=s();return _(t.PreviousPage())}),n()(),P()}if(r&2){let e=s();o(18),d("ngForOf",e.data),o(),d("filter",e.filter)("totaldata",e.totaldata)("paginationTotal",e.paginationTotal)}}function Si(r,c){r&1&&(i(0,"div",37),S(1,"app-empty-state"),n())}var yt=(()=>{class r{constructor(e,a,t){this.http=e,this.localDataService=a,this.authService=t,this.filter={PageNumber:null,PageSize:null,ListChannelID:[],From:null,To:null},this.totaldata=0,this.paginationTotal=0,this.channelType=I,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}Load(){this.http.post("/api/ordersLoader/GetOrder",{}).subscribe(e=>{this.filter.PageNumber=e.Filter.PageNumber,this.filter.PageSize=e.Filter.RowCount,this.filter.From=e.Filter.From,this.filter.To=e.Filter.To,this.domain=`https://${this.localDataService.getHostName()}/menu/Orders/Orders/Customer_Invoice/Info?ID=`,this.Get()})}hasGuidEmpty(e){return e==D.GuidEMpty}Get(e){var a={Number:e,PageNumber:this.filter.PageNumber,PageSize:this.filter.PageSize,ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.http.post("api/orders/GetShipped",a).subscribe(t=>{this.data=t.Data,this.sourceData=[...t.Data],this.totaldata=this.data.length})}changePage(e){this.filter.PageNumber=e.pageIndex+1,this.Get()}StoreRowsCountAPIResult(){var e={PaymentState:"Unpaid",DeliveryState:"Sent",ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.http.post("api/orders/GetRowCount",e).subscribe(a=>{this.paginationTotal=a.Total})}NextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.Get()}PreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.Get()}onSort(e){if(e.direction==""){this.data=this.sourceData;return}if(e.active=="created"){let a=e.direction=="asc";this.data=this.data.sort((t,m)=>D.compare(t.Created,m.Created,a))}}static{this.\u0275fac=function(a){return new(a||r)(T(W),T(pe),T(Q))}}static{this.\u0275cmp=L({type:r,selectors:[["app-shipped"]],standalone:!1,decls:34,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","3 - Shipped","searchBoxPlaceHolder","Search ...",3,"onSubmit"],["href","https://ods.dealpos.app","target","_blank",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","me-3"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","multiple","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[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,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],["matSort","",1,"table","table-hover",3,"matSortChange"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","120px"],[2,"width","220px"],[2,"width","100px"],["mat-sort-header","created",2,"width","130px"],[2,"width","130px"],[4,"ngFor","ngForOf"],[3,"total","next","previous","filter","totaldata","paginationTotal"],[3,"routerLink","queryParams",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[3,"typeId"],[3,"routerLink","queryParams"],["target","_blank",3,"href"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,t){if(a&1){let m=N();i(0,"mainpanel",1),v("onSubmit",function(p){return g(m),_(t.Get(p))}),i(1,"actions")(2,"a",2),S(3,"i",3),i(4,"span"),l(5,"Visit our Fulfillment Display System"),n()()(),i(6,"filters")(7,"div")(8,"label",4),l(9,"Channel"),n(),i(10,"ng-select",5),b("ngModelChange",function(p){return g(m),y(t.filter.ListChannelID,p)||(t.filter.ListChannelID=p),_(p)}),u(11,gi,3,3,"ng-template",6),n()(),i(12,"div",7)(13,"label",8),l(14,"Page Number"),n(),i(15,"input",9),b("ngModelChange",function(p){return g(m),y(t.filter.PageNumber,p)||(t.filter.PageNumber=p),_(p)}),n()(),i(16,"div",7)(17,"label",8),l(18,"Page Size"),n(),i(19,"input",10),b("ngModelChange",function(p){return g(m),y(t.filter.PageSize,p)||(t.filter.PageSize=p),_(p)}),n()(),i(20,"div",7)(21,"label",11),l(22,"From/To"),n(),i(23,"div",12)(24,"datepicker",13),b("dateChange",function(p){return g(m),y(t.filter.From,p)||(t.filter.From=p),_(p)}),n()(),i(25,"div")(26,"datepicker",14),b("dateChange",function(p){return g(m),y(t.filter.To,p)||(t.filter.To=p),_(p)}),n()()()(),i(27,"content")(28,"div",15)(29,"div",16)(30,"div",17),u(31,fi,20,4,"ng-container",18)(32,Si,2,0,"ng-template",null,0,H),n()()()()()}if(a&2){let m=j(33);o(10),d("clearable",!0)("multiple",!0)("items",t.channelOptions),C("ngModel",t.filter.ListChannelID),o(5),C("ngModel",t.filter.PageNumber),o(4),C("ngModel",t.filter.PageSize),o(5),C("date",t.filter.From),o(2),C("date",t.filter.To),o(5),d("ngIf",t.data&&t.data.length>0)("ngIfElse",m)}},dependencies:[A,F,Y,X,J,K,B,q,ee,Z,$,z,ne,re,te,ie,G,R,V],encapsulation:2})}}return r})();var Ci=()=>["/menu/Order/detail"],yi=(r,c)=>({Number:r,Outlet:c});function bi(r,c){if(r&1&&(i(0,"span",19),S(1,"img",20),n(),l(2)),r&2){let e=c.item;o(),d("src",e==null?null:e.Img,M)("alt",e.Name),o(),E(" ",e.Name," ")}}function xi(r,c){if(r&1&&(i(0,"a",35),l(1),n()),r&2){let e=s().$implicit;d("routerLink",U(3,Ci))("queryParams",le(4,yi,e.Number,e.Outlet)),o(),h(e.Number)}}function vi(r,c){if(r&1&&(i(0,"a",36),l(1),n()),r&2){let e=s().$implicit,a=s(2);d("href",a.customerInfoUrl+e.ID,M),o(),h(e.Number)}}function Ti(r,c){if(r&1&&(i(0,"tr")(1,"td"),l(2),n(),i(3,"td"),u(4,xi,2,7,"a",32)(5,vi,2,2,"a",33),n(),i(6,"td"),l(7),n(),i(8,"td"),l(9),x(10,"number"),n(),i(11,"td"),l(12),x(13,"date"),n(),i(14,"td"),S(15,"app-channel-logo",34),n()()),r&2){let e=c.$implicit,a=s(2);o(2),h(e.Outlet),o(2),d("ngIf",a.hasGuidEmpty(e.ID)),o(),d("ngIf",!a.hasGuidEmpty(e.ID)),o(2),h(e.Customer),o(2),h(O(10,7,e.Amount)),o(3),h(k(13,9,e.Created,"dd MMM yyyy HH:mm")),o(3),d("typeId",e.TypeID)}}function wi(r,c){if(r&1){let e=N();w(0),i(1,"div",21)(2,"table",22),v("matSortChange",function(t){g(e);let m=s();return _(m.onSort(t))}),i(3,"thead",23)(4,"tr",24)(5,"th",25),l(6,"Outlet"),n(),i(7,"th",26),l(8,"Order number"),n(),i(9,"th"),l(10,"Customer"),n(),i(11,"th",27),l(12,"Amount"),n(),i(13,"th",28),l(14," Created On "),n(),i(15,"th",29),l(16,"Channel"),n()()(),i(17,"tbody"),u(18,Ti,16,12,"tr",30),n()(),i(19,"app-mat-paginator-no-count",31),v("total",function(){g(e);let t=s();return _(t.StoreRowsCountAPIResult())})("next",function(){g(e);let t=s();return _(t.NextPage())})("previous",function(){g(e);let t=s();return _(t.PreviousPage())}),n()(),P()}if(r&2){let e=s();o(18),d("ngForOf",e.data),o(),d("filter",e.filter)("totaldata",e.totaldata)("paginationTotal",e.paginationTotal)}}function Pi(r,c){r&1&&(i(0,"div",37),S(1,"app-empty-state"),n())}var bt=(()=>{class r{constructor(e,a){this.http=e,this.authService=a,this.filter={PageNumber:null,PageSize:null,ListChannelID:[],From:null,To:null},this.totaldata=0,this.paginationTotal=0,this.channelType=I,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}hasGuidEmpty(e){return e==D.GuidEMpty}getChannelLogo(e){return D.getChannelLogoByTypeId(e)}Load(){this.http.post("/api/ordersLoader/GetOrder",{}).subscribe(e=>{this.filter.PageNumber=e.Filter.PageNumber,this.filter.PageSize=e.Filter.RowCount,this.filter.From=e.Filter.From,this.filter.To=e.Filter.To,this.customerInfoUrl=`${this.authService.getDomain()}/menu/Orders/Orders/Customer_Invoice/Info?ID=`,this.Get()})}Get(e){var a={Number:e,PageNumber:this.filter.PageNumber,PageSize:this.filter.PageSize,ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.http.post("api/orders/GetDelivered ",a).subscribe(t=>{this.data=t.Data,this.sourceData=[...t.Data],this.totaldata=this.data.length})}changePage(e){this.filter.PageNumber=e.pageIndex+1,this.Get()}StoreRowsCountAPIResult(){var e={PaymentState:"Paid",DeliveryState:"Sent",ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.http.post("api/orders/GetRowCount",e).subscribe(a=>{this.paginationTotal=a.Total})}NextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.Get()}PreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.Get()}onSort(e){if(e.direction==""){this.data=this.sourceData;return}if(e.active=="created"){let a=e.direction=="asc";this.data=this.data.sort((t,m)=>D.compare(t.Created,m.Created,a))}}static{this.\u0275fac=function(a){return new(a||r)(T(W),T(Q))}}static{this.\u0275cmp=L({type:r,selectors:[["app-delivered"]],standalone:!1,decls:34,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","4 - Completed","searchBoxPlaceHolder","Search ...",3,"onSubmit"],["href","https://ods.dealpos.app","target","_blank",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","me-3"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","multiple","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[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,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],["matSort","",1,"table","table-hover",3,"matSortChange"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","120px"],[2,"width","220px"],[2,"width","100px"],["mat-sort-header","created",2,"width","130px"],[2,"width","130px"],[4,"ngFor","ngForOf"],[3,"total","next","previous","filter","totaldata","paginationTotal"],[3,"routerLink","queryParams",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[3,"typeId"],[3,"routerLink","queryParams"],["target","_blank",3,"href"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,t){if(a&1){let m=N();i(0,"mainpanel",1),v("onSubmit",function(p){return g(m),_(t.Get(p))}),i(1,"actions")(2,"a",2),S(3,"i",3),i(4,"span"),l(5,"Visit our Fulfillment Display System"),n()()(),i(6,"filters")(7,"div")(8,"label",4),l(9,"Channel"),n(),i(10,"ng-select",5),b("ngModelChange",function(p){return g(m),y(t.filter.ListChannelID,p)||(t.filter.ListChannelID=p),_(p)}),u(11,bi,3,3,"ng-template",6),n()(),i(12,"div",7)(13,"label",8),l(14,"Page Number"),n(),i(15,"input",9),b("ngModelChange",function(p){return g(m),y(t.filter.PageNumber,p)||(t.filter.PageNumber=p),_(p)}),n()(),i(16,"div",7)(17,"label",8),l(18,"Page Size"),n(),i(19,"input",10),b("ngModelChange",function(p){return g(m),y(t.filter.PageSize,p)||(t.filter.PageSize=p),_(p)}),n()(),i(20,"div",7)(21,"label",11),l(22,"From/To"),n(),i(23,"div",12)(24,"datepicker",13),b("dateChange",function(p){return g(m),y(t.filter.From,p)||(t.filter.From=p),_(p)}),n()(),i(25,"div")(26,"datepicker",14),b("dateChange",function(p){return g(m),y(t.filter.To,p)||(t.filter.To=p),_(p)}),n()()()(),i(27,"content")(28,"div",15)(29,"div",16)(30,"div",17),u(31,wi,20,4,"ng-container",18)(32,Pi,2,0,"ng-template",null,0,H),n()()()()()}if(a&2){let m=j(33);o(10),d("clearable",!0)("multiple",!0)("items",t.channelOptions),C("ngModel",t.filter.ListChannelID),o(5),C("ngModel",t.filter.PageNumber),o(4),C("ngModel",t.filter.PageSize),o(5),C("date",t.filter.From),o(2),C("date",t.filter.To),o(5),d("ngIf",t.data&&t.data.length>0)("ngIfElse",m)}},dependencies:[A,F,Y,X,J,K,B,q,ee,Z,$,z,ne,re,te,ie,G,R,V],encapsulation:2})}}return r})();var Ei=()=>["/menu/Order/detail"],Ii=(r,c)=>({Number:r,Outlet:c});function Ni(r,c){if(r&1&&(i(0,"span",21),S(1,"img",22),n(),l(2)),r&2){let e=c.item;o(),d("src",e==null?null:e.Img,M)("alt",e.Name),o(),E(" ",e.Name," ")}}function Oi(r,c){if(r&1&&(i(0,"a",38),l(1),n()),r&2){let e=s().$implicit;d("routerLink",U(3,Ei))("queryParams",le(4,Ii,e.Number,e.Outlet)),o(),h(e.Number)}}function Di(r,c){if(r&1&&(i(0,"a",39),l(1),n()),r&2){let e=s().$implicit,a=s(2);d("href",a.domain+e.ID,M),o(),h(e.Number)}}function Mi(r,c){if(r&1&&(i(0,"tr")(1,"td"),l(2),n(),i(3,"td"),u(4,Oi,2,7,"a",35)(5,Di,2,2,"a",36),n(),i(6,"td"),l(7),n(),i(8,"td"),l(9),x(10,"number"),n(),i(11,"td"),l(12),x(13,"date"),n(),i(14,"td"),l(15),n(),i(16,"td"),S(17,"app-channel-logo",37),n()()),r&2){let e=c.$implicit,a=s(2);o(2),h(e.Outlet),o(2),d("ngIf",a.hasGuidEmpty(e.ID)),o(),d("ngIf",!a.hasGuidEmpty(e.ID)),o(2),h(e.Customer),o(2),h(O(10,8,e.Amount)),o(3),h(k(13,10,e.Created,"dd MMM yyyy HH:mm")),o(3),h(e.State),o(2),d("typeId",e.TypeID)}}function Li(r,c){if(r&1){let e=N();w(0),i(1,"div",23)(2,"table",24),v("matSortChange",function(t){g(e);let m=s();return _(m.onSort(t))}),i(3,"thead",25)(4,"tr",26)(5,"th",27),l(6,"Outlet"),n(),i(7,"th",28),l(8,"Order number"),n(),i(9,"th"),l(10,"Customer"),n(),i(11,"th",29),l(12,"Amount"),n(),i(13,"th",30),l(14," Created On "),n(),i(15,"th",31),l(16,"Status"),n(),i(17,"th",32),l(18,"Channel"),n()()(),i(19,"tbody"),u(20,Mi,18,13,"tr",33),n()(),i(21,"app-mat-paginator-no-count",34),v("total",function(){g(e);let t=s();return _(t.StoreRowsCountAPIResult())})("next",function(){g(e);let t=s();return _(t.NextPage())})("previous",function(){g(e);let t=s();return _(t.PreviousPage())}),n()(),P()}if(r&2){let e=s();o(20),d("ngForOf",e.data),o(),d("filter",e.filter)("totaldata",e.totaldata)("paginationTotal",e.paginationTotal)}}function ki(r,c){r&1&&(i(0,"div",40),S(1,"app-empty-state"),n())}var xt=(()=>{class r{constructor(e,a,t,m){this.http=e,this.localDataService=a,this.authService=t,this.dialog=m,this.filter={PageNumber:null,PageSize:null,ListChannelID:[],From:null,To:null},this.totaldata=0,this.paginationTotal=0,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}hasGuidEmpty(e){return e==D.GuidEMpty}Load(){this.http.post("/api/ordersLoader/GetOrder",{}).subscribe(e=>{this.filter.PageNumber=e.Filter.PageNumber,this.filter.PageSize=e.Filter.RowCount,this.filter.From=e.Filter.From,this.filter.To=e.Filter.To,this.domain=`https://${this.localDataService.getHostName()}/menu/Orders/Orders/Customer_Invoice/Info?ID=`,this.Get()})}Get(e){var a={Number:e,PageNumber:this.filter.PageNumber,PageSize:this.filter.PageSize,ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.http.post("api/orders/GetAll",a).subscribe(t=>{this.data=t.Data,this.sourceData=[...t.Data],this.totaldata=this.data.length})}openExportDialog(){this.dialog.open(dt,{data:{title:"Export Order All",pageNumber:this.filter.PageNumber,rowCount:this.filter.PageSize,filterExport:this.filter,getRowCountApi:"orders/GetRowCount",exportApi:"orders/GetExportAll"}}).afterClosed().subscribe()}changePage(e){this.filter=e,this.Get()}StoreRowsCountAPIResult(){var e={PaymentState:"",DeliveryState:"",Bin:!1,ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.http.post("api/orders/GetRowCount",e).subscribe(a=>{this.paginationTotal=a.Total})}NextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.Get()}PreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.Get()}onSort(e){if(e.direction==""){this.data=this.sourceData;return}if(e.active=="created"){let a=e.direction=="asc";this.data=this.data.sort((t,m)=>D.compare(t.Created,m.Created,a))}}static{this.\u0275fac=function(a){return new(a||r)(T(W),T(pe),T(Q),T(Le))}}static{this.\u0275cmp=L({type:r,selectors:[["app-all-order"]],standalone:!1,decls:38,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","All","searchBoxPlaceHolder","Search ...",3,"onSubmit"],["href","https://ods.dealpos.app","target","_blank",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","me-3"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","multiple","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[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,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],["matSort","",1,"table","table-hover",3,"matSortChange"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","120px"],[2,"width","220px"],[2,"width","100px"],["mat-sort-header","created",2,"width","130px"],[2,"width","135px"],[2,"width","130px"],[4,"ngFor","ngForOf"],[3,"total","next","previous","filter","totaldata","paginationTotal"],[3,"routerLink","queryParams",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[3,"typeId"],[3,"routerLink","queryParams"],["target","_blank",3,"href"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,t){if(a&1){let m=N();i(0,"mainpanel",1),v("onSubmit",function(p){return g(m),_(t.Get(p))}),i(1,"actions")(2,"a",2),S(3,"i",3),i(4,"span"),l(5,"Visit our Fulfillment Display System"),n()(),i(6,"button",4),v("click",function(){return g(m),_(t.openExportDialog())}),S(7,"i",5),i(8,"span"),l(9,"Export"),n()()(),i(10,"filters")(11,"div")(12,"label",6),l(13,"Channel"),n(),i(14,"ng-select",7),b("ngModelChange",function(p){return g(m),y(t.filter.ListChannelID,p)||(t.filter.ListChannelID=p),_(p)}),u(15,Ni,3,3,"ng-template",8),n()(),i(16,"div",9)(17,"label",10),l(18,"Page Number"),n(),i(19,"input",11),b("ngModelChange",function(p){return g(m),y(t.filter.PageNumber,p)||(t.filter.PageNumber=p),_(p)}),n()(),i(20,"div",9)(21,"label",10),l(22,"Page Size"),n(),i(23,"input",12),b("ngModelChange",function(p){return g(m),y(t.filter.PageSize,p)||(t.filter.PageSize=p),_(p)}),n()(),i(24,"div",9)(25,"label",13),l(26,"From/To"),n(),i(27,"div",14)(28,"datepicker",15),b("dateChange",function(p){return g(m),y(t.filter.From,p)||(t.filter.From=p),_(p)}),n()(),i(29,"div")(30,"datepicker",16),b("dateChange",function(p){return g(m),y(t.filter.To,p)||(t.filter.To=p),_(p)}),n()()()(),i(31,"content")(32,"div",17)(33,"div",18)(34,"div",19),u(35,Li,22,4,"ng-container",20)(36,ki,2,0,"ng-template",null,0,H),n()()()()()}if(a&2){let m=j(37);o(14),d("clearable",!0)("multiple",!0)("items",t.channelOptions),C("ngModel",t.filter.ListChannelID),o(5),C("ngModel",t.filter.PageNumber),o(4),C("ngModel",t.filter.PageSize),o(5),C("date",t.filter.From),o(2),C("date",t.filter.To),o(5),d("ngIf",t.data&&t.data.length>0)("ngIfElse",m)}},dependencies:[A,F,Y,X,J,K,B,q,ee,Z,$,z,ne,re,te,ie,G,R,V],encapsulation:2})}}return r})();var Vi=()=>["/menu/Order/detail"],Ai=(r,c)=>({Number:r,Outlet:c});function Fi(r,c){if(r&1&&(i(0,"span",20),S(1,"img",21),n(),l(2)),r&2){let e=c.item;o(),d("src",e==null?null:e.Img,M)("alt",e.Name),o(),E(" ",e.Name," ")}}function Ri(r,c){if(r&1&&(i(0,"a",36),l(1),n()),r&2){let e=s().$implicit;d("routerLink",U(3,Vi))("queryParams",le(4,Ai,e.Number,e.Outlet)),o(),h(e.Number)}}function Wi(r,c){if(r&1&&(i(0,"a",37),l(1),n()),r&2){let e=s().$implicit,a=s(2);d("href",a.domain+e.ID,M),o(),h(e.Number)}}function Bi(r,c){if(r&1&&(i(0,"tr")(1,"td"),l(2),n(),i(3,"td"),u(4,Ri,2,7,"a",33)(5,Wi,2,2,"a",34),n(),i(6,"td"),l(7),n(),i(8,"td"),l(9),x(10,"number"),n(),i(11,"td"),l(12),x(13,"date"),n(),i(14,"td"),S(15,"app-channel-logo",35),n()()),r&2){let e=c.$implicit,a=s(2);o(2),h(e.Outlet),o(2),d("ngIf",a.hasGuidEmpty(e.ID)),o(),d("ngIf",!a.hasGuidEmpty(e.ID)),o(2),h(e.Customer),o(2),h(O(10,7,e.Amount)),o(3),h(k(13,9,e.Created,"dd MMM yyyy HH:mm")),o(3),d("typeId",e.TypeID)}}function zi(r,c){if(r&1){let e=N();w(0),i(1,"div",22)(2,"table",23),v("matSortChange",function(t){g(e);let m=s();return _(m.onSort(t))}),i(3,"thead",24)(4,"tr",25)(5,"th",26),l(6,"Outlet"),n(),i(7,"th",27),l(8,"Order number"),n(),i(9,"th"),l(10,"Customer"),n(),i(11,"th",28),l(12,"Amount"),n(),i(13,"th",29),l(14," Created On "),n(),i(15,"th",30),l(16,"Channel"),n()()(),i(17,"tbody"),u(18,Bi,16,12,"tr",31),n()(),i(19,"app-mat-paginator-no-count",32),v("total",function(){g(e);let t=s();return _(t.StoreRowsCountAPIResult())})("next",function(){g(e);let t=s();return _(t.NextPage())})("previous",function(){g(e);let t=s();return _(t.PreviousPage())}),n()(),P()}if(r&2){let e=s();o(18),d("ngForOf",e.data),o(),d("filter",e.filter)("totaldata",e.totaldata)("paginationTotal",e.paginationTotal)}}function Gi(r,c){r&1&&(i(0,"div",38),S(1,"app-empty-state"),n())}var vt=(()=>{class r{constructor(e,a,t){this.http=e,this.localDataService=a,this.authService=t,this.filter={PageNumber:null,PageSize:null,ListChannelID:[],Note:"",From:null,To:null},this.totaldata=0,this.paginationTotal=0,this.channelOptions=this.authService.getChannels()}ngOnInit(){this.Load()}hasGuidEmpty(e){return e==D.GuidEMpty}Load(){this.http.post("/api/ordersLoader/GetOrder",{}).subscribe(e=>{this.filter.PageNumber=e.Filter.PageNumber,this.filter.PageSize=e.Filter.RowCount,this.filter.From=e.Filter.From,this.filter.To=e.Filter.To,this.domain=`https://${this.localDataService.getHostName()}/menu/Orders/Orders/Customer_Invoice/Info?ID=`,this.Get()})}Get(e){var a={Number:e,PageNumber:this.filter.PageNumber,PageSize:this.filter.PageSize,ListChannelID:this.filter.ListChannelID,Note:this.filter.Note,From:this.filter.From,To:this.filter.To};this.http.post("api/orders/GetCancelled ",a).subscribe(t=>{this.data=t.Data,this.sourceData=[...t.Data],this.totaldata=this.data.length})}changePage(e){this.filter.PageNumber=e.pageIndex+1,this.Get()}StoreRowsCountAPIResult(){var e={PaymentState:"",DeliveryState:"",Bin:!0,ListChannelID:this.filter.ListChannelID,From:this.filter.From,To:this.filter.To};this.http.post("api/orders/GetRowCount",e).subscribe(a=>{this.paginationTotal=a.Total})}NextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.Get()}PreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.Get()}getChannelLogo(e){return D.getChannelLogoByTypeId(e)}onSort(e){if(e.direction==""){this.data=this.sourceData;return}if(e.active=="created"){let a=e.direction=="asc";this.data=this.data.sort((t,m)=>D.compare(t.Created,m.Created,a))}}static{this.\u0275fac=function(a){return new(a||r)(T(W),T(pe),T(Q))}}static{this.\u0275cmp=L({type:r,selectors:[["app-cancelled"]],standalone:!1,decls:38,vars:11,consts:[["EMPTY_STATE",""],["headerTitle","99 - Cancelled","searchBoxPlaceHolder","Search ...",3,"onSubmit"],["href","https://ods.dealpos.app","target","_blank",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","me-3"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","multiple","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[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"],["type","text","name","Note",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],["matSort","",1,"table","table-hover",3,"matSortChange"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","120px"],[2,"width","220px"],[2,"width","100px"],["mat-sort-header","created",2,"width","130px"],[2,"width","130px"],[4,"ngFor","ngForOf"],[3,"total","next","previous","filter","totaldata","paginationTotal"],[3,"routerLink","queryParams",4,"ngIf"],["target","_blank",3,"href",4,"ngIf"],[3,"typeId"],[3,"routerLink","queryParams"],["target","_blank",3,"href"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(a,t){if(a&1){let m=N();i(0,"mainpanel",1),v("onSubmit",function(p){return g(m),_(t.Get(p))}),i(1,"actions")(2,"a",2),S(3,"i",3),i(4,"span"),l(5,"Visit our Fulfillment Display System"),n()()(),i(6,"filters")(7,"div")(8,"label",4),l(9,"Channel"),n(),i(10,"ng-select",5),b("ngModelChange",function(p){return g(m),y(t.filter.ListChannelID,p)||(t.filter.ListChannelID=p),_(p)}),u(11,Fi,3,3,"ng-template",6),n()(),i(12,"div",7)(13,"label",8),l(14,"Page Number"),n(),i(15,"input",9),b("ngModelChange",function(p){return g(m),y(t.filter.PageNumber,p)||(t.filter.PageNumber=p),_(p)}),n()(),i(16,"div",7)(17,"label",8),l(18,"Page Size"),n(),i(19,"input",10),b("ngModelChange",function(p){return g(m),y(t.filter.PageSize,p)||(t.filter.PageSize=p),_(p)}),n()(),i(20,"div",7)(21,"label",8),l(22,"Note"),n(),i(23,"input",11),b("ngModelChange",function(p){return g(m),y(t.filter.Note,p)||(t.filter.Note=p),_(p)}),n()(),i(24,"div",7)(25,"label",12),l(26,"From/To"),n(),i(27,"div",13)(28,"datepicker",14),b("dateChange",function(p){return g(m),y(t.filter.From,p)||(t.filter.From=p),_(p)}),n()(),i(29,"div")(30,"datepicker",15),b("dateChange",function(p){return g(m),y(t.filter.To,p)||(t.filter.To=p),_(p)}),n()()()(),i(31,"content")(32,"div",16)(33,"div",17)(34,"div",18),u(35,zi,20,4,"ng-container",19)(36,Gi,2,0,"ng-template",null,0,H),n()()()()()}if(a&2){let m=j(37);o(10),d("clearable",!0)("multiple",!0)("items",t.channelOptions),C("ngModel",t.filter.ListChannelID),o(5),C("ngModel",t.filter.PageNumber),o(4),C("ngModel",t.filter.PageSize),o(4),C("ngModel",t.filter.Note),o(5),C("date",t.filter.From),o(2),C("date",t.filter.To),o(5),d("ngIf",t.data&&t.data.length>0)("ngIfElse",m)}},dependencies:[A,F,Y,X,J,K,B,q,ee,Z,$,z,ne,re,te,ie,G,R,V],encapsulation:2})}}return r})();var ji=[{path:"",component:ht,children:[{path:"",redirectTo:"new",pathMatch:"full"},{path:"new",component:ut,canActivate:[ae],data:{title:"New Order"}},{path:"detail",component:ft,canActivate:[ae],data:{title:"Orders detail"}},{path:"ready_to_ship",component:Ct,canActivate:[ae],data:{title:"Ready To Ship"}},{path:"Shipped",component:yt,canActivate:[ae],data:{title:"Shipped"}},{path:"Delivered",component:bt,canActivate:[ae],data:{title:"Delivered"}},{path:"All",component:xt,canActivate:[ae],data:{title:"All Order"}},{path:"Cancelled",component:vt,canActivate:[ae],data:{title:"Cancelled"}},{path:"Download",loadComponent(){return import("./chunk-S25SHAFH.js").then(r=>r.DownloadV2Component)},canActivate:[ae],data:{title:"Download"}},{path:"Download_Order_Log",loadComponent:()=>import("./chunk-PAMSUURJ.js").then(r=>r.DownloadOrderLogComponent),canActivate:[ae],data:{title:"Download Order Log"}},{path:"Download_Order_Log/Detail",loadComponent:()=>import("./chunk-UBXKO4QI.js").then(r=>r.DownloadOrderDetailComponent),canActivate:[ae],data:{title:"Download Order Log Detail"}}]}],Tt=(()=>{class r{static{this.\u0275fac=function(a){return new(a||r)}}static{this.\u0275mod=Ne({type:r})}static{this.\u0275inj=Ie({imports:[ce,De.forChild(ji)]})}}return r})();var Dr=(()=>{class r{static{this.\u0275fac=function(a){return new(a||r)}}static{this.\u0275mod=Ne({type:r})}static{this.\u0275inj=Ie({providers:[ke,Ae,Ve],imports:[ce,Je,Tt,it,nt,st,De,Ze,mt,lt,z,ct,et,at,gt,$e,pt,rt,G,Re,_t,ot,Qe]})}}return r})();export{Dr as OrdersModule};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as me,b as de,c as se}from"./chunk-V5BKQSAT.js";import{a as ue,b as T}from"./chunk-7YA3MQOI.js";import{a as pe}from"./chunk-2ODVHD2K.js";import{a as ae}from"./chunk-EPVCMYCI.js";import"./chunk-DL66NZ2A.js";import"./chunk-L3FX4O3H.js";import"./chunk-PNITO7BE.js";import"./chunk-E4KNET2R.js";import"./chunk-74IXJYWO.js";import"./chunk-GIRXMYNI.js";import"./chunk-IIZDEGGW.js";import"./chunk-AQTXFEBA.js";import"./chunk-SDUUFQUI.js";import"./chunk-5OHRA4AS.js";import"./chunk-IL5JIRWJ.js";import"./chunk-MH4SJTQX.js";import"./chunk-3RK6DDJD.js";import"./chunk-CUB2QFUO.js";import"./chunk-KALG6D6L.js";import"./chunk-CMTBBXR5.js";import{a as le}from"./chunk-WMFWJNS5.js";import{a as oe}from"./chunk-D6URDVES.js";import"./chunk-ZKZ5DIIR.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-AEOSNAHH.js";import"./chunk-TGMCGROM.js";import"./chunk-OWQ3RWNF.js";import"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import"./chunk-5JVEEL2T.js";import"./chunk-PW42BQIY.js";import{m as ne,n as re}from"./chunk-UGVEAL7H.js";import{A as ee,c as X,h as Y,m as Z,o as $}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-SWQXSJ7O.js";import{r as te,s as ie}from"./chunk-IHNN4Q2N.js";import"./chunk-EQIFZBRG.js";import{j as G,k as J,m as K,n as Q}from"./chunk-M2FCTYGU.js";import{$c as w,Gb as W,Gc as l,Hc as v,Ic as b,Kc as h,Lc as f,Mb as y,Mc as g,Nc as z,Oc as A,Pc as R,Qc as H,Ra as N,Rc as j,Sc as U,Yb as u,ac as I,ad as E,bd as q,dc as x,ec as D,gc as B,hc as k,ic as t,jc as i,kc as c,oc as V,pa as O,pb as F,rb as a,tc as M,uc as _,ya as m,za as d}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as P,b as L}from"./chunk-66YHNWRR.js";var ce=()=>[],_e=r=>({"td-cell-hover":r});function he(r,S){if(r&1&&c(0,"variants-dropdown",29),r&2){let e=_().$implicit;u("variants",e==null?null:e.Variants)}}function fe(r,S){if(r&1&&c(0,"variant-with-image",30),r&2){let e=_().$implicit;u("variant",e==null?null:e.Variants[0])}}function ge(r,S){if(r&1&&(t(0,"span"),l(1),i()),r&2){let e=_().$implicit;a(),b("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Se(r,S){if(r&1&&(t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"div",25)(5,"div",26)(6,"div"),c(7,"img",27),w(8,"channelImage"),i(),t(9,"div"),c(10,"order-link",28),i()(),t(11,"small"),l(12),w(13,"date"),i()()(),t(14,"td"),l(15),i(),t(16,"td"),y(17,he,1,1,"variants-dropdown",29)(18,fe,1,1,"variant-with-image",30),i(),t(19,"td",31),l(20),w(21,"number"),i(),t(22,"td")(23,"div",25)(24,"div",26)(25,"span"),l(26),i(),y(27,ge,2,1,"span"),i(),t(28,"small"),l(29),i()()()()),r&2){let e=S.$implicit;a(2),v(e.Outlet),a(5),u("src",E(8,13,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(3),u("order",e),a(2),b(" ",q(13,15,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(3),v(e.Customer),a(),I(U(20,_e,(e.Variants==null?null:e.Variants.length)>1)),a(),x((e.Variants==null?null:e.Variants.length)>1?17:18),a(3),v(E(21,18,e.Amount)),a(6),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),x(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?27:-1),a(2),b(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function Ce(r,S){if(r&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()()(),t(16,"tbody"),B(17,Se,30,22,"tr",null,D),i()(),t(19,"app-custom-paginator",24),M("next",function(){m(e);let n=_();return d(n.initShippedOrders())})("previous",function(){m(e);let n=_();return d(n.initShippedOrders())}),i()()}if(r&2){let e=_(),p=R(0);a(17),k(p),a(2),u("filter",e.filter())("totaldata",p==null?null:p.length)}}function ve(r,S){r&1&&(t(0,"div",16),c(1,"app-empty-state"),i())}var He=(()=>{class r{constructor(){this.orderService=O(T),this.filter=N({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){let e=this.orderService.getOrderDefaultValue();this.filter.update(p=>L(P({},p),{From:e})),this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.orderService.getShippedOrders(this.filter())}static{this.\u0275fac=function(p){return new(p||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-shipped"]],features:[H([T])],decls:34,vars:12,consts:[["headerTitle","Shipped","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"],["rowCountApi","/api/orders/shippedcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","12px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(p,n){if(p&1){let s=V();z(0),w(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return m(s),d(n.initShippedOrders())}),g("textChange",function(o){return m(s),f(n.filter().Number,o)||(n.filter().Number=o),d(o)}),t(3,"actions")(4,"a",1),c(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),g("ngModelChange",function(o){return m(s),f(n.filter().ListChannelID,o)||(n.filter().ListChannelID=o),d(o)}),i()(),t(13,"div",5)(14,"label",3),l(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),g("dateChange",function(o){return m(s),f(n.filter().From,o)||(n.filter().From=o),d(o)}),i()(),t(18,"div")(19,"datepicker",8),g("dateChange",function(o){return m(s),f(n.filter().To,o)||(n.filter().To=o),d(o)}),i()()(),t(20,"div",5)(21,"label",9),l(22,"Page Number"),i(),t(23,"input",10),g("ngModelChange",function(o){return m(s),f(n.filter().PageNumber,o)||(n.filter().PageNumber=o),d(o)}),i()(),t(24,"div",5)(25,"label",9),l(26,"Page Size"),i(),t(27,"input",11),g("ngModelChange",function(o){return m(s),f(n.filter().PageSize,o)||(n.filter().PageSize=o),d(o)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,Ce,20,2,"div",15)(33,ve,2,0,"div",16),i()()()()()}if(p&2){let s=A(E(1,8,n.shippedOrders$)||j(11,ce));a(2),h("text",n.filter().Number),a(10),u("multiple",!0),h("ngModel",n.filter().ListChannelID),a(5),h("date",n.filter().From),a(2),h("date",n.filter().To),a(4),h("ngModel",n.filter().PageNumber),a(4),h("ngModel",n.filter().PageSize),a(5),x(s.length>0?32:33)}},dependencies:[Q,G,K,J,re,ne,ae,oe,ee,X,$,Y,Z,me,de,se,pe,le,ie,te,ue],encapsulation:2})}}return r})();export{He as ShippedComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as f}from"./chunk-PW42BQIY.js";import{b as x,c as E,j as I,k as K}from"./chunk-UGVEAL7H.js";import{r as T}from"./chunk-IHNN4Q2N.js";import{d as V}from"./chunk-M2FCTYGU.js";import{Gb as b,Gc as m,Hc as h,Ra as _,Sc as S,Yb as p,ec as O,gc as v,hc as P,ic as o,jc as l,rb as d,tc as y,xb as g}from"./chunk-B7KTCPKC.js";var N=i=>({"bg-gradient-warning":i});function D(i,U){if(i&1&&(o(0,"tr",5)(1,"td"),m(2),l(),o(3,"td",6),m(4),l()()),i&2){let t=U.$implicit;p("matTooltip",t.duplicateMessage),d(2),h(t==null?null:t.Name),d(),p("ngClass",S(4,N,t.isDuplicate)),d(),h(t!=null&&t.ChannelVariationSKU?t==null?null:t.ChannelVariationSKU:"Not Assigned")}}var z=(()=>{class i{constructor(t,e){this.data=t,this.dialogRef=e,this.variants=_([])}ngOnInit(){this.initModalConfig(),this.initVariants()}initVariants(){let t=this.data?.variants,e={},a=[],C=t.filter(n=>f.IsEmpty(n.ChannelVariationSKU));t.filter(n=>f.IsNotEmpty(n.ChannelVariationSKU)).forEach((n,r,M)=>{e[n.ChannelVariationSKU]=M.filter(s=>s.ChannelVariationSKU===n.ChannelVariationSKU)}),Object.keys(e).forEach(n=>{e[n].length>1&&(e[n]=e[n].map((r,M,s)=>{let u=`SKU ${r.ChannelVariationSKU} is duplicated with variant`;return s.forEach((c,k)=>{c.Name!==r.Name&&(u+=` ${s.length>2?c.Name+(k!==s.length-1?",":""):c.Name}`)}),r.duplicateMessage=u,r.isDuplicate=!0,r})),a.push(...e[n])}),a.push(...C),this.variants.set(a)}initModalConfig(){this.modalConfig=new I,this.modalConfig.title=this.data?.title,this.modalConfig.hideOk=!0,this.modalConfig.hideCancel=!0,this.modalConfig.bodyScrollable=!0}static{this.\u0275fac=function(e){return new(e||i)(g(E),g(x))}}static{this.\u0275cmp=b({type:i,selectors:[["app-modal-variants"]],standalone:!1,decls:12,vars:1,consts:[[3,"onCancel","config"],["content",""],[1,"table"],[1,"sticky-top-thead","variant-modal"],[1,"sticky-top"],["matTooltipPosition","above",3,"matTooltip"],[3,"ngClass"]],template:function(e,a){e&1&&(o(0,"modal-material",0),y("onCancel",function(){return a.dialogRef.close()}),o(1,"div",1)(2,"table",2)(3,"thead",3)(4,"tr")(5,"th",4),m(6,"Variant"),l(),o(7,"th",4),m(8,"SKU"),l()()(),o(9,"tbody"),v(10,D,5,6,"tr",5,O),l()()()()),e&2&&(p("config",a.modalConfig),d(10),P(a.variants()))},dependencies:[V,T,K],styles:[".mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.sticky-top-thead[_ngcontent-%COMP%] th.sticky-top[_ngcontent-%COMP%]{top:0}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr.sticky-top[_ngcontent-%COMP%]{border:none!important;border-bottom:1px solid!important}table[_ngcontent-%COMP%] > thead[_ngcontent-%COMP%] > tr[_ngcontent-%COMP%]{border-top:none!important;border-left:none!important;border-right:none!important}.table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f6f6f6!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:last-child:after{border-right:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:first-child:before{border-left:0px!important}.sticky-top-thead.variant-modal[_ngcontent-%COMP%] th[_ngcontent-%COMP%]:before{border-top:0px}"]})}}return i})();export{z as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=(()=>{class t{static{this.SubmitConfig="/api/Channel/SubmitConfig"}static{this.PosAccountTest="/api/POSAccount/Test"}static{this.PosAccountRemove="/api/POSAccount/Remove"}static{this.PosAccountGetConfig="/api/ChannelLoader/GetConfig"}static{this.ChannelGetLastSyncByID="/api/Channel/GetLastSyncByID"}static{this.GetChannel="/api/Channel/GetChannel"}static{this.GetChannelLoader="/api/ChannelLoader/GetChannelLoader"}static{this.TestShopID="/api/Channel/TestShopID"}static{this.UpdateChannelIndex="/api/Channel/UpdateChannelIndex"}static{this.DeleteChannel="/api/Channel/DeleteChannel"}static{this.GetRegisterByOutletName="/api/Channel/GetRegistersByOutletOrder"}static{this.GetChannelRowCount="/api/Channel/GetCountChannel"}static{this.GetChannelWarehouse="/api/Channel/GetChannelWarehouseLocation"}static{this.UnSynchronizedWarehouse="/api/Channel/UnSynchronizedWarehouse"}static{this.GetChannelDetail="/api/ChannelLoader/GetChannelView"}static{this.GetOrderPreview="/api/Orders/Preview"}static{this.GetOrderPreviewV2="/api/Orders/PreviewV2"}static{this.GetDownloadOrder="/api/Orders/Download"}static{this.GetDownloadOrderV2="/api/Orders/DownloadV2"}static{this.ShopeeV2_URL="/api/ChannelAuthorization/ShopeeV2_URL"}static{this.Tiktok_URL="/api/ChannelAuthorization/Tiktok_URL"}static{this.Lazada_URL="/api/ChannelAuthorization/Lazada_URL"}static{this.AddTokopedia="/api/ChannelAdd/Tokopedia"}static{this.AddShopify="/api/ChannelAdd/AddShopify"}static{this.AddWoocommerce="/api/ChannelAdd/AddWooCommerce"}static{this.AddPlugo="/api/ChannelAdd/Plugo"}static{this.UploadPlugoProduct="/api/product/plugo/AddProduct"}static{this.RefreshToken="/api/RefreshToken"}static{this.RefreshInventory="/api/Inventory/RefreshInventory"}static{this.GetToShip="/api/orders/toship"}static{this.GetShipped="/api/orders/shipped"}static{this.GetCompleted="/api/orders/completed"}static{this.GetAll="/api/orders/all"}static{this.GetCancelled="/api/orders/GetCancelled"}static{this.GetAwaitingCollection="/api/orders/AwaitingCollection"}static{this.GetShopeeShippingOptions="/api/v1/shipping/shopee/OptionShip"}static{this.ShopeeSelectShipping="/api/v1/shipping/shopee/SelectShip"}static{this.GetTiktokShippingOptions="/api/v1/shipping/tiktok/OptionShip"}static{this.TiktokSelectShipping="/api/v1/shipping/tiktok/SelectShip"}static{this.GetOrderApiLog="/api/Orders/GetOrderDetailByChannel"}static{this.GetUserLoader="/api/userloader/List"}static{this.GetUsers="/api/user/list"}static{this.GetLoaderForm="/api/userloader/Form"}static{this.UpdateUser="/api/user/Submit"}static{this.DeleteUsers="/api/user/Delete"}static{this.MyProfile="/api/user/myprofile"}static{this.MigrateUsers="/api/user/migrate"}static{this.MigrateLoader="/api/userloader/Migrate"}static{this.GetGroups="/api/UserGroup/list"}static{this.GetGroupsLoader="/api/UserGroupLoader/list"}static{this.GetGroupFormLoader="/api/UserGrouploader/Form"}static{this.SubmitGroup="/api/userGroup/AssignRole"}static{this.DeleteGroups="/api/userGroup/Delete"}static{this.GetEscrowDetail="/api/Orders/GetEscrowDetail"}static{this.DetachVariant="/api/product/DetachVariant"}static{this.GetProductApiLog="/api/Product/GetProductDetailBySKU"}static{this.ScanSyncProductV2="/api/v2/ProductScan/SyncProduct"}static{this.ScanAsyncProductV2="/api/v2/ProductScan/AsyncProduct"}static{this.GetLastInfoDownloadInventory="/api/Inventory/GetOrderDownloadLatestOn"}static{this.UpdateInventoryChannel="/api/Inventory/UpdateChannel"}static{this.GetJobScanList="/api/notification/GetJobScanV2"}static{this.GetJobScanDetail="/api/notification/GetJobScanV2ByID"}static{this.UpdateChannelInventory="/api/Inventory/UpdateChannel"}static{this.GetMultiListingSKU="/api/product/GetMultiListingSKU"}static{this.UpdateUpdateQuantityByItem="/api/Inventory/UpdateQuantityByItem"}static{this.UpdatePriceById="/api/Price/UpdatePriceByID"}}return t})();export{e as a};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as R}from"./chunk-YM4TJJMM.js";import{b as V,c as A,j as D,k as P}from"./chunk-UGVEAL7H.js";import{h as U,m as b}from"./chunk-6QYD6NIJ.js";import{Gb as f,Gc as g,Hc as k,Kc as I,Lc as O,Mb as u,Mc as T,Yb as c,dc as M,ec as y,gc as w,hc as v,ic as l,jc as r,kc as S,oc as p,pb as _,rb as a,tc as h,uc as x,xb as m,ya as s,za as d}from"./chunk-B7KTCPKC.js";function j(o,C){if(o&1){let e=p();l(0,"span")(1,"mat-checkbox",4),h("change",function(t){s(e);let i=x();return d(i.onSelectAll(t==null?null:t.checked))}),l(2,"h5",5),g(3,"Select All"),r()()()}}function E(o,C){if(o&1){let e=p();l(0,"li")(1,"mat-checkbox",6),T("ngModelChange",function(t){let i=s(e).$implicit;return O(i.selected,t)||(i.selected=t),d(t)}),l(2,"div",7),S(3,"img",8),l(4,"h5",9),g(5),r()()()()}if(o&2){let e=C.$implicit;a(),I("ngModel",e.selected),a(2),c("src",e.Img,_),a(2),k(e.Name)}}var q=(()=>{class o{constructor(e,n){this.data=e,this.dialogRef=n,this.selectedItems=this.data.selectedItems,this.channels=this.data.channels}ngOnInit(){this.initModalConfig()}initModalConfig(){let e=this.data.title?this.data.title:"Updating Inventory";this.modalConfig=new D,this.modalConfig.title=e}onSelectAll(e){this.channels=this.channels.map(n=>(n.selected=e,n))}onOk(){this.dialogRef.close(this.channels)}onClose(){this.dialogRef.close()}getSelectedChannel(){return this.channels.filter(e=>e.selected)}static{this.\u0275fac=function(n){return new(n||o)(m(A),m(V))}}static{this.\u0275cmp=f({type:o,selectors:[["app-modal-update-channels"]],standalone:!1,decls:7,vars:3,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[2,"overflow-y","auto","max-height","28rem"],[1,"no-bullet",2,"margin-bottom","0px !important","overflow","hidden"],["color","primary",1,"me-6",3,"change"],[1,"fw-light"],["color","primary",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src"],[1,"fw-light","ms-2","my-auto"]],template:function(n,t){if(n&1&&(l(0,"modal-material",0),h("onOk",function(){return t.onOk()})("onClose",function(){return t.onClose()})("onCancel",function(){return t.onClose()}),l(1,"div",1)(2,"div",2),u(3,j,4,0,"span"),l(4,"ul",3),w(5,E,6,3,"li",null,y),r()()()()),n&2){let i;c("dynamicValidated",((i=t.getSelectedChannel())==null?null:i.length)>0)("config",t.modalConfig),a(3),M((t.channels==null?null:t.channels.length)>1?3:-1),a(2),v(t.channels)}},dependencies:[U,b,R,P],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]})}}return o})();export{q as a};
|