marketplacepos 5.48.6 → 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-KTLMPVSK.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-LEUBNBGC.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-OQM7K2EA.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-3664K4KH.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-DUXKDRDP.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-ODLI42YV.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-6CM22SKR.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-L22SKCLL.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-MDP2SGJI.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-WFVK32EW.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-2B5DXBBJ.js +0 -1
- package/Marketplace/chunk-2F4DTZCZ.js +0 -2
- package/Marketplace/chunk-2MEVIFIA.js +0 -1
- package/Marketplace/chunk-2USFVKEX.js +0 -1
- package/Marketplace/chunk-36U7D4LI.js +0 -1
- package/Marketplace/chunk-4JDI3AL5.js +0 -1
- package/Marketplace/chunk-4LQREJ6J.js +0 -1
- package/Marketplace/chunk-4YCSITNV.js +0 -1
- package/Marketplace/chunk-5A3P2NB3.js +0 -1
- package/Marketplace/chunk-6EORXONU.js +0 -4
- package/Marketplace/chunk-6LRZDPE5.js +0 -1
- package/Marketplace/chunk-6UOPF4ZP.js +0 -1
- package/Marketplace/chunk-7Z5X4HRT.js +0 -1
- package/Marketplace/chunk-A7PUMY67.js +0 -1
- package/Marketplace/chunk-BQEBDVGB.js +0 -7
- package/Marketplace/chunk-BXYXVBXP.js +0 -1
- package/Marketplace/chunk-C4VD7LDS.js +0 -266
- package/Marketplace/chunk-C6JVY2ER.js +0 -1
- package/Marketplace/chunk-C7N6EI73.js +0 -1
- package/Marketplace/chunk-CBD25LAJ.js +0 -5
- package/Marketplace/chunk-CT6UFONR.js +0 -1
- package/Marketplace/chunk-D2J64VUP.js +0 -1
- package/Marketplace/chunk-DAUML5UD.js +0 -2
- package/Marketplace/chunk-DDV2A3Y2.js +0 -1
- package/Marketplace/chunk-E32KODU7.js +0 -1
- package/Marketplace/chunk-E3EBAWLJ.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-ESXDXSQ3.js +0 -1
- package/Marketplace/chunk-FCEXPGTK.js +0 -5
- package/Marketplace/chunk-FKGKMEDE.js +0 -2
- package/Marketplace/chunk-FKPDG4AM.js +0 -1
- package/Marketplace/chunk-GG3MDS4C.js +0 -1
- package/Marketplace/chunk-GURSK3ZV.js +0 -1
- package/Marketplace/chunk-HNFW4VQS.js +0 -1
- package/Marketplace/chunk-HSQHQZV7.js +0 -1
- package/Marketplace/chunk-I3R7CC6J.js +0 -1
- package/Marketplace/chunk-I7C6W3RB.js +0 -1
- package/Marketplace/chunk-ICE4DSEP.js +0 -1
- package/Marketplace/chunk-ILW6ZFFV.js +0 -1
- package/Marketplace/chunk-JW7NES7L.js +0 -1
- package/Marketplace/chunk-JWK3HR6P.js +0 -1
- package/Marketplace/chunk-K2BII75W.js +0 -15
- package/Marketplace/chunk-KSR5TQDN.js +0 -1
- package/Marketplace/chunk-KUBWQQZK.js +0 -1
- package/Marketplace/chunk-KUNITWR6.js +0 -1
- package/Marketplace/chunk-KVDREHOE.js +0 -1
- package/Marketplace/chunk-LNJUGHOX.js +0 -2
- package/Marketplace/chunk-LY32FUZ4.js +0 -2
- package/Marketplace/chunk-M2BYW5SR.js +0 -1
- package/Marketplace/chunk-MTPSSM64.js +0 -2
- package/Marketplace/chunk-N5VHHR26.js +0 -1
- package/Marketplace/chunk-NBCUYSP7.js +0 -1
- package/Marketplace/chunk-NCKPMA6Q.js +0 -1
- package/Marketplace/chunk-NH6QGSVC.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-ONPG3DER.js +0 -2
- package/Marketplace/chunk-OPXITNRF.js +0 -1
- package/Marketplace/chunk-OXWPYJNB.js +0 -1
- package/Marketplace/chunk-Q4TAOZ73.js +0 -1
- package/Marketplace/chunk-Q56RJPES.js +0 -1
- package/Marketplace/chunk-R2XT5M5F.js +0 -3
- package/Marketplace/chunk-RI7L4QSY.js +0 -5
- package/Marketplace/chunk-RWVVRZJY.js +0 -1
- package/Marketplace/chunk-S5R6MCNP.js +0 -5
- package/Marketplace/chunk-S7CKRTJV.js +0 -2
- package/Marketplace/chunk-STYL7ETF.js +0 -3
- package/Marketplace/chunk-T5IUZ6UD.js +0 -1
- package/Marketplace/chunk-TAITBX62.js +0 -1
- package/Marketplace/chunk-TJYYRHZZ.js +0 -1
- package/Marketplace/chunk-TYQY4WPY.js +0 -1
- package/Marketplace/chunk-UQK5JNU2.js +0 -1
- package/Marketplace/chunk-XLIPGDSC.js +0 -2
- package/Marketplace/chunk-ZLBPUHTQ.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-K3MDOIIF.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as fn}from"./chunk-OSGPJXJZ.js";import{E as dn,l as cn,m as Pe,n as ln,o as pe,p as hn}from"./chunk-JNRCB7N3.js";import{$ as Dr,$a as kr,A as Xe,Ab as x,Ad as it,Bb as Br,Bc as tn,Ca as Ft,Cb as Hr,Da as _r,Dc as rn,Ea as xr,Eb as Vr,Ec as nn,Fd as ot,G as H,Ga as tt,Gb as nt,Hb as Gr,Ia as rt,Ib as Wr,J as ne,Jb as Ue,Jd as un,K as ie,Ka as Lr,N as kt,O as fe,Oa as Ne,Pa as qt,Pb as Qr,Qa as jr,Ra as Bt,S as et,T as Q,U as $t,Ub as Kr,V as Or,Wb as Vt,X as Mr,Xb as Yr,Yb as Zr,_b as Jr,a as wr,aa as A,b as br,c as Ir,ca as zt,d as Lt,e as jt,ea as S,f as q,g as N,ia as C,ja as Nr,kc as Xr,m as B,ma as R,md as on,na as Ur,nb as $r,oa as Pr,od as Y,p as w,pa as T,q as h,qa as K,r as Me,ra as d,rd as sn,s as Ar,sb as zr,t as Tr,tb as se,ub as Fr,ud as an,v,va as oe,vb as qr,w as Je,wa as U,wc as en,x as I,y as De,z as Er,zb as Ht}from"./chunk-OHGMB7HJ.js";import{a as l,b as _,i as Cr}from"./chunk-66YHNWRR.js";var f="primary",Ge=Symbol("RouteTitle"),Yt=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function ce(t){return new Yt(t)}function Cn(t,n,e){let r=e.path.split("/");if(r.length>t.length||e.pathMatch==="full"&&(n.hasChildren()||r.length<t.length))return null;let i={};for(let o=0;o<r.length;o++){let s=r[o],a=t[o];if(s[0]===":")i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function pi(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!j(t[e],n[e]))return!1;return!0}function j(t,n){let e=t?Zt(t):void 0,r=n?Zt(n):void 0;if(!e||!r||e.length!=r.length)return!1;let i;for(let o=0;o<e.length;o++)if(i=e[o],!wn(t[i],n[i]))return!1;return!0}function Zt(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function wn(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;let e=[...t].sort(),r=[...n].sort();return e.every((i,o)=>r[o]===i)}else return t===n}function bn(t){return t.length>0?t[t.length-1]:null}function G(t){return Ar(t)?t:Kr(t)?w(Promise.resolve(t)):h(t)}var gi={exact:An,subset:Tn},In={exact:vi,subset:mi,ignored:()=>!0};function pn(t,n,e){return gi[e.paths](t.root,n.root,e.matrixParams)&&In[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function vi(t,n){return j(t,n)}function An(t,n,e){if(!ae(t.segments,n.segments)||!ut(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!An(t.children[r],n.children[r],e))return!1;return!0}function mi(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>wn(t[e],n[e]))}function Tn(t,n,e){return En(t,n,n.segments,e)}function En(t,n,e,r){if(t.segments.length>e.length){let i=t.segments.slice(0,e.length);return!(!ae(i,e)||n.hasChildren()||!ut(i,e,r))}else if(t.segments.length===e.length){if(!ae(t.segments,e)||!ut(t.segments,e,r))return!1;for(let i in n.children)if(!t.children[i]||!Tn(t.children[i],n.children[i],r))return!1;return!0}else{let i=e.slice(0,t.segments.length),o=e.slice(t.segments.length);return!ae(t.segments,i)||!ut(t.segments,i,r)||!t.children[f]?!1:En(t.children[f],n,o,r)}}function ut(t,n,e){return n.every((r,i)=>In[e](t[i].parameters,r.parameters))}var $=class{root;queryParams;fragment;_queryParamMap;constructor(n=new g([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){return Si.serialize(this)}},g=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ct(this)}},Z=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=ce(this.parameters),this._parameterMap}toString(){return Mn(this)}};function Ri(t,n){return ae(t,n)&&t.every((e,r)=>j(e.parameters,n[r].parameters))}function ae(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function yi(t,n){let e=[];return Object.entries(t.children).forEach(([r,i])=>{r===f&&(e=e.concat(n(i,r)))}),Object.entries(t.children).forEach(([r,i])=>{r!==f&&(e=e.concat(n(i,r)))}),e}var le=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>new J,providedIn:"root"})}return t})(),J=class{parse(n){let e=new Xt(n);return new $(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${_e(n.root,!0)}`,r=bi(n.queryParams),i=typeof n.fragment=="string"?`#${Ci(n.fragment)}`:"";return`${e}${r}${i}`}},Si=new J;function ct(t){return t.segments.map(n=>Mn(n)).join("/")}function _e(t,n){if(!t.hasChildren())return ct(t);if(n){let e=t.children[f]?_e(t.children[f],!1):"",r=[];return Object.entries(t.children).forEach(([i,o])=>{i!==f&&r.push(`${i}:${_e(o,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=yi(t,(r,i)=>i===f?[_e(t.children[f],!1)]:[`${i}:${_e(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[f]!=null?`${ct(t)}/${e[0]}`:`${ct(t)}/(${e.join("//")})`}}function On(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function st(t){return On(t).replace(/%3B/gi,";")}function Ci(t){return encodeURI(t)}function Jt(t){return On(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function lt(t){return decodeURIComponent(t)}function gn(t){return lt(t.replace(/\+/g,"%20"))}function Mn(t){return`${Jt(t.path)}${wi(t.parameters)}`}function wi(t){return Object.entries(t).map(([n,e])=>`;${Jt(n)}=${Jt(e)}`).join("")}function bi(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(i=>`${st(e)}=${st(i)}`).join("&"):`${st(e)}=${st(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Ii=/^[^\/()?;#]+/;function Gt(t){let n=t.match(Ii);return n?n[0]:""}var Ai=/^[^\/()?;=#]+/;function Ti(t){let n=t.match(Ai);return n?n[0]:""}var Ei=/^[^=?&#]+/;function Oi(t){let n=t.match(Ei);return n?n[0]:""}var Mi=/^[^&#]+/;function Di(t){let n=t.match(Mi);return n?n[0]:""}var Xt=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new g([],{}):new g([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(r[f]=new g(n,e)),r}parseSegment(){let n=Gt(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(n),new Z(lt(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=Ti(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let i=Gt(this.remaining);i&&(r=i,this.capture(r))}n[lt(e)]=lt(r)}parseQueryParam(n){let e=Oi(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=Di(this.remaining);s&&(r=s,this.capture(r))}let i=gn(e),o=gn(r);if(n.hasOwnProperty(i)){let s=n[i];Array.isArray(s)||(s=[s],n[i]=s),s.push(o)}else n[i]=o}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let r=Gt(this.remaining),i=this.remaining[r.length];if(i!=="/"&&i!==")"&&i!==";")throw new C(4010,!1);let o;r.indexOf(":")>-1?(o=r.slice(0,r.indexOf(":")),this.capture(o),this.capture(":")):n&&(o=f);let s=this.parseChildren();e[o??f]=Object.keys(s).length===1&&s[f]?s[f]:new g([],s),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new C(4011,!1)}};function Dn(t){return t.segments.length>0?new g([],{[f]:t}):t}function Nn(t){let n={};for(let[r,i]of Object.entries(t.children)){let o=Nn(i);if(r===f&&o.segments.length===0&&o.hasChildren())for(let[s,a]of Object.entries(o.children))n[s]=a;else(o.segments.length>0||o.hasChildren())&&(n[r]=o)}let e=new g(t.segments,n);return Ni(e)}function Ni(t){if(t.numberOfChildren===1&&t.children[f]){let n=t.children[f];return new g(t.segments.concat(n.segments),n.children)}return t}function X(t){return t instanceof $}function Un(t,n,e=null,r=null){let i=Pn(t);return _n(i,n,e,r)}function Pn(t){let n;function e(o){let s={};for(let u of o.children){let c=e(u);s[u.outlet]=c}let a=new g(o.url,s);return o===t&&(n=a),a}let r=e(t.root),i=Dn(r);return n??i}function _n(t,n,e,r){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Wt(i,i,i,e,r);let o=Ui(n);if(o.toRoot())return Wt(i,i,new g([],{}),e,r);let s=Pi(o,i,t),a=s.processChildren?Le(s.segmentGroup,s.index,o.commands):Ln(s.segmentGroup,s.index,o.commands);return Wt(i,s.segmentGroup,a,e,r)}function ht(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function ke(t){return typeof t=="object"&&t!=null&&t.outlets}function Wt(t,n,e,r,i){let o={};r&&Object.entries(r).forEach(([u,c])=>{o[u]=Array.isArray(c)?c.map(p=>`${p}`):`${c}`});let s;t===n?s=e:s=xn(t,n,e);let a=Dn(Nn(s));return new $(a,o,i)}function xn(t,n,e){let r={};return Object.entries(t.children).forEach(([i,o])=>{o===n?r[i]=e:r[i]=xn(o,n,e)}),new g(t.segments,r)}var dt=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&ht(r[0]))throw new C(4003,!1);let i=r.find(ke);if(i&&i!==bn(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function Ui(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new dt(!0,0,t);let n=0,e=!1,r=t.reduce((i,o,s)=>{if(typeof o=="object"&&o!=null){if(o.outlets){let a={};return Object.entries(o.outlets).forEach(([u,c])=>{a[u]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:a}]}if(o.segmentPath)return[...i,o.segmentPath]}return typeof o!="string"?[...i,o]:s===0?(o.split("/").forEach((a,u)=>{u==0&&a==="."||(u==0&&a===""?e=!0:a===".."?n++:a!=""&&i.push(a))}),i):[...i,o]},[]);return new dt(e,n,r)}var me=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function Pi(t,n,e){if(t.isAbsolute)return new me(n,!0,0);if(!e)return new me(n,!1,NaN);if(e.parent===null)return new me(e,!0,0);let r=ht(t.commands[0])?0:1,i=e.segments.length-1+r;return _i(e,i,t.numberOfDoubleDots)}function _i(t,n,e){let r=t,i=n,o=e;for(;o>i;){if(o-=i,r=r.parent,!r)throw new C(4005,!1);i=r.segments.length}return new me(r,!1,i-o)}function xi(t){return ke(t[0])?t[0].outlets:{[f]:t}}function Ln(t,n,e){if(t??=new g([],{}),t.segments.length===0&&t.hasChildren())return Le(t,n,e);let r=Li(t,n,e),i=e.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){let o=new g(t.segments.slice(0,r.pathIndex),{});return o.children[f]=new g(t.segments.slice(r.pathIndex),t.children),Le(o,0,i)}else return r.match&&i.length===0?new g(t.segments,{}):r.match&&!t.hasChildren()?er(t,n,e):r.match?Le(t,0,i):er(t,n,e)}function Le(t,n,e){if(e.length===0)return new g(t.segments,{});{let r=xi(e),i={};if(Object.keys(r).some(o=>o!==f)&&t.children[f]&&t.numberOfChildren===1&&t.children[f].segments.length===0){let o=Le(t.children[f],n,e);return new g(t.segments,o.children)}return Object.entries(r).forEach(([o,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[o]=Ln(t.children[o],n,s))}),Object.entries(t.children).forEach(([o,s])=>{r[o]===void 0&&(i[o]=s)}),new g(t.segments,i)}}function Li(t,n,e){let r=0,i=n,o={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=e.length)return o;let s=t.segments[i],a=e[r];if(ke(a))break;let u=`${a}`,c=r<e.length-1?e[r+1]:null;if(i>0&&u===void 0)break;if(u&&c&&typeof c=="object"&&c.outlets===void 0){if(!mn(u,c,s))return o;r+=2}else{if(!mn(u,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function er(t,n,e){let r=t.segments.slice(0,n),i=0;for(;i<e.length;){let o=e[i];if(ke(o)){let u=ji(o.outlets);return new g(r,u)}if(i===0&&ht(e[0])){let u=t.segments[n];r.push(new Z(u.path,vn(e[0]))),i++;continue}let s=ke(o)?o.outlets[f]:`${o}`,a=i<e.length-1?e[i+1]:null;s&&a&&ht(a)?(r.push(new Z(s,vn(a))),i+=2):(r.push(new Z(s,{})),i++)}return new g(r,{})}function ji(t){let n={};return Object.entries(t).forEach(([e,r])=>{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=er(new g([],{}),0,r))}),n}function vn(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function mn(t,n,e){return t==e.path&&j(n,e.parameters)}var Re="imperative",m=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(m||{}),M=class{id;url;constructor(n,e){this.id=n,this.url=e}},ee=class extends M{type=m.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",i=null){super(n,e),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},D=class extends M{urlAfterRedirects;type=m.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},b=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(b||{}),Se=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Se||{}),k=class extends M{reason;code;type=m.NavigationCancel;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},z=class extends M{reason;code;type=m.NavigationSkipped;constructor(n,e,r,i){super(n,e),this.reason=r,this.code=i}},Ce=class extends M{error;target;type=m.NavigationError;constructor(n,e,r,i){super(n,e),this.error=r,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},$e=class extends M{urlAfterRedirects;state;type=m.RoutesRecognized;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},ft=class extends M{urlAfterRedirects;state;type=m.GuardsCheckStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},pt=class extends M{urlAfterRedirects;state;shouldActivate;type=m.GuardsCheckEnd;constructor(n,e,r,i,o){super(n,e),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=o}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},gt=class extends M{urlAfterRedirects;state;type=m.ResolveStart;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},vt=class extends M{urlAfterRedirects;state;type=m.ResolveEnd;constructor(n,e,r,i){super(n,e),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},mt=class{route;type=m.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rt=class{route;type=m.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},yt=class{snapshot;type=m.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},St=class{snapshot;type=m.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ct=class{snapshot;type=m.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},wt=class{snapshot;type=m.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},we=class{routerEvent;position;anchor;type=m.Scroll;constructor(n,e,r){this.routerEvent=n,this.position=e,this.anchor=r}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},ze=class{},be=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function ki(t){return!(t instanceof ze)&&!(t instanceof be)}function $i(t,n){return t.providers&&!t._injector&&(t._injector=nt(t.providers,n,`Route: ${t.path}`)),t._injector??n}function L(t){return t.outlet||f}function zi(t,n){let e=t.filter(r=>L(r)===n);return e.push(...t.filter(r=>L(r)!==n)),e}function Te(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var bt=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Te(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new he(this.rootInjector)}},he=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let i=this.getOrCreateContext(e);i.outlet=r,this.contexts.set(e,i)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new bt(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(K(oe))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),It=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=tr(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=tr(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=rr(n,this._root);return e.length<2?[]:e[e.length-2].children.map(i=>i.value).filter(i=>i!==n)}pathFromRoot(n){return rr(n,this._root).map(e=>e.value)}};function tr(t,n){if(t===n.value)return n;for(let e of n.children){let r=tr(t,e);if(r)return r}return null}function rr(t,n){if(t===n.value)return[n];for(let e of n.children){let r=rr(t,e);if(r.length)return r.unshift(n),r}return[]}var O=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function ve(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Fe=class extends It{snapshot;constructor(n,e){super(n),this.snapshot=e,lr(this,n)}toString(){return this.snapshot.toString()}};function jn(t){let n=Fi(t),e=new N([new Z("",{})]),r=new N({}),i=new N({}),o=new N({}),s=new N(""),a=new V(e,r,o,s,i,f,t,n.root);return a.snapshot=n.root,new Fe(new O(a,[]),n)}function Fi(t){let n={},e={},r={},o=new ue([],n,r,"",e,f,t,null,{});return new qe("",new O(o,[]))}var V=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,i,o,s,a,u){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=i,this.dataSubject=o,this.outlet=s,this.component=a,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(v(c=>c[Ge]))??h(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(v(n=>ce(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(v(n=>ce(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function At(t,n,e="emptyOnly"){let r,{routeConfig:i}=t;return n!==null&&(e==="always"||i?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:l(l({},n.params),t.params),data:l(l({},n.data),t.data),resolve:l(l(l(l({},t.data),n.data),i?.data),t._resolvedData)}:r={params:l({},t.params),data:l({},t.data),resolve:l(l({},t.data),t._resolvedData??{})},i&&$n(i)&&(r.resolve[Ge]=i.title),r}var ue=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Ge]}constructor(n,e,r,i,o,s,a,u,c){this.url=n,this.params=e,this.queryParams=r,this.fragment=i,this.data=o,this.outlet=s,this.component=a,this.routeConfig=u,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=ce(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=ce(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},qe=class extends It{url;constructor(n,e){super(e),this.url=n,lr(this,e)}toString(){return kn(this._root)}};function lr(t,n){n.value._routerState=t,n.children.forEach(e=>lr(t,e))}function kn(t){let n=t.children.length>0?` { ${t.children.map(kn).join(", ")} } `:"";return`${t.value}${n}`}function Qt(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,j(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),j(n.params,e.params)||t.paramsSubject.next(e.params),pi(n.url,e.url)||t.urlSubject.next(e.url),j(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function nr(t,n){let e=j(t.params,n.params)&&Ri(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||nr(t.parent,n.parent))}function $n(t){return typeof t.title=="string"||t.title===null}var zn=new T(""),hr=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=f;activateEvents=new se;deactivateEvents=new se;attachEvents=new se;detachEvents=new se;routerOutletData=an();parentContexts=d(he);location=d(Hr);changeDetector=d(it);inputBinder=d(We,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:i}=e.name;if(r)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=e;let i=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,u=new ir(e,a,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:u,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=Ue({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Ne]})}return t})(),ir=class{route;childContexts;parent;outletData;constructor(n,e,r,i){this.route=n,this.childContexts=e,this.parent=r,this.outletData=i}get(n,e){return n===V?this.route:n===he?this.childContexts:n===zn?this.outletData:this.parent.get(n,e)}},We=new T(""),dr=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,i=Je([r.queryParams,r.params,r.data]).pipe(A(([o,s,a],u)=>(a=l(l(l({},o),s),a),u===0?h(a):Promise.resolve(a)))).subscribe(o=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=un(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,o[a])});this.outletDataSubscriptions.set(e,i)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),fr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Gr({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,i){r&1&&Xr(0,"router-outlet")},dependencies:[hr],encapsulation:2})}return t})();function pr(t){let n=t.children&&t.children.map(pr),e=n?_(l({},t),{children:n}):l({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==f&&(e.component=fr),e}function qi(t,n,e){let r=Be(t,n._root,e?e._root:void 0);return new Fe(r,n)}function Be(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let i=Bi(t,n,e);return new O(r,i)}else{if(t.shouldAttach(n.value)){let o=t.retrieve(n.value);if(o!==null){let s=o.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Be(t,a)),s}}let r=Hi(n.value),i=n.children.map(o=>Be(t,o));return new O(r,i)}}function Bi(t,n,e){return n.children.map(r=>{for(let i of e.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return Be(t,r,i);return Be(t,r)})}function Hi(t){return new V(new N(t.url),new N(t.params),new N(t.queryParams),new N(t.fragment),new N(t.data),t.outlet,t.component,t)}var Ie=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},Fn="ngNavigationCancelingError";function Tt(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=X(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,i=qn(!1,b.Redirect);return i.url=e,i.navigationBehaviorOptions=r,i}function qn(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[Fn]=!0,e.cancellationCode=n,e}function Vi(t){return Bn(t)&&X(t.url)}function Bn(t){return!!t&&t[Fn]}var Gi=(t,n,e,r)=>v(i=>(new or(n,i.targetRouterState,i.currentRouterState,e,r).activate(t),i)),or=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,i,o){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=i,this.inputBindingEnabled=o}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Qt(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(o=>{let s=o.value.outlet;this.deactivateRoutes(o,i[s],r),delete i[s]}),Object.values(i).forEach(o=>{this.deactivateRouteAndItsChildren(o,r)})}deactivateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(i===o)if(i.component){let s=r.getContext(i.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else o&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ve(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),i=r&&n.value.component?r.children:e,o=ve(n);for(let s of Object.values(o))this.deactivateRouteAndItsChildren(s,i);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let i=ve(e);n.children.forEach(o=>{this.activateRoutes(o,i[o.value.outlet],r),this.forwardEvent(new wt(o.value.snapshot))}),n.children.length&&this.forwardEvent(new St(n.value.snapshot))}activateRoutes(n,e,r){let i=n.value,o=e?e.value:null;if(Qt(i),i===o)if(i.component){let s=r.getOrCreateContext(i.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(i.component){let s=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Qt(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Et=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},ye=class{component;route;constructor(n,e){this.component=n,this.route=e}};function Wi(t,n,e){let r=t._root,i=n?n._root:null;return xe(r,i,e,[r.value])}function Qi(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Ee(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Pr(t)?t:n.get(t):r}function xe(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=ve(n);return t.children.forEach(s=>{Ki(s,o[s.value.outlet],e,r.concat([s.value]),i),delete o[s.value.outlet]}),Object.entries(o).forEach(([s,a])=>je(a,e.getContext(s),i)),i}function Ki(t,n,e,r,i={canDeactivateChecks:[],canActivateChecks:[]}){let o=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&o.routeConfig===s.routeConfig){let u=Yi(s,o,o.routeConfig.runGuardsAndResolvers);u?i.canActivateChecks.push(new Et(r)):(o.data=s.data,o._resolvedData=s._resolvedData),o.component?xe(t,n,a?a.children:null,r,i):xe(t,n,e,r,i),u&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new ye(a.outlet.component,s))}else s&&je(n,a,i),i.canActivateChecks.push(new Et(r)),o.component?xe(t,null,a?a.children:null,r,i):xe(t,null,e,r,i);return i}function Yi(t,n,e){if(typeof e=="function")return e(t,n);switch(e){case"pathParamsChange":return!ae(t.url,n.url);case"pathParamsOrQueryParamsChange":return!ae(t.url,n.url)||!j(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!nr(t,n)||!j(t.queryParams,n.queryParams);case"paramsChange":default:return!nr(t,n)}}function je(t,n,e){let r=ve(t),i=t.value;Object.entries(r).forEach(([o,s])=>{i.component?n?je(s,n.children.getContext(o),e):je(s,null,e):je(s,n,e)}),i.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new ye(n.outlet.component,i)):e.canDeactivateChecks.push(new ye(null,i)):e.canDeactivateChecks.push(new ye(null,i))}function Qe(t){return typeof t=="function"}function Zi(t){return typeof t=="boolean"}function Ji(t){return t&&Qe(t.canLoad)}function Xi(t){return t&&Qe(t.canActivate)}function eo(t){return t&&Qe(t.canActivateChild)}function to(t){return t&&Qe(t.canDeactivate)}function ro(t){return t&&Qe(t.canMatch)}function Hn(t){return t instanceof Tr||t?.name==="EmptyError"}var at=Symbol("INITIAL_VALUE");function Ae(){return A(t=>Je(t.map(n=>n.pipe(fe(1),Dr(at)))).pipe(v(n=>{for(let e of n)if(e!==!0){if(e===at)return at;if(e===!1||no(e))return e}return!0}),H(n=>n!==at),fe(1)))}function no(t){return X(t)||t instanceof Ie}function io(t,n){return I(e=>{let{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:o,canDeactivateChecks:s}}=e;return s.length===0&&o.length===0?h(_(l({},e),{guardsResult:!0})):oo(s,r,i,t).pipe(I(a=>a&&Zi(a)?so(r,o,t,n):h(a)),v(a=>_(l({},e),{guardsResult:a})))})}function oo(t,n,e,r){return w(t).pipe(I(i=>ho(i.component,i.route,e,n,r)),Q(i=>i!==!0,!0))}function so(t,n,e,r){return w(n).pipe(ie(i=>Er(uo(i.route.parent,r),ao(i.route,r),lo(t,i.path,e),co(t,i.route,e))),Q(i=>i!==!0,!0))}function ao(t,n){return t!==null&&n&&n(new Ct(t)),h(!0)}function uo(t,n){return t!==null&&n&&n(new yt(t)),h(!0)}function co(t,n,e){let r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||r.length===0)return h(!0);let i=r.map(o=>Xe(()=>{let s=Te(n)??e,a=Ee(o,s),u=Xi(a)?a.canActivate(n,t):U(s,()=>a(n,t));return G(u).pipe(Q())}));return h(i).pipe(Ae())}function lo(t,n,e){let r=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(s=>Qi(s)).filter(s=>s!==null).map(s=>Xe(()=>{let a=s.guards.map(u=>{let c=Te(s.node)??e,p=Ee(u,c),y=eo(p)?p.canActivateChild(r,t):U(c,()=>p(r,t));return G(y).pipe(Q())});return h(a).pipe(Ae())}));return h(o).pipe(Ae())}function ho(t,n,e,r,i){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return h(!0);let s=o.map(a=>{let u=Te(n)??i,c=Ee(a,u),p=to(c)?c.canDeactivate(t,n,e,r):U(u,()=>c(t,n,e,r));return G(p).pipe(Q())});return h(s).pipe(Ae())}function fo(t,n,e,r){let i=n.canLoad;if(i===void 0||i.length===0)return h(!0);let o=i.map(s=>{let a=Ee(s,t),u=Ji(a)?a.canLoad(n,e):U(t,()=>a(n,e));return G(u)});return h(o).pipe(Ae(),Vn(r))}function Vn(t){return br(S(n=>{if(typeof n!="boolean")throw Tt(t,n)}),v(n=>n===!0))}function po(t,n,e,r){let i=n.canMatch;if(!i||i.length===0)return h(!0);let o=i.map(s=>{let a=Ee(s,t),u=ro(a)?a.canMatch(n,e):U(t,()=>a(n,e));return G(u)});return h(o).pipe(Ae(),Vn(r))}var He=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ve=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function ge(t){return Me(new He(t))}function go(t){return Me(new C(4e3,!1))}function vo(t){return Me(qn(!1,b.GuardRejected))}var sr=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let r=[],i=e.root;for(;;){if(r=r.concat(i.segments),i.numberOfChildren===0)return h(r);if(i.numberOfChildren>1||!i.children[f])return go(`${n.redirectTo}`);i=i.children[f]}}applyRedirectCommands(n,e,r,i,o){return mo(e,i,o).pipe(v(s=>{if(s instanceof $)throw new Ve(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new Ve(a);return a}))}applyRedirectCreateUrlTree(n,e,r,i){let o=this.createSegmentGroup(n,e.root,r,i);return new $(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([i,o])=>{if(typeof o=="string"&&o[0]===":"){let a=o.substring(1);r[i]=e[a]}else r[i]=o}),r}createSegmentGroup(n,e,r,i){let o=this.createSegments(n,e.segments,r,i),s={};return Object.entries(e.children).forEach(([a,u])=>{s[a]=this.createSegmentGroup(n,u,r,i)}),new g(o,s)}createSegments(n,e,r,i){return e.map(o=>o.path[0]===":"?this.findPosParam(n,o,i):this.findOrReturn(o,r))}findPosParam(n,e,r){let i=r[e.path.substring(1)];if(!i)throw new C(4001,!1);return i}findOrReturn(n,e){let r=0;for(let i of e){if(i.path===n.path)return e.splice(r),i;r++}return n}};function mo(t,n,e){if(typeof t=="string")return h(t);let r=t,{queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,params:c,data:p,title:y}=n;return G(U(e,()=>r({params:c,data:p,queryParams:i,fragment:o,routeConfig:s,url:a,outlet:u,title:y})))}var ar={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ro(t,n,e,r,i){let o=Gn(t,n,e);return o.matched?(r=$i(n,r),po(r,n,e,i).pipe(v(s=>s===!0?o:l({},ar)))):h(o)}function Gn(t,n,e){if(n.path==="**")return yo(e);if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?l({},ar):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let i=(n.matcher||Cn)(e,t,n);if(!i)return l({},ar);let o={};Object.entries(i.posParams??{}).forEach(([a,u])=>{o[a]=u.path});let s=i.consumed.length>0?l(l({},o),i.consumed[i.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:i.consumed,remainingSegments:e.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function yo(t){return{matched:!0,parameters:t.length>0?bn(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Rn(t,n,e,r){return e.length>0&&wo(t,e,r)?{segmentGroup:new g(n,Co(r,new g(e,t.children))),slicedSegments:[]}:e.length===0&&bo(t,e,r)?{segmentGroup:new g(t.segments,So(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new g(t.segments,t.children),slicedSegments:e}}function So(t,n,e,r){let i={};for(let o of e)if(Mt(t,n,o)&&!r[L(o)]){let s=new g([],{});i[L(o)]=s}return l(l({},r),i)}function Co(t,n){let e={};e[f]=n;for(let r of t)if(r.path===""&&L(r)!==f){let i=new g([],{});e[L(r)]=i}return e}function wo(t,n,e){return e.some(r=>Mt(t,n,r)&&L(r)!==f)}function bo(t,n,e){return e.some(r=>Mt(t,n,r))}function Mt(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function Io(t,n,e){return n.length===0&&!t.children[e]}var ur=class{};function Ao(t,n,e,r,i,o,s="emptyOnly"){return new cr(t,n,e,r,i,s,o).recognize()}var To=31,cr=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,i,o,s,a){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=i,this.urlTree=o,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new sr(this.urlSerializer,this.urlTree)}noMatchError(n){return new C(4002,`'${n.segmentGroup}'`)}recognize(){let n=Rn(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(v(({children:e,rootSnapshot:r})=>{let i=new O(r,e),o=new qe("",i),s=Un(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,o.url=this.urlSerializer.serialize(s),{state:o,tree:s}}))}match(n){let e=new ue([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),f,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,f,e).pipe(v(r=>({children:r,rootSnapshot:e})),ne(r=>{if(r instanceof Ve)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof He?this.noMatchError(r):r}))}processSegmentGroup(n,e,r,i,o){return r.segments.length===0&&r.hasChildren()?this.processChildren(n,e,r,o):this.processSegment(n,e,r,r.segments,i,!0,o).pipe(v(s=>s instanceof O?[s]:[]))}processChildren(n,e,r,i){let o=[];for(let s of Object.keys(r.children))s==="primary"?o.unshift(s):o.push(s);return w(o).pipe(ie(s=>{let a=r.children[s],u=zi(e,s);return this.processSegmentGroup(n,u,a,s,i)}),Mr((s,a)=>(s.push(...a),s)),kt(null),Or(),I(s=>{if(s===null)return ge(r);let a=Wn(s);return Eo(a),h(a)}))}processSegment(n,e,r,i,o,s,a){return w(e).pipe(ie(u=>this.processSegmentAgainstRoute(u._injector??n,e,u,r,i,o,s,a).pipe(ne(c=>{if(c instanceof He)return h(null);throw c}))),Q(u=>!!u),ne(u=>{if(Hn(u))return Io(r,i,o)?h(new ur):ge(r);throw u}))}processSegmentAgainstRoute(n,e,r,i,o,s,a,u){return L(r)!==s&&(s===f||!Mt(i,o,r))?ge(i):r.redirectTo===void 0?this.matchSegmentAgainstRoute(n,i,r,o,s,u):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,i,e,r,o,s,u):ge(i)}expandSegmentAgainstRouteUsingRedirect(n,e,r,i,o,s,a){let{matched:u,parameters:c,consumedSegments:p,positionalParamSegments:y,remainingSegments:P}=Gn(e,i,o);if(!u)return ge(e);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>To&&(this.allowRedirects=!1));let W=new ue(o,c,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,yn(i),L(i),i.component??i._loadedComponent??null,i,Sn(i)),E=At(W,a,this.paramsInheritanceStrategy);return W.params=Object.freeze(E.params),W.data=Object.freeze(E.data),this.applyRedirects.applyRedirectCommands(p,i.redirectTo,y,W,n).pipe(A(re=>this.applyRedirects.lineralizeSegments(i,re)),I(re=>this.processSegment(n,r,e,re.concat(P),s,!1,a)))}matchSegmentAgainstRoute(n,e,r,i,o,s){let a=Ro(e,r,i,n,this.urlSerializer);return r.path==="**"&&(e.children={}),a.pipe(A(u=>u.matched?(n=r._injector??n,this.getChildConfig(n,r,i).pipe(A(({routes:c})=>{let p=r._loadedInjector??n,{parameters:y,consumedSegments:P,remainingSegments:W}=u,E=new ue(P,y,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,yn(r),L(r),r.component??r._loadedComponent??null,r,Sn(r)),de=At(E,s,this.paramsInheritanceStrategy);E.params=Object.freeze(de.params),E.data=Object.freeze(de.data);let{segmentGroup:re,slicedSegments:xt}=Rn(e,P,W,c);if(xt.length===0&&re.hasChildren())return this.processChildren(p,c,re,E).pipe(v(Ze=>new O(E,Ze)));if(c.length===0&&xt.length===0)return h(new O(E,[]));let di=L(r)===o;return this.processSegment(p,c,re,xt,di?f:o,!0,E).pipe(v(Ze=>new O(E,Ze instanceof O?[Ze]:[])))}))):ge(e)))}getChildConfig(n,e,r){return e.children?h({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?h({routes:e._loadedRoutes,injector:e._loadedInjector}):fo(n,e,r,this.urlSerializer).pipe(I(i=>i?this.configLoader.loadChildren(n,e).pipe(S(o=>{e._loadedRoutes=o.routes,e._loadedInjector=o.injector})):vo(e))):h({routes:[],injector:n})}};function Eo(t){t.sort((n,e)=>n.value.outlet===f?-1:e.value.outlet===f?1:n.value.outlet.localeCompare(e.value.outlet))}function Oo(t){let n=t.value.routeConfig;return n&&n.path===""}function Wn(t){let n=[],e=new Set;for(let r of t){if(!Oo(r)){n.push(r);continue}let i=n.find(o=>r.value.routeConfig===o.value.routeConfig);i!==void 0?(i.children.push(...r.children),e.add(i)):n.push(r)}for(let r of e){let i=Wn(r.children);n.push(new O(r.value,i))}return n.filter(r=>!e.has(r))}function yn(t){return t.data||{}}function Sn(t){return t.resolve||{}}function Mo(t,n,e,r,i,o){return I(s=>Ao(t,n,e,r,s.extractedUrl,i,o).pipe(v(({state:a,tree:u})=>_(l({},s),{targetSnapshot:a,urlAfterRedirects:u}))))}function Do(t,n){return I(e=>{let{targetSnapshot:r,guards:{canActivateChecks:i}}=e;if(!i.length)return h(e);let o=new Set(i.map(u=>u.route)),s=new Set;for(let u of o)if(!s.has(u))for(let c of Qn(u))s.add(c);let a=0;return w(s).pipe(ie(u=>o.has(u)?No(u,r,t,n):(u.data=At(u,u.parent,t).resolve,h(void 0))),S(()=>a++),$t(1),I(u=>a===s.size?h(e):B))})}function Qn(t){let n=t.children.map(e=>Qn(e)).flat();return[t,...n]}function No(t,n,e,r){let i=t.routeConfig,o=t._resolve;return i?.title!==void 0&&!$n(i)&&(o[Ge]=i.title),Xe(()=>(t.data=At(t,t.parent,e).resolve,Uo(o,t,n,r).pipe(v(s=>(t._resolvedData=s,t.data=l(l({},t.data),s),null)))))}function Uo(t,n,e,r){let i=Zt(t);if(i.length===0)return h({});let o={};return w(i).pipe(I(s=>Po(t[s],n,e,r).pipe(Q(),S(a=>{if(a instanceof Ie)throw Tt(new J,a);o[s]=a}))),$t(1),v(()=>o),ne(s=>Hn(s)?B:Me(s)))}function Po(t,n,e,r){let i=Te(n)??r,o=Ee(t,i),s=o.resolve?o.resolve(n,e):U(i,()=>o(n,e));return G(s)}function Kt(t){return A(n=>{let e=t(n);return e?w(e).pipe(v(()=>n)):h(n)})}var gr=(()=>{class t{buildTitle(e){let r,i=e.root;for(;i!==void 0;)r=this.getResolvedTitleForRoute(i)??r,i=i.children.find(o=>o.outlet===f);return r}getResolvedTitleForRoute(e){return e.data[Ge]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>d(Kn),providedIn:"root"})}return t})(),Kn=(()=>{class t extends gr{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(K(fn))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),te=new T("",{providedIn:"root",factory:()=>({})}),Oe=new T(""),Dt=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(on);loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return h(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let i=G(U(e,()=>r.loadComponent())).pipe(v(Zn),A(Jn),S(s=>{this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s}),et(()=>{this.componentLoaders.delete(r)})),o=new jt(i,()=>new q).pipe(Lt());return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return h({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=Yn(r,this.compiler,e,this.onLoadEndListener).pipe(et(()=>{this.childrenLoaders.delete(r)})),s=new jt(o,()=>new q).pipe(Lt());return this.childrenLoaders.set(r,s),s}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Yn(t,n,e,r){return G(U(e,()=>t.loadChildren())).pipe(v(Zn),A(Jn),I(i=>i instanceof Vr||Array.isArray(i)?h(i):w(n.compileModuleAsync(i))),v(i=>{r&&r(t);let o,s,a=!1;return Array.isArray(i)?(s=i,a=!0):(o=i.create(e).injector,s=o.get(Oe,[],{optional:!0,self:!0}).flat()),{routes:s.map(pr),injector:o}}))}function _o(t){return t&&typeof t=="object"&&"default"in t}function Zn(t){return _o(t)?t.default:t}function Jn(t){return h(t)}var Nt=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>d(xo),providedIn:"root"})}return t})(),xo=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),vr=new T(""),mr=new T("");function Xn(t,n,e){let r=t.get(mr),i=t.get(_r);if(!i.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(c=>setTimeout(c));let o,s=new Promise(c=>{o=c}),a=i.startViewTransition(()=>(o(),Lo(t)));a.ready.catch(c=>{});let{onViewTransitionCreated:u}=r;return u&&U(t,()=>u({transition:a,from:n,to:e})),s}function Lo(t){return new Promise(n=>{qr({read:()=>setTimeout(n)},{injector:t})})}var Rr=new T(""),Ut=(()=>{class t{currentNavigation=rt(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new q;transitionAbortWithErrorSubject=new q;configLoader=d(Dt);environmentInjector=d(oe);destroyRef=d(xr);urlSerializer=d(le);rootContexts=d(he);location=d(pe);inputBindingEnabled=d(We,{optional:!0})!==null;titleStrategy=d(gr);options=d(te,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Nt);createViewTransition=d(vr,{optional:!0});navigationErrorHandler=d(Rr,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>h(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=i=>this.events.next(new mt(i)),r=i=>this.events.next(new Rt(i));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;Y(()=>{this.transitions?.next(_(l({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:r}))})}setupNavigations(e){return this.transitions=new N(null),this.transitions.pipe(H(r=>r!==null),A(r=>{let i=!1;return h(r).pipe(A(o=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),B;this.currentTransition=r,this.currentNavigation.set({id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,targetBrowserUrl:typeof o.extras.browserUrl=="string"?this.urlSerializer.parse(o.extras.browserUrl):o.extras.browserUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?_(l({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>o.abortController.abort()});let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),a=o.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&a!=="reload")return this.events.next(new z(o.id,this.urlSerializer.serialize(o.rawUrl),"",Se.IgnoredSameUrlNavigation)),o.resolve(!1),B;if(this.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return h(o).pipe(A(u=>(this.events.next(new ee(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),u.id!==this.navigationId?B:Promise.resolve(u))),Mo(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),S(u=>{r.targetSnapshot=u.targetSnapshot,r.urlAfterRedirects=u.urlAfterRedirects,this.currentNavigation.update(p=>(p.finalUrl=u.urlAfterRedirects,p));let c=new $e(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(o.currentRawUrl)){let{id:u,extractedUrl:c,source:p,restoredState:y,extras:P}=o,W=new ee(u,this.urlSerializer.serialize(c),p,y);this.events.next(W);let E=jn(this.rootComponentType).snapshot;return this.currentTransition=r=_(l({},o),{targetSnapshot:E,urlAfterRedirects:c,extras:_(l({},P),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(de=>(de.finalUrl=c,de)),h(r)}else return this.events.next(new z(o.id,this.urlSerializer.serialize(o.extractedUrl),"",Se.IgnoredByUrlHandlingStrategy)),o.resolve(!1),B}),S(o=>{let s=new ft(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(s)}),v(o=>(this.currentTransition=r=_(l({},o),{guards:Wi(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),r)),io(this.environmentInjector,o=>this.events.next(o)),S(o=>{if(r.guardsResult=o.guardsResult,o.guardsResult&&typeof o.guardsResult!="boolean")throw Tt(this.urlSerializer,o.guardsResult);let s=new pt(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(s)}),H(o=>o.guardsResult?!0:(this.cancelNavigationTransition(o,"",b.GuardRejected),!1)),Kt(o=>{if(o.guards.canActivateChecks.length!==0)return h(o).pipe(S(s=>{let a=new gt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),A(s=>{let a=!1;return h(s).pipe(Do(this.paramsInheritanceStrategy,this.environmentInjector),S({next:()=>a=!0,complete:()=>{a||this.cancelNavigationTransition(s,"",b.NoDataFromResolver)}}))}),S(s=>{let a=new vt(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}))}),Kt(o=>{let s=a=>{let u=[];if(a.routeConfig?.loadComponent){let c=Te(a)??this.environmentInjector;u.push(this.configLoader.loadComponent(c,a.routeConfig).pipe(S(p=>{a.component=p}),v(()=>{})))}for(let c of a.children)u.push(...s(c));return u};return Je(s(o.targetSnapshot.root)).pipe(kt(null),fe(1))}),Kt(()=>this.afterPreactivation()),A(()=>{let{currentSnapshot:o,targetSnapshot:s}=r,a=this.createViewTransition?.(this.environmentInjector,o.root,s.root);return a?w(a).pipe(v(()=>r)):h(r)}),v(o=>{let s=qi(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return this.currentTransition=r=_(l({},o),{targetRouterState:s}),this.currentNavigation.update(a=>(a.targetRouterState=s,a)),r}),S(()=>{this.events.next(new ze)}),Gi(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o),this.inputBindingEnabled),fe(1),zt(new Ir(o=>{let s=r.abortController.signal,a=()=>o.next();return s.addEventListener("abort",a),()=>s.removeEventListener("abort",a)}).pipe(H(()=>!i&&!r.targetRouterState),S(()=>{this.cancelNavigationTransition(r,r.abortController.signal.reason+"",b.Aborted)}))),S({next:o=>{i=!0,this.lastSuccessfulNavigation=Y(this.currentNavigation),this.events.next(new D(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects))),this.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{i=!0}}),zt(this.transitionAbortWithErrorSubject.pipe(S(o=>{throw o}))),et(()=>{i||this.cancelNavigationTransition(r,"",b.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),ne(o=>{if(this.destroyed)return r.resolve(!1),B;if(i=!0,Bn(o))this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),o.message,o.cancellationCode)),Vi(o)?this.events.next(new be(o.url,o.navigationBehaviorOptions)):r.resolve(!1);else{let s=new Ce(r.id,this.urlSerializer.serialize(r.extractedUrl),o,r.targetSnapshot??void 0);try{let a=U(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(a instanceof Ie){let{message:u,cancellationCode:c}=Tt(this.urlSerializer,a);this.events.next(new k(r.id,this.urlSerializer.serialize(r.extractedUrl),u,c)),this.events.next(new be(a.redirectTo,a.navigationBehaviorOptions))}else throw this.events.next(s),o}catch(a){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(a)}}return B}))}))}cancelNavigationTransition(e,r,i){let o=new k(e.id,this.urlSerializer.serialize(e.extractedUrl),r,i);this.events.next(o),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Y(this.currentNavigation),i=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==i?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jo(t){return t!==Re}var ei=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>d(ko),providedIn:"root"})}return t})(),Ot=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},ko=(()=>{class t extends Ot{static \u0275fac=(()=>{let e;return function(i){return(e||(e=qt(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ti=(()=>{class t{urlSerializer=d(le);options=d(te,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(pe);urlHandlingStrategy=d(Nt);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new $;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:i}){let o=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=i??o;return s instanceof $?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:i}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,i),this.routerState=e):this.rawUrlTree=i}routerState=jn(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:()=>d($o),providedIn:"root"})}return t})(),$o=(()=>{class t extends ti{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate")})})}handleRouterEvent(e,r){e instanceof ee?this.updateStateMemento():e instanceof z?this.commitTransition(r):e instanceof $e?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof ze?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof k&&e.code!==b.SupersededByNewNavigation&&e.code!==b.Redirect?this.restoreHistory(r):e instanceof Ce?this.restoreHistory(r,!0):e instanceof D&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:r,id:i}){let{replaceUrl:o,state:s}=r;if(this.location.isCurrentPathEqualTo(e)||o){let a=this.browserPageId,u=l(l({},s),this.generateNgRouterState(i,a));this.location.replaceState(e,"",u)}else{let a=l(l({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(e,"",a)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,o=this.currentPageId-i;o!==0?this.location.historyGo(o):this.getCurrentUrlTree()===e.finalUrl&&o===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:r}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(i){return(e||(e=qt(t)))(i||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Pt(t,n){t.events.pipe(H(e=>e instanceof D||e instanceof k||e instanceof Ce||e instanceof z),v(e=>e instanceof D||e instanceof z?0:(e instanceof k?e.code===b.Redirect||e.code===b.SupersededByNewNavigation:!1)?2:1),H(e=>e!==2),fe(1)).subscribe(()=>{n()})}var zo={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Fo={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},F=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Qr);stateManager=d(ti);options=d(te,{optional:!0})||{};pendingTasks=d(Lr);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Ut);urlSerializer=d(le);location=d(pe);urlHandlingStrategy=d(Nt);injector=d(oe);_events=new q;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(ei);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Oe,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(We,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new wr;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let i=this.navigationTransitions.currentTransition,o=Y(this.navigationTransitions.currentNavigation);if(i!==null&&o!==null){if(this.stateManager.handleRouterEvent(r,o),r instanceof k&&r.code!==b.Redirect&&r.code!==b.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof D)this.navigated=!0;else if(r instanceof be){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,i.currentRawUrl),u=l({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||jo(i.source)},s);this.scheduleNavigation(a,Re,null,u,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}ki(r)&&this._events.next(r)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Re,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,i)=>{this.navigateToSyncWithBrowser(e,i,r)})}navigateToSyncWithBrowser(e,r,i){let o={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let u=l({},i);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(o.state=u)}let a=this.parseUrl(e);this.scheduleNavigation(a,r,s,o).catch(u=>{this.disposed||this.injector.get(tt)(u)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Y(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(pr),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:i,queryParams:o,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,c=u?this.currentUrlTree.fragment:s,p=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":p=l(l({},this.currentUrlTree.queryParams),o);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=o||null}p!==null&&(p=this.removeEmptyProps(p));let y;try{let P=i?i.snapshot:this.routerState.snapshot.root;y=Pn(P)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return _n(y,e,p,c??null)}navigateByUrl(e,r={skipLocationChange:!1}){let i=X(e)?e:this.parseUrl(e),o=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(o,Re,null,r)}navigate(e,r={skipLocationChange:!1}){return qo(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(Nr(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let i;if(r===!0?i=l({},zo):r===!1?i=l({},Fo):i=r,X(e))return pn(this.currentUrlTree,e,i);let o=this.parseUrl(e);return pn(this.currentUrlTree,o,i)}removeEmptyProps(e){return Object.entries(e).reduce((r,[i,o])=>(o!=null&&(r[i]=o),r),{})}scheduleNavigation(e,r,i,o,s){if(this.disposed)return Promise.resolve(!1);let a,u,c;s?(a=s.resolve,u=s.reject,c=s.promise):c=new Promise((y,P)=>{a=y,u=P});let p=this.pendingTasks.add();return Pt(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(p))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:o,resolve:a,reject:u,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(y=>Promise.reject(y))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qo(t){for(let n=0;n<t.length;n++)if(t[n]==null)throw new C(4008,!1)}var _t=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=rt(null);get href(){return Y(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new q;applicationErrorHandler=d(tt);options=d(te,{optional:!0});constructor(e,r,i,o,s,a){this.router=e,this.route=r,this.tabIndexAttribute=i,this.renderer=o,this.el=s,this.locationStrategy=a,this.reactiveHref.set(d(new sn("href"),{optional:!0}));let u=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area"||!!(typeof customElements=="object"&&customElements.get(u)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,r=i=>i==="merge"||i==="preserve";e||=r(this.queryParamsHandling),e||=!this.queryParamsHandling&&!r(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(i=>{i instanceof D&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(X(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,i,o,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||i||o||s||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,u)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,r){let i=this.renderer,o=this.el.nativeElement;r!==null?i.setAttribute(o,e,r):i.removeAttribute(o,e)}get urlTree(){return this.routerLinkInput===null?null:X(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(r){return new(r||t)(x(F),x(V),jr("tabindex"),x(Ht),x(Bt),x(Pe))};static \u0275dir=Ue({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,i){r&1&&en("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&Jr("href",i.reactiveHref(),$r)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ot],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ot],replaceUrl:[2,"replaceUrl","replaceUrl",ot],routerLink:"routerLink"},features:[Ne]})}return t})(),Bo=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new se;constructor(e,r,i,o,s){this.router=e,this.element=r,this.renderer=i,this.cdr=o,this.link=s,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof D&&this.update()})}ngAfterContentInit(){h(this.links.changes,h(null)).pipe(De()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=w(e).pipe(De()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(i=>!!i)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=Ho(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return i=>{let o=i.urlTree;return o?e.isActive(o,r):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(x(F),x(Bt),x(Ht),x(it),x(_t,8))};static \u0275dir=Ue({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,i,o){if(r&1&&tn(o,_t,5),r&2){let s;rn(s=nn())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Ne]})}return t})();function Ho(t){return!!t.paths}var Ke=class{};var ri=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,i,o){this.router=e,this.injector=r,this.preloadingStrategy=i,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(H(e=>e instanceof D),ie(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,r){let i=[];for(let o of r){o.providers&&!o._injector&&(o._injector=nt(o.providers,e,`Route: ${o.path}`));let s=o._injector??e,a=o._loadedInjector??s;(o.loadChildren&&!o._loadedRoutes&&o.canLoad===void 0||o.loadComponent&&!o._loadedComponent)&&i.push(this.preloadConfig(s,o)),(o.children||o._loadedRoutes)&&i.push(this.processRoutes(a,o.children??o._loadedRoutes))}return w(i).pipe(De())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{let i;r.loadChildren&&r.canLoad===void 0?i=this.loader.loadChildren(e,r):i=h(null);let o=i.pipe(I(s=>s===null?h(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return w([o,s]).pipe(De())}else return o})}static \u0275fac=function(r){return new(r||t)(K(F),K(oe),K(Ke),K(Dt))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ni=new T(""),Vo=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Re;restoredId=0;store={};constructor(e,r,i,o,s={}){this.urlSerializer=e,this.transitions=r,this.viewportScroller=i,this.zone=o,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof ee?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof D?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof z&&e.code===Se.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof we))return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){this.zone.runOutsideAngular(()=>Cr(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new we(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Br()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Go(t){return t.routerState.root}function Ye(t,n){return{\u0275kind:t,\u0275providers:n}}function Wo(){let t=d(Ft);return n=>{let e=t.get(Zr);if(n!==e.components[0])return;let r=t.get(F),i=t.get(ii);t.get(Sr)===1&&r.initialNavigation(),t.get(ai,null,{optional:!0})?.setUpPreloading(),t.get(ni,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var ii=new T("",{factory:()=>new q}),Sr=new T("",{providedIn:"root",factory:()=>1});function oi(){let t=[{provide:kr,useValue:!0},{provide:Sr,useValue:0},Vt(()=>{let n=d(Ft);return n.get(cn,Promise.resolve()).then(()=>new Promise(r=>{let i=n.get(F),o=n.get(ii);Pt(i,()=>{r(!0)}),n.get(Ut).afterPreactivation=()=>(r(!0),o.closed?h(void 0):o),i.initialNavigation()}))})];return Ye(2,t)}function si(){let t=[Vt(()=>{d(F).setUpLocationChangeListener()}),{provide:Sr,useValue:2}];return Ye(3,t)}var ai=new T("");function ui(t){return Ye(0,[{provide:ai,useExisting:ri},{provide:Ke,useExisting:t}])}function ci(){return Ye(8,[dr,{provide:We,useExisting:dr}])}function li(t){zr("NgRouterViewTransitions");let n=[{provide:vr,useValue:Xn},{provide:mr,useValue:l({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ye(9,n)}var hi=[pe,{provide:le,useClass:J},F,he,{provide:V,useFactory:Go,deps:[F]},Dt,[]],Qo=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[hi,[],{provide:Oe,multi:!0,useValue:e},[],r?.errorHandler?{provide:Rr,useValue:r.errorHandler}:[],{provide:te,useValue:r||{}},r?.useHash?Yo():Zo(),Ko(),r?.preloadingStrategy?ui(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?Jo(r):[],r?.bindToComponentInputs?ci().\u0275providers:[],r?.enableViewTransitions?li().\u0275providers:[],Xo()]}}static forChild(e){return{ngModule:t,providers:[{provide:Oe,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Wr({type:t});static \u0275inj=Ur({})}return t})();function Ko(){return{provide:ni,useFactory:()=>{let t=d(dn),n=d(Fr),e=d(te),r=d(Ut),i=d(le);return e.scrollOffset&&t.setOffset(e.scrollOffset),new Vo(i,r,t,n,e)}}}function Yo(){return{provide:Pe,useClass:hn}}function Zo(){return{provide:Pe,useClass:ln}}function Jo(t){return[t.initialNavigation==="disabled"?si().\u0275providers:[],t.initialNavigation==="enabledBlocking"?oi().\u0275providers:[]]}var yr=new T("");function Xo(){return[{provide:yr,useFactory:Wo},{provide:Yr,multi:!0,useExisting:yr}]}export{D as a,V as b,hr as c,F as d,_t as e,Bo as f,Qo as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Z}from"./chunk-SABMHH6B.js";import"./chunk-YAWT3CLI.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import{a as et}from"./chunk-27DIE2YS.js";import{a as tt}from"./chunk-7IOQ6VVF.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"./chunk-G6O6VFLS.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as X}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as W}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import{c as Q}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as K}from"./chunk-ZSUWHVKX.js";import{h as J}from"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import{b as Y,c as G}from"./chunk-5UFP37GQ.js";import{c as T}from"./chunk-UPRDDI4K.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as H}from"./chunk-MM7SAZOU.js";import{e as z}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{w as q,x as R,z as U}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{$c as D,G as P,Hb as O,Nb as L,Nc as c,Oc as N,Pc as _,ac as w,ad as g,bc as $,ca as b,cc as I,ec as B,f as E,fc as A,gc as F,hc as u,ic as o,id as h,jc as r,jd as S,kc as m,kd as j,mb as k,ob as s,oc as M,pc as V,ra as C,rc as y,wc as v,ya as f,yc as p,za as x}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var it=()=>["/menu/products/status/sold-in-channel"],nt=e=>({ID:e}),ot=()=>["/menu/products/status/not-in-pos"],rt=e=>[e];function at(e,a){if(e&1&&c(0),e&2){let i=p().$implicit;_(" ",i.Count," ")}}function ct(e,a){if(e&1){let i=y();o(0,"span",23),v("click",function(){f(i);let t=p().$implicit,l=p(2);return x(l.getLiveProductCount(t.ID,t))}),m(1,"i",24),r()}}function lt(e,a){if(e&1){let i=y();M(0),o(1,"button",25),v("click",function(){f(i);let t=p().$implicit,l=p(2);return x(l.onScanChannel(t))}),m(2,"i",26),c(3," Scan "),r(),V()}}function st(e,a){if(e&1){let i=y();o(0,"tr")(1,"td"),m(2,"img",14),o(3,"span",15),c(4),r()(),o(5,"td",16),w(6,at,1,1)(7,ct,2,0,"span",17),r(),o(8,"td",16)(9,"a",18),c(10),h(11,"number"),r()(),o(12,"td",16)(13,"a",18),c(14),h(15,"number"),r()(),o(16,"td"),c(17),h(18,"date"),r(),o(19,"td")(20,"div",19),L(21,lt,4,0,"ng-container",20),o(22,"button",21),v("click",function(){let t=f(i).$implicit,l=p(2);return x(l.onClearCache(t.ID))}),m(23,"i",22),c(24," Clear "),r()()()()}if(e&2){let i=a.$implicit,n=p(2);s(2),u("src",n.getChannelLogo(i.TypeID),k),s(2),N(i.Name),s(2),I(i.Count!==void 0?6:7),s(3),u("routerLink",D(18,it))("queryParams",g(19,nt,i.ID)),s(),_(" ",S(11,11,i.SoldInChannel)," "),s(3),u("routerLink",D(21,ot))("queryParams",g(22,nt,i.ID)),s(),_(" ",S(15,13,i.NotInPOS)," "),s(3),_(" ",i.LastSync?j(18,15,i.LastSync,"dd MMM yyyy HH:mm"):"Never"," "),s(4),u("ngxPermissionsOnly",g(24,rt,n.scanProductRole))}}function pt(e,a){if(e&1&&(o(0,"div",4)(1,"table",6)(2,"thead",7)(3,"tr",8)(4,"th"),c(5,"Channel"),r(),o(6,"th",9),c(7," Live Product "),r(),o(8,"th",10),c(9," Sold In Channel "),r(),o(10,"th",11),c(11," Product Not in POS "),r(),o(12,"th",12),c(13,"Last Sync"),r(),m(14,"th",13),r()(),o(15,"tbody"),A(16,st,25,26,"tr",null,B),h(18,"async"),r()()()),e&2){let i,n=p();s(16),F((i=S(18,0,n.channels$))==null?null:i.Data)}}function dt(e,a){e&1&&(o(0,"div",5),m(1,"app-empty-state"),r())}var kt=(()=>{let a=class a{constructor(){this.productService=C(tt),this.toastr=C(H),this.dialog=C(W),this.authService=C(J),this.scanProductRole=K.ProductScan;let n=this.authService;this.destroy$=new E,this.channelOptions=n.getChannels()}ngOnInit(){this.setObsProductStatistic()}setObsProductStatistic(){this.channels$=this.productService.getProductStatistic()}getLiveProductCount(n,t){this.productService.getTotalProductLive(n).pipe(b(this.destroy$)).subscribe(l=>{t.Count=l.Count})}onScanChannel(n){this.dialog.open(Z,{width:"700px",data:{channelOptions:this.channelOptions,filter:{ChannelID:n.ID},disabledChannelOption:!0}}).afterClosed().pipe(P(t=>T.IsNotEmpty(t))).subscribe(t=>{this.scanAllProduct(n.ID,t)})}scanAllProduct(n,t){let l=this.productService.findChannelById(n,this.channelOptions);this.productService.scanAll(t.ChannelID,t.ScanFull,t.UpdatedProduct,t.Async).pipe(P(d=>d)).subscribe(d=>{t.Async?this.toastr.warning("You will be notified when the scan is completed.","Scan In Progress",{toastClass:"ngx-toastr toast-waiting"}):(this.productService.successToastrScanAllProduct(d,l,!t.UpdatedProduct),this.setObsProductStatistic())})}onClearCache(n){confirm("Are you sure you want to Clear Cache? This Process will remove your product integration to marketplace")&&this.productService.clearCacheChannel(n).pipe(b(this.destroy$)).subscribe(l=>{this.toastr.success("Successfully cleared cache","Success"),this.setObsProductStatistic()})}getChannelLogo(n){return T.getChannelLogoByTypeId(n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};a.\u0275fac=function(t){return new(t||a)},a.\u0275cmp=O({type:a,selectors:[["app-channel-statistic"]],decls:8,vars:5,consts:[["headerTitle","Products Statistic",3,"hideSearchBox","hideSearchDropdown"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[1,"text-center",2,"width","13rem"],[1,"text-center",2,"width","9rem"],[1,"text-center",2,"width","14rem"],[2,"width","10rem"],[2,"width","12rem"],[2,"width","24px","height","24px",3,"src"],[1,"ms-3"],[1,"text-center"],["matTooltip","Click to see total live product",1,"cursor-pointer","fs-5","text-primary"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","justify-content-center"],[4,"ngxPermissionsOnly"],[1,"btn","btn-sm","btn-secondary","fs-6","ms-3",3,"click"],[1,"fa","fa-trash"],["matTooltip","Click to see total live product",1,"cursor-pointer","fs-5","text-primary",3,"click"],[1,"fa-solid","fa-circle-question","cursor"],[1,"btn","btn-sm","btn-secondary","fs-6",3,"click"],[1,"fa","fa-spinner"]],template:function(t,l){if(t&1&&(o(0,"mainpanel",0)(1,"content")(2,"div",1)(3,"div",2)(4,"div",3),w(5,pt,19,2,"div",4),h(6,"async"),$(7,dt,2,0,"div",5),r()()()()()),t&2){let d;u("hideSearchBox",!0)("hideSearchDropdown",!0),s(5),I(((d=S(6,3,l.channels$))==null||d.Data==null?null:d.Data.length)>0?5:7)}},dependencies:[X,Q,z,G,Y,et,q,U,R],encapsulation:2});let e=a;return e})();export{kt as ChannelStatisticComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as _}from"./chunk-
|
|
1
|
+
import{f as _}from"./chunk-QMQCIH3X.js";import{c as a}from"./chunk-UPRDDI4K.js";import{e as k,g as C}from"./chunk-NQLMPUSB.js";import{Hb as v,Nc as u,Pc as p,ac as I,bd as D,cc as g,hc as s,ic as c,jc as m,ma as h,mb as b,ob as l,pd as f,ra as o,ud as x,yc as d}from"./chunk-OHGMB7HJ.js";var y=(()=>{let e=class e{constructor(){this.localDataService=o(_),this.baseUrl=this.localDataService.getHostName()}getBaseUrl(n){let r="";return a.IsNotEmpty(n.ID)?r=`https://${this.baseUrl}/menu/Orders/Orders/Customer_Invoice/Info?ID=${n.ID}`:r="/menu/Order/detail",r}};e.\u0275fac=function(r){return new(r||e)},e.\u0275prov=h({token:e,factory:e.\u0275fac,providedIn:"root"});let t=e;return t})();var U=(t,e)=>({Number:t,Outlet:e});function L(t,e){if(t&1&&(c(0,"a",0),u(1),m()),t&2){let i,n=d();s("href",n.baseUrl(),b),l(),p(" ",(i=n.order())==null?null:i.Number," ")}}function S(t,e){if(t&1&&(c(0,"a",1),u(1),m()),t&2){let i,n,r=d();s("routerLink",r.baseUrl())("queryParams",D(3,U,(i=r.order())==null?null:i.Number,(i=r.order())==null?null:i.Outlet)),l(),p(" ",(n=r.order())==null?null:n.Number," ")}}var z=(()=>{let e=class e{constructor(){this.order=x(),this.generateLinkService=o(y),this.baseUrl=f(()=>this.generateLinkService.getBaseUrl(this.order())),this.hasOrderID=f(()=>a.IsNotEmpty(this.order()?.ID))}};e.\u0275fac=function(r){return new(r||e)},e.\u0275cmp=v({type:e,selectors:[["order-link"]],inputs:{order:[1,"order"]},decls:2,vars:1,consts:[["target","_blank",3,"href"],["target","_blank",3,"routerLink","queryParams"]],template:function(r,N){r&1&&I(0,L,2,2,"a",0)(1,S,2,6,"a",1),r&2&&g(N.hasOrderID()?0:1)},dependencies:[C,k],encapsulation:2});let t=e;return t})();export{z as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Ye}from"./chunk-
|
|
1
|
+
import{a as Ye}from"./chunk-QMHG3QTI.js";import{a as Ze,b as tt,c as nt,d as st}from"./chunk-NIJCYMZM.js";import{a as Xe}from"./chunk-UMLV2ZUF.js";import{a as lt}from"./chunk-7X4B2T6C.js";import{b as ot}from"./chunk-PN3KM4M4.js";import{a as at}from"./chunk-WIRBYT7F.js";import{a as We,d as et,e as it}from"./chunk-ZWUYPYHD.js";import{a as Je}from"./chunk-FOKLBUX6.js";import{a as je}from"./chunk-ZDBFIPDM.js";import{c as Ue}from"./chunk-DDFP4CNP.js";import{b as Re,c as ue,d as $e,e as K,f as _e}from"./chunk-RBZU7OVM.js";import{D as ze,O as Ae,Q as ce,R as Pe,T as W,U as Q,V as Qe,X as de,ca as Ke,ga as Ne,la as Ge,ma as q,na as Y,u as P,ua as He,v as B,x as Be,y as De}from"./chunk-RXC5D64C.js";import{a as qe}from"./chunk-WAXAIL2I.js";import{A as pe,s as Le,t as ae,u as se,v as re}from"./chunk-JNRCB7N3.js";import{$c as Ee,Aa as E,Ab as X,Bc as b,Cc as k,Dc as d,Ec as u,Fd as y,Gd as j,Hb as N,Ia as F,Ib as Te,Ic as A,Jc as Ce,Lb as G,Lc as ie,Mb as Se,Mc as f,Nb as c,Nc as D,Oc as H,Pa as R,Pc as ne,Rc as we,Sc as Ve,Tc as ke,_b as v,_c as oe,ac as ee,ad as C,bd as le,cc as te,hc as a,ic as _,jc as m,kc as M,la as be,ld as L,ma as xe,na as Ie,nc as Oe,ob as p,oc as T,pa as J,pc as S,pd as U,qc as O,qd as Fe,ra as z,rc as V,tb as w,ub as ve,ud as Me,wc as I,ya as h,yc as r,za as g}from"./chunk-OHGMB7HJ.js";import{a as ge,b as ye}from"./chunk-66YHNWRR.js";var bt=["data-p-icon","blank"],rt=(()=>{class t extends Je{static \u0275fac=(()=>{let e;return function(n){return(e||(e=R(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["","data-p-icon","blank"]],features:[G],attrs:bt,decls:1,vars:0,consts:[["width","1","height","1","fill","currentColor","fill-opacity","0"]],template:function(i,n){i&1&&(E(),Oe(0,"rect",0))},encapsulation:2})}return t})();var pt=`
|
|
2
2
|
.p-select {
|
|
3
3
|
display: inline-flex;
|
|
4
4
|
cursor: pointer;
|
|
@@ -248,4 +248,4 @@ import{a as Ye}from"./chunk-4RLWHMI6.js";import{a as Ze,b as tt,c as nt,d as st}
|
|
|
248
248
|
.p-select.ng-invalid.ng-dirty .p-select-label.p-placeholder {
|
|
249
249
|
color: dt('select.invalid.placeholder.color');
|
|
250
250
|
}
|
|
251
|
-
`,Ji={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},Z=(()=>{class t extends Ge{name="select";style=Zi;classes=Ji;static \u0275fac=(()=>{let e;return function(n){return(e||(e=R(t)))(n||t)}})();static \u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();var mt=new J("SELECT_INSTANCE"),Xi=new J("SELECT_ITEM_INSTANCE"),en={provide:Be,useExisting:be(()=>ft),multi:!0},tn=(()=>{class t extends $e{hostName="select";$pcSelectItem=z(Xi,{optional:!0,skipSelf:!0})??void 0;$pcSelect=z(mt,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new w;onMouseEnter=new w;_componentStyle=z(Z);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=R(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",y],focused:[2,"focused","focused",y],label:"label",disabled:[2,"disabled","disabled",y],visible:[2,"visible","visible",y],itemSize:[2,"itemSize","itemSize",j],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",y],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[oe([Z,{provide:ue,useExisting:t}]),G],decls:4,vars:20,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(i,n){i&1&&(_(0,"li",0),I("click",function(l){return n.onOptionClick(l)})("mouseenter",function(l){return n.onOptionMouseEnter(l)}),c(1,vt,3,2,"ng-container",1)(2,Tt,2,2,"span",2)(3,St,1,0,"ng-container",3),m()),i&2&&(f(n.cx("option")),a("id",n.id)("pBind",n.getPTOptions())("ngStyle",C(16,$,n.itemSize+"px")),v("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-disabled",n.disabled),p(),a("ngIf",n.checkmark),p(),a("ngIf",!n.template),p(),a("ngTemplateOutlet",n.template)("ngTemplateOutletContext",C(18,me,n.option)))},dependencies:[pe,ae,re,se,q,at,Xe,rt,_e,K],encapsulation:2})}return t})(),ft=(()=>{class t extends Ye{zone;filterService;bindDirectiveInstance=z(K,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){Qe(e,this._options())||this._options.set(e)}appendTo=Me(void 0);onChange=new w;onFilter=new w;onFocus=new w;onBlur=new w;onClick=new w;onShow=new w;onHide=new w;onClear=new w;onLazyLoad=new w;_componentStyle=z(Z);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=U(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=F(null);_placeholder=F(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=F(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=F(-1);labelId;listId;clicked=F(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Y.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Y.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(Y.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=U(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let n=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],l=[];return o.forEach(x=>{let he=this.getOptionGroupChildren(x).filter(gt=>n?.includes(gt));he.length>0&&l.push(ye(ge({},x),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...he]}))}),this.flatOptions(l)}return n}return e});label=U(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(n=>this.isOptionValueEqualsModelValue(n));if(i!==-1){let n=e[i];return this.getOptionLabel(n)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,i){super(),this.zone=e,this.filterService=i,Fe(()=>{let n=this.modelValue(),o=this.visibleOptions();if(o&&W(o)){let l=this.findSelectedOptionIndex();if(l!==-1||n===void 0||typeof n=="string"&&n.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[l];else{let x=o.findIndex(fe=>this.isSelected(fe));x!==-1&&(this.selectedOption=o[x])}}ce(o)&&(n===void 0||this.isModelValueNotSet())&&W(this.selectedOption)&&(this.selectedOption=null),n!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||Ne("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=P(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&Pe(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let l=this.getOptionGroupChildren(n);return l&&l.forEach(x=>i.push(x)),i},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,i,n=!0,o=!1){if(!this.isOptionDisabled(i)){if(!this.isSelected(i)){let l=this.getOptionValue(i);this.updateModel(l,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:l})}n&&this.hide(!0)}}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&Ke(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!this.selectedOption){let n=e.querySelector("label");n&&this._placeholder.set(n.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?Q(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?Q(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,i,n,o){return this.ptm(o,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return ce(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?Q(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?Q(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?Q(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&W(i)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&B(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=P(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=P(this.itemsWrapper,".p-select-option.p-select-option-selected");i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&Ue(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&B(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&B(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&Re(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let n=this.visibleOptions()[i];this.onOptionSelect(e,n,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=P(this.itemsViewChild.nativeElement,`li[id="${i}"]`);n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?de(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastOptionIndex(){return de(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide()}else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;e.shiftKey?n.setSelectionRange(0,n.value.length):(n.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;if(e.shiftKey)n.setSelectionRange(0,n.value.length);else{let o=n.value.length;n.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}!i&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())B(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?ze(this.overlayViewChild?.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;B(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?Ae(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;B(i)}hasFocusableElements(){return De(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return n=this.visibleOptions().findIndex(l=>this.isOptionMatched(l)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,n)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?P(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():B(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,i){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),i(this.value),this.updateEditableLabel(),this.cd.markForCheck()}static \u0275fac=function(i){return new(i||t)(X(ve),X(He))};static \u0275cmp=N({type:t,selectors:[["p-select"]],contentQueries:function(i,n,o){if(i&1&&(b(o,Ot,4),b(o,Ct,4),b(o,wt,4),b(o,Vt,4),b(o,kt,4),b(o,ct,4),b(o,Et,4),b(o,Ft,4),b(o,Mt,4),b(o,Lt,4),b(o,Bt,4),b(o,Dt,4),b(o,zt,4),b(o,At,4),b(o,Pt,4),b(o,Qt,4),b(o,qe,4)),i&2){let l;d(l=u())&&(n.itemTemplate=l.first),d(l=u())&&(n.groupTemplate=l.first),d(l=u())&&(n.loaderTemplate=l.first),d(l=u())&&(n.selectedItemTemplate=l.first),d(l=u())&&(n.headerTemplate=l.first),d(l=u())&&(n.filterTemplate=l.first),d(l=u())&&(n.footerTemplate=l.first),d(l=u())&&(n.emptyFilterTemplate=l.first),d(l=u())&&(n.emptyTemplate=l.first),d(l=u())&&(n.dropdownIconTemplate=l.first),d(l=u())&&(n.loadingIconTemplate=l.first),d(l=u())&&(n.clearIconTemplate=l.first),d(l=u())&&(n.filterIconTemplate=l.first),d(l=u())&&(n.onIconTemplate=l.first),d(l=u())&&(n.offIconTemplate=l.first),d(l=u())&&(n.cancelIconTemplate=l.first),d(l=u())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(k(ct,5),k(Kt,5),k(Rt,5),k(Nt,5),k(Gt,5),k(Ht,5),k(qt,5),k($t,5)),i&2){let o;d(o=u())&&(n.filterViewChild=o.first),d(o=u())&&(n.focusInputViewChild=o.first),d(o=u())&&(n.editableInputViewChild=o.first),d(o=u())&&(n.itemsViewChild=o.first),d(o=u())&&(n.scroller=o.first),d(o=u())&&(n.overlayViewChild=o.first),d(o=u())&&(n.firstHiddenFocusableElementOnOverlay=o.first),d(o=u())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:3,hostBindings:function(i,n){i&1&&I("click",function(l){return n.onContainerClick(l)}),i&2&&(v("id",n.id),f(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",y],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",y],editable:[2,"editable","editable",y],tabindex:[2,"tabindex","tabindex",j],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",y],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",y],checkmark:[2,"checkmark","checkmark",y],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",y],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",y],showClear:[2,"showClear","showClear",y],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",y],virtualScroll:[2,"virtualScroll","virtualScroll",y],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",j],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",y],selectOnFocus:[2,"selectOnFocus","selectOnFocus",y],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",y],autofocusFilter:[2,"autofocusFilter","autofocusFilter",y],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[oe([en,Z,{provide:mt,useExisting:t},{provide:ue,useExisting:t}]),Se([K]),G],decls:11,vars:16,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],["hostName","select",3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","pt","visible","options","target","appendTo"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","scrollerOptions"]],template:function(i,n){if(i&1){let o=V();c(0,Jt,6,23,"span",16)(1,Xt,2,19,"input",17)(2,oi,3,2,"ng-container",18),_(3,"div",19),c(4,ci,3,2,"ng-container",20)(5,gi,2,2,"ng-template",null,0,L),m(),_(7,"p-overlay",21,1),ke("visibleChange",function(x){return h(o),Ve(n.overlayVisible,x)||(n.overlayVisible=x),g(x)}),I("onAnimationStart",function(x){return h(o),g(n.onOverlayAnimationStart(x))})("onHide",function(){return h(o),g(n.hide())}),c(9,Yi,13,22,"ng-template",null,2,L),m()}if(i&2){let o=A(6);a("ngIf",!n.editable),p(),a("ngIf",n.editable),p(),a("ngIf",n.isVisibleClearIcon),p(),f(n.cx("dropdown")),a("pBind",n.ptm("dropdown")),v("aria-expanded",n.overlayVisible??!1)("data-pc-section","trigger"),p(),a("ngIf",n.loading)("ngIfElse",o),p(3),a("hostAttrSelector",n.$attrSelector)("pt",n.ptm("pcOverlay")),we("visible",n.overlayVisible),a("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())}},dependencies:[pe,Le,ae,re,se,tn,lt,je,We,it,et,tt,ot,Ze,nt,st,q,_e,K],encapsulation:2,changeDetection:0})}return t})(),Qn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Te({type:t});static \u0275inj=Ie({imports:[ft,q,q]})}return t})();var ht=class{constructor(){this.top=F(0)}initTopPosition(){let s=document.querySelector("body");this.top.set(s.getBoundingClientRect()?.top*-1)}adjustOverlayPosition(){let s=document.querySelector(".p-overlay.p-component");if(!s)return;let e=s.getBoundingClientRect(),i=this.top()+e.top;s.style.setProperty("top",`${i}px`,"important"),getComputedStyle(s).position!=="fixed"&&s.style.setProperty("position","fixed","important"),this.startOverlayObserver()}startOverlayObserver(){let s=document.querySelector(".p-overlay.p-component");s&&(this.stopOverlayObserver(),this.overlayObserver=new MutationObserver(e=>{let i=e[0];if(i&&i.type==="attributes"&&i.attributeName==="style"){let n=i.target,o=getComputedStyle(n).display,l=getComputedStyle(n).visibility;(o==="none"||l==="hidden")&&(n.style.setProperty("display","block","important"),n.style.setProperty("visibility","visible","important"),n.style.setProperty("position","fixed","important"))}}),this.overlayObserver.observe(s,{attributes:!0,attributeFilter:["style"]}))}stopOverlayObserver(){this.overlayObserver&&(this.overlayObserver.disconnect(),this.overlayObserver=void 0)}};export{ft as a,Qn as b,ht as c};
|
|
251
|
+
`,Ji={root:({instance:t})=>["p-select p-component p-inputwrapper",{"p-disabled":t.$disabled(),"p-variant-filled":t.$variant()==="filled","p-focus":t.focused,"p-invalid":t.invalid(),"p-inputwrapper-filled":t.$filled(),"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-select-open":t.overlayVisible,"p-select-fluid":t.hasFluid,"p-select-sm p-inputfield-sm":t.size()==="small","p-select-lg p-inputfield-lg":t.size()==="large"}],label:({instance:t})=>["p-select-label",{"p-placeholder":t.placeholder()&&t.label()===t.placeholder(),"p-select-label-empty":!t.editable&&!t.selectedItemTemplate&&(t.label()===void 0||t.label()===null||t.label()==="p-emptylabel"||t.label().length===0)}],clearIcon:"p-select-clear-icon",dropdown:"p-select-dropdown",loadingIcon:"p-select-loading-icon",dropdownIcon:"p-select-dropdown-icon",overlay:"p-select-overlay p-component-overlay p-component",header:"p-select-header",pcFilter:"p-select-filter",listContainer:"p-select-list-container",list:"p-select-list",optionGroup:"p-select-option-group",optionGroupLabel:"p-select-option-group-label",option:({instance:t})=>["p-select-option",{"p-select-option-selected":t.selected&&!t.checkmark,"p-disabled":t.disabled,"p-focus":t.focused}],optionLabel:"p-select-option-label",optionCheckIcon:"p-select-option-check-icon",optionBlankIcon:"p-select-option-blank-icon",emptyMessage:"p-select-empty-message"},Z=(()=>{class t extends He{name="select";style=Zi;classes=Ji;static \u0275fac=(()=>{let e;return function(n){return(e||(e=R(t)))(n||t)}})();static \u0275prov=xe({token:t,factory:t.\u0275fac})}return t})();var mt=new J("SELECT_INSTANCE"),Xi=new J("SELECT_ITEM_INSTANCE"),en={provide:qe,useExisting:be(()=>ft),multi:!0},tn=(()=>{class t extends $e{hostName="select";$pcSelectItem=z(Xi,{optional:!0,skipSelf:!0})??void 0;$pcSelect=z(mt,{optional:!0,skipSelf:!0})??void 0;id;option;selected;focused;label;disabled;visible;itemSize;ariaPosInset;ariaSetSize;template;checkmark;index;scrollerOptions;onClick=new w;onMouseEnter=new w;_componentStyle=z(Z);onOptionClick(e){this.onClick.emit(e)}onOptionMouseEnter(e){this.onMouseEnter.emit(e)}getPTOptions(){return this.$pcSelect?.getPTItemOptions?.(this.option,this.scrollerOptions,this.index??0,"option")??this.$pcSelect?.ptm("option",{context:{option:this.option,selected:this.selected,focused:this.focused,disabled:this.disabled}})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=R(t)))(n||t)}})();static \u0275cmp=N({type:t,selectors:[["p-selectItem"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",y],focused:[2,"focused","focused",y],label:"label",disabled:[2,"disabled","disabled",y],visible:[2,"visible","visible",y],itemSize:[2,"itemSize","itemSize",j],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",template:"template",checkmark:[2,"checkmark","checkmark",y],index:"index",scrollerOptions:"scrollerOptions"},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[oe([Z,{provide:ue,useExisting:t}]),G],decls:4,vars:20,consts:[["role","option","pRipple","",3,"click","mouseenter","id","pBind","ngStyle"],[4,"ngIf"],[3,"pBind",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["data-p-icon","check",3,"class","pBind",4,"ngIf"],["data-p-icon","blank",3,"class","pBind",4,"ngIf"],["data-p-icon","check",3,"pBind"],["data-p-icon","blank",3,"pBind"],[3,"pBind"]],template:function(i,n){i&1&&(_(0,"li",0),I("click",function(l){return n.onOptionClick(l)})("mouseenter",function(l){return n.onOptionMouseEnter(l)}),c(1,vt,3,2,"ng-container",1)(2,Tt,2,2,"span",2)(3,St,1,0,"ng-container",3),m()),i&2&&(f(n.cx("option")),a("id",n.id)("pBind",n.getPTOptions())("ngStyle",C(16,$,n.itemSize+"px")),v("aria-label",n.label)("aria-setsize",n.ariaSetSize)("aria-posinset",n.ariaPosInset)("aria-selected",n.selected)("data-p-focused",n.focused)("data-p-highlight",n.selected)("data-p-disabled",n.disabled),p(),a("ngIf",n.checkmark),p(),a("ngIf",!n.template),p(),a("ngTemplateOutlet",n.template)("ngTemplateOutletContext",C(18,me,n.option)))},dependencies:[pe,ae,re,se,q,at,Xe,rt,_e,K],encapsulation:2})}return t})(),ft=(()=>{class t extends Ye{zone;filterService;bindDirectiveInstance=z(K,{self:!0});id;scrollHeight="200px";filter;panelStyle;styleClass;panelStyleClass;readonly;editable;tabindex=0;set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}loadingIcon;filterPlaceholder;filterLocale;inputId;dataKey;filterBy;filterFields;autofocus;resetFilterOnHide=!1;checkmark=!1;dropdownIcon;loading=!1;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";group;showClear;emptyFilterMessage="";emptyMessage="";lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;overlayOptions;ariaFilterLabel;ariaLabel;ariaLabelledBy;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;focusOnHover=!0;selectOnFocus=!1;autoOptionFocus=!1;autofocusFilter=!0;get filterValue(){return this._filterValue()}set filterValue(e){setTimeout(()=>{this._filterValue.set(e)})}get options(){return this._options()}set options(e){Pe(e,this._options())||this._options.set(e)}appendTo=Me(void 0);onChange=new w;onFilter=new w;onFocus=new w;onBlur=new w;onClick=new w;onShow=new w;onHide=new w;onClear=new w;onLazyLoad=new w;_componentStyle=z(Z);filterViewChild;focusInputViewChild;editableInputViewChild;itemsViewChild;scroller;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;itemsWrapper;$appendTo=U(()=>this.appendTo()||this.config.overlayAppendTo());itemTemplate;groupTemplate;loaderTemplate;selectedItemTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;dropdownIconTemplate;loadingIconTemplate;clearIconTemplate;filterIconTemplate;onIconTemplate;offIconTemplate;cancelIconTemplate;templates;_itemTemplate;_selectedItemTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_groupTemplate;_loaderTemplate;_dropdownIconTemplate;_loadingIconTemplate;_clearIconTemplate;_filterIconTemplate;_cancelIconTemplate;_onIconTemplate;_offIconTemplate;filterOptions;_options=F(null);_placeholder=F(void 0);value;hover;focused;overlayVisible;optionsChanged;panel;dimensionsUpdated;hoveredItem;selectedOptionUpdated;_filterValue=F(null);searchValue;searchIndex;searchTimeout;previousSearchChar;currentSearchChar;preventModelTouched;focusedOptionIndex=F(-1);labelId;listId;clicked=F(!1);get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Y.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(Y.EMPTY_FILTER_MESSAGE)}get isVisibleClearIcon(){return this.modelValue()!=null&&this.hasSelectedOption()&&this.showClear&&!this.$disabled()}get listLabel(){return this.config.getTranslation(Y.ARIA).listLabel}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}visibleOptions=U(()=>{let e=this.getAllVisibleAndNonVisibleOptions();if(this._filterValue()){let n=!(this.filterBy||this.optionLabel)&&!this.filterFields&&!this.optionValue?this.options?.filter(o=>o.label?o.label.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1:o.toString().toLowerCase().indexOf(this._filterValue().toLowerCase().trim())!==-1):this.filterService.filter(e,this.searchFields(),this._filterValue().trim(),this.filterMatchMode,this.filterLocale);if(this.group){let o=this.options||[],l=[];return o.forEach(x=>{let he=this.getOptionGroupChildren(x).filter(gt=>n?.includes(gt));he.length>0&&l.push(ye(ge({},x),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...he]}))}),this.flatOptions(l)}return n}return e});label=U(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),i=e.findIndex(n=>this.isOptionValueEqualsModelValue(n));if(i!==-1){let n=e[i];return this.getOptionLabel(n)}return this.placeholder()||"p-emptylabel"});selectedOption;constructor(e,i){super(),this.zone=e,this.filterService=i,Fe(()=>{let n=this.modelValue(),o=this.visibleOptions();if(o&&W(o)){let l=this.findSelectedOptionIndex();if(l!==-1||n===void 0||typeof n=="string"&&n.length===0||this.isModelValueNotSet()||this.editable)this.selectedOption=o[l];else{let x=o.findIndex(fe=>this.isSelected(fe));x!==-1&&(this.selectedOption=o[x])}}ce(o)&&(n===void 0||this.isModelValueNotSet())&&W(this.selectedOption)&&(this.selectedOption=null),n!==void 0&&this.editable&&this.updateEditableLabel(),this.cd.markForCheck()})}isModelValueNotSet(){return this.modelValue()===null&&!this.isOptionValueEqualsModelValue(this.selectedOption)}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}onInit(){this.id=this.id||Re("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}onAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"selectedItem":this._selectedItemTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"cancelicon":this._cancelIconTemplate=e.template;break;case"onicon":this._onIconTemplate=e.template;break;case"officon":this._offIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}onAfterViewChecked(){if(this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"])),this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=P(this.overlayViewChild?.overlayViewChild?.nativeElement,"li.p-select-option-selected");e&&Ae(this.itemsWrapper,e),this.selectedOptionUpdated=!1}}flatOptions(e){return(e||[]).reduce((i,n,o)=>{i.push({optionGroup:n,group:!0,index:o});let l=this.getOptionGroupChildren(n);return l&&l.forEach(x=>i.push(x)),i},[])}autoUpdateModel(){this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()&&(this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex()),this.onOptionSelect(null,this.visibleOptions()[this.focusedOptionIndex()],!1))}onOptionSelect(e,i,n=!0,o=!1){if(!this.isOptionDisabled(i)){if(!this.isSelected(i)){let l=this.getOptionValue(i);this.updateModel(l,e),this.focusedOptionIndex.set(this.findSelectedOptionIndex()),o===!1&&this.onChange.emit({originalEvent:e,value:l})}n&&this.hide(!0)}}onOptionMouseEnter(e,i){this.focusOnHover&&this.changeFocusedOptionIndex(e,i)}updateModel(e,i){this.value=e,this.onModelChange(e),this.writeModelValue(e),this.selectedOptionUpdated=!0}allowModelChange(){return!!this.modelValue()&&!this.placeholder()&&(this.modelValue()===void 0||this.modelValue()===null)&&!this.editable&&this.options&&this.options.length}isSelected(e){return this.isOptionValueEqualsModelValue(e)}isOptionValueEqualsModelValue(e){return e!=null&&!this.isOptionGroup(e)&&Qe(this.modelValue(),this.getOptionValue(e),this.equalityKey())}onAfterViewInit(){this.editable&&this.updateEditableLabel(),this.updatePlaceHolderForFloatingLabel()}updatePlaceHolderForFloatingLabel(){let e=this.el.nativeElement.parentElement,i=e?.classList.contains("p-float-label");if(e&&i&&!this.selectedOption){let n=e.querySelector("label");n&&this._placeholder.set(n.textContent)}}updateEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value=this.getOptionLabel(this.selectedOption)||this.modelValue()||"")}clearEditableLabel(){this.editableInputViewChild&&(this.editableInputViewChild.nativeElement.value="")}getOptionIndex(e,i){return this.virtualScrollerDisabled?e:i&&i.getItemOptions(e).index}getOptionLabel(e){return this.optionLabel!==void 0&&this.optionLabel!==null?Q(e,this.optionLabel):e&&e.label!==void 0?e.label:e}getOptionValue(e){return this.optionValue&&this.optionValue!==null?Q(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getPTItemOptions(e,i,n,o){return this.ptm(o,{context:{option:e,index:n,selected:this.isSelected(e),focused:this.focusedOptionIndex()===this.getOptionIndex(n,i),disabled:this.isOptionDisabled(e)}})}isSelectedOptionEmpty(){return ce(this.selectedOption)}isOptionDisabled(e){return this.optionDisabled?Q(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}getOptionGroupLabel(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null?Q(e,this.optionGroupLabel):e&&e.label!==void 0?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren!==void 0&&this.optionGroupChildren!==null?Q(e,this.optionGroupChildren):e.items}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(i=>this.isOptionGroup(i)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}resetFilter(){this._filterValue.set(null),this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}onContainerClick(e){this.$disabled()||this.readonly||this.loading||e.target.tagName==="INPUT"||e.target.getAttribute("data-pc-section")==="clearicon"||e.target.closest('[data-pc-section="clearicon"]')||((!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target))&&(this.overlayVisible?this.hide(!0):this.show(!0)),this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.clicked.set(!0),this.cd.detectChanges())}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}onEditableInput(e){let i=e.target.value;this.searchValue="",!this.searchOptions(e,i)&&this.focusedOptionIndex.set(-1),this.onModelChange(i),this.updateModel(i||null,e),setTimeout(()=>{this.onChange.emit({originalEvent:e,value:i})},1),!this.overlayVisible&&W(i)&&this.show()}show(e){this.overlayVisible=!0,this.focusedOptionIndex.set(this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.editable?-1:this.findSelectedOptionIndex()),e&&B(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=P(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-select-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let i=this.modelValue()?this.focusedOptionIndex():-1;i!==-1&&this.scroller?.scrollToIndex(i)}else{let i=P(this.itemsWrapper,".p-select-option.p-select-option-selected");i&&i.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&!this.editable&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.clicked.set(!1),this.searchValue="",this.overlayOptions?.mode==="modal"&&Ue(),this.filter&&this.resetFilterOnHide&&this.resetFilter(),e&&(this.focusInputViewChild&&B(this.focusInputViewChild?.nativeElement),this.editable&&this.editableInputViewChild&&B(this.editableInputViewChild?.nativeElement)),this.cd.markForCheck()}onInputFocus(e){if(this.$disabled())return;this.focused=!0;let i=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(i),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),!this.preventModelTouched&&!this.overlayVisible&&this.onModelTouched(),this.preventModelTouched=!1}onKeyDown(e,i=!1){if(!(this.$disabled()||this.readonly||this.loading)){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,this.editable);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,this.editable);break;case"Delete":this.onDeleteKey(e);break;case"Home":this.onHomeKey(e,this.editable);break;case"End":this.onEndKey(e,this.editable);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Space":this.onSpaceKey(e,i);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e,this.editable);break;case"ShiftLeft":case"ShiftRight":break;default:!e.metaKey&&Ke(e.key)&&(!this.overlayVisible&&this.show(),!this.editable&&this.searchOptions(e,e.key));break}this.clicked.set(!1)}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,!0);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onArrowDownKey(e){if(!this.overlayVisible)this.show(),this.editable&&this.changeFocusedOptionIndex(e,this.findSelectedOptionIndex());else{let i=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findFirstOptionIndex():this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,i)}e.preventDefault(),e.stopPropagation()}changeFocusedOptionIndex(e,i){if(this.focusedOptionIndex()!==i&&(this.focusedOptionIndex.set(i),this.scrollInView(),this.selectOnFocus)){let n=this.visibleOptions()[i];this.onOptionSelect(e,n,!1)}}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let n=P(this.itemsViewChild.nativeElement,`li[id="${i}"]`);n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}hasSelectedOption(){return this.modelValue()!==void 0}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}equalityKey(){return this.optionValue?void 0:this.dataKey}findFirstFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextOptionIndex(e){let i=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(n=>this.isValidOption(n)):-1;return i>-1?i+e+1:e}findPrevOptionIndex(e){let i=e>0?de(this.visibleOptions().slice(0,e),n=>this.isValidOption(n)):-1;return i>-1?i:e}findLastOptionIndex(){return de(this.visibleOptions(),e=>this.isValidOption(e))}findLastFocusedOptionIndex(){let e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}isValidOption(e){return e!=null&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionGroup(e){return this.optionGroupLabel!==void 0&&this.optionGroupLabel!==null&&e.optionGroup!==void 0&&e.optionGroup!==null&&e.group}onArrowUpKey(e,i=!1){if(e.altKey&&!i){if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide()}else{let n=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.clicked()?this.findLastOptionIndex():this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show()}e.preventDefault(),e.stopPropagation()}onArrowLeftKey(e,i=!1){i&&this.focusedOptionIndex.set(-1)}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onHomeKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;e.shiftKey?n.setSelectionRange(0,n.value.length):(n.setSelectionRange(0,0),this.focusedOptionIndex.set(-1))}else this.changeFocusedOptionIndex(e,this.findFirstOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onEndKey(e,i=!1){if(i&&e.currentTarget&&e.currentTarget.setSelectionRange){let n=e.currentTarget;if(e.shiftKey)n.setSelectionRange(0,n.value.length);else{let o=n.value.length;n.setSelectionRange(o,o),this.focusedOptionIndex.set(-1)}}else this.changeFocusedOptionIndex(e,this.findLastOptionIndex()),!this.overlayVisible&&this.show();e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onSpaceKey(e,i=!1){!this.editable&&!i&&this.onEnterKey(e)}onEnterKey(e,i=!1){if(!this.overlayVisible)this.focusedOptionIndex.set(-1),this.onArrowDownKey(e);else{if(this.focusedOptionIndex()!==-1){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}!i&&this.hide()}e.preventDefault()}onEscapeKey(e){this.overlayVisible&&(this.hide(!0),e.preventDefault(),e.stopPropagation())}onTabKey(e,i=!1){if(!i)if(this.overlayVisible&&this.hasFocusableElements())B(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault();else{if(this.focusedOptionIndex()!==-1&&this.overlayVisible){let n=this.visibleOptions()[this.focusedOptionIndex()];this.onOptionSelect(e,n)}this.overlayVisible&&this.hide(this.filter)}e.stopPropagation()}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?De(this.overlayViewChild?.el?.nativeElement,":not(.p-hidden-focusable)"):this.focusInputViewChild?.nativeElement;B(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInputViewChild?.nativeElement?ze(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;B(i)}hasFocusableElements(){return Be(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}onBackspaceKey(e,i=!1){i&&!this.overlayVisible&&this.show()}searchFields(){return this.filterBy?.split(",")||this.filterFields||[this.optionLabel]}searchOptions(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return n=this.visibleOptions().findIndex(l=>this.isOptionMatched(l)),n!==-1&&(o=!0),n===-1&&this.focusedOptionIndex()===-1&&(n=this.findFirstFocusedOptionIndex()),n!==-1&&setTimeout(()=>{this.changeFocusedOptionIndex(e,n)}),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue?.toLocaleLowerCase(this.filterLocale))}onFilterInputChange(e){let i=e.target.value;this._filterValue.set(i),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller?.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild?.alignOverlay()}),this.cd.markForCheck()}applyFocus(){this.editable?P(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():B(this.focusInputViewChild?.nativeElement)}focus(){this.applyFocus()}clear(e){this.updateModel(null,e),this.clearEditableLabel(),this.onModelTouched(),this.onChange.emit({originalEvent:e,value:this.value}),this.onClear.emit(e),this.resetFilter()}writeControlValue(e,i){this.filter&&this.resetFilter(),this.value=e,this.allowModelChange()&&this.onModelChange(e),i(this.value),this.updateEditableLabel(),this.cd.markForCheck()}static \u0275fac=function(i){return new(i||t)(X(ve),X(Ne))};static \u0275cmp=N({type:t,selectors:[["p-select"]],contentQueries:function(i,n,o){if(i&1&&(b(o,Ot,4),b(o,Ct,4),b(o,wt,4),b(o,Vt,4),b(o,kt,4),b(o,ct,4),b(o,Et,4),b(o,Ft,4),b(o,Mt,4),b(o,Lt,4),b(o,Bt,4),b(o,Dt,4),b(o,zt,4),b(o,At,4),b(o,Pt,4),b(o,Qt,4),b(o,Ge,4)),i&2){let l;d(l=u())&&(n.itemTemplate=l.first),d(l=u())&&(n.groupTemplate=l.first),d(l=u())&&(n.loaderTemplate=l.first),d(l=u())&&(n.selectedItemTemplate=l.first),d(l=u())&&(n.headerTemplate=l.first),d(l=u())&&(n.filterTemplate=l.first),d(l=u())&&(n.footerTemplate=l.first),d(l=u())&&(n.emptyFilterTemplate=l.first),d(l=u())&&(n.emptyTemplate=l.first),d(l=u())&&(n.dropdownIconTemplate=l.first),d(l=u())&&(n.loadingIconTemplate=l.first),d(l=u())&&(n.clearIconTemplate=l.first),d(l=u())&&(n.filterIconTemplate=l.first),d(l=u())&&(n.onIconTemplate=l.first),d(l=u())&&(n.offIconTemplate=l.first),d(l=u())&&(n.cancelIconTemplate=l.first),d(l=u())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(k(ct,5),k(Kt,5),k(Rt,5),k(Nt,5),k(Gt,5),k(Ht,5),k(qt,5),k($t,5)),i&2){let o;d(o=u())&&(n.filterViewChild=o.first),d(o=u())&&(n.focusInputViewChild=o.first),d(o=u())&&(n.editableInputViewChild=o.first),d(o=u())&&(n.itemsViewChild=o.first),d(o=u())&&(n.scroller=o.first),d(o=u())&&(n.overlayViewChild=o.first),d(o=u())&&(n.firstHiddenFocusableElementOnOverlay=o.first),d(o=u())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:3,hostBindings:function(i,n){i&1&&I("click",function(l){return n.onContainerClick(l)}),i&2&&(v("id",n.id),f(n.cn(n.cx("root"),n.styleClass)))},inputs:{id:"id",scrollHeight:"scrollHeight",filter:[2,"filter","filter",y],panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:[2,"readonly","readonly",y],editable:[2,"editable","editable",y],tabindex:[2,"tabindex","tabindex",j],placeholder:"placeholder",loadingIcon:"loadingIcon",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",dataKey:"dataKey",filterBy:"filterBy",filterFields:"filterFields",autofocus:[2,"autofocus","autofocus",y],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",y],checkmark:[2,"checkmark","checkmark",y],dropdownIcon:"dropdownIcon",loading:[2,"loading","loading",y],optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",group:[2,"group","group",y],showClear:[2,"showClear","showClear",y],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:[2,"lazy","lazy",y],virtualScroll:[2,"virtualScroll","virtualScroll",y],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",j],virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",focusOnHover:[2,"focusOnHover","focusOnHover",y],selectOnFocus:[2,"selectOnFocus","selectOnFocus",y],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",y],autofocusFilter:[2,"autofocusFilter","autofocusFilter",y],filterValue:"filterValue",options:"options",appendTo:[1,"appendTo"]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[oe([en,Z,{provide:mt,useExisting:t},{provide:ue,useExisting:t}]),Se([K]),G],decls:11,vars:16,consts:[["elseBlock",""],["overlay",""],["content",""],["focusInput",""],["defaultPlaceholder",""],["editableInput",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["filter",""],["scroller",""],["loader",""],["items",""],["emptyFilter",""],["empty",""],["role","combobox",3,"class","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus","focus","blur","keydown",4,"ngIf"],["type","text",3,"class","pBind","pAutoFocus","input","keydown","focus","blur",4,"ngIf"],[4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",3,"pBind"],[4,"ngIf","ngIfElse"],["hostName","select",3,"visibleChange","onAnimationStart","onHide","hostAttrSelector","pt","visible","options","target","appendTo"],["role","combobox",3,"focus","blur","keydown","pBind","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["type","text",3,"input","keydown","focus","blur","pBind","pAutoFocus"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"class","pBind",4,"ngIf"],["aria-hidden","true",3,"pBind"],[3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],[3,"ngStyle","pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],["hostName","select",3,"items","style","itemSize","autoSize","lazy","options","pt","onLazyLoad",4,"ngIf"],[3,"pt"],["pInputText","","type","text","role","searchbox","autocomplete","off",3,"input","keydown","blur","pSize","value","variant","pt"],["data-p-icon","search",3,"pBind",4,"ngIf"],[3,"pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","select",3,"onLazyLoad","items","itemSize","autoSize","lazy","options","pt"],["role","listbox",3,"pBind"],["ngFor","",3,"ngForOf"],["role","option",3,"class","ngStyle","pBind",4,"ngIf"],["role","option",3,"ngStyle","pBind"],[3,"onClick","onMouseEnter","id","option","checkmark","selected","label","disabled","template","focused","ariaPosInset","ariaSetSize","index","scrollerOptions"]],template:function(i,n){if(i&1){let o=V();c(0,Jt,6,23,"span",16)(1,Xt,2,19,"input",17)(2,oi,3,2,"ng-container",18),_(3,"div",19),c(4,ci,3,2,"ng-container",20)(5,gi,2,2,"ng-template",null,0,L),m(),_(7,"p-overlay",21,1),ke("visibleChange",function(x){return h(o),Ve(n.overlayVisible,x)||(n.overlayVisible=x),g(x)}),I("onAnimationStart",function(x){return h(o),g(n.onOverlayAnimationStart(x))})("onHide",function(){return h(o),g(n.hide())}),c(9,Yi,13,22,"ng-template",null,2,L),m()}if(i&2){let o=A(6);a("ngIf",!n.editable),p(),a("ngIf",n.editable),p(),a("ngIf",n.isVisibleClearIcon),p(),f(n.cx("dropdown")),a("pBind",n.ptm("dropdown")),v("aria-expanded",n.overlayVisible??!1)("data-pc-section","trigger"),p(),a("ngIf",n.loading)("ngIfElse",o),p(3),a("hostAttrSelector",n.$attrSelector)("pt",n.ptm("pcOverlay")),we("visible",n.overlayVisible),a("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())}},dependencies:[pe,Le,ae,re,se,tn,lt,je,We,it,et,tt,ot,Ze,nt,st,q,_e,K],encapsulation:2,changeDetection:0})}return t})(),Qn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Te({type:t});static \u0275inj=Ie({imports:[ft,q,q]})}return t})();var ht=class{constructor(){this.top=F(0)}initTopPosition(){let s=document.querySelector("body");this.top.set(s.getBoundingClientRect()?.top*-1)}adjustOverlayPosition(){let s=document.querySelector(".p-overlay.p-component");if(!s)return;let e=s.getBoundingClientRect(),i=this.top()+e.top;s.style.setProperty("top",`${i}px`,"important"),getComputedStyle(s).position!=="fixed"&&s.style.setProperty("position","fixed","important"),this.startOverlayObserver()}startOverlayObserver(){let s=document.querySelector(".p-overlay.p-component");s&&(this.stopOverlayObserver(),this.overlayObserver=new MutationObserver(e=>{let i=e[0];if(i&&i.type==="attributes"&&i.attributeName==="style"){let n=i.target,o=getComputedStyle(n).display,l=getComputedStyle(n).visibility;(o==="none"||l==="hidden")&&(n.style.setProperty("display","block","important"),n.style.setProperty("visibility","visible","important"),n.style.setProperty("position","fixed","important"))}}),this.overlayObserver.observe(s,{attributes:!0,attributeFilter:["style"]}))}stopOverlayObserver(){this.overlayObserver&&(this.overlayObserver.disconnect(),this.overlayObserver=void 0)}};export{ft as a,Qn as b,ht as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as le,b as se}from"./chunk-VVTBM3Z5.js";import"./chunk-QQF5ZMGS.js";import{a as ce}from"./chunk-Y3O22N4P.js";import{c as pe,d as M,e as V}from"./chunk-6NS3D6KQ.js";import{a as ae}from"./chunk-R3WIWDSP.js";import"./chunk-LUJ3SHSP.js";import"./chunk-IVKFEOCB.js";import{a as te,b as ie,c as ne,d as oe}from"./chunk-TZTW72NT.js";import"./chunk-VP3XO25X.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import{e as $}from"./chunk-C2LAQOUW.js";import{a as re}from"./chunk-UE2QO2Y4.js";import"./chunk-MT3CWRVG.js";import"./chunk-W33M7S2S.js";import"./chunk-MTVUPPAN.js";import"./chunk-2NRHX6CZ.js";import"./chunk-DLHIDOS3.js";import{a as ee}from"./chunk-7IOQ6VVF.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"./chunk-G6O6VFLS.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{a as Y,b as Z}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as X}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import"./chunk-ZSUWHVKX.js";import{h as q}from"./chunk-QMQCIH3X.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import{a as D}from"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import{c as G}from"./chunk-UPRDDI4K.js";import{A as Q,c as J,h as K,m as j,o as z}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as k,e as x}from"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as H,w as U,z as W}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{G as E,Hb as L,Ia as b,Nc as g,Rc as P,Sc as f,Tc as _,Uc as B,Z as O,_c as A,ac as T,cc as I,ea as R,hc as u,ic as a,id as S,jc as p,jd as y,kc as v,ob as h,ra as c,rc as N,wc as C,ya as l,yc as w,za as s}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function he(m,d){if(m&1){let F=N();a(0,"button",16),C("click",function(){l(F);let n=w(),e=w();return s(e.onUpdateItems(n))}),v(1,"i",17),g(2," Update "),p()}}function de(m,d){if(m&1&&(a(0,"div"),T(1,he,3,0,"button",15),p()),m&2){let F=w();h(),I(F.productService.hasSelectionVariant(d)?1:-1)}}var qe=(()=>{let d=class d{constructor(){this.http=c(x),this.toastr=c(k),this.dialog=c(X),this.productService=c(ee),this.authService=c(q),this.placeholderService=c(ne),this.infinitePagination=c(M),this.updateResHandling=c(V),this.mainPanelService=c(Y),this.channelOptions=b([]),this.searchFilter=b({PageNumber:1,RowCount:50,filterModel:1,text:"",ListChannelID:[],SearchType:te.NameOnly,NumberFilterComparator:ie.Contains}),this.loaderAPI="PriceLoader/LoadMultiple",this.getDataAPI="Price/GetMultipleChannelComparison",this.rowCountAPI="Inventory/GetMultipleChannelComparisonRowCount",this.data$=this.infinitePagination.data$.pipe(O()),this.searchPlaceholder=b("Search ...")}ngOnInit(){this.initPageLoader()}initPageLoader(){this.infinitePagination.fetchDataEndpoint=this.getDataAPI,this.infinitePagination.fethRowCountEndpoint=this.rowCountAPI,this.loader$=this.http.post(`/api/${this.loaderAPI}`).pipe(R(t=>{t.Filter={PageNumber:t.Filter.PageNumber,RowCount:t.Filter.RowCount,filterModel:1,SearchType:t.Filter.SearchType,NumberFilterComparator:t.Filter.NumberFilterComparator},this.initSearchPlaceholder(),this.searchFilter.set(t.Filter),this.mainPanelService.openModalFilter()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter().SearchType,this.searchFilter().NumberFilterComparator))}onShowDifferencePrice(t){let n=1;t&&(n=3),this.searchFilter.update(e=>(e.filterModel=n,e)),this.infinitePagination.reloadPagination(this.searchFilter())}onSearch(t){this.searchFilter.update(n=>(n.text=t,n)),this.infinitePagination.reloadPagination(this.searchFilter()),this.filterSelectedChannels(),this.initSearchPlaceholder()}onUpdateItems(t){let n=JSON.parse(JSON.stringify(this.channelOptions())),e=this.productService.selectedVariantProduct(t);this.dialog.open(le,{data:{title:"Updating Price",selectedItems:e,channels:n},width:"400px"}).afterClosed().pipe(E(r=>G.IsNotEmpty(r))).subscribe(r=>{this.channelOptions.set(r),this.updatePrice(t)})}filterSelectedChannels(){let n=this.authService.getChannels().filter(e=>this.searchFilter().ListChannelID?.indexOf(e.ID)!==-1);this.channelOptions.set(n)}updatePrice(t){let n=this.productService.selectedVariantProduct(t);if(n.length>0){let e=n.map(i=>({ID:i.ID,Code:i.Code,Price:i.UnitPrice})),o={ListChannelID:this.getSelectedChannels().map(i=>i.ID),ListPrice:e};this.http.post(D.UpdateChannelPrice,o).subscribe(i=>{this.infinitePagination.reloadPagination(this.searchFilter()),this.handlingUpdatePrice(i),this.resetSelectedChannels()})}}updatePriceByVariant(t){let n={ID:t.ChannelID,ChannelItemID:t.ChannelItemID,ChannelVariantID:t.ChannelVariationID,Price:t.Price-0,VariantID:t.ID};this.http.post(D.UpdatePriceById,n).subscribe(e=>{this.infinitePagination.reloadPagination(this.searchFilter()),this.handlingUpdatePrice(e)})}handlingUpdatePrice(t){let n=t?.Response?.success_list,e=t?.Response?.failure_list,r=this.getSelectedChannels();n?.length>0||e?.length>0?this.updateResHandling.responseHandling(n,e,"Price",r):this.toastr.error(t[0]?.Exception,"Error")}openExportDialog(){this.dialog.open(ae,{data:{title:"Export Multi Channel Comparison",pageNumber:this.searchFilter().PageNumber,rowCount:this.searchFilter().RowCount,filterExport:this.searchFilter(),getRowCountApi:this.rowCountAPI,exportApi:"price/GetExportMultipleChannelComparison"}}).afterClosed().subscribe()}resetSelectedChannels(){this.channelOptions.update(t=>(t.forEach(n=>{n.selected=!1}),t))}getSelectedChannels(){return this.channelOptions().filter(t=>t.selected)}};d.\u0275fac=function(n){return new(n||d)},d.\u0275cmp=L({type:d,selectors:[["app-price-pos-channel"]],features:[A([M,W,ce,V])],decls:34,vars:28,consts:[["headerTitle","Price Comparison","textButton","Search",3,"onSubmit","searchBoxPlaceHolder"],[1,"d-flex"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"mb-5"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"fw-bold"],["type","number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["productToggleTitle","FILTER DIFFERENT PRICE","table","price",3,"onToggle","onSubmit","showProductToggle","data","channel","hiddenIPOSInventory"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded"],["type","button","data-toggle","modal",1,"btn","btn-success","shadow","rounded",3,"click"],[1,"fas","fa-chevron-circle-up"]],template:function(n,e){if(n&1){let r=N();B(0),S(1,"async"),a(2,"mainpanel",0),C("onSubmit",function(i){return l(r),s(e.onSearch(i))}),a(3,"actions")(4,"div",1),T(5,de,2,1,"div"),S(6,"async"),a(7,"button",2),C("click",function(){return l(r),s(e.openExportDialog())}),v(8,"i",3),a(9,"span"),g(10,"Export"),p()()()(),a(11,"filters")(12,"div",4)(13,"label",5),g(14,"Channel"),p(),a(15,"app-channel-options-v2",6),_("ngModelChange",function(i){return l(r),f(e.searchFilter().ListChannelID,i)||(e.searchFilter().ListChannelID=i),s(i)}),p()(),a(16,"div",4)(17,"filter-query-type",7),_("numberFilterComparatorChange",function(i){return l(r),f(e.searchFilter().NumberFilterComparator,i)||(e.searchFilter().NumberFilterComparator=i),s(i)})("searchTypeChange",function(i){return l(r),f(e.searchFilter().SearchType,i)||(e.searchFilter().SearchType=i),s(i)}),p()(),a(18,"div",4)(19,"label",8),g(20,"Page Number"),p(),a(21,"input",9),_("ngModelChange",function(i){return l(r),f(e.searchFilter().PageNumber,i)||(e.searchFilter().PageNumber=i),s(i)}),p()(),a(22,"div")(23,"label",8),g(24,"Page Size"),p(),a(25,"input",9),_("ngModelChange",function(i){return l(r),f(e.searchFilter().RowCount,i)||(e.searchFilter().RowCount=i),s(i)}),p()()(),a(26,"content")(27,"div",10)(28,"div",11)(29,"div",12)(30,"app-table",13),S(31,"async"),C("onToggle",function(i){return l(r),s(e.onShowDifferencePrice(i))})("onSubmit",function(i){return l(r),s(e.updatePriceByVariant(i))}),p(),a(32,"infinite-paginator",14),S(33,"async"),C("onNextPage",function(){return l(r),s(e.infinitePagination.onNextPage(e.searchFilter()))})("onLastPage",function(){return l(r),s(e.infinitePagination.onLastPage(e.searchFilter()))})("onGetRowCount",function(){return l(r),s(e.infinitePagination.getRowCount(e.searchFilter()))}),p()()()()()()}if(n&2){let r,o=y(1,20,e.loader$);h(2),u("searchBoxPlaceHolder",e.searchPlaceholder()),h(3),I((r=y(6,22,e.data$))?5:-1,r),h(10),u("multiple",!0),P("ngModel",e.searchFilter().ListChannelID),h(2),u("numberFilterComparatorOptions",o==null||o.Options==null?null:o.Options.SearchComparatorTypeOptions),P("numberFilterComparator",e.searchFilter().NumberFilterComparator),u("searchTypeOptions",o==null||o.Options==null?null:o.Options.SearchSKUOnlyOrSKUNameOptions),P("searchType",e.searchFilter().SearchType),h(4),P("ngModel",e.searchFilter().PageNumber),h(4),P("ngModel",e.searchFilter().RowCount),h(5),u("showProductToggle",!0)("data",y(31,24,e.data$))("channel",e.channelOptions())("hiddenIPOSInventory",!1),h(2),u("totalData",e.infinitePagination.totalData())("hideCount",e.infinitePagination.hideCount())("rowCount",y(33,26,e.infinitePagination.totalRowCount$))("pageNumber",e.infinitePagination.pageNumber())("disableNextButton",e.infinitePagination.disableNextButton())("goToLastPage",e.infinitePagination.isLastPage())}},dependencies:[H,Q,J,z,K,j,pe,Z,se,re,$,oe,U],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]});let m=d;return m})();export{qe as PricePosChannelComponent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{B as $,C as Z,E as D,H as I,J as Q,N as W,T as P,X as q,_ as K,f as b,g as T,h as w,j as U,w as B}from"./chunk-7R2D2JZ6.js";import{q as G}from"./chunk-JNRCB7N3.js";import{Ad as j,Ca as p,Cb as S,Cc as Y,Da as O,Dc as H,Ec as z,Hb as x,Jb as M,Kc as v,Nc as F,Oc as X,Ra as _,ca as a,f as m,hc as k,ic as g,jc as N,ob as A,pa as f,ra as r,rc as V,ub as L,vb as u,wc as y,ya as E,za as R}from"./chunk-OHGMB7HJ.js";import{a as d}from"./chunk-66YHNWRR.js";var l,J=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function vt(){if(l)return l;if(typeof document!="object"||!document)return l=new Set(J),l;let n=document.createElement("input");return l=new Set(J.filter(c=>(n.setAttribute("type",c),n.type===c))),l}var nt=["tooltip"],it=20;var ot=new f("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=r(p);return()=>P(n,{scrollThrottle:it})}});function rt(n){let c=r(p);return()=>P(c,{scrollThrottle:it})}var jt={provide:ot,deps:[],useFactory:rt};function at(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var lt=new f("mat-tooltip-default-options",{providedIn:"root",factory:at});var tt="tooltip-panel",et=T({passive:!0}),ht=8,dt=8,ct=24,pt=200,Gt=(()=>{class n{_elementRef=r(_);_ngZone=r(L);_platform=r(b);_ariaDescriber=r($);_focusMonitor=r(U);_dir=r(Z);_injector=r(p);_viewContainerRef=r(S);_animationsDisabled=I();_defaultOptions=r(lt,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=_t;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=D(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=D(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=w(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=w(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new m;_isDestroyed=!1;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=ht}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(a(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([e,i])=>{t.removeEventListener(e,i,et)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(e);this._detach(),this._portal=this._portal||new W(this._tooltipComponent,this._viewContainerRef);let o=this._tooltipInstance=i.attach(this._portal).instance;o._triggerElement=this._elementRef.nativeElement,o._mouseLeaveHideDelay=this._hideDelay,o.afterHidden().pipe(a(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),o.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&s._origin instanceof _)return this._overlayRef;this._detach()}let e=this._injector.get(Q).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${tt}`,o=q(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return o.positionChanges.pipe(a(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=K(this._injector,{direction:this._dir,positionStrategy:o,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(ot)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(a(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(a(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(a(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!B(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(a(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,i=this._getOrigin(),o=this._getOverlayPosition();e.withPositions([this._addOffset(d(d({},i.main),o.main)),this._addOffset(d(d({},i.fallback),o.fallback))])}_addOffset(t){let e=dt,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=i?-e:e:t.originX==="end"&&(t.offsetX=i?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"||e=="below"?i={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:o,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:o,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,i;e=="above"?i={overlayX:"center",overlayY:"bottom"}:e=="below"?i={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:o,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:o,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),u(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:i,originY:o}=t,s;if(e==="center"?this._dir&&this._dir.value==="rtl"?s=i==="end"?"left":"right":s=i==="start"?"left":"right":s=e==="bottom"&&o==="top"?"above":"below",s!==this._currentPosition){let h=this._overlayRef;if(h){let C=`${this._cssClassPrefix}-${tt}-`;h.removePanelClass(C+this._currentPosition),h.addPanelClass(C+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let e=t.targetTouches?.[0],i=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let o=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i)},this._defaultOptions?.touchLongPressShowDelay??o)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",e=>{let i=e.relatedTarget;(!i||!this._overlayRef?.overlayElement.contains(i))&&this.hide()}],["wheel",e=>this._wheelListener(e)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([e,i])=>{this._elementRef.nativeElement.addEventListener(e,i,et)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let e=this._injector.get(O).elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;e!==i&&!i.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,i=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!e.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||u({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(e){return new(e||n)};static \u0275dir=M({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,i){e&2&&v("mat-mdc-tooltip-disabled",i.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return n})(),_t=(()=>{class n{_changeDetectorRef=r(j);_elementRef=r(_);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=I();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new m;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>ct&&t.width>=pt}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,i=this._showAnimation,o=this._hideAnimation;if(e.classList.remove(t?o:i),e.classList.add(t?i:o),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(e);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=x({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(e,i){if(e&1&&Y(nt,7),e&2){let o;H(o=z())&&(i._tooltip=o.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,i){e&1&&y("mouseleave",function(s){return i._handleMouseLeave(s)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,i){if(e&1){let o=V();g(0,"div",1,0),y("animationend",function(h){return E(o),R(i._handleAnimationEnd(h))}),g(2,"div",2),F(3),N()()}e&2&&(v("mdc-tooltip--multiline",i._isMultiline),k("ngClass",i.tooltipClass),A(3),X(i.message))},dependencies:[G],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return n})();export{vt as a,jt as b,Gt as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as C}from"./chunk-
|
|
1
|
+
import{a as C}from"./chunk-FOKLBUX6.js";import{Aa as r,Hb as c,Lb as a,Pa as i,nc as s}from"./chunk-OHGMB7HJ.js";var p=["data-p-icon","chevron-right"],f=(()=>{class e extends C{static \u0275fac=(()=>{let t;return function(o){return(t||(t=i(e)))(o||e)}})();static \u0275cmp=c({type:e,selectors:[["","data-p-icon","chevron-right"]],features:[a],attrs:p,decls:1,vars:0,consts:[["d","M4.38708 13C4.28408 13.0005 4.18203 12.9804 4.08691 12.9409C3.99178 12.9014 3.9055 12.8433 3.83313 12.7701C3.68634 12.6231 3.60388 12.4238 3.60388 12.2161C3.60388 12.0084 3.68634 11.8091 3.83313 11.6622L8.50507 6.99022L3.83313 2.31827C3.69467 2.16968 3.61928 1.97313 3.62287 1.77005C3.62645 1.56698 3.70872 1.37322 3.85234 1.22959C3.99596 1.08597 4.18972 1.00371 4.3928 1.00012C4.59588 0.996539 4.79242 1.07192 4.94102 1.21039L10.1669 6.43628C10.3137 6.58325 10.3962 6.78249 10.3962 6.99022C10.3962 7.19795 10.3137 7.39718 10.1669 7.54416L4.94102 12.7701C4.86865 12.8433 4.78237 12.9014 4.68724 12.9409C4.59212 12.9804 4.49007 13.0005 4.38708 13Z","fill","currentColor"]],template:function(n,o){n&1&&(r(),s(0,"path",0))},encapsulation:2})}return e})();export{f as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as c}from"./chunk-IM7YH54S.js";import{b as K}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import{a as H}from"./chunk-YNL43MLU.js";import{c as j}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as N}from"./chunk-ZSUWHVKX.js";import"./chunk-AGBJEXIM.js";import{b as k,c as z}from"./chunk-5UFP37GQ.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-MM7SAZOU.js";import{e as B,g as $}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as I,w as L}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as S,Nb as h,Nc as p,Oc as P,Uc as R,Vc as b,Wc as D,Z as f,_c as F,ac as x,ad as O,cc as C,dc as _,fc as y,gc as g,hc as s,ic as i,id as w,jc as o,jd as A,kc as M,ob as n,oc as E,pc as T,ra as v,yc as d}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var U=e=>[e];function V(e,t){e&1&&(E(0),i(1,"a",10),M(2,"i",11),p(3," Edit "),o(),T())}function q(e,t){if(e&1&&(i(0,"span",12),p(1),o()),e&2){let l=d().$implicit;n(),P(l.Value)}}function G(e,t){if(e&1&&x(0,q,2,1,"span",12),e&2){let l=t.$implicit;d();let r=D(0);C(l.Key==(r.Form==null?null:r.Form.AuthorizationMode)?0:-1)}}var se=(()=>{let t=class t{constructor(){this.setupService=v(c),this.setupData$=this.setupService.getConfig().pipe(f(1)),this.userEditRole=N.UserEdit}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=S({type:t,selectors:[["app-setup-info"]],features:[F([c])],decls:19,vars:8,consts:[["headerTitle","Setup",3,"hideSearchBox","hideSearchDropdown"],[4,"ngxPermissionsOnly"],[1,"container-fluid","py-5"],[1,"row","mt-4"],[1,"col-12"],[1,"card"],[1,"card-body","mt-8"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Select where Authentication and Roles are managed, Legacy (from POS) or Modern (from omni.dealpos.app)",1,"info-label-group"],["role","button","routerLink","/menu/users/setup/form",1,"btn","btn-outline-secondary"],[1,"fa","fa-edit","me-1"],["matTooltipPosition","above"]],template:function(a,u){if(a&1&&(R(0),w(1,"async"),i(2,"mainpanel",0)(3,"actions"),h(4,V,4,0,"ng-container",1),o(),i(5,"content")(6,"div",2)(7,"div",3)(8,"div",4)(9,"div",5)(10,"div",6)(11,"div",7)(12,"div",8)(13,"div",9)(14,"label"),p(15,"Authorization Mode"),o(),i(16,"div"),y(17,G,1,1,null,null,_),o()()()()()()()()()()()),a&2){let m=b(A(1,3,u.setupData$));n(2),s("hideSearchBox",!0)("hideSearchDropdown",!0),n(2),s("ngxPermissionsOnly",O(6,U,u.userEditRole)),n(13),g(m==null||m.Options==null?null:m.Options.AuthorizationMode)}},dependencies:[I,K,H,j,$,B,z,k,L],encapsulation:2});let e=t;return e})();export{se as SetupInfoComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as O,b as D,c as L}from"./chunk-2K5AP6IZ.js";import{a as b}from"./chunk-XLQGQESJ.js";import"./chunk-A6QXXKPR.js";import{b as P}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-3SCX7IMW.js";import"./chunk-6C4UBIZK.js";import"./chunk-SPLGZRGH.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{c as u}from"./chunk-UPRDDI4K.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{x as v}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as y,Nc as w,Rc as h,Sc as f,Tc as c,ac as C,cc as T,hc as p,ic as n,jc as l,kc as S,ob as d,ra as s,wc as _,yc as F}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function E(o,i){if(o&1&&(n(0,"div",6)(1,"div",7),S(2,"app-table-report",8),l()()),o&2){let m=F();d(2),p("result",m.result)("header",m.header)("from",m.filter.From)("to",m.filter.To)("type",0)}}var I=(()=>{let i=class i{constructor(){this.http=s(D),this.datePipe=s(v),this.filter=new O,this.pageTitle="New Order";let e=new Date;this.maxDate=e,this.minDate=u.addDays(e,6),this.filter.From=e,this.filter.To=e,this.updatePageTitle()}ngOnInit(){this.initPageLoader()}updatePageTitle(){let e=u.formatTitleFromDate(this.filter.From,this.filter.To),a=this.datePipe.transform(this.filter.From,e),t=this.datePipe.transform(this.filter.To,"dd MMM yyyy");this.pageTitle=`New Order (${e==null?"":a+"-"} ${t})`}initPageLoader(){this.http.GetLoader().subscribe(e=>{this.filter=e,this.getChannelLogs()})}getChannelLogs(){this.updatePageTitle(),this.http.GetSyncOrder(this.filter).then(e=>{this.header=e.Header,this.result=e.Body})}onFilter(){this.getChannelLogs()}};i.\u0275fac=function(a){return new(a||i)},i.\u0275cmp=y({type:i,selectors:[["app-sales-order"]],decls:12,vars:5,consts:[[3,"onSubmit","headerTitle","hideSearchBox"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"container-fluid"],[1,"row","mt-4"],[1,"col-md-12"],[3,"result","header","from","to","type"]],template:function(a,t){a&1&&(n(0,"mainpanel",0),_("onSubmit",function(){return t.getChannelLogs()}),n(1,"filters")(2,"div")(3,"label",1),w(4,"From/To"),l(),n(5,"div",2)(6,"datepicker",3),c("dateChange",function(r){return f(t.filter.From,r)||(t.filter.From=r),r}),l()(),n(7,"div")(8,"datepicker",4),c("dateChange",function(r){return f(t.filter.To,r)||(t.filter.To=r),r}),l()()()(),n(9,"content")(10,"div",5),C(11,E,3,5,"div",6),l()()()),a&2&&(p("headerTitle",t.pageTitle)("hideSearchBox",!0),d(6),h("date",t.filter.From),d(2),h("date",t.filter.To),d(3),T(t.result?11:-1))},dependencies:[P,b,L],encapsulation:2});let o=i;return o})();export{I as SalesOrderComponent};
|