dealpos 25.45.2 → 25.46.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/chunk-2BGWWBHC.js +3 -0
- package/browser/{chunk-KL5VH4OU.js → chunk-2G2N3QIY.js} +1 -1
- package/browser/{chunk-IAFZ6YAO.js → chunk-2P6YEJWK.js} +1 -1
- package/browser/{chunk-IR75FMI5.js → chunk-2PFGIE43.js} +1 -1
- package/browser/{chunk-O4SFEWMN.js → chunk-2RA23GAL.js} +1 -1
- package/browser/{chunk-TPHEWWHE.js → chunk-2S4MUH4L.js} +3 -3
- package/browser/chunk-2T2LYQDD.js +22 -0
- package/browser/chunk-2T52WAWX.js +380 -0
- package/browser/{chunk-PIYVELLT.js → chunk-2UJUXPQL.js} +1 -1
- package/browser/{chunk-KLZBTT2P.js → chunk-3F4KI5PR.js} +1 -1
- package/browser/chunk-3G2IUR3X.js +82 -0
- package/browser/{chunk-MXGNASOC.js → chunk-3ZFDZRWQ.js} +1 -1
- package/browser/{chunk-SYMXIBEB.js → chunk-42IETN73.js} +1 -1
- package/browser/{chunk-7EVERJPZ.js → chunk-44MS566M.js} +1 -1
- package/browser/{chunk-JGWQC4DI.js → chunk-45DQRELI.js} +1 -1
- package/browser/{chunk-FR4CH42S.js → chunk-45LBXHFM.js} +1 -1
- package/browser/{chunk-PLVOH67J.js → chunk-47TATTXM.js} +1 -1
- package/browser/{chunk-A4SCCZAY.js → chunk-4BMVHD44.js} +1 -1
- package/browser/{chunk-DJNB7COU.js → chunk-4BPD7IPB.js} +1 -1
- package/browser/{chunk-QCCKEP2R.js → chunk-4CLAEU7U.js} +1 -1
- package/browser/chunk-4GH7NXPQ.js +315 -0
- package/browser/{chunk-NJB3X4XL.js → chunk-4WDKKRLY.js} +1 -1
- package/browser/{chunk-FV3VHB7N.js → chunk-52X5HGTB.js} +1 -1
- package/browser/{chunk-U3WVC6SN.js → chunk-54PTN6TM.js} +1 -1
- package/browser/{chunk-EAXUIPR5.js → chunk-5A3WAD32.js} +1 -1
- package/browser/chunk-5A4BI6R4.js +1 -0
- package/browser/{chunk-TS6CZC3J.js → chunk-5ACAEXN7.js} +1 -1
- package/browser/{chunk-J3OQGBIN.js → chunk-5JDNG4HM.js} +1 -1
- package/browser/{chunk-XIXREDEB.js → chunk-5KVP2F7F.js} +1 -1
- package/browser/chunk-5O5D7WMM.js +1 -0
- package/browser/{chunk-BQAKWHPC.js → chunk-5SJZZU5V.js} +1 -1
- package/browser/{chunk-PQ65IMRY.js → chunk-5V62CV7A.js} +1 -1
- package/browser/{chunk-B6EKSPI2.js → chunk-5WD2XGU7.js} +1 -1
- package/browser/chunk-5X6HJLPO.js +1 -0
- package/browser/{chunk-5I74KDE7.js → chunk-5YVJIGMT.js} +1 -1
- package/browser/chunk-5ZFCEP2C.css +1 -0
- package/browser/{chunk-L3JI6OZ3.js → chunk-67JWJEWL.js} +1 -1
- package/browser/{chunk-UYXD7WPN.js → chunk-6AY5BHS7.js} +1 -1
- package/browser/{chunk-JGYO4OTZ.js → chunk-6CM3LOP5.js} +1 -1
- package/browser/{chunk-DELGLVJJ.js → chunk-6JM2R43J.js} +1 -1
- package/browser/chunk-6KAJXZU4.js +152 -0
- package/browser/{chunk-NERV3W42.js → chunk-6KD2XLEU.js} +1 -1
- package/browser/{chunk-FAGD2TBB.js → chunk-6PPAAIAS.js} +1 -1
- package/browser/{chunk-ELTC3POX.js → chunk-6SLXFBWF.js} +1 -1
- package/browser/chunk-6VWCIQNT.js +1 -0
- package/browser/{chunk-P2FSLJ4X.js → chunk-7EN4VWQC.js} +1 -1
- package/browser/{chunk-5DXDXIDO.js → chunk-7WAZVWJ7.js} +1 -1
- package/browser/chunk-7YBH2SXZ.js +151 -0
- package/browser/{chunk-S4ZRXSPZ.js → chunk-AD5QTGBG.js} +1 -1
- package/browser/chunk-ADRSDODY.js +1 -0
- package/browser/{chunk-7FUWLNHK.js → chunk-AL37NTTS.js} +1 -1
- package/browser/{chunk-B5ORO5G4.js → chunk-AM63STD6.js} +1 -1
- package/browser/{chunk-WKB7BKHN.js → chunk-ANWIC3AL.js} +1 -1
- package/browser/{chunk-LDDG4GE7.js → chunk-ARGOJ7DE.js} +1 -1
- package/browser/{chunk-QHWRBSOD.js → chunk-B2ZKTHHK.js} +1 -1
- package/browser/{chunk-KNQEOPID.js → chunk-B6RBXYBH.js} +1 -1
- package/browser/{chunk-RCC5SUNH.js → chunk-B7BEECTQ.js} +1 -1
- package/browser/{chunk-NM3RF6OH.js → chunk-BCNA556P.js} +1 -1
- package/browser/{chunk-I4WJ5CEN.js → chunk-BG4XRSKY.js} +1 -1
- package/browser/chunk-BOKRBOOE.js +334 -0
- package/browser/{chunk-PCAFUCUK.js → chunk-BQ7W6HVM.js} +1 -1
- package/browser/{chunk-EIH377TR.js → chunk-BQZPNTN2.js} +1 -1
- package/browser/chunk-BWBWSNUR.js +1095 -0
- package/browser/chunk-BWL4WXAD.js +1 -0
- package/browser/{chunk-N7C7P5QN.js → chunk-BZ2MTKI3.js} +1 -1
- package/browser/{chunk-LJMHI6I5.js → chunk-CDXAKDVU.js} +1 -1
- package/browser/{chunk-HYXSN2J6.js → chunk-CH2CJQUF.js} +1 -1
- package/browser/{chunk-HPPKFGND.js → chunk-CKUZYWD3.js} +1 -1
- package/browser/{chunk-EPINEYFX.js → chunk-CRXFERRX.js} +1 -1
- package/browser/{chunk-YXNBLVK4.js → chunk-CSSCB5H5.js} +1 -1
- package/browser/chunk-D4VXNK25.js +5 -0
- package/browser/chunk-D5IRUIA5.js +40 -0
- package/browser/{chunk-YMVBGQ2W.js → chunk-D7PYJVQX.js} +1 -1
- package/browser/{chunk-3MU2GNGM.js → chunk-DBEYMOMT.js} +1 -1
- package/browser/{chunk-O4IQZBVW.js → chunk-DFHK3QA3.js} +1 -1
- package/browser/{chunk-IJXCL7KL.js → chunk-DNBHVVDZ.js} +1 -1
- package/browser/{chunk-MFDMUMA4.js → chunk-DSGMEORC.js} +1 -1
- package/browser/chunk-DWWQ27MN.js +16 -0
- package/browser/chunk-DZSOQO6Z.js +1 -0
- package/browser/chunk-E7CKHP2W.js +1 -0
- package/browser/{chunk-OJ5SEYSF.js → chunk-EEJEVJEF.js} +1 -1
- package/browser/{chunk-HK2NKWCI.js → chunk-EHLQZKY6.js} +1 -1
- package/browser/{chunk-JXXEYFN7.js → chunk-EPSJXHC6.js} +1 -1
- package/browser/{chunk-6BGTH62C.js → chunk-EV4Q6ALX.js} +1 -1
- package/browser/{chunk-X6XUOWVT.js → chunk-FAUBVY2Z.js} +2 -2
- package/browser/{chunk-JXHHT6R2.js → chunk-FE7XNXYT.js} +1 -1
- package/browser/{chunk-B3LNBFJF.js → chunk-FHVQSZV4.js} +1 -1
- package/browser/{chunk-DB3W42KN.js → chunk-FJDNER3H.js} +1 -1
- package/browser/{chunk-33B62QHS.js → chunk-FO57E5BU.js} +1 -1
- package/browser/{chunk-EGADVOKH.js → chunk-FV4VN5TM.js} +1 -1
- package/browser/{chunk-5PWOYB4R.js → chunk-FVSWTMXM.js} +11 -11
- package/browser/chunk-G36EBMA4.js +1 -0
- package/browser/{chunk-DU7W2G2L.js → chunk-GA5UNKLN.js} +1 -1
- package/browser/{chunk-ETTSYVEZ.js → chunk-GB6NLAAI.js} +1 -1
- package/browser/{chunk-LODGW3WU.js → chunk-GF6UUBXR.js} +1 -1
- package/browser/{chunk-VO3NT5EH.js → chunk-GFBFG6KV.js} +1 -1
- package/browser/{chunk-TMQ7NWGZ.js → chunk-GFNPL4DE.js} +1 -1
- package/browser/{chunk-YQE3PJGM.js → chunk-GG2JYIHB.js} +2 -2
- package/browser/{chunk-LAQMHKSP.js → chunk-GNTFQRQT.js} +1 -1
- package/browser/{chunk-3CZ6HKSM.js → chunk-GQGYP4YJ.js} +1 -1
- package/browser/{chunk-XZFHDKIK.js → chunk-H6DX2XWJ.js} +1 -1
- package/browser/{chunk-OKEI5RKW.js → chunk-HE2B5Q63.js} +1 -1
- package/browser/{chunk-4CFMB4IK.js → chunk-HENPJSI6.js} +1 -1
- package/browser/chunk-HG5EY2AA.js +1 -0
- package/browser/chunk-HKYIKSF6.js +257 -0
- package/browser/{chunk-3MUHZKUR.js → chunk-HPPVU3Z2.js} +1 -1
- package/browser/{chunk-QGYIPOLS.js → chunk-HS26VQGJ.js} +1 -1
- package/browser/{chunk-U3EOEZ3B.js → chunk-HTUZHZ2W.js} +1 -1
- package/browser/{chunk-TPKU52VV.js → chunk-I46YKGKC.js} +1 -1
- package/browser/{chunk-GJIFUWGQ.js → chunk-ID2BNJTV.js} +1 -1
- package/browser/{chunk-NCT5IK4R.js → chunk-II43RP2H.js} +1 -1
- package/browser/{chunk-XWWKCPZS.js → chunk-IKX6MZV7.js} +1 -1
- package/browser/{chunk-GWL7ZN37.js → chunk-ITL6HDN2.js} +1 -1
- package/browser/{chunk-OLT6DXR7.js → chunk-IXBA7EIJ.js} +1 -1
- package/browser/{chunk-RFVQHGYD.js → chunk-IYQKU2EL.js} +4 -4
- package/browser/{chunk-GDPQI6PI.js → chunk-JBMBXZHF.js} +1 -1
- package/browser/{chunk-XKAKP3E6.js → chunk-JCTDORER.js} +1 -1
- package/browser/chunk-JM73PAXO.js +1 -0
- package/browser/{chunk-6DRTZA6S.js → chunk-JQFQEYSX.js} +1 -1
- package/browser/{chunk-3RGQWWNI.js → chunk-JSKJOCYV.js} +1 -1
- package/browser/{chunk-JRM47ALM.js → chunk-KCYEWNYP.js} +1 -1
- package/browser/{chunk-FR6L6XAP.js → chunk-KOF4TIVO.js} +1 -1
- package/browser/{chunk-RPJIPLQS.js → chunk-KPNDJV2U.js} +1 -1
- package/browser/{chunk-VQBUIUJC.js → chunk-KRTNI2QB.js} +1 -1
- package/browser/{chunk-W34NDG3T.js → chunk-KVJIA6ZU.js} +1 -1
- package/browser/chunk-KY4GSSBW.js +1 -0
- package/browser/{chunk-MREFZR3I.js → chunk-L245BNIA.js} +1 -1
- package/browser/{chunk-GINPKODK.js → chunk-LFJYPPPQ.js} +1 -1
- package/browser/{chunk-VBX5VOJG.js → chunk-LFUE4ZL6.js} +1 -1
- package/browser/{chunk-BG6GTLXF.js → chunk-LHXDS2UV.js} +1 -1
- package/browser/{chunk-ZEXXJZ7U.js → chunk-LJ6YD225.js} +1 -1
- package/browser/{chunk-M76YU6SQ.js → chunk-LKDUSJDE.js} +1 -1
- package/browser/{chunk-SA67OWFV.js → chunk-LLD4JAZJ.js} +1 -1
- package/browser/{chunk-IUE6IUOH.js → chunk-LOHDNRJM.js} +1 -1
- package/browser/{chunk-XZXNHGZ2.js → chunk-LWTHIG4U.js} +1 -1
- package/browser/chunk-LY6VOK2B.js +149 -0
- package/browser/{chunk-HHSXXJFJ.js → chunk-MBWD4S2P.js} +1 -1
- package/browser/chunk-MMT7GFHE.js +21 -0
- package/browser/{chunk-67UQKMLX.js → chunk-MPPCTVQF.js} +1 -1
- package/browser/chunk-N5J3AS3T.js +131 -0
- package/browser/{chunk-XTMUP2BA.js → chunk-NFZ2TD3A.js} +1 -1
- package/browser/{chunk-KB64CIW5.js → chunk-NJ67KPDC.js} +2 -2
- package/browser/{chunk-UEMKVZMR.js → chunk-NKSKEAZY.js} +1 -1
- package/browser/{chunk-BJKHMXAA.js → chunk-NQ3TLVWW.js} +1 -1
- package/browser/chunk-O2H3P76C.js +1 -0
- package/browser/{chunk-YL6HCV6T.js → chunk-O44PCSTB.js} +1 -1
- package/browser/{chunk-7USHMTB5.js → chunk-OFXB2JPC.js} +1 -1
- package/browser/{chunk-MTU6753J.js → chunk-OHYERAR6.js} +1 -1
- package/browser/{chunk-PUXE7FLT.js → chunk-OQW54TBN.js} +1 -1
- package/browser/{chunk-WACBOZDR.js → chunk-OWKXU5ZC.js} +1 -1
- package/browser/{chunk-T3HVVJIV.js → chunk-P4NX6EKZ.js} +1 -1
- package/browser/chunk-P5NZWQQQ.js +90 -0
- package/browser/chunk-PF2YFOXS.js +1 -0
- package/browser/{chunk-AASKAWJ4.js → chunk-PIZCEKMP.js} +1 -1
- package/browser/{chunk-7IRMDCKA.js → chunk-PMYMVWKR.js} +1 -1
- package/browser/chunk-PNLYN7MQ.js +311 -0
- package/browser/{chunk-SICZ4VWZ.js → chunk-PS6E5OMN.js} +1 -1
- package/browser/{chunk-2BSYBLS4.js → chunk-QDM4BBTH.js} +1 -1
- package/browser/{chunk-FFOK3ZNC.js → chunk-QIYEPDZF.js} +1 -1
- package/browser/{chunk-G4XFK7EF.js → chunk-QJIVDQKL.js} +1 -1
- package/browser/{chunk-IQ7VK4UE.js → chunk-QLGCMRTS.js} +2 -2
- package/browser/{chunk-WAAJYULE.js → chunk-QNPEMG6D.js} +1 -1
- package/browser/chunk-QNQXO4YS.js +54 -0
- package/browser/{chunk-BXGUZIC4.js → chunk-QVN7DETM.js} +1 -1
- package/browser/chunk-QXANNR7D.js +1 -0
- package/browser/{chunk-KWDQGODG.js → chunk-QYQO4PJF.js} +1 -1
- package/browser/{chunk-V6MKE6LP.js → chunk-RA4OB2YA.js} +1 -1
- package/browser/chunk-REYWUYK5.js +1 -0
- package/browser/chunk-RLNFPJPE.js +1 -0
- package/browser/{chunk-HVRLWPZX.js → chunk-RN6J3XFI.js} +1 -1
- package/browser/{chunk-LFHXGZHT.js → chunk-RRHPX65K.js} +1 -1
- package/browser/{chunk-EHXTW46H.js → chunk-RV3HEIY6.js} +1 -1
- package/browser/{chunk-G7HGWSUU.js → chunk-RWMRVY4Q.js} +1 -1
- package/browser/{chunk-A6F6V3WW.js → chunk-S5MGRIMQ.js} +1 -1
- package/browser/{chunk-I24HJLN4.js → chunk-SN3QC2AI.js} +1 -1
- package/browser/{chunk-VCQBS5CA.js → chunk-SNGOVACV.js} +1 -1
- package/browser/{chunk-TCR2YYM5.js → chunk-SZHE2X7K.js} +1 -1
- package/browser/{chunk-RNEU5YBN.js → chunk-T4EAHLQ4.js} +1 -1
- package/browser/{chunk-OGN6JWED.js → chunk-T6TESUGU.js} +1 -1
- package/browser/{chunk-PTQCXOVM.js → chunk-TFNPU76N.js} +1 -1
- package/browser/{chunk-KMYTSO3Q.js → chunk-TJXA75FB.js} +1 -1
- package/browser/{chunk-FADT3LJL.js → chunk-TKOHX2XL.js} +3 -3
- package/browser/{chunk-EGUIWOC3.js → chunk-TO24XJZI.js} +1 -1
- package/browser/{chunk-IT7I47UZ.js → chunk-TRI5DSKF.js} +1 -1
- package/browser/chunk-TTR5FF2O.js +1 -0
- package/browser/chunk-TTUXWXNN.js +480 -0
- package/browser/chunk-TU6PG43Y.js +118 -0
- package/browser/{chunk-RO5PWDCR.js → chunk-U2AHHKPZ.js} +1 -1
- package/browser/{chunk-PQFMYP23.js → chunk-U2WIPEWI.js} +1 -1
- package/browser/chunk-UFZBFEHP.js +149 -0
- package/browser/{chunk-DZA27E5L.js → chunk-UV57OGWO.js} +1 -1
- package/browser/chunk-UWBVPKV4.js +1 -0
- package/browser/{chunk-OKVQYK4Y.js → chunk-V2IOC2AJ.js} +1 -1
- package/browser/chunk-VBBYHB7E.js +191 -0
- package/browser/{chunk-5ZU5FBGM.js → chunk-VCSTNDEY.js} +1 -1
- package/browser/{chunk-FAN4YDVT.js → chunk-VIIDAPDU.js} +1 -1
- package/browser/{chunk-4KBU47GN.js → chunk-VNNCIA5L.js} +1 -1
- package/browser/{chunk-L5HF7UAT.js → chunk-VNV7VWNA.js} +1 -1
- package/browser/{chunk-E2XUBZDW.js → chunk-VPNGMBCE.js} +1 -1
- package/browser/chunk-VSS454NR.js +2 -0
- package/browser/{chunk-OYO4SRAO.js → chunk-VWL5FKU2.js} +1 -1
- package/browser/{chunk-4KMN7PSV.js → chunk-W4S7Q6CB.js} +1 -1
- package/browser/{chunk-ISY4SDFY.js → chunk-WILA4FS3.js} +1 -1
- package/browser/{chunk-YM2ZQTDF.js → chunk-WJL7IGC6.js} +1 -1
- package/browser/{chunk-HMKM466S.js → chunk-WMTI6O7I.js} +1 -1
- package/browser/{chunk-IZQ5FNXP.js → chunk-WPPCNK6N.js} +1 -1
- package/browser/{chunk-OTT6RJHI.js → chunk-WXF6PTWZ.js} +1 -1
- package/browser/{chunk-F7EO5OHI.js → chunk-X5OTMPQN.js} +1 -1
- package/browser/{chunk-E4GYCB3G.js → chunk-XABTH5K3.js} +1 -1
- package/browser/chunk-XCII6WYI.js +92 -0
- package/browser/chunk-XEAD3GDE.js +507 -0
- package/browser/{chunk-PIW2M2DH.js → chunk-XFQZ7QQD.js} +1 -1
- package/browser/{chunk-RRYYS272.js → chunk-XGM7LWRY.js} +1 -1
- package/browser/{chunk-HC2YTBED.js → chunk-XMPP4Y4Z.js} +1 -1
- package/browser/{chunk-M4BTEXS6.js → chunk-XSPT7GLC.js} +1 -1
- package/browser/chunk-XU5W6MOV.js +15 -0
- package/browser/{chunk-B235RUOX.js → chunk-XUAUPVAM.js} +1 -1
- package/browser/chunk-XUEGGJ25.js +209 -0
- package/browser/{chunk-XXNLATCJ.js → chunk-XVOXL7EV.js} +1 -1
- package/browser/{chunk-IE2H4VRD.js → chunk-XZGY4EZF.js} +1 -1
- package/browser/chunk-Y2T5WNHG.js +1 -0
- package/browser/chunk-Y5JYDZ3E.js +1 -0
- package/browser/chunk-YGHK5XUL.js +1 -0
- package/browser/{chunk-OMKIT3Z4.js → chunk-YGOSFZQM.js} +1 -1
- package/browser/{chunk-3LPZYQS6.js → chunk-YJJAQOYJ.js} +3 -2
- package/browser/{chunk-PQS3RLPI.js → chunk-YJJEYBW2.js} +1 -1
- package/browser/{chunk-BLQKJ5OK.js → chunk-YV457DYY.js} +1 -1
- package/browser/chunk-YZSVWK3T.js +1 -0
- package/browser/{chunk-U5HTULBC.js → chunk-Z2VRH2HR.js} +1 -1
- package/browser/chunk-ZIWCCS4F.js +1 -0
- package/browser/{chunk-6Q7J43H4.js → chunk-ZJDFNACB.js} +1 -1
- package/browser/{chunk-IAFZ75L3.js → chunk-ZJFXRNBM.js} +3 -3
- package/browser/{chunk-RKCNENWQ.js → chunk-ZVQF3NH4.js} +1 -1
- package/browser/index.html +2 -2
- package/browser/main-5IXVIJ7Z.css +1 -0
- package/browser/{main-7FKCOQYA.js → main-K2ATSNT2.js} +2 -2
- package/browser/{styles-J6LGFNKV.css → styles-URIEURGQ.css} +1 -1
- package/package.json +1 -1
- package/browser/chunk-2JU7KFOZ.js +0 -2
- package/browser/chunk-2QD46TNT.js +0 -191
- package/browser/chunk-4ZFVM7K7.js +0 -1
- package/browser/chunk-6A3BN6JC.js +0 -507
- package/browser/chunk-6VM27TUY.js +0 -1
- package/browser/chunk-BJG2UU2M.js +0 -1
- package/browser/chunk-BRHHRJLT.js +0 -39
- package/browser/chunk-CKGJCUHW.js +0 -1
- package/browser/chunk-DG4IHOM2.js +0 -1
- package/browser/chunk-EOJJS4LU.js +0 -334
- package/browser/chunk-FSGCO2Z5.js +0 -1
- package/browser/chunk-GUF6JXSS.js +0 -257
- package/browser/chunk-HBH23XBO.js +0 -1
- package/browser/chunk-HDJJJAZJ.js +0 -1
- package/browser/chunk-IBZF5QXJ.js +0 -1
- package/browser/chunk-IPJU7D3K.js +0 -3
- package/browser/chunk-KDOS4X4T.js +0 -82
- package/browser/chunk-KFUPP33B.js +0 -92
- package/browser/chunk-KPZU3ZPZ.js +0 -1
- package/browser/chunk-KTV4REGV.js +0 -152
- package/browser/chunk-L453AX2W.js +0 -376
- package/browser/chunk-MHZV4BL7.js +0 -1095
- package/browser/chunk-MNZLKEWQ.js +0 -118
- package/browser/chunk-N43HXORE.js +0 -22
- package/browser/chunk-NBMH5YL2.css +0 -1
- package/browser/chunk-PCFR4J66.js +0 -131
- package/browser/chunk-PNN75KZR.js +0 -16
- package/browser/chunk-PROSYUA2.js +0 -1
- package/browser/chunk-PUFGTKWO.js +0 -1
- package/browser/chunk-PXKNGMLL.js +0 -1
- package/browser/chunk-QMFA3PF5.js +0 -1
- package/browser/chunk-RMIJZMA5.js +0 -480
- package/browser/chunk-SGSOCLV7.js +0 -21
- package/browser/chunk-TR5NO2CB.js +0 -1
- package/browser/chunk-TWVDGGTY.js +0 -209
- package/browser/chunk-TX6ZFPHY.js +0 -90
- package/browser/chunk-USEPOJ5L.js +0 -1
- package/browser/chunk-V7HBROQ5.js +0 -54
- package/browser/chunk-VS3RTXZC.js +0 -5
- package/browser/chunk-W5N6DMDQ.js +0 -149
- package/browser/chunk-WAXYETAG.js +0 -151
- package/browser/chunk-WRZUQ2QI.js +0 -1
- package/browser/chunk-WXJTNRD3.js +0 -149
- package/browser/chunk-XF5XKXE6.js +0 -311
- package/browser/chunk-XHA6WGTO.js +0 -1
- package/browser/chunk-XRLRUCRR.js +0 -315
- package/browser/chunk-YQ5GJPDB.js +0 -1
- package/browser/chunk-YZP4FX7D.js +0 -15
- package/browser/chunk-ZRHYTE5S.js +0 -1
- package/browser/main-WPNH2WGQ.css +0 -1
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
import{a as Ct,b as St}from"./chunk-RFVQHGYD.js";import{b as _t}from"./chunk-V7HBROQ5.js";import{a as ft}from"./chunk-G7HGWSUU.js";import{a as ht,b as yt,c as bt,d as vt,e as xt}from"./chunk-2QD46TNT.js";import{a as Te,b as Le}from"./chunk-YQ5GJPDB.js";import{a as mt}from"./chunk-KMYTSO3Q.js";import{a as Tt}from"./chunk-BRHHRJLT.js";import{c as gt}from"./chunk-KTV4REGV.js";import{b as pt,c as ut}from"./chunk-VQBUIUJC.js";import{a as Ye}from"./chunk-DB3W42KN.js";import{a as ve,b as at,c as ct,d as dt}from"./chunk-TX6ZFPHY.js";import{b as ot,c as Fe,i as st}from"./chunk-YZP4FX7D.js";import{E as tt,G as nt,U as Ve,V as it,a as z,da as Oe,la as Z,m as Xe,ma as H,na as lt,oa as rt,u as De,ua as be,v as Ze,w as X,y as se,z as et}from"./chunk-WAXYETAG.js";import{F as ae,a as Je,h as me,o as _e}from"./chunk-OJ5SEYSF.js";import{a as he}from"./chunk-TS6CZC3J.js";import{Bb as s,Bc as qe,Ca as pe,Cb as h,Cc as Ke,Db as y,Eb as N,Ha as Re,Hc as k,Ia as W,Ib as I,Jb as w,Kb as C,Kc as P,Lb as D,Nb as x,Oc as je,Pb as a,Pc as oe,Sb as T,Tb as M,Ub as m,Vb as _,Wa as c,Xa as v,Xc as b,Y as we,Yc as $,Zb as G,_b as Me,ac as Y,bc as f,ca as Ee,cb as te,cc as L,cd as We,d as He,dc as ge,ec as J,ed as le,ee as ye,fa as Pe,fd as re,ga as ke,gb as R,hb as ue,hc as Qe,ic as Be,id as fe,jc as Ue,jd as q,ka as ce,kb as ne,kd as Ge,la as j,ma as de,mb as d,o as Ie,oa as ze,pa as O,rc as ie,rd as K,sb as E,ta as u,tc as A,ua as g,ub as Q,uc as U,va as F,vc as $e,wb as B}from"./chunk-VS3RTXZC.js";import{a as ee}from"./chunk-SNAKHGZS.js";var Nt=`
|
|
2
|
-
.p-tree {
|
|
3
|
-
display: block;
|
|
4
|
-
background: dt('tree.background');
|
|
5
|
-
color: dt('tree.color');
|
|
6
|
-
padding: dt('tree.padding');
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.p-tree-root-children,
|
|
10
|
-
.p-tree-node-children {
|
|
11
|
-
display: flex;
|
|
12
|
-
list-style-type: none;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
margin: 0;
|
|
15
|
-
gap: dt('tree.gap');
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.p-tree-root-children {
|
|
19
|
-
padding: 0;
|
|
20
|
-
padding-block-start: dt('tree.gap');
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.p-tree-node-children {
|
|
24
|
-
padding: 0;
|
|
25
|
-
padding-block-start: dt('tree.gap');
|
|
26
|
-
padding-inline-start: dt('tree.indent');
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.p-tree-node {
|
|
30
|
-
padding: 0;
|
|
31
|
-
outline: 0 none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.p-tree-node-content {
|
|
35
|
-
border-radius: dt('tree.node.border.radius');
|
|
36
|
-
padding: dt('tree.node.padding');
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
outline-color: transparent;
|
|
40
|
-
color: dt('tree.node.color');
|
|
41
|
-
gap: dt('tree.node.gap');
|
|
42
|
-
transition:
|
|
43
|
-
background dt('tree.transition.duration'),
|
|
44
|
-
color dt('tree.transition.duration'),
|
|
45
|
-
outline-color dt('tree.transition.duration'),
|
|
46
|
-
box-shadow dt('tree.transition.duration');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.p-tree-node-content[data-p-dragging] {
|
|
50
|
-
outline: 1px dashed dt('primary.color');
|
|
51
|
-
outline-offset: -1px;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.p-tree-node-content[data-pc-section="drag-image"] {
|
|
55
|
-
background: dt('tree.background');
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.p-tree-node:focus-visible > .p-tree-node-content {
|
|
59
|
-
box-shadow: dt('tree.node.focus.ring.shadow');
|
|
60
|
-
outline: dt('tree.node.focus.ring.width') dt('tree.node.focus.ring.style') dt('tree.node.focus.ring.color');
|
|
61
|
-
outline-offset: dt('tree.node.focus.ring.offset');
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover {
|
|
65
|
-
background: dt('tree.node.hover.background');
|
|
66
|
-
color: dt('tree.node.hover.color');
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.p-tree-node-content.p-tree-node-selectable:not(.p-tree-node-selected):hover .p-tree-node-icon {
|
|
70
|
-
color: dt('tree.node.icon.hover.color');
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.p-tree-node-content.p-tree-node-selected {
|
|
74
|
-
background: dt('tree.node.selected.background');
|
|
75
|
-
color: dt('tree.node.selected.color');
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button {
|
|
79
|
-
color: inherit;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.p-tree-node-content.p-tree-node-dragover {
|
|
83
|
-
background: dt('tree.node.hover.background');
|
|
84
|
-
color: dt('tree.node.hover.color');
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.p-tree-node-drop-point {
|
|
88
|
-
outline: 1px solid dt('primary.color');
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-tree-node-toggle-button {
|
|
92
|
-
cursor: pointer;
|
|
93
|
-
user-select: none;
|
|
94
|
-
display: inline-flex;
|
|
95
|
-
align-items: center;
|
|
96
|
-
justify-content: center;
|
|
97
|
-
overflow: hidden;
|
|
98
|
-
position: relative;
|
|
99
|
-
flex-shrink: 0;
|
|
100
|
-
width: dt('tree.node.toggle.button.size');
|
|
101
|
-
height: dt('tree.node.toggle.button.size');
|
|
102
|
-
color: dt('tree.node.toggle.button.color');
|
|
103
|
-
border: 0 none;
|
|
104
|
-
background: transparent;
|
|
105
|
-
border-radius: dt('tree.node.toggle.button.border.radius');
|
|
106
|
-
transition:
|
|
107
|
-
background dt('tree.transition.duration'),
|
|
108
|
-
color dt('tree.transition.duration'),
|
|
109
|
-
border-color dt('tree.transition.duration'),
|
|
110
|
-
outline-color dt('tree.transition.duration'),
|
|
111
|
-
box-shadow dt('tree.transition.duration');
|
|
112
|
-
outline-color: transparent;
|
|
113
|
-
padding: 0;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.p-tree-node-toggle-button:enabled:hover {
|
|
117
|
-
background: dt('tree.node.toggle.button.hover.background');
|
|
118
|
-
color: dt('tree.node.toggle.button.hover.color');
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.p-tree-node-content.p-tree-node-selected .p-tree-node-toggle-button:hover {
|
|
122
|
-
background: dt('tree.node.toggle.button.selected.hover.background');
|
|
123
|
-
color: dt('tree.node.toggle.button.selected.hover.color');
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.p-tree-root {
|
|
127
|
-
overflow: auto;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.p-tree-node-selectable {
|
|
131
|
-
cursor: pointer;
|
|
132
|
-
user-select: none;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.p-tree-node-leaf > .p-tree-node-content .p-tree-node-toggle-button {
|
|
136
|
-
visibility: hidden;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.p-tree-node-icon {
|
|
140
|
-
color: dt('tree.node.icon.color');
|
|
141
|
-
transition: color dt('tree.transition.duration');
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.p-tree-node-content.p-tree-node-selected .p-tree-node-icon {
|
|
145
|
-
color: dt('tree.node.icon.selected.color');
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.p-tree-filter {
|
|
149
|
-
margin: dt('tree.filter.margin');
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.p-tree-filter-input {
|
|
153
|
-
width: 100%;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.p-tree-loading {
|
|
157
|
-
position: relative;
|
|
158
|
-
height: 100%;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.p-tree-loading-icon {
|
|
162
|
-
font-size: dt('tree.loading.icon.size');
|
|
163
|
-
width: dt('tree.loading.icon.size');
|
|
164
|
-
height: dt('tree.loading.icon.size');
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.p-tree .p-tree-mask {
|
|
168
|
-
position: absolute;
|
|
169
|
-
z-index: 1;
|
|
170
|
-
display: flex;
|
|
171
|
-
align-items: center;
|
|
172
|
-
justify-content: center;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.p-tree-flex-scrollable {
|
|
176
|
-
display: flex;
|
|
177
|
-
flex: 1;
|
|
178
|
-
height: 100%;
|
|
179
|
-
flex-direction: column;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.p-tree-flex-scrollable .p-tree-root {
|
|
183
|
-
flex: 1;
|
|
184
|
-
}
|
|
185
|
-
`;var Et=t=>({height:t}),Pt=(t,l)=>({$implicit:t,loading:l}),zt=(t,l,e)=>({$implicit:t,partialSelected:l,class:e}),kt=t=>({$implicit:t});function Rt(t,l){if(t&1&&N(0,"div"),t&2){let e=a(2);f(e.cx("dropPoint")),E("aria-hidden",!0)}}function Qt(t,l){if(t&1&&(F(),N(0,"svg",12)),t&2){let e=a(4);f(e.cx("nodeToggleIcon"))}}function Bt(t,l){if(t&1&&(F(),N(0,"svg",13)),t&2){let e=a(4);f(e.cx("nodeToggleIcon"))}}function Ut(t,l){if(t&1&&(I(0),d(1,Qt,1,2,"svg",10)(2,Bt,1,2,"svg",11),w()),t&2){let e=a(3);c(),s("ngIf",!e.node.expanded),c(),s("ngIf",e.node.expanded)}}function $t(t,l){if(t&1&&(I(0),F(),N(1,"svg",14),w()),t&2){let e=a(3);c(),f(e.cx("nodeToggleIcon"))}}function qt(t,l){if(t&1&&(I(0),d(1,Ut,3,2,"ng-container",6)(2,$t,2,2,"ng-container",6),w()),t&2){let e=a(2);c(),s("ngIf",!e.node.loading),c(),s("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function Kt(t,l){}function jt(t,l){t&1&&d(0,Kt,0,0,"ng-template")}function Wt(t,l){if(t&1&&(h(0,"span"),d(1,jt,1,0,null,15),y()),t&2){let e=a(2);f(e.cx("nodeToggleIcon")),c(),s("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",U(4,Pt,e.node.expanded,e.node.loading))}}function Gt(t,l){}function Yt(t,l){t&1&&d(0,Gt,0,0,"ng-template")}function Jt(t,l){if(t&1&&d(0,Yt,1,0,null,15),t&2){let e=a(4);s("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",$e(2,zt,e.isSelected(),e.node.partialSelected,e.cx("nodeCheckbox")))}}function Xt(t,l){t&1&&(I(0),d(1,Jt,1,6,"ng-template",null,0,k),w())}function Zt(t,l){if(t&1){let e=D();h(0,"p-checkbox",16),x("click",function(n){return u(e),g(n.preventDefault())}),d(1,Xt,3,0,"ng-container",6),y()}if(t&2){let e=a(2);s("ngModel",e.isSelected())("styleClass",e.cx("nodeCheckbox"))("binary",!0)("indeterminate",e.node.partialSelected)("disabled",e.node.selectable===!1)("variant",(e.tree==null?null:e.tree.config.inputStyle())==="filled"||(e.tree==null?null:e.tree.config.inputVariant())==="filled"?"filled":"outlined")("tabindex",-1),E("data-p-partialchecked",e.node.partialSelected),c(),s("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function en(t,l){if(t&1&&N(0,"span"),t&2){let e=a(2);f(e.getIcon())}}function tn(t,l){if(t&1&&(h(0,"span"),L(1),y()),t&2){let e=a(2);c(),ge(e.node.label)}}function nn(t,l){t&1&&C(0)}function on(t,l){if(t&1&&(h(0,"span"),d(1,nn,1,0,"ng-container",15),y()),t&2){let e=a(2);c(),s("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",A(2,kt,e.node))}}function ln(t,l){if(t&1&&N(0,"div"),t&2){let e=a(2);f(e.cx("dropPoint")),E("aria-hidden",!0)}}function rn(t,l){if(t&1&&N(0,"p-treeNode",19),t&2){let e=l.$implicit,i=l.first,n=l.last,o=l.index,r=a(3);s("node",e)("parentNode",r.node)("firstChild",i)("lastChild",n)("index",o)("itemSize",r.itemSize)("level",r.level+1)("loadingMode",r.loadingMode)}}function an(t,l){if(t&1&&(h(0,"ul",17),d(1,rn,1,8,"p-treeNode",18),y()),t&2){let e=a(2);f(e.cx("nodeChildren")),c(),s("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function sn(t,l){if(t&1){let e=D();h(0,"li",2),x("keydown",function(n){u(e);let o=a();return g(o.onKeyDown(n))}),Q(1,Rt,1,3,"div",3),h(2,"div",4),x("click",function(n){u(e);let o=a();return g(o.onNodeClick(n))})("contextmenu",function(n){u(e);let o=a();return g(o.onNodeRightClick(n))})("dblclick",function(n){u(e);let o=a();return g(o.onNodeDblClick(n))})("touchend",function(){u(e);let n=a();return g(n.onNodeTouchEnd())})("drop",function(n){u(e);let o=a();return g(o.onNodeDrop(n))})("dragstart",function(n){u(e);let o=a();return g(o.onNodeDragStart(n))})("dragover",function(n){u(e);let o=a();return g(o.onNodeDragOver(n))})("dragleave",function(n){u(e);let o=a();return g(o.onNodeDragLeave(n))})("dragend",function(n){u(e);let o=a();return g(o.onNodeDragEnd(n))}),h(3,"button",5),x("click",function(n){u(e);let o=a();return g(o.toggle(n))}),d(4,qt,3,2,"ng-container",6)(5,Wt,2,7,"span",7),y(),d(6,Zt,2,9,"p-checkbox",8)(7,en,1,2,"span",7),h(8,"span"),d(9,tn,2,1,"span",6)(10,on,2,4,"span",6),y()(),Q(11,ln,1,3,"div",3),d(12,an,2,4,"ul",9),y()}if(t&2){let e=a();Y(e.node.style),f(e.cn(e.cx("node"),e.node.styleClass)),s("ngStyle",A(33,Et,e.itemSize+"px")),E("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",e.index===0?0:-1)("data-id",e.node.key),c(),B(e.isPrevDropPointActive()?1:-1),c(),f(e.cx("nodeContent")),Me("padding-left",e.level*e.indentation+"rem"),s("draggable",e.tree.draggableNodes),c(),f(e.cx("nodeToggleButton")),E("data-pc-section","toggler"),c(),s("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),c(),s("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),c(),s("ngIf",e.tree.selectionMode=="checkbox"),c(),s("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),c(),f(e.cx("nodeLabel")),c(),s("ngIf",!e.tree.getTemplateForNode(e.node)),c(),s("ngIf",e.tree.getTemplateForNode(e.node)),c(),B(e.isNextDropPointActive()?11:-1),c(),s("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded)}}var It=["filter"],cn=["node"],dn=["header"],pn=["footer"],un=["loader"],gn=["empty"],fn=["togglericon"],hn=["checkboxicon"],mn=["loadingicon"],_n=["filtericon"],yn=["scroller"],bn=["wrapper"],vn=["content"],Tn=t=>({options:t});function xn(t,l){if(t&1&&N(0,"i"),t&2){let e=a(2);f(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon))}}function Cn(t,l){if(t&1&&(F(),N(0,"svg",12)),t&2){let e=a(3);f(e.cx("loadingIcon"))}}function Sn(t,l){}function Nn(t,l){t&1&&d(0,Sn,0,0,"ng-template")}function In(t,l){if(t&1&&(h(0,"span"),d(1,Nn,1,0,null,8),y()),t&2){let e=a(3);f(e.cx("loadingIcon")),c(),s("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function wn(t,l){if(t&1&&(I(0),d(1,Cn,1,2,"svg",11)(2,In,2,3,"span",7),w()),t&2){let e=a(2);c(),s("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),s("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function En(t,l){if(t&1&&(h(0,"div"),d(1,xn,1,2,"i",7)(2,wn,3,2,"ng-container",10),y()),t&2){let e=a();f(e.cx("mask")),c(),s("ngIf",e.loadingIcon),c(),s("ngIf",!e.loadingIcon)}}function kn(t,l){t&1&&C(0)}function Mn(t,l){t&1&&C(0)}function Dn(t,l){if(t&1&&d(0,Mn,1,0,"ng-container",13),t&2){let e=a();s("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",A(2,kt,e.filterOptions))}}function Vn(t,l){if(t&1&&(F(),N(0,"svg",16)),t&2){let e=a(3);f(e.cx("filterIcon"))}}function On(t,l){}function Fn(t,l){t&1&&d(0,On,0,0,"ng-template")}function Ln(t,l){if(t&1&&(h(0,"span"),d(1,Fn,1,0,null,8),y()),t&2){let e=a(3);f(e.cx("filterIcon")),c(),s("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function An(t,l){if(t&1){let e=D();h(0,"p-iconfield")(1,"input",14,0),x("keydown.enter",function(n){return u(e),g(n.preventDefault())})("input",function(n){u(e);let o=a(2);return g(o._filter(n.target==null?null:n.target.value))}),y(),h(3,"p-inputicon"),d(4,Vn,1,2,"svg",15)(5,Ln,2,3,"span",7),y()()}if(t&2){let e=a(2);f(e.cx("pcFilterContainer")),c(),f(e.cx("pcFilterInput")),s("pAutoFocus",e.filterInputAutoFocus),E("placeholder",e.filterPlaceholder),c(3),s("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),s("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function Hn(t,l){if(t&1&&d(0,An,6,8,"p-iconfield",7),t&2){let e=a();s("ngIf",e.filter)}}function Pn(t,l){if(t&1&&N(0,"p-treeNode",22,3),t&2){let e=l.$implicit,i=l.first,n=l.last,o=l.index,r=a(2).options,p=a(3);s("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",i)("lastChild",n)("index",p.getIndex(r,o))("itemSize",r.itemSize)("indentation",p.indentation)("loadingMode",p.loadingMode)}}function zn(t,l){if(t&1&&(h(0,"ul",20,2),d(2,Pn,2,10,"p-treeNode",21),y()),t&2){let e=a(),i=e.$implicit,n=e.options,o=a(3);Y(n.contentStyle),f(o.cx("rootChildren")),s("ngClass",n.contentStyleClass),E("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),c(2),s("ngForOf",i)("ngForTrackBy",o.trackBy)}}function Rn(t,l){if(t&1&&d(0,zn,3,9,"ul",19),t&2){let e=l.$implicit;s("ngIf",e)}}function Qn(t,l){t&1&&C(0)}function Bn(t,l){if(t&1&&d(0,Qn,1,0,"ng-container",13),t&2){let e=l.options,i=a(4);s("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",A(2,Tn,e))}}function Un(t,l){t&1&&(I(0),d(1,Bn,1,4,"ng-template",null,4,k),w())}function $n(t,l){if(t&1){let e=D();h(0,"p-scroller",18,1),x("onScroll",function(n){u(e);let o=a(2);return g(o.onScroll.emit(n))})("onScrollIndexChange",function(n){u(e);let o=a(2);return g(o.onScrollIndexChange.emit(n))})("onLazyLoad",function(n){u(e);let o=a(2);return g(o.onLazyLoad.emit(n))}),d(2,Rn,1,1,"ng-template",null,2,k)(4,Un,3,0,"ng-container",10),y()}if(t&2){let e=a(2);Y(A(10,Et,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),s("items",e.serializedValue)("tabindex",-1)("styleClass",e.cx("wrapper"))("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize)("lazy",e.lazy)("options",e.virtualScrollOptions),c(4),s("ngIf",e.loaderTemplate||e._loaderTemplate)}}function qn(t,l){if(t&1&&N(0,"p-treeNode",26),t&2){let e=l.$implicit,i=l.first,n=l.last,o=l.index,r=a(4);s("node",e)("firstChild",i)("lastChild",n)("index",o)("level",0)("loadingMode",r.loadingMode)}}function Kn(t,l){if(t&1&&(h(0,"ul",24,2),d(2,qn,1,6,"p-treeNode",25),y()),t&2){let e=a(3);f(e.cx("rootChildren")),E("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),c(2),s("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function jn(t,l){if(t&1&&(I(0),h(1,"div",null,5),d(3,Kn,3,6,"ul",23),y(),w()),t&2){let e=a(2);c(),f(e.cx("wrapper")),Me("max-height",e.scrollHeight),c(2),s("ngIf",e.getRootNode())}}function Wn(t,l){if(t&1&&(I(0),d(1,$n,5,12,"p-scroller",17)(2,jn,4,5,"ng-container",10),w()),t&2){let e=a();c(),s("ngIf",e.virtualScroll),c(),s("ngIf",!e.virtualScroll)}}function Gn(t,l){if(t&1&&(I(0),L(1),w()),t&2){let e=a(2);c(),J(" ",e.emptyMessageLabel," ")}}function Yn(t,l){}function Jn(t,l){t&1&&d(0,Yn,0,0,"ng-template",null,6,k)}function Xn(t,l){if(t&1&&(h(0,"div"),d(1,Gn,2,1,"ng-container",27)(2,Jn,2,0,null,8),y()),t&2){let e=a();f(e.cx("emptyMessage")),c(),s("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),c(),s("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function Zn(t,l){t&1&&C(0)}var ei={root:({instance:t})=>["p-tree p-component",{"p-tree-selectable":t.selectionMode!=null,"p-tree-loading":t.loading,"p-tree-flex-scrollable":t.scrollHeight==="flex","p-tree-node-dragover":t.dragHover}],mask:"p-tree-mask p-overlay-mask",loadingIcon:"p-tree-loading-icon",pcFilterInput:"p-tree-filter-input",wrapper:"p-tree-root",rootChildren:"p-tree-root-children",node:({instance:t})=>({"p-tree-node":!0,"p-tree-node-leaf":t.isLeaf()}),nodeContent:({instance:t})=>({"p-tree-node-content":!0,"p-tree-node-selectable":t.selectable,"p-tree-node-dragover":t.isNodeDropActive(),"p-tree-node-selected":t.selectionMode==="checkbox"&&t.tree.highlightOnSelect?t.checked:t.selected}),nodeToggleButton:"p-tree-node-toggle-button",nodeToggleIcon:"p-tree-node-toggle-icon",nodeCheckbox:"p-tree-node-checkbox",nodeIcon:"p-tree-node-icon",nodeLabel:"p-tree-node-label",nodeChildren:"p-tree-node-children",emptyMessage:"p-tree-empty-message",dropPoint:"p-tree-node-drop-point"},xe=(()=>{class t extends be{name="tree";theme=Nt;classes=ei;static \u0275fac=(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})();static \u0275prov=j({token:t,factory:t.\u0275fac})}return t})();var ti=(()=>{class t extends Fe{static ICON_CLASS="p-tree-node-icon ";rowNode;node;parentNode;root;index;firstChild;lastChild;level;indentation;itemSize;loadingMode;tree=O(ce(()=>Ce));timeout;isPrevDropPointHovered=pe(!1);isNextDropPointHovered=pe(!1);isNodeDropHovered=pe(!1);isPrevDropPointActive=P(()=>this.isPrevDropPointHovered()&&this.isDroppable());isNextDropPointActive=P(()=>this.isNextDropPointHovered()&&this.isDroppable());isNodeDropActive=P(()=>this.isNodeDropHovered()&&this.isNodeDroppable());dropPosition=P(()=>this.isPrevDropPointActive()?-1:this.isNextDropPointActive()?1:0);_componentStyle=O(xe);get selected(){return this.tree.selectionMode==="single"||this.tree.selectionMode==="multiple"?this.isSelected():void 0}get checked(){return this.tree.selectionMode==="checkbox"?this.isSelected():void 0}get nodeClass(){return this.tree._componentStyle.classes.node({instance:this})}get selectable(){return this.node?.selectable===!1?!1:this.tree?.selectionMode!=null}get subNodes(){return this.node?.parent?this.node.parent.children:this.tree.value}ngOnInit(){super.ngOnInit(),this.node.parent=this.parentNode;let i=this.tree.el.nativeElement.closest("p-dialog");this.parentNode&&!i&&(this.setAllNodesTabIndexes(),this.tree.syncNodeOption(this.node,this.tree.value,"parent",this.tree.getNodeWithKey(this.parentNode.key,this.tree.value)))}getIcon(){let e;return this.node.icon?e=this.node.icon:e=this.node.expanded&&this.node.children&&this.node.children?.length?this.node.expandedIcon:this.node.collapsedIcon,t.ICON_CLASS+" "+e+" p-tree-node-icon"}isLeaf(){return this.tree.isNodeLeaf(this.node)}isSelected(){return this.tree.isSelected(this.node)}isSameNode(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}isDraggable(){return this.tree.draggableNodes}isDroppable(){return this.tree.droppableNodes&&this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)}isNodeDroppable(){return this.node?.droppable!==!1&&this.isDroppable()}isNodeDraggable(){return this.node?.draggable!==!1&&this.isDraggable()}toggle(e){this.node.expanded?this.collapse(e):this.expand(e),e.stopPropagation()}expand(e){this.node.expanded=!0,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeExpand.emit({originalEvent:e,node:this.node})}collapse(e){this.node.expanded=!1,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeCollapse.emit({originalEvent:e,node:this.node})}onNodeClick(e){this.tree.onNodeClick(e,this.node)}onNodeKeydown(e){e.key==="Enter"&&this.tree.onNodeClick(e,this.node)}onNodeTouchEnd(){this.tree.onNodeTouchEnd()}onNodeRightClick(e){this.tree.onNodeRightClick(e,this.node)}onNodeDblClick(e){this.tree.onNodeDblClick(e,this.node)}insertNodeOnDrop(){let{dragNode:e,dragNodeIndex:i,dragNodeSubNodes:n}=this.tree;if(!this.node||i==null||!e||!n)return;let o=this.dropPosition(),r=this.subNodes||[];if(n.splice(i,1),o<0){let p=this.index||0,S=n===r?i>p?p:p-1:p;r.splice(S,0,e)}else o>0?r.push(e):(this.node.children=this.node.children||[],this.node.children.push(e));this.tree.dragDropService.stopDrag({node:e,subNodes:r,index:i})}onNodeDrop(e){if(e.preventDefault(),e.stopPropagation(),this.isDroppable()){let{dragNode:i}=this.tree,n=this.dropPosition();(n!==0||n===0&&this.isNodeDroppable())&&(this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index,accept:()=>{this.insertNodeOnDrop()}}):(this.insertNodeOnDrop(),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index})))}this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1)}onNodeDragStart(e){if(this.isNodeDraggable()){e.dataTransfer?.setData("text","data");let i=e.currentTarget,n=i.cloneNode(!0),o=n.querySelector('[data-pc-section="toggler"]'),r=n.querySelector('[data-pc-name="checkbox"]');i.setAttribute("data-p-dragging","true"),n.style.width=Xe(i)+"px",n.style.height=nt(i)+"px",n.setAttribute("data-pc-section","drag-image"),o.style.visibility="hidden",r?.remove(),document.body.appendChild(n),e.dataTransfer?.setDragImage(n,0,0),setTimeout(()=>document.body.removeChild(n),0),this.tree.dragDropService.startDrag({tree:this,node:this.node,subNodes:this.subNodes,index:this.index,scope:this.tree.draggableScope})}else e.preventDefault()}onNodeDragOver(e){if(e.dataTransfer.dropEffect="move",this.isDroppable()){let n=e.currentTarget.getBoundingClientRect(),o=e.clientY-n.top;this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1),o<n.height*.25?this.isPrevDropPointHovered.set(!0):o>n.height*.75?this.isNextDropPointHovered.set(!0):this.isNodeDroppable()&&this.isNodeDropHovered.set(!0)}this.tree.droppableNodes&&(e.preventDefault(),e.stopPropagation())}onNodeDragLeave(){this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1)}onNodeDragEnd(e){e.currentTarget?.removeAttribute("data-p-dragging"),this.tree.dragDropService.stopDrag({node:this.node,subNodes:this.subNodes,index:this.index})}onKeyDown(e){if(!(!this.isSameNode(e)||this.tree.contextMenu&&this.tree.contextMenu.containerViewChild?.nativeElement.style.display==="block"))switch(e.code){case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"Space":case"NumpadEnter":this.onEnter(e);break;case"Tab":this.setAllNodesTabIndexes();break;default:break}}onArrowUp(e){let i=e.target.getAttribute("data-pc-section")==="toggler"?e.target.closest('[role="treeitem"]'):e.target.parentElement;if(i?.previousElementSibling)this.focusRowChange(i,i.previousElementSibling,this.findLastVisibleDescendant(i.previousElementSibling));else{let n=this.getParentNodeElement(i);n&&this.focusRowChange(i,n)}e.preventDefault()}onArrowDown(e){let i=e.target.getAttribute("data-pc-section")==="toggler"?e.target.closest('[role="treeitem"]'):e.target,n=i?.children[1];if(n&&n.children.length>0)this.focusRowChange(i,n.children[0]);else if(i?.parentElement?.nextElementSibling)this.focusRowChange(i,i.parentElement.nextElementSibling);else{let o=this.findNextSiblingOfAncestor(i?.parentElement);o&&this.focusRowChange(i,o)}e.preventDefault()}onArrowRight(e){!this.node?.expanded&&!this.tree.isNodeLeaf(this.node)&&(this.expand(e),e.currentTarget.tabIndex=-1,setTimeout(()=>{this.onArrowDown(e)},1)),e.preventDefault()}onArrowLeft(e){let i=e.target.getAttribute("data-pc-section")==="toggler"?e.target.closest('[role="treeitem"]'):e.target;if(this.level===0&&!this.node?.expanded)return!1;if(this.node?.expanded){this.collapse(e);return}let n=this.getParentNodeElement(i?.parentElement);n&&this.focusRowChange(e.currentTarget,n),e.preventDefault()}onEnter(e){this.tree.onNodeClick(e,this.node),this.setTabIndexForSelectionMode(e,this.tree.nodeTouched),e.preventDefault()}setAllNodesTabIndexes(){let e=De(this.tree.el.nativeElement,".p-tree-node"),i=[...e].some(n=>n.getAttribute("aria-selected")==="true"||n.getAttribute("aria-checked")==="true");if([...e].forEach(n=>{n.tabIndex=-1}),i){let n=[...e].filter(o=>o.getAttribute("aria-selected")==="true"||o.getAttribute("aria-checked")==="true");n[0].tabIndex=0;return}e.length&&([...e][0].tabIndex=0)}setTabIndexForSelectionMode(e,i){if(this.tree.selectionMode!==null){let n=[...De(this.tree.el.nativeElement,'[role="treeitem"]')];e.currentTarget.tabIndex=i===!1?-1:0,n.every(o=>o.tabIndex===-1)&&(n[0].tabIndex=0)}}findNextSiblingOfAncestor(e){let i=this.getParentNodeElement(e);return i?i.nextElementSibling?i.nextElementSibling:this.findNextSiblingOfAncestor(i):null}findLastVisibleDescendant(e){let n=Array.from(e.children).find(o=>z(o,"p-tree-node"))?.children[1];if(n&&n.children.length>0){let o=n.children[n.children.length-1];return this.findLastVisibleDescendant(o)}else return e}getParentNodeElement(e){let i=e.parentElement?.parentElement?.parentElement;return i?.tagName==="P-TREENODE"?i:null}focusNode(e){this.tree.droppableNodes?e.children[1].focus():e.children[0].focus()}focusRowChange(e,i,n){e.tabIndex="-1",i.children[0].tabIndex="0",this.focusNode(n||i)}focusVirtualNode(){this.timeout=setTimeout(()=>{let e=Ze(this.tree?.contentViewChild?.nativeElement,`[data-id="${this.node?.key??this.node?.data}"]`);X(e)},1)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})();static \u0275cmp=R({type:t,selectors:[["p-treeNode"]],inputs:{rowNode:"rowNode",node:"node",parentNode:"parentNode",root:[2,"root","root",b],index:[2,"index","index",$],firstChild:[2,"firstChild","firstChild",b],lastChild:[2,"lastChild","lastChild",b],level:[2,"level","level",$],indentation:[2,"indentation","indentation",$],itemSize:[2,"itemSize","itemSize",$],loadingMode:"loadingMode"},features:[ie([xe]),ne],decls:1,vars:1,consts:[["icon",""],["role","treeitem",3,"class","ngStyle","style"],["role","treeitem",3,"keydown","ngStyle"],[3,"class"],[3,"click","contextmenu","dblclick","touchend","drop","dragstart","dragover","dragleave","dragend","draggable"],["type","button","pRipple","","tabindex","-1",3,"click"],[4,"ngIf"],[3,"class",4,"ngIf"],[3,"ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex","click",4,"ngIf"],["role","group",3,"class",4,"ngIf"],["data-p-icon","chevron-right",3,"class",4,"ngIf"],["data-p-icon","chevron-down",3,"class",4,"ngIf"],["data-p-icon","chevron-right"],["data-p-icon","chevron-down"],["data-p-icon","spinner","spin",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex"],["role","group"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode"]],template:function(i,n){i&1&&Q(0,sn,13,35,"li",1),i&2&&B(n.node?0:-1)},dependencies:[t,K,le,re,q,fe,Tt,gt,ae,me,_e,ft,Te,Le,H],encapsulation:2})}return t})(),Ce=(()=>{class t extends Fe{dragDropService;value;selectionMode;loadingMode="mask";selection;styleClass;contextMenu;draggableScope;droppableScope;draggableNodes;droppableNodes;metaKeySelection=!1;propagateSelectionUp=!0;propagateSelectionDown=!0;loading;loadingIcon;emptyMessage="";ariaLabel;togglerAriaLabel;ariaLabelledBy;validateDrop;filter;filterInputAutoFocus=!1;filterBy="label";filterMode="lenient";filterOptions;filterPlaceholder;filteredNodes;filterLocale;scrollHeight;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;indentation=1.5;_templateMap;trackBy=(e,i)=>i;highlightOnSelect=!1;selectionChange=new v;onNodeSelect=new v;onNodeUnselect=new v;onNodeExpand=new v;onNodeCollapse=new v;onNodeContextMenuSelect=new v;onNodeDoubleClick=new v;onNodeDrop=new v;onLazyLoad=new v;onScroll=new v;onScrollIndexChange=new v;onFilter=new v;filterTemplate;nodeTemplate;headerTemplate;footerTemplate;loaderTemplate;emptyMessageTemplate;togglerIconTemplate;checkboxIconTemplate;loadingIconTemplate;filterIconTemplate;filterViewChild;scroller;wrapperViewChild;contentViewChild;templates;_headerTemplate;_emptyMessageTemplate;_footerTemplate;_loaderTemplate;_togglerIconTemplate;_checkboxIconTemplate;_loadingIconTemplate;_filterIconTemplate;_filterTemplate;ngAfterContentInit(){this.templates.length&&(this._templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"empty":this._emptyMessageTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"togglericon":this._togglerIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;default:this._templateMap[e.name]=e.template;break}})}serializedValue;nodeTouched;dragNodeTree;dragNode;dragNodeSubNodes;dragNodeIndex;dragNodeScope;dragHover;dragStartSubscription;dragStopSubscription;_componentStyle=O(xe);handleDropEvent(e){this.onDrop(e)}handleDragOverEvent(e){this.onDragOver(e)}handleDragEnterEvent(){this.onDragEnter()}handleDragLeaveEvent(e){this.onDragLeave(e)}constructor(e){super(),this.dragDropService=e}ngOnInit(){super.ngOnInit(),this.filterBy&&(this.filterOptions={filter:e=>this._filter(e),reset:()=>this.resetFilter()}),this.droppableNodes&&(this.dragStartSubscription=this.dragDropService.dragStart$.subscribe(e=>{this.dragNodeTree=e.tree,this.dragNode=e.node,this.dragNodeSubNodes=e.subNodes,this.dragNodeIndex=e.index,this.dragNodeScope=e.scope}),this.dragStopSubscription=this.dragDropService.dragStop$.subscribe(e=>{this.dragNodeTree=null,this.dragNode=null,this.dragNodeSubNodes=null,this.dragNodeIndex=null,this.dragNodeScope=null,this.dragHover=!1}))}ngOnChanges(e){super.ngOnChanges(e),e.value&&(this.updateSerializedValue(),this.hasFilterActive()&&this._filter(this.filterViewChild?.nativeElement?.value))}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(lt.EMPTY_MESSAGE)}updateSerializedValue(){this.serializedValue=[],this.serializeNodes(null,this.getRootNode(),0,!0)}serializeNodes(e,i,n,o){if(i&&i.length)for(let r of i){r.parent=e;let p={node:r,parent:e,level:n,visible:o&&(e?e.expanded:!0)};this.serializedValue.push(p),p.visible&&r.expanded&&this.serializeNodes(r,r.children,n+1,p.visible)}}onNodeClick(e,i){let n=e.target;if(!(z(n,"p-tree-toggler")||z(n,"p-tree-toggler-icon"))){if(this.selectionMode){if(i.selectable===!1){i.style="--p-focus-ring-color: none;";return}else i.style?.includes("--p-focus-ring-color")||(i.style=i.style?`${i.style}--p-focus-ring-color: var(--primary-color)`:"--p-focus-ring-color: var(--primary-color)");if(this.hasFilteredNodes()&&(i=this.getNodeWithKey(i.key,this.filteredNodes),!i))return;let o=this.findIndexInSelection(i),r=o>=0;if(this.isCheckboxSelectionMode())r?(this.propagateSelectionDown?this.propagateDown(i,!1):this.selection=this.selection.filter((p,S)=>S!=o),this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.propagateSelectionDown?this.propagateDown(i,!0):this.selection=[...this.selection||[],i],this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:i}));else if(this.nodeTouched?!1:this.metaKeySelection){let S=e.metaKey||e.ctrlKey;r&&S?(this.isSingleSelectionMode()?this.selectionChange.emit(null):(this.selection=this.selection.filter((V,Lt)=>Lt!=o),this.selectionChange.emit(this.selection)),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.isMultipleSelectionMode()&&(this.selection=S?this.selection||[]:[],this.selection=[...this.selection,i],this.selectionChange.emit(this.selection)),this.onNodeSelect.emit({originalEvent:e,node:i}))}else this.isSingleSelectionMode()?r?(this.selection=null,this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=i,setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})):r?(this.selection=this.selection.filter((S,V)=>V!=o),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=[...this.selection||[],i],setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})),this.selectionChange.emit(this.selection)}this.nodeTouched=!1}}onNodeTouchEnd(){this.nodeTouched=!0}onNodeRightClick(e,i){if(this.contextMenu){let n=e.target;if(n.className&&n.className.indexOf("p-tree-toggler")===0)return;this.findIndexInSelection(i)>=0||(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.selectionChange.emit([i])),this.contextMenu.show(e),this.onNodeContextMenuSelect.emit({originalEvent:e,node:i})}}onNodeDblClick(e,i){this.onNodeDoubleClick.emit({originalEvent:e,node:i})}findIndexInSelection(e){let i=-1;if(this.selectionMode&&this.selection)if(this.isSingleSelectionMode())i=this.selection.key&&this.selection.key===e.key||this.selection==e?0:-1;else for(let n=0;n<this.selection.length;n++){let o=this.selection[n];if(o.key&&o.key===e.key||o==e){i=n;break}}return i}syncNodeOption(e,i,n,o){let r=this.hasFilteredNodes()?this.getNodeWithKey(e.key,i):null;r&&(r[n]=o||e[n])}hasFilteredNodes(){return this.filter&&this.filteredNodes&&this.filteredNodes.length}hasFilterActive(){return this.filter&&this.filterViewChild?.nativeElement?.value.length>0}getNodeWithKey(e,i){for(let n of i){if(n.key===e)return n;if(n.children){let o=this.getNodeWithKey(e,n.children);if(o)return o}}}propagateUp(e,i){if(e.children&&e.children.length){let o=0,r=!1;for(let p of e.children)this.isSelected(p)?o++:p.partialSelected&&(r=!0);if(i&&o==e.children.length)this.selection=[...this.selection||[],e],e.partialSelected=!1;else{if(!i){let p=this.findIndexInSelection(e);p>=0&&(this.selection=this.selection.filter((S,V)=>V!=p))}r||o>0&&o!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}this.syncNodeOption(e,this.filteredNodes,"partialSelected")}let n=e.parent;n&&this.propagateUp(n,i)}propagateDown(e,i){let n=this.findIndexInSelection(e);if(i&&n==-1?this.selection=[...this.selection||[],e]:!i&&n>-1&&(this.selection=this.selection.filter((o,r)=>r!=n)),e.partialSelected=!1,this.syncNodeOption(e,this.filteredNodes,"partialSelected"),e.children&&e.children.length)for(let o of e.children)this.propagateDown(o,i)}isSelected(e){return this.findIndexInSelection(e)!=-1}isSingleSelectionMode(){return this.selectionMode&&this.selectionMode=="single"}isMultipleSelectionMode(){return this.selectionMode&&this.selectionMode=="multiple"}isCheckboxSelectionMode(){return this.selectionMode&&this.selectionMode=="checkbox"}isNodeLeaf(e){return e.leaf==!1?!1:!(e.children&&e.children.length)}getRootNode(){return this.filteredNodes?this.filteredNodes:this.value}getTemplateForNode(e){return this._templateMap?e.type?this._templateMap[e.type]:this._templateMap.default:null}onDragOver(e){this.droppableNodes&&(!this.value||this.value.length===0)&&(e.dataTransfer.dropEffect="move",e.preventDefault())}onDrop(e){if(this.droppableNodes&&(!this.value||this.value.length===0)){e.preventDefault();let i=this.dragNode;if(this.allowDrop(i,null,this.dragNodeScope)){let n=this.dragNodeIndex;this.value=this.value||[],this.validateDrop?this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:n,accept:()=>{this.processTreeDrop(i,n)}}):(this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:n}),this.processTreeDrop(i,n))}}}processTreeDrop(e,i){this.dragNodeSubNodes.splice(i,1),this.value.push(e),this.dragDropService.stopDrag({node:e})}onDragEnter(){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(this.dragHover=!0)}onDragLeave(e){if(this.droppableNodes){let i=e.currentTarget.getBoundingClientRect();(e.x>i.left+i.width||e.x<i.left||e.y>i.top+i.height||e.y<i.top)&&(this.dragHover=!1)}}allowDrop(e,i,n){if(e)if(this.isValidDragScope(n)){let o=!0;if(i)if(e===i)o=!1;else{let r=i.parent;for(;r!=null;){if(r===e){o=!1;break}r=r.parent}}return o}else return!1;else return!1}isValidDragScope(e){let i=this.droppableScope;if(i){if(typeof i=="string"){if(typeof e=="string")return i===e;if(Array.isArray(e))return e.indexOf(i)!=-1}else if(Array.isArray(i)){if(typeof e=="string")return i.indexOf(e)!=-1;if(Array.isArray(e)){for(let n of i)for(let o of e)if(n===o)return!0}}return!1}else return!0}_filter(e){let i=e;if(i==="")this.filteredNodes=null;else{this.filteredNodes=[];let n=this.filterBy.split(","),o=Oe(i).toLocaleLowerCase(this.filterLocale),r=this.filterMode==="strict";for(let p of this.value){let S=ee({},p),V={searchFields:n,filterText:o,isStrictMode:r};(r&&(this.findFilteredNodes(S,V)||this.isFilterMatched(S,V))||!r&&(this.isFilterMatched(S,V)||this.findFilteredNodes(S,V)))&&this.filteredNodes.push(S)}}this.updateSerializedValue(),this.onFilter.emit({filter:i,filteredValue:this.filteredNodes})}resetFilter(){this.filteredNodes=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}scrollToVirtualIndex(e){this.virtualScroll&&this.scroller?.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}findFilteredNodes(e,i){if(e){let n=!1;if(e.children){let o=[...e.children];e.children=[];for(let r of o){let p=ee({},r);this.isFilterMatched(p,i)&&(n=!0,e.children.push(p))}}if(n)return e.expanded=!0,!0}}isFilterMatched(e,i){let{searchFields:n,filterText:o,isStrictMode:r}=i,p=!1;for(let S of n)Oe(String(it(e,S))).toLocaleLowerCase(this.filterLocale).indexOf(o)>-1&&(p=!0);return(!p||r&&!this.isNodeLeaf(e))&&(p=this.findFilteredNodes(e,{searchFields:n,filterText:o,isStrictMode:r})||p),p}getIndex(e,i){let n=e.getItemOptions;return n?n(i).index:i}getBlockableElement(){return this.el.nativeElement.children[0]}ngOnDestroy(){this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragStopSubscription&&this.dragStopSubscription.unsubscribe(),super.ngOnDestroy()}static \u0275fac=function(i){return new(i||t)(te(rt,8))};static \u0275cmp=R({type:t,selectors:[["p-tree"]],contentQueries:function(i,n,o){if(i&1&&(T(o,It,4),T(o,cn,4),T(o,dn,4),T(o,pn,4),T(o,un,4),T(o,gn,4),T(o,fn,4),T(o,hn,4),T(o,mn,4),T(o,_n,4),T(o,Z,4)),i&2){let r;m(r=_())&&(n.filterTemplate=r.first),m(r=_())&&(n.nodeTemplate=r.first),m(r=_())&&(n.headerTemplate=r.first),m(r=_())&&(n.footerTemplate=r.first),m(r=_())&&(n.loaderTemplate=r.first),m(r=_())&&(n.emptyMessageTemplate=r.first),m(r=_())&&(n.togglerIconTemplate=r.first),m(r=_())&&(n.checkboxIconTemplate=r.first),m(r=_())&&(n.loadingIconTemplate=r.first),m(r=_())&&(n.filterIconTemplate=r.first),m(r=_())&&(n.templates=r)}},viewQuery:function(i,n){if(i&1&&(M(It,5),M(yn,5),M(bn,5),M(vn,5)),i&2){let o;m(o=_())&&(n.filterViewChild=o.first),m(o=_())&&(n.scroller=o.first),m(o=_())&&(n.wrapperViewChild=o.first),m(o=_())&&(n.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,n){i&1&&x("drop",function(r){return n.handleDropEvent(r)})("dragover",function(r){return n.handleDragOverEvent(r)})("dragenter",function(){return n.handleDragEnterEvent()})("dragleave",function(r){return n.handleDragLeaveEvent(r)}),i&2&&f(n.cn(n.cx("root"),n.styleClass))},inputs:{value:"value",selectionMode:"selectionMode",loadingMode:"loadingMode",selection:"selection",styleClass:"styleClass",contextMenu:"contextMenu",draggableScope:"draggableScope",droppableScope:"droppableScope",draggableNodes:[2,"draggableNodes","draggableNodes",b],droppableNodes:[2,"droppableNodes","droppableNodes",b],metaKeySelection:[2,"metaKeySelection","metaKeySelection",b],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",b],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",b],loading:[2,"loading","loading",b],loadingIcon:"loadingIcon",emptyMessage:"emptyMessage",ariaLabel:"ariaLabel",togglerAriaLabel:"togglerAriaLabel",ariaLabelledBy:"ariaLabelledBy",validateDrop:[2,"validateDrop","validateDrop",b],filter:[2,"filter","filter",b],filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",b],filterBy:"filterBy",filterMode:"filterMode",filterOptions:"filterOptions",filterPlaceholder:"filterPlaceholder",filteredNodes:"filteredNodes",filterLocale:"filterLocale",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",b],virtualScroll:[2,"virtualScroll","virtualScroll",b],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",$],virtualScrollOptions:"virtualScrollOptions",indentation:[2,"indentation","indentation",$],_templateMap:"_templateMap",trackBy:"trackBy",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",b]},outputs:{selectionChange:"selectionChange",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onNodeContextMenuSelect:"onNodeContextMenuSelect",onNodeDoubleClick:"onNodeDoubleClick",onNodeDrop:"onNodeDrop",onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange",onFilter:"onFilter"},features:[ie([xe]),ne,Re],decls:7,vars:6,consts:[["filter",""],["scroller",""],["content",""],["treeNode",""],["loader",""],["wrapper",""],["emptyFilter",""],[3,"class",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"class"],[4,"ngIf"],["data-p-icon","spinner","spin","",3,"class",4,"ngIf"],["data-p-icon","spinner","spin",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["pInputText","","type","search","autocomplete","off",3,"keydown.enter","input","pAutoFocus"],["data-p-icon","search",3,"class",4,"ngIf"],["data-p-icon","search"],[3,"items","tabindex","styleClass","style","scrollHeight","itemSize","lazy","options","onScroll","onScrollIndexChange","onLazyLoad",4,"ngIf"],[3,"onScroll","onScrollIndexChange","onLazyLoad","items","tabindex","styleClass","scrollHeight","itemSize","lazy","options"],["role","tree",3,"class","ngClass","style",4,"ngIf"],["role","tree",3,"ngClass"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode"],["role","tree",3,"class",4,"ngIf"],["role","tree"],[3,"node","firstChild","lastChild","index","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild","index","level","loadingMode"],[4,"ngIf","ngIfElse"]],template:function(i,n){if(i&1&&(d(0,En,3,4,"div",7)(1,kn,1,0,"ng-container",8),Q(2,Dn,1,4,"ng-container")(3,Hn,1,1,"p-iconfield",9),d(4,Wn,3,2,"ng-container",10)(5,Xn,3,5,"div",7)(6,Zn,1,0,"ng-container",8)),i&2){let o;s("ngIf",n.loading&&n.loadingMode==="mask"),c(),s("ngTemplateOutlet",n.headerTemplate||n._headerTemplate),c(),B(n.filterTemplate||n._filterTemplate?2:3),c(2),s("ngIf",(o=n.getRootNode())==null?null:o.length),c(),s("ngIf",!n.loading&&(n.getRootNode()==null||n.getRootNode().length===0)),c(),s("ngTemplateOutlet",n.footerTemplate||n._footerTemplate)}},dependencies:[K,We,le,re,q,xt,H,ht,Le,dt,ae,bt,vt,ti,at,ve],encapsulation:2})}return t})(),Ko=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Ce,H,H]})}return t})();var Mt=`
|
|
186
|
-
.p-treeselect {
|
|
187
|
-
display: inline-flex;
|
|
188
|
-
cursor: pointer;
|
|
189
|
-
position: relative;
|
|
190
|
-
user-select: none;
|
|
191
|
-
background: dt('treeselect.background');
|
|
192
|
-
border: 1px solid dt('treeselect.border.color');
|
|
193
|
-
transition:
|
|
194
|
-
background dt('treeselect.transition.duration'),
|
|
195
|
-
color dt('treeselect.transition.duration'),
|
|
196
|
-
border-color dt('treeselect.transition.duration'),
|
|
197
|
-
outline-color dt('treeselect.transition.duration'),
|
|
198
|
-
box-shadow dt('treeselect.transition.duration');
|
|
199
|
-
border-radius: dt('treeselect.border.radius');
|
|
200
|
-
outline-color: transparent;
|
|
201
|
-
box-shadow: dt('treeselect.shadow');
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
.p-treeselect:not(.p-disabled):hover {
|
|
205
|
-
border-color: dt('treeselect.hover.border.color');
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
.p-treeselect:not(.p-disabled).p-focus {
|
|
209
|
-
border-color: dt('treeselect.focus.border.color');
|
|
210
|
-
box-shadow: dt('treeselect.focus.ring.shadow');
|
|
211
|
-
outline: dt('treeselect.focus.ring.width') dt('treeselect.focus.ring.style') dt('treeselect.focus.ring.color');
|
|
212
|
-
outline-offset: dt('treeselect.focus.ring.offset');
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.p-treeselect.p-variant-filled {
|
|
216
|
-
background: dt('treeselect.filled.background');
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.p-treeselect.p-variant-filled:not(.p-disabled):hover {
|
|
220
|
-
background: dt('treeselect.filled.hover.background');
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.p-treeselect.p-variant-filled.p-focus {
|
|
224
|
-
background: dt('treeselect.filled.focus.background');
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
.p-treeselect.p-invalid {
|
|
228
|
-
border-color: dt('treeselect.invalid.border.color');
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
.p-treeselect.p-disabled {
|
|
232
|
-
opacity: 1;
|
|
233
|
-
background: dt('treeselect.disabled.background');
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.p-treeselect-clear-icon {
|
|
237
|
-
align-self: center;
|
|
238
|
-
color: dt('treeselect.clear.icon.color');
|
|
239
|
-
inset-inline-end: dt('treeselect.dropdown.width');
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
.p-treeselect-dropdown {
|
|
243
|
-
display: flex;
|
|
244
|
-
align-items: center;
|
|
245
|
-
justify-content: center;
|
|
246
|
-
flex-shrink: 0;
|
|
247
|
-
background: transparent;
|
|
248
|
-
color: dt('treeselect.dropdown.color');
|
|
249
|
-
width: dt('treeselect.dropdown.width');
|
|
250
|
-
border-start-end-radius: dt('border.radius.md');
|
|
251
|
-
border-end-end-radius: dt('border.radius.md');
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
.p-treeselect-label-container {
|
|
255
|
-
overflow: hidden;
|
|
256
|
-
flex: 1 1 auto;
|
|
257
|
-
cursor: pointer;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.p-treeselect-label {
|
|
261
|
-
display: flex;
|
|
262
|
-
align-items: center;
|
|
263
|
-
gap: calc(dt('treeselect.padding.y') / 2);
|
|
264
|
-
white-space: nowrap;
|
|
265
|
-
cursor: pointer;
|
|
266
|
-
overflow: hidden;
|
|
267
|
-
text-overflow: ellipsis;
|
|
268
|
-
padding: dt('treeselect.padding.y') dt('treeselect.padding.x');
|
|
269
|
-
color: dt('treeselect.color');
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
.p-treeselect-label.p-placeholder {
|
|
273
|
-
color: dt('treeselect.placeholder.color');
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.p-treeselect.p-invalid .p-treeselect-label.p-placeholder {
|
|
277
|
-
color: dt('treeselect.invalid.placeholder.color');
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
.p-treeselect:has(.p-select-clear-icon) .p-treeselect-label {
|
|
281
|
-
padding-inline-end: dt('treeselect.padding.x');
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.p-treeselect.p-disabled .p-treeselect-label {
|
|
285
|
-
color: dt('treeselect.disabled.color');
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.p-treeselect-label-empty {
|
|
289
|
-
overflow: hidden;
|
|
290
|
-
visibility: hidden;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
.p-treeselect-overlay {
|
|
294
|
-
position: absolute;
|
|
295
|
-
top: 0;
|
|
296
|
-
left: 0;
|
|
297
|
-
background: dt('treeselect.overlay.background');
|
|
298
|
-
color: dt('treeselect.overlay.color');
|
|
299
|
-
border: 1px solid dt('treeselect.overlay.border.color');
|
|
300
|
-
border-radius: dt('treeselect.overlay.border.radius');
|
|
301
|
-
box-shadow: dt('treeselect.overlay.shadow');
|
|
302
|
-
overflow: hidden;
|
|
303
|
-
min-width: 100%;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
.p-treeselect-tree-container {
|
|
307
|
-
overflow: auto;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
.p-treeselect-empty-message {
|
|
311
|
-
padding: dt('treeselect.empty.message.padding');
|
|
312
|
-
background: transparent;
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
.p-treeselect-fluid {
|
|
316
|
-
display: flex;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
.p-treeselect-overlay .p-tree {
|
|
320
|
-
padding: dt('treeselect.tree.padding');
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
.p-treeselect-overlay .p-tree-loading {
|
|
324
|
-
min-height: 3rem;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
.p-treeselect-label .p-chip {
|
|
328
|
-
padding-block-start: calc(dt('treeselect.padding.y') / 2);
|
|
329
|
-
padding-block-end: calc(dt('treeselect.padding.y') / 2);
|
|
330
|
-
border-radius: dt('treeselect.chip.border.radius');
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
.p-treeselect-label:has(.p-chip) {
|
|
334
|
-
padding: calc(dt('treeselect.padding.y') / 2) calc(dt('treeselect.padding.x') / 2);
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
.p-treeselect-sm .p-treeselect-label {
|
|
338
|
-
font-size: dt('treeselect.sm.font.size');
|
|
339
|
-
padding-block: dt('treeselect.sm.padding.y');
|
|
340
|
-
padding-inline: dt('treeselect.sm.padding.x');
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
.p-treeselect-sm .p-treeselect-dropdown .p-icon {
|
|
344
|
-
font-size: dt('treeselect.sm.font.size');
|
|
345
|
-
width: dt('treeselect.sm.font.size');
|
|
346
|
-
height: dt('treeselect.sm.font.size');
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
.p-treeselect-lg .p-treeselect-label {
|
|
350
|
-
font-size: dt('treeselect.lg.font.size');
|
|
351
|
-
padding-block: dt('treeselect.lg.padding.y');
|
|
352
|
-
padding-inline: dt('treeselect.lg.padding.x');
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.p-treeselect-lg .p-treeselect-dropdown .p-icon {
|
|
356
|
-
font-size: dt('treeselect.lg.font.size');
|
|
357
|
-
width: dt('treeselect.lg.font.size');
|
|
358
|
-
height: dt('treeselect.lg.font.size');
|
|
359
|
-
}
|
|
360
|
-
`;var ni=["value"],ii=["header"],oi=["empty"],li=["footer"],ri=["clearicon"],ai=["triggericon"],si=["dropdownicon"],ci=["filtericon"],di=["closeicon"],pi=["itemtogglericon"],ui=["itemcheckboxicon"],gi=["itemloadingicon"],fi=["focusInput"],hi=["filter"],mi=["tree"],_i=["panel"],yi=["overlay"],bi=["firstHiddenFocusableEl"],vi=["lastHiddenFocusableEl"],Ti=(t,l)=>({$implicit:t,placeholder:l}),Dt=(t,l)=>({$implicit:t,options:l}),xi=t=>({"max-height":t}),Ci=t=>({$implicit:t}),Si=(t,l)=>({$implicit:t,partialSelected:l});function Ni(t,l){t&1&&C(0)}function Ii(t,l){if(t&1&&(I(0),d(1,Ni,1,0,"ng-container",22),w()),t&2){let e=a();c(),s("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",U(2,Ti,e.value,e.placeholder))}}function wi(t,l){if(t&1&&(I(0),L(1),w()),t&2){let e=a(2);c(),J(" ",e.label||"empty"," ")}}function Ei(t,l){if(t&1&&(h(0,"div"),N(1,"p-chip",24),y()),t&2){let e=l.$implicit,i=a(3);f(i.cx("chipItem")),c(),f(i.cx("pcChip")),s("label",e.label)}}function ki(t,l){if(t&1&&(I(0),L(1),w()),t&2){let e=a(3);c(),ge(e.placeholder||"empty")}}function Mi(t,l){if(t&1&&d(0,Ei,2,5,"div",23)(1,ki,2,1,"ng-container",17),t&2){let e=a(2);s("ngForOf",e.value),c(),s("ngIf",e.emptyValue)}}function Di(t,l){if(t&1&&d(0,wi,2,1,"ng-container",16)(1,Mi,2,2,"ng-template",null,4,k),t&2){let e=G(2),i=a();s("ngIf",i.display==="comma")("ngIfElse",e)}}function Vi(t,l){if(t&1){let e=D();F(),h(0,"svg",27),x("click",function(n){u(e);let o=a(2);return g(o.clear(n))}),y()}if(t&2){let e=a(2);f(e.cx("clearIcon"))}}function Oi(t,l){}function Fi(t,l){t&1&&d(0,Oi,0,0,"ng-template")}function Li(t,l){if(t&1){let e=D();h(0,"span",28),x("click",function(n){u(e);let o=a(2);return g(o.clear(n))}),d(1,Fi,1,0,null,29),y()}if(t&2){let e=a(2);f(e.cx("clearIcon")),c(),s("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function Ai(t,l){if(t&1&&(I(0),d(1,Vi,1,2,"svg",25)(2,Li,2,3,"span",26),w()),t&2){let e=a();c(),s("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),s("ngIf",e.clearIconTemplate||e.clearIconTemplate)}}function Hi(t,l){if(t&1&&(F(),N(0,"svg",30)),t&2){let e=a();f(e.cx("dropdownIcon"))}}function Pi(t,l){}function zi(t,l){t&1&&d(0,Pi,0,0,"ng-template")}function Ri(t,l){if(t&1&&(h(0,"span"),d(1,zi,1,0,null,29),y()),t&2){let e=a();f(e.cx("dropdownIcon")),c(),s("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate||e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Qi(t,l){t&1&&C(0)}function Bi(t,l){t&1&&C(0)}function Ui(t,l){if(t&1&&d(0,Bi,1,0,"ng-container",29),t&2){let e=a(3);s("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function $i(t,l){t&1&&(I(0),d(1,Ui,1,1,"ng-template",null,9,k),w())}function qi(t,l){t&1&&C(0)}function Ki(t,l){if(t&1&&d(0,qi,1,0,"ng-container",22),t&2){let e=l.$implicit,i=a(3);s("ngTemplateOutlet",i.itemTogglerIconTemplate||i._itemTogglerIconTemplate)("ngTemplateOutletContext",A(2,Ci,e))}}function ji(t,l){t&1&&d(0,Ki,1,4,"ng-template",null,10,k)}function Wi(t,l){t&1&&C(0)}function Gi(t,l){if(t&1&&d(0,Wi,1,0,"ng-container",22),t&2){let e=l.$implicit,i=l.partialSelected,n=a(3);s("ngTemplateOutlet",n.itemCheckboxIconTemplate||n._itemCheckboxIconTemplate)("ngTemplateOutletContext",U(2,Si,e,i))}}function Yi(t,l){t&1&&d(0,Gi,1,5,"ng-template",null,11,k)}function Ji(t,l){t&1&&C(0)}function Xi(t,l){if(t&1&&d(0,Ji,1,0,"ng-container",29),t&2){let e=a(3);s("ngTemplateOutlet",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate)}}function Zi(t,l){t&1&&d(0,Xi,1,1,"ng-template",null,12,k)}function eo(t,l){t&1&&C(0)}function to(t,l){if(t&1){let e=D();h(0,"div",15,5)(2,"span",31,6),x("focus",function(n){u(e);let o=a();return g(o.onFirstHiddenFocus(n))}),y(),d(4,Qi,1,0,"ng-container",22),h(5,"div",15)(6,"p-tree",32,7),x("selectionChange",function(n){u(e);let o=a();return g(o.onSelectionChange(n))})("onNodeExpand",function(n){u(e);let o=a();return g(o.nodeExpand(n))})("onNodeCollapse",function(n){u(e);let o=a();return g(o.nodeCollapse(n))})("onNodeSelect",function(n){u(e);let o=a();return g(o.onSelect(n))})("onNodeUnselect",function(n){u(e);let o=a();return g(o.onUnselect(n))}),d(8,$i,3,0,"ng-container",17)(9,ji,2,0,null,17)(10,Yi,2,0,null,17)(11,Zi,2,0,null,17),y()(),d(12,eo,1,0,"ng-container",22),h(13,"span",31,8),x("focus",function(n){u(e);let o=a();return g(o.onLastHiddenFocus(n))}),y()()}if(t&2){let e=a();f(e.cn(e.cx("panel"),e.panelStyleClass,e.panelClass)),s("ngStyle",e.panelStyle),E("id",e.listId),c(2),E("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),s("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",U(40,Dt,e.value,e.options)),c(),f(e.cx("treeContainer")),s("ngStyle",A(43,xi,e.scrollHeight)),c(),s("value",e.options)("propagateSelectionDown",e.propagateSelectionDown)("propagateSelectionUp",e.propagateSelectionUp)("selectionMode",e.selectionMode)("selection",e.value)("metaKeySelection",e.metaKeySelection)("emptyMessage",e.emptyMessage)("filter",e.filter)("filterBy",e.filterBy)("filterMode",e.filterMode)("filterPlaceholder",e.filterPlaceholder)("filterLocale",e.filterLocale)("filteredNodes",e.filteredNodes)("virtualScroll",e.virtualScroll)("virtualScrollItemSize",e.virtualScrollItemSize)("virtualScrollOptions",e.virtualScrollOptions)("_templateMap",e.templateMap)("loading",e.loading)("filterInputAutoFocus",e.filterInputAutoFocus),c(2),s("ngIf",e.emptyTemplate||e._emptyTemplate),c(),s("ngIf",e.itemTogglerIconTemplate||e._itemTogglerIconTemplate),c(),s("ngIf",e.itemCheckboxIconTemplate||e._itemCheckboxIconTemplate),c(),s("ngIf",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate),c(),s("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",U(45,Dt,e.value,e.options)),c(),E("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var no=`
|
|
361
|
-
${Mt}
|
|
362
|
-
|
|
363
|
-
/* For PrimeNG */
|
|
364
|
-
|
|
365
|
-
.p-treeselect.ng-invalid.ng-dirty {
|
|
366
|
-
border-color: dt('treeselect.invalid.border.color');
|
|
367
|
-
}
|
|
368
|
-
|
|
369
|
-
p-treeselect.ng-invalid.ng-dirty.p-focus {
|
|
370
|
-
border-color: dt('treeselect.focus.border.color');
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
p-treeselect.ng-invalid.ng-dirty .p-treeselect-label.p-placeholder {
|
|
374
|
-
color: dt('treeselect.invalid.placeholder.color');
|
|
375
|
-
}
|
|
376
|
-
`,io={root:({instance:t})=>ee({position:t.$appendTo()==="self"?"relative":void 0},t.containerStyle)},oo={root:({instance:t})=>["p-treeselect p-component p-inputwrapper",{"p-treeselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-focus":t.focused,"p-variant-filled":t.$variant()==="filled","p-inputwrapper-filled":!t.emptyValue,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-treeselect-open":t.overlayVisible,"p-treeselect-clearable":t.showClear,"p-treeselect-fluid":t.hasFluid,"p-treeselect-sm p-inputfield-sm":t.size()==="small","p-treeselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-treeselect-label-container",label:({instance:t})=>["p-treeselect-label",{"p-placeholder":t.label===t.placeholder,"p-treeselect-label-empty":!t.placeholder&&t.emptyValue}],clearIcon:"p-treeselect-clear-icon",chip:"p-treeselect-chip-item",pcChip:"p-treeselect-chip",dropdown:"p-treeselect-dropdown",dropdownIcon:"p-treeselect-dropdown-icon",panel:"p-treeselect-overlay p-component-overlay p-component",treeContainer:"p-treeselect-tree-container",emptyMessage:"p-treeselect-empty-message"},Vt=(()=>{class t extends be{name="treeselect";theme=no;classes=oo;inlineStyles=io;static \u0275fac=(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})();static \u0275prov=j({token:t,factory:t.\u0275fac})}return t})();var lo={provide:Je,useExisting:ce(()=>Se),multi:!0},Se=(()=>{class t extends st{inputId;scrollHeight="400px";metaKeySelection=!1;display="comma";selectionMode="single";tabindex="0";ariaLabel;ariaLabelledBy;placeholder;panelClass;panelStyle;panelStyleClass;containerStyle;containerStyleClass;labelStyle;labelStyleClass;overlayOptions;emptyMessage="";filter=!1;filterBy="label";filterMode="lenient";filterPlaceholder;filterLocale;filterInputAutoFocus=!0;propagateSelectionDown=!0;propagateSelectionUp=!0;showClear=!1;resetFilterOnHide=!0;virtualScroll;virtualScrollItemSize;virtualScrollOptions;autofocus;get options(){return this._options}set options(e){this._options=e,this.updateTreeState()}loading;size=oe();variant=oe();fluid=oe(void 0,{transform:b});appendTo=oe(void 0);onNodeExpand=new v;onNodeCollapse=new v;onShow=new v;onHide=new v;onClear=new v;onFilter=new v;onFocus=new v;onBlur=new v;onNodeUnselect=new v;onNodeSelect=new v;$appendTo=P(()=>this.appendTo()||this.config.overlayAppendTo());focusInput;filterViewChild;treeViewChild;panelEl;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;$variant=P(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());pcFluid=O(ct,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}filteredNodes;filterValue=null;serializedValue;valueTemplate;headerTemplate;emptyTemplate;footerTemplate;clearIconTemplate;triggerIconTemplate;dropdownIconTemplate;filterIconTemplate;closeIconTemplate;itemTogglerIconTemplate;itemCheckboxIconTemplate;itemLoadingIconTemplate;templates;_valueTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_clearIconTemplate;_triggerIconTemplate;_filterIconTemplate;_closeIconTemplate;_itemTogglerIconTemplate;_itemCheckboxIconTemplate;_itemLoadingIconTemplate;_dropdownIconTemplate;focused;overlayVisible;value;expandedNodes=[];_options;templateMap;listId="";_componentStyle=O(Vt);onHostClick(e){this.onClick(e)}ngOnInit(){super.ngOnInit(),this.listId=ot("pn_id_")+"_list",this.updateTreeState()}ngAfterContentInit(){this.templates.length&&(this.templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"value":this._valueTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"itemtogglericon":this._itemTogglerIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemloadingicon":this._itemLoadingIconTemplate=e.template;break;default:e.name?this.templateMap[e.name]=e.template:this.valueTemplate=e.template;break}})}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.filter)Ve(this.filterValue)&&this.treeViewChild?._filter(this.filterValue),this.filterInputAutoFocus&&this.filterViewChild?.nativeElement.focus();else{let i=se(this.panelEl?.nativeElement);i&&i.length>0&&i[0].focus()}break}}onOverlayBeforeHide(e){let i=se(this.el.nativeElement);i&&i.length>0&&i[0].focus()}onSelectionChange(e){this.value=e,this.onModelChange(this.value),this.cd.markForCheck()}onClick(e){this.$disabled()||!this.overlayViewChild?.el?.nativeElement?.contains(e.target)&&!z(e.target,"p-treeselect-close")&&!z(e.target,"p-checkbox-box")&&!z(e.target,"p-checkbox-icon")&&(this.overlayVisible?this.hide():this.show(),this.focusInput?.nativeElement.focus())}onKeyDown(e){switch(e.code){case"ArrowDown":this.overlayVisible||(this.show(),e.preventDefault()),this.onArrowDown(e),e.preventDefault();break;case"Space":case"Enter":this.overlayVisible||(this.show(),e.preventDefault());break;case"Escape":this.overlayVisible&&(this.hide(),this.focusInput?.nativeElement.focus(),e.preventDefault());break;case"Tab":this.onTabKey(e);break;default:break}}onFilterInput(e){this.filterValue=e.target.value,this.treeViewChild?._filter(this.filterValue),this.onFilter.emit({filter:this.filterValue,filteredValue:this.treeViewChild?.filteredNodes}),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}onArrowDown(e){if(this.overlayVisible&&this.panelEl?.nativeElement){let i=se(this.panelEl.nativeElement,".p-tree-node");i&&i.length>0&&i[0].focus(),e.preventDefault()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?et(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;X(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?tt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;X(i)}show(){this.overlayVisible=!0}hide(e){this.overlayVisible=!1,this.resetFilter(),this.onHide.emit(e),this.cd.markForCheck()}clear(e){this.value=null,this.resetExpandedNodes(),this.resetPartialSelected(),this.onModelChange(this.value),this.onClear.emit(),e.stopPropagation()}checkValue(){return this.value!==null&&Ve(this.value)}onTabKey(e,i=!1){i||(this.overlayVisible&&this.hasFocusableElements()?(X(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault()):this.overlayVisible&&this.hide(this.filter))}hasFocusableElements(){return se(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}resetFilter(){this.filter&&!this.resetFilterOnHide?(this.filteredNodes=this.treeViewChild?.filteredNodes,this.treeViewChild?.resetFilter()):this.filterValue=null}updateTreeState(){if(this.value){let e=this.selectionMode==="single"?[this.value]:[...this.value];this.resetExpandedNodes(),this.resetPartialSelected(),e&&this.options&&this.updateTreeBranchState(null,null,e)}}updateTreeBranchState(e,i,n){if(e){if(this.isSelected(e)&&(this.expandPath(i),n.splice(n.indexOf(e),1)),n.length>0&&e.children)for(let o of e.children)this.updateTreeBranchState(o,[...i,e],n)}else for(let o of this.options)this.updateTreeBranchState(o,[],n)}expandPath(e){for(let i of e)i.expanded=!0;this.expandedNodes=[...e]}nodeExpand(e){this.onNodeExpand.emit(e),this.expandedNodes.push(e.node),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}nodeCollapse(e){this.onNodeCollapse.emit(e),this.expandedNodes.splice(this.expandedNodes.indexOf(e.node),1),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}resetExpandedNodes(){for(let e of this.expandedNodes)e.expanded=!1;this.expandedNodes=[]}resetPartialSelected(e=this.options){if(e)for(let i of e)i.partialSelected=!1,i.children&&i.children?.length>0&&this.resetPartialSelected(i.children)}findSelectedNodes(e,i,n){if(e){if(this.isSelected(e)&&(n.push(e),delete i[e.key]),Object.keys(i).length&&e.children)for(let o of e.children)this.findSelectedNodes(o,i,n)}else for(let o of this.options)this.findSelectedNodes(o,i,n)}isSelected(e){return this.findIndexInSelection(e)!=-1}findIndexInSelection(e){let i=-1;if(this.value)if(this.selectionMode==="single")i=this.value.key&&this.value.key===e.key||this.value==e?0:-1;else for(let n=0;n<this.value.length;n++){let o=this.value[n];if(o.key&&o.key===e.key||o==e){i=n;break}}return i}onSelect(e){this.onNodeSelect.emit(e),this.selectionMode==="single"&&(this.hide(),this.focusInput?.nativeElement.focus())}onUnselect(e){this.onNodeUnselect.emit(e)}onInputFocus(e){this.$disabled()||(this.focused=!0,this.onFocus.emit(e))}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}writeControlValue(e){this.value=e,this.updateTreeState(),this.cd.markForCheck()}get emptyValue(){return!this.value||Object.keys(this.value).length===0}get emptyOptions(){return!this.options||this.options.length===0}get label(){let e=this.value||[];return e.length?e.map(i=>i.label).join(", "):this.selectionMode==="single"&&this.value?e.label:this.placeholder}static \u0275fac=(()=>{let e;return function(n){return(e||(e=W(t)))(n||t)}})();static \u0275cmp=R({type:t,selectors:[["p-treeSelect"],["p-treeselect"],["p-tree-select"]],contentQueries:function(i,n,o){if(i&1&&(T(o,ni,4),T(o,ii,4),T(o,oi,4),T(o,li,4),T(o,ri,4),T(o,ai,4),T(o,si,4),T(o,ci,4),T(o,di,4),T(o,pi,4),T(o,ui,4),T(o,gi,4),T(o,Z,4)),i&2){let r;m(r=_())&&(n.valueTemplate=r.first),m(r=_())&&(n.headerTemplate=r.first),m(r=_())&&(n.emptyTemplate=r.first),m(r=_())&&(n.footerTemplate=r.first),m(r=_())&&(n.clearIconTemplate=r.first),m(r=_())&&(n.triggerIconTemplate=r.first),m(r=_())&&(n.dropdownIconTemplate=r.first),m(r=_())&&(n.filterIconTemplate=r.first),m(r=_())&&(n.closeIconTemplate=r.first),m(r=_())&&(n.itemTogglerIconTemplate=r.first),m(r=_())&&(n.itemCheckboxIconTemplate=r.first),m(r=_())&&(n.itemLoadingIconTemplate=r.first),m(r=_())&&(n.templates=r)}},viewQuery:function(i,n){if(i&1&&(M(fi,5),M(hi,5),M(mi,5),M(_i,5),M(yi,5),M(bi,5),M(vi,5)),i&2){let o;m(o=_())&&(n.focusInput=o.first),m(o=_())&&(n.filterViewChild=o.first),m(o=_())&&(n.treeViewChild=o.first),m(o=_())&&(n.panelEl=o.first),m(o=_())&&(n.overlayViewChild=o.first),m(o=_())&&(n.firstHiddenFocusableElementOnOverlay=o.first),m(o=_())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:4,hostBindings:function(i,n){i&1&&x("click",function(r){return n.onHostClick(r)}),i&2&&(Y(n.sx("root")),f(n.cn(n.cx("root"),n.containerStyleClass)))},inputs:{inputId:"inputId",scrollHeight:"scrollHeight",metaKeySelection:[2,"metaKeySelection","metaKeySelection",b],display:"display",selectionMode:"selectionMode",tabindex:"tabindex",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",placeholder:"placeholder",panelClass:"panelClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",containerStyle:"containerStyle",containerStyleClass:"containerStyleClass",labelStyle:"labelStyle",labelStyleClass:"labelStyleClass",overlayOptions:"overlayOptions",emptyMessage:"emptyMessage",filter:[2,"filter","filter",b],filterBy:"filterBy",filterMode:"filterMode",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",b],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",b],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",b],showClear:[2,"showClear","showClear",b],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",b],virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",autofocus:[2,"autofocus","autofocus",b],options:"options",loading:[2,"loading","loading",b],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"]},outputs:{onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onShow:"onShow",onHide:"onHide",onClear:"onClear",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onNodeUnselect:"onNodeUnselect",onNodeSelect:"onNodeSelect"},features:[ie([lo,Vt]),ne],decls:16,vars:28,consts:[["focusInput",""],["defaultValueTemplate",""],["overlay",""],["content",""],["chipsValueTemplate",""],["panel",""],["firstHiddenFocusableEl",""],["tree",""],["lastHiddenFocusableEl",""],["empty",""],["togglericon",""],["checkboxicon",""],["loadingicon",""],[1,"p-hidden-accessible"],["type","text","role","combobox","readonly","",3,"focus","blur","keydown","pAutoFocus"],[3,"ngStyle"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["role","button","aria-haspopup","tree"],["data-p-icon","chevron-down",3,"class",4,"ngIf"],[3,"class",4,"ngIf"],[3,"visibleChange","onAnimationStart","onBeforeHide","onShow","onHide","hostAttrSelector","visible","options","target","appendTo"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class",4,"ngFor","ngForOf"],[3,"label"],["data-p-icon","times",3,"class","click",4,"ngIf"],[3,"class","click",4,"ngIf"],["data-p-icon","times",3,"click"],[3,"click"],[4,"ngTemplateOutlet"],["data-p-icon","chevron-down"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],[3,"selectionChange","onNodeExpand","onNodeCollapse","onNodeSelect","onNodeUnselect","value","propagateSelectionDown","propagateSelectionUp","selectionMode","selection","metaKeySelection","emptyMessage","filter","filterBy","filterMode","filterPlaceholder","filterLocale","filteredNodes","virtualScroll","virtualScrollItemSize","virtualScrollOptions","_templateMap","loading","filterInputAutoFocus"]],template:function(i,n){if(i&1){let o=D();h(0,"div",13)(1,"input",14,0),x("focus",function(p){return u(o),g(n.onInputFocus(p))})("blur",function(p){return u(o),g(n.onInputBlur(p))})("keydown",function(p){return u(o),g(n.onKeyDown(p))}),y()(),h(3,"div")(4,"div",15),d(5,Ii,2,5,"ng-container",16)(6,Di,3,2,"ng-template",null,1,k),y()(),d(8,Ai,3,2,"ng-container",17),h(9,"div",18),d(10,Hi,1,2,"svg",19)(11,Ri,2,3,"span",20),y(),h(12,"p-overlay",21,2),Ue("visibleChange",function(p){return u(o),Be(n.overlayVisible,p)||(n.overlayVisible=p),g(p)}),x("onAnimationStart",function(p){return u(o),g(n.onOverlayAnimationStart(p))})("onBeforeHide",function(p){return u(o),g(n.onOverlayBeforeHide(p))})("onShow",function(p){return u(o),g(n.onShow.emit(p))})("onHide",function(p){return u(o),g(n.hide(p))}),d(14,to,15,48,"ng-template",null,3,k),y()}if(i&2){let o=G(7);c(),s("pAutoFocus",n.autofocus),E("id",n.inputId)("disabled",n.$disabled()?"":void 0)("tabindex",n.$disabled()?-1:n.tabindex)("aria-controls",n.overlayVisible?n.listId:null)("aria-haspopup","tree")("aria-expanded",n.overlayVisible??!1)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel||(n.label==="p-emptylabel"?void 0:n.label)),c(2),f(n.cx("labelContainer")),c(),f(n.cn(n.cx("label"),n.labelStyleClass)),s("ngStyle",n.labelStyle),c(),s("ngIf",n.valueTemplate||n._valueTemplate)("ngIfElse",o),c(3),s("ngIf",n.checkValue()&&!n.$disabled()&&n.showClear),c(),f(n.cx("dropdown")),E("aria-expanded",n.overlayVisible??!1)("aria-label","treeselect trigger"),c(),s("ngIf",!n.triggerIconTemplate&&!n._triggerIconTemplate&&!n.dropdownIconTemplate&&!n._dropdownIconTemplate),c(),s("ngIf",n.triggerIconTemplate||n._triggerIconTemplate||n.dropdownIconTemplate||n._dropdownIconTemplate),c(),s("hostAttrSelector",n.attrSelector),Qe("visible",n.overlayVisible),s("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())}},dependencies:[K,le,re,q,fe,yt,H,Ce,ve,mt,Te,_t],encapsulation:2,changeDetection:0})}return t})(),Ot=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=ue({type:t});static \u0275inj=de({imports:[Se,H,H]})}return t})();var Ne=class t{signalRClient=O(Ye);continuedCategories$;allCategories$;_onOpenTreeSelector=new He;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(l){this.continuedCategories$=this.onOpenTreeSelector$.pipe(ke(this.signalRClient.recacheCategory$),Ee((e,[i,n])=>n||!e.length?(this.signalRClient.resetCategoryCache(),l.get("/API/catalog/category/ActiveOptions")):Ie(e),[]),we(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(ke(this.signalRClient.recacheCategory$),Ee((e,[i,n])=>n||!e.length?l.get("/API/catalog/category/SelectOptions"):Ie(e),[]),we(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||t)(ze(ye))};static \u0275prov=j({token:t,factory:t.\u0275fac,providedIn:"root"})};function co(t,l){t&1&&C(0)}function po(t,l){if(t&1&&(h(0,"p-floatLabel",1),d(1,co,1,0,"ng-container",2),h(2,"label",3),L(3,"Category"),y()()),t&2){a();let e=G(3);c(),s("ngTemplateOutlet",e)}}function uo(t,l){t&1&&C(0)}function go(t,l){if(t&1&&d(0,uo,1,0,"ng-container",2),t&2){a();let e=G(3);s("ngTemplateOutlet",e)}}function fo(t,l){if(t&1&&(h(0,"div",6),L(1),y()),t&2){let e=a(2);s("matTooltip",e.selectedCategoryLabel),c(),J(" ",e.selectedCategoryLabel," ")}}function ho(t,l){if(t&1){let e=D();h(0,"p-treeSelect",4),qe(1,"async"),x("click",function(){u(e);let n=a();return g(n.loadCategories())})("ngModelChange",function(n){u(e);let o=a();return g(o.onSelectCategory(n))})("onClear",function(){u(e);let n=a();return g(n.onClear())}),d(2,fo,2,2,"ng-template",5),y()}if(t&2){let e=a();s("options",Ke(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.showLabel?"":e.placeholder)}}var Ft=class t{constructor(l,e){this.http=l;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;placeholder="Select Category";isInitializedCategoryLabel=!1;selectedCategory;selectedCategoryID;selectedCategoryIDChange=new v;onSelectedCategory=je();selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let l=document.querySelector("body");this.top=l.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(he.IsEmpty(this.selectedCategoryID)&&he.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(Pe(l=>{this.selectedCategory=this.findSelectedCategory(l,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(l){this.selectedCategory=l,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=l?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID),this.onSelectedCategory.emit(this.selectedCategory)}generateLabelSelectedCategory(l){if(l){let e=[];this.selectedCategoryLabel="";do e=[...e,l.label],l=l.parent;while(l!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(l,e){if(he.IsNotEmpty(e))for(let i of l){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(o=>(o.parent=i,o));let n=this.findSelectedCategory(i.children,e);if(n)return n}}else return null}loadCategories(){try{let l=document.querySelector(".p-overlay.p-component"),e=this.top+l.getBoundingClientRect().top,i=l.getAttribute("style")||"";l.setAttribute("style",`${i} top: ${e+this.top}px;`)}catch(l){console.error("Error adjusting top position:",l)}finally{this.treeSelector.onOpenTreeSelector()}}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||t)(te(ye),te(Ne))};static \u0275cmp=R({type:t,selectors:[["POS-product-category-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",placeholder:"placeholder",isInitializedCategoryLabel:"isInitializedCategoryLabel",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange",onSelectedCategory:"onSelectedCategory"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(Q(0,po,4,1,"p-floatLabel",1)(1,go,1,1,"ng-container"),d(2,ho,3,6,"ng-template",null,0,k)),e&2&&B(i.showLabel?0:1)},dependencies:[K,q,ut,pt,Ot,Se,Z,ae,me,_e,St,Ct,Ge],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{Ce as a,Ko as b,Se as c,Ot as d,Ne as e,Ft as f};
|