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.
Files changed (288) hide show
  1. package/browser/chunk-2BGWWBHC.js +3 -0
  2. package/browser/{chunk-KL5VH4OU.js → chunk-2G2N3QIY.js} +1 -1
  3. package/browser/{chunk-IAFZ6YAO.js → chunk-2P6YEJWK.js} +1 -1
  4. package/browser/{chunk-IR75FMI5.js → chunk-2PFGIE43.js} +1 -1
  5. package/browser/{chunk-O4SFEWMN.js → chunk-2RA23GAL.js} +1 -1
  6. package/browser/{chunk-TPHEWWHE.js → chunk-2S4MUH4L.js} +3 -3
  7. package/browser/chunk-2T2LYQDD.js +22 -0
  8. package/browser/chunk-2T52WAWX.js +380 -0
  9. package/browser/{chunk-PIYVELLT.js → chunk-2UJUXPQL.js} +1 -1
  10. package/browser/{chunk-KLZBTT2P.js → chunk-3F4KI5PR.js} +1 -1
  11. package/browser/chunk-3G2IUR3X.js +82 -0
  12. package/browser/{chunk-MXGNASOC.js → chunk-3ZFDZRWQ.js} +1 -1
  13. package/browser/{chunk-SYMXIBEB.js → chunk-42IETN73.js} +1 -1
  14. package/browser/{chunk-7EVERJPZ.js → chunk-44MS566M.js} +1 -1
  15. package/browser/{chunk-JGWQC4DI.js → chunk-45DQRELI.js} +1 -1
  16. package/browser/{chunk-FR4CH42S.js → chunk-45LBXHFM.js} +1 -1
  17. package/browser/{chunk-PLVOH67J.js → chunk-47TATTXM.js} +1 -1
  18. package/browser/{chunk-A4SCCZAY.js → chunk-4BMVHD44.js} +1 -1
  19. package/browser/{chunk-DJNB7COU.js → chunk-4BPD7IPB.js} +1 -1
  20. package/browser/{chunk-QCCKEP2R.js → chunk-4CLAEU7U.js} +1 -1
  21. package/browser/chunk-4GH7NXPQ.js +315 -0
  22. package/browser/{chunk-NJB3X4XL.js → chunk-4WDKKRLY.js} +1 -1
  23. package/browser/{chunk-FV3VHB7N.js → chunk-52X5HGTB.js} +1 -1
  24. package/browser/{chunk-U3WVC6SN.js → chunk-54PTN6TM.js} +1 -1
  25. package/browser/{chunk-EAXUIPR5.js → chunk-5A3WAD32.js} +1 -1
  26. package/browser/chunk-5A4BI6R4.js +1 -0
  27. package/browser/{chunk-TS6CZC3J.js → chunk-5ACAEXN7.js} +1 -1
  28. package/browser/{chunk-J3OQGBIN.js → chunk-5JDNG4HM.js} +1 -1
  29. package/browser/{chunk-XIXREDEB.js → chunk-5KVP2F7F.js} +1 -1
  30. package/browser/chunk-5O5D7WMM.js +1 -0
  31. package/browser/{chunk-BQAKWHPC.js → chunk-5SJZZU5V.js} +1 -1
  32. package/browser/{chunk-PQ65IMRY.js → chunk-5V62CV7A.js} +1 -1
  33. package/browser/{chunk-B6EKSPI2.js → chunk-5WD2XGU7.js} +1 -1
  34. package/browser/chunk-5X6HJLPO.js +1 -0
  35. package/browser/{chunk-5I74KDE7.js → chunk-5YVJIGMT.js} +1 -1
  36. package/browser/chunk-5ZFCEP2C.css +1 -0
  37. package/browser/{chunk-L3JI6OZ3.js → chunk-67JWJEWL.js} +1 -1
  38. package/browser/{chunk-UYXD7WPN.js → chunk-6AY5BHS7.js} +1 -1
  39. package/browser/{chunk-JGYO4OTZ.js → chunk-6CM3LOP5.js} +1 -1
  40. package/browser/{chunk-DELGLVJJ.js → chunk-6JM2R43J.js} +1 -1
  41. package/browser/chunk-6KAJXZU4.js +152 -0
  42. package/browser/{chunk-NERV3W42.js → chunk-6KD2XLEU.js} +1 -1
  43. package/browser/{chunk-FAGD2TBB.js → chunk-6PPAAIAS.js} +1 -1
  44. package/browser/{chunk-ELTC3POX.js → chunk-6SLXFBWF.js} +1 -1
  45. package/browser/chunk-6VWCIQNT.js +1 -0
  46. package/browser/{chunk-P2FSLJ4X.js → chunk-7EN4VWQC.js} +1 -1
  47. package/browser/{chunk-5DXDXIDO.js → chunk-7WAZVWJ7.js} +1 -1
  48. package/browser/chunk-7YBH2SXZ.js +151 -0
  49. package/browser/{chunk-S4ZRXSPZ.js → chunk-AD5QTGBG.js} +1 -1
  50. package/browser/chunk-ADRSDODY.js +1 -0
  51. package/browser/{chunk-7FUWLNHK.js → chunk-AL37NTTS.js} +1 -1
  52. package/browser/{chunk-B5ORO5G4.js → chunk-AM63STD6.js} +1 -1
  53. package/browser/{chunk-WKB7BKHN.js → chunk-ANWIC3AL.js} +1 -1
  54. package/browser/{chunk-LDDG4GE7.js → chunk-ARGOJ7DE.js} +1 -1
  55. package/browser/{chunk-QHWRBSOD.js → chunk-B2ZKTHHK.js} +1 -1
  56. package/browser/{chunk-KNQEOPID.js → chunk-B6RBXYBH.js} +1 -1
  57. package/browser/{chunk-RCC5SUNH.js → chunk-B7BEECTQ.js} +1 -1
  58. package/browser/{chunk-NM3RF6OH.js → chunk-BCNA556P.js} +1 -1
  59. package/browser/{chunk-I4WJ5CEN.js → chunk-BG4XRSKY.js} +1 -1
  60. package/browser/chunk-BOKRBOOE.js +334 -0
  61. package/browser/{chunk-PCAFUCUK.js → chunk-BQ7W6HVM.js} +1 -1
  62. package/browser/{chunk-EIH377TR.js → chunk-BQZPNTN2.js} +1 -1
  63. package/browser/chunk-BWBWSNUR.js +1095 -0
  64. package/browser/chunk-BWL4WXAD.js +1 -0
  65. package/browser/{chunk-N7C7P5QN.js → chunk-BZ2MTKI3.js} +1 -1
  66. package/browser/{chunk-LJMHI6I5.js → chunk-CDXAKDVU.js} +1 -1
  67. package/browser/{chunk-HYXSN2J6.js → chunk-CH2CJQUF.js} +1 -1
  68. package/browser/{chunk-HPPKFGND.js → chunk-CKUZYWD3.js} +1 -1
  69. package/browser/{chunk-EPINEYFX.js → chunk-CRXFERRX.js} +1 -1
  70. package/browser/{chunk-YXNBLVK4.js → chunk-CSSCB5H5.js} +1 -1
  71. package/browser/chunk-D4VXNK25.js +5 -0
  72. package/browser/chunk-D5IRUIA5.js +40 -0
  73. package/browser/{chunk-YMVBGQ2W.js → chunk-D7PYJVQX.js} +1 -1
  74. package/browser/{chunk-3MU2GNGM.js → chunk-DBEYMOMT.js} +1 -1
  75. package/browser/{chunk-O4IQZBVW.js → chunk-DFHK3QA3.js} +1 -1
  76. package/browser/{chunk-IJXCL7KL.js → chunk-DNBHVVDZ.js} +1 -1
  77. package/browser/{chunk-MFDMUMA4.js → chunk-DSGMEORC.js} +1 -1
  78. package/browser/chunk-DWWQ27MN.js +16 -0
  79. package/browser/chunk-DZSOQO6Z.js +1 -0
  80. package/browser/chunk-E7CKHP2W.js +1 -0
  81. package/browser/{chunk-OJ5SEYSF.js → chunk-EEJEVJEF.js} +1 -1
  82. package/browser/{chunk-HK2NKWCI.js → chunk-EHLQZKY6.js} +1 -1
  83. package/browser/{chunk-JXXEYFN7.js → chunk-EPSJXHC6.js} +1 -1
  84. package/browser/{chunk-6BGTH62C.js → chunk-EV4Q6ALX.js} +1 -1
  85. package/browser/{chunk-X6XUOWVT.js → chunk-FAUBVY2Z.js} +2 -2
  86. package/browser/{chunk-JXHHT6R2.js → chunk-FE7XNXYT.js} +1 -1
  87. package/browser/{chunk-B3LNBFJF.js → chunk-FHVQSZV4.js} +1 -1
  88. package/browser/{chunk-DB3W42KN.js → chunk-FJDNER3H.js} +1 -1
  89. package/browser/{chunk-33B62QHS.js → chunk-FO57E5BU.js} +1 -1
  90. package/browser/{chunk-EGADVOKH.js → chunk-FV4VN5TM.js} +1 -1
  91. package/browser/{chunk-5PWOYB4R.js → chunk-FVSWTMXM.js} +11 -11
  92. package/browser/chunk-G36EBMA4.js +1 -0
  93. package/browser/{chunk-DU7W2G2L.js → chunk-GA5UNKLN.js} +1 -1
  94. package/browser/{chunk-ETTSYVEZ.js → chunk-GB6NLAAI.js} +1 -1
  95. package/browser/{chunk-LODGW3WU.js → chunk-GF6UUBXR.js} +1 -1
  96. package/browser/{chunk-VO3NT5EH.js → chunk-GFBFG6KV.js} +1 -1
  97. package/browser/{chunk-TMQ7NWGZ.js → chunk-GFNPL4DE.js} +1 -1
  98. package/browser/{chunk-YQE3PJGM.js → chunk-GG2JYIHB.js} +2 -2
  99. package/browser/{chunk-LAQMHKSP.js → chunk-GNTFQRQT.js} +1 -1
  100. package/browser/{chunk-3CZ6HKSM.js → chunk-GQGYP4YJ.js} +1 -1
  101. package/browser/{chunk-XZFHDKIK.js → chunk-H6DX2XWJ.js} +1 -1
  102. package/browser/{chunk-OKEI5RKW.js → chunk-HE2B5Q63.js} +1 -1
  103. package/browser/{chunk-4CFMB4IK.js → chunk-HENPJSI6.js} +1 -1
  104. package/browser/chunk-HG5EY2AA.js +1 -0
  105. package/browser/chunk-HKYIKSF6.js +257 -0
  106. package/browser/{chunk-3MUHZKUR.js → chunk-HPPVU3Z2.js} +1 -1
  107. package/browser/{chunk-QGYIPOLS.js → chunk-HS26VQGJ.js} +1 -1
  108. package/browser/{chunk-U3EOEZ3B.js → chunk-HTUZHZ2W.js} +1 -1
  109. package/browser/{chunk-TPKU52VV.js → chunk-I46YKGKC.js} +1 -1
  110. package/browser/{chunk-GJIFUWGQ.js → chunk-ID2BNJTV.js} +1 -1
  111. package/browser/{chunk-NCT5IK4R.js → chunk-II43RP2H.js} +1 -1
  112. package/browser/{chunk-XWWKCPZS.js → chunk-IKX6MZV7.js} +1 -1
  113. package/browser/{chunk-GWL7ZN37.js → chunk-ITL6HDN2.js} +1 -1
  114. package/browser/{chunk-OLT6DXR7.js → chunk-IXBA7EIJ.js} +1 -1
  115. package/browser/{chunk-RFVQHGYD.js → chunk-IYQKU2EL.js} +4 -4
  116. package/browser/{chunk-GDPQI6PI.js → chunk-JBMBXZHF.js} +1 -1
  117. package/browser/{chunk-XKAKP3E6.js → chunk-JCTDORER.js} +1 -1
  118. package/browser/chunk-JM73PAXO.js +1 -0
  119. package/browser/{chunk-6DRTZA6S.js → chunk-JQFQEYSX.js} +1 -1
  120. package/browser/{chunk-3RGQWWNI.js → chunk-JSKJOCYV.js} +1 -1
  121. package/browser/{chunk-JRM47ALM.js → chunk-KCYEWNYP.js} +1 -1
  122. package/browser/{chunk-FR6L6XAP.js → chunk-KOF4TIVO.js} +1 -1
  123. package/browser/{chunk-RPJIPLQS.js → chunk-KPNDJV2U.js} +1 -1
  124. package/browser/{chunk-VQBUIUJC.js → chunk-KRTNI2QB.js} +1 -1
  125. package/browser/{chunk-W34NDG3T.js → chunk-KVJIA6ZU.js} +1 -1
  126. package/browser/chunk-KY4GSSBW.js +1 -0
  127. package/browser/{chunk-MREFZR3I.js → chunk-L245BNIA.js} +1 -1
  128. package/browser/{chunk-GINPKODK.js → chunk-LFJYPPPQ.js} +1 -1
  129. package/browser/{chunk-VBX5VOJG.js → chunk-LFUE4ZL6.js} +1 -1
  130. package/browser/{chunk-BG6GTLXF.js → chunk-LHXDS2UV.js} +1 -1
  131. package/browser/{chunk-ZEXXJZ7U.js → chunk-LJ6YD225.js} +1 -1
  132. package/browser/{chunk-M76YU6SQ.js → chunk-LKDUSJDE.js} +1 -1
  133. package/browser/{chunk-SA67OWFV.js → chunk-LLD4JAZJ.js} +1 -1
  134. package/browser/{chunk-IUE6IUOH.js → chunk-LOHDNRJM.js} +1 -1
  135. package/browser/{chunk-XZXNHGZ2.js → chunk-LWTHIG4U.js} +1 -1
  136. package/browser/chunk-LY6VOK2B.js +149 -0
  137. package/browser/{chunk-HHSXXJFJ.js → chunk-MBWD4S2P.js} +1 -1
  138. package/browser/chunk-MMT7GFHE.js +21 -0
  139. package/browser/{chunk-67UQKMLX.js → chunk-MPPCTVQF.js} +1 -1
  140. package/browser/chunk-N5J3AS3T.js +131 -0
  141. package/browser/{chunk-XTMUP2BA.js → chunk-NFZ2TD3A.js} +1 -1
  142. package/browser/{chunk-KB64CIW5.js → chunk-NJ67KPDC.js} +2 -2
  143. package/browser/{chunk-UEMKVZMR.js → chunk-NKSKEAZY.js} +1 -1
  144. package/browser/{chunk-BJKHMXAA.js → chunk-NQ3TLVWW.js} +1 -1
  145. package/browser/chunk-O2H3P76C.js +1 -0
  146. package/browser/{chunk-YL6HCV6T.js → chunk-O44PCSTB.js} +1 -1
  147. package/browser/{chunk-7USHMTB5.js → chunk-OFXB2JPC.js} +1 -1
  148. package/browser/{chunk-MTU6753J.js → chunk-OHYERAR6.js} +1 -1
  149. package/browser/{chunk-PUXE7FLT.js → chunk-OQW54TBN.js} +1 -1
  150. package/browser/{chunk-WACBOZDR.js → chunk-OWKXU5ZC.js} +1 -1
  151. package/browser/{chunk-T3HVVJIV.js → chunk-P4NX6EKZ.js} +1 -1
  152. package/browser/chunk-P5NZWQQQ.js +90 -0
  153. package/browser/chunk-PF2YFOXS.js +1 -0
  154. package/browser/{chunk-AASKAWJ4.js → chunk-PIZCEKMP.js} +1 -1
  155. package/browser/{chunk-7IRMDCKA.js → chunk-PMYMVWKR.js} +1 -1
  156. package/browser/chunk-PNLYN7MQ.js +311 -0
  157. package/browser/{chunk-SICZ4VWZ.js → chunk-PS6E5OMN.js} +1 -1
  158. package/browser/{chunk-2BSYBLS4.js → chunk-QDM4BBTH.js} +1 -1
  159. package/browser/{chunk-FFOK3ZNC.js → chunk-QIYEPDZF.js} +1 -1
  160. package/browser/{chunk-G4XFK7EF.js → chunk-QJIVDQKL.js} +1 -1
  161. package/browser/{chunk-IQ7VK4UE.js → chunk-QLGCMRTS.js} +2 -2
  162. package/browser/{chunk-WAAJYULE.js → chunk-QNPEMG6D.js} +1 -1
  163. package/browser/chunk-QNQXO4YS.js +54 -0
  164. package/browser/{chunk-BXGUZIC4.js → chunk-QVN7DETM.js} +1 -1
  165. package/browser/chunk-QXANNR7D.js +1 -0
  166. package/browser/{chunk-KWDQGODG.js → chunk-QYQO4PJF.js} +1 -1
  167. package/browser/{chunk-V6MKE6LP.js → chunk-RA4OB2YA.js} +1 -1
  168. package/browser/chunk-REYWUYK5.js +1 -0
  169. package/browser/chunk-RLNFPJPE.js +1 -0
  170. package/browser/{chunk-HVRLWPZX.js → chunk-RN6J3XFI.js} +1 -1
  171. package/browser/{chunk-LFHXGZHT.js → chunk-RRHPX65K.js} +1 -1
  172. package/browser/{chunk-EHXTW46H.js → chunk-RV3HEIY6.js} +1 -1
  173. package/browser/{chunk-G7HGWSUU.js → chunk-RWMRVY4Q.js} +1 -1
  174. package/browser/{chunk-A6F6V3WW.js → chunk-S5MGRIMQ.js} +1 -1
  175. package/browser/{chunk-I24HJLN4.js → chunk-SN3QC2AI.js} +1 -1
  176. package/browser/{chunk-VCQBS5CA.js → chunk-SNGOVACV.js} +1 -1
  177. package/browser/{chunk-TCR2YYM5.js → chunk-SZHE2X7K.js} +1 -1
  178. package/browser/{chunk-RNEU5YBN.js → chunk-T4EAHLQ4.js} +1 -1
  179. package/browser/{chunk-OGN6JWED.js → chunk-T6TESUGU.js} +1 -1
  180. package/browser/{chunk-PTQCXOVM.js → chunk-TFNPU76N.js} +1 -1
  181. package/browser/{chunk-KMYTSO3Q.js → chunk-TJXA75FB.js} +1 -1
  182. package/browser/{chunk-FADT3LJL.js → chunk-TKOHX2XL.js} +3 -3
  183. package/browser/{chunk-EGUIWOC3.js → chunk-TO24XJZI.js} +1 -1
  184. package/browser/{chunk-IT7I47UZ.js → chunk-TRI5DSKF.js} +1 -1
  185. package/browser/chunk-TTR5FF2O.js +1 -0
  186. package/browser/chunk-TTUXWXNN.js +480 -0
  187. package/browser/chunk-TU6PG43Y.js +118 -0
  188. package/browser/{chunk-RO5PWDCR.js → chunk-U2AHHKPZ.js} +1 -1
  189. package/browser/{chunk-PQFMYP23.js → chunk-U2WIPEWI.js} +1 -1
  190. package/browser/chunk-UFZBFEHP.js +149 -0
  191. package/browser/{chunk-DZA27E5L.js → chunk-UV57OGWO.js} +1 -1
  192. package/browser/chunk-UWBVPKV4.js +1 -0
  193. package/browser/{chunk-OKVQYK4Y.js → chunk-V2IOC2AJ.js} +1 -1
  194. package/browser/chunk-VBBYHB7E.js +191 -0
  195. package/browser/{chunk-5ZU5FBGM.js → chunk-VCSTNDEY.js} +1 -1
  196. package/browser/{chunk-FAN4YDVT.js → chunk-VIIDAPDU.js} +1 -1
  197. package/browser/{chunk-4KBU47GN.js → chunk-VNNCIA5L.js} +1 -1
  198. package/browser/{chunk-L5HF7UAT.js → chunk-VNV7VWNA.js} +1 -1
  199. package/browser/{chunk-E2XUBZDW.js → chunk-VPNGMBCE.js} +1 -1
  200. package/browser/chunk-VSS454NR.js +2 -0
  201. package/browser/{chunk-OYO4SRAO.js → chunk-VWL5FKU2.js} +1 -1
  202. package/browser/{chunk-4KMN7PSV.js → chunk-W4S7Q6CB.js} +1 -1
  203. package/browser/{chunk-ISY4SDFY.js → chunk-WILA4FS3.js} +1 -1
  204. package/browser/{chunk-YM2ZQTDF.js → chunk-WJL7IGC6.js} +1 -1
  205. package/browser/{chunk-HMKM466S.js → chunk-WMTI6O7I.js} +1 -1
  206. package/browser/{chunk-IZQ5FNXP.js → chunk-WPPCNK6N.js} +1 -1
  207. package/browser/{chunk-OTT6RJHI.js → chunk-WXF6PTWZ.js} +1 -1
  208. package/browser/{chunk-F7EO5OHI.js → chunk-X5OTMPQN.js} +1 -1
  209. package/browser/{chunk-E4GYCB3G.js → chunk-XABTH5K3.js} +1 -1
  210. package/browser/chunk-XCII6WYI.js +92 -0
  211. package/browser/chunk-XEAD3GDE.js +507 -0
  212. package/browser/{chunk-PIW2M2DH.js → chunk-XFQZ7QQD.js} +1 -1
  213. package/browser/{chunk-RRYYS272.js → chunk-XGM7LWRY.js} +1 -1
  214. package/browser/{chunk-HC2YTBED.js → chunk-XMPP4Y4Z.js} +1 -1
  215. package/browser/{chunk-M4BTEXS6.js → chunk-XSPT7GLC.js} +1 -1
  216. package/browser/chunk-XU5W6MOV.js +15 -0
  217. package/browser/{chunk-B235RUOX.js → chunk-XUAUPVAM.js} +1 -1
  218. package/browser/chunk-XUEGGJ25.js +209 -0
  219. package/browser/{chunk-XXNLATCJ.js → chunk-XVOXL7EV.js} +1 -1
  220. package/browser/{chunk-IE2H4VRD.js → chunk-XZGY4EZF.js} +1 -1
  221. package/browser/chunk-Y2T5WNHG.js +1 -0
  222. package/browser/chunk-Y5JYDZ3E.js +1 -0
  223. package/browser/chunk-YGHK5XUL.js +1 -0
  224. package/browser/{chunk-OMKIT3Z4.js → chunk-YGOSFZQM.js} +1 -1
  225. package/browser/{chunk-3LPZYQS6.js → chunk-YJJAQOYJ.js} +3 -2
  226. package/browser/{chunk-PQS3RLPI.js → chunk-YJJEYBW2.js} +1 -1
  227. package/browser/{chunk-BLQKJ5OK.js → chunk-YV457DYY.js} +1 -1
  228. package/browser/chunk-YZSVWK3T.js +1 -0
  229. package/browser/{chunk-U5HTULBC.js → chunk-Z2VRH2HR.js} +1 -1
  230. package/browser/chunk-ZIWCCS4F.js +1 -0
  231. package/browser/{chunk-6Q7J43H4.js → chunk-ZJDFNACB.js} +1 -1
  232. package/browser/{chunk-IAFZ75L3.js → chunk-ZJFXRNBM.js} +3 -3
  233. package/browser/{chunk-RKCNENWQ.js → chunk-ZVQF3NH4.js} +1 -1
  234. package/browser/index.html +2 -2
  235. package/browser/main-5IXVIJ7Z.css +1 -0
  236. package/browser/{main-7FKCOQYA.js → main-K2ATSNT2.js} +2 -2
  237. package/browser/{styles-J6LGFNKV.css → styles-URIEURGQ.css} +1 -1
  238. package/package.json +1 -1
  239. package/browser/chunk-2JU7KFOZ.js +0 -2
  240. package/browser/chunk-2QD46TNT.js +0 -191
  241. package/browser/chunk-4ZFVM7K7.js +0 -1
  242. package/browser/chunk-6A3BN6JC.js +0 -507
  243. package/browser/chunk-6VM27TUY.js +0 -1
  244. package/browser/chunk-BJG2UU2M.js +0 -1
  245. package/browser/chunk-BRHHRJLT.js +0 -39
  246. package/browser/chunk-CKGJCUHW.js +0 -1
  247. package/browser/chunk-DG4IHOM2.js +0 -1
  248. package/browser/chunk-EOJJS4LU.js +0 -334
  249. package/browser/chunk-FSGCO2Z5.js +0 -1
  250. package/browser/chunk-GUF6JXSS.js +0 -257
  251. package/browser/chunk-HBH23XBO.js +0 -1
  252. package/browser/chunk-HDJJJAZJ.js +0 -1
  253. package/browser/chunk-IBZF5QXJ.js +0 -1
  254. package/browser/chunk-IPJU7D3K.js +0 -3
  255. package/browser/chunk-KDOS4X4T.js +0 -82
  256. package/browser/chunk-KFUPP33B.js +0 -92
  257. package/browser/chunk-KPZU3ZPZ.js +0 -1
  258. package/browser/chunk-KTV4REGV.js +0 -152
  259. package/browser/chunk-L453AX2W.js +0 -376
  260. package/browser/chunk-MHZV4BL7.js +0 -1095
  261. package/browser/chunk-MNZLKEWQ.js +0 -118
  262. package/browser/chunk-N43HXORE.js +0 -22
  263. package/browser/chunk-NBMH5YL2.css +0 -1
  264. package/browser/chunk-PCFR4J66.js +0 -131
  265. package/browser/chunk-PNN75KZR.js +0 -16
  266. package/browser/chunk-PROSYUA2.js +0 -1
  267. package/browser/chunk-PUFGTKWO.js +0 -1
  268. package/browser/chunk-PXKNGMLL.js +0 -1
  269. package/browser/chunk-QMFA3PF5.js +0 -1
  270. package/browser/chunk-RMIJZMA5.js +0 -480
  271. package/browser/chunk-SGSOCLV7.js +0 -21
  272. package/browser/chunk-TR5NO2CB.js +0 -1
  273. package/browser/chunk-TWVDGGTY.js +0 -209
  274. package/browser/chunk-TX6ZFPHY.js +0 -90
  275. package/browser/chunk-USEPOJ5L.js +0 -1
  276. package/browser/chunk-V7HBROQ5.js +0 -54
  277. package/browser/chunk-VS3RTXZC.js +0 -5
  278. package/browser/chunk-W5N6DMDQ.js +0 -149
  279. package/browser/chunk-WAXYETAG.js +0 -151
  280. package/browser/chunk-WRZUQ2QI.js +0 -1
  281. package/browser/chunk-WXJTNRD3.js +0 -149
  282. package/browser/chunk-XF5XKXE6.js +0 -311
  283. package/browser/chunk-XHA6WGTO.js +0 -1
  284. package/browser/chunk-XRLRUCRR.js +0 -315
  285. package/browser/chunk-YQ5GJPDB.js +0 -1
  286. package/browser/chunk-YZP4FX7D.js +0 -15
  287. package/browser/chunk-ZRHYTE5S.js +0 -1
  288. package/browser/main-WPNH2WGQ.css +0 -1
