marketplacepos 5.48.5 → 5.50.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 +214 -214
- package/Marketplace/{chunk-SHUYFOQI.js → chunk-24KZDZKS.js} +1 -1
- package/Marketplace/{chunk-7JQEF4XX.js → chunk-27DIE2YS.js} +1 -1
- package/Marketplace/chunk-2AXBEVQ7.js +4 -0
- package/Marketplace/chunk-2K5AP6IZ.js +1 -0
- package/Marketplace/{chunk-4RG5YR7N.js → chunk-2NRHX6CZ.js} +2 -2
- package/Marketplace/{chunk-ZTHO6JJM.js → chunk-2ST3DMR6.js} +1 -1
- package/Marketplace/chunk-34ZZ4GCS.js +1 -0
- package/Marketplace/chunk-35N7HHLQ.js +1 -0
- package/Marketplace/{chunk-5X2E3W32.js → chunk-3HME327V.js} +1 -1
- package/Marketplace/chunk-3NAMEVOB.js +1 -0
- package/Marketplace/{chunk-AFIF6VRM.js → chunk-3SCX7IMW.js} +1 -1
- package/Marketplace/chunk-47JP6ZSE.js +1 -0
- package/Marketplace/chunk-47Q5JJIA.js +1 -0
- package/Marketplace/chunk-4KGXKQPG.js +1 -0
- package/Marketplace/chunk-4ORO4H6Z.js +266 -0
- package/Marketplace/chunk-4PG2EBJQ.js +1 -0
- package/Marketplace/chunk-4Q4I4JG4.js +5 -0
- package/Marketplace/{chunk-QFSA7CU4.js → chunk-4S4BOPUV.js} +2 -2
- package/Marketplace/{chunk-FEQNJY7V.js → chunk-4XENFCCZ.js} +1 -1
- package/Marketplace/chunk-52YCKO3Z.js +1 -0
- package/Marketplace/chunk-55E6VHIU.js +2 -0
- package/Marketplace/{chunk-5BSPSA4O.js → chunk-5C24BA5F.js} +1 -1
- package/Marketplace/{chunk-PMVDQ2OP.js → chunk-5QDH4ZNS.js} +1 -1
- package/Marketplace/{chunk-ZETUYNFJ.js → chunk-5UFP37GQ.js} +1 -1
- package/Marketplace/{chunk-PDCVMSLL.js → chunk-5WQ3LCWP.js} +1 -1
- package/Marketplace/chunk-5WT456T7.js +3 -0
- package/Marketplace/chunk-5ZS5MEG7.js +1 -0
- package/Marketplace/chunk-654AVLKM.js +1 -0
- package/Marketplace/chunk-6C4UBIZK.js +10 -0
- package/Marketplace/{chunk-ZKIO2ZQ6.js → chunk-6F62N7RZ.js} +2 -2
- package/Marketplace/chunk-6NS3D6KQ.js +5 -0
- package/Marketplace/chunk-7E53IHXI.js +1 -0
- package/Marketplace/{chunk-RQQWNLDZ.js → chunk-7HRL6MHY.js} +1 -1
- package/Marketplace/{chunk-ESXTZ7DM.js → chunk-7IOQ6VVF.js} +1 -1
- package/Marketplace/chunk-7QP3VZ6H.js +1 -0
- package/Marketplace/chunk-7R2D2JZ6.js +3 -0
- package/Marketplace/{chunk-5MV3UFJQ.js → chunk-7X4B2T6C.js} +2 -2
- package/Marketplace/chunk-A2RTZANN.js +1 -0
- package/Marketplace/chunk-A53NYS6S.js +1 -0
- package/Marketplace/chunk-AHMFSCTX.js +2 -0
- package/Marketplace/chunk-ALLZQ6Y3.js +1 -0
- package/Marketplace/chunk-AQVMOA6Z.js +1 -0
- package/Marketplace/chunk-AUEWKPWQ.js +1 -0
- package/Marketplace/chunk-B5ZK5TGW.js +1 -0
- package/Marketplace/chunk-BAW6PICI.js +2 -0
- package/Marketplace/{chunk-DTAHV4GM.js → chunk-BC6LHZWP.js} +1 -1
- package/Marketplace/chunk-BKZIKCX7.js +1 -0
- package/Marketplace/chunk-BL6MPO6D.js +2 -0
- package/Marketplace/{chunk-GPHNPV7O.js → chunk-BMOMTOEW.js} +2 -2
- package/Marketplace/chunk-BUMWMFHU.js +2 -0
- package/Marketplace/chunk-BYL4N2KB.js +1 -0
- package/Marketplace/chunk-BYX6HZW7.js +1 -0
- package/Marketplace/{chunk-6KWG6O5L.js → chunk-C2LAQOUW.js} +1 -1
- package/Marketplace/chunk-CC7KUBNZ.js +1 -0
- package/Marketplace/chunk-CZWUOW55.js +1 -0
- package/Marketplace/{chunk-L7WZ6U4T.js → chunk-DDFP4CNP.js} +1 -1
- package/Marketplace/chunk-DI2VKA4Z.js +1 -0
- package/Marketplace/{chunk-6OJQRHIZ.js → chunk-DLHIDOS3.js} +1 -1
- package/Marketplace/chunk-DPB2343S.js +1 -0
- package/Marketplace/chunk-EBXGQWOL.js +1 -0
- package/Marketplace/{chunk-IM5M2CAI.js → chunk-EH3PIGLJ.js} +1 -1
- package/Marketplace/chunk-EHND5PFE.js +1 -0
- package/Marketplace/{chunk-2J7P6ENI.js → chunk-F26O6FCO.js} +1 -1
- package/Marketplace/chunk-FEQXCPQI.js +2 -0
- package/Marketplace/chunk-FFJXYPVA.js +1 -0
- package/Marketplace/chunk-FJU2CZTJ.js +1 -0
- package/Marketplace/chunk-FLNIURLD.js +1 -0
- package/Marketplace/{chunk-4ILDFTIG.js → chunk-FOKLBUX6.js} +1 -1
- package/Marketplace/chunk-FTIUJUXI.js +1 -0
- package/Marketplace/{chunk-WNUTNP6I.js → chunk-G3B6ETBU.js} +5 -5
- package/Marketplace/{chunk-VWX2IX64.js → chunk-G4T4VM5E.js} +1 -1
- package/Marketplace/{chunk-E4BL56JJ.js → chunk-G6O6VFLS.js} +1 -1
- package/Marketplace/chunk-GG3X4R7G.js +1 -0
- package/Marketplace/chunk-GVJLKDIO.js +1 -0
- package/Marketplace/chunk-HFGQAVIU.js +1 -0
- package/Marketplace/{chunk-N5AE5WMQ.js → chunk-HO2TMGLM.js} +1 -1
- package/Marketplace/chunk-HORS2MKK.js +1 -0
- package/Marketplace/chunk-IBE5KBZU.js +1 -0
- package/Marketplace/chunk-IDGK6BMG.js +1 -0
- package/Marketplace/chunk-IF7EJSQG.js +1 -0
- package/Marketplace/chunk-IKC5WEP5.js +1 -0
- package/Marketplace/{chunk-3L7Y6LG6.js → chunk-IM7YH54S.js} +1 -1
- package/Marketplace/{chunk-63I3I3MX.js → chunk-IVKFEOCB.js} +1 -1
- package/Marketplace/chunk-J3QDFXZ7.js +1 -0
- package/Marketplace/chunk-J6HA4ZHH.js +1 -0
- package/Marketplace/chunk-JM3NLPH4.js +9 -0
- package/Marketplace/chunk-JNRCB7N3.js +2 -0
- package/Marketplace/chunk-JSQ7SYYK.js +1 -0
- package/Marketplace/chunk-JV4F6ZYF.js +1 -0
- package/Marketplace/chunk-JWDQVXQP.js +1 -0
- package/Marketplace/chunk-JYSOUJ42.js +1 -0
- package/Marketplace/chunk-JZ3E5MLG.js +1 -0
- package/Marketplace/chunk-K5WSFDNA.js +1 -0
- package/Marketplace/chunk-KDIXLH2S.js +1 -0
- package/Marketplace/chunk-KR6UNAIL.js +3 -0
- package/Marketplace/chunk-KSRL7Y2J.js +2 -0
- package/Marketplace/{chunk-2PXOGGDS.js → chunk-LAMGWNDE.js} +19 -19
- package/Marketplace/chunk-LKJCOEGO.js +1 -0
- package/Marketplace/chunk-LQPY6AYJ.js +1 -0
- package/Marketplace/{chunk-FULVA6QB.js → chunk-LR2YCE6M.js} +1 -1
- package/Marketplace/{chunk-DXYMG6QK.js → chunk-LUJ3SHSP.js} +1 -1
- package/Marketplace/{chunk-J6CZKQ53.js → chunk-M3DUXHYE.js} +4 -4
- package/Marketplace/{chunk-6PW6S7MI.js → chunk-MAQQQB3T.js} +1 -1
- package/Marketplace/chunk-MM7SAZOU.js +1 -0
- package/Marketplace/{chunk-CM3B2UZ7.js → chunk-MPFJ7FBJ.js} +1 -1
- package/Marketplace/{chunk-SJ5MC42H.js → chunk-MT3CWRVG.js} +2 -2
- package/Marketplace/chunk-MTVUPPAN.js +149 -0
- package/Marketplace/{chunk-WHHW4IZT.js → chunk-N3E43QWK.js} +2 -2
- package/Marketplace/{chunk-AFDI4TD4.js → chunk-NIJCYMZM.js} +3 -3
- package/Marketplace/chunk-NMFPLAWN.js +1 -0
- package/Marketplace/chunk-NQLMPUSB.js +1 -0
- package/Marketplace/chunk-NQVNAQCL.js +1 -0
- package/Marketplace/{chunk-VNI2KCJE.js → chunk-NRSDIDOP.js} +1 -1
- package/Marketplace/{chunk-3JRUKSV3.js → chunk-NVPT5BF2.js} +2 -2
- package/Marketplace/chunk-NY2YBW66.js +1 -0
- package/Marketplace/chunk-O4D64GHO.js +2 -0
- package/Marketplace/{chunk-UH5C5HXK.js → chunk-O4U34AC7.js} +1 -1
- package/Marketplace/chunk-OCXIDX74.js +1 -0
- package/Marketplace/chunk-OGF4VFSK.js +1 -0
- package/Marketplace/chunk-OHGMB7HJ.js +4 -0
- package/Marketplace/chunk-OIWQSDTS.js +1 -0
- package/Marketplace/chunk-OSGPJXJZ.js +1 -0
- package/Marketplace/chunk-P3XVM6DH.js +1 -0
- package/Marketplace/{chunk-GEDKSGFP.js → chunk-P6RAMHDB.js} +1 -1
- package/Marketplace/chunk-PBAFAOKJ.js +1 -0
- package/Marketplace/chunk-PGX5ZJ6P.js +1 -0
- package/Marketplace/{chunk-IGKMJFKP.js → chunk-PN3KM4M4.js} +2 -2
- package/Marketplace/chunk-PSJVP2XO.js +1 -0
- package/Marketplace/chunk-PUCIZX6E.js +1 -0
- package/Marketplace/chunk-PWCN6GJX.js +5 -0
- package/Marketplace/{chunk-L76NLJD7.js → chunk-PWOKOWVV.js} +2 -2
- package/Marketplace/chunk-QJ55WDGL.js +1 -0
- package/Marketplace/chunk-QJCYEP2A.js +1 -0
- package/Marketplace/{chunk-4RLWHMI6.js → chunk-QMHG3QTI.js} +1 -1
- package/Marketplace/chunk-QMIL5QUX.js +1 -0
- package/Marketplace/chunk-QMQCIH3X.js +7 -0
- package/Marketplace/chunk-QQF5ZMGS.js +2 -0
- package/Marketplace/{chunk-6XDT56RT.js → chunk-R3WIWDSP.js} +2 -2
- package/Marketplace/{chunk-LOWGZOML.js → chunk-RBZU7OVM.js} +1 -1
- package/Marketplace/chunk-RM6ZXD3O.js +1 -0
- package/Marketplace/chunk-RN5CI3LE.js +1 -0
- package/Marketplace/chunk-ROS2QMKF.js +1 -0
- package/Marketplace/{chunk-YTHY4IFS.js → chunk-RQUCYFCB.js} +1 -1
- package/Marketplace/chunk-RTLTTFZ7.js +1 -0
- package/Marketplace/chunk-RUYX7KTP.js +1 -0
- package/Marketplace/{chunk-5PMKN6PM.js → chunk-RXC5D64C.js} +2 -2
- package/Marketplace/chunk-RZ5N5JLA.js +1 -0
- package/Marketplace/chunk-S4JKTHY2.js +1 -0
- package/Marketplace/chunk-SABMHH6B.js +1 -0
- package/Marketplace/{chunk-TXOZULMZ.js → chunk-SIPZP62B.js} +1 -1
- package/Marketplace/{chunk-35DCCWTG.js → chunk-SMZOSLIK.js} +1 -1
- package/Marketplace/chunk-SPLGZRGH.js +5 -0
- package/Marketplace/chunk-SS6PBSX7.js +1 -0
- package/Marketplace/chunk-SZ33XJ4F.js +1 -0
- package/Marketplace/chunk-TBVMCNS2.js +1 -0
- package/Marketplace/{chunk-3WRXJBHF.js → chunk-TDMNVEUU.js} +3 -3
- package/Marketplace/{chunk-RUBV3KX2.js → chunk-TKZ74HJD.js} +1 -1
- package/Marketplace/chunk-TOK5EWN4.js +1 -0
- package/Marketplace/{chunk-7GY4O2UX.js → chunk-TYQYNICX.js} +3 -3
- package/Marketplace/{chunk-VX75I7HA.js → chunk-TZTW72NT.js} +1 -1
- package/Marketplace/{chunk-AZOCRKXK.js → chunk-UB62TZOI.js} +1 -1
- package/Marketplace/{chunk-LA2EIRS6.js → chunk-UE2QO2Y4.js} +1 -1
- package/Marketplace/chunk-UE5E7JXK.js +1 -0
- package/Marketplace/chunk-UMLV2ZUF.js +1 -0
- package/Marketplace/{chunk-JBEKD57G.js → chunk-UPRDDI4K.js} +1 -1
- package/Marketplace/{chunk-K2QHJ7WS.js → chunk-V6QH3IVL.js} +1 -1
- package/Marketplace/chunk-VH7JZJ2B.js +1 -0
- package/Marketplace/chunk-VOONKP66.js +1 -0
- package/Marketplace/chunk-VP3XO25X.js +2 -0
- package/Marketplace/chunk-VVTBM3Z5.js +1 -0
- package/Marketplace/chunk-VWMEDVEG.js +1 -0
- package/Marketplace/{chunk-NWB7EVME.js → chunk-W33M7S2S.js} +1 -1
- package/Marketplace/{chunk-L3W6SG2T.js → chunk-WAXAIL2I.js} +1 -1
- package/Marketplace/{chunk-HK5FXZE4.js → chunk-WIRBYT7F.js} +1 -1
- package/Marketplace/chunk-WQHFRJZZ.js +1 -0
- package/Marketplace/{chunk-KJE5GRQ4.js → chunk-WVA5LYVE.js} +1 -1
- package/Marketplace/chunk-X35EOX3B.js +1 -0
- package/Marketplace/chunk-X52ZT4MU.js +1 -0
- package/Marketplace/chunk-XLQGQESJ.js +2 -0
- package/Marketplace/chunk-XPA7U45N.js +1 -0
- package/Marketplace/{chunk-6Q6L5NUD.js → chunk-XUDE7VBC.js} +1 -1
- package/Marketplace/{chunk-DHPNXR6E.js → chunk-Y3O22N4P.js} +1 -1
- package/Marketplace/{chunk-Q2QX5AAJ.js → chunk-YABJCAAL.js} +4 -4
- package/Marketplace/{chunk-3J4WF3UO.js → chunk-YAWT3CLI.js} +1 -1
- package/Marketplace/chunk-YD6BNJ2B.js +1 -0
- package/Marketplace/{chunk-FHER4TFY.js → chunk-YKKHSYDW.js} +1 -1
- package/Marketplace/chunk-YLQU53ID.js +1 -0
- package/Marketplace/chunk-YNL43MLU.js +1 -0
- package/Marketplace/chunk-YQZHIZHO.js +6 -0
- package/Marketplace/chunk-YX65R6YJ.js +1 -0
- package/Marketplace/chunk-YYV4FSYQ.js +1 -0
- package/Marketplace/{chunk-EYT2YJGK.js → chunk-Z2XRGVGT.js} +1 -1
- package/Marketplace/chunk-Z6LN3X5Q.js +1 -0
- package/Marketplace/{chunk-HPINZVE4.js → chunk-ZC526ERX.js} +1 -1
- package/Marketplace/{chunk-M4ZE35XK.js → chunk-ZDBFIPDM.js} +1 -1
- package/Marketplace/{chunk-RNWHARPK.js → chunk-ZGIYCORM.js} +1 -1
- package/Marketplace/chunk-ZMQQVXQU.js +1 -0
- package/Marketplace/chunk-ZQHOCT7I.js +1 -0
- package/Marketplace/chunk-ZVNZGCYO.js +1 -0
- package/Marketplace/{chunk-ITGVXYDV.js → chunk-ZWUYPYHD.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-IQOLSEWV.js +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2F4DTZCZ.js +0 -2
- package/Marketplace/chunk-2HGLCZCJ.js +0 -1
- package/Marketplace/chunk-2USFVKEX.js +0 -1
- package/Marketplace/chunk-2WEEVTKZ.js +0 -1
- package/Marketplace/chunk-36U7D4LI.js +0 -1
- package/Marketplace/chunk-3IGKGUHQ.js +0 -1
- package/Marketplace/chunk-4JDI3AL5.js +0 -1
- package/Marketplace/chunk-4YCSITNV.js +0 -1
- package/Marketplace/chunk-6EORXONU.js +0 -4
- package/Marketplace/chunk-6J3WQHJF.js +0 -1
- package/Marketplace/chunk-6T3PILHS.js +0 -1
- package/Marketplace/chunk-7NHO7E6W.js +0 -1
- package/Marketplace/chunk-A7PUMY67.js +0 -1
- package/Marketplace/chunk-AMHOLPZC.js +0 -1
- package/Marketplace/chunk-BI2LUCYC.js +0 -1
- package/Marketplace/chunk-BXYXVBXP.js +0 -1
- package/Marketplace/chunk-BY7LPG4A.js +0 -2
- package/Marketplace/chunk-C7N6EI73.js +0 -1
- package/Marketplace/chunk-CBB3JEV7.js +0 -1
- package/Marketplace/chunk-CT6UFONR.js +0 -1
- package/Marketplace/chunk-D2J64VUP.js +0 -1
- package/Marketplace/chunk-DAUML5UD.js +0 -2
- package/Marketplace/chunk-DDSVUI6T.js +0 -2
- package/Marketplace/chunk-DOVAN3PS.js +0 -1
- package/Marketplace/chunk-E3EBAWLJ.js +0 -1
- package/Marketplace/chunk-E3TCC2HT.js +0 -1
- package/Marketplace/chunk-E66QUDQF.js +0 -1
- package/Marketplace/chunk-E6AMKEQR.js +0 -149
- package/Marketplace/chunk-E6ZWL77N.js +0 -1
- package/Marketplace/chunk-EDEZ3JLR.js +0 -4
- package/Marketplace/chunk-F6SEXTTP.js +0 -15
- package/Marketplace/chunk-FCEXPGTK.js +0 -5
- package/Marketplace/chunk-FKGKMEDE.js +0 -2
- package/Marketplace/chunk-GG3MDS4C.js +0 -1
- package/Marketplace/chunk-GURSK3ZV.js +0 -1
- package/Marketplace/chunk-HVGTRPJH.js +0 -1
- package/Marketplace/chunk-I7C6W3RB.js +0 -1
- package/Marketplace/chunk-I7YNDTEK.js +0 -1
- package/Marketplace/chunk-ILW6ZFFV.js +0 -1
- package/Marketplace/chunk-JTP3ZFNS.js +0 -1
- package/Marketplace/chunk-JW7NES7L.js +0 -1
- package/Marketplace/chunk-JZL2233L.js +0 -266
- package/Marketplace/chunk-KVDREHOE.js +0 -1
- package/Marketplace/chunk-KWRH5WFZ.js +0 -2
- package/Marketplace/chunk-LNJUGHOX.js +0 -2
- package/Marketplace/chunk-LVRM4JAP.js +0 -1
- package/Marketplace/chunk-M2BYW5SR.js +0 -1
- package/Marketplace/chunk-MAK2RHFD.js +0 -1
- package/Marketplace/chunk-MYJY2N6R.js +0 -1
- package/Marketplace/chunk-NCKPMA6Q.js +0 -1
- package/Marketplace/chunk-O2YF5VGD.js +0 -2
- package/Marketplace/chunk-O4EO3YBL.js +0 -1
- package/Marketplace/chunk-OBF4XVU7.js +0 -1
- package/Marketplace/chunk-OCP5FDSY.js +0 -1
- package/Marketplace/chunk-OPXITNRF.js +0 -1
- package/Marketplace/chunk-OXWPYJNB.js +0 -1
- package/Marketplace/chunk-PYQPYOIY.js +0 -7
- package/Marketplace/chunk-Q4TAOZ73.js +0 -1
- package/Marketplace/chunk-QFGKR62M.js +0 -1
- package/Marketplace/chunk-R2XT5M5F.js +0 -3
- package/Marketplace/chunk-RXE72I2S.js +0 -1
- package/Marketplace/chunk-S5R6MCNP.js +0 -5
- package/Marketplace/chunk-S7CKRTJV.js +0 -2
- package/Marketplace/chunk-SETHDR5R.js +0 -5
- package/Marketplace/chunk-STYL7ETF.js +0 -3
- package/Marketplace/chunk-TJUIBLFE.js +0 -1
- package/Marketplace/chunk-TJYYRHZZ.js +0 -1
- package/Marketplace/chunk-TYQY4WPY.js +0 -1
- package/Marketplace/chunk-UJ4S2WZV.js +0 -1
- package/Marketplace/chunk-UN53SVGE.js +0 -1
- package/Marketplace/chunk-UYG2OCBS.js +0 -1
- package/Marketplace/chunk-VEBP36WX.js +0 -1
- package/Marketplace/chunk-VKZ2UVXB.js +0 -1
- package/Marketplace/chunk-WD4PA53F.js +0 -1
- package/Marketplace/chunk-WZYOXBEP.js +0 -5
- package/Marketplace/chunk-XLIPGDSC.js +0 -2
- package/Marketplace/chunk-XUMLTOVI.js +0 -1
- package/Marketplace/chunk-Z2CPXQ24.js +0 -1
- package/Marketplace/chunk-ZME22WYI.js +0 -1
- package/Marketplace/chunk-ZW2TMVZP.js +0 -10
- package/Marketplace/chunk-ZYJ6LAJ3.js +0 -4
- package/Marketplace/main-JXUEQJZZ.js +0 -1
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as Ft}from"./chunk-VOONKP66.js";import{a as Nt}from"./chunk-YAWT3CLI.js";import{a as Ot,b as Mt,d as Lt}from"./chunk-C2LAQOUW.js";import{a as At}from"./chunk-5WQ3LCWP.js";import{b as kt}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{a as xt,b as Pt,c as Et,h as Tt,i as It,j as Rt}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import{c as Ct}from"./chunk-O4D64GHO.js";import{C as Te,J as St,L as wt,a as ot,b as at,c as oe,e as Z,h as Ee,i as L,l as ht,n as pt,v as _t}from"./chunk-7R2D2JZ6.js";import{a as vt}from"./chunk-ZSUWHVKX.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as ut,c as ft}from"./chunk-5UFP37GQ.js";import{b as K,c as D}from"./chunk-UPRDDI4K.js";import{A as bt,h as Dt,m as yt}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import{b as gt}from"./chunk-MM7SAZOU.js";import{e as mt}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{q as lt,w as ct,x as dt}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$ as ge,$c as Ce,Ad as Pe,Ca as je,Cb as Je,Da as ue,E as $e,F as Q,Fd as z,Gd as st,Hb as H,Ia as fe,Jb as ye,Kc as Se,Nb as be,Nc as p,O as qe,Oa as Ye,Oc as w,Pc as E,Ra as ve,Rc as it,Sc as nt,Tc as rt,Z as Ze,_b as Qe,_c as we,a as N,aa as Ke,ac as T,ad as R,bd as xe,c as _e,ca as W,cc as I,ea as ee,ec as ie,f,fc as ne,g as Ge,gc as re,hc as u,ic as c,id as M,jc as d,jd as V,kc as O,kd as se,l as We,ma as me,mb as F,ob as _,oc as et,pa as A,pc as tt,ra as g,rc as q,tb as x,ub as te,v as Ue,vb as Xe,wc as P,ya as U,yb as De,yc as v,za as $}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function ke(s){let t=s.cloneNode(!0),e=t.querySelectorAll("[id]"),i=s.nodeName.toLowerCase();t.removeAttribute("id");for(let n=0;n<e.length;n++)e[n].removeAttribute("id");return i==="canvas"?zt(s,t):(i==="input"||i==="select"||i==="textarea")&&Vt(s,t),Ht("canvas",s,t,zt),Ht("input, textarea, select",s,t,Vt),t}function Ht(s,t,e,i){let n=t.querySelectorAll(s);if(n.length){let r=e.querySelectorAll(s);for(let o=0;o<n.length;o++)i(n[o],r[o])}}var vi=0;function Vt(s,t){t.type!=="file"&&(t.value=s.value),t.type==="radio"&&t.name&&(t.name=`mat-clone-${t.name}-${vi++}`)}function zt(s,t){let e=t.getContext("2d");if(e)try{e.drawImage(s,0,0)}catch{}}function Fe(s){let t=s.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.width,height:t.height,x:t.x,y:t.y}}function Oe(s,t,e){let{top:i,bottom:n,left:r,right:o}=s;return e>=i&&e<=n&&t>=r&&t<=o}function Di(s,t){let e=t.left<s.left,i=t.left+t.width>s.right,n=t.top<s.top,r=t.top+t.height>s.bottom;return e||i||n||r}function X(s,t,e){s.top+=t,s.bottom=s.top+s.height,s.left+=e,s.right=s.left+s.width}function Bt(s,t,e,i){let{top:n,right:r,bottom:o,left:a,width:l,height:h}=s,m=l*t,b=h*t;return i>n-b&&i<o+b&&e>a-m&&e<r+m}var ae=class{_document;positions=new Map;constructor(t){this._document=t}clear(){this.positions.clear()}cache(t){this.clear(),this.positions.set(this._document,{scrollPosition:this.getViewportScrollPosition()}),t.forEach(e=>{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:Fe(e)})})}handleScroll(t){let e=Z(t),i=this.positions.get(e);if(!i)return null;let n=i.scrollPosition,r,o;if(e===this._document){let h=this.getViewportScrollPosition();r=h.top,o=h.left}else r=e.scrollTop,o=e.scrollLeft;let a=n.top-r,l=n.left-o;return this.positions.forEach((h,m)=>{h.clientRect&&e!==m&&e.contains(m)&&X(h.clientRect,a,l)}),n.top=r,n.left=o,{top:a,left:l}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function ti(s,t){let e=s.rootNodes;if(e.length===1&&e[0].nodeType===t.ELEMENT_NODE)return e[0];let i=t.createElement("div");return e.forEach(n=>i.appendChild(n)),i}function He(s,t,e){for(let i in t)if(t.hasOwnProperty(i)){let n=t[i];n?s.setProperty(i,n,e?.has(i)?"important":""):s.removeProperty(i)}return s}function B(s,t){let e=t?"":"none";He(s.style,{"touch-action":t?"":"none","-webkit-user-drag":t?"":"none","-webkit-tap-highlight-color":t?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Gt(s,t,e){He(s.style,{position:t?"":"fixed",top:t?"":"0",opacity:t?"":"0",left:t?"":"-999em"},e)}function le(s,t){return t&&t!="none"?s+" "+t:s}function Wt(s,t){s.style.width=`${t.width}px`,s.style.height=`${t.height}px`,s.style.transform=J(t.left,t.top)}function J(s,t){return`translate3d(${Math.round(s)}px, ${Math.round(t)}px, 0)`}function Ut(s){let t=s.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(s)*t}function yi(s){let t=getComputedStyle(s),e=Ie(t,"transition-property"),i=e.find(a=>a==="transform"||a==="all");if(!i)return 0;let n=e.indexOf(i),r=Ie(t,"transition-duration"),o=Ie(t,"transition-delay");return Ut(r[n])+Ut(o[n])}function Ie(s,t){return s.getPropertyValue(t).split(",").map(i=>i.trim())}var bi=new Set(["position"]),Me=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(t,e,i,n,r,o,a,l,h,m){this._document=t,this._rootElement=e,this._direction=i,this._initialDomRect=n,this._previewTemplate=r,this._previewClass=o,this._pickupPositionOnPage=a,this._initialTransform=l,this._zIndex=h,this._renderer=m}attach(t){this._preview=this._createPreview(),t.appendChild(this._preview),$t(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(t){this._preview.style.transform=t}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(t){this._preview.classList.add(t)}getTransitionDuration(){return yi(this._preview)}addEventListener(t,e){return this._renderer.listen(this._preview,t,e)}_createPreview(){let t=this._previewTemplate,e=this._previewClass,i=t?t.template:null,n;if(i&&t){let r=t.matchSize?this._initialDomRect:null,o=t.viewContainer.createEmbeddedView(i,t.context);o.detectChanges(),n=ti(o,this._document),this._previewEmbeddedView=o,t.matchSize?Wt(n,r):n.style.transform=J(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else n=ke(this._rootElement),Wt(n,this._initialDomRect),this._initialTransform&&(n.style.transform=this._initialTransform);return He(n.style,{"pointer-events":"none",margin:$t(n)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},bi),B(n,!1),n.classList.add("cdk-drag-preview"),n.setAttribute("popover","manual"),n.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>n.classList.add(r)):n.classList.add(e)),n}};function $t(s){return"showPopover"in s}var Si={passive:!0},qt={passive:!1},wi={passive:!1,capture:!0},Ci=800,Zt="cdk-drag-placeholder",Kt=new Set(["position"]),Le=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=fe(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new f;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=N.EMPTY;_pointerUpSubscription=N.EMPTY;_scrollSubscription=N.EMPTY;_resizeSubscription=N.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(t){t!==this._disabled&&(this._disabled=t,this._toggleNativeDragInteractions(),this._handles.forEach(e=>B(e,t)))}_disabled=!1;beforeStarted=new f;started=new f;released=new f;ended=new f;entered=new f;exited=new f;dropped=new f;moved=this._moveEvents;data;constrainPosition;constructor(t,e,i,n,r,o,a){this._config=e,this._document=i,this._ngZone=n,this._viewportRuler=r,this._dragDropRegistry=o,this._renderer=a,this.withRootElement(t).withParent(e.parentDragRef||null),this._parentPositions=new ae(i),o.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(t){this._handles=t.map(i=>L(i)),this._handles.forEach(i=>B(i,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(i=>{this._handles.indexOf(i)>-1&&e.add(i)}),this._disabledHandles=e,this}withPreviewTemplate(t){return this._previewTemplate=t,this}withPlaceholderTemplate(t){return this._placeholderTemplate=t,this}withRootElement(t){let e=L(t);if(e!==this._rootElement){this._removeRootElementListeners();let i=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[i.listen(e,"mousedown",this._pointerDown,qt),i.listen(e,"touchstart",this._pointerDown,Si),i.listen(e,"dragstart",this._nativeDragStart,qt)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(t){return this._boundaryElement=t?L(t):null,this._resizeSubscription.unsubscribe(),t&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(t){return this._parentDragRef=t,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&Di(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let t=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),i=0,n=0;e.left<t.left?i=t.left-e.left:e.right>t.right&&(i=t.right-e.right),e.top<t.top?n=t.top-e.top:e.bottom>t.bottom&&(n=t.bottom-e.bottom);let r=this._activeTransform.x,o=this._activeTransform.y,a=r+i,l=o+n;this._rootElement.style.transform=J(a,l),this._activeTransform={x:a,y:l},this._passiveTransform={x:a,y:l}}}disableHandle(t){!this._disabledHandles.has(t)&&this._handles.indexOf(t)>-1&&(this._disabledHandles.add(t),B(t,!0))}enableHandle(t){this._disabledHandles.has(t)&&(this._disabledHandles.delete(t),B(t,this.disabled))}withDirection(t){return this._direction=t,this}_withDropContainer(t){this._dropContainer=t}getFreeDragPosition(){let t=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:t.x,y:t.y}}setFreeDragPosition(t){return this._activeTransform={x:0,y:0},this._passiveTransform.x=t.x,this._passiveTransform.y=t.y,this._dropContainer||this._applyRootElementTransform(t.x,t.y),this}withPreviewContainer(t){return this._previewContainer=t,this}_sortFromLastPointerPosition(){let t=this._lastKnownPointerPosition;t&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(t),t)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=t=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(t);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,t)}else this.disabled||this._initializeDragSequence(this._rootElement,t)};_pointerMove=t=>{let e=this._getPointerPositionOnPage(t);if(!this._hasStartedDragging()){let n=Math.abs(e.x-this._pickupPositionOnPage.x),r=Math.abs(e.y-this._pickupPositionOnPage.y);if(n+r>=this._config.dragStartThreshold){let a=Date.now()>=this._dragStartTime+this._getDragStartDelay(t),l=this._dropContainer;if(!a){this._endDragSequence(t);return}(!l||!l.isDragging()&&!l.isReceiving())&&(t.cancelable&&t.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(t)))}return}t.cancelable&&t.preventDefault();let i=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(i),this._dropContainer)this._updateActiveDropContainer(i,e);else{let n=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,r=this._activeTransform;r.x=i.x-n.x+this._passiveTransform.x,r.y=i.y-n.y+this._passiveTransform.y,this._applyRootElementTransform(r.x,r.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:i,event:t,distance:this._getDragDistance(i),delta:this._pointerDirectionDelta})})};_pointerUp=t=>{this._endDragSequence(t)};_endDragSequence(t){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:t}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(t),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(t);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:t})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(t){j(t)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),i=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",xi,wi)}),i){let n=this._rootElement,r=n.parentNode,o=this._placeholder=this._createPlaceholderElement(),a=this._marker=this._marker||this._document.createComment("");r.insertBefore(a,n),this._initialTransform=n.style.transform||"",this._preview=new Me(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(r,e)),Gt(n,!1,Kt),this._document.body.appendChild(r.replaceChild(o,n)),this.started.next({source:this,event:t}),i.start(),this._initialContainer=i,this._initialIndex=i.getItemIndex(this)}else this.started.next({source:this,event:t}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(i?i.getScrollableParents():[])}_initializeDragSequence(t,e){this._parentDragRef&&e.stopPropagation();let i=this.isDragging(),n=j(e),r=!n&&e.button!==0,o=this._rootElement,a=Z(e),l=!n&&this._lastTouchEventTime&&this._lastTouchEventTime+Ci>Date.now(),h=n?at(e):ot(e);if(a&&a.draggable&&e.type==="mousedown"&&e.preventDefault(),i||r||l||h)return;if(this._handles.length){let k=o.style;this._rootElementTapHighlight=k.webkitTapHighlightColor||"",k.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(k=>this._updateOnScroll(k)),this._boundaryElement&&(this._boundaryRect=Fe(this._boundaryElement));let m=this._previewTemplate;this._pickupPositionInElement=m&&m.template&&!m.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,t,e);let b=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:b.x,y:b.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(t){Gt(this._rootElement,!0,Kt),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,i=e.getItemIndex(this),n=this._getPointerPositionOnPage(t),r=this._getDragDistance(n),o=e._isOverContainer(n.x,n.y);this.ended.next({source:this,distance:r,dropPoint:n,event:t}),this.dropped.next({item:this,currentIndex:i,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:o,distance:r,dropPoint:n,event:t}),e.drop(this,i,this._initialIndex,this._initialContainer,o,r,n,t),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:t,y:e},{x:i,y:n}){let r=this._initialContainer._getSiblingContainerFromPosition(this,t,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(t,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{let o=this._dropContainer.getItemIndex(this),a=this._dropContainer.getItemAtIndex(o+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(r,this._dropContainer,a),this._dropContainer=r,this._dropContainer.enter(this,t,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(i,n),this._dropContainer._sortItem(this,t,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(t,e):this._applyPreviewTransform(t-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let t=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(t.left,t.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(i=>{let n=a=>{(!a||this._preview&&Z(a)===this._preview.element&&a.propertyName==="transform")&&(o(),i(),clearTimeout(r))},r=setTimeout(n,e*1.5),o=this._preview.addEventListener("transitionend",n)}))}_createPlaceholderElement(){let t=this._placeholderTemplate,e=t?t.template:null,i;return e?(this._placeholderRef=t.viewContainer.createEmbeddedView(e,t.context),this._placeholderRef.detectChanges(),i=ti(this._placeholderRef,this._document)):i=ke(this._rootElement),i.style.pointerEvents="none",i.classList.add(Zt),i}_getPointerPositionInElement(t,e,i){let n=e===this._rootElement?null:e,r=n?n.getBoundingClientRect():t,o=j(i)?i.targetTouches[0]:i,a=this._getViewportScrollPosition(),l=o.pageX-r.left-a.left,h=o.pageY-r.top-a.top;return{x:r.left-t.left+l,y:r.top-t.top+h}}_getPointerPositionOnPage(t){let e=this._getViewportScrollPosition(),i=j(t)?t.touches[0]||t.changedTouches[0]||{pageX:0,pageY:0}:t,n=i.pageX-e.left,r=i.pageY-e.top;if(this._ownerSVGElement){let o=this._ownerSVGElement.getScreenCTM();if(o){let a=this._ownerSVGElement.createSVGPoint();return a.x=n,a.y=r,a.matrixTransform(o.inverse())}}return{x:n,y:r}}_getConstrainedPointerPosition(t){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:i,y:n}=this.constrainPosition?this.constrainPosition(t,this,this._initialDomRect,this._pickupPositionInElement):t;if(this.lockAxis==="x"||e==="x"?n=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(i=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:r,y:o}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,a=this._boundaryRect,{width:l,height:h}=this._getPreviewRect(),m=a.top+o,b=a.bottom-(h-o),k=a.left+r,he=a.right-(l-r);i=jt(i,k,he),n=jt(n,m,b)}return{x:i,y:n}}_updatePointerDirectionDelta(t){let{x:e,y:i}=t,n=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,o=Math.abs(e-r.x),a=Math.abs(i-r.y);return o>this._config.pointerDirectionChangeThreshold&&(n.x=e>r.x?1:-1,r.x=e),a>this._config.pointerDirectionChangeThreshold&&(n.y=i>r.y?1:-1,r.y=i),n}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let t=this._handles.length>0||!this.isDragging();t!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=t,B(this._rootElement,t))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(t=>t()),this._rootElementCleanups=void 0}_applyRootElementTransform(t,e){let i=1/this.scale,n=J(t*i,e*i),r=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=r.transform&&r.transform!="none"?r.transform:""),r.transform=le(n,this._initialTransform)}_applyPreviewTransform(t,e){let i=this._previewTemplate?.template?void 0:this._initialTransform,n=J(t,e);this._preview.setTransform(le(n,i))}_getDragDistance(t){let e=this._pickupPositionOnPage;return e?{x:t.x-e.x,y:t.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:t,y:e}=this._passiveTransform;if(t===0&&e===0||this.isDragging()||!this._boundaryElement)return;let i=this._rootElement.getBoundingClientRect(),n=this._boundaryElement.getBoundingClientRect();if(n.width===0&&n.height===0||i.width===0&&i.height===0)return;let r=n.left-i.left,o=i.right-n.right,a=n.top-i.top,l=i.bottom-n.bottom;n.width>i.width?(r>0&&(t+=r),o>0&&(t-=o)):t=0,n.height>i.height?(a>0&&(e+=a),l>0&&(e-=l)):e=0,(t!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:t})}_getDragStartDelay(t){let e=this.dragStartDelay;return typeof e=="number"?e:j(t)?e.touch:e?e.mouse:0}_updateOnScroll(t){let e=this._parentPositions.handleScroll(t);if(e){let i=Z(t);this._boundaryRect&&i!==this._boundaryElement&&i.contains(this._boundaryElement)&&X(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=oe(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(t,e){let i=this._previewContainer||"global";if(i==="parent")return t;if(i==="global"){let n=this._document;return e||n.fullscreenElement||n.webkitFullscreenElement||n.mozFullScreenElement||n.msFullscreenElement||n.body}return L(i)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=t=>{if(this._handles.length){let e=this._getTargetHandle(t);e&&!this._disabledHandles.has(e)&&!this.disabled&&t.preventDefault()}else this.disabled||t.preventDefault()};_getTargetHandle(t){return this._handles.find(e=>t.target&&(t.target===e||e.contains(t.target)))}_conditionallyInsertAnchor(t,e,i){if(t===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let n=this._anchor??=ke(this._placeholder);n.classList.remove(Zt),n.classList.add("cdk-drag-anchor"),n.style.transform="",i?i.before(n):L(e.element).appendChild(n)}}};function jt(s,t,e){return Math.max(t,Math.min(e,s))}function j(s){return s.type[0]==="t"}function xi(s){s.preventDefault()}function de(s,t,e){let i=Yt(t,s.length-1),n=Yt(e,s.length-1);if(i===n)return;let r=s[i],o=n<i?-1:1;for(let a=i;a!==n;a+=o)s[a]=s[a+o];s[n]=r}function Yt(s,t){return Math.max(0,Math.min(t,s))}var ce=class{_dragDropRegistry;_element;_sortPredicate;_itemPositions=[];_activeDraggables;orientation="vertical";direction;constructor(t){this._dragDropRegistry=t}_previousSwap={drag:null,delta:0,overlaps:!1};start(t){this.withItems(t)}sort(t,e,i,n){let r=this._itemPositions,o=this._getItemIndexFromPointerPosition(t,e,i,n);if(o===-1&&r.length>0)return null;let a=this.orientation==="horizontal",l=r.findIndex(S=>S.drag===t),h=r[o],m=r[l].clientRect,b=h.clientRect,k=l>o?1:-1,he=this._getItemOffsetPx(m,b,k),mi=this._getSiblingOffsetPx(l,r,k),ui=r.slice();return de(r,l,o),r.forEach((S,fi)=>{if(ui[fi]===S)return;let Ve=S.drag===t,pe=Ve?he:mi,ze=Ve?t.getPlaceholderElement():S.drag.getRootElement();S.offset+=pe;let Be=Math.round(S.offset*(1/S.drag.scale));a?(ze.style.transform=le(`translate3d(${Be}px, 0, 0)`,S.initialTransform),X(S.clientRect,0,pe)):(ze.style.transform=le(`translate3d(0, ${Be}px, 0)`,S.initialTransform),X(S.clientRect,pe,0))}),this._previousSwap.overlaps=Oe(b,e,i),this._previousSwap.drag=h.drag,this._previousSwap.delta=a?n.x:n.y,{previousIndex:l,currentIndex:o}}enter(t,e,i,n){let r=n==null||n<0?this._getItemIndexFromPointerPosition(t,e,i):n,o=this._activeDraggables,a=o.indexOf(t),l=t.getPlaceholderElement(),h=o[r];if(h===t&&(h=o[r+1]),!h&&(r==null||r===-1||r<o.length-1)&&this._shouldEnterAsFirstChild(e,i)&&(h=o[0]),a>-1&&o.splice(a,1),h&&!this._dragDropRegistry.isDragging(h)){let m=h.getRootElement();m.parentElement.insertBefore(l,m),o.splice(r,0,t)}else this._element.appendChild(l),o.push(t);l.style.transform="",this._cacheItemPositions()}withItems(t){this._activeDraggables=t.slice(),this._cacheItemPositions()}withSortPredicate(t){this._sortPredicate=t}reset(){this._activeDraggables?.forEach(t=>{let e=t.getRootElement();if(e){let i=this._itemPositions.find(n=>n.drag===t)?.initialTransform;e.style.transform=i||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(t){return this._getVisualItemPositions().findIndex(e=>e.drag===t)}getItemAtIndex(t){return this._getVisualItemPositions()[t]?.drag||null}updateOnScroll(t,e){this._itemPositions.forEach(({clientRect:i})=>{X(i,t,e)}),this._itemPositions.forEach(({drag:i})=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(t){this._element=t}_cacheItemPositions(){let t=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let i=e.getVisibleElement();return{drag:e,offset:0,initialTransform:i.style.transform||"",clientRect:Fe(i)}}).sort((e,i)=>t?e.clientRect.left-i.clientRect.left:e.clientRect.top-i.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(t,e,i){let n=this.orientation==="horizontal",r=n?e.left-t.left:e.top-t.top;return i===-1&&(r+=n?e.width-t.width:e.height-t.height),r}_getSiblingOffsetPx(t,e,i){let n=this.orientation==="horizontal",r=e[t].clientRect,o=e[t+i*-1],a=r[n?"width":"height"]*i;if(o){let l=n?"left":"top",h=n?"right":"bottom";i===-1?a-=o.clientRect[l]-r[h]:a+=r[l]-o.clientRect[h]}return a}_shouldEnterAsFirstChild(t,e){if(!this._activeDraggables.length)return!1;let i=this._itemPositions,n=this.orientation==="horizontal";if(i[0].drag!==this._activeDraggables[0]){let o=i[i.length-1].clientRect;return n?t>=o.right:e>=o.bottom}else{let o=i[0].clientRect;return n?t<=o.left:e<=o.top}}_getItemIndexFromPointerPosition(t,e,i,n){let r=this.orientation==="horizontal",o=this._itemPositions.findIndex(({drag:a,clientRect:l})=>{if(a===t)return!1;if(n){let h=r?n.x:n.y;if(a===this._previousSwap.drag&&this._previousSwap.overlaps&&h===this._previousSwap.delta)return!1}return r?e>=Math.floor(l.left)&&e<Math.floor(l.right):i>=Math.floor(l.top)&&i<Math.floor(l.bottom)});return o===-1||!this._sortPredicate(o,t)?-1:o}},Ne=class{_document;_dragDropRegistry;_element;_sortPredicate;_rootNode;_activeItems;_previousSwap={drag:null,deltaX:0,deltaY:0,overlaps:!1};_relatedNodes=[];constructor(t,e){this._document=t,this._dragDropRegistry=e}start(t){let e=this._element.childNodes;this._relatedNodes=[];for(let i=0;i<e.length;i++){let n=e[i];this._relatedNodes.push([n,n.nextSibling])}this.withItems(t)}sort(t,e,i,n){let r=this._getItemIndexFromPointerPosition(t,e,i),o=this._previousSwap;if(r===-1||this._activeItems[r]===t)return null;let a=this._activeItems[r];if(o.drag===a&&o.overlaps&&o.deltaX===n.x&&o.deltaY===n.y)return null;let l=this.getItemIndex(t),h=t.getPlaceholderElement(),m=a.getRootElement();r>l?m.after(h):m.before(h),de(this._activeItems,l,r);let b=this._getRootNode().elementFromPoint(e,i);return o.deltaX=n.x,o.deltaY=n.y,o.drag=a,o.overlaps=m===b||m.contains(b),{previousIndex:l,currentIndex:r}}enter(t,e,i,n){let r=this._activeItems.indexOf(t);r>-1&&this._activeItems.splice(r,1);let o=n==null||n<0?this._getItemIndexFromPointerPosition(t,e,i):n;o===-1&&(o=this._getClosestItemIndexToPointer(t,e,i));let a=this._activeItems[o];a&&!this._dragDropRegistry.isDragging(a)?(this._activeItems.splice(o,0,t),a.getRootElement().before(t.getPlaceholderElement())):(this._activeItems.push(t),this._element.appendChild(t.getPlaceholderElement()))}withItems(t){this._activeItems=t.slice()}withSortPredicate(t){this._sortPredicate=t}reset(){let t=this._element,e=this._previousSwap;for(let i=this._relatedNodes.length-1;i>-1;i--){let[n,r]=this._relatedNodes[i];n.parentNode===t&&n.nextSibling!==r&&(r===null?t.appendChild(n):r.parentNode===t&&t.insertBefore(n,r))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(t){return this._activeItems.indexOf(t)}getItemAtIndex(t){return this._activeItems[t]||null}updateOnScroll(){this._activeItems.forEach(t=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(t){t!==this._element&&(this._element=t,this._rootNode=void 0)}_getItemIndexFromPointerPosition(t,e,i){let n=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(i)),r=n?this._activeItems.findIndex(o=>{let a=o.getRootElement();return n===a||a.contains(n)}):-1;return r===-1||!this._sortPredicate(r,t)?-1:r}_getRootNode(){return this._rootNode||(this._rootNode=oe(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(t,e,i){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let n=1/0,r=-1;for(let o=0;o<this._activeItems.length;o++){let a=this._activeItems[o];if(a!==t){let{x:l,y:h}=a.getRootElement().getBoundingClientRect(),m=Math.hypot(e-l,i-h);m<n&&(n=m,r=o)}}return r}},Xt=.05,ii=.05,C=(function(s){return s[s.NONE=0]="NONE",s[s.UP=1]="UP",s[s.DOWN=2]="DOWN",s})(C||{}),y=(function(s){return s[s.NONE=0]="NONE",s[s.LEFT=1]="LEFT",s[s.RIGHT=2]="RIGHT",s})(y||{}),Ae=class{_dragDropRegistry;_ngZone;_viewportRuler;element;disabled=!1;sortingDisabled=!1;lockAxis=null;autoScrollDisabled=!1;autoScrollStep=2;hasAnchor=!1;enterPredicate=()=>!0;sortPredicate=()=>!0;beforeStarted=new f;entered=new f;exited=new f;dropped=new f;sorted=new f;receivingStarted=new f;receivingStopped=new f;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=N.EMPTY;_verticalScrollDirection=C.NONE;_horizontalScrollDirection=y.NONE;_scrollNode;_stopScrollTimers=new f;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(t,e,i,n,r){this._dragDropRegistry=e,this._ngZone=n,this._viewportRuler=r;let o=this.element=L(t);this._document=i,this.withOrientation("vertical").withElementContainer(o),e.registerDropContainer(this),this._parentPositions=new ae(i)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(t,e,i,n){this._draggingStarted(),n==null&&this.sortingDisabled&&(n=this._draggables.indexOf(t)),this._sortStrategy.enter(t,e,i,n),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:t,container:this,currentIndex:this.getItemIndex(t)})}exit(t){this._reset(),this.exited.next({item:t,container:this})}drop(t,e,i,n,r,o,a,l={}){this._reset(),this.dropped.next({item:t,currentIndex:e,previousIndex:i,container:this,previousContainer:n,isPointerOverContainer:r,distance:o,dropPoint:a,event:l})}withItems(t){let e=this._draggables;return this._draggables=t,t.forEach(i=>i._withDropContainer(this)),this.isDragging()&&(e.filter(n=>n.isDragging()).every(n=>t.indexOf(n)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(t){return this._direction=t,this._sortStrategy instanceof ce&&(this._sortStrategy.direction=t),this}connectedTo(t){return this._siblings=t.slice(),this}withOrientation(t){if(t==="mixed")this._sortStrategy=new Ne(this._document,this._dragDropRegistry);else{let e=new ce(this._dragDropRegistry);e.direction=this._direction,e.orientation=t,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,i)=>this.sortPredicate(e,i,this)),this}withScrollableParents(t){let e=this._container;return this._scrollableElements=t.indexOf(e)===-1?[e,...t]:t.slice(),this}withElementContainer(t){if(t===this._container)return this;let e=L(this.element),i=this._scrollableElements.indexOf(this._container),n=this._scrollableElements.indexOf(t);return i>-1&&this._scrollableElements.splice(i,1),n>-1&&this._scrollableElements.splice(n,1),this._sortStrategy&&this._sortStrategy.withElementContainer(t),this._cachedShadowRoot=null,this._scrollableElements.unshift(t),this._container=t,this}getScrollableParents(){return this._scrollableElements}getItemIndex(t){return this._isDragging?this._sortStrategy.getItemIndex(t):this._draggables.indexOf(t)}getItemAtIndex(t){return this._isDragging?this._sortStrategy.getItemAtIndex(t):this._draggables[t]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(t,e,i,n){if(this.sortingDisabled||!this._domRect||!Bt(this._domRect,Xt,e,i))return;let r=this._sortStrategy.sort(t,e,i,n);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:t})}_startScrollingIfNecessary(t,e){if(this.autoScrollDisabled)return;let i,n=C.NONE,r=y.NONE;if(this._parentPositions.positions.forEach((o,a)=>{a===this._document||!o.clientRect||i||Bt(o.clientRect,Xt,t,e)&&([n,r]=Pi(a,o.clientRect,this._direction,t,e),(n||r)&&(i=a))}),!n&&!r){let{width:o,height:a}=this._viewportRuler.getViewportSize(),l={width:o,height:a,top:0,right:o,bottom:a,left:0};n=ni(l,e),r=ri(l,t),i=window}i&&(n!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||i!==this._scrollNode)&&(this._verticalScrollDirection=n,this._horizontalScrollDirection=r,this._scrollNode=i,(n||r)&&i?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let t=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=t.msScrollSnapType||t.scrollSnapType||"",t.scrollSnapType=t.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let t=this._container.style;t.scrollSnapType=t.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),$e(0,We).pipe(W(this._stopScrollTimers)).subscribe(()=>{let t=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===C.UP?t.scrollBy(0,-e):this._verticalScrollDirection===C.DOWN&&t.scrollBy(0,e),this._horizontalScrollDirection===y.LEFT?t.scrollBy(-e,0):this._horizontalScrollDirection===y.RIGHT&&t.scrollBy(e,0)})};_isOverContainer(t,e){return this._domRect!=null&&Oe(this._domRect,t,e)}_getSiblingContainerFromPosition(t,e,i){return this._siblings.find(n=>n._canReceive(t,e,i))}_canReceive(t,e,i){if(!this._domRect||!Oe(this._domRect,e,i)||!this.enterPredicate(t,this))return!1;let n=this._getShadowRoot().elementFromPoint(e,i);return n?n===this._container||this._container.contains(n):!1}_startReceiving(t,e){let i=this._activeSiblings;!i.has(t)&&e.every(n=>this.enterPredicate(n,this)||this._draggables.indexOf(n)>-1)&&(i.add(t),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:t,receiver:this,items:e}))}_stopReceiving(t){this._activeSiblings.delete(t),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:t,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(t=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(t);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let t=oe(this._container);this._cachedShadowRoot=t||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let t=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,t))}};function ni(s,t){let{top:e,bottom:i,height:n}=s,r=n*ii;return t>=e-r&&t<=e+r?C.UP:t>=i-r&&t<=i+r?C.DOWN:C.NONE}function ri(s,t){let{left:e,right:i,width:n}=s,r=n*ii;return t>=e-r&&t<=e+r?y.LEFT:t>=i-r&&t<=i+r?y.RIGHT:y.NONE}function Pi(s,t,e,i,n){let r=ni(t,n),o=ri(t,i),a=C.NONE,l=y.NONE;if(r){let h=s.scrollTop;r===C.UP?h>0&&(a=C.UP):s.scrollHeight-h>s.clientHeight&&(a=C.DOWN)}if(o){let h=s.scrollLeft;e==="rtl"?o===y.RIGHT?h<0&&(l=y.RIGHT):s.scrollWidth+h>s.clientWidth&&(l=y.LEFT):o===y.LEFT?h>0&&(l=y.LEFT):s.scrollWidth-h>s.clientWidth&&(l=y.RIGHT)}return[a,l]}var Y={capture:!0},Re={passive:!1,capture:!0},Ei=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275cmp=H({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(i,n){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return s})(),si=(()=>{class s{_ngZone=g(te);_document=g(ue);_styleLoader=g(ht);_renderer=g(De).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new f;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=fe([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new f;pointerUp=new f;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,Re)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,i){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(Ei),this._activeDragInstances.update(n=>[...n,e]),this._activeDragInstances().length===1)){let n=i.type.startsWith("touch"),r=a=>this.pointerUp.next(a),o=[["scroll",a=>this._scroll.next(a),Y],["selectstart",this._preventDefaultWhileDragging,Re]];n?o.push(["touchend",r,Y],["touchcancel",r,Y]):o.push(["mouseup",r,Y]),n||o.push(["mousemove",a=>this.pointerMove.next(a),Re]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=o.map(([a,l,h])=>this._renderer.listen(this._document,a,l,h))})}}stopDragging(e){this._activeDragInstances.update(i=>{let n=i.indexOf(e);return n>-1?(i.splice(n,1),[...i]):i}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let i=[this._scroll];return e&&e!==this._document&&i.push(new _e(n=>this._ngZone.runOutsideAngular(()=>{let r=this._renderer.listen(e,"scroll",o=>{this._activeDragInstances().length&&n.next(o)},Y);return()=>{r()}}))),Q(...i)}registerDirectiveNode(e,i){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,i)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(i){return new(i||s)};static \u0275prov=me({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ti={dragStartThreshold:5,pointerDirectionChangeThreshold:5},oi=(()=>{class s{_document=g(ue);_ngZone=g(te);_viewportRuler=g(wt);_dragDropRegistry=g(si);_renderer=g(De).createRenderer(null,null);constructor(){}createDrag(e,i=Ti){return new Le(e,i,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new Ae(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(i){return new(i||s)};static \u0275prov=me({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Jt=new A("CDK_DRAG_PARENT");var Ii=new A("CdkDragHandle");var ai=new A("CDK_DRAG_CONFIG"),li=new A("CdkDropList"),ci=(()=>{class s{element=g(ve);dropContainer=g(li,{optional:!0,skipSelf:!0});_ngZone=g(te);_viewContainerRef=g(Je);_dir=g(Te,{optional:!0});_changeDetectorRef=g(Pe);_selfHandle=g(Ii,{optional:!0,self:!0});_parentDrag=g(Jt,{optional:!0,skipSelf:!0});_dragDropRegistry=g(si);_destroyed=new f;_handles=new Ge([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new x;released=new x;ended=new x;entered=new x;exited=new x;dropped=new x;moved=new _e(e=>{let i=this._dragRef.moved.pipe(Ue(n=>({source:this,pointerPosition:n.pointerPosition,event:n.event,delta:n.delta,distance:n.distance}))).subscribe(e);return()=>{i.unsubscribe()}});_injector=g(je);constructor(){let e=this.dropContainer,i=g(ai,{optional:!0}),n=g(oi);this._dragRef=n.createDrag(this.element,{dragStartThreshold:i&&i.dragStartThreshold!=null?i.dragStartThreshold:5,pointerDirectionChangeThreshold:i&&i.pointerDirectionChangeThreshold!=null?i.pointerDirectionChangeThreshold:5,zIndex:i?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),i&&this._assignDefaults(i),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(W(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){Xe(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let i=e.rootElementSelector,n=e.freeDragPosition;i&&!i.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,n&&!n.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let i=this._handles.getValue();i.push(e),this._handles.next(i)}_removeHandle(e){let i=this._handles.getValue(),n=i.indexOf(e);n>-1&&(i.splice(n,1),this._handles.next(i))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,i=e;this.rootElementSelector&&(i=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(i||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):L(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let i=this._dir,n=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,o=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof n=="object"&&n?n:Ee(n),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(o).withPreviewContainer(this.previewContainer||"global"),i&&e.withDirection(i.value)}}),e.beforeStarted.pipe(qe(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let i=this.element.nativeElement.parentElement;for(;i;){let n=this._dragDropRegistry.getDragDirectiveForNode(i);if(n){e.withParent(n._dragRef);break}i=i.parentElement}})}_handleEvents(e){e.started.subscribe(i=>{this.started.emit({source:this,event:i.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(i=>{this.released.emit({source:this,event:i.event})}),e.ended.subscribe(i=>{this.ended.emit({source:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:i.container.data,item:this,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:i.container.data,item:this})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,isPointerOverContainer:i.isPointerOverContainer,item:this,distance:i.distance,dropPoint:i.dropPoint,event:i.event})})}_assignDefaults(e){let{lockAxis:i,dragStartDelay:n,constrainPosition:r,previewClass:o,boundaryElement:a,draggingDisabled:l,rootElementSelector:h,previewContainer:m}=e;this.disabled=l??!1,this.dragStartDelay=n||0,this.lockAxis=i||null,r&&(this.constrainPosition=r),o&&(this.previewClass=o),a&&(this.boundaryElement=a),h&&(this.rootElementSelector=h),m&&(this.previewContainer=m)}_setupHandlesListener(){this._handles.pipe(ee(e=>{let i=e.map(n=>n.element);this._selfHandle&&this.rootElementSelector&&i.push(this.element),this._dragRef.withHandles(i)}),Ke(e=>Q(...e.map(i=>i._stateChanges.pipe(ge(i))))),W(this._destroyed)).subscribe(e=>{let i=this._dragRef,n=e.element.nativeElement;e.disabled?i.disableHandle(n):i.enableHandle(n)})}static \u0275fac=function(i){return new(i||s)};static \u0275dir=ye({type:s,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(i,n){i&2&&Se("cdk-drag-disabled",n.disabled)("cdk-drag-dragging",n._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",z],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",st]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[we([{provide:Jt,useExisting:s}]),Ye]})}return s})(),Qt=new A("CdkDropListGroup");var di=(()=>{class s{element=g(ve);_changeDetectorRef=g(Pe);_scrollDispatcher=g(St);_dir=g(Te,{optional:!0});_group=g(Qt,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new f;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=g(_t).getId("cdk-drop-list-");lockAxis=null;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;hasAnchor;dropped=new x;entered=new x;exited=new x;sorted=new x;_unsortedItems=new Set;constructor(){let e=g(oi),i=g(ai,{optional:!0});this._dropListRef=e.createDropList(this.element),this._dropListRef.data=this,i&&this._assignDefaults(i),this._dropListRef.enterPredicate=(n,r)=>this.enterPredicate(n.data,r.data),this._dropListRef.sortPredicate=(n,r,o)=>this.sortPredicate(n,r.data,o.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),s._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),e._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let i=this._latestSortedRefs.indexOf(e._dragRef);i>-1&&(this._latestSortedRefs.splice(i,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,i)=>e._dragRef.getVisibleElement().compareDocumentPosition(i._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=s._dropLists.indexOf(this);e>-1&&s._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(ge(this._dir.value),W(this._destroyed)).subscribe(i=>e.withDirection(i)),e.beforeStarted.subscribe(()=>{let i=pt(this.connectedTo).map(n=>{if(typeof n=="string"){let r=s._dropLists.find(o=>o.id===n);return r}return n});if(this._group&&this._group._items.forEach(n=>{i.indexOf(n)===-1&&i.push(n)}),!this._scrollableParentsResolved){let n=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(r=>r.getElementRef().nativeElement);this._dropListRef.withScrollableParents(n),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let n=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(n)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=Ee(this.autoScrollStep,2),e.hasAnchor=this.hasAnchor,e.connectedTo(i.filter(n=>n&&n!==this).map(n=>n._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(i=>i._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(i=>{this.entered.emit({container:this,item:i.item.data,currentIndex:i.currentIndex})}),e.exited.subscribe(i=>{this.exited.emit({container:this,item:i.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(i=>{this.sorted.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,container:this,item:i.item.data})}),e.dropped.subscribe(i=>{this.dropped.emit({previousIndex:i.previousIndex,currentIndex:i.currentIndex,previousContainer:i.previousContainer.data,container:i.container.data,item:i.item.data,isPointerOverContainer:i.isPointerOverContainer,distance:i.distance,dropPoint:i.dropPoint,event:i.event}),this._changeDetectorRef.markForCheck()}),Q(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:i,draggingDisabled:n,sortingDisabled:r,listAutoScrollDisabled:o,listOrientation:a}=e;this.disabled=n??!1,this.sortingDisabled=r??!1,this.autoScrollDisabled=o??!1,this.orientation=a||"vertical",this.lockAxis=i||null}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(i){return new(i||s)};static \u0275dir=ye({type:s,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(i,n){i&2&&(Qe("id",n.id),Se("cdk-drop-list-disabled",n.disabled)("cdk-drop-list-dragging",n._dropListRef.isDragging())("cdk-drop-list-receiving",n._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",z],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",z],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",z],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",z]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[we([{provide:Qt,useValue:void 0},{provide:li,useExisting:s}])]})}return s})();function Ri(s,t){if(s&1&&(c(0,"tr")(1,"td")(2,"a",10),O(3,"img",11),c(4,"span"),p(5),d()()(),c(6,"td"),p(7),d(),c(8,"td"),p(9),d()()),s&2){let e=t.$implicit;_(2),u("href","/menu/channel/marketplace/view?ID="+e.Key.ID,F),_(),u("src",e.Logo,F),_(2),w(e.Key.Name),_(2),w(e==null||e.Value==null?null:e.Value.POSOutlet),_(2),w(e==null||e.Value==null?null:e.Value.Tag)}}var hi=(()=>{let t=class t{constructor(){this.dialogRef=g(xt),this.data=g(Pt);let i=this.data;this.generateChannelName(),this.channels=this.setChannelLogo(i.channels)}ngOnInit(){this.modalConfig=new It,this.modalConfig.title="Channel - New Order Configuration is not Unique!",this.modalConfig.headerType=Tt.Warning,this.modalConfig.hideOk=!0,this.modalConfig.cancelText="Close",this.modalConfig.customWidth="500px",this.modalConfig.bodyScrollable=!0,this.modalConfig.hideClose=!0}setChannelLogo(i){return i.map(n=>(n.Logo=D.getChannelLogoByTypeId(n.Key.TypeID),n))}generateChannelName(){this.channelNames="";let i=this.data.channels;i.forEach((n,r)=>{this.channelNames+=`${n.Key} ${r!=i.length-1?" + ":""}`})}onClose(){this.dialogRef.close()}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=H({type:t,selectors:[["app-modal-channel-warning"]],decls:25,vars:1,consts:[[3,"onCancel","onClose","config"],["content","",1,"pt-2","px-4"],[1,"row"],[1,"col-12"],[1,"lh-base","fs-5"],[1,"mb-4"],[1,"table","table-bordered"],[1,"table-light"],[1,"fs-5","mt-4"],["href","https://support.dealpos.com/en/articles/8281096-setup-multiple-channel-marketplace-to-one-warehouse-outlet","target","_blank"],["target","_blank",3,"href"],[1,"me-3",2,"width","24px",3,"src"]],template:function(n,r){n&1&&(c(0,"modal-material",0),P("onCancel",function(){return r.onClose()})("onClose",function(){return r.onClose()}),c(1,"div",1)(2,"div",2)(3,"div",3)(4,"p",4),p(5," When your order configuration is not unique, your Dashboard Sales Report will be invalid. You can use either Outlet or Order Tag to differentiate Channel Order. "),d(),c(6,"h5",5),p(7,"Your duplicate Channels are"),d(),c(8,"table",6)(9,"thead")(10,"tr",7)(11,"th"),p(12,"Channel"),d(),c(13,"th"),p(14,"Outlet"),d(),c(15,"th"),p(16,"Tag"),d()()(),c(17,"tbody"),ne(18,Ri,10,5,"tr",null,ie),d()(),c(20,"p",8),p(21," Please refer to this "),c(22,"a",9),p(23,"article"),d(),p(24," for more information "),d()()()()()),n&2&&(u("config",r.modalConfig),_(18),re(r.channels))},dependencies:[Rt],encapsulation:2});let s=t;return s})();var ki=s=>[s],G=s=>({"bg-gradient-warning":s}),pi=()=>["/menu/channel/marketplace/view"],_i=s=>({ID:s}),gi=(s,t)=>({"text-danger":s,"text-success":t});function Oi(s,t){if(s&1&&(c(0,"span",16),O(1,"img",17),d(),p(2)),s&2){let e=t.item;_(),u("src",e.Logo,F)("alt",e.Value),_(),E(" ",e.Value," ")}}function Mi(s,t){s&1&&(et(0),c(1,"a",19),p(2,"Add"),d(),tt())}function Li(s,t){if(s&1&&be(0,Mi,3,0,"ng-container",18),s&2){let e=v();u("ngxPermissionsOnly",R(1,ki,e.roleChannelAdd))}}function Ni(s,t){if(s&1){let e=q();c(0,"button",20),P("click",function(){U(e);let n=v();return $(n.onSaveDragAndDrop())}),O(1,"i",21),p(2,"Save Changes "),d()}}function Ai(s,t){if(s&1){let e=q();c(0,"button",22),P("click",function(){U(e);let n=v();return $(n.cdkDragDisabled=!n.cdkDragDisabled)}),O(1,"i",21),p(2,"Sort "),d()}}function Fi(s,t){if(s&1){let e=q();c(0,"div",38),P("click",function(){U(e);let n=v().$implicit,r=v();return $(r.onAuthorizeChannel(n))}),c(1,"span"),p(2," NOT AUTHORIZED "),d(),O(3,"i",39),d()}}function Hi(s,t){if(s&1&&(c(0,"div",32)(1,"span",16),p(2,"Shop Expiration:"),d(),c(3,"span",40),M(4,"expiredTime"),M(5,"expiredTime"),p(6),M(7,"date"),d()()),s&2){let e=v().$implicit;_(3),u("ngClass",xe(10,gi,V(4,3,e==null?null:e.ExpiredTime),!V(5,5,e==null?null:e.ExpiredTime)))("matTooltip","The expiry date for "+e.Name+" Open API authorization from your account "+e.Name+" to Dealpos"),_(3),E(" ",se(7,7,e==null?null:e.ExpiredTime,"dd MMM yyyy")," ")}}function Vi(s,t){if(s&1&&(c(0,"div",32)(1,"span",16),p(2,"Access Token Expiration:"),d(),c(3,"span",40),M(4,"expiredTime"),M(5,"expiredTime"),p(6),M(7,"date"),d()()),s&2){let e=v().$implicit;_(3),u("ngClass",xe(10,gi,V(4,3,e==null?null:e.TokenExpired),!V(5,5,e==null?null:e.TokenExpired)))("matTooltip",e==null?null:e.tokenExpiredMsg),_(3),w(se(7,7,e.TokenExpired,"dd MMM yyyy HH:mm"))}}function zi(s,t){if(s&1&&(c(0,"div")(1,"span"),p(2),d()()),s&2){let e=v().$implicit;_(2),E("[ ",e==null?null:e.TotalMultiwarehouse," Warehouse Registered ]")}}function Bi(s,t){if(s&1&&(c(0,"span",41)(1,"button",42),p(2),d()()),s&2){let e=v(2).$implicit,i=v();u("matTooltip",i.filterProductInventory(e.POSInventoryOutletArray,4,e.POSInventoryOutletArray.length)),_(2),E(" ",e.POSInventoryOutletArray.length-3," ")}}function Gi(s,t){if(s&1&&(c(0,"span",33),p(1),T(2,Bi,3,2,"span",41),d()),s&2){let e=v().$implicit,i=v();_(),E(" ",i.filterProductInventory(e.POSInventoryOutletArray,1,3)," "),_(),I(e.POSInventoryOutletArray.length>3?2:-1)}}function Wi(s,t){s&1&&(c(0,"span",33),p(1," [SUM All Outlet] "),d())}function Ui(s,t){if(s&1&&(c(0,"div",32),p(1," Additional Item: "),c(2,"span",33),p(3),d()()),s&2){let e=v().$implicit;_(3),E(" ",e==null?null:e.Additionalitem)}}function $i(s,t){if(s&1){let e=q();c(0,"tr",13)(1,"td",23)(2,"div",24)(3,"div",25)(4,"a",26),O(5,"img",27),d()(),c(6,"div",28)(7,"div")(8,"a",26)(9,"span",29),p(10),d()()(),c(11,"div")(12,"span"),p(13),d()(),T(14,Fi,4,0,"div",30),d()()(),c(15,"td",31)(16,"div",32)(17,"span",16),p(18,"Sync Orders:"),d(),c(19,"span",33),p(20),d()(),c(21,"div",32)(22,"span",16),p(23,"Product Sync:"),d(),c(24,"span",33),p(25),M(26,"date"),d()(),T(27,Hi,8,13,"div",32),T(28,Vi,8,13,"div",32),T(29,zi,3,1,"div"),d(),c(30,"td",31)(31,"div",34),p(32," New Order To: "),c(33,"span",33),p(34),d()(),c(35,"div",34),p(36," Dispatch Orders From: "),c(37,"span",33),p(38),d()(),c(39,"div",35),p(40," Product Inventory: "),T(41,Gi,3,2,"span",33)(42,Wi,2,0,"span",33),d(),c(43,"div",32),p(44," Minimum Inventory: "),c(45,"span",33),p(46),d()(),T(47,Ui,4,1,"div",32),d(),c(48,"td",31)(49,"div",36)(50,"div",34),p(51," Payment: "),c(52,"span",33),p(53),d()(),c(54,"div",34),p(55," Tag: "),c(56,"span",33),p(57),d()(),c(58,"div",34),p(59," Tax : "),c(60,"span",33),p(61),d()()()(),c(62,"td")(63,"button",37),P("click",function(){let n=U(e).$implicit,r=v();return $(r.onTestChannel(n))}),p(64," Test "),d()()()}if(s&2){let e=t.$implicit,i=v();u("cdkDragDisabled",i.cdkDragDisabled)("matTooltip",e!=null&&e.isComplete?"":"Please complete your channel configuration"),_(),u("ngClass",R(33,G,i.isEmpty(e==null?null:e.isComplete))),_(3),u("routerLink",Ce(35,pi))("queryParams",R(36,_i,e.ID)),_(),u("src",e.logo,F),_(3),u("routerLink",Ce(38,pi))("queryParams",R(39,_i,e.ID)),_(2),w(e==null?null:e.Name),_(3),w(e==null?null:e.URL),_(),I(e.Authorized==!1?14:-1),_(6),w(e==null?null:e.SyncOrder),_(5),w(e!=null&&e.LastSync?se(26,30,e==null?null:e.LastSync,"dd MMM yyyy HH:mm"):"Never"),_(2),I(e.TypeID!=i.channelType.Tiktok&&(e!=null&&e.ExpiredTime)?27:-1),_(),I(e!=null&&e.TokenExpired?28:-1),_(),I(e.MultiWarehouse&&(e==null?null:e.TotalMultiwarehouse)>0?29:-1),_(2),u("ngClass",R(41,G,i.isEmpty(e==null?null:e.POSOutlet)&&!e.MultiWarehouse)),_(3),E(" ",e==null?null:e.POSOutlet),_(),u("ngClass",R(43,G,i.isEmpty(e==null?null:e.POSDeliveryOutlet))),_(3),E(" ",e==null?null:e.POSDeliveryOutlet),_(3),I(e!=null&&e.POSInventoryOutlet?41:42),_(5),E(" ",e==null?null:e.MinimumInventory),_(),I(e!=null&&e.Additionalitem?47:-1),_(3),u("ngClass",R(45,G,i.isEmpty(e==null?null:e.POSInvoicePaymentMethod))),_(3),w(e==null?null:e.POSInvoicePaymentMethod),_(),u("ngClass",R(47,G,i.isEmpty(e==null?null:e.POSSalesOrderType))),_(3),E(" ",e==null?null:e.POSTag),_(),u("ngClass",R(49,G,i.isEmpty(e==null?null:e.POSTax))),_(3),w(e!=null&&e.POSTax?e==null?null:e.POSTax:"-"),_(2),u("hidden",(e==null?null:e.TypeID)==i.channelType.KalCare)}}var Kn=(()=>{let t=class t{constructor(){this.toastr=g(gt),this.channelService=g(Nt),this.dialog=g(Et),this.roleChannelAdd=vt.ChannelAdd,this.pagination={PageSize:20,PageNumber:1},this.hasClickedRowCount=!1,this.channelType=K,this.channelLoader(),this.pageData={Title:"Channel",Nav:[{Title:"Channel",Url:"/menu/channel",Active:!0},{Title:"POS",Url:"/menu/channel/config",Active:!1}]},this.cdkDragDisabled=!0}channelLoader(){this.channelService.getChannelLoader().subscribe(i=>{this.channelOptions=this.mappingChannelOptionLogo(i.Options),this.getChannels()})}onFilter(i){this.hasClickedRowCount=!1,this.getChannels(i)}getChannels(i){this.pageFilter={TypeID:this.channelTypeID,Text:i,RowCount:this.pagination.PageSize,PageNumber:this.pagination.PageNumber},this.channelService.getChannel(this.pageFilter).subscribe(n=>{this.channels=D.assignChannelLogo(n.Data),this.showWarningChannel(n?.ChannelNotUnique),this.checkFieldComplete(),this.mappingTokenExpiredMsg()})}mappingTokenExpiredMsg(){this.channels=this.channels.map(i=>(i.tokenExpiredMsg=this.generateTokenExpiryMessage(i),i=this.mappingIsExpiredDate(i),i))}mappingIsExpiredDate(i){if(D.IsNotEmpty(i.TokenExpired)){let n=new Date(i.TokenExpired);i.isTokenExpired=D.isDateExpired(n)}if(D.IsNotEmpty(i.ExpiredTime)){let n=new Date(i.ExpiredTime);i.isShopExpired=D.isDateExpired(n)}return i}getRowCount(){this.totalRowCount$=this.channelService.getChannelRowCount(this.pageFilter).pipe(ee(()=>this.hasClickedRowCount=!0),Ze(1))}onAuthorizeChannel(i){this.channelService.authorizedChannel(i.TypeID).subscribe()}showWarningChannel(i=[]){i.length>0&&this.isUniqueChannel(i)==!1&&this.dialog.open(hi,{data:{channels:i}})}isUniqueChannel(i){let n=0;return i.forEach((r,o,a)=>{a.forEach(l=>{r.Value.Out==l.Value.Out&&r.Value.Tg==l.Value.Tg&&r.Key.TypeID!==l.Key.TypeID&&(n+=1)})}),n==0}checkFieldComplete(){let i=!1;this.channels=this.channels.map(n=>(n.isComplete=!1,i=D.IsNotEmpty(n.POSOutlet)||n.MultiWarehouse,i&&D.IsNotEmpty(n.POSTax)&&D.IsNotEmpty(n.POSInvoicePaymentMethod)&&D.IsNotEmpty(n.POSSalesOrderType)&&D.IsNotEmpty(n.POSDeliveryOutlet)&&(n.isComplete=!0),n))}isEmpty(i){return D.IsEmpty(i)}onTestChannel(i){this.channelService.testShopID(i).subscribe({next:n=>{this.getChannels()},error:n=>{this.getChannels()}})}onDeleteChannel(i){confirm("Want to delete?")&&this.channelService.deleteChannel(i).subscribe(r=>{this.getChannels()})}onDrop(i){de(this.channels,i.previousIndex,i.currentIndex)}onSaveDragAndDrop(){this.cdkDragDisabled=!0,this.channelService.updateChannelIndex(this.channels).subscribe({next:()=>{this.toastr.success("Channel list successfully saved","Success")}})}filterProductInventory(i,n,r){let o=i;return o=o.filter((l,h)=>(h+=1,h>=n&&h<=r)),o.join(", ")}mappingChannelOptionLogo(i){return i=i.map(n=>{let r=parseInt(n.Key);return n.Logo=D.getChannelLogoByTypeId(r),n}),i}generateTokenExpiryMessage(i){let n="";switch(i.TypeID){case K.Shopee:n="The expiry date for a token to call API to channel (automatically update every 4 hours)";break;case K.Lazada:n="The expiry date for a token to call API to channel (automatically update every 1 Month)";break;case K.Tiktok:n="The expiry date for a token to call API to channel (automatically update every 3 Days)";break}return n}};t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=H({type:t,selectors:[["app-marketplace"]],decls:35,vars:12,consts:[["headerTitle","Channel",3,"onSubmit","pageData"],[1,"fw-bold","mb-2"],["bindLabel","Value","name","TypeID","bindValue","Key","placeholder","Select Channel","appendTo","body",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],["title","Drag and drop the rows of the table below to the order you want then click Save",1,"btn","btn-success","btn-fill","btn-lg","me-3",2,"float","left"],["title","Drag and drop the rows of the table below to the order you want then click Save",1,"btn","btn-outline-secondary","btn-lg","me-3",2,"float","left"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],["cdkDropList","",3,"cdkDropListDropped"],["cdkDrag","",3,"cdkDragDisabled","matTooltip"],[1,"col-12"],[3,"filterChange","total","next","previous","filter","totaldata","paginationTotal","hasClicked"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[4,"ngxPermissionsOnly"],["role","button","routerLink","/menu/channel/marketplace/add",1,"btn","btn-success","btn-fill","btn-lg","text-white"],["title","Drag and drop the rows of the table below to the order you want then click Save",1,"btn","btn-success","btn-fill","btn-lg","me-3",2,"float","left",3,"click"],[1,"fa","fa-arrows-alt-v","me-3"],["title","Drag and drop the rows of the table below to the order you want then click Save",1,"btn","btn-outline-secondary","btn-lg","me-3",2,"float","left",3,"click"],[3,"ngClass"],[1,"d-flex","align-items-center","h-100"],[1,"mx-6"],[3,"routerLink","queryParams"],[2,"width","30px",3,"src"],[1,"lh-base"],[2,"font-size","16px"],["role","button",1,"alert","alert-danger","d-inline-block","px-3","py-1","text-start","mt-2","fw-bold","cursor-pointer",2,"margin-bottom","0px !important"],[1,"vertical-align-top",2,"font-size","12px"],[1,"mb-3"],[2,"color","blue"],[1,"mb-3",3,"ngClass"],[1,"mb-3","d-flex","align-items-center"],[1,"d-inline-block","align-items-start"],[1,"btn","btn-outline-success","mb-3","ms-2","btn-sm",3,"click","hidden"],["role","button",1,"alert","alert-danger","d-inline-block","px-3","py-1","text-start","mt-2","fw-bold","cursor-pointer",2,"margin-bottom","0px !important",3,"click"],[1,"fa-regular","fa-clock","ms-2"],["matTooltipPosition","above",3,"ngClass","matTooltip"],[1,"cursor-pointer",3,"matTooltip"],["type","button",1,"btn","btn-circle","btn-sm"]],template:function(n,r){n&1&&(c(0,"mainpanel",0),P("onSubmit",function(a){return r.onFilter(a)}),c(1,"filters")(2,"div")(3,"label",1),p(4,"Channel"),d(),c(5,"ng-select",2),P("ngModelChange",function(a){return r.channelTypeID=a}),be(6,Oi,3,3,"ng-template",3),d()()(),c(7,"actions"),T(8,Li,1,3,"ng-container"),T(9,Ni,3,0,"button",4)(10,Ai,3,0,"button",5),d(),c(11,"content")(12,"div",6)(13,"div",7)(14,"div",8)(15,"div",9)(16,"table",10)(17,"thead")(18,"tr",11)(19,"th"),p(20,"Channel"),d(),c(21,"th"),p(22,"Sync Info"),d(),c(23,"th"),p(24,"POS Outlet"),d(),c(25,"th"),p(26,"POS Orders"),d(),O(27,"th"),d()(),c(28,"tbody",12),P("cdkDropListDropped",function(a){return r.onDrop(a)}),ne(29,$i,65,51,"tr",13,ie),d()()()()(),c(31,"div",7)(32,"div",14)(33,"app-custom-paginator",15),M(34,"async"),rt("filterChange",function(a){return nt(r.pagination,a)||(r.pagination=a),a}),P("total",function(){return r.getRowCount()})("next",function(){return r.getChannels()})("previous",function(){return r.getChannels()}),d()()()()()()),n&2&&(u("pageData",r.pageData),_(5),u("clearable",!0)("items",r.channelOptions)("ngModel",r.channelTypeID),_(3),I(r.cdkDragDisabled?8:-1),_(),I(r.cdkDragDisabled?10:9),_(20),re(r.channels),_(4),it("filter",r.pagination),u("totaldata",r.channels==null?null:r.channels.length)("paginationTotal",V(34,10,r.totalRowCount$))("hasClicked",r.hasClickedRowCount))},dependencies:[kt,Lt,bt,Dt,yt,Ot,Mt,ft,ut,mt,di,ci,Ct,lt,At,ct,dt,Ft],styles:[".btn-circle.btn-sm[_ngcontent-%COMP%]{width:18px;height:18px;padding:0;border-radius:60px;font-size:10px;text-align:center;background-color:#00f;border-color:#00f;color:#fff}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] > td.vertical-align-top[_ngcontent-%COMP%]{vertical-align:inherit}"]});let s=t;return s})();export{Kn as MarketplaceComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{e as c}from"./chunk-
|
|
1
|
+
import{e as c}from"./chunk-MM7SAZOU.js";import{ma as p,ra as a,v as s}from"./chunk-OHGMB7HJ.js";var v=(()=>{let t=class t{constructor(){this.httpService=a(c)}getInventoryAsyncLog(r){return this.httpService.post("api/Inventory/GetAsyncLog",r).pipe(s(e=>(e.hits=e.hits.map(o=>{let i=JSON.parse(o._source?.log?.response);return o.DurationInSecond=parseInt(i.Duration)/1e3,o.respCode=i?.StatusCode,o}),e)))}getInventoryAsyncLogDetail(r){return this.httpService.post("api/Inventory/GetAsyncLogDetail",{ID:r})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=p({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();export{v as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{e as ot}from"./chunk-C2LAQOUW.js";import{a as lt}from"./chunk-UE2QO2Y4.js";import"./chunk-MT3CWRVG.js";import"./chunk-W33M7S2S.js";import"./chunk-MTVUPPAN.js";import"./chunk-2NRHX6CZ.js";import{a as at}from"./chunk-7KG3DC5J.js";import{a as rt}from"./chunk-5WQ3LCWP.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import{b as it}from"./chunk-G6O6VFLS.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as nt}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import{c as K}from"./chunk-UPRDDI4K.js";import{A as et,h as Z,m as tt}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as Q}from"./chunk-MM7SAZOU.js";import{e as X,g as Y}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as G,q,w as A,x as J,z as U}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$c as z,Hb as L,Nc as l,Oc as x,Pc as w,Rc as V,Sc as k,Tc as H,Xc as O,Z as v,ac as g,ad as W,bd as j,ca as E,cc as S,ec as F,f as D,fc as R,gc as $,hc as d,ic as o,id as c,jc as a,jd as u,kc as N,kd as I,lb as M,mb as P,ob as p,ra as b,rc as B,v as _,wc as T,ya as C,yc as s,za as h}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var pt=(i,r)=>({"bg-gradient-danger":i,"bg-gradient-warning":r}),st=()=>["/menu/products/status/notification/detail"],ct=i=>({ID:i});function mt(i,r){if(i&1&&(l(0),c(1,"number"),o(2,"span"),l(3,"s"),a()),i&2){let n=s().$implicit;w(" ",I(1,1,n.DurationInSecond,"1.1-1")," ")}}function dt(i,r){i&1&&l(0," - ")}function ut(i,r){if(i&1&&(o(0,"tr",11)(1,"td")(2,"a",12),N(3,"img",13),o(4,"span"),l(5),a()()(),o(6,"td")(7,"b"),l(8),a(),N(9,"div",14),a(),o(10,"td"),g(11,mt,4,4)(12,dt,1,0),a(),o(13,"td"),l(14),a(),o(15,"td"),l(16),c(17,"date"),a()()),i&2){let n=r.$implicit;d("ngClass",j(14,pt,n.Status==1,n.Status==0)),p(2),d("routerLink",z(17,st))("queryParams",W(18,ct,n.ID)),p(),d("src",O(n.Img),P),p(2),x(n.Name),p(3),x(n.Label),p(),d("innerHTML",n.Message,M),p(2),S(n.DurationInSecond?11:12),p(3),x(n.StatusLabel),p(2),w(" ",I(17,11,n.Created,"dd MMM yyyy HH:mm")," ")}}function ft(i,r){if(i&1){let n=B();o(0,"div",5)(1,"div",15)(2,"app-custom-paginator",16),c(3,"async"),c(4,"async"),T("total",function(){C(n);let t=s(2);return h(t.getRowCount())})("next",function(){C(n);let t=s(2);return h(t.getNotifications())})("previous",function(){C(n);let t=s(2);return h(t.getNotifications())}),a()()()}if(i&2){let n=s(),e=s();p(2),d("filter",e.filter)("totaldata",n==null?null:n.length)("paginationTotal",u(3,4,e.rowCount$))("hasClicked",u(4,6,e.rowCount$))}}function _t(i,r){i&1&&g(0,ft,5,8,"div",5),i&2&&S(r.length>0?0:-1)}var $t=(()=>{let r=class r{constructor(){this.http=b(Q),this.notificationService=b(it),this.filter=new at,this.destroy$=new D}ngOnInit(){this.notificationService.clearNotification(),this.initPageLoader(),this.subscribeNotification()}subscribeNotification(){this.notificationService.getNotification().pipe(E(this.destroy$)).subscribe(e=>{e.length>0&&(this.getNotifications(),this.notificationService.clearNotification())})}initPageLoader(){this.http.post("/api/notification/Load",{}).subscribe(e=>{this.filter=e.Filter,this.filter.PageSize=this.filter.RowCount,this.getNotifications()})}onFilter(){this.rowCount$=null,this.getNotifications()}getNotifications(){let e={ChannelID:this.filter.ChannelID,RowCount:this.filter.PageSize,PageNumber:this.filter.PageNumber};this.notifications$=this.http.post("/api/notification/Get",e).pipe(_(t=>t.Data),_(t=>(t=this.setChannelLogoToNotifications(t),t=this.setTimeToSecond(t),t)),v(1))}setTimeToSecond(e){return e=e.map(t=>(t.DurationInSecond=parseInt(t.Duration)/1e3,t)),e}setChannelLogoToNotifications(e){return e=e.map(t=>(t.Img=K.getChannelLogoByTypeId(t.TypeID),t)),e}getRowCount(){let e={ChannelID:this.filter.ChannelID};this.rowCount$=this.http.post("/api/notification/RowCount",e).pipe(_(t=>t.Count),v(1))}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=L({type:r,selectors:[["app-notification"]],decls:33,vars:6,consts:[["headerTitle","Product Scan Job","hideSearchBox","true",3,"onSubmit"],["routerLink","/menu/products/status/notificationV2",1,"btn","btn-outline-secondary","btn-lg"],[1,"mb-2"],[3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[3,"ngClass"],[3,"routerLink","queryParams"],["alt","",1,"channelLogo-md","me-4",3,"src"],[3,"innerHTML"],[1,"col-12"],[3,"total","next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(t,m){if(t&1&&(o(0,"mainpanel",0),T("onSubmit",function(){return m.onFilter()}),o(1,"actions")(2,"a",1),l(3," Scan Job V2 "),a()(),o(4,"filters")(5,"div")(6,"h6",2),l(7,"Channel"),a(),o(8,"app-channel-options-v2",3),H("ngModelChange",function(y){return k(m.filter.ChannelID,y)||(m.filter.ChannelID=y),y}),a()()(),o(9,"content")(10,"div",4)(11,"div",5)(12,"div",6)(13,"div",7)(14,"table",8)(15,"thead",9)(16,"tr",10)(17,"th"),l(18,"Channel"),a(),o(19,"th"),l(20,"Process"),a(),o(21,"th"),l(22,"Duration"),a(),o(23,"th"),l(24,"Status"),a(),o(25,"th"),l(26,"Created"),a()()(),o(27,"tbody"),R(28,ut,18,20,"tr",11,F),c(30,"async"),a()()()()(),g(31,_t,1,1),c(32,"async"),a()()()),t&2){let f;p(8),V("ngModel",m.filter.ChannelID),p(20),$(u(30,2,m.notifications$)),p(3),S((f=u(32,4,m.notifications$))?31:-1,f)}},dependencies:[G,q,et,Z,tt,nt,rt,ot,Y,X,lt,A,U,J],encapsulation:2});let i=r;return i})();export{$t as NotificationComponent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as _e}from"./chunk-V6QH3IVL.js";import"./chunk-4VNQYYVV.js";import{a as c}from"./chunk-QJ55WDGL.js";import{b as fe}from"./chunk-G6O6VFLS.js";import"./chunk-A6QXXKPR.js";import{a as he}from"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import{a as be}from"./chunk-YNL43MLU.js";import{c as ue}from"./chunk-O4D64GHO.js";import{B as ae,H as oe,I as A,l as Y,m as ee,q as te,u as ie,v as ne}from"./chunk-7R2D2JZ6.js";import{a as o}from"./chunk-ZSUWHVKX.js";import{b as Z,h as ge}from"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{a as me,b as ce,c as pe}from"./chunk-5UFP37GQ.js";import"./chunk-UPRDDI4K.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-MM7SAZOU.js";import{c as re,d as se,e as le,f as de,g as I}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as X,q as K,w as Q,x as W}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Da as N,Fd as P,Hb as M,Ib as _,Jb as j,Kc as y,Mc as E,Nb as S,Nc as g,Oc as w,Pc as x,Ra as U,ac as v,bc as G,cc as C,ec as H,fc as q,gc as J,hc as u,ic as r,id as T,jc as m,jd as D,kc as f,mb as V,na as b,ob as d,ra as s,ub as F,v as L,wc as z,yc as p,zb as $}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import{i as k}from"./chunk-66YHNWRR.js";var O=class{constructor(){this.menus=[{Icon:"fa-solid fa-chart-pie",Title:"Dashboard",Url:"/menu/dashboard",Roles:[o.DashboardView]},{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products",Roles:[o.ProductView]},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory",Roles:[o.InventoryView]},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price",Roles:[o.PriceView]},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/order",Roles:[o.OrderView]},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel",Roles:[o.ChannelView]},{Icon:"fa-solid fa-user",Title:"Users",Url:"/menu/users",Roles:[o.UserView]},{Icon:"fas fa-clipboard-list",Title:"Sync Logs",Url:"/menu/sync-log",Roles:[o.Report]},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic",Roles:[o.LogisticView]},{Icon:"fas fa-file-alt",Title:"Developer",Url:"/menu/log",Roles:[o.DevView]},{Icon:"fa-solid fa-file-brackets-curly",Title:"JSON Api",Url:"/menu/json-api",Roles:[o.JsonApiView]}]}get getMenu(){return this.menus}};var ve="mat-badge-content",we=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275cmp=M({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(i,a){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return e})(),Ce=(()=>{class e{_ngZone=s(F);_elementRef=s(U);_ariaDescriber=s(ae);_renderer=s($);_animationsDisabled=oe();_idGenerator=s(ne);get color(){return this._color}set color(t){this._setColor(t),this._color=t}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(t){this._updateRenderedContent(t)}_content;get description(){return this._description}set description(t){this._updateDescription(t)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=s(te);_document=s(N);constructor(){let t=s(Y);t.load(we),t.load(ee)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let t=this._renderer.createElement("span"),i="mat-badge-active";return t.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),t.setAttribute("aria-hidden","true"),t.classList.add(ve),this._animationsDisabled&&t.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(t),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{t.classList.add(i)})}):t.classList.add(i),t}_updateRenderedContent(t){let i=`${t??""}`.trim();this._isInitialized&&i&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=i),this._content=i}_updateDescription(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!t||this._isHostInteractive())&&this._removeInlineDescription(),this._description=t,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,t):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(t){let i=this._elementRef.nativeElement.classList;i.remove(`mat-badge-${this._color}`),t&&i.add(`mat-badge-${t}`)}_clearExistingBadges(){let t=this._elementRef.nativeElement.querySelectorAll(`:scope > .${ve}`);for(let i of Array.from(t))i!==this._badgeElement&&i.remove()}static \u0275fac=function(i){return new(i||e)};static \u0275dir=j({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(i,a){i&2&&y("mat-badge-overlap",a.overlap)("mat-badge-above",a.isAbove())("mat-badge-below",!a.isAbove())("mat-badge-before",!a.isAfter())("mat-badge-after",a.isAfter())("mat-badge-small",a.size==="small")("mat-badge-medium",a.size==="medium")("mat-badge-large",a.size==="large")("mat-badge-hidden",a.hidden||!a.content)("mat-badge-disabled",a.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",P],disabled:[2,"matBadgeDisabled","disabled",P],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",P]}})}return e})(),xe=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=_({type:e});static \u0275inj=b({imports:[ie,A,A]})}return e})();function Oe(e,n){if(e&1&&(r(0,"p",21),g(1),m()),e&2){let t=p(3).$implicit;d(),x(" ",t.Title," ")}}function ke(e,n){if(e&1&&(r(0,"p"),g(1),m()),e&2){let t=p(3).$implicit;d(),w(t.Title)}}function Se(e,n){if(e&1&&(r(0,"a",18),f(1,"i"),v(2,Oe,2,1,"p",21)(3,ke,2,1,"p"),m()),e&2){let t=p(2).$implicit;u("href",t.Url,V),d(),E(t.Icon),d(),C(t.Badge?2:3)}}function ze(e,n){if(e&1&&S(0,Se,4,4,"a",20),e&2){let t=p().$implicit;u("ngxPermissionsOnly",t.Roles)}}function Ee(e,n){if(e&1&&(r(0,"p",21),g(1),m()),e&2){let t=p(4).$implicit;d(),x(" ",t.Title," ")}}function Te(e,n){if(e&1&&(r(0,"p"),g(1),m()),e&2){let t=p(4).$implicit;d(),w(t.Title)}}function De(e,n){if(e&1&&(v(0,Ee,2,1,"p",21),T(1,"async"),G(2,Te,2,1,"p")),e&2){let t=p(4);C(D(1,1,t.notifications$)!=0?0:2)}}function Ae(e,n){if(e&1&&(r(0,"p"),g(1),m()),e&2){let t=p(3).$implicit;d(),w(t.Title)}}function Ie(e,n){if(e&1&&(r(0,"a",19),f(1,"i"),v(2,De,3,3)(3,Ae,2,1,"p"),m()),e&2){let t=p(2).$implicit,i=p();u("matTooltip",i.isCollapseSidebar?t.Title:"")("routerLink",t.Url),d(),E(t.Icon),d(),C(t.Badge?2:3)}}function Be(e,n){if(e&1&&S(0,Ie,4,5,"a",22),e&2){let t=p().$implicit;u("ngxPermissionsOnly",t.Roles)}}function Re(e,n){if(e&1&&(r(0,"li",16),v(1,ze,1,1,"a",18)(2,Be,1,1,"a",19),m()),e&2){let t=n.$implicit;d(),C(t.ExternalLink?1:2)}}var Me=(()=>{let n=class n{constructor(){this.toggleSidebarService=s(he),this.notificationService=s(fe),this.decodeTokenService=s(Z),this.authService=s(ge),this.Menu={};let i=this.decodeTokenService;this.isCollapseSidebar=!1,this.token=i.getParseToken(),this.storeName=this.token.StoreName,this.Menu=new O().getMenu,this.toggleState$=this.toggleSidebarService.toggleState$}ngOnInit(){this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe(L(i=>i.length))}onLogout(){this.authService.logout()}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(i){if(i){let a,l=i.split(" ");return l.length==1?a=l[0].substring(0,2):a=l.shift().charAt(0)+l.pop().charAt(0),a}}};n.\u0275fac=function(a){return new(a||n)},n.\u0275cmp=M({type:n,selectors:[["app-menu"]],standalone:!1,decls:29,vars:8,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["routerLink","/menu/profile",1,"dropdown-item","h5",2,"cursor","pointer"],["aria-hidden","true",1,"fa-user","fas"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active"],[1,"main-panel"],["target","_blank",1,"nav-link","position-relative","d-block","changelog",3,"href"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],["class","nav-link position-relative d-block changelog","target","_blank",3,"href",4,"ngxPermissionsOnly"],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation"],["class","nav-link position-relative d-block","matTooltipPosition","right",3,"matTooltip","routerLink",4,"ngxPermissionsOnly"]],template:function(a,l){a&1&&(r(0,"div",0),T(1,"async"),r(2,"div",1)(3,"button",2),z("click",function(){return l.onCallapseSidebar()}),f(4,"i",3),m(),r(5,"div",4)(6,"div",5)(7,"a",6),g(8),m(),r(9,"div",7)(10,"div",8),g(11),m(),f(12,"div",9),r(13,"a",10),f(14,"i",11),g(15,"\xA0 "),r(16,"span"),g(17,"My Profile"),m()(),r(18,"a",12),z("click",function(){return l.onLogout()}),f(19,"i",13),g(20,"\xA0 "),r(21,"span"),g(22," Log Out"),m()()()()(),r(23,"div",14)(24,"ul",15),q(25,Re,3,1,"li",16,H),m()()(),r(27,"div",17),f(28,"router-outlet"),m()()),a&2&&(y("nav-open",D(1,6,l.toggleState$)),d(2),u("ngClass",l.isCollapseSidebar?"collapses":""),d(2),u("ngClass",l.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),d(4),x(" ",l.storeName," "),d(3),x(" ",l.token==null?null:l.token.LID," "),d(14),J(l.Menu))},dependencies:[K,re,le,de,ue,Ce,ce,Q],styles:["@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}} p.shake-animation.mat-badge>span.mat-badge-content{animation:_ngcontent-%COMP%_shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes _ngcontent-%COMP%_shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}} .changelog:visited p.shake-animation.mat-badge>span.mat-badge-content{color:#77c425;background-color:#77c425;z-index:-1}@media print{.main-panel[_ngcontent-%COMP%]{padding:0!important}}"]});let e=n;return e})();var h=(e,n)=>k(null,null,function*(){let t=s(me),i=s(se),a=e.data?.roles||[],l=e.data?.redirectUrl||"/";return a.length===0||(yield Le(t,a))?!0:(i.navigate([l]),!1)});function Le(e,n){return k(this,null,function*(){let t=n.map(a=>e.hasPermission(a));return(yield Promise.all(t)).some(a=>a)})}var Ne=[{path:"",component:Me,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"profile",loadChildren:()=>import("./chunk-PBAFAOKJ.js").then(e=>e.routes),canActivate:[c],data:{title:"My Profile"}},{path:"dashboard",loadChildren:()=>import("./chunk-TYQYNICX.js").then(e=>e.routes),canActivate:[c,h,_e],data:{title:"Dashboard",roles:[o.DashboardView],redirectUrl:"/menu/products"}},{path:"products",loadChildren:()=>import("./chunk-JZ3E5MLG.js").then(e=>e.routes),canActivate:[c,h],data:{title:"Products",roles:[o.ProductView],redirectUrl:"/menu/inventory"}},{path:"inventory",loadChildren:()=>import("./chunk-NMFPLAWN.js").then(e=>e.routes),canActivate:[c,h],data:{title:"Inventory",roles:[o.InventoryView],redirectUrl:"/menu/price"}},{path:"price",loadChildren:()=>import("./chunk-EHND5PFE.js").then(e=>e.routes),canActivate:[c,h],data:{title:"Price",roles:[o.PriceView],redirectUrl:"/menu/Order"}},{path:"order",loadChildren:()=>import("./chunk-4XENFCCZ.js").then(e=>e.routes),canActivate:[c],data:{title:"Order"}},{path:"sync-log",loadChildren:()=>import("./chunk-KDIXLH2S.js").then(e=>e.routes),canActivate:[c,h],data:{title:"Report",roles:[o.Report],redirectUrl:"/menu/Logistic"}},{path:"Logistic",loadComponent(){return import("./chunk-BYX6HZW7.js").then(e=>e.LogisticComponent)},canActivate:[c,h],data:{title:"Logistic",roles:[o.LogisticView],redirectUrl:"/menu/channel"}},{path:"channel",loadChildren:()=>import("./chunk-X35EOX3B.js").then(e=>e.routes),canActivate:[c,h],data:{title:"Marketplace",roles:[o.ChannelView],redirectUrl:"/menu/log"}},{path:"log",loadChildren:()=>import("./chunk-CC7KUBNZ.js").then(e=>e.routes),canActivate:[c,h],data:{title:"Orders",roles:[o.DevView]}},{path:"users",loadChildren:()=>import("./chunk-A53NYS6S.js").then(e=>e.userRoutes),canActivate:[c,h],data:{title:"Users",roles:[o.UserView],redirectUrl:"/menu/dashboard"}},{path:"json-api",loadChildren:()=>import("./chunk-ZMQQVXQU.js").then(e=>e.routes),canActivate:[c],data:{title:"Json API"}}]}],ye=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=_({type:n}),n.\u0275inj=b({imports:[I.forChild(Ne),I]});let e=n;return e})();var Tt=(()=>{let n=class n{};n.\u0275fac=function(a){return new(a||n)},n.\u0275mod=_({type:n}),n.\u0275inj=b({providers:[W],imports:[X,ye,be,xe,pe.forChild()]});let e=n;return e})();export{Tt as MenuModule};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
`],encapsulation:2,changeDetection:0})}return s})(),b=class s{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new E;constructor(t,e,i,n,r){this._target=t,this._ngZone=e,this._platform=n,n.isBrowser&&(this._containerElement=
|
|
1
|
+
import{H as k,a as N,b as P,e as L,f as U,g as _,i as f,l as S}from"./chunk-7R2D2JZ6.js";import{Ca as O,Hb as F,Jb as C,Kc as M,Ra as w,pa as y,ra as p,ub as A}from"./chunk-OHGMB7HJ.js";import{a}from"./chunk-66YHNWRR.js";var l=(function(s){return s[s.FADING_IN=0]="FADING_IN",s[s.VISIBLE=1]="VISIBLE",s[s.FADING_OUT=2]="FADING_OUT",s[s.HIDDEN=3]="HIDDEN",s})(l||{}),v=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=l.HIDDEN;constructor(t,e,i,n=!1){this._renderer=t,this.element=e,this.config=i,this._animationForciblyDisabledThroughCss=n}fadeOut(){this._renderer.fadeOutRipple(this)}},H=_({passive:!0,capture:!0}),E=class{_events=new Map;addHandler(t,e,i,n){let r=this._events.get(e);if(r){let d=r.get(i);d?d.add(n):r.set(i,new Set([n]))}else this._events.set(e,new Map([[i,new Set([n])]])),t.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,H)})}removeHandler(t,e,i){let n=this._events.get(t);if(!n)return;let r=n.get(e);r&&(r.delete(i),r.size===0&&n.delete(e),n.size===0&&(this._events.delete(t),document.removeEventListener(t,this._delegateEventHandler,H)))}_delegateEventHandler=t=>{let e=L(t);e&&this._events.get(t.type)?.forEach((i,n)=>{(n===e||n.contains(e))&&i.forEach(r=>r.handleEvent(t))})}},x={enterDuration:225,exitDuration:150},Y=800,G=_({passive:!0,capture:!0}),B=["mousedown","touchstart"],z=["mouseup","mouseleave","touchend","touchcancel"],j=(()=>{class s{static \u0275fac=function(i){return new(i||s)};static \u0275cmp=F({type:s,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(i,n){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return s})(),b=class s{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new E;constructor(t,e,i,n,r){this._target=t,this._ngZone=e,this._platform=n,n.isBrowser&&(this._containerElement=f(i)),r&&r.get(S).load(j)}fadeInRipple(t,e,i={}){let n=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=a(a({},x),i.animation);i.centered&&(t=n.left+n.width/2,e=n.top+n.height/2);let d=i.radius||X(t,e,n),Z=t-n.left,V=e-n.top,h=r.enterDuration,o=document.createElement("div");o.classList.add("mat-ripple-element"),o.style.left=`${Z-d}px`,o.style.top=`${V-d}px`,o.style.height=`${d*2}px`,o.style.width=`${d*2}px`,i.color!=null&&(o.style.backgroundColor=i.color),o.style.transitionDuration=`${h}ms`,this._containerElement.appendChild(o);let D=window.getComputedStyle(o),$=D.transitionProperty,T=D.transitionDuration,m=$==="none"||T==="0s"||T==="0s, 0s"||n.width===0&&n.height===0,c=new v(this,o,i,m);o.style.transform="scale3d(1, 1, 1)",c.state=l.FADING_IN,i.persistent||(this._mostRecentTransientRipple=c);let u=null;return!m&&(h||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let R=()=>{u&&(u.fallbackTimer=null),clearTimeout(I),this._finishRippleTransition(c)},g=()=>this._destroyRipple(c),I=setTimeout(g,h+100);o.addEventListener("transitionend",R),o.addEventListener("transitioncancel",g),u={onTransitionEnd:R,onTransitionCancel:g,fallbackTimer:I}}),this._activeRipples.set(c,u),(m||!h)&&this._finishRippleTransition(c),c}fadeOutRipple(t){if(t.state===l.FADING_OUT||t.state===l.HIDDEN)return;let e=t.element,i=a(a({},x),t.config.animation);e.style.transitionDuration=`${i.exitDuration}ms`,e.style.opacity="0",t.state=l.FADING_OUT,(t._animationForciblyDisabledThroughCss||!i.exitDuration)&&this._finishRippleTransition(t)}fadeOutAll(){this._getActiveRipples().forEach(t=>t.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(t=>{t.config.persistent||t.fadeOut()})}setupTriggerEvents(t){let e=f(t);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,B.forEach(i=>{s._eventManager.addHandler(this._ngZone,i,e,this)}))}handleEvent(t){t.type==="mousedown"?this._onMousedown(t):t.type==="touchstart"?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{z.forEach(e=>{this._triggerElement.addEventListener(e,this,G)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(t){t.state===l.FADING_IN?this._startFadeOutTransition(t):t.state===l.FADING_OUT&&this._destroyRipple(t)}_startFadeOutTransition(t){let e=t===this._mostRecentTransientRipple,{persistent:i}=t.config;t.state=l.VISIBLE,!i&&(!e||!this._isPointerDown)&&t.fadeOut()}_destroyRipple(t){let e=this._activeRipples.get(t)??null;this._activeRipples.delete(t),this._activeRipples.size||(this._containerRect=null),t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),t.state=l.HIDDEN,e!==null&&(t.element.removeEventListener("transitionend",e.onTransitionEnd),t.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),t.element.remove()}_onMousedown(t){let e=N(t),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+Y;!this._target.rippleDisabled&&!e&&!i&&(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled&&!P(t)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let e=t.changedTouches;if(e)for(let i=0;i<e.length;i++)this.fadeInRipple(e[i].clientX,e[i].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(t=>{let e=t.state===l.VISIBLE||t.config.terminateOnPointerUp&&t.state===l.FADING_IN;!t.config.persistent&&e&&t.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let t=this._triggerElement;t&&(B.forEach(e=>s._eventManager.removeHandler(e,t,this)),this._pointerUpEventsRegistered&&(z.forEach(e=>t.removeEventListener(e,this,G)),this._pointerUpEventsRegistered=!1))}};function X(s,t,e){let i=Math.max(Math.abs(s-e.left),Math.abs(s-e.right)),n=Math.max(Math.abs(t-e.top),Math.abs(t-e.bottom));return Math.sqrt(i*i+n*n)}var q=new y("mat-ripple-global-options"),lt=(()=>{class s{_elementRef=p(w);_animationsDisabled=k();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=p(A),i=p(U),n=p(q,{optional:!0}),r=p(O);this._globalOptions=n||{},this._rippleRenderer=new b(this,e,this._elementRef,i,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:a(a(a({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,i=0,n){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,i,a(a({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,a(a({},this.rippleConfig),e))}static \u0275fac=function(i){return new(i||s)};static \u0275dir=C({type:s,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(i,n){i&2&&M("mat-ripple-unbounded",n.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return s})();export{x as a,b,q as c,lt as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as U}from"./chunk-ROS2QMKF.js";import{a as K,b as X,c as Y,i as Z,j as $}from"./chunk-5WT456T7.js";import{c as J}from"./chunk-O4D64GHO.js";import{A as G,c as z,h as L,m as q}from"./chunk-WAXAIL2I.js";import{a as W}from"./chunk-RQUCYFCB.js";import{A as Q,v as A}from"./chunk-JNRCB7N3.js";import{Ac as v,Cc as D,Dc as P,Ec as B,Hb as _,Mc as j,Nb as b,Nc as F,Pc as V,Rc as R,Sc as O,Tc as N,ac as w,ad as H,cc as M,f as y,hc as h,ic as o,jc as a,kc as g,ld as I,ma as T,ob as d,qc as k,ra as c,rc as S,tb as C,ud as x,wc as m,ya as u,yc as s,za as f,zc as E}from"./chunk-OHGMB7HJ.js";var te=(()=>{let t=class t{constructor(){this.filterSubject=new y,this.onTriggerfilter$=this.filterSubject.asObservable()}openModalFilter(){this.filterSubject.next()}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=T({token:t,factory:t.\u0275fac,providedIn:"root"});let n=t;return n})();function ie(n,t){n&1&&k(0)}var ne=(()=>{let t=class t{constructor(){this.dialogRef=c(K),this.data=c(X),this.initModal()}initModal(){this.modalConfig=new Z,this.modalConfig.title="Filter",this.modalConfig.customWidth="450px",this.modalConfig.bodyScrollable=!0}onSubmit(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["app-modal-filter"]],decls:3,vars:2,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[4,"ngTemplateOutlet"]],template:function(e,i){e&1&&(o(0,"modal-material",0),m("onClose",function(){return i.onClose()})("onCancel",function(){return i.onClose()})("onOk",function(){return i.onSubmit()}),o(1,"div",1),b(2,ie,1,0,"ng-container",2),a()()),e&2&&(h("config",i.modalConfig),d(2),h("ngTemplateOutlet",i.data.template))},dependencies:[Q,A,$],encapsulation:2});let n=t;return n})();var oe=["filterTemplateRef"],ae=[[["actions"]],[["content"]],[["filters"]]],re=["actions","content","filters"],le=n=>({"ps-5":n});function de(n,t){if(n&1){let l=S();o(0,"div",8)(1,"input",19),N("ngModelChange",function(e){u(l);let i=s();return O(i.text,e)||(i.text=e),f(e)}),m("keyup",function(){u(l);let e=s();return f(e.onTextChange())})("keyup.enter",function(){u(l);let e=s();return f(e.onSubmit())}),a(),o(2,"div")(3,"button",20),m("click",function(){u(l);let e=s();return f(e.onSubmit())}),g(4,"i",21),a()()()}if(n&2){let l=s();d(),R("ngModel",l.text),h("placeholder",l.searchBoxPlaceHolder)}}function se(n,t){n&1&&v(0,2)}function ce(n,t){if(n&1){let l=S();o(0,"div",22)(1,"a",23),m("click",function(){u(l);let e=s();return f(e.openFilterModal())}),o(2,"i",24),g(3,"i",25),a()(),b(4,se,1,0,"ng-template",null,0,I),a()}if(n&2){let l=s();j(H(2,le,!l.hideSearchBox()))}}var Re=(()=>{let t=class t{constructor(){this.sidebarService=c(U),this.dialog=c(Y),this.mainPanelService=c(te),this.headerTitle=x(void 0),this.textButton=x(void 0),this.hideSearchBox=x(void 0),this.hideSearchDropdown=x(void 0),this.searchBoxPlaceHolder="Search...",this.submitEvent=new C,this.textChange=new C,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search..",this.mainPanelService.onTriggerfilter$.pipe(W()).subscribe(()=>{this.openFilterModal()})}onSubmit(){this.inputText=this.text,this.submitEvent.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}toggleMenu(){this.sidebarService.toggleSidebar()}openFilterModal(){this.dialog.open(ne,{data:{template:this.filterTemplateRef}}).afterClosed().subscribe(r=>{r&&this.onSubmit()})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=_({type:t,selectors:[["mainpanel"]],viewQuery:function(e,i){if(e&1&&D(oe,5),e&2){let p;P(p=B())&&(i.filterTemplateRef=p.first)}},inputs:{text:"text",headerTitle:[1,"headerTitle"],textButton:[1,"textButton"],hideSearchBox:[1,"hideSearchBox"],hideSearchDropdown:[1,"hideSearchDropdown"],searchBoxPlaceHolder:"searchBoxPlaceHolder",description:"description"},outputs:{submitEvent:"onSubmit",textChange:"textChange"},ngContentSelectors:re,decls:26,vars:4,consts:[["filterTemplateRef",""],[1,"navbar","navbar-default","fixed-top","navbar-expand-lg","fixed-top","d-block","d-print-none","bg-white"],[1,"row","px-7",2,"margin-top","9px"],[1,"col-auto","pe-0","order-0","g-0","ms-6"],[1,"navbar-brand","me-5","float-start","my-1",2,"margin-right","0px !important",3,"matTooltip"],["id","action-filter",1,"col-lg-auto","col-12","d-lg-flex","collapse","order-lg-1","ps-0","order-2","gx-0","ms-5",2,"padding-left","0px"],[1,"search-box"],[1,"d-flex","h-100","align-items-center","justify-content-lg-start","justify-content-end"],[1,"input-group",2,"width","13.375rem"],[1,"text-secondary",3,"class"],[1,"col","d-lg-none","d-flex","justify-content-end","align-items-center","order-lg-2","order-1"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-button","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-sort-down"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-filter","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-search"],["type","button","aria-controls","navigation-index","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right","float-end","toggle-menu","ps-2","pe-0",2,"width","max-content","height","max-content",3,"click"],[1,"navbar-toggler-bar","burger-lines"],["id","action-button",1,"col-lg","col-12","d-lg-flex","justify-content-end","collapse","order-3"],[1,"main-panel-content","d-block","d-print-none"],["type","text",1,"form-control",2,"font-size","1rem",3,"ngModelChange","keyup","keyup.enter","ngModel","placeholder"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0","border-start-0",3,"click"],[1,"fa","fa-search"],[1,"text-secondary"],["role","button","aria-expanded","false",1,"text-muted","h5",3,"click"],[1,"fa","fa-filter","d-flex","align-items-end"],[1,"fa-solid","fa-caret-down","fs-6"]],template:function(e,i){e&1&&(E(ae),o(0,"nav",1)(1,"div",2)(2,"div",3)(3,"h1",4),F(4),a()(),o(5,"div",5)(6,"div",6)(7,"div",7)(8,"div")(9,"div"),w(10,de,5,2,"div",8),a()(),w(11,ce,6,4,"div",9),a()()(),o(12,"div",10)(13,"button",11),g(14,"i",12),a(),o(15,"button",13),g(16,"i",14),a(),o(17,"button",15),m("click",function(){return i.toggleMenu()}),g(18,"span",16)(19,"span",16)(20,"span",16),a()(),o(21,"div",17),v(22),a()()(),o(23,"div",18)(24,"div"),v(25,1),a()()),e&2&&(d(3),h("matTooltip",i.description?i.description:""),d(),V(" ",i.headerTitle()," "),d(6),M(i.hideSearchBox()?-1:10),d(),M(i.hideSearchDropdown()?-1:11))},dependencies:[J,G,z,L,q],styles:[`.search-box .form-control{height:auto}.navbar .navbar-brand{white-space:nowrap;max-width:24.75rem;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}@media (max-width: 468px){.navbar .navbar-brand{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media (max-width: 480px){.navbar.page-nav{height:auto}}@media (min-width: 1366px){.navbar.page-nav{height:44px}}
|
|
2
|
+
`],encapsulation:2});let n=t;return n})();export{te as a,Re as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u,b as c}from"./chunk-J6HA4ZHH.js";import"./chunk-YNL43MLU.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as i}from"./chunk-ZSUWHVKX.js";import"./chunk-5UFP37GQ.js";import{c as m,g as p}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import"./chunk-JNRCB7N3.js";import{Hb as l,hc as a,ic as s,jc as d,kc as t,ob as n}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var C=(()=>{let e=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:[i.DownloadOrder]},{Title:"Log",Url:"/menu/order/log",Permissions:[i.DownloadOrder]}]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=l({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&&(s(0,"nav",0)(1,"div",1)(2,"div"),t(3,"nav-tab",2),d()()(),t(4,"router-outlet")),o&2&&(n(3),a("Tabs",v.tabs)("usePermissions",!0))},dependencies:[p,m,c,u],encapsulation:2});let r=e;return r})();export{C as OrdersV2Component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ae,b as ce,d as pe}from"./chunk-C2LAQOUW.js";import{b as se}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import{c as le}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as ie}from"./chunk-ZSUWHVKX.js";import{h as te}from"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as Z,c as ee}from"./chunk-5UFP37GQ.js";import{b as g,c as Q}from"./chunk-UPRDDI4K.js";import{A as re,h as ne,m as oe}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as X,e as Y}from"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{w as q}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as B,Ic as E,Nb as u,Nc as c,Oc as h,Pc as H,Rc as T,Sc as O,Tc as P,Uc as z,Vc as J,Wc as j,Z as x,aa as I,ac as k,ad as G,cc as F,ea as D,ec as R,fc as K,gc as V,hc as m,ic as o,id as S,jc as l,jd as f,kc as W,ld as N,mb as U,ob as a,oc as $,pc as A,q as M,ra as _,rc as v,v as C,wc as b,ya as L,yc as p,za as y}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var me=t=>[t];function de(t,s){if(t&1&&(o(0,"span",14),W(1,"img",15),l(),o(2,"span"),c(3),l()),t&2){let r=s.item;a(),m("src",r.Img,U)("alt",r.Name),a(2),H(" ",r.Name," ")}}function ge(t,s){if(t&1){let r=v();$(0),z(1),S(2,"async"),o(3,"a",16),b("click",function(){L(r);let e=j(1),n=p();return y(n.submitLogistics(e))}),c(4,"Submit"),l(),A()}if(t&2){let r=p();a(),J(f(2,0,r.logisticServices$))}}function he(t,s){}function _e(t,s){if(t&1){let r=v();o(0,"ng-select",18),P("ngModelChange",function(e){L(r);let n=p(2).$implicit;return O(n.ProductSKU,e)||(n.ProductSKU=e),y(e)}),l()}if(t&2){let r=p(),i=p().$implicit;T("ngModel",i.ProductSKU),m("items",r)}}function ue(t,s){if(t&1&&(o(0,"span"),c(1),l()),t&2){let r=p(2).$implicit;a(),h(r.ProductSKU||"-")}}function Se(t,s){if(t&1&&u(0,he,0,0,"ng-template",17)(1,_e,1,2,"ng-template",null,0,N)(3,ue,2,1,"ng-template",null,1,N),t&2){let r=E(2),i=E(4),e=p(2);m("ngxPermissionsOnly",G(3,me,e.logisticEditRole))("ngxPermissionsOnlyThen",r)("ngxPermissionsOnlyElse",i)}}function fe(t,s){if(t&1&&(o(0,"tr")(1,"td"),c(2),l(),o(3,"td"),c(4),l(),o(5,"td"),c(6),l(),o(7,"td"),k(8,Se,5,5),S(9,"async"),l()()),t&2){let r,i=s.$implicit,e=p();a(2),h(i.Name),a(2),h(i.Service),a(2),h(i.TypeString),a(2),F((r=f(9,4,e.logisticOptions$))?8:-1,r)}}var Re=(()=>{let s=class s{constructor(){this.http=_(Y),this.toastr=_(X),this.authService=_(te),this.filter={ChannelID:""},this.logisticEditRole=ie.LogisticUpdate,this.channelOptions=this.authService.getChannels(),this.initUnsupportedChannel(),this.initLoader()}initUnsupportedChannel(){let i=[g.WooCommerce,g.Lazada,g.Shopify,g.Plugo,g.Tokopedia];this.channelOptions=this.channelOptions.map(e=>(i.forEach(n=>{e.TypeID===n&&(e.disabled=!0)}),e))}initLoader(){this.http.post("/api/Logistic/Load",{}).subscribe(i=>{this.filter=i.Filter,this.channelName=this.channelOptions[0].Name,this.initLogisticServiceOptions(),this.getLogisticService()})}initLogisticServiceOptions(){this.logisticOptions$=this.http.get("/api/Logistic/OptionLogisticsService").pipe(x(1))}submitLogistics(i){this.clonedLogisticServices$.pipe(C(e=>i.map(n=>(e.findIndex(d=>d.Name===n.Name&&d.ProductSKU==n.ProductSKU)==-1&&(n.IsChange=!0),n))),I(e=>this.http.post("/api/Logistic/Submit",e))).subscribe(()=>{this.toastr.success("Logistic service updated successfully.","Success"),this.getLogisticService()})}getLogisticService(){this.iniTitle(),this.logisticServices$=this.http.post("/api/Logistic/Get",this.filter).pipe(C(i=>i.map(e=>(e.ProductSKU=Q.IsEmpty(e.ProductSKU)?null:e.ProductSKU,e))),D(i=>{let e=JSON.parse(JSON.stringify(i));this.clonedLogisticServices$=M(e)}),x(1))}iniTitle(){let i=this.channelOptions.find(e=>e.ID==this.filter.ChannelID);this.channelName=i?i.Name:null}};s.\u0275fac=function(e){return new(e||s)},s.\u0275cmp=B({type:s,selectors:[["app-logistic"]],decls:29,vars:8,consts:[["thenBlock",""],["elseBlock",""],["hideSearchBox","true","searchBoxPlaceHolder","Enter Number...",3,"onSubmit","headerTitle","hideSearchDropdown"],[1,"mb-2","fw-bold"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[4,"ngxPermissionsOnly"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[1,"me-2"],[2,"width","18px",3,"src","alt"],["role","button","data-toggle","tooltip","data-placement","top","matTooltip","enter Logistic for recorded",1,"btn","btn-success","btn-fill","btn-lg","text-white",3,"click"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["placeholder","Logistic Service Code","bindLabel","Name","bindValue","Code",1,"w-75",3,"ngModelChange","ngModel","items"]],template:function(e,n){e&1&&(o(0,"mainpanel",2),b("onSubmit",function(){return n.getLogisticService()}),o(1,"filters")(2,"div")(3,"label",3),c(4,"Select a Channel"),l(),o(5,"ng-select",4),P("ngModelChange",function(d){return O(n.filter.ChannelID,d)||(n.filter.ChannelID=d),d}),u(6,de,4,3,"ng-template",5),l()()(),o(7,"actions"),u(8,ge,5,3,"ng-container",6),l(),o(9,"content")(10,"div",7)(11,"div",8)(12,"div",9)(13,"div",10)(14,"table",11)(15,"thead",12)(16,"tr",13)(17,"th"),c(18,"Logistic"),l(),o(19,"th"),c(20,"Service"),l(),o(21,"th"),c(22,"Type"),l(),o(23,"th"),c(24,"Logistic Service"),l()()(),o(25,"tbody"),K(26,fe,10,6,"tr",null,R),S(28,"async"),l()()()()()()()()),e&2&&(m("headerTitle","Logistic Courier - "+n.channelName)("hideSearchDropdown",!1),a(5),m("clearable",!1)("items",n.channelOptions),T("ngModel",n.filter.ChannelID),a(3),m("ngxPermissionsOnly",n.logisticEditRole),a(18),V(f(28,6,n.logisticServices$)))},dependencies:[se,pe,re,ne,oe,ae,ce,ee,Z,le,q],encapsulation:2});let t=s;return t})();export{Re as LogisticComponent};
|