marketplacepos 5.48.6 → 5.50.1

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 (286) hide show
  1. package/Marketplace/3rdpartylicenses.txt +214 -214
  2. package/Marketplace/{chunk-SHUYFOQI.js → chunk-24KZDZKS.js} +1 -1
  3. package/Marketplace/{chunk-7JQEF4XX.js → chunk-27DIE2YS.js} +1 -1
  4. package/Marketplace/chunk-2AXBEVQ7.js +4 -0
  5. package/Marketplace/chunk-2K5AP6IZ.js +1 -0
  6. package/Marketplace/{chunk-4RG5YR7N.js → chunk-2NRHX6CZ.js} +2 -2
  7. package/Marketplace/{chunk-ZTHO6JJM.js → chunk-2ST3DMR6.js} +1 -1
  8. package/Marketplace/chunk-2UNT2DUM.js +1 -0
  9. package/Marketplace/chunk-34ZZ4GCS.js +1 -0
  10. package/Marketplace/{chunk-5X2E3W32.js → chunk-3HME327V.js} +1 -1
  11. package/Marketplace/chunk-3NAMEVOB.js +1 -0
  12. package/Marketplace/chunk-3PIHLKK3.js +1 -0
  13. package/Marketplace/{chunk-AFIF6VRM.js → chunk-3SCX7IMW.js} +1 -1
  14. package/Marketplace/chunk-44KIXUU2.js +1 -0
  15. package/Marketplace/chunk-4G46574H.js +1 -0
  16. package/Marketplace/chunk-4KGXKQPG.js +1 -0
  17. package/Marketplace/{chunk-QFSA7CU4.js → chunk-4S4BOPUV.js} +2 -2
  18. package/Marketplace/chunk-4YKPN3RV.js +1 -0
  19. package/Marketplace/chunk-52YCKO3Z.js +1 -0
  20. package/Marketplace/{chunk-5BSPSA4O.js → chunk-5C24BA5F.js} +1 -1
  21. package/Marketplace/{chunk-PMVDQ2OP.js → chunk-5QDH4ZNS.js} +1 -1
  22. package/Marketplace/{chunk-ZETUYNFJ.js → chunk-5UFP37GQ.js} +1 -1
  23. package/Marketplace/{chunk-PDCVMSLL.js → chunk-5WQ3LCWP.js} +1 -1
  24. package/Marketplace/chunk-5WT456T7.js +3 -0
  25. package/Marketplace/chunk-67LUKQJC.js +1 -0
  26. package/Marketplace/chunk-6C4UBIZK.js +10 -0
  27. package/Marketplace/{chunk-ZKIO2ZQ6.js → chunk-6F62N7RZ.js} +2 -2
  28. package/Marketplace/chunk-6GNIJWEX.js +1 -0
  29. package/Marketplace/chunk-6NS3D6KQ.js +5 -0
  30. package/Marketplace/{chunk-RQQWNLDZ.js → chunk-7HRL6MHY.js} +1 -1
  31. package/Marketplace/chunk-7QP3VZ6H.js +1 -0
  32. package/Marketplace/chunk-7R2D2JZ6.js +3 -0
  33. package/Marketplace/{chunk-5MV3UFJQ.js → chunk-7X4B2T6C.js} +2 -2
  34. package/Marketplace/chunk-A2RTZANN.js +1 -0
  35. package/Marketplace/chunk-A53NYS6S.js +1 -0
  36. package/Marketplace/chunk-AHMFSCTX.js +2 -0
  37. package/Marketplace/{chunk-LEUBNBGC.js → chunk-AJSJJV2I.js} +1 -1
  38. package/Marketplace/chunk-ALLZQ6Y3.js +1 -0
  39. package/Marketplace/chunk-AQVMOA6Z.js +1 -0
  40. package/Marketplace/chunk-B5ZK5TGW.js +1 -0
  41. package/Marketplace/chunk-BAW6PICI.js +2 -0
  42. package/Marketplace/{chunk-DTAHV4GM.js → chunk-BC6LHZWP.js} +1 -1
  43. package/Marketplace/{chunk-GPHNPV7O.js → chunk-BMOMTOEW.js} +2 -2
  44. package/Marketplace/chunk-BUMWMFHU.js +2 -0
  45. package/Marketplace/{chunk-OQM7K2EA.js → chunk-BXNDE6NQ.js} +1 -1
  46. package/Marketplace/chunk-BYL4N2KB.js +1 -0
  47. package/Marketplace/{chunk-6KWG6O5L.js → chunk-C2LAQOUW.js} +1 -1
  48. package/Marketplace/{chunk-L7WZ6U4T.js → chunk-DDFP4CNP.js} +1 -1
  49. package/Marketplace/{chunk-6OJQRHIZ.js → chunk-DLHIDOS3.js} +1 -1
  50. package/Marketplace/chunk-DPB2343S.js +1 -0
  51. package/Marketplace/chunk-E4RY2MK5.js +1 -0
  52. package/Marketplace/chunk-EGLM6YK5.js +1 -0
  53. package/Marketplace/{chunk-IM5M2CAI.js → chunk-EH3PIGLJ.js} +1 -1
  54. package/Marketplace/chunk-ENYJ4KAM.js +1 -0
  55. package/Marketplace/chunk-ESBL3IFN.js +1 -0
  56. package/Marketplace/{chunk-2J7P6ENI.js → chunk-F26O6FCO.js} +1 -1
  57. package/Marketplace/chunk-FEQXCPQI.js +2 -0
  58. package/Marketplace/chunk-FFJXYPVA.js +1 -0
  59. package/Marketplace/chunk-FLNIURLD.js +1 -0
  60. package/Marketplace/chunk-FMXX7QB5.js +5 -0
  61. package/Marketplace/chunk-FNOENLVR.js +2 -0
  62. package/Marketplace/{chunk-4ILDFTIG.js → chunk-FOKLBUX6.js} +1 -1
  63. package/Marketplace/chunk-FTIUJUXI.js +1 -0
  64. package/Marketplace/{chunk-WNUTNP6I.js → chunk-G3B6ETBU.js} +5 -5
  65. package/Marketplace/{chunk-VWX2IX64.js → chunk-G4T4VM5E.js} +1 -1
  66. package/Marketplace/chunk-GBF6A3MS.js +1 -0
  67. package/Marketplace/chunk-GDHNMHJZ.js +1 -0
  68. package/Marketplace/chunk-GG3X4R7G.js +1 -0
  69. package/Marketplace/chunk-GJC736LV.js +1 -0
  70. package/Marketplace/chunk-GVJLKDIO.js +1 -0
  71. package/Marketplace/chunk-H6YNHOUQ.js +1 -0
  72. package/Marketplace/chunk-HGVFXR6T.js +1 -0
  73. package/Marketplace/chunk-HJZ3XPSH.js +266 -0
  74. package/Marketplace/chunk-HNDBAXI5.js +1 -0
  75. package/Marketplace/{chunk-N5AE5WMQ.js → chunk-HO2TMGLM.js} +1 -1
  76. package/Marketplace/chunk-HORS2MKK.js +1 -0
  77. package/Marketplace/chunk-IDGK6BMG.js +1 -0
  78. package/Marketplace/chunk-IF7EJSQG.js +1 -0
  79. package/Marketplace/chunk-IIJEILDV.js +1 -0
  80. package/Marketplace/{chunk-3L7Y6LG6.js → chunk-IM7YH54S.js} +1 -1
  81. package/Marketplace/chunk-IV5IPY6H.js +1 -0
  82. package/Marketplace/{chunk-63I3I3MX.js → chunk-IVKFEOCB.js} +1 -1
  83. package/Marketplace/chunk-J6HA4ZHH.js +1 -0
  84. package/Marketplace/chunk-JM3NLPH4.js +9 -0
  85. package/Marketplace/chunk-JNRCB7N3.js +2 -0
  86. package/Marketplace/chunk-JV4F6ZYF.js +1 -0
  87. package/Marketplace/chunk-JWDQVXQP.js +1 -0
  88. package/Marketplace/{chunk-3664K4KH.js → chunk-JYP3Z3TV.js} +19 -19
  89. package/Marketplace/chunk-JYSOUJ42.js +1 -0
  90. package/Marketplace/chunk-K5WSFDNA.js +1 -0
  91. package/Marketplace/chunk-KNBXCPTA.js +1 -0
  92. package/Marketplace/chunk-KR6UNAIL.js +3 -0
  93. package/Marketplace/chunk-KSRL7Y2J.js +2 -0
  94. package/Marketplace/{chunk-ODLI42YV.js → chunk-KTTKHI2N.js} +1 -1
  95. package/Marketplace/chunk-KUKTPGJ2.js +1 -0
  96. package/Marketplace/chunk-LKJCOEGO.js +1 -0
  97. package/Marketplace/chunk-LQ3VUWFK.js +2 -0
  98. package/Marketplace/chunk-LQPY6AYJ.js +1 -0
  99. package/Marketplace/{chunk-FULVA6QB.js → chunk-LR2YCE6M.js} +1 -1
  100. package/Marketplace/{chunk-DXYMG6QK.js → chunk-LUJ3SHSP.js} +1 -1
  101. package/Marketplace/chunk-LYN2PNQK.js +1 -0
  102. package/Marketplace/{chunk-J6CZKQ53.js → chunk-M3DUXHYE.js} +4 -4
  103. package/Marketplace/chunk-M7TUSCXB.js +1 -0
  104. package/Marketplace/{chunk-6PW6S7MI.js → chunk-MAQQQB3T.js} +1 -1
  105. package/Marketplace/chunk-MIGPO7BO.js +1 -0
  106. package/Marketplace/chunk-MM7SAZOU.js +1 -0
  107. package/Marketplace/{chunk-CM3B2UZ7.js → chunk-MPFJ7FBJ.js} +1 -1
  108. package/Marketplace/{chunk-SJ5MC42H.js → chunk-MT3CWRVG.js} +2 -2
  109. package/Marketplace/chunk-MTVUPPAN.js +149 -0
  110. package/Marketplace/chunk-MV2PLTWF.js +1 -0
  111. package/Marketplace/{chunk-WHHW4IZT.js → chunk-N3E43QWK.js} +2 -2
  112. package/Marketplace/{chunk-AFDI4TD4.js → chunk-NIJCYMZM.js} +3 -3
  113. package/Marketplace/chunk-NQLMPUSB.js +1 -0
  114. package/Marketplace/chunk-NTU64XT4.js +1 -0
  115. package/Marketplace/{chunk-3JRUKSV3.js → chunk-NVPT5BF2.js} +2 -2
  116. package/Marketplace/chunk-O3QPBAV5.js +7 -0
  117. package/Marketplace/chunk-O4D64GHO.js +2 -0
  118. package/Marketplace/{chunk-UH5C5HXK.js → chunk-O4U34AC7.js} +1 -1
  119. package/Marketplace/chunk-OCXIDX74.js +1 -0
  120. package/Marketplace/chunk-OGF4VFSK.js +1 -0
  121. package/Marketplace/chunk-OHGMB7HJ.js +4 -0
  122. package/Marketplace/chunk-OIWQSDTS.js +1 -0
  123. package/Marketplace/chunk-OSGPJXJZ.js +1 -0
  124. package/Marketplace/chunk-OVZRFDFO.js +1 -0
  125. package/Marketplace/chunk-P3XVM6DH.js +1 -0
  126. package/Marketplace/chunk-PBAFAOKJ.js +1 -0
  127. package/Marketplace/{chunk-IGKMJFKP.js → chunk-PN3KM4M4.js} +2 -2
  128. package/Marketplace/{chunk-L76NLJD7.js → chunk-PWOKOWVV.js} +2 -2
  129. package/Marketplace/chunk-QJCYEP2A.js +1 -0
  130. package/Marketplace/{chunk-4RLWHMI6.js → chunk-QMHG3QTI.js} +1 -1
  131. package/Marketplace/chunk-QMIL5QUX.js +1 -0
  132. package/Marketplace/chunk-QOSWDELZ.js +1 -0
  133. package/Marketplace/chunk-QQF5ZMGS.js +2 -0
  134. package/Marketplace/{chunk-6XDT56RT.js → chunk-R3WIWDSP.js} +2 -2
  135. package/Marketplace/{chunk-LOWGZOML.js → chunk-RBZU7OVM.js} +1 -1
  136. package/Marketplace/chunk-RFWRWMRC.js +1 -0
  137. package/Marketplace/chunk-RHMSGY7X.js +1 -0
  138. package/Marketplace/chunk-RM6ZXD3O.js +1 -0
  139. package/Marketplace/chunk-RN5CI3LE.js +1 -0
  140. package/Marketplace/chunk-ROS2QMKF.js +1 -0
  141. package/Marketplace/{chunk-YTHY4IFS.js → chunk-RQUCYFCB.js} +1 -1
  142. package/Marketplace/chunk-RUYX7KTP.js +1 -0
  143. package/Marketplace/{chunk-L22SKCLL.js → chunk-RWPLFNHT.js} +1 -1
  144. package/Marketplace/{chunk-5PMKN6PM.js → chunk-RXC5D64C.js} +2 -2
  145. package/Marketplace/chunk-RZ5N5JLA.js +1 -0
  146. package/Marketplace/chunk-S5D64XYA.js +1 -0
  147. package/Marketplace/chunk-S5XYWXXP.js +1 -0
  148. package/Marketplace/chunk-SABMHH6B.js +1 -0
  149. package/Marketplace/{chunk-TXOZULMZ.js → chunk-SIPZP62B.js} +1 -1
  150. package/Marketplace/{chunk-6CM22SKR.js → chunk-SMZOSLIK.js} +1 -1
  151. package/Marketplace/chunk-SN5AD4QE.js +1 -0
  152. package/Marketplace/chunk-SPLGZRGH.js +5 -0
  153. package/Marketplace/chunk-TBVMCNS2.js +1 -0
  154. package/Marketplace/{chunk-3WRXJBHF.js → chunk-TDMNVEUU.js} +3 -3
  155. package/Marketplace/chunk-TDP3PQDA.js +1 -0
  156. package/Marketplace/{chunk-RUBV3KX2.js → chunk-TKZ74HJD.js} +1 -1
  157. package/Marketplace/chunk-TMBZ4K5S.js +1 -0
  158. package/Marketplace/chunk-TOK5EWN4.js +1 -0
  159. package/Marketplace/chunk-TYNQDFOT.js +5 -0
  160. package/Marketplace/{chunk-7GY4O2UX.js → chunk-TYQYNICX.js} +3 -3
  161. package/Marketplace/{chunk-VX75I7HA.js → chunk-TZTW72NT.js} +1 -1
  162. package/Marketplace/chunk-U5DJYZUI.js +1 -0
  163. package/Marketplace/{chunk-AZOCRKXK.js → chunk-UB62TZOI.js} +1 -1
  164. package/Marketplace/chunk-UE5E7JXK.js +1 -0
  165. package/Marketplace/chunk-UMLV2ZUF.js +1 -0
  166. package/Marketplace/{chunk-DUXKDRDP.js → chunk-UMMQ62IZ.js} +1 -1
  167. package/Marketplace/{chunk-JBEKD57G.js → chunk-UPRDDI4K.js} +1 -1
  168. package/Marketplace/{chunk-MDP2SGJI.js → chunk-V6QH3IVL.js} +1 -1
  169. package/Marketplace/chunk-VH7JZJ2B.js +1 -0
  170. package/Marketplace/chunk-VOONKP66.js +1 -0
  171. package/Marketplace/chunk-VP3XO25X.js +2 -0
  172. package/Marketplace/{chunk-KTLMPVSK.js → chunk-VV4G5VL5.js} +1 -1
  173. package/Marketplace/chunk-VVAEM355.js +1 -0
  174. package/Marketplace/chunk-VZ7Q4WN7.js +1 -0
  175. package/Marketplace/{chunk-NWB7EVME.js → chunk-W33M7S2S.js} +1 -1
  176. package/Marketplace/{chunk-L3W6SG2T.js → chunk-WAXAIL2I.js} +1 -1
  177. package/Marketplace/chunk-WIBWF333.js +1 -0
  178. package/Marketplace/{chunk-HK5FXZE4.js → chunk-WIRBYT7F.js} +1 -1
  179. package/Marketplace/{chunk-KJE5GRQ4.js → chunk-WVA5LYVE.js} +1 -1
  180. package/Marketplace/chunk-X52ZT4MU.js +1 -0
  181. package/Marketplace/chunk-XLQGQESJ.js +2 -0
  182. package/Marketplace/{chunk-6Q6L5NUD.js → chunk-XUDE7VBC.js} +1 -1
  183. package/Marketplace/{chunk-DHPNXR6E.js → chunk-Y3O22N4P.js} +1 -1
  184. package/Marketplace/{chunk-Q2QX5AAJ.js → chunk-YABJCAAL.js} +4 -4
  185. package/Marketplace/{chunk-WFVK32EW.js → chunk-YAWT3CLI.js} +1 -1
  186. package/Marketplace/chunk-YD6BNJ2B.js +1 -0
  187. package/Marketplace/{chunk-FHER4TFY.js → chunk-YKKHSYDW.js} +1 -1
  188. package/Marketplace/chunk-YMAKW4QT.js +1 -0
  189. package/Marketplace/chunk-YNL43MLU.js +1 -0
  190. package/Marketplace/chunk-YQZHIZHO.js +6 -0
  191. package/Marketplace/chunk-YUPBZXLS.js +1 -0
  192. package/Marketplace/chunk-YX65R6YJ.js +1 -0
  193. package/Marketplace/chunk-YYV4FSYQ.js +1 -0
  194. package/Marketplace/{chunk-EYT2YJGK.js → chunk-Z2XRGVGT.js} +1 -1
  195. package/Marketplace/chunk-Z6LN3X5Q.js +1 -0
  196. package/Marketplace/{chunk-HPINZVE4.js → chunk-ZC526ERX.js} +1 -1
  197. package/Marketplace/{chunk-M4ZE35XK.js → chunk-ZDBFIPDM.js} +1 -1
  198. package/Marketplace/{chunk-RNWHARPK.js → chunk-ZGIYCORM.js} +1 -1
  199. package/Marketplace/chunk-ZRTUQNSQ.js +1 -0
  200. package/Marketplace/{chunk-ITGVXYDV.js → chunk-ZWUYPYHD.js} +1 -1
  201. package/Marketplace/chunk-ZXP3XYSZ.js +1 -0
  202. package/Marketplace/index.html +2 -2
  203. package/Marketplace/main-RFMKGIMO.js +1 -0
  204. package/package.json +1 -1
  205. package/Marketplace/chunk-2B5DXBBJ.js +0 -1
  206. package/Marketplace/chunk-2F4DTZCZ.js +0 -2
  207. package/Marketplace/chunk-2MEVIFIA.js +0 -1
  208. package/Marketplace/chunk-2USFVKEX.js +0 -1
  209. package/Marketplace/chunk-36U7D4LI.js +0 -1
  210. package/Marketplace/chunk-4JDI3AL5.js +0 -1
  211. package/Marketplace/chunk-4LQREJ6J.js +0 -1
  212. package/Marketplace/chunk-4YCSITNV.js +0 -1
  213. package/Marketplace/chunk-5A3P2NB3.js +0 -1
  214. package/Marketplace/chunk-6EORXONU.js +0 -4
  215. package/Marketplace/chunk-6LRZDPE5.js +0 -1
  216. package/Marketplace/chunk-6UOPF4ZP.js +0 -1
  217. package/Marketplace/chunk-7Z5X4HRT.js +0 -1
  218. package/Marketplace/chunk-A7PUMY67.js +0 -1
  219. package/Marketplace/chunk-BQEBDVGB.js +0 -7
  220. package/Marketplace/chunk-BXYXVBXP.js +0 -1
  221. package/Marketplace/chunk-C4VD7LDS.js +0 -266
  222. package/Marketplace/chunk-C6JVY2ER.js +0 -1
  223. package/Marketplace/chunk-C7N6EI73.js +0 -1
  224. package/Marketplace/chunk-CBD25LAJ.js +0 -5
  225. package/Marketplace/chunk-CT6UFONR.js +0 -1
  226. package/Marketplace/chunk-D2J64VUP.js +0 -1
  227. package/Marketplace/chunk-DAUML5UD.js +0 -2
  228. package/Marketplace/chunk-DDV2A3Y2.js +0 -1
  229. package/Marketplace/chunk-E32KODU7.js +0 -1
  230. package/Marketplace/chunk-E3EBAWLJ.js +0 -1
  231. package/Marketplace/chunk-E66QUDQF.js +0 -1
  232. package/Marketplace/chunk-E6AMKEQR.js +0 -149
  233. package/Marketplace/chunk-E6ZWL77N.js +0 -1
  234. package/Marketplace/chunk-EDEZ3JLR.js +0 -4
  235. package/Marketplace/chunk-ESXDXSQ3.js +0 -1
  236. package/Marketplace/chunk-FCEXPGTK.js +0 -5
  237. package/Marketplace/chunk-FKGKMEDE.js +0 -2
  238. package/Marketplace/chunk-FKPDG4AM.js +0 -1
  239. package/Marketplace/chunk-GG3MDS4C.js +0 -1
  240. package/Marketplace/chunk-GURSK3ZV.js +0 -1
  241. package/Marketplace/chunk-HNFW4VQS.js +0 -1
  242. package/Marketplace/chunk-HSQHQZV7.js +0 -1
  243. package/Marketplace/chunk-I3R7CC6J.js +0 -1
  244. package/Marketplace/chunk-I7C6W3RB.js +0 -1
  245. package/Marketplace/chunk-ICE4DSEP.js +0 -1
  246. package/Marketplace/chunk-ILW6ZFFV.js +0 -1
  247. package/Marketplace/chunk-JW7NES7L.js +0 -1
  248. package/Marketplace/chunk-JWK3HR6P.js +0 -1
  249. package/Marketplace/chunk-K2BII75W.js +0 -15
  250. package/Marketplace/chunk-KSR5TQDN.js +0 -1
  251. package/Marketplace/chunk-KUBWQQZK.js +0 -1
  252. package/Marketplace/chunk-KUNITWR6.js +0 -1
  253. package/Marketplace/chunk-KVDREHOE.js +0 -1
  254. package/Marketplace/chunk-LNJUGHOX.js +0 -2
  255. package/Marketplace/chunk-LY32FUZ4.js +0 -2
  256. package/Marketplace/chunk-M2BYW5SR.js +0 -1
  257. package/Marketplace/chunk-MTPSSM64.js +0 -2
  258. package/Marketplace/chunk-N5VHHR26.js +0 -1
  259. package/Marketplace/chunk-NBCUYSP7.js +0 -1
  260. package/Marketplace/chunk-NCKPMA6Q.js +0 -1
  261. package/Marketplace/chunk-NH6QGSVC.js +0 -1
  262. package/Marketplace/chunk-O2YF5VGD.js +0 -2
  263. package/Marketplace/chunk-O4EO3YBL.js +0 -1
  264. package/Marketplace/chunk-OBF4XVU7.js +0 -1
  265. package/Marketplace/chunk-ONPG3DER.js +0 -2
  266. package/Marketplace/chunk-OPXITNRF.js +0 -1
  267. package/Marketplace/chunk-OXWPYJNB.js +0 -1
  268. package/Marketplace/chunk-Q4TAOZ73.js +0 -1
  269. package/Marketplace/chunk-Q56RJPES.js +0 -1
  270. package/Marketplace/chunk-R2XT5M5F.js +0 -3
  271. package/Marketplace/chunk-RI7L4QSY.js +0 -5
  272. package/Marketplace/chunk-RWVVRZJY.js +0 -1
  273. package/Marketplace/chunk-S5R6MCNP.js +0 -5
  274. package/Marketplace/chunk-S7CKRTJV.js +0 -2
  275. package/Marketplace/chunk-STYL7ETF.js +0 -3
  276. package/Marketplace/chunk-T5IUZ6UD.js +0 -1
  277. package/Marketplace/chunk-TAITBX62.js +0 -1
  278. package/Marketplace/chunk-TJYYRHZZ.js +0 -1
  279. package/Marketplace/chunk-TYQY4WPY.js +0 -1
  280. package/Marketplace/chunk-UQK5JNU2.js +0 -1
  281. package/Marketplace/chunk-XLIPGDSC.js +0 -2
  282. package/Marketplace/chunk-ZLBPUHTQ.js +0 -1
  283. package/Marketplace/chunk-ZME22WYI.js +0 -1
  284. package/Marketplace/chunk-ZW2TMVZP.js +0 -10
  285. package/Marketplace/chunk-ZYJ6LAJ3.js +0 -4
  286. package/Marketplace/main-K3MDOIIF.js +0 -1
