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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as de,b as pe,c as se}from"./chunk-UHJEXTOG.js";import{a as ue}from"./chunk-7WG7VRYR.js";import{a as A}from"./chunk-EOLVRL5H.js";import{a as ce}from"./chunk-PFXOFSJG.js";import{a as ae}from"./chunk-OLANEXLB.js";import"./chunk-BQIB3N6V.js";import"./chunk-B67DSLBY.js";import"./chunk-6RLISMEX.js";import"./chunk-TH6VZX34.js";import"./chunk-QS22J2SC.js";import"./chunk-QP4C4R4W.js";import"./chunk-5LQRO4AI.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-WLRPCY65.js";import"./chunk-3RK6DDJD.js";import"./chunk-3UN6FPMN.js";import"./chunk-LDPDLCRL.js";import"./chunk-JVNHFIYT.js";import{a as me}from"./chunk-QNM4JQ46.js";import"./chunk-3YP6ORBR.js";import{a as oe}from"./chunk-UXPULNCR.js";import"./chunk-NFN7BQB3.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import"./chunk-MW6Q6DZF.js";import"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import"./chunk-PYXL7UF7.js";import"./chunk-PW42BQIY.js";import{m as re,n as le}from"./chunk-FO7G4GMY.js";import{A as te,c as Y,h as Z,m as $,o as ee}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as ie,s as ne}from"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{j as J,k as K,m as Q,n as X}from"./chunk-FXQKRJWU.js";import{$c as v,Gb as W,Gc as a,Hc as x,Ic as b,Kc as f,Lc as g,Mb as w,Mc as C,Nc as z,Oc as R,Pc as H,Qc as j,Ra as O,Rc as U,Sc as q,Yb as c,Z as L,ac as I,ad as V,bd as G,dc as y,ec as D,gc as B,hc as k,ic as t,jc as i,kc as u,oc as E,pa as N,pb as F,rb as o,tc as M,uc as _,ya as p,za as s}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as T,b as P}from"./chunk-66YHNWRR.js";var _e=()=>[],fe=r=>({"td-cell-hover":r});function ge(r,h){if(r&1&&u(0,"variants-dropdown",27),r&2){let e=_().$implicit;c("variants",e==null?null:e.Variants)}}function Ce(r,h){if(r&1&&u(0,"variant-with-image",28),r&2){let e=_().$implicit;c("variant",e==null?null:e.Variants[0])}}function he(r,h){if(r&1&&(t(0,"span"),a(1),i()),r&2){let e=_().$implicit;o(),b("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Se(r,h){if(r&1&&(t(0,"tr")(1,"td")(2,"div",23)(3,"div",24)(4,"div"),u(5,"img",25),v(6,"channelImage"),i(),t(7,"div"),u(8,"order-link",26),i()(),t(9,"small"),a(10),v(11,"date"),i()()(),t(12,"td"),a(13),i(),t(14,"td"),w(15,ge,1,1,"variants-dropdown",27)(16,Ce,1,1,"variant-with-image",28),i(),t(17,"td"),a(18),v(19,"number"),i(),t(20,"td")(21,"div",23)(22,"div",24)(23,"span"),a(24),i(),w(25,he,2,1,"span"),i(),t(26,"small"),a(27),i()()()()),r&2){let e=h.$implicit;o(5),c("src",V(6,12,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),o(3),c("order",e),o(2),b(" ",G(11,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),o(3),x(e.Customer),o(),I(q(19,fe,(e.Variants==null?null:e.Variants.length)>1)),o(),y((e.Variants==null?null:e.Variants.length)>1?15:16),o(3),x(V(19,17,e.Amount)),o(6),x(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),o(),y(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1),o(2),b(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function ve(r,h){if(r&1){let e=E();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Number"),i(),t(6,"th",20),a(7,"Customer"),i(),t(8,"th"),a(9,"Items"),i(),t(10,"th",21),a(11,"Amount"),i(),t(12,"th",21),a(13,"Shipping"),i()()(),t(14,"tbody"),B(15,Se,28,21,"tr",null,D),i()(),t(17,"app-custom-paginator",22),M("next",function(){p(e);let n=_();return s(n.initAllOrders())})("previous",function(){p(e);let n=_();return s(n.initAllOrders())}),i()()}if(r&2){let e=_(),m=H(0);o(15),k(m),o(2),c("filter",e.filter())("totaldata",m==null?null:m.length)}}function we(r,h){r&1&&(t(0,"div",16),u(1,"app-empty-state"),i())}var Ue=(()=>{class r{constructor(){this.orderService=N(A),this.filter=O({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){let e=this.orderService.getOrderDefaultValue();this.filter.update(m=>P(T({},m),{From:e})),this.initAllOrders()}initAllOrders(){this.allOrders$=this.orderService.getAllOrders(this.filter()).pipe(L(1))}static{this.\u0275fac=function(m){return new(m||r)}}static{this.\u0275cmp=W({type:r,selectors:[["app-all"]],features:[j([A])],decls:34,vars:12,consts:[["headerTitle","Completed","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-solid","fa-clipboard-list","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","250px"],[2,"width","150px"],["rowCountApi","/api/orders/allcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[3,"order"],[3,"variants"],[3,"variant"]],template:function(m,n){if(m&1){let d=E();z(0),v(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return p(d),s(n.initAllOrders())}),C("textChange",function(l){return p(d),g(n.filter().Number,l)||(n.filter().Number=l),s(l)}),t(3,"actions")(4,"a",1),u(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"From/To"),i(),t(12,"channel-select-options",4),C("ngModelChange",function(l){return p(d),g(n.filter().ListChannelID,l)||(n.filter().ListChannelID=l),s(l)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),C("dateChange",function(l){return p(d),g(n.filter().From,l)||(n.filter().From=l),s(l)}),i()(),t(18,"div")(19,"datepicker",8),C("dateChange",function(l){return p(d),g(n.filter().To,l)||(n.filter().To=l),s(l)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),C("ngModelChange",function(l){return p(d),g(n.filter().PageNumber,l)||(n.filter().PageNumber=l),s(l)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),C("ngModelChange",function(l){return p(d),g(n.filter().PageSize,l)||(n.filter().PageSize=l),s(l)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),w(32,ve,18,2,"div",15)(33,we,2,0,"div",16),i()()()()()}if(m&2){let d=R(V(1,8,n.allOrders$)||U(11,_e));o(2),f("text",n.filter().Number),o(10),c("multiple",!0),f("ngModel",n.filter().ListChannelID),o(5),f("date",n.filter().From),o(2),f("date",n.filter().To),o(4),f("ngModel",n.filter().PageNumber),o(4),f("ngModel",n.filter().PageSize),o(5),y((d==null?null:d.length)>0?32:33)}},dependencies:[X,J,Q,K,le,re,ae,oe,te,Y,ee,Z,$,de,pe,se,ce,me,ne,ie,ue],encapsulation:2})}}return r})();export{Ue as AllComponent};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as K,b as Q}from"./chunk-E4Z7OR75.js";import{c as J}from"./chunk-PNITO7BE.js";import{b as W,d as X}from"./chunk-E4KNET2R.js";import{f as q}from"./chunk-KALG6D6L.js";import{r as Y,s as Z}from"./chunk-IHNN4Q2N.js";import{C as H}from"./chunk-EQIFZBRG.js";import{Aa as h,Ba as F,Fc as j,Gb as E,Gc as x,Hb as R,Hc as $,Ic as y,Ka as A,Mb as f,Xb as m,Yb as p,dc as c,f as M,fc as N,gc as V,h as D,hc as G,ic as n,ja as O,jc as r,jd as U,ka as w,kc as v,ma as L,oc as z,od as I,pa as u,pd as P,qa as k,ra as B,rb as o,tc as d,uc as l,ya as _,za as b}from"./chunk-B7KTCPKC.js";function tt(i,g){if(i&1&&(n(0,"mat-option",17),x(1),r()),i&2){let t=g.$implicit;p("value",t),o(),y(" ",t," ")}}function et(i,g){if(i&1){let t=z();n(0,"mat-form-field",14)(1,"mat-select",16,0),d("selectionChange",function(e){_(t);let s=l(2);return b(s._changePageSize(e.value))}),V(3,tt,2,2,"mat-option",17,N),r(),n(5,"div",18),d("click",function(){_(t);let e=j(2);return b(e.open())}),r()()}if(i&2){let t=l(2);p("appearance",t._formFieldAppearance)("color",t.color),o(),p("value",t.pageSize)("disabled",t.disabled)("aria-labelledby",t._pageSizeLabelId)("panelClass",t.selectConfig.panelClass||"")("disableOptionCentering",t.selectConfig.disableOptionCentering),o(2),G(t._displayedPageSizeOptions)}}function it(i,g){if(i&1&&(n(0,"div",15),x(1),r()),i&2){let t=l(2);o(),$(t.pageSize)}}function at(i,g){if(i&1&&(n(0,"div",3)(1,"div",13),x(2),r(),f(3,et,6,7,"mat-form-field",14)(4,it,2,1,"div",15),r()),i&2){let t=l();o(),m("id",t._pageSizeLabelId),o(),y(" ",t._intl.itemsPerPageLabel," "),o(),c(t._displayedPageSizeOptions.length>1?3:-1),o(),c(t._displayedPageSizeOptions.length<=1?4:-1)}}function nt(i,g){if(i&1){let t=z();n(0,"button",19),d("click",function(){_(t);let e=l();return b(e._buttonClicked(0,e._previousButtonsDisabled()))}),h(),n(1,"svg",8),v(2,"path",20),r()()}if(i&2){let t=l();p("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("disabled",t._previousButtonsDisabled())("tabindex",t._previousButtonsDisabled()?-1:null),m("aria-label",t._intl.firstPageLabel)}}function ot(i,g){if(i&1){let t=z();n(0,"button",21),d("click",function(){_(t);let e=l();return b(e._buttonClicked(e.getNumberOfPages()-1,e._nextButtonsDisabled()))}),h(),n(1,"svg",8),v(2,"path",22),r()()}if(i&2){let t=l();p("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("disabled",t._nextButtonsDisabled())("tabindex",t._nextButtonsDisabled()?-1:null),m("aria-label",t._intl.lastPageLabel)}}var T=(()=>{class i{changes=new M;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(t,a,e)=>{if(e==0||a==0)return`0 of ${e}`;e=Math.max(e,0);let s=t*a,S=s<e?Math.min(s+a,e):s+a;return`${s+1} \u2013 ${S} of ${e}`};static \u0275fac=function(a){return new(a||i)};static \u0275prov=O({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function rt(i){return i||new T}var st={provide:T,deps:[[new k,new B,T]],useFactory:rt},lt=50;var pt=new L("MAT_PAGINATOR_DEFAULT_OPTIONS"),dt=(()=>{class i{_intl=u(T);_changeDetectorRef=u(U);_formFieldAppearance;_pageSizeLabelId=u(H).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new D(1);color;get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(a=>P(a,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new A;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let t=this._intl,a=u(pt,{optional:!0});if(this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),a){let{pageSize:e,pageSizeOptions:s,hidePageSize:S,showFirstLastButtons:C}=a;e!=null&&(this._pageSize=e),s!=null&&(this._pageSizeOptions=s),S!=null&&(this.hidePageSize=S),C!=null&&(this.showFirstLastButtons=C)}this._formFieldAppearance=a?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndex<t&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){let a=this.pageIndex*this.pageSize,e=this.pageIndex;this.pageIndex=Math.floor(a/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:lt),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,a)=>t-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(t){let a=this.pageIndex;t!==a&&(this.pageIndex=t,this._emitPageEvent(a))}_buttonClicked(t,a){a||this._navigate(t)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=E({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",P],length:[2,"length","length",P],pageSize:[2,"pageSize","pageSize",P],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",I],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",I],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",I]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,e){a&1&&(n(0,"div",1)(1,"div",2),f(2,at,5,4,"div",3),n(3,"div",4)(4,"div",5),x(5),r(),f(6,nt,3,5,"button",6),n(7,"button",7),d("click",function(){return e._buttonClicked(e.pageIndex-1,e._previousButtonsDisabled())}),h(),n(8,"svg",8),v(9,"path",9),r()(),F(),n(10,"button",10),d("click",function(){return e._buttonClicked(e.pageIndex+1,e._nextButtonsDisabled())}),h(),n(11,"svg",8),v(12,"path",11),r()(),f(13,ot,3,5,"button",12),r()()()),a&2&&(o(2),c(e.hidePageSize?-1:2),o(3),y(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),o(),c(e.showFirstLastButtons?6:-1),o(),p("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),m("aria-label",e._intl.previousPageLabel),o(3),p("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),m("aria-label",e._intl.nextPageLabel),o(3),c(e.showFirstLastButtons?13:-1))},dependencies:[q,K,J,W,Y],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}
|
|
1
|
+
import{a as K,b as Q}from"./chunk-4KHHGHFJ.js";import{c as J}from"./chunk-6RLISMEX.js";import{b as W,d as X}from"./chunk-TH6VZX34.js";import{f as q}from"./chunk-LDPDLCRL.js";import{r as Y,s as Z}from"./chunk-NNRBGHXB.js";import{C as H}from"./chunk-BJUPMCEP.js";import{Aa as h,Ba as F,Fc as j,Gb as E,Gc as x,Hb as R,Hc as $,Ic as y,Ka as A,Mb as f,Xb as m,Yb as p,dc as c,f as M,fc as N,gc as V,h as D,hc as G,ic as n,ja as O,jc as r,jd as U,ka as w,kc as v,ma as L,oc as z,od as I,pa as u,pd as P,qa as k,ra as B,rb as o,tc as d,uc as l,ya as _,za as b}from"./chunk-OJMQBH6T.js";function tt(i,g){if(i&1&&(n(0,"mat-option",17),x(1),r()),i&2){let t=g.$implicit;p("value",t),o(),y(" ",t," ")}}function et(i,g){if(i&1){let t=z();n(0,"mat-form-field",14)(1,"mat-select",16,0),d("selectionChange",function(e){_(t);let s=l(2);return b(s._changePageSize(e.value))}),V(3,tt,2,2,"mat-option",17,N),r(),n(5,"div",18),d("click",function(){_(t);let e=j(2);return b(e.open())}),r()()}if(i&2){let t=l(2);p("appearance",t._formFieldAppearance)("color",t.color),o(),p("value",t.pageSize)("disabled",t.disabled)("aria-labelledby",t._pageSizeLabelId)("panelClass",t.selectConfig.panelClass||"")("disableOptionCentering",t.selectConfig.disableOptionCentering),o(2),G(t._displayedPageSizeOptions)}}function it(i,g){if(i&1&&(n(0,"div",15),x(1),r()),i&2){let t=l(2);o(),$(t.pageSize)}}function at(i,g){if(i&1&&(n(0,"div",3)(1,"div",13),x(2),r(),f(3,et,6,7,"mat-form-field",14)(4,it,2,1,"div",15),r()),i&2){let t=l();o(),m("id",t._pageSizeLabelId),o(),y(" ",t._intl.itemsPerPageLabel," "),o(),c(t._displayedPageSizeOptions.length>1?3:-1),o(),c(t._displayedPageSizeOptions.length<=1?4:-1)}}function nt(i,g){if(i&1){let t=z();n(0,"button",19),d("click",function(){_(t);let e=l();return b(e._buttonClicked(0,e._previousButtonsDisabled()))}),h(),n(1,"svg",8),v(2,"path",20),r()()}if(i&2){let t=l();p("matTooltip",t._intl.firstPageLabel)("matTooltipDisabled",t._previousButtonsDisabled())("disabled",t._previousButtonsDisabled())("tabindex",t._previousButtonsDisabled()?-1:null),m("aria-label",t._intl.firstPageLabel)}}function ot(i,g){if(i&1){let t=z();n(0,"button",21),d("click",function(){_(t);let e=l();return b(e._buttonClicked(e.getNumberOfPages()-1,e._nextButtonsDisabled()))}),h(),n(1,"svg",8),v(2,"path",22),r()()}if(i&2){let t=l();p("matTooltip",t._intl.lastPageLabel)("matTooltipDisabled",t._nextButtonsDisabled())("disabled",t._nextButtonsDisabled())("tabindex",t._nextButtonsDisabled()?-1:null),m("aria-label",t._intl.lastPageLabel)}}var T=(()=>{class i{changes=new M;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(t,a,e)=>{if(e==0||a==0)return`0 of ${e}`;e=Math.max(e,0);let s=t*a,S=s<e?Math.min(s+a,e):s+a;return`${s+1} \u2013 ${S} of ${e}`};static \u0275fac=function(a){return new(a||i)};static \u0275prov=O({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function rt(i){return i||new T}var st={provide:T,deps:[[new k,new B,T]],useFactory:rt},lt=50;var pt=new L("MAT_PAGINATOR_DEFAULT_OPTIONS"),dt=(()=>{class i{_intl=u(T);_changeDetectorRef=u(U);_formFieldAppearance;_pageSizeLabelId=u(H).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new D(1);color;get pageIndex(){return this._pageIndex}set pageIndex(t){this._pageIndex=Math.max(t||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(t){this._length=t||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(t){this._pageSize=Math.max(t||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(t){this._pageSizeOptions=(t||[]).map(a=>P(a,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new A;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let t=this._intl,a=u(pt,{optional:!0});if(this._intlChanges=t.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),a){let{pageSize:e,pageSizeOptions:s,hidePageSize:S,showFirstLastButtons:C}=a;e!=null&&(this._pageSize=e),s!=null&&(this._pageSizeOptions=s),S!=null&&(this.hidePageSize=S),C!=null&&(this.showFirstLastButtons=C)}this._formFieldAppearance=a?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let t=this.getNumberOfPages()-1;return this.pageIndex<t&&this.pageSize!=0}getNumberOfPages(){return this.pageSize?Math.ceil(this.length/this.pageSize):0}_changePageSize(t){let a=this.pageIndex*this.pageSize,e=this.pageIndex;this.pageIndex=Math.floor(a/t)||0,this.pageSize=t,this._emitPageEvent(e)}_nextButtonsDisabled(){return this.disabled||!this.hasNextPage()}_previousButtonsDisabled(){return this.disabled||!this.hasPreviousPage()}_updateDisplayedPageSizeOptions(){this._isInitialized&&(this.pageSize||(this._pageSize=this.pageSizeOptions.length!=0?this.pageSizeOptions[0]:lt),this._displayedPageSizeOptions=this.pageSizeOptions.slice(),this._displayedPageSizeOptions.indexOf(this.pageSize)===-1&&this._displayedPageSizeOptions.push(this.pageSize),this._displayedPageSizeOptions.sort((t,a)=>t-a),this._changeDetectorRef.markForCheck())}_emitPageEvent(t){this.page.emit({previousPageIndex:t,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(t){let a=this.pageIndex;t!==a&&(this.pageIndex=t,this._emitPageEvent(a))}_buttonClicked(t,a){a||this._navigate(t)}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=E({type:i,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",P],length:[2,"length","length",P],pageSize:[2,"pageSize","pageSize",P],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",I],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",I],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",I]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["mat-icon-button","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(a,e){a&1&&(n(0,"div",1)(1,"div",2),f(2,at,5,4,"div",3),n(3,"div",4)(4,"div",5),x(5),r(),f(6,nt,3,5,"button",6),n(7,"button",7),d("click",function(){return e._buttonClicked(e.pageIndex-1,e._previousButtonsDisabled())}),h(),n(8,"svg",8),v(9,"path",9),r()(),F(),n(10,"button",10),d("click",function(){return e._buttonClicked(e.pageIndex+1,e._nextButtonsDisabled())}),h(),n(11,"svg",8),v(12,"path",11),r()(),f(13,ot,3,5,"button",12),r()()()),a&2&&(o(2),c(e.hidePageSize?-1:2),o(3),y(" ",e._intl.getRangeLabel(e.pageIndex,e.pageSize,e.length)," "),o(),c(e.showFirstLastButtons?6:-1),o(),p("matTooltip",e._intl.previousPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),m("aria-label",e._intl.previousPageLabel),o(3),p("matTooltip",e._intl.nextPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),m("aria-label",e._intl.nextPageLabel),o(3),c(e.showFirstLastButtons?13:-1))},dependencies:[q,K,J,W,Y],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height:var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding:var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:84px}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:84px;height:48px;background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return i})(),Mt=(()=>{class i{static \u0275fac=function(a){return new(a||i)};static \u0275mod=R({type:i});static \u0275inj=w({providers:[st],imports:[X,Q,Z,dt]})}return i})();export{dt as a,Mt as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as o,ja as l}from"./chunk-
|
|
1
|
+
import{f as o,ja as l}from"./chunk-OJMQBH6T.js";var c=(()=>{class r{_listeners=[];notify(t,s){for(let n of this._listeners)n(t,s)}listen(t){return this._listeners.push(t),()=>{this._listeners=this._listeners.filter(s=>t!==s)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(s){return new(s||r)};static \u0275prov=l({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var h=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new o;constructor(e=!1,t,s=!0,n){this._multiple=e,this._emitChanges=s,this.compareWith=n,t&&t.length&&(e?t.forEach(i=>this._markSelected(i)):this._markSelected(t[0]),this._selectedToEmit.length=0)}select(...e){this._verifyValueAssignment(e),e.forEach(s=>this._markSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}deselect(...e){this._verifyValueAssignment(e),e.forEach(s=>this._unmarkSelected(s));let t=this._hasQueuedChanges();return this._emitChangeEvent(),t}setSelection(...e){this._verifyValueAssignment(e);let t=this.selected,s=new Set(e.map(i=>this._getConcreteValue(i)));e.forEach(i=>this._markSelected(i)),t.filter(i=>!s.has(this._getConcreteValue(i,s))).forEach(i=>this._unmarkSelected(i));let n=this._hasQueuedChanges();return this._emitChangeEvent(),n}toggle(e){return this.isSelected(e)?this.deselect(e):this.select(e)}clear(e=!0){this._unmarkAll();let t=this._hasQueuedChanges();return e&&this._emitChangeEvent(),t}isSelected(e){return this._selection.has(this._getConcreteValue(e))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(e){this._multiple&&this.selected&&this._selected.sort(e)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(e){e=this._getConcreteValue(e),this.isSelected(e)||(this._multiple||this._unmarkAll(),this.isSelected(e)||this._selection.add(e),this._emitChanges&&this._selectedToEmit.push(e))}_unmarkSelected(e){e=this._getConcreteValue(e),this.isSelected(e)&&(this._selection.delete(e),this._emitChanges&&this._deselectedToEmit.push(e))}_unmarkAll(){this.isEmpty()||this._selection.forEach(e=>this._unmarkSelected(e))}_verifyValueAssignment(e){e.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(e,t){if(this.compareWith){t=t??this._selection;for(let s of t)if(this.compareWith(e,s))return s;return e}else return e}};export{c as a,h as b};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as wt}from"./chunk-RHHHL4OR.js";import{b as vt}from"./chunk-5LQRO4AI.js";import{a as Tt}from"./chunk-3UN6FPMN.js";import{a as mt}from"./chunk-UMP6ZMEJ.js";import{b as pt,e as dt}from"./chunk-W5L6FMO3.js";import{b as ct}from"./chunk-PW42BQIY.js";import{b as ht,c as ft,h as _t,j as Ct,k as bt}from"./chunk-FO7G4GMY.js";import{A as lt,c as at,h as rt,m as st}from"./chunk-5PS6ZS3N.js";import{a as gt,c as ut}from"./chunk-ERXVXBTU.js";import{r as xt,s as Pt}from"./chunk-NNRBGHXB.js";import{g as L,i as ot,m as $,n as R}from"./chunk-FXQKRJWU.js";import{$c as I,Fc as V,G as W,Gb as S,Gc as m,Hc as w,Ic as A,Jb as Z,K as z,Ka as D,Kc as et,Lc as it,Mb as u,Mc as nt,Oa as f,Ra as C,X as J,Yb as h,Z as Y,ad as y,ca as q,cd as U,dc as P,ea as F,f as H,fa as K,g as G,ic as r,ja as M,jc as s,kc as j,lc as T,mc as v,nc as tt,oa as Q,oc as _,pa as X,rb as a,rd as N,tc as b,uc as l,v as x,xb as E,ya as d,za as g}from"./chunk-OJMQBH6T.js";function Mt(i,p){i&1&&tt(0)}function Dt(i,p){if(i&1&&(T(0),u(1,Mt,1,0,"ng-container",5),v()),i&2){l(2);let t=V(4);a(),h("ngTemplateOutlet",t)}}function Et(i,p){if(i&1&&(r(0,"div",6)(1,"label"),m(2,"Editing Data"),s(),r(3,"div")(4,"span"),m(5),I(6,"number"),s()()()),i&2){let t=l(2);a(5),w(y(6,1,t.value))}}function St(i,p){if(i&1&&(T(0),u(1,Dt,2,1,"ng-container",4)(2,Et,7,3,"ng-template",null,1,U),v()),i&2){let t=V(3),e=l();a(),h("ngIf",e.hasPriceEdit)("ngIfElse",t)}}function Vt(i,p){if(i&1){let t=_();r(0,"div",7)(1,"input",8),nt("ngModelChange",function(n){d(t);let o=l();return it(o.value,n)||(o.value=n),g(n)}),s(),r(2,"label",9),m(3),s()()}if(i&2){let t=l();a(),et("ngModel",t.value),h("max",t.maxEditInventory),a(2),w(t.item.Table)}}var te=(()=>{class i{constructor(t,e,n){this.dialogRef=t,this.item=e,this.permissionService=n,this.maxEditInventory=1e5,this.permissionService.hasPermission(mt.PriceUpdate).then(o=>this.hasPriceEdit=o)}ngOnInit(){this.selectedChannel=this.item.Variant.Channel.find(t=>t.ChannelID==this.item.ChannelID),this.selectedChannel.ID=this.item.Variant.ID,this.selectedChannel.Sku=this.item.Variant.Code,this.item.Table=="inventory"?(this.value=this.selectedChannel.Inventory,this.maxEditInventory=this.selectedChannel?.TypeID==ct.Tokopedia?1e5:null):this.item.Table=="price"&&(this.value=this.selectedChannel.Price,this.maxEditInventory=null),this.selectedChannel.ItemName=this.item.Name,this.selectedChannel.VarName=this.item.Variant.Model,this.initModalConfig()}initModalConfig(){let t=this.item.Table=="inventory"?"Update Inventory":"Update Price";this.modalConfig=new Ct,this.modalConfig.title=`${t} ${this.item?.Name} in ${this.selectedChannel?.Title}`}onSubmit(){this.item.Table=="inventory"?this.selectedChannel.Inventory=this.value:this.item.Table=="price"&&(this.selectedChannel.Price=this.value),this.dialogRef.close(this.selectedChannel)}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(e){return new(e||i)(E(ht),E(ft),E(gt))}}static{this.\u0275cmp=S({type:i,selectors:[["app-table-dialog"]],decls:5,vars:4,consts:[["INVENTORY",""],["DISABLED",""],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["matTooltipPosition","above","matTooltip","Cannot edit Unit Price because you dont have access ProductEditor role",1,"info-label-group","mt-3",2,"background","#e9ecef","opacity","1"],[1,"form-label-group","mt-3"],["type","text","name","edit","autoNum","",1,"form-control",3,"ngModelChange","ngModel","max"],["for","edit",1,"text-capitalize"]],template:function(e,n){if(e&1){let o=_();r(0,"modal-material",2),b("onClose",function(){return d(o),g(n.onClose())})("onCancel",function(){return d(o),g(n.onClose())})("onOk",function(){return d(o),g(n.onSubmit())}),r(1,"div",3),u(2,St,4,2,"ng-container",4)(3,Vt,4,3,"ng-template",null,0,U),s()()}if(e&2){let o=V(4);h("dynamicValidated",n.value)("config",n.modalConfig),a(2),h("ngIf",n.item.Table=="price")("ngIfElse",o)}},dependencies:[R,L,ot,$,_t,Tt,vt,wt,bt,lt,at,rt,st,ut,Pt,xt],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}.mat-dialog-content[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;margin-left:.5rem;margin-right:.5rem}.font-lg[_ngcontent-%COMP%]{font-size:large}.font-lgr[_ngcontent-%COMP%]{font-size:larger}"]})}}return i})();var ie=(()=>{class i{transform(t,e,n=0){if(!t)return t;let o=e?parseInt(e,10):10;return t.length>o?t.substring(n,o)+"...":t}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275pipe=Z({name:"stringLimit",type:i,pure:!0})}}return i})();function Lt(i,p){if(i&1){let t=_();r(0,"span",6),b("click",function(){d(t);let n=l();return g(n.onGetRowCount())}),r(1,"i",7),m(2,"?"),s()()}}function $t(i,p){if(i&1&&(T(0),r(1,"span"),m(2),I(3,"number"),s(),v()),i&2){let t=l();a(2),w(y(3,1,t.rowCount()))}}function Rt(i,p){if(i&1){let t=_();r(0,"a",10),b("click",function(){d(t);let n=l(2);return g(n.onNextPage())}),j(1,"i",11),m(2," Next"),s()}}function Ot(i,p){if(i&1){let t=_();r(0,"a",12),b("click",function(){d(t);let n=l(2);return g(n.onLastPage())}),j(1,"i",13),m(2," Last"),s()}}function kt(i,p){if(i&1&&(r(0,"div",5),u(1,Rt,3,0,"a",8)(2,Ot,3,0,"a",9),s()),i&2){let t=l();a(),P(t.disableNextButton()&&!t.goToLastPage()?1:-1),a(),P(t.disableNextButton()&&!t.goToLastPage()?2:-1)}}var le=(()=>{class i{constructor(){this.totalData=f(0),this.rowCount=f(),this.pageNumber=f(),this.disableNextButton=f(),this.goToLastPage=f(),this.hideCount=f(),this.nextPage=new D,this.lastPage=new D,this.getRowCount=new D}onNextPage(){this.nextPage.emit()}onLastPage(){this.lastPage.emit()}onGetRowCount(){this.getRowCount.emit()}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=S({type:i,selectors:[["infinite-paginator"]],inputs:{totalData:[1,"totalData"],rowCount:[1,"rowCount"],pageNumber:[1,"pageNumber"],disableNextButton:[1,"disableNextButton"],goToLastPage:[1,"goToLastPage"],hideCount:[1,"hideCount"]},outputs:{nextPage:"onNextPage",lastPage:"onLastPage",getRowCount:"onGetRowCount"},decls:9,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[4,"ngIf"],[1,"btn-group"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0",3,"click"],[1,"fas","fa-share"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),m(3),I(4,"number"),u(5,Lt,3,0,"span",3)(6,$t,4,3,"ng-container",4),m(7),s()(),u(8,kt,3,2,"div",5),s()),e&2&&(a(3),A(" Showing 1 - ",y(4,5,n.totalData())," of "),a(2),P(n.hideCount()?5:-1),a(),h("ngIf",!n.hideCount()&&n.rowCount()),a(),A(" records ~ ",n.pageNumber()," Page "),a(),P(n.totalData()>0?8:-1))},dependencies:[R,L,$],encapsulation:2})}}return i})();var ue=(()=>{class i{constructor(t){this.http=t,this.pagination$=new G(null),this._pageNumber=C(1),this.pageNumber=N(()=>this._pageNumber()),this._hideCount=C(!0),this.hideCount=N(()=>this._hideCount()),this._disableNextButton=C(!0),this.disableNextButton=N(()=>this._disableNextButton()),this._goToLastPage=C(!1),this.isLastPage=N(()=>this._goToLastPage()),this.totalData=C(0),this.destroy$=new H,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this._pageNumber.set(t.PageNumber)}setPaginationButtonState(t,e){e==0?this._disableNextButton.set(!0):this._disableNextButton.set(!(e<t.RowCount*t.PageNumber))}reloadPagination(t){t.PageNumber=1,this.pagination$.next(t),this._hideCount.set(!0),this._goToLastPage.set(!1)}onLastPage(t={}){let e=JSON.parse(JSON.stringify(t));this.totalRowCount$=this.http.post(`/api/${this.fethRowCountEndpoint}`,e).pipe(x(n=>n.Total),F(n=>{this._hideCount.set(!1),e.RowCount=n,e.PageNumber=1,this.pagination$.next(e),this._goToLastPage.set(!0)}))}paginationFunction(){return this.pagination$.pipe(q(this.destroy$),W(t=>t!=null),z(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(x(e=>e.Data?e.Data:[]))),K(this.pagination$),J((t,e)=>{let[n,o]=t,[c]=e;return o.PageNumber==1?[c,o]:[n.concat(c),o]}),F(([t,e])=>{this.setPageNumberFooter(e);let n=this.calculateProductLength(t);this.totalData.set(n),this.setPaginationButtonState(e,n)}),x(([t])=>t),Y())}getRowCount(t){this._hideCount.set(!1),this.totalRowCount$=this.http.post(`/API/${this.fethRowCountEndpoint}`,t).pipe(x(e=>e.Total))}calculateProductLength(t=[]){return t.reduce((n,o)=>n+(o.Variants?.length?o.Variants?.length:0),0)}static{this.\u0275fac=function(e){return new(e||i)(Q(dt))}}static{this.\u0275prov=M({token:i,factory:i.\u0275fac})}}return i})();var be=(()=>{class i{constructor(){this.toastr=X(pt)}responseHandling(t=[],e=[],n,o=[]){let c=t.length>0,k=e.length>0;if(!k&&c&&this.toastr.success(`${this.generateSuccessMessage(t.length,o)}`,"Success",{enableHtml:!0}),k&&c){let B=`<li>${this.generateSuccessMessage(t.length)}</li>`,It=this.generateErrorMessage(n,e),yt=`<ol>${B} ${It}</ol>`;this.toastr.warning(yt,"Warning",{enableHtml:!0})}if(k&&!c){let B=`<ol>${this.generateErrorMessage(n,e)}</ol>`;this.toastr.error(B,"Error",{enableHtml:!0})}}generateSuccessMessage(t,e=[]){let n=e.length>1?e.length:1;return`
|
|
2
|
+
<div>
|
|
3
|
+
<span class="fw-bold">Successfully</span> updated ${t} variants in ${n} channels
|
|
4
|
+
</div>
|
|
5
|
+
`}generateErrorMessage(t,e=[]){let n="";return e.forEach((o,c)=>{n+=`<li><span class="fw-bold">Error</span> Updating ${t} for [${o.Name} - ${o.Code}] - <b>${o.Message}</b></li>`}),n}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=M({token:i,factory:i.\u0275fac})}}return i})();export{te as a,ie as b,le as c,ue as d,be as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Le,b as Me,c as Pe}from"./chunk-UHJEXTOG.js";import{a as Ee}from"./chunk-7WG7VRYR.js";import{a as H}from"./chunk-EOLVRL5H.js";import{a as Ae}from"./chunk-PFXOFSJG.js";import{a as ke}from"./chunk-OLANEXLB.js";import"./chunk-BQIB3N6V.js";import"./chunk-B67DSLBY.js";import"./chunk-6RLISMEX.js";import"./chunk-TH6VZX34.js";import"./chunk-QS22J2SC.js";import"./chunk-QP4C4R4W.js";import"./chunk-5LQRO4AI.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-WLRPCY65.js";import"./chunk-3RK6DDJD.js";import"./chunk-3UN6FPMN.js";import"./chunk-LDPDLCRL.js";import"./chunk-JVNHFIYT.js";import{a as Te}from"./chunk-QNM4JQ46.js";import"./chunk-3YP6ORBR.js";import{a as ye}from"./chunk-UXPULNCR.js";import"./chunk-NFN7BQB3.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import{a as v}from"./chunk-MW6Q6DZF.js";import{b as L,e as z}from"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import"./chunk-PYXL7UF7.js";import{b as s,c as A}from"./chunk-PW42BQIY.js";import{b as ge,d as _e,f as fe,g as Ce,h as be,m as ve,n as xe}from"./chunk-FO7G4GMY.js";import{A as R,b as de,c as ue,h as O,m as W,o as he}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as Se,s as we}from"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{j as me,k as se,m as ce,n as I}from"./chunk-FXQKRJWU.js";import{$c as P,G as Q,Gb as V,Gc as m,Hc as M,Ic as D,Kc as C,Lc as b,Mb as x,Mc as S,Nc as oe,Oc as re,Pc as N,Qc as ae,Ra as j,Sc as le,Yb as k,Z as X,aa as Y,ac as ee,ad as F,bd as pe,dc as y,ec as te,gc as ie,hc as ne,ic as o,ja as E,jc as r,kc as g,oa as B,oc as T,pa as w,pb as Z,rb as l,tc as f,uc as c,v as J,xb as $,ya as u,za as h}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as q,b as G}from"./chunk-66YHNWRR.js";var Ve=(()=>{class n{constructor(e,t){this.http=e,this.toastr=t}printTokopediaShippingLabel(e,t=!1){let i={OrderNumber:e,Printed:t};return this.http.post(v.TokopediaPrintShippingLabel,i)}printTiktokShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(v.TiktokPrintShippingLabel,i)}printShopeeShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(v.ShopeePrintShippingLabel,i).pipe(J(a=>(a&&(a.Number=e),a)))}printLazadaShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(v.LazadaPrintShippingLabel,i)}handleShippingLabelResponse(e,t){switch(t){case s.Tokopedia:let d=window.open("about:blank","_blank");d.document.write(e.File),d.document.close();break;case s.Tiktok:e.data!=null?window.open(e.data.doc_url,"_blank"):this.toastr.error("Cannot Print the Shipping Label,The invoice Number is not set to Pickup","Cannot Print");break;case s.Shopee:var i=Uint8Array.from(atob(e.File),p=>p.charCodeAt(0)),a=new Blob([i],{type:"octet/stream"});A.openDownloadFile(a,`${e?.Number}.pdf`);break;case s.Lazada:e?.result?.data!=null?window.open(e?.result?.data?.pdf_url,"_blank"):this.toastr.error(e.message,"Cannot Print");break}}static{this.\u0275fac=function(t){return new(t||n)(B(z),B(L))}}static{this.\u0275prov=E({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var De=(()=>{class n{constructor(e){this.dialogRef=e,this.tandaiSudahDicetak=!1}onCancel(){this.dialogRef.close()}onPrint(){this.dialogRef.close(this.tandaiSudahDicetak?1:0)}static{this.\u0275fac=function(t){return new(t||n)($(ge))}}static{this.\u0275cmp=V({type:n,selectors:[["app-print-tokopedia"]],decls:17,vars:1,consts:[[1,"container-fluid"],[1,"text-center","mb-4","fw-bold","mt-6"],[1,"row"],[1,"col-12"],[1,"fs-5"],[1,"d-flex","align-items-center","text-center","justify-content-center","mb-8"],[1,"me-2",3,"ngModelChange","ngModel"],[1,"fs-5","pt-1"],[1,"d-flex","align-items-center","justify-content-center"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"click"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"h2",1),m(2,"Cetak label pesanan"),r(),o(3,"mat-dialog-content")(4,"div",2)(5,"div",3)(6,"p",4),m(7,"Kamu akan mencetak label yang berisi detail pesanan"),r(),o(8,"div",5)(9,"mat-checkbox",6),S("ngModelChange",function(d){return b(i.tandaiSudahDicetak,d)||(i.tandaiSudahDicetak=d),d}),r(),o(10,"span",7),m(11,'Pesanan telah ditandai sebagai "Sudah Dicetak"'),r()()()()(),o(12,"mat-dialog-actions",8)(13,"button",9),f("click",function(){return i.onCancel()}),m(14,"Cancel"),r(),o(15,"button",10),f("click",function(){return i.onPrint()}),m(16,"Cetak Pesanan"),r()()()),t&2&&(l(9),C("ngModel",i.tandaiSudahDicetak))},dependencies:[I,R,O,W,be,Ce,fe],encapsulation:2})}}return n})();var K=(()=>{class n{constructor(){this.httpService=w(z),this.shippingLabelService=w(Ve),this.toastrService=w(L),this.dialog=w(_e)}printShippingLabel(e){switch(e?.MarketType){case s.Shopee:this.shippingLabelService.printShopeeShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,s.Shopee));break;case s.Tiktok:this.shippingLabelService.printTiktokShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,s.Tiktok));break;case s.Tokopedia:this.dialog.open(De).afterClosed().pipe(Q(t=>A.IsNotEmpty(t)),Y(t=>this.shippingLabelService.printTokopediaShippingLabel(e.Number,t))).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,s.Tokopedia));break;case s.Lazada:this.shippingLabelService.printLazadaShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,s.Lazada));break;case s.Shopify:this.toastrService.error("Shopify not supported","Error Not supported");break}}printMultipleShippingLabel(e){let t=e.map(a=>({OrderNumber:a.Number,ShopID:a.ShopID})),i="";switch(e[0]?.MarketType){case s.Shopee:i=v.ShopeePrintMultipleShippingLabel;break;case s.Tiktok:i=v.TiktokPrintMultipleShippingLabel;break;case s.Lazada:i=v.LazadaPrintMultipleShippingLabel;break}this.httpService.post(i,t).subscribe(a=>{var d=Uint8Array.from(atob(a.File),Ne=>Ne.charCodeAt(0)),p=new Blob([d],{type:"octet/stream"});A.openDownloadFile(p,`${a?.Name}.pdf`)})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=E({token:n,factory:n.\u0275fac})}}return n})();var Ie=n=>({"td-cell-hover":n});function Oe(n,_){if(n&1){let e=T();o(0,"button",18),f("click",function(){u(e);let i=c(),a=N(0);return h(i.onDowloadShippingLabel(a))}),g(1,"i",19),o(2,"span"),m(3,"Download Shipping Label"),r()()}}function We(n,_){if(n&1){let e=T();o(0,"input",41),S("ngModelChange",function(i){u(e);let a=c().$implicit;return b(a.selected,i)||(a.selected=i),h(i)}),f("ngModelChange",function(){u(e);let i=c(3),a=N(0);return h(i.onSelectOrders(a))}),r()}if(n&2){let e=c().$implicit;C("ngModel",e.selected)}}function Re(n,_){if(n&1&&g(0,"variants-dropdown",35),n&2){let e=c().$implicit;k("variants",e==null?null:e.Variants)}}function ze(n,_){if(n&1&&g(0,"variant-with-image",36),n&2){let e=c().$implicit;k("variant",e==null?null:e.Variants[0])}}function Be(n,_){if(n&1&&(o(0,"span"),m(1),r()),n&2){let e=c().$implicit;l(),D("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function je(n,_){if(n&1){let e=T();o(0,"div")(1,"button",42),f("click",function(){u(e);let i=c().$implicit,a=c(2);return h(a.refreshShippingAndRefNumber(i))}),g(2,"i",43),r()()}}function He(n,_){if(n&1){let e=T();o(0,"button",44),f("click",function(){u(e);let i=c().$implicit,a=c(2);return h(a.onPrintShippingLabel(i))}),g(1,"i",45),r()}}function Ue(n,_){if(n&1&&(o(0,"tr")(1,"td"),x(2,We,1,1,"input",30),r(),o(3,"td"),m(4),r(),o(5,"td")(6,"div",31)(7,"div",32)(8,"div"),g(9,"img",33),P(10,"channelImage"),r(),o(11,"div"),g(12,"order-link",34),r()(),o(13,"small"),m(14),P(15,"date"),r()()(),o(16,"td"),m(17),r(),o(18,"td"),x(19,Re,1,1,"variants-dropdown",35)(20,ze,1,1,"variant-with-image",36),r(),o(21,"td",37),m(22),P(23,"number"),r(),o(24,"td")(25,"div",38)(26,"div",31)(27,"div",32)(28,"span"),m(29),r(),x(30,Be,2,1,"span"),r(),o(31,"small"),m(32),r()(),x(33,je,3,0,"div"),r()(),o(34,"td",39),x(35,He,2,0,"button",40),r()()),n&2){let e=_.$implicit,t=c(2);l(2),y((e==null?null:e.MarketType)!=t.channelType.WooCommerce?2:-1),l(2),M(e.Outlet),l(5),k("src",F(10,16,e==null?null:e.MarketType),Z)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(3),k("order",e),l(2),D(" ",pe(15,18,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),M(e.Customer),l(),ee(le(23,Ie,(e.Variants==null?null:e.Variants.length)>1)),l(),y((e.Variants==null?null:e.Variants.length)>1?19:20),l(3),M(F(23,21,e.Amount)),l(7),M(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),y(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?30:-1),l(2),D(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(),y(!(e.LogisticService!=null&&e.LogisticService.Name)||!e.ReferenceNumber?33:-1),l(2),y((e==null?null:e.MarketType)!=t.channelType.WooCommerce?35:-1)}}function Ke(n,_){if(n&1){let e=T();o(0,"div",16)(1,"table",20)(2,"thead",21)(3,"tr",22),g(4,"th",23),o(5,"th",24),m(6,"Outlet"),r(),o(7,"th",25),m(8,"Number"),r(),o(9,"th",25),m(10,"Customer"),r(),o(11,"th"),m(12,"Items"),r(),o(13,"th",26),m(14,"Amount"),r(),o(15,"th",27),m(16,"Shipping"),r(),g(17,"th",28),r()(),o(18,"tbody"),ie(19,Ue,36,25,"tr",null,te),r()(),o(21,"app-custom-paginator",29),f("next",function(){u(e);let i=c();return h(i.initAwaitingCollection())})("previous",function(){u(e);let i=c();return h(i.initAwaitingCollection())}),r()()}if(n&2){let e=c(),t=N(0);l(19),ne(t),l(2),k("filter",e.filter())("totaldata",t==null?null:t.length)}}function qe(n,_){n&1&&(o(0,"div",17),g(1,"app-empty-state"),r())}var zt=(()=>{class n{constructor(){this.printShippingService=w(K),this.orderService=w(H),this.toastr=w(L),this.channelType=s,this.selectedOrders=j([]),this.filter=j({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){let e=this.orderService.getOrderDefaultValue();this.filter.update(t=>G(q({},t),{From:e})),this.initAwaitingCollection()}initAwaitingCollection(){this.awaitingCollections$=this.orderService.getAwaitingCollectionOrders(this.filter()).pipe(X(1))}onPrintShippingLabel(e){this.printShippingService.printShippingLabel(e)}onSelectOrders(e){let t=e.filter(i=>i.selected);this.selectedOrders.set(t)}onDowloadShippingLabel(e){e=e.map(t=>(t.selected=!1,t)),this.printShippingService.printMultipleShippingLabel(this.selectedOrders()),this.selectedOrders.set([])}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initAwaitingCollection()})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=V({type:n,selectors:[["app-awaiting-collection"]],features:[ae([H,K])],decls:35,vars:12,consts:[["headerTitle","Awaiting Collection","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-3"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line","me-3"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],[2,"width","10px"],["rowCountApi","/api/orders/awaitingcollectioncount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModel"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"d-flex","align-items-center","gap-6"],[1,"text-end","td-cell-hover"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent"],["type","checkbox",3,"ngModelChange","ngModel"],["matTooltip","Retrieve shipping courier and reference number",1,"btn","btn-icon-only",3,"click"],[1,"fa-solid","fa-arrows-rotate","fs-6"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line"]],template:function(t,i){if(t&1){let a=T();oe(0),P(1,"async"),o(2,"mainpanel",0),f("onSubmit",function(){return u(a),h(i.initAwaitingCollection())}),S("textChange",function(p){return u(a),b(i.filter().Number,p)||(i.filter().Number=p),h(p)}),o(3,"actions"),x(4,Oe,4,0,"button",1),o(5,"a",2),g(6,"i",3),o(7,"span"),m(8,"Order Fulfillment Display"),r()()(),o(9,"filters")(10,"div")(11,"label",4),m(12,"From/To"),r(),o(13,"channel-select-options",5),S("ngModelChange",function(p){return u(a),b(i.filter().ListChannelID,p)||(i.filter().ListChannelID=p),h(p)}),r()(),o(14,"div",6)(15,"label",4),m(16,"From/To"),r(),o(17,"div",7)(18,"datepicker",8),S("dateChange",function(p){return u(a),b(i.filter().From,p)||(i.filter().From=p),h(p)}),r()(),o(19,"div")(20,"datepicker",9),S("dateChange",function(p){return u(a),b(i.filter().To,p)||(i.filter().To=p),h(p)}),r()()(),o(21,"div",6)(22,"label",10),m(23,"Page Number"),r(),o(24,"input",11),S("ngModelChange",function(p){return u(a),b(i.filter().PageNumber,p)||(i.filter().PageNumber=p),h(p)}),r()(),o(25,"div",6)(26,"label",10),m(27,"Page Size"),r(),o(28,"input",12),S("ngModelChange",function(p){return u(a),b(i.filter().PageSize,p)||(i.filter().PageSize=p),h(p)}),r()()(),o(29,"content")(30,"div",13)(31,"div",14)(32,"div",15),x(33,Ke,22,2,"div",16)(34,qe,2,0,"div",17),r()()()()()}if(t&2){let a=re(F(1,9,i.awaitingCollections$));l(2),C("text",i.filter().Number),l(2),y(i.selectedOrders().length>0?4:-1),l(9),k("multiple",!0),C("ngModel",i.filter().ListChannelID),l(5),C("date",i.filter().From),l(2),C("date",i.filter().To),l(4),C("ngModel",i.filter().PageNumber),l(4),C("ngModel",i.filter().PageSize),l(5),y((a==null?null:a.length)>0?33:34)}},dependencies:[I,me,ce,se,xe,ve,ke,ye,R,ue,he,de,O,W,Le,Me,Pe,Ae,Te,we,Se,Ee],encapsulation:2})}}return n})();export{zt as AwaitingCollectionComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V}from"./chunk-
|
|
1
|
+
import{a as V}from"./chunk-3YP6ORBR.js";import{c as z}from"./chunk-PW42BQIY.js";import{A as U}from"./chunk-5PS6ZS3N.js";import{r as j,s as L}from"./chunk-NNRBGHXB.js";import{d as F,f as T,g as D,n as N,r as k}from"./chunk-FXQKRJWU.js";import{Fc as I,Gb as P,Gc as s,Hc as v,Ic as M,Jc as O,Mb as p,Sc as C,Xb as f,Yb as a,cd as E,ic as r,jc as l,kc as m,lc as _,mc as h,oc as w,pb as u,rb as i,tc as S,uc as d,xb as y,ya as x,za as b}from"./chunk-OJMQBH6T.js";var Z=t=>({"border-bottom-0":t}),B=t=>({"border-bottom":t});function $(t,c){if(t&1){let e=w();_(0),r(1,"img",14),S("click",function(n){x(e);let g=d();return b(g.onZoomImage(n))}),l(),h()}if(t&2){let e=d();i(),a("ngSrc",e.image)("fill",!0)}}function R(t,c){t&1&&m(0,"img",15),t&2&&a("fill",!0)}function q(t,c){if(t&1&&(r(0,"div",16),m(1,"i",17),r(2,"span"),s(3),l()()),t&2){let e=d();i(3),v(e.code)}}function A(t,c){if(t&1&&(_(0),r(1,"div",27)(2,"div",28),s(3),l(),r(4,"div")(5,"a",29),m(6,"i",30),l()()(),h()),t&2){let e=c.$implicit,o=c.index,n=d().$implicit;i(),a("ngClass",C(4,B,o!==(n==null?null:n.Variants.length)-1)),i(2),O(" ",e.ProductName," - ",e.Name," "),i(2),a("href",e.URL,u)}}function G(t,c){if(t&1&&(r(0,"div",18)(1,"h2",19)(2,"button",20)(3,"div",21),m(4,"img",22),r(5,"span",23),s(6),l()()()(),r(7,"div",24)(8,"div",25),p(9,A,7,6,"ng-container",26),l()()()),t&2){let e=c.$implicit,o=c.index,n=d();a("ngClass",C(10,Z,n.channels.length-1==o)),i(),a("id","heading"+o+n.id),i(),f("data-bs-target","#collapse"+o+n.id)("aria-controls","#collapse"+o+n.id),i(2),a("src",n.getChannelLogo(e.TypeID),u),i(),a("matTooltip",(e==null||e.ChannelName==null?null:e.ChannelName.length)>30?e.ChannelName:""),i(),v(e.ChannelName),i(),a("id","collapse"+o+n.id),f("aria-labelledby","heading"+o+n.id),i(2),a("ngForOf",e.Variants)}}var te=(()=>{class t{constructor(e){this.biggerPictureService=e}getChannelLogo(e){return z.getChannelLogoByTypeId(e)}onZoomImage(e){this.biggerPictureService.openBiggerPicture(e,this.imageForZoom)}static{this.\u0275fac=function(o){return new(o||t)(y(V))}}static{this.\u0275cmp=P({type:t,selectors:[["app-duplicate-product-card"]],inputs:{image:"image",imageForZoom:"imageForZoom",title:"title",code:"code",channels:"channels",id:"id"},decls:16,vars:5,consts:[["elsePic",""],[1,"card"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-8","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle"],["class","description",4,"ngIf"],[1,"card-footer",2,"padding-left","0px","padding-right","0px"],["id","accordionParent",1,"accordion","accordion-flush"],["class","accordion-item border-start-0 border-end-0",3,"ngClass",4,"ngFor","ngForOf"],[1,"rounded","imgUpload","float-left","cursor-pointer",3,"click","ngSrc","fill"],["ngSrc","//res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload",3,"fill"],[1,"description"],[1,"fa","fa-barcode","me-2"],[1,"accordion-item","border-start-0","border-end-0",3,"ngClass"],[1,"accordion-header",3,"id"],["type","button","data-bs-toggle","collapse","aria-expanded","true",1,"accordion-button","collapsed",2,"height","40px"],[1,"d-flex","align-items-center","justify-content-start","w-100"],["alt","",1,"channel-logo",3,"src"],[1,"fs-4","ps-4","text-ellipsis",2,"max-width","13vw",3,"matTooltip"],["data-bs-parent","#accordionParent",1,"accordion-collapse","collapse",3,"id"],[1,"accordion-body",2,"padding-top","0px","padding-bottom","0px"],[4,"ngFor","ngForOf"],[1,"d-flex","justify-content-between","align-items-center","py-4",3,"ngClass"],[1,"text-ellipsis"],["target","_blank",1,"text-secondary",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"]],template:function(o,n){if(o&1&&(r(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),p(6,$,2,2,"ng-container",7)(7,R,1,1,"ng-template",null,0,E),l()()(),r(9,"div",8)(10,"h4",9),s(11),l(),p(12,q,4,1,"div",10),l()()(),r(13,"div",11)(14,"div",12),p(15,G,10,12,"div",13),l()()()),o&2){let g=I(8);i(6),a("ngIf",n.image)("ngIfElse",g),i(5),M(" ",n.title," "),i(),a("ngIf",n.code),i(3),a("ngForOf",n.channels)}},dependencies:[N,F,T,D,U,L,j,k],styles:[`.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down}.channel-logo[_ngcontent-%COMP%]{width:18px;height:18px}.accordion-button[_ngcontent-%COMP%]{background-color:#ededed69!important}.accordion-button[_ngcontent-%COMP%]:not(.collapsed){background-color:#ededed69!important;color:#333}.accordion-button[_ngcontent-%COMP%]:after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23333333'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.accordion-button[_ngcontent-%COMP%]:focus{box-shadow:none!important}.card[_ngcontent-%COMP%]{margin-bottom:0!important}`]})}}return t})();export{te as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Ie,b as Ve,c as Re}from"./chunk-UHJEXTOG.js";import{a as Le}from"./chunk-7WG7VRYR.js";import{a as ce}from"./chunk-EOLVRL5H.js";import{a as Ne}from"./chunk-PFXOFSJG.js";import{a as Fe}from"./chunk-OLANEXLB.js";import"./chunk-BQIB3N6V.js";import"./chunk-B67DSLBY.js";import"./chunk-6RLISMEX.js";import"./chunk-TH6VZX34.js";import"./chunk-QS22J2SC.js";import"./chunk-QP4C4R4W.js";import"./chunk-5LQRO4AI.js";import"./chunk-MO53T3IK.js";import"./chunk-W3JTS22H.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-WLRPCY65.js";import"./chunk-3RK6DDJD.js";import"./chunk-3UN6FPMN.js";import"./chunk-LDPDLCRL.js";import"./chunk-JVNHFIYT.js";import{a as Ee}from"./chunk-QNM4JQ46.js";import"./chunk-3YP6ORBR.js";import{a as Pe}from"./chunk-UXPULNCR.js";import"./chunk-NFN7BQB3.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import{a as I}from"./chunk-MW6Q6DZF.js";import{b as be,e as X}from"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import{c as Z,d as $,e as ee}from"./chunk-PYXL7UF7.js";import{b as C,c as U}from"./chunk-PW42BQIY.js";import{b as te,c as ie,d as we,e as ne,f as oe,g as De,h as re,m as Oe,n as Me}from"./chunk-FO7G4GMY.js";import{A as E,c as Te,h as z,m as H,o as xe}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import{r as ae,s as le}from"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{j as ve,k as j,m as ke,n as P}from"./chunk-FXQKRJWU.js";import{$c as D,G as pe,Gb as O,Gc as a,Hc as y,Ic as B,Kc as k,Lc as T,Mb as M,Mc as x,Na as Y,Nc as ge,Oa as q,Oc as fe,Pc as _e,Qc as Se,Ra as S,Rc as Ce,Sc as ye,Yb as _,Z as de,_b as me,aa as se,ac as he,ad as J,bd as F,dc as b,ec as V,gc as R,hc as N,ic as o,ja as W,jc as r,kc as v,oc as w,pa as h,pb as ue,rb as l,rd as Q,tc as d,uc as c,v as G,ya as g,za as f}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as A,b as K}from"./chunk-66YHNWRR.js";function qe(n,u){if(n&1){let e=w();o(0,"div",10),d("click",function(){g(e);let i=c();return f(i.onSelectDelivery("DROP_OFF"))}),o(1,"div",11),v(2,"i",12),o(3,"h3",13),a(4,"Drop off"),r()(),o(5,"p",14),a(6," You can drop off your package at the nearest shipping counter in your city. "),r()()}if(n&2){let e=c();me("text-muted",e.selectedDelivery()&&e.selectedDelivery()==="PICK_UP")("selected",e.selectedDelivery()==="DROP_OFF")}}function Je(n,u){if(n&1){let e=w();o(0,"div",10),d("click",function(){g(e);let i=c();return f(i.onSelectDelivery("PICK_UP"))}),o(1,"div",11),v(2,"i",15),o(3,"h3",16),a(4,"Pick up"),r()(),o(5,"p",17),a(6," The courier will collect the package from your address. "),r()()}if(n&2){let e=c();me("text-muted",e.selectedDelivery()&&e.selectedDelivery()==="DROP_OFF")("selected",e.selectedDelivery()==="PICK_UP")}}var Ae=(()=>{class n{constructor(){this.data=h(ie),this.dialogRef=h(te),this.selectedDelivery=S("DROP_OFF"),this.showPickup=S(!0),this.showDropOff=S(!0),this.initOptionsCondition()}onSelectDelivery(e){this.selectedDelivery.set(e)}initOptionsCondition(){switch(this.data.channelType){case C.Shopee:break;case C.Tiktok:this.showPickup.set(this.data.options?.Form?.information?.can_pickup),this.showDropOff.set(this.data.options?.Form?.information?.can_drop_off);break}}onConfirm(){this.dialogRef.close(this.selectedDelivery())}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=O({type:n,selectors:[["app-delivery-dialog"]],decls:16,vars:2,consts:[["mat-dialog-title","",1,"mt-12","mb-8"],[1,"d-flex","justify-content-between","align-items-start","lh-lg"],[1,"ms-2"],[1,"text-secondary-emphasis"],[1,"fa-solid","fa-xmark","text-muted","cursor-pointer","fs-3",3,"click"],[1,"pb-0"],[1,"d-flex","align-items-center","justify-content-center","gap-12"],["role","button",1,"delivery-option","d-flex","flex-column","align-items-center","justify-content-center","p-4","cursor-pointer",3,"text-muted","selected"],[1,"d-flex","justify-content-end",2,"margin-top","1.5rem"],[1,"btn","btn-light-blue","me-3","text-primary","btn-lg","fw-bold","mx-3","py-6",2,"width","70px",3,"click"],["role","button",1,"delivery-option","d-flex","flex-column","align-items-center","justify-content-center","p-4","cursor-pointer",3,"click"],[1,"text-center"],[1,"fa-solid","fa-cart-shopping-fast","fa-4x"],[1,"mt-4","titlew"],[1,"text-center","mt-4","lh-sm","subtitlew"],[1,"fa-solid","fa-hand-holding-box","fa-4x"],[1,"mt-4"],[1,"text-center","mt-4","lh-sm"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h2"),a(4,"Delivery Order"),r(),o(5,"div",3),a(6,"Your selected order(s) will be set to"),r()(),o(7,"div")(8,"i",4),d("click",function(){return i.onClose()}),r()()()(),o(9,"mat-dialog-content",5)(10,"div",6),M(11,qe,7,4,"div",7)(12,Je,7,4,"div",7),r(),o(13,"div",8)(14,"button",9),d("click",function(){return i.onConfirm()}),a(15," OK "),r()()()),t&2&&(l(11),b(i.showPickup()?11:-1),l(),b(i.showDropOff()?12:-1))},dependencies:[P,re,ne,oe],styles:[".delivery-option[_ngcontent-%COMP%]{width:14rem;height:12rem;border:1px solid #656565}.delivery-option[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-bottom:0}.delivery-option.text-muted[_ngcontent-%COMP%]{border-color:#000;color:#000}.delivery-option.selected[_ngcontent-%COMP%]{color:#5e9708;border-color:#5e9708}.delivery-option.selected[_ngcontent-%COMP%] .titlew[_ngcontent-%COMP%]{color:#5e9708;font-weight:700}.delivery-option.selected[_ngcontent-%COMP%] .subtitlew[_ngcontent-%COMP%]{color:#5e9708}"]})}}return n})();function Ze(n,u){if(n&1&&(o(0,"ng-option",3),a(1),r()),n&2){let e=u.$implicit;_("value",e==null?null:e.address_id)("matTooltip",e==null?null:e.address),l(),y(e==null?null:e.address)}}function $e(n,u){if(n&1&&(o(0,"ng-option",6)(1,"span",7),a(2),D(3,"date"),r(),o(4,"span"),a(5),r()()),n&2){let e=u.$implicit;_("value",e==null?null:e.pickup_time_id),l(2),y(F(3,3,e==null?null:e.date,"d MMMM")),l(3),y(e==null?null:e.time_text)}}var je=(()=>{class n{constructor(){this.shippingOptions=q(),this.onFormChanges=Y(),this.addressList=Q(()=>this.shippingOptions()?.response?.pickup?.address_list||[]),this.selectedShipping=S(null),this.timeOptions=S(this.convertTimestampToDate(this.addressList()[0]?.time_slot_list||[])),this.pickupTime=S(null)}onAddressChange(e){let t=this.addressList().find(i=>i.address_id===e);this.timeOptions.set(this.convertTimestampToDate(t?.time_slot_list||[])),this.pickupTime.set(null)}onValueChanges(){this.onFormChanges.emit({address_id:this.selectedShipping(),pickup_time_id:this.pickupTime()})}convertTimestampToDate(e){return e.map(t=>{let i=new Date(t.date*1e3);return K(A({},t),{date:i})})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=O({type:n,selectors:[["shopee-pickup"]],inputs:{shippingOptions:[1,"shippingOptions"]},outputs:{onFormChanges:"onFormChanges"},decls:12,vars:4,consts:[[1,"mb-6"],["for","address",1,"mb-2","text-muted"],["id","address","placeholder","Select Address to Pickup","appendTo","body",1,"shipping-timepicker",3,"ngModelChange","clearable","ngModel"],[3,"value","matTooltip"],["for","timepicker",1,"mb-2","text-muted"],["id","timepicker","placeholder","Select Date Pickup","appendTo","body",1,"shipping-timepicker",3,"ngModelChange","clearable","ngModel"],[3,"value"],[1,"me-2"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"label",1),a(2,"Address"),r(),o(3,"ng-select",2),x("ngModelChange",function(s){return T(i.selectedShipping,s)||(i.selectedShipping=s),s}),d("ngModelChange",function(s){return i.onAddressChange(s),i.onValueChanges()}),R(4,Ze,2,3,"ng-option",3,V),r()(),o(6,"div",0)(7,"label",4),a(8,"Date"),r(),o(9,"ng-select",5),x("ngModelChange",function(s){return T(i.pickupTime,s)||(i.pickupTime=s),s}),d("ngModelChange",function(){return i.onValueChanges()}),R(10,$e,6,6,"ng-option",6,V),r()()),t&2&&(l(3),_("clearable",!1),k("ngModel",i.selectedShipping),l(),N(i.addressList()),l(5),_("clearable",!1),k("ngModel",i.pickupTime),l(),N(i.timeOptions()))},dependencies:[P,j,ee,$,Z,E,z,H,le,ae],encapsulation:2})}}return n})();function et(n,u){if(n&1&&(o(0,"ng-option",3)(1,"span",4),a(2),D(3,"date"),r(),o(4,"span"),a(5),D(6,"date"),r(),o(7,"span",5),a(8,"-"),r(),o(9,"span"),a(10),D(11,"date"),r()()),n&2){let e=u.$implicit,t=u.$index;_("value",t),l(2),y(F(3,4,e==null?null:e.start_date,"d MMMM")),l(3),y(F(6,7,e==null?null:e.start_date,"HH:mm")),l(5),y(F(11,10,e==null?null:e.end_date,"HH:mm"))}}var ze=(()=>{class n{constructor(){this.shippingOptions=q(),this.onFormChanges=Y(),this.timeOptions=Q(()=>this.shippingOptions()?.Options?.pickup_slots),this.selectedTimeIndex=S(null)}onValueChanges(){let e=this.timeOptions()[this.selectedTimeIndex()];this.onFormChanges.emit({start_time:e?.start_time,end_time:e?.end_time})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=O({type:n,selectors:[["tiktok-pickup"]],inputs:{shippingOptions:[1,"shippingOptions"]},outputs:{onFormChanges:"onFormChanges"},decls:6,vars:2,consts:[[1,"mb-6"],["for","timepicker",1,"mb-2","text-muted"],["id","timepicker","placeholder","Select Time Pickup","appendTo","body",1,"shipping-timepicker",3,"ngModelChange","clearable","ngModel"],[3,"value"],[1,"me-2"],[1,"mx-1"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"label",1),a(2,"Time"),r(),o(3,"ng-select",2),x("ngModelChange",function(s){return T(i.selectedTimeIndex,s)||(i.selectedTimeIndex=s),s}),d("ngModelChange",function(){return i.onValueChanges()}),R(4,et,12,13,"ng-option",3,V),r()()),t&2&&(l(3),_("clearable",!1),k("ngModel",i.selectedTimeIndex),l(),N(i.timeOptions()))},dependencies:[P,j,ee,$,Z,E,z,H],encapsulation:2})}}return n})();function tt(n,u){if(n&1){let e=w();o(0,"shopee-pickup",10),d("onFormChanges",function(i){g(e);let p=c();return f(p.onFormChanges(i))}),r()}if(n&2){let e=c();_("shippingOptions",e.dialogData.shippingOptions)}}function it(n,u){if(n&1){let e=w();o(0,"tiktok-pickup",10),d("onFormChanges",function(i){g(e);let p=c();return f(p.onFormChanges(i))}),r()}if(n&2){let e=c();_("shippingOptions",e.dialogData.shippingOptions)}}var He=(()=>{class n{constructor(){this.dialogRef=h(te),this.dialogData=h(ie),this.shippingOptions=S(this.dialogData.shippingOptions),this.channelType=S(this.dialogData.channelType),this.order=S(this.dialogData.order),this.channelTypeEnum=C,this.pickupData=S(null)}onFormChanges(e){this.pickupData.set(e)}onClose(){this.dialogRef.close()}onSave(){let e=this.generatePickupData();this.dialogRef.close(e)}generatePickupData(){switch(this.channelType()){case C.Shopee:return{OrderNumber:this.order().Number,ShopID:this.order().ShopID,pickup:this.pickupData()};case C.Tiktok:return{handover_method:"PICKUP",PackageID:this.shippingOptions().Form?.information?.PackageID,ShopID:this.order().ShopID,pickup_slot:this.pickupData()}}}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=O({type:n,selectors:[["app-pickup-dialog"]],decls:21,vars:2,consts:[["mat-dialog-title","",1,"mt-12","mb-6"],[1,"d-flex","justify-content-between","align-items-start","lh-lg"],[1,"lh-base","mt-6"],[1,"text-muted","fs-6"],["role","button",1,"fa-solid","fa-xmark","text-muted","cursor-pointer","fs-3",3,"click"],[2,"padding-bottom","10px"],[3,"shippingOptions"],[1,"d-flex","justify-content-end","align-items-center","w-100","pe-8","mb-4"],[1,"btn","btn-outline-secondary","me-4",2,"width","70px",3,"click"],[1,"btn","btn-success",2,"width","70px",3,"click"],[3,"onFormChanges","shippingOptions"]],template:function(t,i){if(t&1&&(o(0,"div",0)(1,"div",1)(2,"div")(3,"h3"),a(4,"Set Pickup"),r(),o(5,"div",2)(6,"div",3),a(7,"Shipping Method"),r(),o(8,"div",3),a(9),r()()(),o(10,"div")(11,"i",4),d("click",function(){return i.onClose()}),r()()()(),o(12,"mat-dialog-content",5),M(13,tt,1,1,"shopee-pickup",6)(14,it,1,1,"tiktok-pickup",6),r(),o(15,"mat-dialog-actions")(16,"div",7)(17,"button",8),d("click",function(){return i.onClose()}),a(18," Cancel "),r(),o(19,"button",9),d("click",function(){return i.onSave()}),a(20," Ok "),r()()()),t&2){let p,s;l(9),B(" ",!((p=i.order())==null||p.LogisticService==null)&&p.LogisticService.Name?(p=i.order())==null||p.LogisticService==null?null:p.LogisticService.Name:"-"," "),l(4),b((s=i.channelType())===i.channelTypeEnum.Shopee?13:s===i.channelTypeEnum.Tiktok?14:-1)}},dependencies:[P,re,ne,De,oe,E,je,ze],styles:['ng-select.shipping-timepicker .ng-arrow{border:none!important;width:0;height:0} ng-select.shipping-timepicker .ng-arrow-wrapper{width:28px;display:flex;align-items:center;justify-content:center} ng-select.shipping-timepicker .ng-arrow-wrapper:after{content:"\\f107";font-family:"Font Awesome 6 Pro","Font Awesome 6 Free","Font Awesome 5 Pro","Font Awesome 5 Free";font-style:normal;font-weight:400!important;font-size:16px;line-height:1;display:inline-block;color:#6b7280;pointer-events:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:auto}.label-opacity[_ngcontent-%COMP%]{opacity:.7}']})}}return n})();var Ue=(()=>{class n{constructor(){this.httpService=h(X)}getShippingOptions(e,t){return this.httpService.post(I.GetTiktokShippingOptions,{OrderNumber:e,ShopID:t}).pipe(G(i=>this.formatDatePickUpOptions(i)))}pickupOrder(e){return this.httpService.post(I.TiktokSelectShipping,e)}dropOffOrder(e,t){let i={handover_method:"DROP_OFF",PackageID:e,ShopID:t};return this.httpService.post(I.TiktokSelectShipping,i)}formatDatePickUpOptions(e){return e?.Options?.pickup_slots&&(e.Options.pickup_slots=e?.Options?.pickup_slots.map(t=>{let i=U.convertTimestampToDate(t.start_time),p=U.convertTimestampToDate(t.end_time);return t.start_date=i,t.end_date=p,t})),e}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=W({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ke=(()=>{class n{constructor(){this.httpService=h(X)}getShippingOptions(e,t){return this.httpService.post(I.GetShopeeShippingOptions,{OrderNumber:e,ShopID:t})}pickupOrder(e){return this.httpService.post(I.ShopeeSelectShipping,e)}dropOffOrder(e,t){let i={OrderNumber:e,ShopID:t,dropoff:{}};return this.httpService.post(I.ShopeeSelectShipping,i)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=W({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var Ge=(()=>{class n{constructor(){this.shopeeShippingService=h(Ke),this.tiktokShippingService=h(Ue)}getShippingOptions(e,t,i){switch(i){case C.Shopee:return this.getShopeeShippingOptions(e,t);case C.Tiktok:return this.getTiktokShippingOptions(e,t)}}pickupOrder(e,t){switch(e.MarketType){case C.Shopee:return this.shopeeShippingService.pickupOrder(t);case C.Tiktok:return this.tiktokShippingService.pickupOrder(t)}}dropOffOrder(e,t){switch(e.MarketType){case C.Shopee:return this.shopeeShippingService.dropOffOrder(e.Number,e.ShopID);case C.Tiktok:let i=t?.Form?.information?.PackageID;return this.tiktokShippingService.dropOffOrder(i,e.ShopID)}}getShopeeShippingOptions(e,t){return this.shopeeShippingService.getShippingOptions(e,t)}getTiktokShippingOptions(e,t){return this.tiktokShippingService.getShippingOptions(e,t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=W({token:n,factory:n.\u0275fac,providedIn:"root"})}}return n})();var nt=()=>[],ot=n=>({"td-cell-hover":n});function rt(n,u){if(n&1&&v(0,"variants-dropdown",30),n&2){let e=c().$implicit;_("variants",e==null?null:e.Variants)}}function at(n,u){if(n&1&&v(0,"variant-with-image",31),n&2){let e=c().$implicit;_("variant",e==null?null:e.Variants[0])}}function lt(n,u){if(n&1&&(o(0,"span"),a(1),r()),n&2){let e=c().$implicit;l(),B("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function pt(n,u){if(n&1){let e=w();o(0,"div")(1,"button",36),d("click",function(){g(e);let i=c().$implicit,p=c(2);return f(p.refreshShippingAndRefNumber(i))}),v(2,"i",37),r()()}}function st(n,u){if(n&1){let e=w();o(0,"button",38),d("click",function(){g(e);let i=c().$implicit,p=c(2);return f(p.onSetFulfillment(i))}),a(1," Set Fulfillment "),r()}}function mt(n,u){if(n&1&&(o(0,"tr")(1,"td"),a(2),r(),o(3,"td")(4,"div",26)(5,"div",27)(6,"div"),v(7,"img",28),D(8,"channelImage"),r(),o(9,"div"),v(10,"order-link",29),r()(),o(11,"small"),a(12),D(13,"date"),r()()(),o(14,"td"),a(15),r(),o(16,"td"),M(17,rt,1,1,"variants-dropdown",30)(18,at,1,1,"variant-with-image",31),r(),o(19,"td",32),a(20),D(21,"number"),r(),o(22,"td")(23,"div",33)(24,"div",26)(25,"div",27)(26,"span"),a(27),r(),M(28,lt,2,1,"span"),r(),o(29,"small"),a(30),r()(),M(31,pt,3,0,"div"),r()(),o(32,"td",34),M(33,st,2,0,"button",35),r()()),n&2){let e=u.$implicit,t=c(2);l(2),y(e.Outlet),l(5),_("src",J(8,15,e==null?null:e.MarketType),ue)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(3),_("order",e),l(2),B(" ",F(13,17,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),y(e.Customer),l(),he(ye(22,ot,(e.Variants==null?null:e.Variants.length)>1)),l(),b((e.Variants==null?null:e.Variants.length)>1?17:18),l(3),y(J(21,20,e.Amount)),l(7),y(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?28:-1),l(2),B(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),l(),b(!(e.LogisticService!=null&&e.LogisticService.Name)||!e.ReferenceNumber?31:-1),l(2),b((e==null?null:e.MarketType)!=t.channelType.WooCommerce?33:-1)}}function ct(n,u){if(n&1){let e=w();o(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Outlet"),r(),o(6,"th",21),a(7,"Number"),r(),o(8,"th",21),a(9,"Customer"),r(),o(10,"th"),a(11,"Items"),r(),o(12,"th",22),a(13,"Amount"),r(),o(14,"th",23),a(15,"Shipping"),r(),v(16,"th",24),r()(),o(17,"tbody"),R(18,mt,34,24,"tr",null,V),r()(),o(20,"app-custom-paginator",25),d("next",function(){g(e);let i=c();return f(i.initReadyToShip())})("previous",function(){g(e);let i=c();return f(i.initReadyToShip())}),r()()}if(n&2){let e=c(),t=_e(0);l(18),N(t),l(2),_("filter",e.filter())("totaldata",t==null?null:t.length)}}function dt(n,u){n&1&&(o(0,"div",16),v(1,"app-empty-state"),r())}var Fi=(()=>{class n{constructor(){this.dialog=h(we),this.pickupService=h(Ge),this.toastr=h(be),this.orderService=h(ce),this.channelType=C,this.filter=S({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){let e=this.orderService.getOrderDefaultValue();this.filter.update(t=>K(A({},t),{From:e})),this.initReadyToShip()}initReadyToShip(){this.readyToShip$=this.orderService.getReadyToShipOrders(this.filter()).pipe(de(1))}onFilterChange(e){this.filter.update(t=>A(A({},t),e))}onSetFulfillment(e){this.pickupService.getShippingOptions(e.Number,e.ShopID,e.MarketType).pipe(se(t=>this.dialog.open(Ae,{height:"400px",width:"530px",data:{options:t,channelType:e.MarketType}}).afterClosed().pipe(pe(i=>U.IsNotEmpty(i)),G(i=>({type:i,order:e,options:t}))))).subscribe(t=>{t.type=="PICK_UP"?this.onSelectPickup(t.order,t.options):this.onSelectDropOff(t.order,t.options)})}onSelectPickup(e,t){this.dialog.open(He,{width:"530px",data:{order:e,shippingOptions:t,channelType:e.MarketType},disableClose:!0}).afterClosed().pipe(pe(i=>U.IsNotEmpty(i)),se(i=>this.pickupService.pickupOrder(e,i))).subscribe(()=>{this.toastr.success("Pickup order created successfully","Success"),this.initReadyToShip()})}onSelectDropOff(e,t){this.pickupService.dropOffOrder(e,t).subscribe(()=>{this.toastr.success("Drop-off order created successfully","Success"),this.initReadyToShip()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initReadyToShip()})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=O({type:n,selectors:[["app-ready-to-ship"]],features:[Se([ce])],decls:34,vars:12,consts:[["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],[2,"width","160px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"d-flex","align-items-center","gap-6"],[1,"actions-cell"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem"],["matTooltip","Retrieve shipping courier and reference number",1,"btn","btn-icon-only",3,"click"],[1,"fa-solid","fa-arrows-rotate","fs-6"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem",3,"click"]],template:function(t,i){if(t&1){let p=w();ge(0),D(1,"async"),o(2,"mainpanel",0),d("onSubmit",function(){return g(p),f(i.initReadyToShip())}),x("textChange",function(m){return g(p),T(i.filter().Number,m)||(i.filter().Number=m),f(m)}),o(3,"actions")(4,"a",1),v(5,"i",2),o(6,"span"),a(7,"Order Fulfillment Display"),r()()(),o(8,"filters")(9,"div")(10,"label",3),a(11,"From/To"),r(),o(12,"channel-select-options",4),x("ngModelChange",function(m){return g(p),T(i.filter().ListChannelID,m)||(i.filter().ListChannelID=m),f(m)}),r()(),o(13,"div",5)(14,"label",3),a(15,"From/To"),r(),o(16,"div",6)(17,"datepicker",7),x("dateChange",function(m){return g(p),T(i.filter().From,m)||(i.filter().From=m),f(m)}),r()(),o(18,"div")(19,"datepicker",8),x("dateChange",function(m){return g(p),T(i.filter().To,m)||(i.filter().To=m),f(m)}),r()()(),o(20,"div",5)(21,"label",9),a(22,"Page Number"),r(),o(23,"input",10),x("ngModelChange",function(m){return g(p),T(i.filter().PageNumber,m)||(i.filter().PageNumber=m),f(m)}),r()(),o(24,"div",5)(25,"label",9),a(26,"Page Size"),r(),o(27,"input",11),x("ngModelChange",function(m){return g(p),T(i.filter().PageSize,m)||(i.filter().PageSize=m),f(m)}),r()()(),o(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),M(32,ct,21,2,"div",15)(33,dt,2,0,"div",16),r()()()()()}if(t&2){let p=fe(J(1,8,i.readyToShip$)||Ce(11,nt));l(2),k("text",i.filter().Number),l(10),_("multiple",!0),k("ngModel",i.filter().ListChannelID),l(5),k("date",i.filter().From),l(2),k("date",i.filter().To),l(4),k("ngModel",i.filter().PageNumber),l(4),k("ngModel",i.filter().PageSize),l(5),b(p.length>0?32:33)}},dependencies:[P,ve,ke,j,Me,Oe,Fe,Pe,E,Te,xe,z,H,Ie,Ve,Re,Ne,Ee,Le,le,ae],styles:[".actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}"]})}}return n})();export{Fi as ReadyToShipComponent};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as Ge,b as Ue}from"./chunk-G7R7LUW4.js";import{a as qe}from"./chunk-GIRXMYNI.js";import{a as j}from"./chunk-IL5JIRWJ.js";import{d as je}from"./chunk-MH4SJTQX.js";import{a as $e}from"./chunk-CMTBBXR5.js";import{f as ke}from"./chunk-6QYD6NIJ.js";import{b as Te,d as ze,e as Oe}from"./chunk-IHNN4Q2N.js";import{B as Ne,C as Qe,D as Ve,H as Be,L as ae,d as Re,g as Ae,k as Fe,m as Pe,n as Le,x as He}from"./chunk-EQIFZBRG.js";import{i as re}from"./chunk-M2FCTYGU.js";import{$ as S,Ac as P,Bc as m,Ca as Z,Cc as h,Fc as te,Gb as E,Gc as x,Hb as N,Hc as C,Ib as b,Ka as M,Kb as R,La as ye,Mb as f,Pa as z,Qc as ie,Ra as be,Sa as O,Tc as ne,Xa as xe,Xb as w,Yb as u,Zb as Ie,_b as k,a as de,aa as he,ac as J,bc as Me,ca as y,cd as Ee,dc as _,f as L,fc as Q,gc as V,hc as B,ic as d,ja as ue,jc as c,jd as $,ka as H,kc as X,ma as fe,nc as I,oc as De,od as T,pa as l,pd as we,q as ce,qa as _e,ra as ve,rb as s,tb as D,tc as ee,uc as p,v as me,vc as A,wb as Ce,wc as F,xa as ge,ya as W,za as Y,zb as Se,zc as v}from"./chunk-B7KTCPKC.js";var Xe=["*"];function et(i,a){i&1&&F(0)}var oe=(()=>{class i{_elementRef=l(z);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return i})(),se=(()=>{class i{template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepLabel",""]]})}return i})();var g={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},tt=new fe("STEPPER_GLOBAL_OPTIONS"),q=(()=>{class i{_stepperOptions;_stepper=l(G);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new M;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=l(tt,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["cdk-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,se,5),v(r,ke,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(t,n){if(t&1&&P(D,7),t&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ge],ngContentSelectors:Xe,decls:1,vars:0,template:function(t,n){t&1&&(A(),f(0,et,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return i})(),G=(()=>{class i{_dir=l(He,{optional:!0});_changeDetectorRef=l($);_elementRef=l(z);_destroyed=new L;_keyManager;_steps;steps=new O;_stepHeader;_sortedHeaders=new O;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new M;selectedIndexChange=new M;_groupId=l(Qe).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),y(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),y(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,n)=>t._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Be(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ce()).pipe(S(this._layoutDirection()),y(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let t of e)t._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=g.NUMBER){let n=this.steps.toArray()[e],r=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?g.ERROR:!e.completed||t?g.NUMBER:e.editable?g.EDIT:g.DONE}_getGuidelineLogic(e,t,n=g.NUMBER){return e._showError()&&e.hasError&&!t?g.ERROR:e.completed&&!t?g.DONE:e.completed&&t?n:e.editable&&t?g.EDIT:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Ve(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!t&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let n=t.stepControl;return(n?n.invalid||n.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Re();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,q,5),v(r,oe,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",T],selectedIndex:[2,"selectedIndex","selectedIndex",we],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return i})();var Ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({imports:[Ne]})}return i})();function it(i,a){if(i&1&&I(0,2),i&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function nt(i,a){if(i&1&&(d(0,"span",7),x(1),c()),i&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function rt(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.completedLabel)}}function at(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ot(i,a){if(i&1&&(f(0,rt,2,1,"span",8)(1,at,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),i&2){let e=p(2);_(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function st(i,a){if(i&1&&f(0,nt,2,1,"span",7)(1,ot,4,2),i&2){let e,t=p();_((e=t.state)==="number"?0:1)}}function lt(i,a){i&1&&(d(0,"div",4),I(1,9),c()),i&2&&(s(),u("ngTemplateOutlet",a.template))}function pt(i,a){if(i&1&&(d(0,"div",4),x(1),c()),i&2){let e=p();s(),C(e.label)}}function dt(i,a){if(i&1&&(d(0,"div",5),x(1),c()),i&2){let e=p();s(),C(e._intl.optionalLabel)}}function ct(i,a){if(i&1&&(d(0,"div",6),x(1),c()),i&2){let e=p();s(),C(e.errorMessage)}}var We=["*"];function mt(i,a){}function ht(i,a){if(i&1&&(F(0),f(1,mt,0,0,"ng-template",0)),i&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var ut=["animatedContainer"],Ye=(i,a)=>({step:i,i:a});function ft(i,a){i&1&&F(0)}function _t(i,a){i&1&&X(0,"div",7)}function vt(i,a){if(i&1&&(I(0,6),f(1,_t,1,0,"div",7)),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count;p(2);let o=te(4);u("ngTemplateOutlet",o)("ngTemplateOutletContext",ne(3,Ye,e,t)),s(),_(n!==r-1?1:-1)}}function gt(i,a){if(i&1&&(d(0,"div",8,1),I(2,9),c()),i&2){let e=a.$implicit,t=a.$index,n=p(2);J("mat-horizontal-stepper-content-"+n._getAnimationDirection(t)),u("id",n._getStepContentId(t)),w("aria-labelledby",n._getStepLabelId(t))("inert",n.selectedIndex===t?null:""),s(2),u("ngTemplateOutlet",e.content)}}function yt(i,a){if(i&1&&(d(0,"div",2)(1,"div",3),V(2,vt,2,6,null,null,Q),c(),d(4,"div",4),V(5,gt,3,6,"div",5,Q),c()()),i&2){let e=p();s(2),B(e.steps),s(3),B(e.steps)}}function bt(i,a){if(i&1&&(d(0,"div",10),I(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),I(6,9),c()()()()),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count,o=p(2),K=te(4);s(),u("ngTemplateOutlet",K)("ngTemplateOutletContext",ne(10,Ye,e,t)),s(),k("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===t),w("inert",o.selectedIndex===t?null:""),s(2),u("id",o._getStepContentId(t)),w("aria-labelledby",o._getStepLabelId(t)),s(2),u("ngTemplateOutlet",e.content)}}function xt(i,a){if(i&1&&V(0,bt,7,13,"div",10,Q),i&2){let e=p();B(e.steps)}}function Ct(i,a){if(i&1){let e=De();d(0,"mat-step-header",14),ee("click",function(){let n=W(e).step;return Y(n.select())})("keydown",function(n){W(e);let r=p();return Y(r._onKeydown(n))}),c()}if(i&2){let e=a.step,t=a.i,n=p();k("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),u("tabIndex",n._getFocusIndex()===t?0:-1)("id",n._getStepLabelId(t))("index",t)("state",n._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",n.selectedIndex===t)("active",n._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(t,e))("color",e.color||n.color),w("aria-posinset",t+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(t))("aria-selected",n.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(t,e)?null:!0)}}var le=(()=>{class i extends se{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matStepLabel",""]],features:[R]})}return i})(),U=(()=>{class i{changes=new L;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||i)};static \u0275prov=ue({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function St(i){return i||new U}var It={provide:U,deps:[[new _e,new ve,U]],useFactory:St},pe=(()=>{class i extends oe{_intl=l(U);_focusMonitor=l(Fe);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Pe);e.load($e),e.load(Le);let t=l($);this._intlSubscription=this._intl.changes.subscribe(()=>t.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof le?null:this.label}_templateLabel(){return this.label instanceof le?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,n){t&2&&J("mat-"+(n.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[R],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(X(0,"div",0),d(1,"div")(2,"div",1),f(3,it,1,2,"ng-container",2)(4,st,2,1),c()(),d(5,"div",3),f(6,lt,2,1,"div",4)(7,pt,2,1,"div",4)(8,dt,2,1,"div",5)(9,ct,2,1,"div",6),c()),t&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),Me("mat-step-icon-state-",n.state," mat-step-icon"),k("mat-step-icon-selected",n.selected),s(2),_(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),k("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),_((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),_(n.optional&&n.state!="error"?8:-1),s(),_(n.state==="error"?9:-1)}},dependencies:[je,re,Ge],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
1
|
+
import{a as Ge,b as Ue}from"./chunk-74ELVGDK.js";import{a as qe}from"./chunk-QP4C4R4W.js";import{a as j}from"./chunk-6L7TD5DW.js";import{d as je}from"./chunk-WLRPCY65.js";import{a as $e}from"./chunk-JVNHFIYT.js";import{f as ke}from"./chunk-5PS6ZS3N.js";import{b as Te,d as ze,e as Oe}from"./chunk-NNRBGHXB.js";import{B as Ne,C as Qe,D as Ve,H as Be,L as ae,d as Re,g as Ae,k as Fe,m as Pe,n as Le,x as He}from"./chunk-BJUPMCEP.js";import{i as re}from"./chunk-FXQKRJWU.js";import{$ as S,Ac as P,Bc as m,Ca as Z,Cc as h,Fc as te,Gb as E,Gc as x,Hb as N,Hc as C,Ib as b,Ka as M,Kb as R,La as ye,Mb as f,Pa as z,Qc as ie,Ra as be,Sa as O,Tc as ne,Xa as xe,Xb as w,Yb as u,Zb as Ie,_b as k,a as de,aa as he,ac as J,bc as Me,ca as y,cd as Ee,dc as _,f as L,fc as Q,gc as V,hc as B,ic as d,ja as ue,jc as c,jd as $,ka as H,kc as X,ma as fe,nc as I,oc as De,od as T,pa as l,pd as we,q as ce,qa as _e,ra as ve,rb as s,tb as D,tc as ee,uc as p,v as me,vc as A,wb as Ce,wc as F,xa as ge,ya as W,za as Y,zb as Se,zc as v}from"./chunk-OJMQBH6T.js";var Xe=["*"];function et(i,a){i&1&&F(0)}var oe=(()=>{class i{_elementRef=l(z);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return i})(),se=(()=>{class i{template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepLabel",""]]})}return i})();var g={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},tt=new fe("STEPPER_GLOBAL_OPTIONS"),q=(()=>{class i{_stepperOptions;_stepper=l(G);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;interacted=!1;interactedStream=new M;label;errorMessage;ariaLabel;ariaLabelledby;state;editable=!0;optional=!1;get completed(){return this._completedOverride==null?this._getDefaultCompleted():this._completedOverride}set completed(e){this._completedOverride=e}_completedOverride=null;_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return this._customError==null?this._getDefaultError():this._customError}set hasError(e){this._customError=e}_customError=null;_getDefaultError(){return this.stepControl&&this.stepControl.invalid&&this.interacted}constructor(){let e=l(tt,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this.interacted=!1,this._completedOverride!=null&&(this._completedOverride=!1),this._customError!=null&&(this._customError=!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this.interacted||(this.interacted=!0,this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError!=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["cdk-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,se,5),v(r,ke,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(t,n){if(t&1&&P(D,7),t&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",T],optional:[2,"optional","optional",T],completed:[2,"completed","completed",T],hasError:[2,"hasError","hasError",T]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[ge],ngContentSelectors:Xe,decls:1,vars:0,template:function(t,n){t&1&&(A(),f(0,et,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return i})(),G=(()=>{class i{_dir=l(He,{optional:!0});_changeDetectorRef=l($);_elementRef=l(z);_destroyed=new L;_keyManager;_steps;steps=new O;_stepHeader;_sortedHeaders=new O;linear=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._steps?(this._isValidIndex(e),this._selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this._selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex=e}_selectedIndex=0;get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new M;selectedIndexChange=new M;_groupId=l(Qe).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),y(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(t=>t._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),y(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((t,n)=>t._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Be(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ce()).pipe(S(this._layoutDirection()),y(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this._selectedIndex),this.steps.changes.subscribe(()=>{this.selected||(this._selectedIndex=Math.max(this._selectedIndex-1,0))}),this._isValidIndex(this._selectedIndex)||(this._selectedIndex=0),this.linear&&this._selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex);for(let t of e)t._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let t=e-this._selectedIndex;return t<0?this._layoutDirection()==="rtl"?"next":"previous":t>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getIndicatorType(e,t=g.NUMBER){let n=this.steps.toArray()[e],r=this._isCurrentStep(e);return n._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(n,r):this._getGuidelineLogic(n,r,t)}_getDefaultIndicatorLogic(e,t){return e._showError()&&e.hasError&&!t?g.ERROR:!e.completed||t?g.NUMBER:e.editable?g.EDIT:g.DONE}_getGuidelineLogic(e,t,n=g.NUMBER){return e._showError()&&e.hasError&&!t?g.ERROR:e.completed&&!t?g.DONE:e.completed&&t?n:e.editable&&t?g.EDIT:n}_isCurrentStep(e){return this._selectedIndex===e}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(e){let t=this.steps.toArray();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:this._selectedIndex,selectedStep:t[e],previouslySelectedStep:t[this._selectedIndex]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex=e,this.selectedIndexChange.emit(this._selectedIndex),this._stateChanged()}_onKeydown(e){let t=Ve(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!t&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(t=>{let n=t.stepControl;return(n?n.invalid||n.pending||!t.interacted:!t.completed)&&!t.optional&&!t._completedOverride}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,t=Re();return e===t||e.contains(t)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["","cdkStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,q,5),v(r,oe,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",T],selectedIndex:[2,"selectedIndex","selectedIndex",we],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return i})();var Ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({imports:[Ne]})}return i})();function it(i,a){if(i&1&&I(0,2),i&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",e._getIconContext())}}function nt(i,a){if(i&1&&(d(0,"span",7),x(1),c()),i&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function rt(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.completedLabel)}}function at(i,a){if(i&1&&(d(0,"span",8),x(1),c()),i&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ot(i,a){if(i&1&&(f(0,rt,2,1,"span",8)(1,at,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),i&2){let e=p(2);_(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function st(i,a){if(i&1&&f(0,nt,2,1,"span",7)(1,ot,4,2),i&2){let e,t=p();_((e=t.state)==="number"?0:1)}}function lt(i,a){i&1&&(d(0,"div",4),I(1,9),c()),i&2&&(s(),u("ngTemplateOutlet",a.template))}function pt(i,a){if(i&1&&(d(0,"div",4),x(1),c()),i&2){let e=p();s(),C(e.label)}}function dt(i,a){if(i&1&&(d(0,"div",5),x(1),c()),i&2){let e=p();s(),C(e._intl.optionalLabel)}}function ct(i,a){if(i&1&&(d(0,"div",6),x(1),c()),i&2){let e=p();s(),C(e.errorMessage)}}var We=["*"];function mt(i,a){}function ht(i,a){if(i&1&&(F(0),f(1,mt,0,0,"ng-template",0)),i&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var ut=["animatedContainer"],Ye=(i,a)=>({step:i,i:a});function ft(i,a){i&1&&F(0)}function _t(i,a){i&1&&X(0,"div",7)}function vt(i,a){if(i&1&&(I(0,6),f(1,_t,1,0,"div",7)),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count;p(2);let o=te(4);u("ngTemplateOutlet",o)("ngTemplateOutletContext",ne(3,Ye,e,t)),s(),_(n!==r-1?1:-1)}}function gt(i,a){if(i&1&&(d(0,"div",8,1),I(2,9),c()),i&2){let e=a.$implicit,t=a.$index,n=p(2);J("mat-horizontal-stepper-content-"+n._getAnimationDirection(t)),u("id",n._getStepContentId(t)),w("aria-labelledby",n._getStepLabelId(t))("inert",n.selectedIndex===t?null:""),s(2),u("ngTemplateOutlet",e.content)}}function yt(i,a){if(i&1&&(d(0,"div",2)(1,"div",3),V(2,vt,2,6,null,null,Q),c(),d(4,"div",4),V(5,gt,3,6,"div",5,Q),c()()),i&2){let e=p();s(2),B(e.steps),s(3),B(e.steps)}}function bt(i,a){if(i&1&&(d(0,"div",10),I(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),I(6,9),c()()()()),i&2){let e=a.$implicit,t=a.$index,n=a.$index,r=a.$count,o=p(2),K=te(4);s(),u("ngTemplateOutlet",K)("ngTemplateOutletContext",ne(10,Ye,e,t)),s(),k("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===t),w("inert",o.selectedIndex===t?null:""),s(2),u("id",o._getStepContentId(t)),w("aria-labelledby",o._getStepLabelId(t)),s(2),u("ngTemplateOutlet",e.content)}}function xt(i,a){if(i&1&&V(0,bt,7,13,"div",10,Q),i&2){let e=p();B(e.steps)}}function Ct(i,a){if(i&1){let e=De();d(0,"mat-step-header",14),ee("click",function(){let n=W(e).step;return Y(n.select())})("keydown",function(n){W(e);let r=p();return Y(r._onKeydown(n))}),c()}if(i&2){let e=a.step,t=a.i,n=p();k("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),u("tabIndex",n._getFocusIndex()===t?0:-1)("id",n._getStepLabelId(t))("index",t)("state",n._getIndicatorType(t,e.state))("label",e.stepLabel||e.label)("selected",n.selectedIndex===t)("active",n._stepIsNavigable(t,e))("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!n._stepIsNavigable(t,e))("color",e.color||n.color),w("aria-posinset",t+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(t))("aria-selected",n.selectedIndex==t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",n._stepIsNavigable(t,e)?null:!0)}}var le=(()=>{class i extends se{static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275dir=b({type:i,selectors:[["","matStepLabel",""]],features:[R]})}return i})(),U=(()=>{class i{changes=new L;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(t){return new(t||i)};static \u0275prov=ue({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function St(i){return i||new U}var It={provide:U,deps:[[new _e,new ve,U]],useFactory:St},pe=(()=>{class i extends oe{_intl=l(U);_focusMonitor=l(Fe);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Pe);e.load($e),e.load(Le);let t=l($);this._intlSubscription=this._intl.changes.subscribe(()=>t.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,t){e?this._focusMonitor.focusVia(this._elementRef,e,t):this._elementRef.nativeElement.focus(t)}_stringLabel(){return this.label instanceof le?null:this.label}_templateLabel(){return this.label instanceof le?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:2,hostBindings:function(t,n){t&2&&J("mat-"+(n.color||"primary"))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[R],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(X(0,"div",0),d(1,"div")(2,"div",1),f(3,it,1,2,"ng-container",2)(4,st,2,1),c()(),d(5,"div",3),f(6,lt,2,1,"div",4)(7,pt,2,1,"div",4)(8,dt,2,1,"div",5)(9,ct,2,1,"div",6),c()),t&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),Me("mat-step-icon-state-",n.state," mat-step-icon"),k("mat-step-icon-selected",n.selected),s(2),_(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),k("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),_((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),_(n.optional&&n.state!="error"?8:-1),s(),_(n.state==="error"?9:-1)}},dependencies:[je,re,Ge],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-inverse-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color);color:var(--mat-stepper-header-done-state-icon-foreground-color)}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return i})(),Mt=(()=>{class i{templateRef=l(D);name;constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return i})(),Dt=(()=>{class i{_template=l(D);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=b({type:i,selectors:[["ng-template","matStepContent",""]]})}return i})(),Et=(()=>{class i extends q{_errorStateMatcher=l(j,{skipSelf:!0});_viewContainerRef=l(Se);_isSelected=de.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(he(()=>this._stepper.selectionChange.pipe(me(e=>e.selectedStep===this),S(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Te(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,t){let n=this._errorStateMatcher.isErrorState(e,t),r=!!(e&&e.invalid&&this.interacted);return n||r}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Z(i)))(n||i)}})();static \u0275cmp=E({type:i,selectors:[["mat-step"]],contentQueries:function(t,n,r){if(t&1&&(v(r,le,5),v(r,Dt,5)),t&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._lazyContent=o.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ie([{provide:j,useExisting:i},{provide:q,useExisting:i}]),R],ngContentSelectors:We,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(t,n){t&1&&(A(),f(0,ht,2,1,"ng-template"))},dependencies:[ze],encapsulation:2,changeDetection:0})}return i})(),wt=(()=>{class i extends G{_ngZone=l(ye);_renderer=l(Ce);_animationsModule=l(xe,{optional:!0});_cleanupTransition;_isAnimating=be(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new O;_icons;animationDone=new M;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!l(Ae).isBrowser;constructor(){super();let t=l(z).nativeElement.nodeName.toLowerCase();this.orientation=t==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:t})=>this._iconOverrides[e]=t),this.steps.changes.pipe(y(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(y(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsModule!=="NoopAnimations"&&setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(S(null),y(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_stepIsNavigable(e,t){return t.completed||this.selectedIndex===e||!this.linear}_getAnimationDuration(){return this._animationsModule==="NoopAnimations"?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let t=e.target;if(!t)return;let n=this.orientation==="horizontal"&&e.propertyName==="transform"&&t.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&t.classList.contains("mat-vertical-content-container-active");(n||r)&&this._animatedContainers.find(K=>K.nativeElement===t)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(t,n,r){if(t&1&&(v(r,Et,5),v(r,Mt,5)),t&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._icons=o)}},viewQuery:function(t,n){if(t&1&&(P(pe,5),P(ut,5)),t&2){let r;m(r=h())&&(n._stepHeader=r),m(r=h())&&(n._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(t,n){t&2&&(w("aria-orientation",n.orientation),Ie("--mat-stepper-animation-duration",n._getAnimationDuration()),k("mat-stepper-horizontal",n.orientation==="horizontal")("mat-stepper-vertical",n.orientation==="vertical")("mat-stepper-label-position-end",n.orientation==="horizontal"&&n.labelPosition=="end")("mat-stepper-label-position-bottom",n.orientation==="horizontal"&&n.labelPosition=="bottom")("mat-stepper-header-position-bottom",n.headerPosition==="bottom")("mat-stepper-animating",n._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ie([{provide:G,useExisting:i}]),R],ngContentSelectors:We,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(t,n){if(t&1&&(A(),f(0,ft,1,0)(1,yt,7,0,"div",2)(2,xt,2,0)(3,Ct,1,23,"ng-template",null,0,Ee)),t&2){let r;_(n._isServer?0:-1),s(),_((r=n.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[re,pe],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;height:72px;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}return i})();var Di=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=N({type:i});static \u0275inj=H({providers:[It,j],imports:[ae,Oe,Ke,Ue,qe,wt,pe,ae]})}return i})();export{tt as a,le as b,Mt as c,Dt as d,Et as e,wt as f,Di as g};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ja as s}from"./chunk-
|
|
1
|
+
import{ja as s}from"./chunk-OJMQBH6T.js";var p=(()=>{class r{constructor(){}getParseToken(){let t=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(t.Token.access_token)}GetRoles(){let e=this.getParseToken()["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];return typeof e=="string"&&(e=[e]),e||[]}ParseToken(t){try{let o=t.split(".")[0].replace("-","+").replace("_","/"),n=JSON.parse(window.atob(o)),c=t.split(".")[1].replace("-","+").replace("_","/"),a=JSON.parse(window.atob(c));return a.header=n,a}catch{return!1}}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=s({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{p as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as oe}from"./chunk-
|
|
1
|
+
import{a as oe}from"./chunk-OLANEXLB.js";import{a as le,b as re}from"./chunk-HFCAD7GH.js";import"./chunk-4KHHGHFJ.js";import"./chunk-HVCIQI7B.js";import"./chunk-6RLISMEX.js";import"./chunk-TH6VZX34.js";import"./chunk-QS22J2SC.js";import"./chunk-QP4C4R4W.js";import"./chunk-SDUUFQUI.js";import"./chunk-6L7TD5DW.js";import"./chunk-WLRPCY65.js";import"./chunk-3UN6FPMN.js";import"./chunk-LDPDLCRL.js";import"./chunk-JVNHFIYT.js";import{b as ae}from"./chunk-RTT3JVJM.js";import{h as X}from"./chunk-NFN7BQB3.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-J53BPEDH.js";import"./chunk-TGMCGROM.js";import"./chunk-MW6Q6DZF.js";import{e as Q}from"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import{a as Y,b as Z,d as ee,e as te}from"./chunk-PYXL7UF7.js";import{c as K}from"./chunk-PW42BQIY.js";import{m as ne,n as ie}from"./chunk-FO7G4GMY.js";import{A as G,h as H,m as U}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import"./chunk-ERXVXBTU.js";import"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{j as V,k as J,l as W,n as k}from"./chunk-FXQKRJWU.js";import{$c as m,Gb as P,Gc as p,Hc as C,Ic as y,Kc as j,Lc as O,Mb as u,Mc as q,Qc as z,Yb as d,Z as M,aa as D,ad as c,bd as A,dc as R,ec as B,g as L,gc as T,hc as $,ic as i,ja as w,jc as a,kc as f,oc as F,pa as g,pb as S,rb as l,tc as v,uc as x,v as I,ya as E,za as N}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as _}from"./chunk-66YHNWRR.js";var b=(()=>{class n{constructor(){this.httpService=g(Q),this._pageination=new L({PageNumber:1,RowCount:100,ChannelID:null}),this.filter$=this._pageination.asObservable(),this.log$=this.filter$.pipe(D(e=>this.getLogs$(e).pipe()))}getLogs$(e){return this.httpService.post("/api/Channel/GetChannelLogPaged",e)}onPaginationChange(e){let t=this._pageination.value;t.PageNumber=e.pageIndex+1,this._pageination.next(t)}onFilter(e){let t=this._pageination.value;t.PageNumber=1,t=_(_({},t),e),this._pageination.next(t)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275prov=w({token:n,factory:n.\u0275fac})}}return n})();function me(n,h){if(n&1&&(i(0,"span",10),f(1,"img",11),a(),p(2)),n&2){let e=h.item;l(),d("src",e.Img,S)("alt",e.Name),l(),y(" ",e.Name," ")}}function se(n,h){if(n&1&&(i(0,"tr")(1,"td"),f(2,"img",17),i(3,"span"),p(4),a()(),i(5,"td")(6,"span",18),p(7),m(8,"json"),a()(),i(9,"td"),p(10),m(11,"json"),a(),i(12,"td"),p(13),m(14,"date"),a()()),n&2){let e=h.$implicit;l(2),d("src",e.Img,S),l(2),y(" ",e.ChannelName," "),l(3),C(c(8,5,e.Request)),l(3),C(c(11,7,e.Response)),l(3),C(A(14,9,e.Created,"dd-MM-yyyy hh:mm:ss"))}}function ce(n,h){if(n&1){let e=F();i(0,"div",8)(1,"table",12)(2,"thead")(3,"tr",13)(4,"th",14),p(5,"Channel"),a(),i(6,"th"),p(7,"Request"),a(),i(8,"th"),p(9,"Response"),a(),i(10,"th",15),p(11,"Created"),a()()(),i(12,"tbody"),T(13,se,15,12,"tr",null,B),m(15,"async"),a()(),i(16,"mat-paginator",16),m(17,"async"),m(18,"async"),m(19,"async"),m(20,"async"),v("page",function(r){E(e);let o=x();return N(o.channelLogService.onPaginationChange(r))}),a()()}if(n&2){let e,t,r,o,s=x();l(13),$((e=c(15,3,s.channelLogs$))==null?null:e.Data),l(3),d("length",(t=c(17,5,s.channelLogs$))==null?null:t.Count)("pageSize",(r=c(18,7,s.filter$))==null?null:r.RowCount)("pageIndex",(o=c(19,9,s.filter$))!=null&&o.PageNumber?0:((o=c(20,11,s.filter$))==null?null:o.PageNumber)-1)}}function de(n,h){n&1&&(i(0,"div",9),f(1,"app-empty-state"),a())}var Oe=(()=>{class n{constructor(){this.channelLogService=g(b),this.authService=g(X),this.channelOptions=this.authService.getChannels(),this.channelLogs$=this.channelLogService.log$.pipe(I(e=>(e.Data?e.Data=e.Data.map(t=>(t.Response=t.Response?JSON.parse(t.Response):"",t.Request=t.Request?JSON.parse(t.Request):"",t.Img=K.getChannelLogoByTypeId(t.TypeID),t)):e.Data=[],e)),M(1)),this.filter$=this.channelLogService.filter$}onSubmitFilter(){this.channelLogService.onFilter({ChannelID:this.channelID})}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=P({type:n,selectors:[["app-channel-log"]],features:[z([b])],decls:15,vars:7,consts:[["headerTitle","Authorization Log",3,"onSubmit","hideSearchBox"],["container",""],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"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,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[3,"page","length","pageSize","pageIndex"],[1,"me-2",2,"width","25px",3,"src"],[1,""]],template:function(t,r){if(t&1&&(i(0,"mainpanel",0),v("onSubmit",function(){return r.onSubmitFilter()}),i(1,"filters")(2,"div",1)(3,"div")(4,"label",2),p(5,"Channel"),a(),i(6,"ng-select",3),q("ngModelChange",function(s){return O(r.channelID,s)||(r.channelID=s),s}),u(7,me,3,3,"ng-template",4),a()()()(),i(8,"content")(9,"div",5)(10,"div",6)(11,"div",7),u(12,ce,21,13,"div",8),m(13,"async"),u(14,de,2,0,"div",9),a()()()()()),t&2){let o;d("hideSearchBox",!0),l(6),d("clearable",!0)("items",r.channelOptions),j("ngModel",r.channelID),l(6),R(((o=c(13,5,r.channelLogs$))==null||o.Data==null?null:o.Data.length)>0?12:14)}},dependencies:[k,V,W,J,ie,ne,oe,re,le,ae,te,ee,Y,Z,G,H,U],encapsulation:2})}}return n})();export{Oe as ChannelLogComponent};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{Gb as e}from"./chunk-
|
|
1
|
+
import{Gb as e}from"./chunk-OJMQBH6T.js";var n=(()=>{class t{static \u0275fac=function(o){return new(o||t)};static \u0275cmp=e({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(o,a){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return t})();export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as D}from"./chunk-
|
|
1
|
+
import{a as D}from"./chunk-AHLYED4C.js";import{a as fe}from"./chunk-WJAE4LW2.js";import"./chunk-DFGZ4L65.js";import{a as U}from"./chunk-UMP6ZMEJ.js";import"./chunk-UHTMVOX6.js";import"./chunk-7AE3725T.js";import{a as re}from"./chunk-Z3ITXK3D.js";import{a as pe}from"./chunk-ACIMXBIC.js";import"./chunk-MW6Q6DZF.js";import{b as ae}from"./chunk-W5L6FMO3.js";import"./chunk-K5XRGNWG.js";import{c as oe}from"./chunk-PW42BQIY.js";import{m as me,n as ue}from"./chunk-FO7G4GMY.js";import{A as ie}from"./chunk-5PS6ZS3N.js";import"./chunk-V3USB3ZU.js";import{b as le,c as se}from"./chunk-ERXVXBTU.js";import{r as de,s as ce}from"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{E as Y,G as ee,H as te,J as ne,d as K,g as Q,j as W,m as X,n as P}from"./chunk-FXQKRJWU.js";import{$c as _,Gb as x,Gc as s,Hc as h,Ic as z,Jb as L,Mb as m,Nc as q,Oc as $,Pc as C,Qc as j,Sc as I,Tc as J,Yb as p,Z as V,aa as w,ac as S,ad as y,dc as T,ec as k,gc as A,hc as H,ic as a,jc as l,kc as u,lc as g,mc as v,ob as F,oc as B,pa as b,rb as r,rd as Z,tc as G,uc as c,v as M,ya as N,za as R}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import{a as E,b as O}from"./chunk-66YHNWRR.js";var ge=(()=>{class t{transform(e){return typeof e=="number"&&(e=e.toString()),e!=null?e.replace(/\n/g,"<br />"):e}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275pipe=L({name:"newlines",type:t,pure:!0})}}return t})();var Ce=t=>({disabled:t}),_e=(t,d)=>({labelFilledInput:t,labelEmptyInput:d});function ye(t,d){if(t&1&&(a(0,"p"),s(1),_(2,"number"),l()),t&2){let e=c();r(),h(e.inputValueType()==="number"?y(2,1,e.inputValue):e.inputValue)}}function xe(t,d){if(t&1&&(u(0,"p",3),_(1,"newlines")),t&2){let e=c();p("innerHTML",y(1,1,e.inputValue),F)}}function Ie(t,d){if(t&1&&(g(0),s(1),v()),t&2){let e=c();r(),z(" ",e.labelValue," ")}}var ve=(()=>{class t{constructor(){this.inputValue="",this.labelValue="",this.inputType="input",this.labelVisible=!0,this.disabled=!1,this.class="mb-6",this.tooltip="",this.isInputFilled=!1,this.isNotEmpty=pe.IsNotEmpty}inputValueType(){return typeof this.inputValue}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["lib-info-page-input"]],inputs:{inputValue:"inputValue",labelValue:"labelValue",inputType:"inputType",labelVisible:"labelVisible",disabled:"disabled",class:"class",tooltip:"tooltip"},decls:5,vars:14,consts:[["matTooltipPosition","above",3,"ngClass","matTooltip"],[4,"ngIf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"]],template:function(o,n){o&1&&(a(0,"div",0),m(1,ye,3,3,"p",1)(2,xe,2,3,"p",2),a(3,"label"),m(4,Ie,2,1,"ng-container",1),l()()),o&2&&(S(n.class),p("ngClass",I(9,Ce,n.disabled))("matTooltip",n.tooltip),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="input"),r(),p("ngIf",n.isNotEmpty(n.inputValue)&&n.inputType=="textarea"),r(),S(J(11,_e,n.isNotEmpty(n.inputValue),!n.isNotEmpty(n.inputValue))),r(),p("ngIf",n.labelVisible))},dependencies:[P,K,Q,X,ge,ce,de],styles:["div[_ngcontent-%COMP%]{border:1px solid #ced4da;position:relative;margin-bottom:1rem;border-radius:.25rem!important}p[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem}.labelFilledInput[_ngcontent-%COMP%]{position:absolute;top:-10px;left:10px;background:#fff;padding-left:4px;padding-right:4px;font-size:.75rem!important;color:#9da2a6}.labelEmptyInput[_ngcontent-%COMP%]{margin-top:18px;margin-bottom:18px;padding-left:.75rem!important;font-size:.875rem;color:#ccc}.disabled[_ngcontent-%COMP%]{background-color:#e9ecef;opacity:1}"]})}}return t})();var Pe=t=>({ID:t});function Me(t,d){if(t&1){let e=B();a(0,"button",24),G("click",function(){N(e);let n=c(2),i=C(0);return R(n.onDeleteUser(i==null||i.selectedUser==null?null:i.selectedUser.ID))}),u(1,"i",25),s(2," Delete "),l()}}function Se(t,d){if(t&1&&(g(0),m(1,Me,3,0,"button",23),v()),t&2){let e,o=c(),n=C(0);r(),T((n==null||n.selectedUser==null?null:n.selectedUser.Name)!==((e=o.currentLoginUser())==null?null:e.username)?1:-1)}}function Te(t,d){if(t&1&&(g(0),a(1,"a",26),u(2,"i",27),s(3," Edit "),l(),v()),t&2){c();let e=C(0);r(),p("queryParams",I(1,Pe,e==null||e.selectedUser==null?null:e.selectedUser.ID))}}function Ue(t,d){t&1&&(a(0,"div",20),s(1," All channels assigned to this user "),l())}function De(t,d){if(t&1&&u(0,"p-chip",28),t&2){let e=d.$implicit;p("label",e.Name)("image",e.logo)("alt",e.Name)}}function Ee(t,d){if(t&1&&A(0,De,1,3,"p-chip",28,k),t&2){c();let e=C(0);H(e==null?null:e.selectedChannels)}}var ot=(()=>{class t{constructor(){this.userService=b(D),this.activatedRoute=b(Y),this.toastService=b(ae),this.router=b(ee),this.userLoader$=this.activatedRoute.queryParams.pipe(w(e=>{let o=e.ID||null;return this.userService.getUserFormLoader(o).pipe(V(1),M(n=>(n.Options.Channels=oe.assignChannelLogo(n.Options.Channels),n)))}),M(e=>{let o=e.Options.Users.find(f=>f.ID===e.Form?.ID),n=e.Options.Groups.find(f=>f.ID===e.Form?.GroupID),i=e.Options.Channels.filter(f=>e.UserChannels?.includes(f.ID));return O(E({},e),{selectedUser:o||null,selectedGroup:n||null,selectedChannels:i||[],DownloadOrderDaysRange:e.Form?.DownloadOrderDaysRange||"0"})})),this.userEditRole=U.UserEdit,this.userDeleteRole=U.UserDelete,this.currentLoginUser=Z(()=>{let e=localStorage.getItem(re.AUTHORIZATION);return e?JSON.parse(e):null})}onDeleteUser(e){confirm("Are you sure you want to delete this user?")&&this.userService.deleteUsers([e]).subscribe({next:()=>{this.router.navigate(["/menu/users/users"]),this.toastService.success("User deleted successfully","Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-user-info"]],features:[j([D])],decls:50,vars:12,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5","bg-light-gray"],[1,"row","mt-8"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body","mt-8","pb-4"],[1,"row"],[1,"col-6"],[1,"info-label-group"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","channel-tab","data-bs-toggle","tab","data-bs-target","#channel-tab-pane","type","button","role","tab","aria-controls","channel-tab-pane","aria-selected","true",1,"nav-link","active"],["id","restriction-tab","data-bs-toggle","tab","data-bs-target","#restriction-tab-pane","type","button","role","tab","aria-controls","restriction-tab-pane","aria-selected","false",1,"nav-link"],[1,"card","rounded-0","border-top-0"],[1,"card-body","pb-4"],["id","myTabContent",1,"tab-content"],["id","channel-tab-pane","role","tabpanel","aria-labelledby","channel-tab","tabindex","0",1,"tab-pane","fade","show","active"],[1,"text-center","fs-5","opacity-50"],["id","restriction-tab-pane","role","tabpanel","aria-labelledby","restriction-tab-pane","tabindex","1",1,"tab-pane","fade"],["tooltip","How many days of past orders this user can download.","labelValue","Download Order Days Range","inputType","input",3,"inputValue"],[1,"btn","btn-outline-secondary"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/users/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[1,"me-3","mb-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"label","image","alt"]],template:function(o,n){if(o&1&&(q(0),_(1,"async"),a(2,"mainpanel",0)(3,"actions")(4,"div",1),m(5,Se,2,1,"ng-container",2)(6,Te,4,3,"ng-container",2),l()(),a(7,"content")(8,"div",3)(9,"div",4)(10,"div",5)(11,"div",6)(12,"div",7)(13,"h3"),s(14,"User Information"),l()(),a(15,"div",8)(16,"div",9)(17,"div",10)(18,"div",11)(19,"label"),s(20,"Selected User"),l(),a(21,"div")(22,"span"),s(23),l()()()(),a(24,"div",10)(25,"div",11)(26,"label"),s(27,"Selected Group"),l(),a(28,"div")(29,"span"),s(30),l()()()()()()()()(),a(31,"div",9)(32,"div",5)(33,"ul",12)(34,"li",13)(35,"button",14),s(36," Channels Filter "),l()(),a(37,"li",13)(38,"button",15),s(39," Restriction "),l()()(),a(40,"div",16)(41,"div",17)(42,"div",18)(43,"div",19),m(44,Ue,2,0,"div",20)(45,Ee,2,0),l(),a(46,"div",21)(47,"div",9)(48,"div",10),u(49,"lib-info-page-input",22),l()()()()()()()()()()()),o&2){let i=$(y(1,9,n.userLoader$));r(2),p("headerTitle",(i==null||i.selectedUser==null?null:i.selectedUser.Name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),r(3),p("ngxPermissionsOnly",n.userDeleteRole),r(),p("ngxPermissionsOnly",n.userEditRole),r(17),h(i==null||i.selectedUser==null?null:i.selectedUser.Name),r(7),h(i==null||i.selectedGroup==null?null:i.selectedGroup.Name),r(14),T((i==null||i.selectedChannels==null?null:i.selectedChannels.length)===0?44:45),r(5),p("inputValue",i==null?null:i.DownloadOrderDaysRange)}},dependencies:[P,W,ue,me,ie,ne,te,fe,se,le,ve],styles:[".nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-link.active[_ngcontent-%COMP%]:focus, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:hover, .nav-tabs[_ngcontent-%COMP%] .nav-item.show[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]:focus{background-color:#fff!important;border-color:#dee2e6 #dee2e6 #fff}"]})}}return t})();export{ot as UserInfoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"./chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"./chunk-CHWXOJDB.js";import"./chunk-K5XRGNWG.js";import"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";export{l as AnimationDriver,k as NoopAnimationDriver,u as \u0275Animation,q as \u0275AnimationEngine,w as \u0275AnimationRenderer,x as \u0275AnimationRendererFactory,m as \u0275AnimationStyleNormalizer,v as \u0275BaseAnimationRenderer,f as \u0275ENTER_CLASSNAME,g as \u0275LEAVE_CLASSNAME,n as \u0275NoopAnimationStyleNormalizer,p as \u0275TransitionAnimationPlayer,s as \u0275WebAnimationsDriver,r as \u0275WebAnimationsPlayer,o as \u0275WebAnimationsStyleNormalizer,j as \u0275allowPreviousPlayerStylesMerge,i as \u0275camelCaseToDashCase,d as \u0275containsElement,t as \u0275createEngine,a as \u0275getParentElement,e as \u0275invokeQuery,h as \u0275normalizeKeyframes,b as \u0275validateStyleProperty,c as \u0275validateWebAnimatableStyleProperty};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t}from"./chunk-UMP6ZMEJ.js";import{a as u,b as c}from"./chunk-A64VIOKR.js";import"./chunk-ERXVXBTU.js";import"./chunk-NNRBGHXB.js";import"./chunk-BJUPMCEP.js";import{F as s,J as p,n as d}from"./chunk-FXQKRJWU.js";import{Gb as i,Yb as l,ic as a,jc as m,kc as r,rb as n}from"./chunk-OJMQBH6T.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var y=(()=>{class e{constructor(){this.tabs=[{Title:"All",Url:"/menu/order/all"},{Title:"To Ship",Url:"/menu/order/to-ship"},{Title:"Awaiting Collection",Url:"/menu/order/awaiting-collection"},{Title:"Shipped",Url:"/menu/order/shipped"},{Title:"Completed",Url:"/menu/order/completed"},{Title:"Cancelled",Url:"/menu/order/cancelled"},{Title:"Download",Url:"/menu/order/download",Permissions:[t.DownloadOrder]},{Title:"Log",Url:"/menu/order/log",Permissions:[t.DownloadOrder]}]}static{this.\u0275fac=function(o){return new(o||e)}}static{this.\u0275cmp=i({type:e,selectors:[["app-orders-v2"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(o,v){o&1&&(a(0,"nav",0)(1,"div",1)(2,"div"),r(3,"nav-tab",2),m()()(),r(4,"router-outlet")),o&2&&(n(3),l("Tabs",v.tabs)("usePermissions",!0))},dependencies:[d,p,s,c,u],encapsulation:2})}}return e})();export{y as OrdersV2Component};
|