@@ -0,0 +1,22 @@
1
+ import{a as Mt,d as kt}from"./chunk-P5NZWQQQ.js";import{c as Et,j as It,k as F,l as St}from"./chunk-XU5W6MOV.js";import{a as P}from"./chunk-2FWFPV5I.js";import{oa as Tt,pa as k,xa as Ot}from"./chunk-7YBH2SXZ.js";import{F as bt,G as vt,a as ft,c as _t,h as ht,i as wt,k as Ct,o as xt,p as yt}from"./chunk-EEJEVJEF.js";import{a as mt}from"./chunk-44MS566M.js";import{Cb as m,Db as o,Eb as s,Fb as M,Ia as A,Jb as I,Kb as S,Kc as ot,Lb as Z,Lc as rt,Mb as h,Ob as g,Pc as j,Qb as r,Qc as at,Tb as N,Vb as D,Wb as B,Xa as l,Xc as L,Ya as T,Yb as J,Yd as ct,Zb as X,be as gt,cc as x,cd as st,db as Q,dc as c,ec as tt,ed as pt,ee as Pt,fc as et,fd as lt,hb as O,ib as K,ic as y,jc as b,jd as dt,ka as W,kc as v,la as z,lb as Y,ma as U,mb as $,na as q,nb as E,pa as w,pc as H,rd as ut,sc as nt,ta as d,tb as G,ua as u,vb as f,vc as R,wc as it,xb as _}from"./chunk-D4VXNK25.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ft=`
2
+ .p-inputotp {
3
+ display: flex;
4
+ align-items: center;
5
+ gap: dt('inputotp.gap');
6
+ }
7
+
8
+ .p-inputotp-input {
9
+ text-align: center;
10
+ width: dt('inputotp.input.width');
11
+ }
12
+
13
+ .p-inputotp-input.p-inputtext-sm {
14
+ text-align: center;
15
+ width: dt('inputotp.input.sm.width');
16
+ }
17
+
18
+ .p-inputotp-input.p-inputtext-lg {
19
+ text-align: center;
20
+ width: dt('inputotp.input.lg.width');
21
+ }
22
+ `;var Rt=["input"],jt=(i,a,t)=>({$implicit:i,events:a,index:t});function Lt(i,a){if(i&1){let t=h();I(0),o(1,"input",2),g("input",function(n){d(t);let p=r().$implicit,C=r();return u(C.onInput(n,p-1))})("focus",function(n){d(t);let p=r(2);return u(p.onInputFocus(n))})("blur",function(n){d(t);let p=r(2);return u(p.onInputBlur(n))})("paste",function(n){d(t);let p=r(2);return u(p.onPaste(n))})("keydown",function(n){d(t);let p=r(2);return u(p.onKeyDown(n))}),s(),S()}if(i&2){let t=r().$implicit,e=r();l(),x(e.cn(e.cx("pcInputText"),e.styleClass)),m("value",e.getModelValue(t))("pSize",e.size())("variant",e.$variant())("invalid",e.invalid())("pAutoFocus",e.getAutofocus(t))("pt",e.ptm("pcInputText")),G("maxlength",t===1?e.length:1)("type",e.inputType)("name",e.name())("tabindex",e.tabindex)("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function Wt(i,a){i&1&&Z(0)}function zt(i,a){if(i&1&&(I(0),E(1,Wt,1,0,"ng-container",3),S()),i&2){let t=r().$implicit,e=r();l(),m("ngTemplateOutlet",e.inputTemplate||e._inputTemplate)("ngTemplateOutletContext",it(2,jt,e.getToken(t-1),e.getTemplateEvents(t-1),t))}}function Ut(i,a){if(i&1&&(I(0),E(1,Lt,2,15,"ng-container",1)(2,zt,2,6,"ng-container",1),S()),i&2){let t=r();l(),m("ngIf",!t.inputTemplate&&!t._inputTemplate),l(),m("ngIf",t.inputTemplate||t._inputTemplate)}}var qt={root:"p-inputotp p-component",pcInputText:"p-inputotp-input"},Vt=(()=>{class i extends Ot{name="inputotp";style=Ft;classes=qt;static \u0275fac=(()=>{let t;return function(n){return(t||(t=A(i)))(n||i)}})();static \u0275prov=z({token:i,factory:i.\u0275fac})}return i})();var At=new q("INPUTOTP_INSTANCE"),Qt={provide:ft,useExisting:W(()=>V),multi:!0},V=(()=>{class i extends It{_componentStyle=w(Vt);$pcInputOtp=w(At,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=w(F,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}readonly;tabindex=null;length=4;styleClass;mask=!1;integerOnly=!1;autofocus;variant=j();size=j();onChange=new T;onFocus=new T;onBlur=new T;inputTemplate;templates;_inputTemplate;tokens=[];value;$variant=ot(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get inputMode(){return this.integerOnly?"numeric":"text"}get inputType(){return this.mask?"password":"text"}onAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"input":this._inputTemplate=t.template;break;default:this._inputTemplate=t.template;break}})}getToken(t){return this.tokens[t]}getTemplateEvents(t){return{input:e=>this.onInput(e,t),keydown:e=>this.onKeyDown(e),focus:e=>this.onFocus.emit(e),blur:e=>this.onBlur.emit(e),paste:e=>this.onPaste(e)}}onInput(t,e){let n=t.target.value;if(e===0&&n.length>1){this.handleOnPaste(n,t),t.stopPropagation();return}this.tokens[e]=n,this.updateModel(t),t.inputType==="deleteContentBackward"?this.moveToPrev(t):(t.inputType==="insertText"||t.inputType==="deleteContentForward")&&this.moveToNext(t)}updateModel(t){let e=this.tokens.join("");this.writeModelValue(e),this.onModelChange(e),this.onChange.emit({originalEvent:t,value:e})}updateTokens(){this.value!==null&&this.value!==void 0?Array.isArray(this.value)?this.tokens=[...this.value]:this.tokens=this.value.toString().split(""):this.tokens=[]}getModelValue(t){return this.tokens[t-1]||""}getAutofocus(t){return t===1&&this.autofocus||!1}moveToPrev(t){let e=this.findPrevInput(t.target);e&&(e.focus(),e.select())}moveToNext(t){let e=this.findNextInput(t.target);e&&(e.focus(),e.select())}findNextInput(t){let e=t.nextElementSibling;if(e)return e.nodeName==="INPUT"?e:this.findNextInput(e)}findPrevInput(t){let e=t.previousElementSibling;if(e)return e.nodeName==="INPUT"?e:this.findPrevInput(e)}onInputFocus(t){t.target.select(),this.onFocus.emit(t)}onInputBlur(t){this.onBlur.emit(t)}onKeyDown(t){if(!(t.altKey||t.ctrlKey||t.metaKey))switch(t.code){case"ArrowLeft":this.moveToPrev(t),t.preventDefault();break;case"ArrowUp":case"ArrowDown":t.preventDefault();break;case"Backspace":t.target.value.length===0&&(this.moveToPrev(t),t.preventDefault());break;case"ArrowRight":this.moveToNext(t),t.preventDefault();break;default:(this.integerOnly&&!(Number(t.key)>=0&&Number(t.key)<=9)||this.tokens.join("").length>=this.length&&t.code!=="Delete")&&t.preventDefault();break}}onPaste(t){if(!this.$disabled()&&!this.readonly){let e=t.clipboardData.getData("text");e.length&&this.handleOnPaste(e,t),t.preventDefault()}}handleOnPaste(t,e){let n=t.substring(0,this.length+1);(!this.integerOnly||!isNaN(n))&&(this.tokens=n.split(""),this.updateModel(e))}getRange(t){return Array.from({length:t},(e,n)=>n+1)}trackByFn(t){return t}writeControlValue(t,e){t?Array.isArray(t)&&t.length>0?this.value=t.slice(0,this.length):this.value=t.toString().split("").slice(0,this.length):this.value=t,e(this.value),this.updateTokens(),this.cd.markForCheck()}static \u0275fac=(()=>{let t;return function(n){return(t||(t=A(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["p-inputOtp"],["p-inputotp"],["p-input-otp"]],contentQueries:function(e,n,p){if(e&1&&(N(p,Rt,4),N(p,Tt,4)),e&2){let C;D(C=B())&&(n.inputTemplate=C.first),D(C=B())&&(n.templates=C)}},hostVars:2,hostBindings:function(e,n){e&2&&x(n.cx("root"))},inputs:{readonly:[2,"readonly","readonly",L],tabindex:"tabindex",length:"length",styleClass:"styleClass",mask:"mask",integerOnly:"integerOnly",autofocus:[2,"autofocus","autofocus",L],variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[nt([Qt,Vt,{provide:At,useExisting:i},{provide:Et,useExisting:i}]),$([F]),Y],decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["type","text","pInputText","",3,"input","focus","blur","paste","keydown","value","pSize","variant","invalid","pAutoFocus","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){e&1&&E(0,Ut,3,2,"ng-container",0),e&2&&m("ngForOf",n.getRange(n.length))("ngForTrackBy",n.trackByFn)},dependencies:[ut,pt,lt,dt,kt,Mt,k,St],encapsulation:2,changeDetection:0})}return i})(),Nt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=K({type:i});static \u0275inj=U({imports:[V,k,k]})}return i})();var Yt=["otpInput"],Dt=(i,a)=>({"rounded-end":i,"border-end-0":a});function $t(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.requestOtp(n.Email))}),o(1,"h1",12),c(2,"Forgot Password"),s(),o(3,"h6",13),c(4,"Enter the username or email address to reset password"),s(),o(5,"div",14)(6,"div",15)(7,"span"),M(8,"i",16),s()(),o(9,"input",17),v("ngModelChange",function(n){d(t);let p=r();return b(p.Email,n)||(p.Email=n),u(n)}),s()(),o(10,"div",18)(11,"button",19),c(12,"Reset Password"),s()(),o(13,"a",20),c(14,"Return to log in"),s()()}if(i&2){let t=r();l(9),y("ngModel",t.Email),l(2),m("disabled",!t.Email)}}function Gt(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.verifyOtp(n.otpEmail,n.otp))}),o(1,"h1",21),c(2,"OTP Code Verification"),s(),o(3,"h6",13),c(4,"Please enter the 6 digit code sent to "),o(5,"span",22),c(6),s()(),o(7,"div",23)(8,"p-inputOtp",24,0),v("ngModelChange",function(n){d(t);let p=r();return b(p.otp,n)||(p.otp=n),u(n)}),g("ngModelChange",function(){d(t);let n=r();return u(n.onInputOtp())}),s()(),o(10,"h6",25),c(11,"Didn't get a code? "),o(12,"span",26),g("click",function(){d(t);let n=r();return u(n.requestOtp(n.otpEmail))}),c(13,"Click to resend"),s()(),o(14,"div",18)(15,"button",19),c(16,"Verify"),s()()()}if(i&2){let t=r();l(6),tt(t.otpEmail),l(2),m("integerOnly",!0),y("ngModel",t.otp),m("autofocus",!0),l(7),m("disabled",!t.otp)}}function Zt(i,a){if(i&1){let t=h();o(0,"i",33),g("click",function(){d(t);let n=r(3);return u(n.showPassword())}),s()}if(i&2){let t=r(3);x(H("",t.showHideClass," fas"))}}function Jt(i,a){if(i&1&&(o(0,"span",30),f(1,Zt,1,3,"i",32),s()),i&2){let t=r(2);l(),_(t.password?1:-1)}}function Xt(i,a){if(i&1){let t=h();o(0,"i",33),g("click",function(){d(t);let n=r(3);return u(n.showPassword())}),s()}if(i&2){let t=r(3);x(H("",t.showHideClassConfirm," fas"))}}function te(i,a){if(i&1&&(o(0,"span",30),f(1,Xt,1,3,"i",32),s()),i&2){let t=r(2);l(),_(t.password?1:-1)}}function ee(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.changePassword(n.otpEmail,n.otp,n.password))}),o(1,"h1",21),c(2,"Create New Password"),s(),o(3,"h6",13),c(4,"Create a strong password to keep your account safe"),s(),o(5,"div",27)(6,"div",28)(7,"input",29),v("ngModelChange",function(n){d(t);let p=r();return b(p.password,n)||(p.password=n),u(n)}),s(),f(8,Jt,2,1,"span",30),s(),o(9,"div",28)(10,"input",31),v("ngModelChange",function(n){d(t);let p=r();return b(p.confirmPassword,n)||(p.confirmPassword=n),u(n)}),s(),f(11,te,2,1,"span",30),s()(),o(12,"div",18)(13,"button",19),c(14,"Change Password"),s()()()}if(i&2){let t=r();l(7),m("type",t.inputType)("ngClass",R(9,Dt,t.browserType=="edge",t.browserType!="edge")),y("ngModel",t.password),l(),_(t.browserType!="edge"?8:-1),l(2),m("type",t.inputConfirm)("ngClass",R(12,Dt,t.browserType=="edge",t.browserType!="edge")),y("ngModel",t.confirmPassword),l(),_(t.browserType!="edge"?11:-1),l(2),m("disabled",(!t.password||!t.confirmPassword)&&t.password!=t.confirmPassword)}}var Bt=class i{constructor(a){this.httpService=a;document.title="Outlet | Forgot Password Form",this.alert={Visible:!1,Message:null,Success:!1},this.showHideClass="fas fa-eye fas",this.showHideClassConfirm="fas fa-eye fas",this.browserType=this.findname_browser(),rt(()=>{let t=e=>{e.key==="Enter"&&(e.preventDefault(),this.verifyOtp(this.otpEmail,this.otp))};this.otpInputEl()?document.querySelector(".otp-input input:last-child").addEventListener("keyup",t):document.removeEventListener("keyup",t)})}otpInputEl=at("otpInput");appVersion=mt.version;showHideClass;showHideClassConfirm;inputType="password";inputConfirm="password";password;confirmPassword;browserType;Email;alert;toastr=w(gt);state="Email";otp="";otpEmail="";router=w(ct);findname_browser(){var a=window.navigator.userAgent;if(a.indexOf("Edg/")>-1)return"edge";var t={chrome:/chrome/i,safari:/safari/i,firefox:/firefox/i,ie:/internet explorer/i,edge:/edg/i};for(var e in t)if(t[e].test(a))return e;return"unknown"}ngOnInit(){document.body.classList.add("login-body")}ngOnDestroy(){document.body.classList.remove("login-body")}showPassword(){this.showHideClass=this.showHideClass=="fas fa-eye fas"?"fas fas fa-eye-slash":"fas fa-eye fas",this.inputType=this.showHideClass=="fas fa-eye fas"?"password":"text",this.showHideClassConfirm=this.showHideClassConfirm=="fas fa-eye fas"?"fas fas fa-eye-slash":"fas fa-eye fas",this.inputConfirm=this.showHideClassConfirm=="fas fa-eye fas"?"password":"text"}Submit(){let a={Email:this.Email};this.httpService.post("/api/login/SubmitForgotPassword",a).subscribe({next:t=>{this.alert.Visible=!0,this.alert.Success=!0,this.alert.Message=t.Message},error:t=>{this.alert.Visible=!0,this.alert.Message=t?.error?.Message?t?.error?.Message:t?.error}})}requestOtp(a){this.httpService.post("/api/password/requestotp",{email:a}).subscribe(t=>{this.toastr.info(`OTP sent to ${t.otpEmailTarget}`,P.Info),this.otpEmail=t.otpEmailTarget,this.state="OTP"})}onInputOtp(){this.otp.length==6&&this.verifyOtp(this.otpEmail,this.otp)}verifyOtp(a,t){this.httpService.post("/api/password/verifyotp",{email:a,otp:t}).subscribe(e=>{e.success?(this.toastr.info("You can update your password",P.Info),this.state="Password"):this.toastr.info("You input the wrong OTP",P.Error)})}changePassword(a,t,e){this.httpService.post("/api/password/change",{email:a,otp:t,newPassword:e}).subscribe(()=>{this.toastr.info("Your password has been changed",P.Info),this.router.navigate(["/"])})}static \u0275fac=function(t){return new(t||i)(Q(Pt))};static \u0275cmp=O({type:i,selectors:[["POS-auth-forgot-password"]],viewQuery:function(t,e){t&1&&J(e.otpInputEl,Yt,5),t&2&&X()},decls:15,vars:4,consts:[["otpInput",""],[1,"container-fluid"],[1,"d-flex","justify-content-center","align-items-center","vh-100"],[1,"card",2,"width","30rem"],[1,"card-body","p-12"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank","href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v",1,"text-dark","fst-italic"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[3,"submit"],[1,"mt-8","fw-normal",2,"margin-bottom","1.3rem"],[1,"fw-normal","text-start",2,"font-size","0.8rem"],[1,"input-group","input-group-lg","mb-3","my-5"],[1,"input-group-text","input-group-text","rounded-start"],[1,"fas","fa-user","fa-lg"],["type","text","data-cy","username","placeholder","Username / Email","aria-label","Username","name","email","aria-describedby","basic-addon1",1,"form-control","form-control-lg","rounded-end","ps-2","border-start-0",2,"height","50px",3,"ngModelChange","ngModel"],[1,"my-6"],["type","submit",1,"btn","btn-primary","w-100",3,"disabled"],["href","/",1,"mt-6"],[1,"mt-8","fw-normal",2,"margin-bottom","3rem"],[1,"fw-bold"],[1,"mb-3","my-5","d-flex","justify-content-center"],["length","6","name","otp",1,"otp-input",3,"ngModelChange","integerOnly","ngModel","autofocus"],[1,"fw-normal","text-start"],[1,"text-primary","pointer",3,"click"],[1,"mb-3","my-5"],[1,"input-group","input-group-lg","mt-8"],["id","txtPassword","data-cy","password","placeholder","New Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password",1,"form-control","form-control-lg","rounded-end","ps-5",2,"height","50px",3,"ngModelChange","type","ngClass","ngModel"],[1,"input-group-text","border-start-0","rounded-end"],["id","txtPassword","data-cy","password","placeholder","Confirm New Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password",1,"form-control","form-control-lg","rounded-end","ps-5",2,"height","50px",3,"ngModelChange","type","ngClass","ngModel"],[3,"class"],[3,"click"]],template:function(t,e){t&1&&(o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),f(4,$t,15,2,"form"),f(5,Gt,17,5,"form"),f(6,ee,15,15,"form"),s()()(),o(7,"div",5)(8,"span",6),c(9,"powered by :"),s(),M(10,"a",7),s(),o(11,"div",8)(12,"a",9),c(13),M(14,"i",10),s()()()),t&2&&(l(4),_(e.state=="Email"?4:-1),l(),_(e.state=="OTP"?5:-1),l(),_(e.state=="Password"?6:-1),l(7),et("version ",e.appVersion))},dependencies:[st,vt,yt,_t,ht,wt,bt,xt,Ct,Nt,V],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}@media screen and (max-width: 768px){.footer-mobile[_ngcontent-%COMP%]{display:flex!important;justify-content:center!important}div.vh-100[_ngcontent-%COMP%]{height:40vh!important}.fixed-bottom[_ngcontent-%COMP%]{position:static!important}input[type=submit][_ngcontent-%COMP%]{width:98%}.card[_ngcontent-%COMP%]{border:none}} p-inputOtp{width:100%} p-inputOtp input{flex-grow:1;height:42px}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}"]})};export{Bt as AuthForgotPasswordComponent};
@@ -0,0 +1,380 @@
1
+ import{a as wt,b as Et}from"./chunk-IYQKU2EL.js";import{b as vt}from"./chunk-QNQXO4YS.js";import{a as yt}from"./chunk-RWMRVY4Q.js";import{a as Tt,b as Ct,c as xt,d as St,e as Nt}from"./chunk-VBBYHB7E.js";import{a as Ie,b as He}from"./chunk-E7CKHP2W.js";import{a as bt}from"./chunk-TJXA75FB.js";import{a as It}from"./chunk-D5IRUIA5.js";import{c as _t}from"./chunk-6KAJXZU4.js";import{b as mt,c as ht}from"./chunk-KRTNI2QB.js";import{a as Ze}from"./chunk-FJDNER3H.js";import{a as Se,b as dt,c as gt,d as ft}from"./chunk-P5NZWQQQ.js";import{b as at,c as pe,d as Pe,j as pt,k as O,l as ut}from"./chunk-XU5W6MOV.js";import{A as it,F as ot,H as rt,V as Le,W as lt,a as R,ga as Ae,m as tt,oa as ee,pa as P,qa as st,ra as ct,v as Be,w as nt,x as Z,xa as xe,z as de}from"./chunk-7YBH2SXZ.js";import{F as ce,a as et,h as be,o as ve}from"./chunk-EEJEVJEF.js";import{a as Te}from"./chunk-5ACAEXN7.js";import{$b as Fe,Bc as We,Ca as fe,Cb as a,Cc as Ge,Db as m,Eb as y,Fb as I,Hc as k,Ia as G,Jb as N,Kb as w,Kc as H,Lb as S,Mb as V,Ob as C,Oc as Ye,Pc as le,Qb as s,Tb as v,Ub as M,Vb as h,Wb as _,Xa as c,Xc as T,Y as Me,Ya as b,Yc as q,_b as Y,bc as J,ca as Ve,cc as f,cd as Je,d as ze,db as ie,dc as L,ec as _e,ed as ae,ee as Ce,fa as Qe,fc as X,fd as se,ga as Oe,hb as z,ib as me,ic as $e,id as ye,jc as qe,jd as j,ka as ue,kc as je,kd as Xe,la as W,lb as oe,ma as ge,mb as he,na as ne,nb as d,o as De,oa as Ue,pa as D,rd as K,sc as re,ta as u,tb as E,ua as g,uc as A,va as B,vb as Q,vc as $,wc as Ke,xb as U}from"./chunk-D4VXNK25.js";import{a as te}from"./chunk-SNAKHGZS.js";var kt=`
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 Ft=t=>({height:t}),jt=(t,r)=>({$implicit:t,loading:r}),Kt=(t,r,e)=>({$implicit:t,partialSelected:r,class:e}),Bt=t=>({$implicit:t});function Wt(t,r){if(t&1&&I(0,"div",9),t&2){let e=s(2);f(e.cx("dropPoint")),a("pBind",e.getPTOptions("dropPoint")),E("aria-hidden",!0)}}function Gt(t,r){if(t&1&&(B(),I(0,"svg",13)),t&2){let e=s(4);f(e.cx("nodeToggleIcon")),a("pBind",e.getPTOptions("nodeToggleIcon"))}}function Yt(t,r){if(t&1&&(B(),I(0,"svg",14)),t&2){let e=s(4);f(e.cx("nodeToggleIcon")),a("pBind",e.getPTOptions("nodeToggleIcon"))}}function Jt(t,r){if(t&1&&(N(0),d(1,Gt,1,3,"svg",11)(2,Yt,1,3,"svg",12),w()),t&2){let e=s(3);c(),a("ngIf",!e.node.expanded),c(),a("ngIf",e.node.expanded)}}function Xt(t,r){if(t&1&&(N(0),B(),I(1,"svg",15),w()),t&2){let e=s(3);c(),f(e.cx("nodeToggleIcon")),a("pBind",e.getPTOptions("nodeToggleIcon"))}}function Zt(t,r){if(t&1&&(N(0),d(1,Jt,3,2,"ng-container",6)(2,Xt,2,3,"ng-container",6),w()),t&2){let e=s(2);c(),a("ngIf",!e.node.loading),c(),a("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function en(t,r){}function tn(t,r){t&1&&d(0,en,0,0,"ng-template")}function nn(t,r){if(t&1&&(m(0,"span",9),d(1,tn,1,0,null,16),y()),t&2){let e=s(2);f(e.cx("nodeToggleIcon")),a("pBind",e.getPTOptions("nodeToggleIcon")),c(),a("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",$(5,jt,e.node.expanded,e.node.loading))}}function on(t,r){}function rn(t,r){t&1&&d(0,on,0,0,"ng-template")}function ln(t,r){if(t&1&&d(0,rn,1,0,null,16),t&2){let e=s(4);a("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",Ke(2,Kt,e.isSelected(),e.node.partialSelected,e.cx("nodeCheckbox")))}}function an(t,r){t&1&&(N(0),d(1,ln,1,6,"ng-template",null,0,k),w())}function sn(t,r){if(t&1){let e=V();m(0,"p-checkbox",17),C("click",function(n){return u(e),g(n.preventDefault())}),d(1,an,3,0,"ng-container",6),y()}if(t&2){let e=s(2);a("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)("pt",e.getPTOptions("pcNodeCheckbox")),E("data-p-partialchecked",e.node.partialSelected),c(),a("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function cn(t,r){if(t&1&&I(0,"span",9),t&2){let e=s(2);f(e.getIcon()),a("pBind",e.getPTOptions("nodeIcon"))}}function dn(t,r){if(t&1&&(m(0,"span"),L(1),y()),t&2){let e=s(2);c(),_e(e.node.label)}}function pn(t,r){t&1&&S(0)}function un(t,r){if(t&1&&(m(0,"span"),d(1,pn,1,0,"ng-container",16),y()),t&2){let e=s(2);c(),a("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",A(2,Bt,e.node))}}function gn(t,r){if(t&1&&I(0,"div",9),t&2){let e=s(2);f(e.cx("dropPoint")),a("pBind",e.getPTOptions("dropPoint")),E("aria-hidden",!0)}}function fn(t,r){if(t&1&&I(0,"p-treeNode",20),t&2){let e=r.$implicit,i=r.first,n=r.last,o=r.index,l=s(3);a("node",e)("parentNode",l.node)("firstChild",i)("lastChild",n)("index",o)("itemSize",l.itemSize)("level",l.level+1)("loadingMode",l.loadingMode)}}function mn(t,r){if(t&1&&(m(0,"ul",18),d(1,fn,1,8,"p-treeNode",19),y()),t&2){let e=s(2);f(e.cx("nodeChildren")),a("pBind",e.ptm("nodeChildren")),c(),a("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function hn(t,r){if(t&1){let e=V();m(0,"li",2),C("keydown",function(n){u(e);let o=s();return g(o.onKeyDown(n))}),Q(1,Wt,1,4,"div",3),m(2,"div",4),C("click",function(n){u(e);let o=s();return g(o.onNodeClick(n))})("contextmenu",function(n){u(e);let o=s();return g(o.onNodeRightClick(n))})("dblclick",function(n){u(e);let o=s();return g(o.onNodeDblClick(n))})("touchend",function(){u(e);let n=s();return g(n.onNodeTouchEnd())})("drop",function(n){u(e);let o=s();return g(o.onNodeDrop(n))})("dragstart",function(n){u(e);let o=s();return g(o.onNodeDragStart(n))})("dragover",function(n){u(e);let o=s();return g(o.onNodeDragOver(n))})("dragleave",function(n){u(e);let o=s();return g(o.onNodeDragLeave(n))})("dragend",function(n){u(e);let o=s();return g(o.onNodeDragEnd(n))}),m(3,"button",5),C("click",function(n){u(e);let o=s();return g(o.toggle(n))}),d(4,Zt,3,2,"ng-container",6)(5,nn,2,8,"span",7),y(),d(6,sn,2,10,"p-checkbox",8)(7,cn,1,3,"span",7),m(8,"span",9),d(9,dn,2,1,"span",6)(10,un,2,4,"span",6),y()(),Q(11,gn,1,4,"div",3),d(12,mn,2,5,"ul",10),y()}if(t&2){let e=s();J(e.node.style),f(e.cn(e.cx("node"),e.node.styleClass)),a("ngStyle",A(36,Ft,e.itemSize+"px"))("pBind",e.getPTOptions("node")),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(),U(e.isPrevDropPointActive()?1:-1),c(),f(e.cx("nodeContent")),Fe("padding-left",e.level*e.indentation+"rem"),a("draggable",e.tree.draggableNodes)("pBind",e.getPTOptions("nodeContent")),c(),f(e.cx("nodeToggleButton")),a("pBind",e.getPTOptions("nodeToggleButton")),c(),a("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),c(),a("ngIf",e.tree.selectionMode=="checkbox"),c(),a("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),c(),f(e.cx("nodeLabel")),a("pBind",e.getPTOptions("nodeLabel")),c(),a("ngIf",!e.tree.getTemplateForNode(e.node)),c(),a("ngIf",e.tree.getTemplateForNode(e.node)),c(),U(e.isNextDropPointActive()?11:-1),c(),a("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded)}}var Dt=["filter"],_n=["node"],yn=["header"],Tn=["footer"],bn=["loader"],vn=["empty"],Cn=["togglericon"],xn=["checkboxicon"],Sn=["loadingicon"],In=["filtericon"],Nn=["scroller"],wn=["wrapper"],En=["content"],kn=t=>({options:t});function Dn(t,r){if(t&1&&I(0,"i",11),t&2){let e=s(2);f(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),a("pBind",e.ptm("loadingIcon"))}}function Mn(t,r){if(t&1&&(B(),I(0,"svg",13)),t&2){let e=s(3);f(e.cx("loadingIcon")),a("pBind",e.ptm("loadingIcon"))}}function Vn(t,r){}function On(t,r){t&1&&d(0,Vn,0,0,"ng-template")}function Fn(t,r){if(t&1&&(m(0,"span",11),d(1,On,1,0,null,8),y()),t&2){let e=s(3);f(e.cx("loadingIcon")),a("pBind",e.ptm("loadingIcon")),c(),a("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function Bn(t,r){if(t&1&&(N(0),d(1,Mn,1,3,"svg",12)(2,Fn,2,4,"span",7),w()),t&2){let e=s(2);c(),a("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),c(),a("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function Ln(t,r){if(t&1&&(m(0,"div",11),d(1,Dn,1,3,"i",7)(2,Bn,3,2,"ng-container",10),y()),t&2){let e=s();f(e.cx("mask")),a("pBind",e.ptm("mask")),c(),a("ngIf",e.loadingIcon),c(),a("ngIf",!e.loadingIcon)}}function An(t,r){t&1&&S(0)}function Pn(t,r){t&1&&S(0)}function Hn(t,r){if(t&1&&d(0,Pn,1,0,"ng-container",14),t&2){let e=s();a("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",A(2,Bt,e.filterOptions))}}function Rn(t,r){if(t&1&&(B(),I(0,"svg",19)),t&2){let e=s(3);f(e.cx("filterIcon")),a("pBind",e.ptm("filterIcon"))}}function zn(t,r){}function Qn(t,r){t&1&&d(0,zn,0,0,"ng-template")}function Un(t,r){if(t&1&&(m(0,"span",11),d(1,Qn,1,0,null,8),y()),t&2){let e=s(3);f(e.cx("filterIcon")),a("pBind",e.ptm("filterIcon")),c(),a("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function $n(t,r){if(t&1){let e=V();m(0,"p-iconfield",16)(1,"input",17,0),C("keydown.enter",function(n){return u(e),g(n.preventDefault())})("input",function(n){u(e);let o=s(2);return g(o._filter(n.target==null?null:n.target.value))}),y(),m(3,"p-inputicon",16),d(4,Rn,1,3,"svg",18)(5,Un,2,4,"span",7),y()()}if(t&2){let e=s(2);f(e.cx("pcFilterContainer")),a("pt",e.ptm("pcFilterContainer")),c(),f(e.cx("pcFilterInput")),a("pAutoFocus",e.filterInputAutoFocus)("pt",e.ptm("pcFilterInput")),E("placeholder",e.filterPlaceholder),c(2),a("pt",e.ptm("pcFilterIconContainer")),c(),a("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),c(),a("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function qn(t,r){if(t&1&&d(0,$n,6,11,"p-iconfield",15),t&2){let e=s();a("ngIf",e.filter)}}function jn(t,r){if(t&1&&I(0,"p-treeNode",25,3),t&2){let e=r.$implicit,i=r.first,n=r.last,o=r.index,l=s(2).options,p=s(3);a("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",i)("lastChild",n)("index",p.getIndex(l,o))("itemSize",l.itemSize)("indentation",p.indentation)("loadingMode",p.loadingMode)("pt",p.pt)}}function Kn(t,r){if(t&1&&(m(0,"ul",23,2),d(2,jn,2,11,"p-treeNode",24),y()),t&2){let e=s(),i=e.$implicit,n=e.options,o=s(3);J(n.contentStyle),f(o.cx("rootChildren")),a("ngClass",n.contentStyleClass)("pBind",o.ptm("rootChildren")),E("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),c(2),a("ngForOf",i)("ngForTrackBy",o.trackBy)}}function Wn(t,r){if(t&1&&d(0,Kn,3,10,"ul",22),t&2){let e=r.$implicit;a("ngIf",e)}}function Gn(t,r){t&1&&S(0)}function Yn(t,r){if(t&1&&d(0,Gn,1,0,"ng-container",14),t&2){let e=r.options,i=s(4);a("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",A(2,kn,e))}}function Jn(t,r){t&1&&(N(0),d(1,Yn,1,4,"ng-template",null,4,k),w())}function Xn(t,r){if(t&1){let e=V();m(0,"p-scroller",21,1),C("onScroll",function(n){u(e);let o=s(2);return g(o.onScroll.emit(n))})("onScrollIndexChange",function(n){u(e);let o=s(2);return g(o.onScrollIndexChange.emit(n))})("onLazyLoad",function(n){u(e);let o=s(2);return g(o.onLazyLoad.emit(n))}),d(2,Wn,1,1,"ng-template",null,2,k)(4,Jn,3,0,"ng-container",10),y()}if(t&2){let e=s(2);J(A(11,Ft,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),a("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)("pt",e.ptm("virtualScroller")),c(4),a("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Zn(t,r){if(t&1&&I(0,"p-treeNode",29),t&2){let e=r.$implicit,i=r.first,n=r.last,o=r.index,l=s(4);a("node",e)("firstChild",i)("lastChild",n)("index",o)("level",0)("loadingMode",l.loadingMode)("pt",l.pt)}}function ei(t,r){if(t&1&&(m(0,"ul",27,2),d(2,Zn,1,7,"p-treeNode",28),y()),t&2){let e=s(3);f(e.cx("rootChildren")),a("pBind",e.ptm("rootChildren")),E("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),c(2),a("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function ti(t,r){if(t&1&&(N(0),m(1,"div",11,5),d(3,ei,3,7,"ul",26),y(),w()),t&2){let e=s(2);c(),f(e.cx("wrapper")),Fe("max-height",e.scrollHeight),a("pBind",e.ptm("wrapper")),c(2),a("ngIf",e.getRootNode())}}function ni(t,r){if(t&1&&(N(0),d(1,Xn,5,13,"p-scroller",20)(2,ti,4,6,"ng-container",10),w()),t&2){let e=s();c(),a("ngIf",e.virtualScroll),c(),a("ngIf",!e.virtualScroll)}}function ii(t,r){if(t&1&&(N(0),L(1),w()),t&2){let e=s(2);c(),X(" ",e.emptyMessageLabel," ")}}function oi(t,r){}function ri(t,r){t&1&&d(0,oi,0,0,"ng-template",null,6,k)}function li(t,r){if(t&1&&(m(0,"div",11),d(1,ii,2,1,"ng-container",30)(2,ri,2,0,null,8),y()),t&2){let e=s();f(e.cx("emptyMessage")),a("pBind",e.ptm("emptyMessage")),c(),a("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),c(),a("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function ai(t,r){t&1&&S(0)}var si={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"},Ne=(()=>{class t extends xe{name="tree";style=kt;classes=si;static \u0275fac=(()=>{let e;return function(n){return(e||(e=G(t)))(n||t)}})();static \u0275prov=W({token:t,factory:t.\u0275fac})}return t})();var Mt=new ne("TREE_INSTANCE"),Vt=new ne("TREENODE_INSTANCE"),ci=(()=>{class t extends Pe{$pcTreeNode=D(Vt,{optional:!0,skipSelf:!0})??void 0;static ICON_CLASS="p-tree-node-icon ";rowNode;node;parentNode;root;index;firstChild;lastChild;level;indentation;itemSize;loadingMode;tree=D(ue(()=>we));timeout;isPrevDropPointHovered=fe(!1);isNextDropPointHovered=fe(!1);isNodeDropHovered=fe(!1);isPrevDropPointActive=H(()=>this.isPrevDropPointHovered()&&this.isDroppable());isNextDropPointActive=H(()=>this.isNextDropPointHovered()&&this.isDroppable());isNodeDropActive=H(()=>this.isNodeDropHovered()&&this.isNodeDroppable());dropPosition=H(()=>this.isPrevDropPointActive()?-1:this.isNextDropPointActive()?1:0);_componentStyle=D(Ne);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}getPTOptions(e){return this.ptm(e,{context:{node:this.node,index:this.index,expanded:this.node?.expanded,selected:this.selected,checked:this.checked,partialChecked:this.node?.partialSelected,leaf:this.isLeaf()}})}onInit(){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(),l=this.subNodes||[],p=this.index||0,x=n===l?i>p?p:p-1:p;n.splice(i,1),o<0?l.splice(x,0,e):o>0?l.splice(x+1,0,e):(this.node.children=this.node.children||[],this.node.children.push(e)),this.tree.dragDropService.stopDrag({node:e,subNodes:l,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.effectAllowed="all",e.dataTransfer?.setData("text","data");let i=e.currentTarget,n=i.cloneNode(!0),o=n.querySelector('[data-pc-section="nodetogglebutton"]'),l=n.querySelector('[data-pc-name="pcnodecheckbox"]');i.setAttribute("data-p-dragging","true"),n.style.width=tt(i)+"px",n.style.height=rt(i)+"px",n.setAttribute("data-pc-section","drag-image"),o.style.visibility="hidden",l?.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(this.isDroppable()){e.dataTransfer.dropEffect="copy";let n=e.currentTarget.getBoundingClientRect(),o=e.clientY-parseInt(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)}else e.dataTransfer.dropEffect="none";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")==="nodetogglebutton"?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")==="nodetogglebutton"?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")==="nodetogglebutton"?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=Be(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=[...Be(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=>R(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=nt(this.tree?.contentViewChild?.nativeElement,`[data-id="${this.node?.key??this.node?.data}"]`);Z(e)},1)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=G(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["p-treeNode"]],inputs:{rowNode:"rowNode",node:"node",parentNode:"parentNode",root:[2,"root","root",T],index:[2,"index","index",q],firstChild:[2,"firstChild","firstChild",T],lastChild:[2,"lastChild","lastChild",T],level:[2,"level","level",q],indentation:[2,"indentation","indentation",q],itemSize:[2,"itemSize","itemSize",q],loadingMode:"loadingMode"},features:[re([Ne,{provide:Vt,useExisting:t},{provide:pe,useExisting:t}]),oe],decls:1,vars:1,consts:[["icon",""],["role","treeitem",3,"class","ngStyle","style","pBind"],["role","treeitem",3,"keydown","ngStyle","pBind"],[3,"class","pBind"],[3,"click","contextmenu","dblclick","touchend","drop","dragstart","dragover","dragleave","dragend","draggable","pBind"],["type","button","pRipple","","tabindex","-1",3,"click","pBind"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex","pt","click",4,"ngIf"],[3,"pBind"],["role","group",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],["data-p-icon","spinner","spin","",3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex","pt"],["role","group",3,"pBind"],[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,hn,13,38,"li",1),i&2&&U(n.node?0:-1)},dependencies:[t,K,ae,se,j,ye,It,_t,ce,be,ve,yt,Ie,He,P,ut,O],encapsulation:2})}return t})(),we=(()=>{class t extends Pe{dragDropService;bindDirectiveInstance=D(O,{self:!0});$pcTree=D(Mt,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}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 b;onNodeSelect=new b;onNodeUnselect=new b;onNodeExpand=new b;onNodeCollapse=new b;onNodeContextMenuSelect=new b;onNodeDoubleClick=new b;onNodeDrop=new b;onLazyLoad=new b;onScroll=new b;onScrollIndexChange=new b;onFilter=new b;filterTemplate;nodeTemplate;headerTemplate;footerTemplate;loaderTemplate;emptyMessageTemplate;togglerIconTemplate;checkboxIconTemplate;loadingIconTemplate;filterIconTemplate;filterViewChild;scroller;wrapperViewChild;contentViewChild;templates;_headerTemplate;_emptyMessageTemplate;_footerTemplate;_loaderTemplate;_togglerIconTemplate;_checkboxIconTemplate;_loadingIconTemplate;_filterIconTemplate;_filterTemplate;onAfterContentInit(){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=D(Ne);handleDropEvent(e){this.onDrop(e)}handleDragOverEvent(e){this.onDragOver(e)}handleDragEnterEvent(){this.onDragEnter()}handleDragLeaveEvent(e){this.onDragLeave(e)}constructor(e){super(),this.dragDropService=e}onInit(){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}))}onChanges(e){e.value&&(this.updateSerializedValue(),this.hasFilterActive()&&this._filter(this.filterViewChild?.nativeElement?.value))}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(st.EMPTY_MESSAGE)}updateSerializedValue(){this.serializedValue=[],this.serializeNodes(null,this.getRootNode(),0,!0)}serializeNodes(e,i,n,o){if(i&&i.length)for(let l of i){l.parent=e;let p={node:l,parent:e,level:n,visible:o&&(e?e.expanded:!0)};this.serializedValue.push(p),p.visible&&l.expanded&&this.serializeNodes(l,l.children,n+1,p.visible)}}onNodeClick(e,i){let n=e.target;if(!(R(n,"p-tree-toggler")||R(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),l=o>=0;if(this.isCheckboxSelectionMode())l?(this.propagateSelectionDown?this.propagateDown(i,!1):this.selection=this.selection.filter((p,x)=>x!=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 x=e.metaKey||e.ctrlKey;l&&x?(this.isSingleSelectionMode()?this.selectionChange.emit(null):(this.selection=this.selection.filter((F,Qt)=>Qt!=o),this.selectionChange.emit(this.selection)),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.isMultipleSelectionMode()&&(this.selection=x?this.selection||[]:[],this.selection=[...this.selection,i],this.selectionChange.emit(this.selection)),this.onNodeSelect.emit({originalEvent:e,node:i}))}else this.isSingleSelectionMode()?l?(this.selection=null,this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=i,setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})):l?(this.selection=this.selection.filter((x,F)=>F!=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 l=this.hasFilteredNodes()?this.getNodeWithKey(e.key,i):null;l&&(l[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,l=!1;for(let p of e.children)this.isSelected(p)?o++:p.partialSelected&&(l=!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((x,F)=>F!=p))}l||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,l)=>l!=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.allowDrop(this.dragNode,null,this.dragNodeScope)&&(e.dataTransfer.dropEffect="copy",e.preventDefault())}onDrop(e){if(this.droppableNodes){e.preventDefault();let i=this.dragNode;if(this.isSameTreeScope(this.dragNodeScope))return;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>parseInt(i.left)+i.width||e.x<parseInt(i.left)||e.y>parseInt(i.top)+i.height||e.y<parseInt(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 l=i.parent;for(;l!=null;){if(l===e){o=!1;break}l=l.parent}}return o}else return!1;else return!1}hasCommonScope(e,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}isSameTreeScope(e){return this.hasCommonScope(e,this.draggableScope)}isValidDragScope(e){let i=this.droppableScope;return i?this.hasCommonScope(e,i):!0}_filter(e){let i=e;if(i==="")this.filteredNodes=null;else{this.filteredNodes=[];let n=this.filterBy.split(","),o=Ae(i).toLocaleLowerCase(this.filterLocale),l=this.filterMode==="strict";for(let p of this.value){let x=te({},p),F={searchFields:n,filterText:o,isStrictMode:l};(l&&(this.findFilteredNodes(x,F)||this.isFilterMatched(x,F))||!l&&(this.isFilterMatched(x,F)||this.findFilteredNodes(x,F)))&&this.filteredNodes.push(x)}}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 l of o){let p=te({},l);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:l}=i,p=!1;for(let x of n)Ae(String(lt(e,x))).toLocaleLowerCase(this.filterLocale).indexOf(o)>-1&&(p=!0);return(!p||l&&!this.isNodeLeaf(e))&&(p=this.findFilteredNodes(e,{searchFields:n,filterText:o,isStrictMode:l})||p),p}getIndex(e,i){let n=e.getItemOptions;return n?n(i).index:i}getBlockableElement(){return this.el.nativeElement.children[0]}onDestroy(){this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragStopSubscription&&this.dragStopSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(ie(ct,8))};static \u0275cmp=z({type:t,selectors:[["p-tree"]],contentQueries:function(i,n,o){if(i&1&&(v(o,Dt,4),v(o,_n,4),v(o,yn,4),v(o,Tn,4),v(o,bn,4),v(o,vn,4),v(o,Cn,4),v(o,xn,4),v(o,Sn,4),v(o,In,4),v(o,ee,4)),i&2){let l;h(l=_())&&(n.filterTemplate=l.first),h(l=_())&&(n.nodeTemplate=l.first),h(l=_())&&(n.headerTemplate=l.first),h(l=_())&&(n.footerTemplate=l.first),h(l=_())&&(n.loaderTemplate=l.first),h(l=_())&&(n.emptyMessageTemplate=l.first),h(l=_())&&(n.togglerIconTemplate=l.first),h(l=_())&&(n.checkboxIconTemplate=l.first),h(l=_())&&(n.loadingIconTemplate=l.first),h(l=_())&&(n.filterIconTemplate=l.first),h(l=_())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(M(Dt,5),M(Nn,5),M(wn,5),M(En,5)),i&2){let o;h(o=_())&&(n.filterViewChild=o.first),h(o=_())&&(n.scroller=o.first),h(o=_())&&(n.wrapperViewChild=o.first),h(o=_())&&(n.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,n){i&1&&C("drop",function(l){return n.handleDropEvent(l)})("dragover",function(l){return n.handleDragOverEvent(l)})("dragenter",function(){return n.handleDragEnterEvent()})("dragleave",function(l){return n.handleDragLeaveEvent(l)}),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",T],droppableNodes:[2,"droppableNodes","droppableNodes",T],metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],loading:[2,"loading","loading",T],loadingIcon:"loadingIcon",emptyMessage:"emptyMessage",ariaLabel:"ariaLabel",togglerAriaLabel:"togglerAriaLabel",ariaLabelledBy:"ariaLabelledBy",validateDrop:[2,"validateDrop","validateDrop",T],filter:[2,"filter","filter",T],filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",T],filterBy:"filterBy",filterMode:"filterMode",filterOptions:"filterOptions",filterPlaceholder:"filterPlaceholder",filteredNodes:"filteredNodes",filterLocale:"filterLocale",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",T],virtualScroll:[2,"virtualScroll","virtualScroll",T],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",q],virtualScrollOptions:"virtualScrollOptions",indentation:[2,"indentation","indentation",q],_templateMap:"_templateMap",trackBy:"trackBy",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",T]},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:[re([Ne,{provide:Mt,useExisting:t},{provide:pe,useExisting:t}]),he([O]),oe],decls:7,vars:6,consts:[["filter",""],["scroller",""],["content",""],["treeNode",""],["loader",""],["wrapper",""],["emptyFilter",""],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"class","pt"],[4,"ngIf"],[3,"pBind"],["data-p-icon","spinner","spin","",3,"class","pBind",4,"ngIf"],["data-p-icon","spinner","spin","",3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pt",4,"ngIf"],[3,"pt"],["pInputText","","type","search","autocomplete","off",3,"keydown.enter","input","pAutoFocus","pt"],["data-p-icon","search",3,"class","pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","tree",3,"items","tabindex","styleClass","style","scrollHeight","itemSize","lazy","options","pt","onScroll","onScrollIndexChange","onLazyLoad",4,"ngIf"],["hostName","tree",3,"onScroll","onScrollIndexChange","onLazyLoad","items","tabindex","styleClass","scrollHeight","itemSize","lazy","options","pt"],["role","tree",3,"class","ngClass","style","pBind",4,"ngIf"],["role","tree",3,"ngClass","pBind"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode","pt",4,"ngFor","ngForOf","ngForTrackBy"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode","pt"],["role","tree",3,"class","pBind",4,"ngIf"],["role","tree",3,"pBind"],[3,"node","firstChild","lastChild","index","level","loadingMode","pt",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild","index","level","loadingMode","pt"],[4,"ngIf","ngIfElse"]],template:function(i,n){if(i&1&&(d(0,Ln,3,5,"div",7)(1,An,1,0,"ng-container",8),Q(2,Hn,1,4,"ng-container")(3,qn,1,1,"p-iconfield",9),d(4,ni,3,2,"ng-container",10)(5,li,3,6,"div",7)(6,ai,1,0,"ng-container",8)),i&2){let o;a("ngIf",n.loading&&n.loadingMode==="mask"),c(),a("ngTemplateOutlet",n.headerTemplate||n._headerTemplate),c(),U(n.filterTemplate||n._filterTemplate?2:3),c(2),a("ngIf",(o=n.getRootNode())==null?null:o.length),c(),a("ngIf",!n.loading&&(n.getRootNode()==null||n.getRootNode().length===0)),c(),a("ngTemplateOutlet",n.footerTemplate||n._footerTemplate)}},dependencies:[K,Je,ae,se,j,Nt,P,Tt,He,ft,ce,xt,St,ci,dt,Se,O],encapsulation:2,changeDetection:0})}return t})(),tr=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=me({type:t});static \u0275inj=ge({imports:[we,P,P]})}return t})();var Lt=`
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 di=["value"],pi=["header"],ui=["empty"],gi=["footer"],fi=["clearicon"],mi=["triggericon"],hi=["dropdownicon"],_i=["filtericon"],yi=["closeicon"],Ti=["itemtogglericon"],bi=["itemcheckboxicon"],vi=["itemloadingicon"],Ci=["focusInput"],xi=["filter"],Si=["tree"],Ii=["panel"],Ni=["overlay"],wi=["firstHiddenFocusableEl"],Ei=["lastHiddenFocusableEl"],ki=(t,r)=>({$implicit:t,placeholder:r}),At=(t,r)=>({$implicit:t,options:r}),Di=t=>({"max-height":t}),Mi=t=>({$implicit:t}),Vi=(t,r)=>({$implicit:t,partialSelected:r});function Oi(t,r){t&1&&S(0)}function Fi(t,r){if(t&1&&(N(0),d(1,Oi,1,0,"ng-container",23),w()),t&2){let e=s();c(),a("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",$(2,ki,e.value,e.placeholder))}}function Bi(t,r){if(t&1&&(N(0),L(1),w()),t&2){let e=s(2);c(),X(" ",e.label||"empty"," ")}}function Li(t,r){if(t&1&&(m(0,"div",15),I(1,"p-chip",25),y()),t&2){let e=r.$implicit,i=s(3);f(i.cx("chipItem")),a("pBind",i.ptm("chipItem")),c(),f(i.cx("pcChip")),a("label",e.label)("pt",i.ptm("pcChip"))}}function Ai(t,r){if(t&1&&(N(0),L(1),w()),t&2){let e=s(3);c(),_e(e.placeholder||"empty")}}function Pi(t,r){if(t&1&&d(0,Li,2,7,"div",24)(1,Ai,2,1,"ng-container",18),t&2){let e=s(2);a("ngForOf",e.value),c(),a("ngIf",e.emptyValue)}}function Hi(t,r){if(t&1&&d(0,Bi,2,1,"ng-container",17)(1,Pi,2,2,"ng-template",null,4,k),t&2){let e=Y(2),i=s();a("ngIf",i.display==="comma")("ngIfElse",e)}}function Ri(t,r){if(t&1){let e=V();B(),m(0,"svg",28),C("click",function(n){u(e);let o=s(2);return g(o.clear(n))}),y()}if(t&2){let e=s(2);f(e.cx("clearIcon")),a("pBind",e.ptm("clearIcon"))}}function zi(t,r){}function Qi(t,r){t&1&&d(0,zi,0,0,"ng-template")}function Ui(t,r){if(t&1){let e=V();m(0,"span",29),C("click",function(n){u(e);let o=s(2);return g(o.clear(n))}),d(1,Qi,1,0,null,30),y()}if(t&2){let e=s(2);f(e.cx("clearIcon")),a("pBind",e.ptm("clearIcon")),c(),a("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function $i(t,r){if(t&1&&(N(0),d(1,Ri,1,3,"svg",26)(2,Ui,2,4,"span",27),w()),t&2){let e=s();c(),a("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),a("ngIf",e.clearIconTemplate||e.clearIconTemplate)}}function qi(t,r){if(t&1&&(B(),I(0,"svg",31)),t&2){let e=s();f(e.cx("dropdownIcon")),a("pBind",e.ptm("dropdownIcon"))}}function ji(t,r){}function Ki(t,r){t&1&&d(0,ji,0,0,"ng-template")}function Wi(t,r){if(t&1&&(m(0,"span",15),d(1,Ki,1,0,null,30),y()),t&2){let e=s();f(e.cx("dropdownIcon")),a("pBind",e.ptm("dropdownIcon")),c(),a("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate||e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Gi(t,r){t&1&&S(0)}function Yi(t,r){t&1&&S(0)}function Ji(t,r){if(t&1&&d(0,Yi,1,0,"ng-container",30),t&2){let e=s(3);a("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function Xi(t,r){t&1&&(N(0),d(1,Ji,1,1,"ng-template",null,9,k),w())}function Zi(t,r){t&1&&S(0)}function eo(t,r){if(t&1&&d(0,Zi,1,0,"ng-container",23),t&2){let e=r.$implicit,i=s(3);a("ngTemplateOutlet",i.itemTogglerIconTemplate||i._itemTogglerIconTemplate)("ngTemplateOutletContext",A(2,Mi,e))}}function to(t,r){t&1&&d(0,eo,1,4,"ng-template",null,10,k)}function no(t,r){t&1&&S(0)}function io(t,r){if(t&1&&d(0,no,1,0,"ng-container",23),t&2){let e=r.$implicit,i=r.partialSelected,n=s(3);a("ngTemplateOutlet",n.itemCheckboxIconTemplate||n._itemCheckboxIconTemplate)("ngTemplateOutletContext",$(2,Vi,e,i))}}function oo(t,r){t&1&&d(0,io,1,5,"ng-template",null,11,k)}function ro(t,r){t&1&&S(0)}function lo(t,r){if(t&1&&d(0,ro,1,0,"ng-container",30),t&2){let e=s(3);a("ngTemplateOutlet",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate)}}function ao(t,r){t&1&&d(0,lo,1,1,"ng-template",null,12,k)}function so(t,r){t&1&&S(0)}function co(t,r){if(t&1){let e=V();m(0,"div",16,5)(2,"span",32,6),C("focus",function(n){u(e);let o=s();return g(o.onFirstHiddenFocus(n))}),y(),d(4,Gi,1,0,"ng-container",23),m(5,"div",16)(6,"p-tree",33,7),C("selectionChange",function(n){u(e);let o=s();return g(o.onSelectionChange(n))})("onNodeExpand",function(n){u(e);let o=s();return g(o.nodeExpand(n))})("onNodeCollapse",function(n){u(e);let o=s();return g(o.nodeCollapse(n))})("onNodeSelect",function(n){u(e);let o=s();return g(o.onSelect(n))})("onNodeUnselect",function(n){u(e);let o=s();return g(o.onUnselect(n))}),d(8,Xi,3,0,"ng-container",18)(9,to,2,0,null,18)(10,oo,2,0,null,18)(11,ao,2,0,null,18),y()(),d(12,so,1,0,"ng-container",23),m(13,"span",32,8),C("focus",function(n){u(e);let o=s();return g(o.onLastHiddenFocus(n))}),y()()}if(t&2){let e=s();f(e.cn(e.cx("panel"),e.panelStyleClass,e.panelClass)),a("ngStyle",e.panelStyle)("pBind",e.ptm("panel")),E("id",e.listId),c(2),a("pBind",e.ptm("hiddenFirstFocusableEl")),E("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),c(2),a("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)("ngTemplateOutletContext",$(45,At,e.value,e.options)),c(),f(e.cx("treeContainer")),a("ngStyle",A(48,Di,e.scrollHeight))("pBind",e.ptm("treeContainer")),c(),a("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)("pt",e.ptm("pcTree")),c(2),a("ngIf",e.emptyTemplate||e._emptyTemplate),c(),a("ngIf",e.itemTogglerIconTemplate||e._itemTogglerIconTemplate),c(),a("ngIf",e.itemCheckboxIconTemplate||e._itemCheckboxIconTemplate),c(),a("ngIf",e.itemLoadingIconTemplate||e._itemLoadingIconTemplate),c(),a("ngTemplateOutlet",e.footerTemplate)("ngTemplateOutletContext",$(50,At,e.value,e.options)),c(),a("pBind",e.ptm("hiddenLastFocusableEl")),E("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var po=`
361
+ ${Lt}
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
+
377
+ .p-treeselect-clear-icon.p-icon {
378
+ flex-shrink: 0;
379
+ }
380
+ `,uo={root:({instance:t})=>te({position:t.$appendTo()==="self"?"relative":void 0},t.containerStyle)},go={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"},Pt=(()=>{class t extends xe{name="treeselect";style=po;classes=go;inlineStyles=uo;static \u0275fac=(()=>{let e;return function(n){return(e||(e=G(t)))(n||t)}})();static \u0275prov=W({token:t,factory:t.\u0275fac})}return t})();var fo={provide:et,useExisting:ue(()=>Ee),multi:!0},Ht=new ne("TREESELECT_INSTANCE"),Ee=(()=>{class t extends pt{$pcTreeSelect=D(Ht,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=D(O,{self:!0});_componentStyle=D(Pt);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}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=le();variant=le();fluid=le(void 0,{transform:T});appendTo=le(void 0);onNodeExpand=new b;onNodeCollapse=new b;onShow=new b;onHide=new b;onClear=new b;onFilter=new b;onFocus=new b;onBlur=new b;onNodeUnselect=new b;onNodeSelect=new b;$appendTo=H(()=>this.appendTo()||this.config.overlayAppendTo());focusInput;filterViewChild;treeViewChild;panelEl;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;$variant=H(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());pcFluid=D(gt,{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="";onHostClick(e){this.onClick(e)}onInit(){this.listId=at("pn_id_")+"_list",this.updateTreeState()}onAfterContentInit(){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)Le(this.filterValue)&&this.treeViewChild?._filter(this.filterValue),this.filterInputAutoFocus&&this.filterViewChild?.nativeElement.focus();else{let i=de(this.panelEl?.nativeElement);i&&i.length>0&&i[0].focus()}break}}onOverlayBeforeHide(e){let i=de(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)&&!R(e.target,"p-treeselect-close")&&!R(e.target,"p-checkbox-box")&&!R(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=de(this.panelEl.nativeElement,".p-tree-node");i&&i.length>0&&i[0].focus(),e.preventDefault()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?it(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;Z(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?ot(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;Z(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&&Le(this.value)}onTabKey(e,i=!1){i||(this.overlayVisible&&this.hasFocusableElements()?(Z(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault()):this.overlayVisible&&this.hide(this.filter))}hasFocusableElements(){return de(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=G(t)))(n||t)}})();static \u0275cmp=z({type:t,selectors:[["p-treeSelect"],["p-treeselect"],["p-tree-select"]],contentQueries:function(i,n,o){if(i&1&&(v(o,di,4),v(o,pi,4),v(o,ui,4),v(o,gi,4),v(o,fi,4),v(o,mi,4),v(o,hi,4),v(o,_i,4),v(o,yi,4),v(o,Ti,4),v(o,bi,4),v(o,vi,4),v(o,ee,4)),i&2){let l;h(l=_())&&(n.valueTemplate=l.first),h(l=_())&&(n.headerTemplate=l.first),h(l=_())&&(n.emptyTemplate=l.first),h(l=_())&&(n.footerTemplate=l.first),h(l=_())&&(n.clearIconTemplate=l.first),h(l=_())&&(n.triggerIconTemplate=l.first),h(l=_())&&(n.dropdownIconTemplate=l.first),h(l=_())&&(n.filterIconTemplate=l.first),h(l=_())&&(n.closeIconTemplate=l.first),h(l=_())&&(n.itemTogglerIconTemplate=l.first),h(l=_())&&(n.itemCheckboxIconTemplate=l.first),h(l=_())&&(n.itemLoadingIconTemplate=l.first),h(l=_())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(M(Ci,5),M(xi,5),M(Si,5),M(Ii,5),M(Ni,5),M(wi,5),M(Ei,5)),i&2){let o;h(o=_())&&(n.focusInput=o.first),h(o=_())&&(n.filterViewChild=o.first),h(o=_())&&(n.treeViewChild=o.first),h(o=_())&&(n.panelEl=o.first),h(o=_())&&(n.overlayViewChild=o.first),h(o=_())&&(n.firstHiddenFocusableElementOnOverlay=o.first),h(o=_())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:4,hostBindings:function(i,n){i&1&&C("click",function(l){return n.onHostClick(l)}),i&2&&(J(n.sx("root")),f(n.cn(n.cx("root"),n.containerStyleClass)))},inputs:{inputId:"inputId",scrollHeight:"scrollHeight",metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],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",T],filterBy:"filterBy",filterMode:"filterMode",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],showClear:[2,"showClear","showClear",T],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",T],virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",autofocus:[2,"autofocus","autofocus",T],options:"options",loading:[2,"loading","loading",T],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:[re([fo,Pt,{provide:Ht,useExisting:t},{provide:pe,useExisting:t}]),he([O]),oe],decls:16,vars:35,consts:[["focusInput",""],["defaultValueTemplate",""],["overlay",""],["content",""],["chipsValueTemplate",""],["panel",""],["firstHiddenFocusableEl",""],["tree",""],["lastHiddenFocusableEl",""],["empty",""],["togglericon",""],["checkboxicon",""],["loadingicon",""],[1,"p-hidden-accessible",3,"pBind"],["type","text","role","combobox","readonly","",3,"focus","blur","keydown","pAutoFocus","pBind"],[3,"pBind"],[3,"ngStyle","pBind"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["role","button","aria-haspopup","tree",3,"pBind"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"visibleChange","onAnimationStart","onBeforeHide","onShow","onHide","hostAttrSelector","visible","options","target","appendTo","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind",4,"ngFor","ngForOf"],[3,"label","pt"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["data-p-icon","chevron-down",3,"pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[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","pt"]],template:function(i,n){if(i&1){let o=V();m(0,"div",13)(1,"input",14,0),C("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()(),m(3,"div",15)(4,"div",16),d(5,Fi,2,5,"ng-container",17)(6,Hi,3,2,"ng-template",null,1,k),y()(),d(8,$i,3,2,"ng-container",18),m(9,"div",19),d(10,qi,1,3,"svg",20)(11,Wi,2,4,"span",21),y(),m(12,"p-overlay",22,2),je("visibleChange",function(p){return u(o),qe(n.overlayVisible,p)||(n.overlayVisible=p),g(p)}),C("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,co,15,53,"ng-template",null,3,k),y()}if(i&2){let o=Y(7);a("pBind",n.ptm("hiddenInputContainer")),E("data-p-hidden-accessible",!0),c(),a("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),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")),a("pBind",n.ptm("labelContainer")),c(),f(n.cn(n.cx("label"),n.labelStyleClass)),a("ngStyle",n.labelStyle)("pBind",n.ptm("label")),c(),a("ngIf",n.valueTemplate||n._valueTemplate)("ngIfElse",o),c(3),a("ngIf",n.checkValue()&&!n.$disabled()&&n.showClear),c(),f(n.cx("dropdown")),a("pBind",n.ptm("dropdown")),E("aria-expanded",n.overlayVisible??!1)("aria-label","treeselect trigger"),c(),a("ngIf",!n.triggerIconTemplate&&!n._triggerIconTemplate&&!n.dropdownIconTemplate&&!n._dropdownIconTemplate),c(),a("ngIf",n.triggerIconTemplate||n._triggerIconTemplate||n.dropdownIconTemplate||n._dropdownIconTemplate),c(),a("hostAttrSelector",n.$attrSelector),$e("visible",n.overlayVisible),a("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("pt",n.ptm("pcOverlay"))}},dependencies:[K,ae,se,j,ye,Ct,P,we,Se,bt,Ie,vt,O],encapsulation:2,changeDetection:0})}return t})(),Rt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=me({type:t});static \u0275inj=ge({imports:[Ee,P,P]})}return t})();var ke=class t{signalRClient=D(Ze);continuedCategories$;allCategories$;_onOpenTreeSelector=new ze;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(r){this.continuedCategories$=this.onOpenTreeSelector$.pipe(Oe(this.signalRClient.recacheCategory$),Ve((e,[i,n])=>n||!e.length?(this.signalRClient.resetCategoryCache(),r.get("/API/catalog/category/ActiveOptions")):De(e),[]),Me(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(Oe(this.signalRClient.recacheCategory$),Ve((e,[i,n])=>n||!e.length?r.get("/API/catalog/category/SelectOptions"):De(e),[]),Me(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||t)(Ue(Ce))};static \u0275prov=W({token:t,factory:t.\u0275fac,providedIn:"root"})};function yo(t,r){t&1&&S(0)}function To(t,r){if(t&1&&(m(0,"p-floatLabel",1),d(1,yo,1,0,"ng-container",2),m(2,"label",3),L(3,"Category"),y()()),t&2){s();let e=Y(3);c(),a("ngTemplateOutlet",e)}}function bo(t,r){t&1&&S(0)}function vo(t,r){if(t&1&&d(0,bo,1,0,"ng-container",2),t&2){s();let e=Y(3);a("ngTemplateOutlet",e)}}function Co(t,r){if(t&1&&(m(0,"div",6),L(1),y()),t&2){let e=s(2);a("matTooltip",e.selectedCategoryLabel),c(),X(" ",e.selectedCategoryLabel," ")}}function xo(t,r){if(t&1){let e=V();m(0,"p-treeSelect",4),We(1,"async"),C("click",function(){u(e);let n=s();return g(n.loadCategories())})("ngModelChange",function(n){u(e);let o=s();return g(o.onSelectCategory(n))})("onClear",function(){u(e);let n=s();return g(n.onClear())}),d(2,Co,2,2,"ng-template",5),y()}if(t&2){let e=s();a("options",Ge(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.showLabel?"":e.placeholder)}}var zt=class t{constructor(r,e){this.http=r;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;placeholder="Select Category";isInitializedCategoryLabel=!1;selectedCategory;selectedCategoryID;selectedCategoryIDChange=new b;onSelectedCategory=Ye();selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let r=document.querySelector("body");this.top=r.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(Te.IsEmpty(this.selectedCategoryID)&&Te.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(Qe(r=>{this.selectedCategory=this.findSelectedCategory(r,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(r){this.selectedCategory=r,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=r?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID),this.onSelectedCategory.emit(this.selectedCategory)}generateLabelSelectedCategory(r){if(r){let e=[];this.selectedCategoryLabel="";do e=[...e,r.label],r=r.parent;while(r!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(r,e){if(Te.IsNotEmpty(e))for(let i of r){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{setTimeout(()=>{let r=document.querySelector(".p-overlay.p-component"),e=this.top+r.getBoundingClientRect().top,i=r.getAttribute("style")||"";r.setAttribute("style",`${i} top: ${e+this.top}px;`)},0)}catch(r){console.error("Error adjusting top position:",r)}finally{this.treeSelector.onOpenTreeSelector()}}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||t)(ie(Ce),ie(ke))};static \u0275cmp=z({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",2,"z-index","999999 !important"],["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,To,4,1,"p-floatLabel",1)(1,vo,1,1,"ng-container"),d(2,xo,3,6,"ng-template",null,0,k)),e&2&&U(i.showLabel?0:1)},dependencies:[K,j,ht,mt,Rt,Ee,ee,ce,be,ve,Et,wt,Xe],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{we as a,tr as b,Ee as c,Rt as d,ke as e,zt as f};