@@ -0,0 +1,10 @@
1
+ import{a as tt,b as at,c as Qt}from"./chunk-SPLGZRGH.js";import{a as Gt}from"./chunk-TBVMCNS2.js";import{b as D,c as G}from"./chunk-RM6ZXD3O.js";import{c as Vt,d as Xe,g as Wt}from"./chunk-N3E43QWK.js";import{a as qt}from"./chunk-XUDE7VBC.js";import{a as jt}from"./chunk-HO2TMGLM.js";import{c as Kt}from"./chunk-O4D64GHO.js";import{C as Q,F as St,H as Ue,I as Et,M as Tt,N as Ze,Q as Je,R as Ot,S as Yt,T as et,U as Pt,X as Nt,Y as Lt,Z as Bt,_ as Ht,ba as zt,d as Ge,f as At,k as $e,l as le,m as Ie,s as kt,u as Mt,v as ce,w as H}from"./chunk-7R2D2JZ6.js";import{a as Fe,d as Re,e as pe,f as xt,g as It,k as Ft,q as Rt}from"./chunk-WAXAIL2I.js";import{q as wt}from"./chunk-JNRCB7N3.js";import{$ as De,Aa as ie,Ac as de,Ad as x,Ba as He,Bb as bt,Bc as yt,Ca as W,Cb as Dt,Cc as I,Da as ft,Dc as S,Ec as V,F as ae,Fd as R,G as mt,Hb as k,Ia as u,Ib as vt,Jb as Y,Jc as Se,Kc as E,Lb as B,Ma as ye,Mc as qe,Na as Ce,Nb as We,Nc as b,O as _t,Oa as O,Oc as F,Pa as ne,Pc as q,Qc as Qe,Ra as L,Rc as Ve,Sc as Ee,Tc as xe,_b as v,_c as P,a as A,ac as re,cc as se,f as T,fc as we,gc as Ae,hc as _,ic as l,jc as p,kc as M,la as Le,ma as j,na as gt,ob as d,pa as Be,q as be,qa as ve,ra as s,rc as oe,rd as Ct,sc as ke,tb as h,ub as ze,vb as Ke,wc as f,ya as y,yc as m,za as C,zb as je,zc as Me}from"./chunk-OHGMB7HJ.js";var ma=["mat-calendar-body",""];function _a(n,o){return this._trackRow(o)}var aa=(n,o)=>o.id;function ga(n,o){if(n&1&&(l(0,"tr",0)(1,"td",3),b(2),p()()),n&2){let e=m();d(),Se("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),v("colspan",e.numCols),d(),q(" ",e.label," ")}}function fa(n,o){if(n&1&&(l(0,"td",3),b(1),p()),n&2){let e=m(2);Se("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),v("colspan",e._firstRowOffset),d(),q(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function ba(n,o){if(n&1){let e=oe();l(0,"td",6)(1,"button",7),f("click",function(t){let i=y(e).$implicit,r=m(2);return C(r._cellClicked(i,t))})("focus",function(t){let i=y(e).$implicit,r=m(2);return C(r._emitActiveDateChange(i,t))}),l(2,"span",8),b(3),p(),M(4,"span",9),p()()}if(n&2){let e=o.$implicit,a=o.$index,t=m().$index,i=m();Se("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),v("data-mat-row",t)("data-mat-col",a),d(),E("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",i._isActiveCell(t,a))("mat-calendar-body-range-start",i._isRangeStart(e.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",i._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(e.compareValue,t,a))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(e.compareValue,t,a))("mat-calendar-body-comparison-start",i._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",i._isInPreview(e.compareValue)),_("ngClass",e.cssClasses)("tabindex",i._isActiveCell(t,a)?0:-1),v("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",i._isSelected(e.compareValue))("aria-current",i.todayValue===e.compareValue?"date":null)("aria-describedby",i._getDescribedby(e.compareValue)),d(),E("mat-calendar-body-selected",i._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",i.todayValue===e.compareValue),d(),q(" ",e.displayValue," ")}}function Da(n,o){if(n&1&&(l(0,"tr",1),re(1,fa,2,6,"td",4),we(2,ba,5,48,"td",5,aa),p()),n&2){let e=o.$implicit,a=o.$index,t=m();d(),se(a===0&&t._firstRowOffset?1:-1),d(),Ae(e)}}function va(n,o){if(n&1&&(l(0,"th",2)(1,"span",6),b(2),p(),l(3,"span",3),b(4),p()()),n&2){let e=o.$implicit;d(2),F(e.long),d(2),F(e.narrow)}}var ya=["*"];function Ca(n,o){}function wa(n,o){if(n&1){let e=oe();l(0,"mat-month-view",4),xe("activeDateChange",function(t){y(e);let i=m();return Ee(i.activeDate,t)||(i.activeDate=t),C(t)}),f("_userSelection",function(t){y(e);let i=m();return C(i._dateSelected(t))})("dragStarted",function(t){y(e);let i=m();return C(i._dragStarted(t))})("dragEnded",function(t){y(e);let i=m();return C(i._dragEnded(t))}),p()}if(n&2){let e=m();Ve("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function Aa(n,o){if(n&1){let e=oe();l(0,"mat-year-view",5),xe("activeDateChange",function(t){y(e);let i=m();return Ee(i.activeDate,t)||(i.activeDate=t),C(t)}),f("monthSelected",function(t){y(e);let i=m();return C(i._monthSelectedInYearView(t))})("selectedChange",function(t){y(e);let i=m();return C(i._goToDateInView(t,"month"))}),p()}if(n&2){let e=m();Ve("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function ka(n,o){if(n&1){let e=oe();l(0,"mat-multi-year-view",6),xe("activeDateChange",function(t){y(e);let i=m();return Ee(i.activeDate,t)||(i.activeDate=t),C(t)}),f("yearSelected",function(t){y(e);let i=m();return C(i._yearSelectedInMultiYearView(t))})("selectedChange",function(t){y(e);let i=m();return C(i._goToDateInView(t,"year"))}),p()}if(n&2){let e=m();Ve("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ma(n,o){}var Sa=["button"],Va=[[["","matDatepickerToggleIcon",""]]],Ea=["[matDatepickerToggleIcon]"];function xa(n,o){n&1&&(ie(),l(0,"svg",2),M(1,"path",3),p())}var Ia=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Fa=["input[matStartDate]","input[matEndDate]"];var te=(()=>{class n{changes=new T;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,a){return`${e} \u2013 ${a}`}formatYearRangeLabel(e,a){return`${e} to ${a}`}static \u0275fac=function(a){return new(a||n)};static \u0275prov=j({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),Ra=0,me=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Ra++;constructor(o,e,a,t,i={},r=o,c){this.value=o,this.displayValue=e,this.ariaLabel=a,this.enabled=t,this.cssClasses=i,this.compareValue=r,this.rawValue=c}},Ta={passive:!1,capture:!0},Te={passive:!0,capture:!0},$t={passive:!0},Z=(()=>{class n{_elementRef=s(L);_ngZone=s(ze);_platform=s(At);_intl=s(te);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new h;previewChange=new h;activeDateChange=new h;dragStarted=new h;dragEnded=new h;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=s(W);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=s(je),a=s(ce);this._startDateLabelId=a.getId("mat-calendar-body-start-"),this._endDateLabelId=a.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=a.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=a.getId("mat-calendar-body-comparison-end-"),s(le).load(jt),this._ngZone.runOutsideAngular(()=>{let t=this._elementRef.nativeElement,i=[e.listen(t,"touchmove",this._touchmoveHandler,Ta),e.listen(t,"mouseenter",this._enterHandler,Te),e.listen(t,"focus",this._enterHandler,Te),e.listen(t,"mouseleave",this._leaveHandler,Te),e.listen(t,"blur",this._leaveHandler,Te),e.listen(t,"mousedown",this._mousedownHandler,$t),e.listen(t,"touchstart",this._mousedownHandler,$t)];this._platform.isBrowser&&i.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=i})}_cellClicked(e,a){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:a})}_emitActiveDateChange(e,a){e.enabled&&this.activeDateChange.emit({value:e.value,event:a})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let a=e.numCols,{rows:t,numCols:i}=this;(e.rows||a)&&(this._firstRowOffset=t&&t.length&&t[0].length?i-t[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/i}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,a){let t=e*this.numCols+a;return e&&(t-=this._firstRowOffset),t==this.activeCell}_focusActiveCell(e=!0){Ke(()=>{setTimeout(()=>{let a=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");a&&(e||(this._skipNextFocus=!0),a.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return rt(e,this.startValue,this.endValue)}_isRangeEnd(e){return st(e,this.startValue,this.endValue)}_isInRange(e){return ot(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return rt(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,t){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[a][t-1];if(!i){let r=this.rows[a-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,a,t){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[a][t+1];if(!i){let r=this.rows[a+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return st(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return ot(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return rt(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return st(e,this.previewStart,this.previewEnd)}_isInPreview(e){return ot(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let a=this._getCellFromElement(e.target);a&&this._ngZone.run(()=>this.previewChange.emit({value:a.enabled?a:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let a=Ut(e),t=a?this._getCellFromElement(a):null;a!==e.target&&(this._didDragSinceMouseDown=!0),nt(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:t?.enabled?t:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let a=e.target&&this._getCellFromElement(e.target);!a||!this._isInRange(a.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:a.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let a=nt(e.target);if(!a){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}a.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let t=this._getCellFromElement(a);this.dragEnded.emit({value:t?.rawValue??null,event:e})})};_touchendHandler=e=>{let a=Ut(e);a&&this._mouseupHandler({target:a})};_getCellFromElement(e){let a=nt(e);if(a){let t=a.getAttribute("data-mat-row"),i=a.getAttribute("data-mat-col");if(t&&i)return this.rows[parseInt(t)]?.[parseInt(i)]||null}return null}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=k({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[O],attrs:ma,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(a,t){a&1&&(re(0,ga,3,6,"tr",0),we(1,Da,4,1,"tr",1,_a,!0),l(3,"span",2),b(4),p(),l(5,"span",2),b(6),p(),l(7,"span",2),b(8),p(),l(9,"span",2),b(10),p()),a&2&&(se(t._firstRowOffset<t.labelMinRequiredCells?0:-1),d(),Ae(t.rows),d(2),_("id",t._startDateLabelId),d(),q(" ",t.startDateAccessibleName,`
2
+ `),d(),_("id",t._endDateLabelId),d(),q(" ",t.endDateAccessibleName,`
3
+ `),d(),_("id",t._comparisonStartDateLabelId),d(),Qe(" ",t.comparisonDateAccessibleName," ",t.startDateAccessibleName,`
4
+ `),d(),_("id",t._comparisonEndDateLabelId),d(),Qe(" ",t.comparisonDateAccessibleName," ",t.endDateAccessibleName,`
5
+ `))},dependencies:[wt],styles:[`.mat-calendar-body{min-width:224px}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary))}.mat-calendar-body-label{height:0;line-height:0;text-align:start;padding-left:4.7142857143%;padding-right:4.7142857143%;font-size:var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface))}.mat-calendar-body-hidden-label{display:none}.mat-calendar-body-cell-container{position:relative;height:0;line-height:0}.mat-calendar-body-cell{position:absolute;top:0;left:0;width:100%;height:100%;background:none;text-align:center;outline:none;margin:0;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size));-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-calendar-body-cell::-moz-focus-inner{border:0}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-cell-preview{content:"";position:absolute;top:5%;left:0;z-index:0;box-sizing:border-box;display:block;height:90%;width:100%}.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-start::after,.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,.mat-calendar-body-comparison-start::after,.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:5%;width:95%;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,[dir=rtl] .mat-calendar-body-comparison-start::after,[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{left:0;border-radius:0;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,.mat-calendar-body-comparison-end::after,.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,[dir=rtl] .mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,[dir=rtl] .mat-calendar-body-comparison-end::after,[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{left:5%;border-radius:0;border-top-left-radius:999px;border-bottom-left-radius:999px}[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after{width:95%;border-top-right-radius:999px;border-bottom-right-radius:999px}.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,[dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after{width:90%}.mat-calendar-body-in-preview{color:var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-preview .mat-calendar-body-cell-preview{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview{border-left:0;border-right:dashed 1px}.mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview{border-right:0;border-left:dashed 1px}.mat-calendar-body-disabled{cursor:default}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}}
6
+ `],encapsulation:2,changeDetection:0})}return n})();function it(n){return n?.nodeName==="TD"}function nt(n){let o;return it(n)?o=n:it(n.parentNode)?o=n.parentNode:it(n.parentNode?.parentNode)&&(o=n.parentNode.parentNode),o?.getAttribute("data-mat-row")!=null?o:null}function rt(n,o,e){return e!==null&&o!==e&&n<e&&n===o}function st(n,o,e){return o!==null&&o!==e&&n>=o&&n===e}function ot(n,o,e,a){return a&&o!==null&&e!==null&&o!==e&&n>=o&&n<=e}function Ut(n){let o=n.changedTouches[0];return document.elementFromPoint(o.clientX,o.clientY)}var g=class{start;end;_disableStructuralEquivalency;constructor(o,e){this.start=o,this.end=e}},N=(()=>{class n{selection;_adapter;_selectionChanged=new T;selectionChanged=this._selectionChanged;constructor(e,a){this.selection=e,this._adapter=a,this.selection=e}updateSelection(e,a){let t=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:a,oldValue:t})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(a){bt()};static \u0275prov=j({token:n,factory:n.\u0275fac})}return n})(),Oa=(()=>{class n extends N{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new n(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(a){return new(a||n)(ve(D))};static \u0275prov=j({token:n,factory:n.\u0275fac})}return n})(),Ya=(()=>{class n extends N{constructor(e){super(new g(null,null),e)}add(e){let{start:a,end:t}=this.selection;a==null?a=e:t==null?t=e:(a=e,t=null),super.updateSelection(new g(a,t),this)}isValid(){let{start:e,end:a}=this.selection;return e==null&&a==null?!0:e!=null&&a!=null?this._isValidDateInstance(e)&&this._isValidDateInstance(a)&&this._adapter.compareDate(e,a)<=0:(e==null||this._isValidDateInstance(e))&&(a==null||this._isValidDateInstance(a))}isComplete(){return this.selection.start!=null&&this.selection.end!=null}clone(){let e=new n(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(a){return new(a||n)(ve(D))};static \u0275prov=j({token:n,factory:n.\u0275fac})}return n})();function Pa(n,o){return n||new Oa(o)}var ia={provide:N,deps:[[new ye,new Ce,N],D],useFactory:Pa};function Na(n,o){return n||new Ya(o)}var La={provide:N,deps:[[new ye,new Ce,N],D],useFactory:Na},Oe=new Be("MAT_DATE_RANGE_SELECTION_STRATEGY"),Ba=(()=>{class n{_dateAdapter;constructor(e){this._dateAdapter=e}selectionFinished(e,a){let{start:t,end:i}=a;return t==null?t=e:i==null&&e&&this._dateAdapter.compareDate(e,t)>=0?i=e:(t=e,i=null),new g(t,i)}createPreview(e,a){let t=null,i=null;return a.start&&!a.end&&e&&(t=a.start,i=e),new g(t,i)}createDrag(e,a,t){let i=a.start,r=a.end;if(!i||!r)return null;let c=this._dateAdapter,ge=c.compareDate(i,r)!==0,z=c.getYear(t)-c.getYear(e),K=c.getMonth(t)-c.getMonth(e),fe=c.getDate(t)-c.getDate(e);return ge&&c.sameDate(e,a.start)?(i=t,c.compareDate(t,r)>0&&(r=c.addCalendarYears(r,z),r=c.addCalendarMonths(r,K),r=c.addCalendarDays(r,fe))):ge&&c.sameDate(e,a.end)?(r=t,c.compareDate(t,i)<0&&(i=c.addCalendarYears(i,z),i=c.addCalendarMonths(i,K),i=c.addCalendarDays(i,fe))):(i=c.addCalendarYears(i,z),i=c.addCalendarMonths(i,K),i=c.addCalendarDays(i,fe),r=c.addCalendarYears(r,z),r=c.addCalendarMonths(r,K),r=c.addCalendarDays(r,fe)),new g(i,r)}static \u0275fac=function(a){return new(a||n)(ve(D))};static \u0275prov=j({token:n,factory:n.\u0275fac})}return n})();function Ha(n,o){return n||new Ba(o)}var za={provide:Oe,deps:[[new ye,new Ce,Oe],D],useFactory:Ha},dt=7,Ka=0,Xt=(()=>{class n{_changeDetectorRef=s(x);_dateFormats=s(G,{optional:!0});_dateAdapter=s(D,{optional:!0});_dir=s(Q,{optional:!0});_rangeStrategy=s(Oe,{optional:!0});_rerenderSubscription=A.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._hasSameMonthAndYear(a,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof g?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new h;_userSelection=new h;dragStarted=new h;dragEnded=new h;activeDateChange=new h;_matCalendarBody;_monthLabel=u("");_weeks=u([]);_firstWeekOffset=u(0);_rangeStart=u(null);_rangeEnd=u(null);_comparisonRangeStart=u(null);_comparisonRangeEnd=u(null);_previewStart=u(null);_previewEnd=u(null);_isRange=u(!1);_todayDate=u(null);_weekdays=u([]);constructor(){s(le).load(Ie),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(De(null)).subscribe(()=>this._init())}ngOnChanges(e){let a=e.comparisonStart||e.comparisonEnd;a&&!a.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let a=e.value,t=this._getDateFromDayOfMonth(a),i,r;this._selected instanceof g?(i=this._getDateInCurrentMonth(this._selected.start),r=this._getDateInCurrentMonth(this._selected.end)):i=r=this._getDateInCurrentMonth(this._selected),(i!==a||r!==a)&&this.selectedChange.emit(t),this._userSelection.emit({value:t,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!H(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((dt+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%dt),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:a}){if(this._rangeStrategy){let t=a?a.rawValue:null,i=this._rangeStrategy.createPreview(t,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(i.start)),this._previewEnd.set(this._getCellCompareValue(i.end)),this.activeDrag&&t){let r=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,t,e);r&&(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let a=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:a??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),a=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map((r,c)=>({long:r,narrow:a[c],id:Ka++}));this._weekdays.set(i.slice(e).concat(i.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),a=this._dateAdapter.getDateNames(),t=[[]];for(let i=0,r=this._firstWeekOffset();i<e;i++,r++){r==dt&&(t.push([]),r=0);let c=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i+1),ge=this._shouldEnableDate(c),z=this._dateAdapter.format(c,this._dateFormats.display.dateA11yLabel),K=this.dateClass?this.dateClass(c,"month"):void 0;t[t.length-1].push(new me(i+1,a[i],z,ge,K,this._getCellCompareValue(c),c))}this._weeks.set(t)}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,a){return!!(e&&a&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a))}_getCellCompareValue(e){if(e){let a=this._dateAdapter.getYear(e),t=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(a,t,i).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof g?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=k({type:n,selectors:[["mat-month-view"]],viewQuery:function(a,t){if(a&1&&I(Z,5),a&2){let i;S(i=V())&&(t._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[O],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(a,t){a&1&&(l(0,"table",0)(1,"thead",1)(2,"tr"),we(3,va,5,2,"th",2,aa),p(),l(5,"tr",3),M(6,"th",4),p()(),l(7,"tbody",5),f("selectedValueChange",function(r){return t._dateSelected(r)})("activeDateChange",function(r){return t._updateActiveDate(r)})("previewChange",function(r){return t._previewChanged(r)})("dragStarted",function(r){return t.dragStarted.emit(r)})("dragEnded",function(r){return t._dragEnded(r)})("keyup",function(r){return t._handleCalendarBodyKeyup(r)})("keydown",function(r){return t._handleCalendarBodyKeydown(r)}),p()()),a&2&&(d(3),Ae(t._weekdays()),d(4),_("label",t._monthLabel())("rows",t._weeks())("todayValue",t._todayDate())("startValue",t._rangeStart())("endValue",t._rangeEnd())("comparisonStart",t._comparisonRangeStart())("comparisonEnd",t._comparisonRangeEnd())("previewStart",t._previewStart())("previewEnd",t._previewEnd())("isRange",t._isRange())("labelMinRequiredCells",3)("activeCell",t._dateAdapter.getDate(t.activeDate)-1)("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName))},dependencies:[Z],encapsulation:2,changeDetection:0})}return n})(),w=24,lt=4,Zt=(()=>{class n{_changeDetectorRef=s(x);_dateAdapter=s(D,{optional:!0});_dir=s(Q,{optional:!0});_rerenderSubscription=A.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),na(this._dateAdapter,a,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof g?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new h;yearSelected=new h;activeDateChange=new h;_matCalendarBody;_years=u([]);_todayYear=u(0);_selectedYear=u(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(De(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let a=this._dateAdapter.getYear(this._activeDate)-he(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),t=[];for(let i=0,r=[];i<w;i++)r.push(a+i),r.length==lt&&(t.push(r.map(c=>this._createCellForYear(c))),r=[]);this._years.set(t),this._changeDetectorRef.markForCheck()}_yearSelected(e){let a=e.value,t=this._dateAdapter.createDate(a,0,1),i=this._getDateFromYear(a);this.yearSelected.emit(t),this.selectedChange.emit(i)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromYear(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-lt);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,lt);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-he(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,w-he(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-w*10:-w);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?w*10:w);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return he(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let a=this._dateAdapter.getMonth(this.activeDate),t=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,a,1));return this._dateAdapter.createDate(e,a,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForYear(e){let a=this._dateAdapter.createDate(e,0,1),t=this._dateAdapter.getYearName(a),i=this.dateClass?this.dateClass(a,"multi-year"):void 0;return new me(e,t,t,this._shouldEnableYear(e),i)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let a=this._dateAdapter.createDate(e,0,1);for(let t=a;this._dateAdapter.getYear(t)==e;t=this._dateAdapter.addCalendarDays(t,1))if(this.dateFilter(t))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear.set(null),e instanceof g){let a=e.start||e.end;a&&this._selectedYear.set(this._dateAdapter.getYear(a))}else e&&this._selectedYear.set(this._dateAdapter.getYear(e))}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=k({type:n,selectors:[["mat-multi-year-view"]],viewQuery:function(a,t){if(a&1&&I(Z,5),a&2){let i;S(i=V())&&(t._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(a,t){a&1&&(l(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),p()(),l(4,"tbody",3),f("selectedValueChange",function(r){return t._yearSelected(r)})("activeDateChange",function(r){return t._updateActiveDate(r)})("keyup",function(r){return t._handleCalendarBodyKeyup(r)})("keydown",function(r){return t._handleCalendarBodyKeydown(r)}),p()()),a&2&&(d(4),_("rows",t._years())("todayValue",t._todayYear())("startValue",t._selectedYear())("endValue",t._selectedYear())("numCols",4)("cellAspectRatio",4/7)("activeCell",t._getActiveCell()))},dependencies:[Z],encapsulation:2,changeDetection:0})}return n})();function na(n,o,e,a,t){let i=n.getYear(o),r=n.getYear(e),c=ra(n,a,t);return Math.floor((i-c)/w)===Math.floor((r-c)/w)}function he(n,o,e,a){let t=n.getYear(o);return ja(t-ra(n,e,a),w)}function ra(n,o,e){let a=0;return e?a=n.getYear(e)-w+1:o&&(a=n.getYear(o)),a}function ja(n,o){return(n%o+o)%o}var Jt=(()=>{class n{_changeDetectorRef=s(x);_dateFormats=s(G,{optional:!0});_dateAdapter=s(D,{optional:!0});_dir=s(Q,{optional:!0});_rerenderSubscription=A.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let a=this._activeDate,t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(t,this.minDate,this.maxDate),this._dateAdapter.getYear(a)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof g?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new h;monthSelected=new h;activeDateChange=new h;_matCalendarBody;_months=u([]);_yearLabel=u("");_todayMonth=u(null);_selectedMonth=u(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(De(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let a=e.value,t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),a,1);this.monthSelected.emit(t);let i=this._getDateFromMonth(a);this.selectedChange.emit(i)}_updateActiveDate(e){let a=e.value,t=this._activeDate;this.activeDate=this._getDateFromMonth(a),this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let a=this._activeDate,t=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,t?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(a,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(a=>a.map(t=>this._createCellForMonth(t,e[t])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),t=this._dateAdapter.getNumDaysInMonth(a);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),t))}_createCellForMonth(e,a){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.format(t,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(t,"year"):void 0;return new me(e,a.toLocaleUpperCase(),i,this._shouldEnableMonth(e),r)}_shouldEnableMonth(e){let a=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(a,e)||this._isYearAndMonthBeforeMinDate(a,e))return!1;if(!this.dateFilter)return!0;let t=this._dateAdapter.createDate(a,e,1);for(let i=t;this._dateAdapter.getMonth(i)==e;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(e,a){if(this.maxDate){let t=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>t||e===t&&a>i}return!1}_isYearAndMonthBeforeMinDate(e,a){if(this.minDate){let t=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<t||e===t&&a<i}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof g?this._selectedMonth.set(this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end)):this._selectedMonth.set(this._getMonthInCurrentYear(e))}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=k({type:n,selectors:[["mat-year-view"]],viewQuery:function(a,t){if(a&1&&I(Z,5),a&2){let i;S(i=V())&&(t._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(a,t){a&1&&(l(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),p()(),l(4,"tbody",3),f("selectedValueChange",function(r){return t._monthSelected(r)})("activeDateChange",function(r){return t._updateActiveDate(r)})("keyup",function(r){return t._handleCalendarBodyKeyup(r)})("keydown",function(r){return t._handleCalendarBodyKeydown(r)}),p()()),a&2&&(d(4),_("label",t._yearLabel())("rows",t._months())("todayValue",t._todayMonth())("startValue",t._selectedMonth())("endValue",t._selectedMonth())("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",t._dateAdapter.getMonth(t.activeDate)))},dependencies:[Z],encapsulation:2,changeDetection:0})}return n})(),sa=(()=>{class n{_intl=s(te);calendar=s(ct);_dateAdapter=s(D,{optional:!0});_dateFormats=s(G,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){s(le).load(Ie);let e=s(x);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-w))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:w))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,a=this._intl,t=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=t.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=t.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=a.switchToMultiYearViewLabel,this._prevButtonLabel=a.prevMonthLabel,this._nextButtonLabel=a.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=t.getYearName(e.activeDate),this._periodButtonDescription=t.getYearName(e.activeDate),this._periodButtonLabel=a.switchToMonthViewLabel,this._prevButtonLabel=a.prevYearLabel,this._nextButtonLabel=a.nextYearLabel):(this._periodButtonText=a.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=a.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=a.switchToMonthViewLabel,this._prevButtonLabel=a.prevMultiYearLabel,this._nextButtonLabel=a.nextMultiYearLabel)}_isSameView(e,a){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(a):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(a):na(this._dateAdapter,e,a,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let a=this._dateAdapter.getYear(this.calendar.activeDate)-he(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),t=a+w-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1)),r=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return[i,r]}_periodButtonLabelId=s(ce).getId("mat-calendar-period-label-");static \u0275fac=function(a){return new(a||n)};static \u0275cmp=k({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:ya,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(a,t){a&1&&(Me(),l(0,"div",0)(1,"div",1)(2,"span",2),b(3),p(),l(4,"button",3),f("click",function(){return t.currentPeriodClicked()}),l(5,"span",4),b(6),p(),ie(),l(7,"svg",5),M(8,"polygon",6),p()(),He(),M(9,"div",7),de(10),l(11,"button",8),f("click",function(){return t.previousClicked()}),ie(),l(12,"svg",9),M(13,"path",10),p()(),He(),l(14,"button",11),f("click",function(){return t.nextClicked()}),ie(),l(15,"svg",9),M(16,"path",12),p()()()()),a&2&&(d(2),_("id",t._periodButtonLabelId),d(),F(t.periodButtonDescription),d(),v("aria-label",t.periodButtonLabel)("aria-describedby",t._periodButtonLabelId),d(2),F(t.periodButtonText),d(),E("mat-calendar-invert",t.calendar.currentView!=="month"),d(4),_("disabled",!t.previousEnabled())("matTooltip",t.prevButtonLabel),v("aria-label",t.prevButtonLabel),d(3),_("disabled",!t.nextEnabled())("matTooltip",t.nextButtonLabel),v("aria-label",t.nextButtonLabel))},dependencies:[at,tt,Kt],encapsulation:2,changeDetection:0})}return n})(),ct=(()=>{class n{_dateAdapter=s(D,{optional:!0});_dateFormats=s(G,{optional:!0});_changeDetectorRef=s(x);_elementRef=s(L);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof g?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new h;yearSelected=new h;monthSelected=new h;viewChanged=new h(!0);_userSelection=new h;_userDragDrop=new h;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let a=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),a&&(this.stateChanges.next(),this.viewChanged.emit(a))}_currentView;_activeDrag=null;stateChanges=new T;constructor(){this._intlChanges=s(te).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Ze(this.headerComponent||sa),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let a=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,t=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,i=a||t||e.dateFilter;if(i&&!i.firstChange){let r=this._getCurrentViewComponent();r&&(this._elementRef.nativeElement.contains(Ge())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),r._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let a=e.value;(this.selected instanceof g||a&&!this._dateAdapter.sameDate(a,this.selected))&&this.selectedChange.emit(a),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,a){this.activeDate=e,this.currentView=a}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=k({type:n,selectors:[["mat-calendar"]],viewQuery:function(a,t){if(a&1&&(I(Xt,5),I(Jt,5),I(Zt,5)),a&2){let i;S(i=V())&&(t.monthView=i.first),S(i=V())&&(t.yearView=i.first),S(i=V())&&(t.multiYearView=i.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[P([ia]),O],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(a,t){if(a&1&&(We(0,Ca,0,0,"ng-template",0),l(1,"div",1),re(2,wa,1,11,"mat-month-view",2)(3,Aa,1,6,"mat-year-view",3)(4,ka,1,6,"mat-multi-year-view",3),p()),a&2){let i;_("cdkPortalOutlet",t._calendarHeaderPortal),d(2),se((i=t.currentView)==="month"?2:i==="year"?3:i==="multi-year"?4:-1)}},dependencies:[Je,$e,Xt,Jt,Zt],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""}
7
+ `],encapsulation:2,changeDetection:0})}return n})(),oa=new Be("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let n=s(W);return()=>et(n)}});function Wa(n){let o=s(W);return()=>et(o)}var qa={provide:oa,deps:[],useFactory:Wa},da=(()=>{class n{_elementRef=s(L);_animationsDisabled=Ue();_changeDetectorRef=s(x);_globalModel=s(N);_dateAdapter=s(D);_ngZone=s(ze);_rangeSelectionStrategy=s(Oe,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new T;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(s(le).load(Ie),this._closeButtonText=s(te).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,a=s(je);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[a.listen(e,"animationstart",this._handleAnimationEvent),a.listen(e,"animationend",this._handleAnimationEvent),a.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let a=this._model.selection,t=e.value,i=a instanceof g;if(i&&this._rangeSelectionStrategy){let r=this._rangeSelectionStrategy.selectionFinished(t,a,e.event);this._model.updateSelection(r,this)}else t&&(i||!this._dateAdapter.sameDate(t,a))&&this._model.add(t);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let a=this._elementRef.nativeElement;e.target!==a||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",a.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,a){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,a&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=k({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(a,t){if(a&1&&I(ct,5),a&2){let i;S(i=V())&&(t._calendar=i.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(a,t){a&2&&(qe(t.color?"mat-"+t.color:""),E("mat-datepicker-content-touch",t.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!t._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(a,t){a&1&&(l(0,"div",0)(1,"mat-calendar",1),f("yearSelected",function(r){return t.datepicker._selectYear(r)})("monthSelected",function(r){return t.datepicker._selectMonth(r)})("viewChanged",function(r){return t.datepicker._viewChanged(r)})("_userSelection",function(r){return t._handleUserSelection(r)})("_userDragDrop",function(r){return t._handleUserDragDrop(r)}),p(),We(2,Ma,0,0,"ng-template",2),l(3,"button",3),f("focus",function(){return t._closeButtonFocused=!0})("blur",function(){return t._closeButtonFocused=!1})("click",function(){return t.datepicker.close()}),b(4),p()()),a&2&&(E("mat-datepicker-content-container-with-custom-header",t.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",t._actionsPortal),v("aria-modal",!0)("aria-labelledby",t._dialogLabelId??void 0),d(),qe(t.datepicker.panelClass),_("id",t.datepicker.id)("startAt",t.datepicker.startAt)("startView",t.datepicker.startView)("minDate",t.datepicker._getMinDate())("maxDate",t.datepicker._getMaxDate())("dateFilter",t.datepicker._getDateFilter())("headerComponent",t.datepicker.calendarHeaderComponent)("selected",t._getSelected())("dateClass",t.datepicker.dateClass)("comparisonStart",t.comparisonStart)("comparisonEnd",t.comparisonEnd)("startDateAccessibleName",t.startDateAccessibleName)("endDateAccessibleName",t.endDateAccessibleName),d(),_("cdkPortalOutlet",t._actionsPortal),d(),E("cdk-visually-hidden",!t._closeButtonFocused),_("color",t.color||"primary"),d(),F(t._closeButtonText))},dependencies:[kt,ct,Je,at],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}
8
+ `],encapsulation:2,changeDetection:0})}return n})(),Ye=(()=>{class n{_injector=s(W);_viewContainerRef=s(Dt);_dateAdapter=s(D,{optional:!0});_dir=s(Q,{optional:!0});_model=s(N);_animationsDisabled=Ue();_scrollStrategy=s(oa);_inputStateChanges=A.EMPTY;_document=s(ft);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new h;monthSelected=new h;viewChanged=new h(!0);dateClass;openedStream=new h;closedStream=new h;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=St(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=s(ce).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new T;_changeDetectorRef=s(x);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let a=e.xPosition||e.yPosition;if(a&&!a.firstChange&&this._overlayRef){let t=this._overlayRef.getConfig().positionStrategy;t instanceof Lt&&(this._setConnectedPositions(t),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Ge(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",a=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:t,location:i}=this._componentRef;t._animationDone.pipe(_t(1)).subscribe(()=>{let r=this._document.activeElement;e&&(!r||r===this._document.activeElement||i.nativeElement.contains(r))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),t._startExitAnimation()}e?setTimeout(a):a()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,a=new Ze(da,this._viewContainerRef),t=this._overlayRef=Ht(this._injector,new Pt({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Yt(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(t).subscribe(i=>{i&&i.preventDefault(),this.close()}),t.keydownEvents().subscribe(i=>{let r=i.keyCode;(r===38||r===40||r===37||r===39||r===33||r===34)&&i.preventDefault()}),this._componentRef=t.attach(a),this._forwardContentValues(this._componentRef.instance),e||Ke(()=>{t.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return Bt(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=Nt(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let a=this.xPosition==="end"?"end":"start",t=a==="start"?"end":"start",i=this.yPosition==="above"?"bottom":"top",r=i==="top"?"bottom":"top";return e.withPositions([{originX:a,originY:r,overlayX:a,overlayY:i},{originX:a,originY:i,overlayX:a,overlayY:r},{originX:t,originY:r,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:r}])}_getCloseStream(e){let a=["ctrlKey","shiftKey","metaKey"];return ae(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(mt(t=>t.keyCode===27&&!H(t)||this.datepickerInput&&H(t,"altKey")&&t.keyCode===38&&a.every(i=>!H(t,i)))))}static \u0275fac=function(a){return new(a||n)};static \u0275dir=Y({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",R],disabled:[2,"disabled","disabled",R],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",R],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",R]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[O]})}return n})(),zi=(()=>{class n extends Ye{static \u0275fac=(()=>{let e;return function(t){return(e||(e=ne(n)))(t||n)}})();static \u0275cmp=k({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[P([ia,{provide:Ye,useExisting:n}]),B],decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0})}return n})(),$=class{target;targetElement;value;constructor(o,e){this.target=o,this.targetElement=e,this.value=this.target.value}},la=(()=>{class n{_elementRef=s(L);_dateAdapter=s(D,{optional:!0});_dateFormats=s(G,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let a=e,t=this._elementRef.nativeElement;this._disabled!==a&&(this._disabled=a,this.stateChanges.next(void 0)),a&&this._isInitialized&&t.blur&&t.blur()}_disabled;dateChange=new h;dateInput=new h;stateChanges=new T;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=A.EMPTY;_localeSubscription=A.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!a||this._matchesFilter(a)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._getMinDate();return!t||!a||this._dateAdapter.compareDate(t,a)<=0?null:{matDatepickerMin:{min:t,actual:a}}};_maxValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._getMaxDate();return!t||!a||this._dateAdapter.compareDate(t,a)>=0?null:{matDatepickerMax:{max:t,actual:a}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(a=>{if(this._shouldHandleChangeEvent(a)){let t=this._getValueFromModel(a.selection);this._lastValueValid=this._isValidValue(t),this._cvaOnChange(t),this._onTouched(),this._formatValue(t),this.dateInput.emit(new $(this,this._elementRef.nativeElement)),this.dateChange.emit(new $(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){ca(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let a=["ctrlKey","shiftKey","metaKey"];H(e,"altKey")&&e.keyCode===40&&a.every(i=>!H(e,i))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let a=e.target.value,t=this._lastValueValid,i=this._dateAdapter.parse(a,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i);let r=!this._dateAdapter.sameDate(i,this.value);!i||r?this._cvaOnChange(i):(a&&!this.value&&this._cvaOnChange(i),t!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(i),this.dateInput.emit(new $(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new $(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let a=this._getDateFilter();return!a||a(e)}static \u0275fac=function(a){return new(a||n)};static \u0275dir=Y({type:n,inputs:{value:"value",disabled:[2,"disabled","disabled",R]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[O]})}return n})();function ca(n,o){let e=Object.keys(n);for(let a of e){let{previousValue:t,currentValue:i}=n[a];if(o.isDateInstance(t)&&o.isDateInstance(i)){if(!o.sameDate(t,i))return!0}else return!0}return!1}var Qa={provide:Fe,useExisting:Le(()=>pa),multi:!0},Ga={provide:Re,useExisting:Le(()=>pa),multi:!0},pa=(()=>{class n extends la{_formField=s(Xe,{optional:!0});_closedSubscription=A.EMPTY;_openedSubscription=A.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=u(null);get min(){return this._min}set min(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let a=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==a&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=pe.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(a){return new(a||n)};static \u0275dir=Y({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(a,t){a&1&&f("input",function(r){return t._onInput(r)})("change",function(){return t._onChange()})("blur",function(){return t._onBlur()})("keydown",function(r){return t._onKeydown(r)}),a&2&&(ke("disabled",t.disabled),v("aria-haspopup",t._datepicker?"dialog":null)("aria-owns",t._ariaOwns())("min",t.min?t._dateAdapter.toIso8601(t.min):null)("max",t.max?t._dateAdapter.toIso8601(t.max):null)("data-mat-calendar",t._datepicker?t._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[P([Qa,Ga,{provide:Gt,useExisting:n}]),B]})}return n})(),$a=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275dir=Y({type:n,selectors:[["","matDatepickerToggleIcon",""]]})}return n})(),Ua=(()=>{class n{_intl=s(te);_changeDetectorRef=s(x);_stateChanges=A.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=s(new Ct("tabindex"),{optional:!0}),a=Number(e);this.tabIndex=a||a===0?a:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:be(),a=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:be(),t=this.datepicker?ae(this.datepicker.openedStream,this.datepicker.closedStream):be();this._stateChanges.unsubscribe(),this._stateChanges=ae(this._intl.changes,e,a,t).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=k({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(a,t,i){if(a&1&&yt(i,$a,5),a&2){let r;S(r=V())&&(t._customIcon=r.first)}},viewQuery:function(a,t){if(a&1&&I(Sa,5),a&2){let i;S(i=V())&&(t._button=i.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(a,t){a&1&&f("click",function(r){return t._open(r)}),a&2&&(v("tabindex",null)("data-mat-calendar",t.datepicker?t.datepicker.id:null),E("mat-datepicker-toggle-active",t.datepicker&&t.datepicker.opened)("mat-accent",t.datepicker&&t.datepicker.color==="accent")("mat-warn",t.datepicker&&t.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",R],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[O],ngContentSelectors:Ea,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(a,t){a&1&&(Me(Va),l(0,"button",1,0),re(2,xa,2,0,":svg:svg",2),de(3),p()),a&2&&(_("tabIndex",t.disabled?-1:t.tabIndex)("disabled",t.disabled)("disableRipple",t.disableRipple),v("aria-haspopup",t.datepicker?"dialog":null)("aria-label",t.ariaLabel||t._intl.openCalendarLabel)("aria-expanded",t.datepicker?t.datepicker.opened:null),d(2),se(t._customIcon?-1:2))},dependencies:[tt],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}}
9
+ `],encapsulation:2,changeDetection:0})}return n})(),Xa=(()=>{class n{_changeDetectorRef=s(x);_elementRef=s(L);_dateAdapter=s(D,{optional:!0});_formField=s(Xe,{optional:!0});_closedSubscription=A.EMPTY;_openedSubscription=A.EMPTY;_startInput;_endInput;get value(){return this._model?this._model.selection:null}id=s(ce).getId("mat-date-range-input-");focused=!1;get shouldLabelFloat(){return this.focused||!this.empty}controlType="mat-date-range-input";get placeholder(){let e=this._startInput?._getPlaceholder()||"",a=this._endInput?._getPlaceholder()||"";return e||a?`${e} ${this.separator} ${a}`:""}get rangePicker(){return this._rangePicker}set rangePicker(e){e&&(this._model=e.registerInput(this),this._rangePicker=e,this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe(),this._ariaOwns.set(this.rangePicker.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._startInput?._onTouched(),this._endInput?._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(this._model))}_rangePicker;_ariaOwns=u(null);get required(){return this._required??(this._isTargetRequired(this)||this._isTargetRequired(this._startInput)||this._isTargetRequired(this._endInput))??!1}set required(e){this._required=e}_required;get dateFilter(){return this._dateFilter}set dateFilter(e){let a=this._startInput,t=this._endInput,i=a&&a._matchesFilter(a.value),r=t&&t._matchesFilter(a.value);this._dateFilter=e,a&&a._matchesFilter(a.value)!==i&&a._validatorOnChange(),t&&t._matchesFilter(t.value)!==r&&t._validatorOnChange()}_dateFilter;get min(){return this._min}set min(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._min)||(this._min=a,this._revalidate())}_min;get max(){return this._max}set max(e){let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(a,this._max)||(this._max=a,this._revalidate())}_max;get disabled(){return this._startInput&&this._endInput?this._startInput.disabled&&this._endInput.disabled:this._groupDisabled}set disabled(e){e!==this._groupDisabled&&(this._groupDisabled=e,this.stateChanges.next(void 0))}_groupDisabled=!1;get errorState(){return this._startInput&&this._endInput?this._startInput.errorState||this._endInput.errorState:!1}get empty(){let e=this._startInput?this._startInput.isEmpty():!1,a=this._endInput?this._endInput.isEmpty():!1;return e&&a}_ariaDescribedBy=null;_model;separator="\u2013";comparisonStart=null;comparisonEnd=null;ngControl;stateChanges=new T;disableAutomaticLabeling=!0;constructor(){this._dateAdapter,this._formField?._elementRef.nativeElement.classList.contains("mat-mdc-form-field")&&this._elementRef.nativeElement.classList.add("mat-mdc-input-element","mat-mdc-form-field-input-control","mdc-text-field__input"),this.ngControl=s(xt,{optional:!0,self:!0})}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){this._ariaDescribedBy=e.length?e.join(" "):null}onContainerClick(){!this.focused&&!this.disabled&&(!this._model||!this._model.selection.start?this._startInput.focus():this._endInput.focus())}ngAfterContentInit(){this._model&&this._registerModel(this._model),ae(this._startInput.stateChanges,this._endInput.stateChanges).subscribe(()=>{this.stateChanges.next(void 0)})}ngOnChanges(e){ca(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe(),this.stateChanges.complete()}getStartValue(){return this.value?this.value.start:null}getThemePalette(){return this._formField?this._formField.color:void 0}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():null}_getInputMirrorValue(e){let a=e==="start"?this._startInput:this._endInput;return a?a.getMirrorValue():""}_shouldHidePlaceholders(){return this._startInput?!this._startInput.isEmpty():!1}_handleChildValueChange(){this.stateChanges.next(void 0),this._changeDetectorRef.markForCheck()}_openDatepicker(){this._rangePicker&&this._rangePicker.open()}_shouldHideSeparator(){return(!this._formField||this._formField.getLabelId()&&!this._formField._shouldLabelFloat())&&this.empty}_getAriaLabelledby(){let e=this._formField;return e&&e._hasFloatingLabel()?e._labelId:null}_getStartDateAccessibleName(){return this._startInput._getAccessibleName()}_getEndDateAccessibleName(){return this._endInput._getAccessibleName()}_updateFocus(e){this.focused=e!==null,this.stateChanges.next()}_revalidate(){this._startInput&&this._startInput._validatorOnChange(),this._endInput&&this._endInput._validatorOnChange()}_registerModel(e){this._startInput&&this._startInput._registerModel(e),this._endInput&&this._endInput._registerModel(e)}_isTargetRequired(e){return e?.ngControl?.control?.hasValidator(pe.required)}static \u0275fac=function(a){return new(a||n)};static \u0275cmp=k({type:n,selectors:[["mat-date-range-input"]],hostAttrs:["role","group",1,"mat-date-range-input"],hostVars:8,hostBindings:function(a,t){a&2&&(v("id",t.id)("aria-labelledby",t._getAriaLabelledby())("aria-describedby",t._ariaDescribedBy)("data-mat-calendar",t.rangePicker?t.rangePicker.id:null),E("mat-date-range-input-hide-placeholders",t._shouldHidePlaceholders())("mat-date-range-input-required",t.required))},inputs:{rangePicker:"rangePicker",required:[2,"required","required",R],dateFilter:"dateFilter",min:"min",max:"max",disabled:[2,"disabled","disabled",R],separator:"separator",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},exportAs:["matDateRangeInput"],features:[P([{provide:Vt,useExisting:n}]),O],ngContentSelectors:Fa,decls:11,vars:5,consts:[["cdkMonitorSubtreeFocus","",1,"mat-date-range-input-container",3,"cdkFocusChange"],[1,"mat-date-range-input-wrapper"],["aria-hidden","true",1,"mat-date-range-input-mirror"],[1,"mat-date-range-input-separator"],[1,"mat-date-range-input-wrapper","mat-date-range-input-end-wrapper"]],template:function(a,t){a&1&&(Me(Ia),l(0,"div",0),f("cdkFocusChange",function(r){return t._updateFocus(r)}),l(1,"div",1),de(2),l(3,"span",2),b(4),p()(),l(5,"span",3),b(6),p(),l(7,"div",4),de(8,1),l(9,"span",2),b(10),p()()()),a&2&&(d(4),F(t._getInputMirrorValue("start")),d(),E("mat-date-range-input-separator-hidden",t._shouldHideSeparator()),d(),F(t.separator),d(4),F(t._getInputMirrorValue("end")))},dependencies:[$e],styles:[`.mat-date-range-input{display:block;width:100%}.mat-date-range-input-container{display:flex;align-items:center}.mat-date-range-input-separator{transition:opacity 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);margin:0 4px;color:var(--mat-datepicker-range-input-separator-color, var(--mat-sys-on-surface))}.mat-form-field-disabled .mat-date-range-input-separator{color:var(--mat-datepicker-range-input-disabled-state-separator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}._mat-animation-noopable .mat-date-range-input-separator{transition:none}.mat-date-range-input-separator-hidden{-webkit-user-select:none;user-select:none;opacity:0;transition:none}.mat-date-range-input-wrapper{position:relative;overflow:hidden;max-width:calc(50% - 4px)}.mat-date-range-input-end-wrapper{flex-grow:1}.mat-date-range-input-inner{position:absolute;top:0;left:0;font:inherit;background:rgba(0,0,0,0);color:currentColor;border:none;outline:none;padding:0;margin:0;vertical-align:bottom;text-align:inherit;-webkit-appearance:none;width:100%;height:100%}.mat-date-range-input-inner:-moz-ui-invalid{box-shadow:none}.mat-date-range-input-inner::placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-moz-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner::-webkit-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner:-ms-input-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-date-range-input-inner[disabled]{color:var(--mat-datepicker-range-input-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner::placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::placeholder{opacity:0}}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner::-moz-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-moz-placeholder{opacity:0}}.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner::-webkit-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner::-webkit-input-placeholder{opacity:0}}.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{-webkit-user-select:none;user-select:none;color:rgba(0,0,0,0) !important;-webkit-text-fill-color:rgba(0,0,0,0);transition:none}@media(forced-colors: active){.mat-form-field-hide-placeholder .mat-date-range-input-inner:-ms-input-placeholder,.mat-date-range-input-hide-placeholders .mat-date-range-input-inner:-ms-input-placeholder{opacity:0}}._mat-animation-noopable .mat-date-range-input-inner::placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-moz-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner::-webkit-input-placeholder{transition:none}._mat-animation-noopable .mat-date-range-input-inner:-ms-input-placeholder{transition:none}.mat-date-range-input-mirror{-webkit-user-select:none;user-select:none;visibility:hidden;white-space:nowrap;display:inline-block;min-width:2px}.mat-mdc-form-field-type-mat-date-range-input .mat-mdc-form-field-infix{width:200px}
10
+ `],encapsulation:2,changeDetection:0})}return n})();function Za(n){return pt(n,!0)}function ea(n){return n.nodeType===Node.ELEMENT_NODE}function Ja(n){return n.nodeName==="INPUT"}function ei(n){return n.nodeName==="TEXTAREA"}function pt(n,o){if(ea(n)&&o){let a=(n.getAttribute?.("aria-labelledby")?.split(/\s+/g)||[]).reduce((t,i)=>{let r=document.getElementById(i);return r&&t.push(r),t},[]);if(a.length)return a.map(t=>pt(t,!1)).join(" ")}if(ea(n)){let e=n.getAttribute("aria-label")?.trim();if(e)return e}if(Ja(n)||ei(n)){if(n.labels?.length)return Array.from(n.labels).map(t=>pt(t,!1)).join(" ");let e=n.getAttribute("placeholder")?.trim();if(e)return e;let a=n.getAttribute("title")?.trim();if(a)return a}return(n.textContent||"").replace(/\s+/g," ").trim()}var ha=(()=>{class n extends la{_rangeInput=s(Xa);_elementRef=s(L);_defaultErrorStateMatcher=s(qt);_injector=s(W);_rawValue=u("");_parentForm=s(Ft,{optional:!0});_parentFormGroup=s(Rt,{optional:!0});ngControl;_dir=s(Q,{optional:!0});_errorStateTracker;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}constructor(){super(),this._errorStateTracker=new Wt(this._defaultErrorStateMatcher,null,this._parentFormGroup,this._parentForm,this.stateChanges)}ngOnInit(){let e=this._injector.get(It,null,{optional:!0,self:!0});e&&(this.ngControl=e,this._errorStateTracker.ngControl=e)}ngAfterContentInit(){this._register()}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._rawValue.set(this._elementRef.nativeElement.value)}isEmpty(){return this._rawValue().length===0}_getPlaceholder(){return this._elementRef.nativeElement.placeholder}focus(){this._elementRef.nativeElement.focus()}getMirrorValue(){let e=this._rawValue();return e.length>0?e:this._getPlaceholder()}updateErrorState(){this._errorStateTracker.updateErrorState()}_onInput(e){super._onInput(e),this._rangeInput._handleChildValueChange()}_openPopup(){this._rangeInput._openDatepicker()}_getMinDate(){return this._rangeInput.min}_getMaxDate(){return this._rangeInput.max}_getDateFilter(){return this._rangeInput.dateFilter}_parentDisabled(){return this._rangeInput._groupDisabled}_shouldHandleChangeEvent({source:e}){return e!==this._rangeInput._startInput&&e!==this._rangeInput._endInput}_assignValueProgrammatically(e){super._assignValueProgrammatically(e),(this===this._rangeInput._startInput?this._rangeInput._endInput:this._rangeInput._startInput)?._validatorOnChange(),this._rawValue.set(this._elementRef.nativeElement.value)}_formatValue(e){super._formatValue(e),this._rangeInput._handleChildValueChange()}_getAccessibleName(){return Za(this._elementRef.nativeElement)}static \u0275fac=function(a){return new(a||n)};static \u0275dir=Y({type:n,inputs:{errorStateMatcher:"errorStateMatcher"},features:[B]})}return n})(),Ki=(()=>{class n extends ha{_startValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._model?this._model.selection.end:null;return!a||!t||this._dateAdapter.compareDate(a,t)<=0?null:{matStartDateInvalid:{end:t,actual:a}}};_validator=pe.compose([...super._getValidators(),this._startValidator]);_register(){this._rangeInput._startInput=this}_getValueFromModel(e){return e.start}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.start?!e.selection.start||!!this._dateAdapter.compareDate(e.oldValue.start,e.selection.start):!!e.selection.start:!1}_assignValueToModel(e){if(this._model){let a=new g(e,this._model.selection.end);this._model.updateSelection(a,this),this._rangeInput._handleChildValueChange()}}_onKeydown(e){let a=this._rangeInput._endInput,t=this._elementRef.nativeElement,i=this._dir?.value!=="rtl";(e.keyCode===39&&i||e.keyCode===37&&!i)&&t.selectionStart===t.value.length&&t.selectionEnd===t.value.length?(e.preventDefault(),a._elementRef.nativeElement.setSelectionRange(0,0),a.focus()):super._onKeydown(e)}static \u0275fac=(()=>{let e;return function(t){return(e||(e=ne(n)))(t||n)}})();static \u0275dir=Y({type:n,selectors:[["input","matStartDate",""]],hostAttrs:["type","text",1,"mat-start-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(a,t){a&1&&f("input",function(r){return t._onInput(r)})("change",function(){return t._onChange()})("keydown",function(r){return t._onKeydown(r)})("blur",function(){return t._onBlur()}),a&2&&(ke("disabled",t.disabled),v("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",t._rangeInput._ariaOwns()||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[P([{provide:Fe,useExisting:n,multi:!0},{provide:Re,useExisting:n,multi:!0}]),B]})}return n})(),ji=(()=>{class n extends ha{_endValidator=e=>{let a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),t=this._model?this._model.selection.start:null;return!a||!t||this._dateAdapter.compareDate(a,t)>=0?null:{matEndDateInvalid:{start:t,actual:a}}};_register(){this._rangeInput._endInput=this}_validator=pe.compose([...super._getValidators(),this._endValidator]);_getValueFromModel(e){return e.end}_shouldHandleChangeEvent(e){return super._shouldHandleChangeEvent(e)?e.oldValue?.end?!e.selection.end||!!this._dateAdapter.compareDate(e.oldValue.end,e.selection.end):!!e.selection.end:!1}_assignValueToModel(e){if(this._model){let a=new g(this._model.selection.start,e);this._model.updateSelection(a,this)}}_moveCaretToEndOfStartInput(){let e=this._rangeInput._startInput._elementRef.nativeElement,a=e.value;a.length>0&&e.setSelectionRange(a.length,a.length),e.focus()}_onKeydown(e){let a=this._elementRef.nativeElement,t=this._dir?.value!=="rtl";e.keyCode===8&&!a.value?this._moveCaretToEndOfStartInput():(e.keyCode===37&&t||e.keyCode===39&&!t)&&a.selectionStart===0&&a.selectionEnd===0?(e.preventDefault(),this._moveCaretToEndOfStartInput()):super._onKeydown(e)}static \u0275fac=(()=>{let e;return function(t){return(e||(e=ne(n)))(t||n)}})();static \u0275dir=Y({type:n,selectors:[["input","matEndDate",""]],hostAttrs:["type","text",1,"mat-end-date","mat-date-range-input-inner"],hostVars:5,hostBindings:function(a,t){a&1&&f("input",function(r){return t._onInput(r)})("change",function(){return t._onChange()})("keydown",function(r){return t._onKeydown(r)})("blur",function(){return t._onBlur()}),a&2&&(ke("disabled",t.disabled),v("aria-haspopup",t._rangeInput.rangePicker?"dialog":null)("aria-owns",t._rangeInput._ariaOwns()||null)("min",t._getMinDate()?t._dateAdapter.toIso8601(t._getMinDate()):null)("max",t._getMaxDate()?t._dateAdapter.toIso8601(t._getMaxDate()):null))},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[P([{provide:Fe,useExisting:n,multi:!0},{provide:Re,useExisting:n,multi:!0}]),B]})}return n})(),Wi=(()=>{class n extends Ye{_forwardContentValues(e){super._forwardContentValues(e);let a=this.datepickerInput;a&&(e.comparisonStart=a.comparisonStart,e.comparisonEnd=a.comparisonEnd,e.startDateAccessibleName=a._getStartDateAccessibleName(),e.endDateAccessibleName=a._getEndDateAccessibleName())}static \u0275fac=(()=>{let e;return function(t){return(e||(e=ne(n)))(t||n)}})();static \u0275cmp=k({type:n,selectors:[["mat-date-range-picker"]],exportAs:["matDateRangePicker"],features:[P([La,za,{provide:Ye,useExisting:n}]),B],decls:0,vars:0,template:function(a,t){},encapsulation:2,changeDetection:0})}return n})();var qi=(()=>{class n{static \u0275fac=function(a){return new(a||n)};static \u0275mod=vt({type:n});static \u0275inj=gt({providers:[te,qa],imports:[Qt,zt,Mt,Ot,Et,da,Ua,sa,Tt]})}return n})();export{sa as a,ct as b,zi as c,pa as d,Ua as e,Xa as f,Ki as g,ji as h,Wi as i,qi as j};
@@ -1,2 +1,2 @@
1
- import{a as Ve,b as Le,c as Pe,d as We,e as Be,f as j}from"./chunk-ZTHO6JJM.js";import{b as Ee}from"./chunk-FULVA6QB.js";import{a as Re}from"./chunk-D2J64VUP.js";import{a as Fe}from"./chunk-6Q6L5NUD.js";import{a as Ae}from"./chunk-4YCSITNV.js";import{c as Ie,d as Te}from"./chunk-WHHW4IZT.js";import{e as ge,g as fe,k as ye,q as ve}from"./chunk-L3W6SG2T.js";import{c as Se,d as ke,k as q,s as H,t as Q,u as xe}from"./chunk-STYL7ETF.js";import{C as be,E as Ce,F as Oe,H as we,I as z,K as Me,N as De,O as Y,g as D}from"./chunk-XLIPGDSC.js";import{c as _e}from"./chunk-LNJUGHOX.js";import{$ as A,$b as F,A as U,Ac as k,Ad as ue,Ba as R,Bc as x,Cc as u,Dc as _,F as O,Fd as d,G as T,Gb as re,Gd as G,Ha as ee,Hb as ne,Hc as ce,Jc as B,Lc as de,Mb as le,Mc as K,Na as te,Nc as N,O as $,Qa as ie,Xc as he,Zb as S,Zc as pe,aa as E,bc as V,ca as g,f as C,gc as L,hc as o,ic as m,jc as se,na as J,nb as p,pa as w,qc as P,qd as me,ra as l,sb as M,v as I,vc as b,xa as f,xc as v,ya as y,yb as ae,yc as oe,za as Z,zc as W}from"./chunk-ZYJ6LAJ3.js";var Xe=["trigger"],Ue=["panel"],$e=[[["mat-select-trigger"]],"*"],Je=["mat-select-trigger","*"];function Ze(r,c){if(r&1&&(o(0,"span",4),K(1),m()),r&2){let e=v();p(),N(e.placeholder)}}function et(r,c){r&1&&W(0)}function tt(r,c){if(r&1&&(o(0,"span",11),K(1),m()),r&2){let e=v(2);p(),N(e.triggerValue)}}function it(r,c){if(r&1&&(o(0,"span",5),F(1,et,1,0)(2,tt,2,1,"span",11),m()),r&2){let e=v();p(),V(e.customTrigger?1:2)}}function at(r,c){if(r&1){let e=P();o(0,"div",12,1),b("keydown",function(i){f(e);let a=v();return y(a._handleKeydown(i))}),W(2,1),m()}if(r&2){let e=v();de(he("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),B("mat-select-panel-animations-enabled",!e._animationsDisabled),L("ngClass",e.panelClass),S("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var qe=new w("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=l(R);return()=>q(r)}});function rt(r){let c=l(R);return()=>q(c)}var nt=new w("MAT_SELECT_CONFIG"),lt={provide:qe,deps:[],useFactory:rt},st=new w("MatSelectTrigger"),X=class{source;value;constructor(c,e){this.source=c,this.value=e}},Bt=(()=>{class r{_viewportRuler=l(Se);_changeDetectorRef=l(ue);_elementRef=l(ie);_dir=l(Me,{optional:!0});_idGenerator=l(Ce);_renderer=l(ae);_parentFormField=l(Te,{optional:!0});ngControl=l(fe,{self:!0,optional:!0});_liveAnnouncer=l(be);_defaultOptions=l(nt,{optional:!0});_animationsDisabled=De();_initialized=new C;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=We(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Be(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new X(this,e)}_scrollStrategyFactory=l(qe);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new C;_errorStateTracker;stateChanges=new C;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=ee(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ge.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=U(()=>{let e=this.options;return e?e.changes.pipe(A(e),E(()=>O(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(E(()=>this.optionSelectionChanges))});openedChange=new M;_openedStream=this.openedChange.pipe(T(e=>e),I(()=>{}));_closedStream=this.openedChange.pipe(T(e=>!e),I(()=>{}));selectionChange=new M;valueChange=new M;constructor(){let e=l(Fe),t=l(ye,{optional:!0}),i=l(ve,{optional:!0}),a=l(new me("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Re(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ee(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(g(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(g(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(A(null),g(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe($(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&z(this._trackedModal,"aria-owns",t),we(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;z(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&a&&!D(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let h=this.selected;n.onKeydown(e);let s=this.selected;s&&h!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,n=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!D(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let h=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(h?s.select():s.deselect())})}else{let h=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==h&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!D(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return(i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof H?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Oe(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=O(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),O(...this.options.map(t=>t._stateChanges)).pipe(g(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=re({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(k(a,st,5),k(a,Pe,5),k(a,Le,5)),t&2){let n;u(n=_())&&(i.customTrigger=n.first),u(n=_())&&(i.options=n),u(n=_())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(x(Xe,5),x(Ue,5),x(Q,5)),t&2){let a;u(a=_())&&(i.trigger=a.first),u(a=_())&&(i.panel=a.first),u(a=_())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,i){t&1&&b("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(S("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),B("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple)("mat-select-open",i.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",d],disableRipple:[2,"disableRipple","disableRipple",d],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:G(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",d],placeholder:"placeholder",required:[2,"required","required",d],multiple:[2,"multiple","multiple",d],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",d],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",G],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",d]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[pe([{provide:Ie,useExisting:r},{provide:Ve,useExisting:r}]),te],ngContentSelectors:Je,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=P();oe($e),o(0,"div",2,0),b("click",function(){return f(a),y(i.open())}),o(3,"div",3),F(4,Ze,2,1,"span",4)(5,it,3,1,"span",5),m(),o(6,"div",6)(7,"div",7),Z(),o(8,"svg",8),se(9,"path",9),m()()()(),le(10,at,3,10,"ng-template",10),b("detach",function(){return f(a),y(i.close())})("backdropClick",function(){return f(a),y(i.close())})("overlayKeydown",function(h){return f(a),y(i._handleOverlayKeydown(h))})}if(t&2){let a=ce(1);p(3),S("id",i._valueId),p(),V(i.empty?4:5),p(6),L("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[H,Q,_e],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}
2
- `],encapsulation:2,changeDetection:0})}return r})();var Kt=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=J({providers:[lt],imports:[xe,j,Y,ke,Ae,j,Y]})}return r})();export{Bt as a,Kt as b};
1
+ import{b as Ee}from"./chunk-LR2YCE6M.js";import{a as Ve,b as Le,c as Pe,d as We,e as Be,f as j}from"./chunk-2ST3DMR6.js";import{a as Me}from"./chunk-A2RTZANN.js";import{c as Oe,d as we,g as Re}from"./chunk-N3E43QWK.js";import{a as Fe}from"./chunk-XUDE7VBC.js";import{$ as Q,A as z,C as be,H as Ce,I as q,L as Ie,M as Te,T as H,aa as Y,ba as Ae,t as ge,v as fe,w as D,x as ye,z as ve}from"./chunk-7R2D2JZ6.js";import{e as Se,g as ke,k as xe,q as De}from"./chunk-WAXAIL2I.js";import{q as _e}from"./chunk-JNRCB7N3.js";import{$ as A,A as U,Aa as Z,Ac as W,Ad as ue,Bc as k,Ca as R,Cc as x,Dc as u,Ec as _,F as O,Fd as d,G as T,Gd as G,Hb as re,Ia as ee,Ib as ne,Ic as ce,Kc as B,Mc as de,Nb as le,Nc as K,O as $,Oa as te,Oc as N,Ra as ie,Yc as he,_b as S,_c as pe,aa as E,ac as F,ca as g,cc as V,f as C,hc as L,ic as o,jc as m,kc as se,na as J,ob as p,pa as w,ra as l,rc as P,rd as me,tb as M,v as I,wc as b,ya as f,yc as v,za as y,zb as ae,zc as oe}from"./chunk-OHGMB7HJ.js";var Xe=["trigger"],Ue=["panel"],$e=[[["mat-select-trigger"]],"*"],Je=["mat-select-trigger","*"];function Ze(r,c){if(r&1&&(o(0,"span",4),K(1),m()),r&2){let e=v();p(),N(e.placeholder)}}function et(r,c){r&1&&W(0)}function tt(r,c){if(r&1&&(o(0,"span",11),K(1),m()),r&2){let e=v(2);p(),N(e.triggerValue)}}function it(r,c){if(r&1&&(o(0,"span",5),F(1,et,1,0)(2,tt,2,1,"span",11),m()),r&2){let e=v();p(),V(e.customTrigger?1:2)}}function at(r,c){if(r&1){let e=P();o(0,"div",12,1),b("keydown",function(i){f(e);let a=v();return y(a._handleKeydown(i))}),W(2,1),m()}if(r&2){let e=v();de(he("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),B("mat-select-panel-animations-enabled",!e._animationsDisabled),L("ngClass",e.panelClass),S("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var qe=new w("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=l(R);return()=>H(r)}});function rt(r){let c=l(R);return()=>H(c)}var nt=new w("MAT_SELECT_CONFIG"),lt={provide:qe,deps:[],useFactory:rt},st=new w("MatSelectTrigger"),X=class{source;value;constructor(c,e){this.source=c,this.value=e}},Bt=(()=>{class r{_viewportRuler=l(Ie);_changeDetectorRef=l(ue);_elementRef=l(ie);_dir=l(be,{optional:!0});_idGenerator=l(fe);_renderer=l(ae);_parentFormField=l(we,{optional:!0});ngControl=l(ke,{self:!0,optional:!0});_liveAnnouncer=l(ge);_defaultOptions=l(nt,{optional:!0});_animationsDisabled=Ce();_initialized=new C;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=We(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Be(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new X(this,e)}_scrollStrategyFactory=l(qe);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new C;_errorStateTracker;stateChanges=new C;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=ee(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(Se.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=U(()=>{let e=this.options;return e?e.changes.pipe(A(e),E(()=>O(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(E(()=>this.optionSelectionChanges))});openedChange=new M;_openedStream=this.openedChange.pipe(T(e=>e),I(()=>{}));_closedStream=this.openedChange.pipe(T(e=>!e),I(()=>{}));selectionChange=new M;valueChange=new M;constructor(){let e=l(Fe),t=l(xe,{optional:!0}),i=l(De,{optional:!0}),a=l(new me("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Re(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ee(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(g(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(g(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(A(null),g(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe($(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&z(this._trackedModal,"aria-owns",t),ve(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;z(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&a&&!D(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let h=this.selected;n.onKeydown(e);let s=this.selected;s&&h!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,n=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!D(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let h=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(h?s.select():s.deselect())})}else{let h=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==h&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!D(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return(i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Q?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new ye(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=O(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),O(...this.options.map(t=>t._stateChanges)).pipe(g(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=re({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(k(a,st,5),k(a,Pe,5),k(a,Le,5)),t&2){let n;u(n=_())&&(i.customTrigger=n.first),u(n=_())&&(i.options=n),u(n=_())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(x(Xe,5),x(Ue,5),x(Y,5)),t&2){let a;u(a=_())&&(i.trigger=a.first),u(a=_())&&(i.panel=a.first),u(a=_())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,i){t&1&&b("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(S("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),B("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple)("mat-select-open",i.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",d],disableRipple:[2,"disableRipple","disableRipple",d],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:G(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",d],placeholder:"placeholder",required:[2,"required","required",d],multiple:[2,"multiple","multiple",d],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",d],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",G],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",d]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[pe([{provide:Oe,useExisting:r},{provide:Ve,useExisting:r}]),te],ngContentSelectors:Je,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=P();oe($e),o(0,"div",2,0),b("click",function(){return f(a),y(i.open())}),o(3,"div",3),F(4,Ze,2,1,"span",4)(5,it,3,1,"span",5),m(),o(6,"div",6)(7,"div",7),Z(),o(8,"svg",8),se(9,"path",9),m()()()(),le(10,at,3,10,"ng-template",10),b("detach",function(){return f(a),y(i.close())})("backdropClick",function(){return f(a),y(i.close())})("overlayKeydown",function(h){return f(a),y(i._handleOverlayKeydown(h))})}if(t&2){let a=ce(1);p(3),S("id",i._valueId),p(),V(i.empty?4:5),p(6),L("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[Q,Y,_e],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}
2
+ `],encapsulation:2,changeDetection:0})}return r})();var Kt=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=J({providers:[lt],imports:[Ae,j,q,Te,Me,j,q]})}return r})();export{Bt as a,Kt as b};
@@ -0,0 +1 @@
1
+ import{a as vt}from"./chunk-R3WIWDSP.js";import"./chunk-LUJ3SHSP.js";import"./chunk-IVKFEOCB.js";import{e as ft}from"./chunk-KTTKHI2N.js";import"./chunk-3HME327V.js";import{c as Pt,d as yt}from"./chunk-TZTW72NT.js";import"./chunk-VP3XO25X.js";import{a as gt}from"./chunk-SABMHH6B.js";import"./chunk-YAWT3CLI.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import"./chunk-C2LAQOUW.js";import{a as bt}from"./chunk-DLHIDOS3.js";import{a as St}from"./chunk-27DIE2YS.js";import{a as xt}from"./chunk-AJSJJV2I.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-BXNDE6NQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as Ct}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as ut}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import{c as ht}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as W}from"./chunk-ZSUWHVKX.js";import{h as st}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import{a as j}from"./chunk-AGBJEXIM.js";import{b as lt,c as ct}from"./chunk-5UFP37GQ.js";import{c as N}from"./chunk-UPRDDI4K.js";import{A as mt,b as dt,h as pt,m as _t}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as at,e as D}from"./chunk-MM7SAZOU.js";import{d as rt}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{w as it,z as ot}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{G as V,Hb as tt,Ia as X,K as H,Nb as A,Nc as d,Oc as nt,Pc as y,Rc as B,Sc as $,Tc as U,X as K,Z as q,ac as _,ad as E,bc as et,ca as J,cc as m,ea as k,ec as F,f as z,fa as Z,fc as I,g as R,gc as T,hc as p,ic as r,id as S,jc as c,jd as P,kc as C,ma as Q,mb as v,ob as l,oc as O,pc as M,qa as Y,ra as g,rc as f,v as w,wc as x,ya as h,yc as s,za as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Nt=(()=>{let o=class o{get footerPageNumber(){return this._footerPageNumber}set footerPageNumber(t){this._footerPageNumber=t}get hideCount(){return this._hideCount}set hideCount(t){this._hideCount=t}get disableNextButton(){return this._disableNextButton}set disableNextButton(t){this._disableNextButton=t}get goToLastPage(){return this._goToLastPage}set goToLastPage(t){this._goToLastPage=t}constructor(t){this.http=t,this.pagination$=new R(null),this.destroy$=new z,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this.footerPageNumber=t.PageNumber}setPaginationButtonState(t,e){e==0?this.disableNextButton=!0:this.disableNextButton=!(e<t.RowCount*t.PageNumber)}reloadPagination(t){N.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this.hideCount=!0,this.goToLastPage=!1}getAllData(t,e){t.RowCount=e,this.pagination$.next(t),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new R(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe(J(this.destroy$),V(t=>t!=null),H(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(w(e=>e.Data))),Z(this.pagination$),K((t,e)=>{let[a,b]=t,[G]=e;return b.PageNumber==1?[G,b]:[a.concat(G),b]}),k(([t,e])=>{this.setPageNumberFooter(e),this.setPaginationButtonState(e,t.length)}),w(([t])=>t),q())}};o.\u0275fac=function(e){return new(e||o)(Y(D))},o.\u0275prov=Q({token:o,factory:o.\u0275fac,providedIn:"root"});let i=o;return i})();var L=i=>[i];function Ft(i,o){if(i&1){let n=f();r(0,"button",11),x("click",function(){h(n);let e=s(3);return u(e.uploadMultipleProduct())}),C(1,"i",12),d(2),c()}if(i&2){let n=s(3);l(2),y(" upload (",n.selectedProducts==null?null:n.selectedProducts.length,") ")}}function It(i,o){if(i&1&&(O(0),_(1,Ft,3,1,"button",10),M()),i&2){let n=s(2);l(),m(n.hasSelectionProduct?1:-1)}}function Tt(i,o){if(i&1){let n=f();O(0),r(1,"button",13),x("click",function(){h(n);let e=s(2);return u(e.openScanDialog())}),C(2,"i",14),d(3," Scan Channel "),c(),M()}}function Ot(i,o){i&1&&(O(0),C(1,"th",21),M())}function Mt(i,o){if(i&1){let n=f();r(0,"td",27)(1,"input",28),U("ngModelChange",function(e){h(n);let a=s(3).$implicit;return $(a.selected,e)||(a.selected=e),u(e)}),x("ngModelChange",function(){h(n);let e=s(4),a=s(3);return u(a.onSelectProduct(e))}),c()()}if(i&2){let n=s(3).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(),B("ngModel",n.selected)}}function Et(i,o){if(i&1&&(O(0),_(1,Mt,2,2,"td",27),M()),i&2){let n=s().$index;l(),m(n==0?1:-1)}}function Vt(i,o){if(i&1){let n=f();r(0,"img",35),x("click",function(e){h(n);let a=s(3).$implicit,b=s(4);return u(b.onZoomImage(e,a==null?null:a.ImageUrl))}),c()}if(i&2){let n=s(3).$implicit;p("src",n==null?null:n.ImageUrl,v)}}function kt(i,o){i&1&&C(0,"img",31)}function At(i,o){if(i&1&&(r(0,"td",27)(1,"div",29),_(2,Vt,1,1,"img",30)(3,kt,1,0,"img",31),c()(),r(4,"td",32)(5,"h4",33)(6,"span",34),d(7),c()()()),i&2){let n=s(2).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(2),m(n!=null&&n.ImageUrl?2:3),l(2),p("rowSpan",n==null?null:n.Variants.length),l(2),p("matTooltip",(n==null||n.Name==null?null:n.Name.length)>50?n==null?null:n.Name:""),l(),y(" ",n==null?null:n.Name," ")}}function Bt(i,o){if(i&1&&(r(0,"div")(1,"a",23),C(2,"img",36),c()()),i&2){let n=o.$implicit;l(),p("href",n.URL,v),l(),p("src",n.Img,v)("matTooltip",n.Name)}}function $t(i,o){if(i&1&&(r(0,"div"),C(1,"img",36),c()),i&2){let n=o.$implicit;l(),p("src",n.Img,v)("matTooltip",n.Name)}}function Dt(i,o){if(i&1&&(r(0,"tr"),A(1,Et,2,1,"ng-container",2),_(2,At,8,5),r(3,"td"),d(4),c(),r(5,"td")(6,"span"),d(7),c(),r(8,"span",22)(9,"a",23),C(10,"i",24),c()()(),r(11,"td",25)(12,"div",26),I(13,Bt,3,3,"div",null,F),c()(),r(15,"td",25)(16,"div",26),I(17,$t,2,2,"div",null,F),c()()()),i&2){let n=o.$implicit,t=o.$index,e=s(5);l(),p("ngxPermissionsOnly",E(5,L,e.uploadProductRole)),l(),m(t==0?2:-1),l(2),y(" ",n.Name," "),l(3),y(" ",n.Code," "),l(2),p("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),v),l(4),T(n==null?null:n.Available),l(4),T(n==null?null:n.NotAvailable)}}function Lt(i,o){if(i&1&&I(0,Dt,19,7,"tr",null,F),i&2){let n=o.$implicit;T(n.Variants)}}function Rt(i,o){i&1&&(r(0,"tbody"),I(1,Lt,2,0,null,null,F),c()),i&2&&(l(),T(o))}function Ut(i,o){if(i&1&&(r(0,"div",8)(1,"table",15)(2,"thead",16)(3,"tr"),A(4,Ot,2,0,"ng-container",2),r(5,"th",17),d(6," Product "),c(),r(7,"th",18),d(8,"Variant"),c(),r(9,"th",18),d(10,"SKU"),c(),r(11,"th",19),d(12,"Available In"),c(),r(13,"th",20),d(14,"Not Available In"),c()()(),_(15,Rt,3,0,"tbody"),S(16,"async"),c()()),i&2){let n,t=s(2);l(4),p("ngxPermissionsOnly",E(4,L,t.uploadProductRole)),l(11),m((n=P(16,2,t.data$))?15:-1,n)}}function jt(i,o){i&1&&(r(0,"div",9),C(1,"app-empty-state"),c())}function Wt(i,o){if(i&1){let n=f();r(0,"span",44),x("click",function(){h(n);let e=s(4);return u(e.getRowCount())}),r(1,"i",45),d(2,"?"),c()()}}function Gt(i,o){if(i&1&&(r(0,"span"),d(1),S(2,"number"),c()),i&2){let n=o;l(),nt(P(2,1,n==null?null:n.Count))}}function zt(i,o){if(i&1){let n=f();r(0,"a",46),x("click",function(){h(n);let e=s(4);return u(e.onNextPage())}),C(1,"i",47),d(2," Next"),c()}}function Ht(i,o){if(i&1){let n=f();r(0,"a",48),x("click",function(){h(n);let e=s(4);return u(e.onLastPage())}),C(1,"i",49),d(2," Last"),c()}}function Kt(i,o){if(i&1&&(r(0,"div",37)(1,"div",38)(2,"div",39),d(3),S(4,"number"),_(5,Wt,3,0,"span",40),_(6,Gt,3,3,"span"),S(7,"async"),d(8),c()(),r(9,"div",41),_(10,zt,3,0,"a",42),_(11,Ht,3,0,"a",43),c()()),i&2){let n,t=s(),e=s(2);l(3),y(" Showing 1 - ",P(4,6,t==null?null:t.length)," of "),l(2),m(e.paginationService.hideCount?5:-1),l(),m((n=!e.paginationService.hideCount&&P(7,8,e.rowCount$))?6:-1,n),l(2),y(" records ~ ",e.paginationService.footerPageNumber," Page "),l(2),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?10:-1),l(),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?11:-1)}}function qt(i,o){if(i&1&&_(0,Kt,12,10,"div",37),i&2){let n=o;m((n==null?null:n.length)>0?0:-1)}}function Jt(i,o){if(i&1){let n=f();r(0,"mainpanel",1),x("onSubmit",function(e){h(n);let a=s();return u(a.searchProduct(e))}),r(1,"actions"),A(2,It,2,1,"ng-container",2)(3,Tt,4,0,"ng-container",2),r(4,"button",3),x("click",function(){h(n);let e=s();return u(e.openExportDialog())}),C(5,"i",4),r(6,"span"),d(7,"Export"),c()()(),r(8,"filters")(9,"filter-query-type",5),U("numberFilterComparatorChange",function(e){h(n);let a=s();return $(a.searchFilter.NumberFilterComparator,e)||(a.searchFilter.NumberFilterComparator=e),u(e)})("searchTypeChange",function(e){h(n);let a=s();return $(a.searchFilter.SearchType,e)||(a.searchFilter.SearchType=e),u(e)}),c()(),r(10,"content")(11,"div",6)(12,"div",7),_(13,Ut,17,6,"div",8),S(14,"async"),et(15,jt,2,0,"div",9),c(),_(16,qt,1,1),S(17,"async"),c()()()}if(i&2){let n,t,e=o,a=s();p("searchBoxPlaceHolder",a.searchPlaceholder()),l(2),p("ngxPermissionsOnly",E(13,L,a.uploadProductRole)),l(),p("ngxPermissionsOnly",E(15,L,a.scanProductRole)),l(6),p("numberFilterComparatorOptions",e==null||e.Options==null?null:e.Options.SearchComparatorTypeOptions),B("numberFilterComparator",a.searchFilter.NumberFilterComparator),p("searchTypeOptions",e==null||e.Options==null?null:e.Options.SearchSKUOnlyOrSKUNameOptions),B("searchType",a.searchFilter.SearchType),l(4),m(((n=P(14,9,a.data$))==null?null:n.length)>0?13:15),l(3),m((t=P(17,11,a.data$))?16:-1,t)}}var Ie=(()=>{let o=class o{constructor(){this.http=g(D),this.dialog=g(ut),this.toastr=g(at),this.route=g(rt),this.productService=g(xt),this.paginationService=g(Nt),this.biggerPictureService=g(bt),this.authService=g(st),this.uploadProductService=g(ft),this.placeholderService=g(Pt),this.loaderAPI="product/Load",this.notChannelAPI="product/GetNotInChannelV2",this.hasSelectionProduct=!1,this.selectedProducts=[],this.scanProductRole=W.ProductScan,this.uploadProductRole=W.ProductUpload,this.searchPlaceholder=X("Search ...");let t=this.authService;this.channelOptions=t.getChannels(),this.hostName=this.authService.getDomain()}ngOnInit(){this.initPageLoader(),this.iniData()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.notChannelAPI,this.loader$=this.http.post(`api/${this.loaderAPI}`,{}).pipe(k(t=>{this.searchFilter=t.Filter,this.paginationService.reloadPagination(t.Filter),this.initSearchPlaceholder()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}iniData(){this.data$=this.paginationService.data$.pipe(w(t=>(t=t.map(e=>(e.Variants=e.Variants.map(a=>(a.Available=this.productService.sortChannel(a.Available),a.NotAvailable=this.productService.sortChannel(a.NotAvailable),a.Available=this.assignLogoChannel(a.Available),a.NotAvailable=this.assignLogoChannel(a.NotAvailable),a)),e.Channel=e?.Variants[0]?.Available,e)),t)))}assignLogoChannel(t){return t=t.map(e=>(e.Img=N.getChannelLogoByTypeId(e.TypeID),e)),t}searchProduct(t){this.searchFilter.text=t,this.paginationService.reloadPagination(this.searchFilter),this.initSearchPlaceholder()}scanAllProduct(){let t=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{this.searchFilter.Async?this.toastr.success("You will be notified when the scan is completed.","Scan Asynchronous"):(this.productService.successToastrScanAllProduct(e,t,!this.searchFilter.UpdatedProduct),this.initPageLoader())})}openScanDialog(){let t=JSON.parse(JSON.stringify(this.searchFilter));t.ChannelID=N.GuidEMpty,this.dialog.open(gt,{data:{filter:t,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe(V(a=>N.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID,this.searchFilter.ScanFull=a.ScanFull,this.searchFilter.UpdatedProduct=a.UpdatedProduct,this.searchFilter.Async=a.Async,this.scanAllProduct()})}getRowCount(){this.paginationService.hideCount=!1;let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.rowCount$=this.http.post(j.GetNotInChannelRowCount,t)}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.http.post(j.GetNotInChannelRowCount,t).subscribe({next:e=>{this.searchFilter.PageNumber=1,this.paginationService.getAllData(this.searchFilter,e.Count)}})}onZoomImage(t,e){this.biggerPictureService.openBiggerPicture(t,e)}onSelectProduct(t){this.hasSelectionProduct=this.productService.hasSelection(t),this.selectedProducts=this.productService.selectedProduct(t)}uploadMultipleProduct(){this.uploadProductService.setSelectedProduct(this.selectedProducts),this.route.navigate(["/menu/products/upload"])}ngOnDestroy(){this.paginationService.destroy()}openExportDialog(){this.dialog.open(vt,{data:{title:"Export Not In Channel",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:"product/GetNotInChannelRowCount",exportApi:"product/GetNotInChannelExport"}}).afterClosed().subscribe()}};o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=tt({type:o,selectors:[["app-not-in-channel"]],decls:2,vars:3,consts:[["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"searchBoxPlaceHolder"],["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"onSubmit","searchBoxPlaceHolder"],[4,"ngxPermissionsOnly"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],["data-cy","scanNotinChannel","type","button",1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"ms-5","text-center",2,"width","450px"],[2,"width","150px"],[2,"width","20%"],[2,"width","16%"],[2,"width","10px"],[1,"ms-1"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"padding-left","0px"],[1,"d-flex","flex-wrap","mb-1"],[1,"text-center",3,"rowSpan"],["type","checkbox",3,"ngModelChange","ngModel"],[2,"padding-right","0px"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded",2,"max-width","40px"],[1,"text-start",3,"rowSpan"],[1,"ms-5","fw-normal","text-ellipsis",2,"max-width","26vw !important"],[3,"matTooltip"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"click","src"],["alt","",1,"channel-logo","cursor-pointer","ms-4","mt-3",3,"src","matTooltip"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(e,a){if(e&1&&(_(0,Jt,18,17,"mainpanel",0),S(1,"async")),e&2){let b;m((b=P(1,1,a.loader$))?0:-1,b)}},dependencies:[Ct,ct,lt,yt,mt,dt,pt,_t,ht,St,it,ot],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}thead[_ngcontent-%COMP%]{position:sticky;top:0}.channel-logo[_ngcontent-%COMP%]{width:20px}.w-img[_ngcontent-%COMP%]{width:100%}"]});let i=o;return i})();export{Ie as NotInChannelComponent};
@@ -0,0 +1,5 @@
1
+ import{a as wt}from"./chunk-IVKFEOCB.js";import{a as bt,b as xt,g as vt,i as Pt,j as Nt}from"./chunk-5WT456T7.js";import{a as _t}from"./chunk-YNL43MLU.js";import{b as Tt}from"./chunk-4S4BOPUV.js";import{a as rt}from"./chunk-A2RTZANN.js";import{c as Ct}from"./chunk-O4D64GHO.js";import{a as ut}from"./chunk-ZSUWHVKX.js";import{a as dt,c as ct}from"./chunk-5UFP37GQ.js";import{b as lt}from"./chunk-UPRDDI4K.js";import{A as ft,c as gt,h as pt,m as ht}from"./chunk-WAXAIL2I.js";import{b as st,e as mt}from"./chunk-MM7SAZOU.js";import{A as $,v as at,z as L}from"./chunk-JNRCB7N3.js";import{G as J,Hb as I,Ia as P,Ic as nt,K as Y,Kb as tt,Nb as F,Nc as m,Oc as N,Pc as A,Rc as U,Sc as W,Tc as G,X as q,Z as K,ac as g,ca as Q,cc as p,ea as O,f as H,fa as X,g as z,hc as w,ic as h,id as M,jc as f,jd as y,lc as C,ld as ot,ma as E,mc as _,nc as j,ob as l,pd as D,qa as Z,qc as et,ra as v,rc as b,td as S,ud as x,v as T,wc as it,xc as V,ya as c,yc as s,za as u}from"./chunk-OHGMB7HJ.js";function Et(i,n){i&1&&et(0)}function It(i,n){if(i&1&&F(0,Et,1,0,"ng-container",5),i&2){s(2);let a=nt(5);w("ngTemplateOutlet",a)}}function Vt(i,n){if(i&1&&(h(0,"div",4)(1,"label"),m(2,"Editing Data"),f(),h(3,"div")(4,"span"),m(5),M(6,"number"),f()()()),i&2){let a=s(2);l(5),N(y(6,1,a.value))}}function St(i,n){if(i&1&&g(0,It,1,1,"ng-container")(1,Vt,7,3,"div",4),i&2){let a=s();p(a.hasPriceEdit?0:1)}}function Lt(i,n){if(i&1){let a=b();h(0,"div",3)(1,"input",6),G("ngModelChange",function(e){c(a);let o=s();return W(o.value,e)||(o.value=e),u(e)}),f(),h(2,"label",7),m(3),f()()}if(i&2){let a=s();l(),U("ngModel",a.value),w("max",a.maxEditInventory),l(2),N(a.item.Table)}}function $t(i,n){if(i&1){let a=b();h(0,"div",3)(1,"input",6),G("ngModelChange",function(e){c(a);let o=s();return W(o.value,e)||(o.value=e),u(e)}),f(),h(2,"label",7),m(3),f()()}if(i&2){let a=s();l(),U("ngModel",a.value),w("max",a.maxEditInventory),l(2),N(a.item.Table)}}var ie=(()=>{let n=class n{constructor(){this.dialogRef=v(bt),this.item=v(xt),this.permissionService=v(dt),this.maxEditInventory=1e5,this.permissionService.hasPermission(ut.PriceUpdate).then(t=>this.hasPriceEdit=t)}ngOnInit(){this.selectedChannel=this.item.Variant.Channel.find(t=>t.ChannelID==this.item.ChannelID),this.selectedChannel.ID=this.item.Variant.ID,this.selectedChannel.Sku=this.item.Variant.Code,this.item.Table=="inventory"?(this.value=this.selectedChannel.Inventory,this.maxEditInventory=this.selectedChannel?.TypeID==lt.Tokopedia?1e5:null):this.item.Table=="price"&&(this.value=this.selectedChannel.Price,this.maxEditInventory=null),this.selectedChannel.ItemName=this.item.Name,this.selectedChannel.VarName=this.item.Variant.Model,this.initModalConfig()}initModalConfig(){let t=this.item.Table=="inventory"?"Update Inventory":"Update Price";this.modalConfig=new Pt,this.modalConfig.title=`${t} ${this.item?.Name} in ${this.selectedChannel?.Title}`}onSubmit(){this.item.Table=="inventory"?this.selectedChannel.Inventory=this.value:this.item.Table=="price"&&(this.selectedChannel.Price=this.value),this.dialogRef.close(this.selectedChannel)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["app-table-dialog"]],decls:6,vars:3,consts:[["INVENTORY",""],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group","mt-3"],["matTooltipPosition","above","matTooltip","Cannot edit Unit Price because you dont have access ProductEditor role",1,"info-label-group","mt-3",2,"background","#e9ecef","opacity","1"],[4,"ngTemplateOutlet"],["type","text","name","edit","autoNum","",1,"form-control",3,"ngModelChange","ngModel","max"],["for","edit",1,"text-capitalize"]],template:function(e,o){if(e&1){let r=b();h(0,"modal-material",1),it("onClose",function(){return c(r),u(o.onClose())})("onCancel",function(){return c(r),u(o.onClose())})("onOk",function(){return c(r),u(o.onSubmit())}),h(1,"div",2),g(2,St,2,1)(3,Lt,4,3,"div",3),F(4,$t,4,3,"ng-template",null,0,ot),f()()}e&2&&(w("dynamicValidated",o.value)("config",o.modalConfig),l(2),p(o.item.Table=="price"?2:3))},dependencies:[$,at,vt,rt,Tt,wt,Nt,ft,gt,pt,ht,ct,_t,Ct,L],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}.mat-dialog-content[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;margin-left:.5rem;margin-right:.5rem}.font-lg[_ngcontent-%COMP%]{font-size:large}.font-lgr[_ngcontent-%COMP%]{font-size:larger}"]});let i=n;return i})();var oe=(()=>{let n=class n{transform(t,e,o=0){if(!t)return t;let r=e?parseInt(e,10):10;return t.length>r?t.substring(o,r)+"...":t}};n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=tt({name:"stringLimit",type:n,pure:!0});let i=n;return i})();function Bt(i,n){if(i&1){let a=b();C(0,"span",5),V("click",function(){c(a);let e=s();return u(e.onGetRowCount())}),C(1,"i",6),m(2,"?"),_()()}}function kt(i,n){if(i&1&&(C(0,"span"),m(1),M(2,"number"),_()),i&2){let a=s();l(),N(y(2,1,a.rowCount()))}}function Rt(i,n){if(i&1){let a=b();C(0,"a",9),V("click",function(){c(a);let e=s(2);return u(e.onNextPage())}),j(1,"i",10),m(2," Next"),_()}}function Ot(i,n){if(i&1){let a=b();C(0,"a",11),V("click",function(){c(a);let e=s(2);return u(e.onLastPage())}),j(1,"i",12),m(2," Last"),_()}}function Ft(i,n){if(i&1&&(C(0,"div",4),g(1,Rt,3,0,"a",7),g(2,Ot,3,0,"a",8),_()),i&2){let a=s();l(),p(a.disableNextButton()&&!a.goToLastPage()?1:-1),l(),p(a.disableNextButton()&&!a.goToLastPage()?2:-1)}}var me=(()=>{let n=class n{constructor(){this.totalData=x(0),this.rowCount=x(),this.pageNumber=x(),this.disableNextButton=x(),this.goToLastPage=x(),this.hideCount=x(),this.nextPage=S({alias:"onNextPage"}),this.lastPage=S({alias:"onLastPage"}),this.getRowCount=S({alias:"onGetRowCount"})}onNextPage(){this.nextPage.emit()}onLastPage(){this.lastPage.emit()}onGetRowCount(){this.getRowCount.emit()}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["infinite-paginator"]],inputs:{totalData:[1,"totalData"],rowCount:[1,"rowCount"],pageNumber:[1,"pageNumber"],disableNextButton:[1,"disableNextButton"],goToLastPage:[1,"goToLastPage"],hideCount:[1,"hideCount"]},outputs:{nextPage:"onNextPage",lastPage:"onLastPage",getRowCount:"onGetRowCount"},decls:9,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0",3,"click"],[1,"fas","fa-share"]],template:function(e,o){e&1&&(C(0,"div",0)(1,"div",1)(2,"div",2),m(3),M(4,"number"),g(5,Bt,3,0,"span",3),g(6,kt,3,3,"span"),m(7),_()(),g(8,Ft,3,2,"div",4),_()),e&2&&(l(3),A(" Showing 1 - ",y(4,5,o.totalData())," of "),l(2),p(o.hideCount()?5:-1),l(),p(!o.hideCount()&&o.rowCount()?6:-1),l(),A(" records ~ ",o.pageNumber()," Page "),l(),p(o.totalData()>0?8:-1))},dependencies:[$,L],encapsulation:2});let i=n;return i})();var he=(()=>{let n=class n{constructor(t){this.http=t,this.pagination$=new z(null),this._pageNumber=P(1),this.pageNumber=D(()=>this._pageNumber()),this._hideCount=P(!0),this.hideCount=D(()=>this._hideCount()),this._disableNextButton=P(!0),this.disableNextButton=D(()=>this._disableNextButton()),this._goToLastPage=P(!1),this.isLastPage=D(()=>this._goToLastPage()),this.totalData=P(0),this.destroy$=new H,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this._pageNumber.set(t.PageNumber)}setPaginationButtonState(t,e){e==0?this._disableNextButton.set(!0):this._disableNextButton.set(!(e<t.RowCount*t.PageNumber))}reloadPagination(t){t.PageNumber=1,this.pagination$.next(t),this._hideCount.set(!0),this._goToLastPage.set(!1)}onLastPage(t={}){let e=JSON.parse(JSON.stringify(t));this.totalRowCount$=this.http.post(`/api/${this.fethRowCountEndpoint}`,e).pipe(T(o=>o.Total),O(o=>{this._hideCount.set(!1),e.RowCount=o,e.PageNumber=1,this.pagination$.next(e),this._goToLastPage.set(!0)}))}paginationFunction(){return this.pagination$.pipe(Q(this.destroy$),J(t=>t!=null),Y(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(T(e=>e.Data?e.Data:[]))),X(this.pagination$),q((t,e)=>{let[o,r]=t,[d]=e;return r.PageNumber==1?[d,r]:[o.concat(d),r]}),O(([t,e])=>{this.setPageNumberFooter(e);let o=this.calculateProductLength(t);this.totalData.set(o),this.setPaginationButtonState(e,o)}),T(([t])=>t),K())}getRowCount(t){this._hideCount.set(!1),this.totalRowCount$=this.http.post(`/API/${this.fethRowCountEndpoint}`,t).pipe(T(e=>e.Total))}calculateProductLength(t=[]){return t.reduce((o,r)=>o+(r.Variants?.length?r.Variants?.length:0),0)}};n.\u0275fac=function(e){return new(e||n)(Z(mt))},n.\u0275prov=E({token:n,factory:n.\u0275fac});let i=n;return i})();var xe=(()=>{let n=class n{constructor(){this.toastr=v(st)}responseHandling(t=[],e=[],o,r=[]){let d=t.length>0,k=e.length>0;if(!k&&d&&this.toastr.success(`${this.generateSuccessMessage(t.length,r)}`,"Success",{enableHtml:!0}),k&&d){let R=`<li>${this.generateSuccessMessage(t.length)}</li>`,Mt=this.generateErrorMessage(o,e),yt=`<ol>${R} ${Mt}</ol>`;this.toastr.warning(yt,"Warning",{enableHtml:!0})}if(k&&!d){let R=`<ol>${this.generateErrorMessage(o,e)}</ol>`;this.toastr.error(R,"Error",{enableHtml:!0})}}generateSuccessMessage(t,e=[]){let o=e.length>1?e.length:1;return`
2
+ <div>
3
+ <span class="fw-bold">Successfully</span> updated ${t} variants in ${o} channels
4
+ </div>
5
+ `}generateErrorMessage(t,e=[]){let o="";return e.forEach((r,d)=>{o+=`<li><span class="fw-bold">Error</span> Updating ${t} for [${r.Name} - ${r.Code}] - <b>${r.Message}</b></li>`}),o}};n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=E({token:n,factory:n.\u0275fac});let i=n;return i})();export{ie as a,oe as b,me as c,he as d,xe as e};
@@ -1 +1 @@
1
- import{a as e}from"./chunk-AGBJEXIM.js";import{e as s}from"./chunk-OXWPYJNB.js";import{ma as i,ra as p}from"./chunk-ZYJ6LAJ3.js";var G=(()=>{let r=class r{constructor(){this.httpService=p(s)}getGroupsLoader(){return this.httpService.get(e.GetGroupsLoader)}getGroups(t){return this.httpService.post(e.GetGroups,t)}getGroupsForm(t){return this.httpService.post(e.GetGroupFormLoader,{ID:t})}submitGroup(t){return this.httpService.post(e.SubmitGroup,t)}deleteGroups(t){return this.httpService.post(e.DeleteGroups,{ListID:t})}};r.\u0275fac=function(u){return new(u||r)},r.\u0275prov=i({token:r,factory:r.\u0275fac});let o=r;return o})();export{G as a};
1
+ import{a as e}from"./chunk-AGBJEXIM.js";import{e as s}from"./chunk-MM7SAZOU.js";import{ma as i,ra as p}from"./chunk-OHGMB7HJ.js";var G=(()=>{let r=class r{constructor(){this.httpService=p(s)}getGroupsLoader(){return this.httpService.get(e.GetGroupsLoader)}getGroups(t){return this.httpService.post(e.GetGroups,t)}getGroupsForm(t){return this.httpService.post(e.GetGroupFormLoader,{ID:t})}submitGroup(t){return this.httpService.post(e.SubmitGroup,t)}deleteGroups(t){return this.httpService.post(e.DeleteGroups,{ListID:t})}};r.\u0275fac=function(u){return new(u||r)},r.\u0275prov=i({token:r,factory:r.\u0275fac});let o=r;return o})();export{G as a};
@@ -0,0 +1 @@
1
+ import{a as ee,b as te,c as ie,d as oe,e as ne,f as re}from"./chunk-TKZ74HJD.js";import{a as P}from"./chunk-7HRL6MHY.js";import"./chunk-UB62TZOI.js";import"./chunk-O4U34AC7.js";import"./chunk-WIRBYT7F.js";import"./chunk-FOKLBUX6.js";import{a as Y,b as Z}from"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as X}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-RXC5D64C.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as R}from"./chunk-ZSUWHVKX.js";import"./chunk-AGBJEXIM.js";import{b as Q,c as W}from"./chunk-5UFP37GQ.js";import"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import{b as V}from"./chunk-MM7SAZOU.js";import{b as z,d as H,e as J,g as K}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as U,w as q}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as w,Mc as O,Nb as G,Nc as u,Oc as F,Pc as $,Uc as L,Vc as N,Wc as x,_c as A,aa as D,ac as _,ad as T,cc as g,dc as h,fc as v,gc as C,hc as c,ic as l,id as B,jc as p,jd as j,kc as f,ob as s,oc as y,pc as S,ra as m,rc as k,v as b,wc as M,ya as I,yc as d,za as E}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var ae=e=>({ID:e}),le=e=>({"border-end-0":e});function pe(e,o){if(e&1){let t=k();y(0),l(1,"button",11),M("click",function(){I(t);let r=d(),a=x(0);return E(r.onDeleteGroup(a==null?null:a.id))}),f(2,"i",12),u(3," Delete "),p(),S()}}function se(e,o){if(e&1&&(y(0),l(1,"a",13),f(2,"i",14),u(3," Edit "),p(),S()),e&2){d();let t=x(0);s(),c("queryParams",T(1,ae,t==null?null:t.id))}}function ce(e,o){if(e&1&&(l(0,"div",21)(1,"div",22)(2,"p",23),u(3),p()()()),e&2){let t=d(),i=t.$implicit,r=t.$index,a=d(2).$implicit;O(T(4,le,r!==a.Roles.length-1)),c("pTooltip",i.Description),s(3),$(" ",i.Name," ")}}function de(e,o){if(e&1&&_(0,ce,4,6,"div",20),e&2){let t=o.$implicit;g(t.checked?0:-1)}}function ue(e,o){if(e&1&&(l(0,"div",15)(1,"div",16)(2,"div",17)(3,"span",18),u(4),p()()(),l(5,"div",19)(6,"div",15),v(7,de,1,1,null,null,h),p()()()),e&2){let t=d().$implicit;s(4),F(t.Name),s(3),C(t==null?null:t.Roles)}}function me(e,o){if(e&1&&_(0,ue,9,1,"div",15),e&2){let t=o.$implicit;g((t==null||t.Roles==null?null:t.Roles.length)>0?0:-1)}}function fe(e,o){if(e&1&&(l(0,"div",9),v(1,me,1,1,null,null,h),p()),e&2){d();let t=x(0);s(),C(t.groups)}}var Oe=(()=>{let o=class o{constructor(){this.groupService=m(P),this.activatedRoute=m(z),this.toastr=m(V),this.route=m(H),this.group$=this.activatedRoute.queryParams.pipe(D(i=>this.groupService.getGroupsForm(i.ID).pipe(b(r=>(r.ID=i.ID,r)))),b(i=>({id:i.ID,name:i.Group.Name,groups:this.mapSelectedRoles(i.Options,i.RoleSelected),description:i.Group.Description}))),this.userEditRole=R.UserEdit,this.userDeleteRole=R.UserDelete}mapSelectedRoles(i,r){return i.map(a=>(a.Roles=a.Roles.map(n=>(n.checked=r.includes(n.ID),n)).filter(n=>n.checked),a.checked=a.Roles.some(n=>n.checked),a))}onDeleteGroup(i){confirm("Are you sure you want to delete this group?")&&this.groupService.deleteGroups([i]).subscribe(()=>{this.toastr.success("Group deleted successfully","Success"),this.route.navigate(["/menu/users/groups"])})}};o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=w({type:o,selectors:[["app-group-info"]],features:[A([P])],decls:23,vars:11,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Group Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12"],["type","text","pInputText","","placeholder","Group Name","readonly","",1,"w-100","form-control","rounded-1",2,"padding-top","12px","padding-bottom","12px","font-size","14px",3,"value"],["value","0"],["value","1"],[1,"d-flex","flex-column","row-gap-6","ps-8"],["pInputTextarea","","rows","10","placeholder","Description","readonly","",1,"w-100","form-control","rounded-1",3,"value"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/groups/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[1,"row"],[1,"col-2","border","d-flex","align-items-center","justify-content-between","border-end-0",2,"height","40px","background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100","align-items-center","gap-4"],[1,"fs-5","w-100","text-center"],[1,"col"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"class","pTooltip"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"pTooltip"],[1,"d-flex","h-100","align-items-center","gap-4","px-2"],[1,"fs-6","text-dark",2,"margin","0"]],template:function(r,a){if(r&1&&(L(0),B(1,"async"),l(2,"mainpanel",0)(3,"actions")(4,"div",1),G(5,pe,4,0,"ng-container",2)(6,se,4,3,"ng-container",2),p()(),l(7,"content")(8,"div",3)(9,"div",4)(10,"div",5),f(11,"input",6),p()(),l(12,"p-tabs",7)(13,"p-tablist")(14,"p-tab",7),u(15,"Permission"),p(),l(16,"p-tab",8),u(17,"Description"),p()(),l(18,"p-tabpanels")(19,"p-tabpanel",7),_(20,fe,3,0,"div",9),p(),l(21,"p-tabpanel",8),f(22,"textarea",10),p()()()()()()),r&2){let n=N(j(1,8,a.group$));s(2),c("headerTitle",(n==null?null:n.name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),s(3),c("ngxPermissionsOnly",a.userDeleteRole),s(),c("ngxPermissionsOnly",a.userEditRole),s(5),c("value",n==null?null:n.name),s(9),g(n?20:-1),s(2),c("value",n==null?null:n.description)}},dependencies:[U,X,re,ne,oe,ie,ee,te,Z,Y,W,Q,K,J,q],styles:["[_nghost-%COMP%] .p-tabs{--p-tabs-tab-active-color: #555555;--p-tabs-tab-color: #0976b4}[_nghost-%COMP%] .p-tabs .p-tabpanels{padding-left:0!important}[_nghost-%COMP%] .p-tabs .p-tablist-active-bar{background-color:#555!important}[_nghost-%COMP%] .p-panel .p-panel-header{display:none!important}[_nghost-%COMP%] .btn-outline-secondary{background-color:#fff;border-color:#ccc;color:#000}[_nghost-%COMP%] .btn-outline-secondary:hover{background-color:#f8f9fa;border-color:#b3b3b3;color:#000}"]});let e=o;return e})();export{Oe as GroupInfoComponent};