dealpos 25.31.0 → 25.32.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/browser/chunk-26RWIMQI.js +125 -0
  2. package/browser/chunk-2FE7KKYN.js +1 -0
  3. package/browser/{chunk-TQFSVWIT.js → chunk-2MKL5ANY.js} +1 -1
  4. package/browser/{chunk-4E6VHPVL.js → chunk-2PI2ZGEL.js} +1 -1
  5. package/browser/{chunk-SRTWXKQO.js → chunk-2PXEEOUO.js} +1 -1
  6. package/browser/{chunk-LI3G6XVH.js → chunk-2SAQDBKA.js} +1 -1
  7. package/browser/{chunk-AJLPCTQP.js → chunk-2TWP52P7.js} +1 -1
  8. package/browser/{chunk-BIFPTMSG.js → chunk-34NAGBZT.js} +1 -1
  9. package/browser/{chunk-36H32UHM.js → chunk-35BXZ4TH.js} +1 -1
  10. package/browser/{chunk-A5GF4BGA.js → chunk-35MHVXKF.js} +1 -1
  11. package/browser/{chunk-GZ37HATO.js → chunk-36E4B5DX.js} +1 -1
  12. package/browser/{chunk-27P7O3J2.js → chunk-3L47WAT5.js} +1 -1
  13. package/browser/{chunk-UM35BDBC.js → chunk-3X3O55NN.js} +1 -1
  14. package/browser/{chunk-O4R2PXCK.js → chunk-4746NLIA.js} +1 -1
  15. package/browser/{chunk-675TBQPF.js → chunk-4I5BIZRN.js} +1 -1
  16. package/browser/{chunk-JLOQTYOI.js → chunk-4IJDCXOA.js} +1 -1
  17. package/browser/{chunk-I5NNQWTT.js → chunk-4OMN7S35.js} +1 -1
  18. package/browser/chunk-4S2QZ5G3.js +1 -0
  19. package/browser/{chunk-KAD7MGDT.js → chunk-57KGIBDY.js} +1 -1
  20. package/browser/{chunk-TFCJMTMN.js → chunk-5B3M2342.js} +1 -1
  21. package/browser/{chunk-4L6JCYR5.js → chunk-5FA5XUCV.js} +3 -3
  22. package/browser/{chunk-DRXITZ6D.js → chunk-5H4KL2KJ.js} +1 -1
  23. package/browser/{chunk-ZFHEOQ6R.js → chunk-5IOF4NYT.js} +1 -1
  24. package/browser/{chunk-JKMM7DWN.js → chunk-5KITFB7J.js} +1 -1
  25. package/browser/{chunk-42WQ52HC.js → chunk-5MBI7X6Q.js} +1 -1
  26. package/browser/chunk-5S6WJQZF.js +1 -0
  27. package/browser/{chunk-JVFYE4KA.js → chunk-5VAI6GN7.js} +1 -1
  28. package/browser/{chunk-HCFNUTHB.js → chunk-5VBPLGVM.js} +1 -1
  29. package/browser/{chunk-TSWDADFF.js → chunk-5W2FAFPB.js} +1 -1
  30. package/browser/chunk-663IGHUG.js +1 -0
  31. package/browser/chunk-6J6ACQWU.js +1 -0
  32. package/browser/{chunk-RZNX7JQX.js → chunk-74Y7C2MG.js} +1 -1
  33. package/browser/{chunk-KLTEF3B6.js → chunk-75MGYBWY.js} +4 -4
  34. package/browser/{chunk-WAUVVAGQ.js → chunk-76XNVBKP.js} +1 -1
  35. package/browser/{chunk-LFO2FB2Z.js → chunk-77AT2KTD.js} +1 -1
  36. package/browser/{chunk-FCHZ7VUL.js → chunk-7CXNVAHO.js} +1 -1
  37. package/browser/chunk-7JLLV4R2.js +1 -0
  38. package/browser/{chunk-UKGYIFR2.js → chunk-7OMZTXCR.js} +1 -1
  39. package/browser/chunk-7PVGAJ73.js +1 -0
  40. package/browser/{chunk-74QGNCMB.js → chunk-7W57QQFM.js} +1 -1
  41. package/browser/{chunk-WIEZLOPZ.js → chunk-7ZF6XZWY.js} +1 -1
  42. package/browser/{chunk-JZDKPV7H.js → chunk-AGW24DIE.js} +1 -1
  43. package/browser/{chunk-2DSUXMRV.js → chunk-ALON6KSY.js} +1 -1
  44. package/browser/{chunk-I3OQPH4M.js → chunk-AMG5JSBA.js} +1 -1
  45. package/browser/{chunk-KWJ35MIH.js → chunk-AU5NSB5E.js} +3 -3
  46. package/browser/{chunk-QHABVTRX.js → chunk-AUEGBPEP.js} +1 -1
  47. package/browser/{chunk-YTOIUA3K.js → chunk-BDDIDG5F.js} +1 -1
  48. package/browser/chunk-BIFUIO7T.js +1 -0
  49. package/browser/{chunk-EI4HJP6K.js → chunk-BQUYCJJJ.js} +1 -1
  50. package/browser/chunk-BR7ZRI7I.js +1 -0
  51. package/browser/{chunk-TK743IT2.js → chunk-BTZFP6CQ.js} +1 -1
  52. package/browser/{chunk-5P2LSOX6.js → chunk-C7X4JG6F.js} +1 -1
  53. package/browser/{chunk-RI3MTWXE.js → chunk-CIEKEDPX.js} +1 -1
  54. package/browser/{chunk-KERM64H3.js → chunk-CLOYYYH3.js} +1 -1
  55. package/browser/chunk-CNMEDN2J.js +12 -0
  56. package/browser/{chunk-CLYSYGIC.js → chunk-CNYFRURV.js} +1 -1
  57. package/browser/{chunk-736IGW3M.js → chunk-CPVATKT5.js} +1 -1
  58. package/browser/chunk-CSPZYSGN.js +111 -0
  59. package/browser/{chunk-IB4OA2UP.js → chunk-D65B2CE6.js} +1 -1
  60. package/browser/chunk-D6K7GLV2.js +3 -0
  61. package/browser/{chunk-JY6RWWQL.js → chunk-DBK7DX7N.js} +1 -1
  62. package/browser/{chunk-POKWPMMW.js → chunk-DS5ZUU74.js} +1 -1
  63. package/browser/{chunk-DJDVYD6P.js → chunk-DZPKIRUW.js} +1 -1
  64. package/browser/{chunk-YJ6B4M6K.js → chunk-E3JITLPA.js} +1 -1
  65. package/browser/{chunk-4H22QACY.js → chunk-E6WSIWQW.js} +1 -1
  66. package/browser/{chunk-OHNREXII.js → chunk-EANKU65K.js} +1 -1
  67. package/browser/{chunk-F3EZEQKJ.js → chunk-EL2PFWZR.js} +1 -1
  68. package/browser/{chunk-ZGNVJTWS.js → chunk-ENRRUPSB.js} +1 -1
  69. package/browser/{chunk-MP62IGYR.js → chunk-EQ6536VC.js} +1 -1
  70. package/browser/{chunk-K7XZQCVH.js → chunk-EQETYYV4.js} +1 -1
  71. package/browser/{chunk-ANQ73VWC.js → chunk-ERF6BBPU.js} +1 -1
  72. package/browser/{chunk-CUHDJOL5.js → chunk-ERPKEAXJ.js} +1 -1
  73. package/browser/{chunk-63P7EQO4.js → chunk-FTFXCI5W.js} +1 -1
  74. package/browser/{chunk-RYFBIJBW.js → chunk-FWKNIZZ3.js} +1 -1
  75. package/browser/{chunk-LYILESBX.js → chunk-FYGGG2XY.js} +1 -1
  76. package/browser/{chunk-JI2NN53B.js → chunk-GBLD5TDU.js} +1 -1
  77. package/browser/{chunk-2WNPA6ML.js → chunk-GCGKIV7N.js} +1 -1
  78. package/browser/{chunk-YQGBGJ5U.js → chunk-GDLTEIKV.js} +1 -1
  79. package/browser/{chunk-CXYH2IZT.js → chunk-GDU5B7WH.js} +1 -1
  80. package/browser/{chunk-M3UQXSZG.js → chunk-GIBMYPUI.js} +2 -2
  81. package/browser/{chunk-QOFLU7G4.js → chunk-GQZZBFFT.js} +1 -1
  82. package/browser/{chunk-VIEUOAH2.js → chunk-GRXBVQJV.js} +1 -1
  83. package/browser/{chunk-2QMJPLEB.js → chunk-GX4UHBDK.js} +1 -1
  84. package/browser/{chunk-DPNYTL25.js → chunk-H2CBVQ37.js} +1 -1
  85. package/browser/{chunk-2SQ7MIH3.js → chunk-H73MVYHX.js} +1 -1
  86. package/browser/{chunk-7FWWTBUM.js → chunk-HDGIKSKP.js} +1 -1
  87. package/browser/{chunk-7I6FDVVN.js → chunk-HLZJPEJB.js} +1 -1
  88. package/browser/{chunk-SOEYA75P.js → chunk-HOF45FIG.js} +1 -1
  89. package/browser/{chunk-62QZ64V3.js → chunk-HWY3QH6A.js} +1 -1
  90. package/browser/{chunk-VBPW7TJ3.js → chunk-I6HQHZRF.js} +1 -1
  91. package/browser/{chunk-CZXVN3GE.js → chunk-IC6A5ZGJ.js} +1 -1
  92. package/browser/{chunk-NL7S7KQQ.js → chunk-IPABIBOI.js} +1 -1
  93. package/browser/{chunk-TT7SCPVV.js → chunk-ISRITPHN.js} +1 -1
  94. package/browser/{chunk-LBXZC5EZ.js → chunk-IXN5A6FJ.js} +1 -1
  95. package/browser/{chunk-LNLGRZBB.js → chunk-J577JGRK.js} +1 -1
  96. package/browser/{chunk-W2JKQ57Q.js → chunk-J5UNMEUP.js} +1 -1
  97. package/browser/chunk-JBDCESLL.js +1 -0
  98. package/browser/{chunk-NZ5FHQC2.js → chunk-JBHXY6BO.js} +1 -1
  99. package/browser/{chunk-LAIRKIF7.js → chunk-KFGDBHSU.js} +1 -1
  100. package/browser/{chunk-7BAJOMR7.js → chunk-KJGIGEWE.js} +1 -1
  101. package/browser/{chunk-5UTBAGIS.js → chunk-KMVWE6IR.js} +1 -1
  102. package/browser/{chunk-5Y4FSVYR.js → chunk-KNWBJFC5.js} +1 -1
  103. package/browser/{chunk-QLBIOJGM.js → chunk-KO5IVQZS.js} +1 -1
  104. package/browser/{chunk-VP27VZHP.js → chunk-KSDGRGTN.js} +1 -1
  105. package/browser/{chunk-5CUULP4V.js → chunk-KTMKLUKP.js} +1 -1
  106. package/browser/{chunk-YE5MVXZP.js → chunk-KTUSLTKU.js} +1 -1
  107. package/browser/chunk-KTYLKTKA.js +1 -0
  108. package/browser/{chunk-E5WSTFXL.js → chunk-M3PEXWHA.js} +1 -1
  109. package/browser/{chunk-QZL2N7RS.js → chunk-M55SSU2Z.js} +1 -1
  110. package/browser/{chunk-EDVO723W.js → chunk-M5TUQ4TJ.js} +1 -1
  111. package/browser/{chunk-ZMWGK26F.js → chunk-MC6ZRPRO.js} +1 -1
  112. package/browser/{chunk-GZ5O76NN.js → chunk-MKFUTZAB.js} +1 -1
  113. package/browser/{chunk-35R6HA62.js → chunk-MMQDVSYE.js} +1 -1
  114. package/browser/{chunk-3UUGLVI6.js → chunk-N5WNXBLG.js} +1 -1
  115. package/browser/{chunk-PK5RRGFE.js → chunk-N67NWGYA.js} +1 -1
  116. package/browser/{chunk-VASGWT2Y.js → chunk-N6VH67NA.js} +1 -1
  117. package/browser/{chunk-KLEBNCTU.js → chunk-NEAT432X.js} +1 -1
  118. package/browser/{chunk-EPZFCP76.js → chunk-NIOYHEMS.js} +1 -1
  119. package/browser/{chunk-5IHQESUY.js → chunk-NKQB5VVU.js} +1 -1
  120. package/browser/{chunk-65O6NGE3.js → chunk-NMEH2GFA.js} +1 -1
  121. package/browser/{chunk-G4IBZOWA.js → chunk-NVZO3MOZ.js} +1 -1
  122. package/browser/{chunk-I6JRNI2T.js → chunk-NXYSH73I.js} +1 -1
  123. package/browser/{chunk-PBTXCNEF.js → chunk-NZE6DNJW.js} +1 -1
  124. package/browser/{chunk-HQVJ5VFI.js → chunk-O3VN42VA.js} +1 -1
  125. package/browser/{chunk-7COMDF6M.js → chunk-O4T67QQ3.js} +1 -1
  126. package/browser/{chunk-EDB2BAIG.js → chunk-ONCTFURX.js} +1 -1
  127. package/browser/{chunk-KVJLJDFI.js → chunk-ONRHFWPY.js} +1 -1
  128. package/browser/{chunk-KHUH7N3D.js → chunk-OVRODHEF.js} +1 -1
  129. package/browser/chunk-OZM7HAII.js +1 -0
  130. package/browser/{chunk-W2U326WQ.js → chunk-P23T2EVP.js} +1 -1
  131. package/browser/{chunk-XHQEBHKJ.js → chunk-P26RMRRL.js} +1 -1
  132. package/browser/chunk-P3YO27X5.js +1 -0
  133. package/browser/{chunk-XOSCYHF7.js → chunk-P67FCS5T.js} +1 -1
  134. package/browser/{chunk-SZQE7PE4.js → chunk-PEI67MDS.js} +1 -1
  135. package/browser/{chunk-XUP2FY5D.js → chunk-PNVRIGOW.js} +1 -1
  136. package/browser/{chunk-SXKEJJ7X.js → chunk-Q45IFUGA.js} +1 -1
  137. package/browser/{chunk-JEV37MMI.js → chunk-QCRJA6UA.js} +1 -1
  138. package/browser/{chunk-YJVLRBSS.js → chunk-QMH4FATM.js} +1 -1
  139. package/browser/{chunk-A4ONOVQU.js → chunk-QWOCCKBV.js} +1 -1
  140. package/browser/{chunk-445Z6XZP.js → chunk-QYVR6FKS.js} +1 -1
  141. package/browser/{chunk-HD7L5UBP.js → chunk-R4BDRGWL.js} +1 -1
  142. package/browser/{chunk-37R7LYLY.js → chunk-R5NT3ETF.js} +1 -1
  143. package/browser/{chunk-3ECAJQZJ.js → chunk-R6GAAB3Z.js} +1 -1
  144. package/browser/chunk-RIGRHB27.js +16 -0
  145. package/browser/{chunk-JVLCOYIS.js → chunk-S5Y743CH.js} +1 -1
  146. package/browser/{chunk-J3O5BHB2.js → chunk-S6XWBUA5.js} +1 -1
  147. package/browser/{chunk-QIFUG6DJ.js → chunk-SDFVKBAE.js} +1 -1
  148. package/browser/{chunk-LNXXY6IT.js → chunk-SEUYLSG6.js} +1 -1
  149. package/browser/{chunk-MLD7LQUF.js → chunk-SFFD7XJW.js} +1 -1
  150. package/browser/{chunk-EGO57NLQ.js → chunk-SH6FFPNP.js} +1 -1
  151. package/browser/{chunk-NENKJMEE.js → chunk-SHUBTJHC.js} +1 -1
  152. package/browser/{chunk-MWDMUFJO.js → chunk-SJ5NQ54M.js} +1 -1
  153. package/browser/{chunk-OVWOWSSR.js → chunk-SQZWHGDQ.js} +1 -1
  154. package/browser/{chunk-B4243VJD.js → chunk-SRELAFRM.js} +1 -1
  155. package/browser/{chunk-7ECGSCQ5.js → chunk-TLVGFFQE.js} +1 -1
  156. package/browser/{chunk-PG7OVG7B.js → chunk-TTBALV7Z.js} +1 -1
  157. package/browser/chunk-TTISSB2D.js +2 -0
  158. package/browser/{chunk-B5HWZLLK.js → chunk-TU7DGC2R.js} +1 -1
  159. package/browser/{chunk-ASYK5WSN.js → chunk-TX5UVUTO.js} +1 -1
  160. package/browser/{chunk-FLAFKYDL.js → chunk-U4E4GFA3.js} +1 -1
  161. package/browser/{chunk-OHW6ADB3.js → chunk-U6AHQ7OA.js} +1 -1
  162. package/browser/{chunk-ZTAABUPH.js → chunk-U765C72H.js} +1 -1
  163. package/browser/{chunk-L6LENOKK.js → chunk-UAWD35O3.js} +1 -1
  164. package/browser/{chunk-AVTNS5RR.js → chunk-UD3ICZLV.js} +1 -1
  165. package/browser/{chunk-6ICMOVBF.js → chunk-UD7IYDOU.js} +1 -1
  166. package/browser/{chunk-QYL74IT3.js → chunk-UDN6DKAR.js} +1 -1
  167. package/browser/chunk-UP2OTHWF.js +56 -0
  168. package/browser/{chunk-PH6OCZUI.js → chunk-UUN5OBN5.js} +1 -1
  169. package/browser/{chunk-44PZNOSI.js → chunk-UWM724IJ.js} +1 -1
  170. package/browser/{chunk-FFCRLFNZ.js → chunk-UWUMG2GM.js} +1 -1
  171. package/browser/{chunk-7U4BQOYK.js → chunk-V7WABXQO.js} +1 -1
  172. package/browser/chunk-VCQRRIXP.js +1 -0
  173. package/browser/{chunk-RCUV6EEF.js → chunk-VFMAQOEX.js} +1 -1
  174. package/browser/{chunk-XTP25C6R.js → chunk-VJO7M5YW.js} +1 -1
  175. package/browser/{chunk-NUT2UJDG.js → chunk-VOJVVXFT.js} +1 -1
  176. package/browser/{chunk-H4ZARERB.js → chunk-VTDILVPK.js} +1 -1
  177. package/browser/{chunk-I5GUKU6V.js → chunk-VUVNZP6V.js} +1 -1
  178. package/browser/{chunk-2TYLJYVP.js → chunk-VWM4STKR.js} +1 -1
  179. package/browser/{chunk-XZP4NVQ2.js → chunk-W6YT427L.js} +1 -1
  180. package/browser/{chunk-S3THTBYH.js → chunk-WMDD6KTG.js} +1 -1
  181. package/browser/{chunk-D4LTPRFT.js → chunk-WORW36BL.js} +1 -1
  182. package/browser/{chunk-LPQK2QMJ.js → chunk-WROWBLUN.js} +1 -1
  183. package/browser/{chunk-74HPFPSG.js → chunk-WULI4TL4.js} +1 -1
  184. package/browser/{chunk-NEEN2JO2.js → chunk-WUSKRV4R.js} +1 -1
  185. package/browser/{chunk-B6PO2SMO.js → chunk-WYYDJSSS.js} +1 -1
  186. package/browser/{chunk-5P4BOCQJ.js → chunk-X3ZDNOUY.js} +1 -1
  187. package/browser/{chunk-J7PZTSPK.js → chunk-X6OU5HV5.js} +1 -1
  188. package/browser/{chunk-AHJTCZJX.js → chunk-X7I2U4GR.js} +2 -2
  189. package/browser/{chunk-RQMSV2NG.js → chunk-X7J7XCND.js} +1 -1
  190. package/browser/{chunk-DZEEABI4.js → chunk-XA77ZHST.js} +1 -1
  191. package/browser/{chunk-OODLC64P.js → chunk-XBTVMQMS.js} +1 -1
  192. package/browser/{chunk-GJBRFK6B.js → chunk-Y2E4CRUL.js} +1 -1
  193. package/browser/{chunk-T6VCMSPK.js → chunk-Y46SSCQW.js} +1 -1
  194. package/browser/{chunk-RASGTR5V.js → chunk-Y6IBDGTZ.js} +1 -1
  195. package/browser/{chunk-5Y3O4QKE.js → chunk-YBH7C53G.js} +1 -1
  196. package/browser/{chunk-74GPSGNU.js → chunk-YCXC47GN.js} +1 -1
  197. package/browser/{chunk-KGE6Y7J2.js → chunk-YF53S2OS.js} +1 -1
  198. package/browser/{chunk-WFJOV35Q.js → chunk-YF5Z2Q2D.js} +1 -1
  199. package/browser/{chunk-A4OW2P7U.js → chunk-YH6FQJMF.js} +12 -12
  200. package/browser/{chunk-SIERVKA4.js → chunk-YQM3WRXG.js} +1 -1
  201. package/browser/{chunk-GXRCWDD7.js → chunk-YWYXEZ6N.js} +1 -1
  202. package/browser/{chunk-IKSZZPR3.js → chunk-YYZQJJ5E.js} +1 -1
  203. package/browser/{chunk-PRP3IQBW.js → chunk-YZYV6OLZ.js} +1 -1
  204. package/browser/{chunk-L3IX2MLE.js → chunk-Z5E7LHAD.js} +1 -1
  205. package/browser/{chunk-3HDQJYUV.js → chunk-ZB4GWUQV.js} +1 -1
  206. package/browser/{chunk-2EYD5MKK.js → chunk-ZPZGDWV2.js} +1 -1
  207. package/browser/{chunk-U6ZE6JHA.js → chunk-ZQ36MGN4.js} +1 -1
  208. package/browser/chunk-ZTCHNGR5.js +1 -0
  209. package/browser/chunk-ZVAQS5G4.js +1 -0
  210. package/browser/{chunk-PN3QIZQ5.js → chunk-ZYLRH43R.js} +1 -1
  211. package/browser/index.html +3 -3
  212. package/browser/{main-U255RM4T.js → main-ZYWB664N.js} +2 -2
  213. package/package.json +1 -1
  214. package/browser/chunk-4PHMOCJI.js +0 -12
  215. package/browser/chunk-B5FODXLM.js +0 -1
  216. package/browser/chunk-BNDKRWDF.js +0 -125
  217. package/browser/chunk-D4JS2BCB.js +0 -2
  218. package/browser/chunk-DCBD5TOU.js +0 -1
  219. package/browser/chunk-E25ISMCV.js +0 -1
  220. package/browser/chunk-FBAQ5XLU.js +0 -16
  221. package/browser/chunk-G3QUNMLW.js +0 -111
  222. package/browser/chunk-G42IY5XQ.js +0 -1
  223. package/browser/chunk-GUTX2YJ3.js +0 -56
  224. package/browser/chunk-HFEUPDVD.js +0 -1
  225. package/browser/chunk-JZEWRW27.js +0 -1
  226. package/browser/chunk-MQ3LJATT.js +0 -1
  227. package/browser/chunk-N5NCEG3Q.js +0 -1
  228. package/browser/chunk-NGYLX3KZ.js +0 -1
  229. package/browser/chunk-P4FK7Z5U.js +0 -1
  230. package/browser/chunk-T6QV2HWE.js +0 -1
  231. package/browser/chunk-TQZEUCAO.js +0 -1
  232. package/browser/chunk-UICK73QL.js +0 -3
  233. package/browser/chunk-VZYI66S2.js +0 -1
  234. package/browser/chunk-WBNC22YT.js +0 -1
  235. package/browser/chunk-X67XFL3D.js +0 -1
  236. package/browser/chunk-XM4DGUKE.js +0 -1
@@ -1,2 +1,2 @@
1
- import{fa as w}from"./chunk-JLOQTYOI.js";import{Ca as x,Ha as _,I as M,Ka as P,Kc as j,N as T,Qc as S,R as A,Sb as W,Tb as $,Ua as d,X as b,a as R,fa as v,ja as L,ka as O,kb as D,la as F,lb as U,ma as g,na as l,o as u,p as y,rd as V,t as m,ub as H,vd as B,xb as z,z as N,zb as k}from"./chunk-EDB2BAIG.js";var C;function Z(){if(C===void 0&&(C=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(C=i.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return C}function p(i){return Z()?.createHTML(i)||i}function Y(i){return Error(`Unable to find icon with the name "${i}"`)}function tt(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function q(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function G(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var c=class{url;svgText;options;svgElement;constructor(a,t,e){this.url=a,this.svgText=t,this.options=e}},K=(()=>{class i{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(t,e,n,o){this._httpClient=t,this._sanitizer=e,this._errorHandler=o,this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,o){return this._addSvgIconConfig(t,e,new c(n,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,o){let r=this._sanitizer.sanitize(d.HTML,n);if(!r)throw G(n);let s=p(r);return this._addSvgIconConfig(t,e,new c("",s,o))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new c(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){let o=this._sanitizer.sanitize(d.HTML,e);if(!o)throw G(e);let r=p(o);return this._addSvgIconSetConfig(t,new c("",r,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let e=this._sanitizer.sanitize(d.RESOURCE_URL,t);if(!e)throw q(t);let n=this._cachedIconsByUrl.get(e);return n?u(E(n)):this._loadSvgIconFromConfig(new c(t,null)).pipe(v(o=>this._cachedIconsByUrl.set(e,o)),m(o=>E(o)))}getNamedSvgIcon(t,e=""){let n=J(e,t),o=this._svgIconConfigs.get(n);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(e,t),o)return this._svgIconConfigs.set(n,o),this._getSvgFromConfig(o);let r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):y(Y(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?u(E(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(m(e=>E(e)))}_getSvgFromIconSetConfigs(t,e){let n=this._extractIconWithNameFromAnySet(t,e);if(n)return u(n);let o=e.filter(r=>!r.svgText).map(r=>this._loadSvgIconSetFromConfig(r).pipe(M(s=>{let h=`Loading icon set URL: ${this._sanitizer.sanitize(d.RESOURCE_URL,r.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(h)),u(null)})));return N(o).pipe(m(()=>{let r=this._extractIconWithNameFromAnySet(t,e);if(!r)throw Y(t);return r}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){let r=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(r,t,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(v(e=>t.svgText=e),m(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?u(null):this._fetchIcon(t).pipe(v(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){let o=t.querySelector(`[id="${e}"]`);if(!o)return null;let r=o.cloneNode(!0);if(r.removeAttribute("id"),r.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(r,n);if(r.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(r),n);let s=this._svgElementFromString(p("<svg></svg>"));return s.appendChild(r),this._setSvgAttributes(s,n)}_svgElementFromString(t){let e=this._document.createElement("DIV");e.innerHTML=t;let n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){let e=this._svgElementFromString(p("<svg></svg>")),n=t.attributes;for(let o=0;o<n.length;o++){let{name:r,value:s}=n[o];r!=="id"&&e.setAttribute(r,s)}for(let o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[o].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){let{url:e,options:n}=t,o=n?.withCredentials??!1;if(!this._httpClient)throw tt();if(e==null)throw Error(`Cannot fetch icon from URL "${e}".`);let r=this._sanitizer.sanitize(d.RESOURCE_URL,e);if(!r)throw q(e);let s=this._inProgressUrlFetches.get(r);if(s)return s;let f=this._httpClient.get(r,{responseType:"text",withCredentials:o}).pipe(m(h=>p(h)),A(()=>this._inProgressUrlFetches.delete(r)),b());return this._inProgressUrlFetches.set(r,f),f}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(J(t,e),n),this}_addSvgIconSetConfig(t,e){let n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){let e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;n<this._resolvers.length;n++){let o=this._resolvers[n](e,t);if(o)return et(o)?new c(o.url,null,o.options):new c(o,null)}}static \u0275fac=function(e){return new(e||i)(g(V,8),g(B),g(S,8),g(_))};static \u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function E(i){return i.cloneNode(!0)}function J(i,a){return i+":"+a}function et(i){return!!(i.url&&i.options)}var nt=["*"],ot=new F("MAT_ICON_DEFAULT_OPTIONS"),rt=new F("mat-icon-location",{providedIn:"root",factory:it});function it(){let i=l(S),a=i?i.location:null;return{getPathname:()=>a?a.pathname+a.search:""}}var Q=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],st=Q.map(i=>`[${i}]`).join(", "),at=/^url\(['"]?#(.*?)['"]?\)$/,At=(()=>{class i{_elementRef=l(P);_iconRegistry=l(K);_location=l(rt);_errorHandler=l(_);_defaultColor;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(t){let e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(t){let e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=R.EMPTY;constructor(){let t=l(new x("aria-hidden"),{optional:!0}),e=l(ot,{optional:!0});e&&(e.color&&(this.color=this._defaultColor=e.color),e.fontSet&&(this.fontSet=e.fontSet)),t||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let e=this._location.getPathname();this._previousPath=e,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(e),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){let n=t.childNodes[e];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,e=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>t.classList.remove(n)),e.forEach(n=>t.classList.add(n)),this._previousFontSetClass=e,this.fontIcon!==this._previousFontIconClass&&!e.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let e=this._elementsWithExternalReferences;e&&e.forEach((n,o)=>{n.forEach(r=>{o.setAttribute(r.name,`url('${t}#${r.value}')`)})})}_cacheChildrenWithExternalReferences(t){let e=t.querySelectorAll(st),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<e.length;o++)Q.forEach(r=>{let s=e[o],f=s.getAttribute(r),h=f?f.match(at):null;if(h){let I=n.get(s);I||(I=[],n.set(s,I)),I.push({name:r,value:h[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(T(1)).subscribe(o=>this._setSvgElement(o),o=>{let r=`Error retrieving icon ${e}:${n}! ${o.message}`;this._errorHandler.handleError(new Error(r))})}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=D({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(e,n){e&2&&(H("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),k(n.color?"mat-"+n.color:""),z("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",j],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:nt,decls:1,vars:0,template:function(e,n){e&1&&(W(),$(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
1
+ import{fa as w}from"./chunk-4IJDCXOA.js";import{Ca as x,Ha as _,I as M,Ka as P,Kc as j,N as T,Qc as S,R as A,Sb as W,Tb as $,Ua as d,X as b,a as R,fa as v,ja as L,ka as O,kb as D,la as F,lb as U,ma as g,na as l,o as u,p as y,rd as V,t as m,ub as H,vd as B,xb as z,z as N,zb as k}from"./chunk-ONCTFURX.js";var C;function Z(){if(C===void 0&&(C=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(C=i.trustedTypes.createPolicy("angular#components",{createHTML:a=>a}))}return C}function p(i){return Z()?.createHTML(i)||i}function Y(i){return Error(`Unable to find icon with the name "${i}"`)}function tt(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function q(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function G(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var c=class{url;svgText;options;svgElement;constructor(a,t,e){this.url=a,this.svgText=t,this.options=e}},K=(()=>{class i{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(t,e,n,o){this._httpClient=t,this._sanitizer=e,this._errorHandler=o,this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,o){return this._addSvgIconConfig(t,e,new c(n,null,o))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,e,n,o){let r=this._sanitizer.sanitize(d.HTML,n);if(!r)throw G(n);let s=p(r);return this._addSvgIconConfig(t,e,new c("",s,o))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new c(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){let o=this._sanitizer.sanitize(d.HTML,e);if(!o)throw G(e);let r=p(o);return this._addSvgIconSetConfig(t,new c("",r,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let e=this._sanitizer.sanitize(d.RESOURCE_URL,t);if(!e)throw q(t);let n=this._cachedIconsByUrl.get(e);return n?u(E(n)):this._loadSvgIconFromConfig(new c(t,null)).pipe(v(o=>this._cachedIconsByUrl.set(e,o)),m(o=>E(o)))}getNamedSvgIcon(t,e=""){let n=J(e,t),o=this._svgIconConfigs.get(n);if(o)return this._getSvgFromConfig(o);if(o=this._getIconConfigFromResolvers(e,t),o)return this._svgIconConfigs.set(n,o),this._getSvgFromConfig(o);let r=this._iconSetConfigs.get(e);return r?this._getSvgFromIconSetConfigs(t,r):y(Y(n))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?u(E(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(m(e=>E(e)))}_getSvgFromIconSetConfigs(t,e){let n=this._extractIconWithNameFromAnySet(t,e);if(n)return u(n);let o=e.filter(r=>!r.svgText).map(r=>this._loadSvgIconSetFromConfig(r).pipe(M(s=>{let h=`Loading icon set URL: ${this._sanitizer.sanitize(d.RESOURCE_URL,r.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(h)),u(null)})));return N(o).pipe(m(()=>{let r=this._extractIconWithNameFromAnySet(t,e);if(!r)throw Y(t);return r}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){let o=e[n];if(o.svgText&&o.svgText.toString().indexOf(t)>-1){let r=this._svgElementFromConfig(o),s=this._extractSvgIconFromSet(r,t,o.options);if(s)return s}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(v(e=>t.svgText=e),m(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?u(null):this._fetchIcon(t).pipe(v(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){let o=t.querySelector(`[id="${e}"]`);if(!o)return null;let r=o.cloneNode(!0);if(r.removeAttribute("id"),r.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(r,n);if(r.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(r),n);let s=this._svgElementFromString(p("<svg></svg>"));return s.appendChild(r),this._setSvgAttributes(s,n)}_svgElementFromString(t){let e=this._document.createElement("DIV");e.innerHTML=t;let n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){let e=this._svgElementFromString(p("<svg></svg>")),n=t.attributes;for(let o=0;o<n.length;o++){let{name:r,value:s}=n[o];r!=="id"&&e.setAttribute(r,s)}for(let o=0;o<t.childNodes.length;o++)t.childNodes[o].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[o].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){let{url:e,options:n}=t,o=n?.withCredentials??!1;if(!this._httpClient)throw tt();if(e==null)throw Error(`Cannot fetch icon from URL "${e}".`);let r=this._sanitizer.sanitize(d.RESOURCE_URL,e);if(!r)throw q(e);let s=this._inProgressUrlFetches.get(r);if(s)return s;let f=this._httpClient.get(r,{responseType:"text",withCredentials:o}).pipe(m(h=>p(h)),A(()=>this._inProgressUrlFetches.delete(r)),b());return this._inProgressUrlFetches.set(r,f),f}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(J(t,e),n),this}_addSvgIconSetConfig(t,e){let n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){let e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}_getIconConfigFromResolvers(t,e){for(let n=0;n<this._resolvers.length;n++){let o=this._resolvers[n](e,t);if(o)return et(o)?new c(o.url,null,o.options):new c(o,null)}}static \u0275fac=function(e){return new(e||i)(g(V,8),g(B),g(S,8),g(_))};static \u0275prov=L({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function E(i){return i.cloneNode(!0)}function J(i,a){return i+":"+a}function et(i){return!!(i.url&&i.options)}var nt=["*"],ot=new F("MAT_ICON_DEFAULT_OPTIONS"),rt=new F("mat-icon-location",{providedIn:"root",factory:it});function it(){let i=l(S),a=i?i.location:null;return{getPathname:()=>a?a.pathname+a.search:""}}var Q=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],st=Q.map(i=>`[${i}]`).join(", "),at=/^url\(['"]?#(.*?)['"]?\)$/,At=(()=>{class i{_elementRef=l(P);_iconRegistry=l(K);_location=l(rt);_errorHandler=l(_);_defaultColor;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(t){let e=this._cleanupFontValue(t);e!==this._fontSet&&(this._fontSet=e,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(t){let e=this._cleanupFontValue(t);e!==this._fontIcon&&(this._fontIcon=e,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=R.EMPTY;constructor(){let t=l(new x("aria-hidden"),{optional:!0}),e=l(ot,{optional:!0});e&&(e.color&&(this.color=this._defaultColor=e.color),e.fontSet&&(this.fontSet=e.fontSet)),t||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let e=this._location.getPathname();e!==this._previousPath&&(this._previousPath=e,this._prependPathToReferences(e))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let e=this._location.getPathname();this._previousPath=e,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(e),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){let n=t.childNodes[e];(n.nodeType!==1||n.nodeName.toLowerCase()==="svg")&&n.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,e=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(n=>n.length>0);this._previousFontSetClass.forEach(n=>t.classList.remove(n)),e.forEach(n=>t.classList.add(n)),this._previousFontSetClass=e,this.fontIcon!==this._previousFontIconClass&&!e.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let e=this._elementsWithExternalReferences;e&&e.forEach((n,o)=>{n.forEach(r=>{o.setAttribute(r.name,`url('${t}#${r.value}')`)})})}_cacheChildrenWithExternalReferences(t){let e=t.querySelectorAll(st),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let o=0;o<e.length;o++)Q.forEach(r=>{let s=e[o],f=s.getAttribute(r),h=f?f.match(at):null;if(h){let I=n.get(s);I||(I=[],n.set(s,I)),I.push({name:r,value:h[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[e,n]=this._splitIconName(t);e&&(this._svgNamespace=e),n&&(this._svgName=n),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(n,e).pipe(T(1)).subscribe(o=>this._setSvgElement(o),o=>{let r=`Error retrieving icon ${e}:${n}! ${o.message}`;this._errorHandler.handleError(new Error(r))})}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=D({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(e,n){e&2&&(H("data-mat-icon-type",n._usingFontIcon()?"font":"svg")("data-mat-icon-name",n._svgName||n.fontIcon)("data-mat-icon-namespace",n._svgNamespace||n.fontSet)("fontIcon",n._usingFontIcon()?n.fontIcon:null),k(n.color?"mat-"+n.color:""),z("mat-icon-inline",n.inline)("mat-icon-no-color",n.color!=="primary"&&n.color!=="accent"&&n.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",j],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:nt,decls:1,vars:0,template:function(e,n){e&1&&(W(),$(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
2
2
  `],encapsulation:2,changeDetection:0})}return i})(),bt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=U({type:i});static \u0275inj=O({imports:[w,w]})}return i})();export{At as a,bt as b};
@@ -1,4 +1,4 @@
1
- import{a as Ut}from"./chunk-DCBD5TOU.js";import{b as it,c as rt,d as Qt}from"./chunk-QOFLU7G4.js";import{a as Zt,b as Xt}from"./chunk-GXRCWDD7.js";import{a as Gt,k as $t,l as nt}from"./chunk-5UTBAGIS.js";import{F as $,K as Lt,M as tt,N as Bt,R as at,S as Ht,T as zt,W as Kt,_ as Le,ba as Wt,d as Je,da as jt,f as L,fa as qt,g as Yt,m as et,n as pe,o as Ne,v as Pt,x as Nt,y as ue,z as W}from"./chunk-JLOQTYOI.js";import{a as Ye,d as Pe,e as he,f as Tt,g as Ft,k as Rt,t as Ot}from"./chunk-LNLGRZBB.js";import{$ as Ce,$a as l,$b as k,Ba as Se,Ca as At,D as ne,Db as de,E as Ct,Fa as p,Ga as qe,Gb as Ie,Gc as Vt,Hb as xe,Ib as d,Ic as T,Jb as c,Ka as z,Kb as I,Kc as R,Ma as Ge,N as wt,Ob as le,Pb as Te,Qa as Mt,Qb as g,Qc as It,Rb as u,Sb as ce,Ta as Qe,Tb as Q,Uc as xt,Yb as Et,Zb as x,_b as M,a as A,ab as kt,cb as Ue,d as S,eb as St,ec as D,fb as $e,fc as F,gc as U,hc as Xe,ia as We,ja as O,jc as Fe,ka as we,kb as C,kc as Re,la as G,lb as Ee,lc as Oe,ma as Ae,mb as E,na as o,nc as N,o as ve,ob as K,pa as Me,qa as ke,qb as P,ua as Y,ub as b,va as y,vb as _,wa as v,wb as Ve,xa as se,xb as V,ya as je,za as oe,zb as Ze}from"./chunk-EDB2BAIG.js";import{a as yt,b as vt}from"./chunk-7DCB7DB2.js";var st=new G("MAT_DATE_LOCALE",{providedIn:"root",factory:Da});function Da(){return o(Vt)}var Z="Method not implemented",m=class{locale;_localeChanges=new S;localeChanges=this._localeChanges;setTime(s,e,a,t){throw new Error(Z)}getHours(s){throw new Error(Z)}getMinutes(s){throw new Error(Z)}getSeconds(s){throw new Error(Z)}parseTime(s,e){throw new Error(Z)}addSeconds(s,e){throw new Error(Z)}getValidDateOrNull(s){return this.isDateInstance(s)&&this.isValid(s)?s:null}deserialize(s){return s==null||this.isDateInstance(s)&&this.isValid(s)?s:this.invalid()}setLocale(s){this.locale=s,this._localeChanges.next()}compareDate(s,e){return this.getYear(s)-this.getYear(e)||this.getMonth(s)-this.getMonth(e)||this.getDate(s)-this.getDate(e)}compareTime(s,e){return this.getHours(s)-this.getHours(e)||this.getMinutes(s)-this.getMinutes(e)||this.getSeconds(s)-this.getSeconds(e)}sameDate(s,e){if(s&&e){let a=this.isValid(s),t=this.isValid(e);return a&&t?!this.compareDate(s,e):a==t}return s==e}sameTime(s,e){if(s&&e){let a=this.isValid(s),t=this.isValid(e);return a&&t?!this.compareTime(s,e):a==t}return s==e}clampDate(s,e,a){return e&&this.compareDate(s,e)<0?e:a&&this.compareDate(s,a)>0?a:s}},B=new G("mat-date-formats");var va=["mat-calendar-body",""];function Ca(i,s){return this._trackRow(s)}var sa=(i,s)=>s.id;function wa(i,s){if(i&1&&(d(0,"tr",0)(1,"td",3),D(2),c()()),i&2){let e=u();l(),Ve("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),b("colspan",e.numCols),l(),U(" ",e.label," ")}}function Aa(i,s){if(i&1&&(d(0,"td",3),D(1),c()),i&2){let e=u(2);Ve("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),b("colspan",e._firstRowOffset),l(),U(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Ma(i,s){if(i&1){let e=le();d(0,"td",6)(1,"button",7),g("click",function(t){let r=y(e).$implicit,n=u(2);return v(n._cellClicked(r,t))})("focus",function(t){let r=y(e).$implicit,n=u(2);return v(n._emitActiveDateChange(r,t))}),d(2,"span",8),D(3),c(),I(4,"span",9),c()()}if(i&2){let e=s.$implicit,a=s.$index,t=u().$index,r=u();Ve("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),b("data-mat-row",t)("data-mat-col",a),l(),V("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(t,a))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,t,a))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,t,a))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),_("ngClass",e.cssClasses)("tabindex",r._isActiveCell(t,a)?0:-1),b("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),l(),V("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),l(),U(" ",e.displayValue," ")}}function ka(i,s){if(i&1&&(d(0,"tr",1),P(1,Aa,2,6,"td",4),Ie(2,Ma,5,48,"td",5,sa),c()),i&2){let e=s.$implicit,a=s.$index,t=u();l(),de(a===0&&t._firstRowOffset?1:-1),l(),xe(e)}}function Sa(i,s){if(i&1&&(d(0,"th",2)(1,"span",6),D(2),c(),d(3,"span",3),D(4),c()()),i&2){let e=s.$implicit;l(2),F(e.long),l(2),F(e.narrow)}}var oa=["*"];function Ea(i,s){}function Va(i,s){if(i&1){let e=le();d(0,"mat-month-view",4),Oe("activeDateChange",function(t){y(e);let r=u();return Re(r.activeDate,t)||(r.activeDate=t),v(t)}),g("_userSelection",function(t){y(e);let r=u();return v(r._dateSelected(t))})("dragStarted",function(t){y(e);let r=u();return v(r._dragStarted(t))})("dragEnded",function(t){y(e);let r=u();return v(r._dragEnded(t))}),c()}if(i&2){let e=u();Fe("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 Ia(i,s){if(i&1){let e=le();d(0,"mat-year-view",5),Oe("activeDateChange",function(t){y(e);let r=u();return Re(r.activeDate,t)||(r.activeDate=t),v(t)}),g("monthSelected",function(t){y(e);let r=u();return v(r._monthSelectedInYearView(t))})("selectedChange",function(t){y(e);let r=u();return v(r._goToDateInView(t,"month"))}),c()}if(i&2){let e=u();Fe("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function xa(i,s){if(i&1){let e=le();d(0,"mat-multi-year-view",6),Oe("activeDateChange",function(t){y(e);let r=u();return Re(r.activeDate,t)||(r.activeDate=t),v(t)}),g("yearSelected",function(t){y(e);let r=u();return v(r._yearSelectedInMultiYearView(t))})("selectedChange",function(t){y(e);let r=u();return v(r._goToDateInView(t,"year"))}),c()}if(i&2){let e=u();Fe("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ta(i,s){}var Fa=["button"],Ra=[[["","matDatepickerToggleIcon",""]]],Oa=["[matDatepickerToggleIcon]"];function Ya(i,s){i&1&&(se(),d(0,"svg",2),I(1,"path",3),c())}var Pa=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Na=["input[matStartDate]","input[matEndDate]"];function La(i,s){i&1&&(d(0,"div",0),Q(1),c())}var re=(()=>{class i{changes=new S;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||i)};static \u0275prov=O({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Ba=0,ge=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Ba++;constructor(s,e,a,t,r={},n=s,h){this.value=s,this.displayValue=e,this.ariaLabel=a,this.enabled=t,this.cssClasses=r,this.compareValue=n,this.rawValue=h}},Ha={passive:!1,capture:!0},Be={passive:!0,capture:!0},Jt={passive:!0},te=(()=>{class i{_elementRef=o(z);_ngZone=o(qe);_platform=o(Yt);_intl=o(re);_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 p;previewChange=new p;activeDateChange=new p;dragStarted=new p;dragEnded=new p;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=o(Se);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=o(Ue),a=o(ue);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-"),o(pe).load(Gt),this._ngZone.runOutsideAngular(()=>{let t=this._elementRef.nativeElement,r=[L(e,t,"touchmove",this._touchmoveHandler,Ha),L(e,t,"mouseenter",this._enterHandler,Be),L(e,t,"focus",this._enterHandler,Be),L(e,t,"mouseleave",this._leaveHandler,Be),L(e,t,"blur",this._leaveHandler,Be),L(e,t,"mousedown",this._mousedownHandler,Jt),L(e,t,"touchstart",this._mousedownHandler,Jt)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_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:r}=this;(e.rows||a)&&(this._firstRowOffset=t&&t.length&&t[0].length?r-t[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}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){Qe(()=>{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 lt(e,this.startValue,this.endValue)}_isRangeEnd(e){return ct(e,this.startValue,this.endValue)}_isInRange(e){return ht(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return lt(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,t){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[a][t-1];if(!r){let n=this.rows[a-1];r=n&&n[n.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,a,t){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[a][t+1];if(!r){let n=this.rows[a+1];r=n&&n[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return ct(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return ht(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return lt(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ct(e,this.previewStart,this.previewEnd)}_isInPreview(e){return ht(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=ea(e),t=a?this._getCellFromElement(a):null;a!==e.target&&(this._didDragSinceMouseDown=!0),dt(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=dt(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=ea(e);a&&this._mouseupHandler({target:a})};_getCellFromElement(e){let a=dt(e);if(a){let t=a.getAttribute("data-mat-row"),r=a.getAttribute("data-mat-col");if(t&&r)return this.rows[parseInt(t)][parseInt(r)]}return null}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=C({type:i,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:[Y],attrs:va,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&&(P(0,wa,3,6,"tr",0),Ie(1,ka,4,1,"tr",1,Ca,!0),d(3,"span",2),D(4),c(),d(5,"span",2),D(6),c(),d(7,"span",2),D(8),c(),d(9,"span",2),D(10),c()),a&2&&(de(t._firstRowOffset<t.labelMinRequiredCells?0:-1),l(),xe(t.rows),l(2),_("id",t._startDateLabelId),l(),U(" ",t.startDateAccessibleName,`
1
+ import{a as Ut}from"./chunk-5S6WJQZF.js";import{b as it,c as rt,d as Qt}from"./chunk-GQZZBFFT.js";import{a as Zt,b as Xt}from"./chunk-YWYXEZ6N.js";import{a as Gt,k as $t,l as nt}from"./chunk-KMVWE6IR.js";import{F as $,K as Lt,M as tt,N as Bt,R as at,S as Ht,T as zt,W as Kt,_ as Le,ba as Wt,d as Je,da as jt,f as L,fa as qt,g as Yt,m as et,n as pe,o as Ne,v as Pt,x as Nt,y as ue,z as W}from"./chunk-4IJDCXOA.js";import{a as Ye,d as Pe,e as he,f as Tt,g as Ft,k as Rt,t as Ot}from"./chunk-J577JGRK.js";import{$ as Ce,$a as l,$b as k,Ba as Se,Ca as At,D as ne,Db as de,E as Ct,Fa as p,Ga as qe,Gb as Ie,Gc as Vt,Hb as xe,Ib as d,Ic as T,Jb as c,Ka as z,Kb as I,Kc as R,Ma as Ge,N as wt,Ob as le,Pb as Te,Qa as Mt,Qb as g,Qc as It,Rb as u,Sb as ce,Ta as Qe,Tb as Q,Uc as xt,Yb as Et,Zb as x,_b as M,a as A,ab as kt,cb as Ue,d as S,eb as St,ec as D,fb as $e,fc as F,gc as U,hc as Xe,ia as We,ja as O,jc as Fe,ka as we,kb as C,kc as Re,la as G,lb as Ee,lc as Oe,ma as Ae,mb as E,na as o,nc as N,o as ve,ob as K,pa as Me,qa as ke,qb as P,ua as Y,ub as b,va as y,vb as _,wa as v,wb as Ve,xa as se,xb as V,ya as je,za as oe,zb as Ze}from"./chunk-ONCTFURX.js";import{a as yt,b as vt}from"./chunk-7DCB7DB2.js";var st=new G("MAT_DATE_LOCALE",{providedIn:"root",factory:Da});function Da(){return o(Vt)}var Z="Method not implemented",m=class{locale;_localeChanges=new S;localeChanges=this._localeChanges;setTime(s,e,a,t){throw new Error(Z)}getHours(s){throw new Error(Z)}getMinutes(s){throw new Error(Z)}getSeconds(s){throw new Error(Z)}parseTime(s,e){throw new Error(Z)}addSeconds(s,e){throw new Error(Z)}getValidDateOrNull(s){return this.isDateInstance(s)&&this.isValid(s)?s:null}deserialize(s){return s==null||this.isDateInstance(s)&&this.isValid(s)?s:this.invalid()}setLocale(s){this.locale=s,this._localeChanges.next()}compareDate(s,e){return this.getYear(s)-this.getYear(e)||this.getMonth(s)-this.getMonth(e)||this.getDate(s)-this.getDate(e)}compareTime(s,e){return this.getHours(s)-this.getHours(e)||this.getMinutes(s)-this.getMinutes(e)||this.getSeconds(s)-this.getSeconds(e)}sameDate(s,e){if(s&&e){let a=this.isValid(s),t=this.isValid(e);return a&&t?!this.compareDate(s,e):a==t}return s==e}sameTime(s,e){if(s&&e){let a=this.isValid(s),t=this.isValid(e);return a&&t?!this.compareTime(s,e):a==t}return s==e}clampDate(s,e,a){return e&&this.compareDate(s,e)<0?e:a&&this.compareDate(s,a)>0?a:s}},B=new G("mat-date-formats");var va=["mat-calendar-body",""];function Ca(i,s){return this._trackRow(s)}var sa=(i,s)=>s.id;function wa(i,s){if(i&1&&(d(0,"tr",0)(1,"td",3),D(2),c()()),i&2){let e=u();l(),Ve("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),b("colspan",e.numCols),l(),U(" ",e.label," ")}}function Aa(i,s){if(i&1&&(d(0,"td",3),D(1),c()),i&2){let e=u(2);Ve("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),b("colspan",e._firstRowOffset),l(),U(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function Ma(i,s){if(i&1){let e=le();d(0,"td",6)(1,"button",7),g("click",function(t){let r=y(e).$implicit,n=u(2);return v(n._cellClicked(r,t))})("focus",function(t){let r=y(e).$implicit,n=u(2);return v(n._emitActiveDateChange(r,t))}),d(2,"span",8),D(3),c(),I(4,"span",9),c()()}if(i&2){let e=s.$implicit,a=s.$index,t=u().$index,r=u();Ve("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),b("data-mat-row",t)("data-mat-col",a),l(),V("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(t,a))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,t,a))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,t,a))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),_("ngClass",e.cssClasses)("tabindex",r._isActiveCell(t,a)?0:-1),b("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),l(),V("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),l(),U(" ",e.displayValue," ")}}function ka(i,s){if(i&1&&(d(0,"tr",1),P(1,Aa,2,6,"td",4),Ie(2,Ma,5,48,"td",5,sa),c()),i&2){let e=s.$implicit,a=s.$index,t=u();l(),de(a===0&&t._firstRowOffset?1:-1),l(),xe(e)}}function Sa(i,s){if(i&1&&(d(0,"th",2)(1,"span",6),D(2),c(),d(3,"span",3),D(4),c()()),i&2){let e=s.$implicit;l(2),F(e.long),l(2),F(e.narrow)}}var oa=["*"];function Ea(i,s){}function Va(i,s){if(i&1){let e=le();d(0,"mat-month-view",4),Oe("activeDateChange",function(t){y(e);let r=u();return Re(r.activeDate,t)||(r.activeDate=t),v(t)}),g("_userSelection",function(t){y(e);let r=u();return v(r._dateSelected(t))})("dragStarted",function(t){y(e);let r=u();return v(r._dragStarted(t))})("dragEnded",function(t){y(e);let r=u();return v(r._dragEnded(t))}),c()}if(i&2){let e=u();Fe("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 Ia(i,s){if(i&1){let e=le();d(0,"mat-year-view",5),Oe("activeDateChange",function(t){y(e);let r=u();return Re(r.activeDate,t)||(r.activeDate=t),v(t)}),g("monthSelected",function(t){y(e);let r=u();return v(r._monthSelectedInYearView(t))})("selectedChange",function(t){y(e);let r=u();return v(r._goToDateInView(t,"month"))}),c()}if(i&2){let e=u();Fe("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function xa(i,s){if(i&1){let e=le();d(0,"mat-multi-year-view",6),Oe("activeDateChange",function(t){y(e);let r=u();return Re(r.activeDate,t)||(r.activeDate=t),v(t)}),g("yearSelected",function(t){y(e);let r=u();return v(r._yearSelectedInMultiYearView(t))})("selectedChange",function(t){y(e);let r=u();return v(r._goToDateInView(t,"year"))}),c()}if(i&2){let e=u();Fe("activeDate",e.activeDate),_("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function Ta(i,s){}var Fa=["button"],Ra=[[["","matDatepickerToggleIcon",""]]],Oa=["[matDatepickerToggleIcon]"];function Ya(i,s){i&1&&(se(),d(0,"svg",2),I(1,"path",3),c())}var Pa=[[["input","matStartDate",""]],[["input","matEndDate",""]]],Na=["input[matStartDate]","input[matEndDate]"];function La(i,s){i&1&&(d(0,"div",0),Q(1),c())}var re=(()=>{class i{changes=new S;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||i)};static \u0275prov=O({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Ba=0,ge=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=Ba++;constructor(s,e,a,t,r={},n=s,h){this.value=s,this.displayValue=e,this.ariaLabel=a,this.enabled=t,this.cssClasses=r,this.compareValue=n,this.rawValue=h}},Ha={passive:!1,capture:!0},Be={passive:!0,capture:!0},Jt={passive:!0},te=(()=>{class i{_elementRef=o(z);_ngZone=o(qe);_platform=o(Yt);_intl=o(re);_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 p;previewChange=new p;activeDateChange=new p;dragStarted=new p;dragEnded=new p;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=o(Se);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=o(Ue),a=o(ue);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-"),o(pe).load(Gt),this._ngZone.runOutsideAngular(()=>{let t=this._elementRef.nativeElement,r=[L(e,t,"touchmove",this._touchmoveHandler,Ha),L(e,t,"mouseenter",this._enterHandler,Be),L(e,t,"focus",this._enterHandler,Be),L(e,t,"mouseleave",this._leaveHandler,Be),L(e,t,"blur",this._leaveHandler,Be),L(e,t,"mousedown",this._mousedownHandler,Jt),L(e,t,"touchstart",this._mousedownHandler,Jt)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_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:r}=this;(e.rows||a)&&(this._firstRowOffset=t&&t.length&&t[0].length?r-t[0].length:0),(e.cellAspectRatio||a||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(a||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}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){Qe(()=>{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 lt(e,this.startValue,this.endValue)}_isRangeEnd(e){return ct(e,this.startValue,this.endValue)}_isInRange(e){return ht(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return lt(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,a,t){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[a][t-1];if(!r){let n=this.rows[a-1];r=n&&n[n.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,a,t){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[a][t+1];if(!r){let n=this.rows[a+1];r=n&&n[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return ct(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return ht(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return lt(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return ct(e,this.previewStart,this.previewEnd)}_isInPreview(e){return ht(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=ea(e),t=a?this._getCellFromElement(a):null;a!==e.target&&(this._didDragSinceMouseDown=!0),dt(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=dt(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=ea(e);a&&this._mouseupHandler({target:a})};_getCellFromElement(e){let a=dt(e);if(a){let t=a.getAttribute("data-mat-row"),r=a.getAttribute("data-mat-col");if(t&&r)return this.rows[parseInt(t)][parseInt(r)]}return null}static \u0275fac=function(a){return new(a||i)};static \u0275cmp=C({type:i,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:[Y],attrs:va,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&&(P(0,wa,3,6,"tr",0),Ie(1,ka,4,1,"tr",1,Ca,!0),d(3,"span",2),D(4),c(),d(5,"span",2),D(6),c(),d(7,"span",2),D(8),c(),d(9,"span",2),D(10),c()),a&2&&(de(t._firstRowOffset<t.labelMinRequiredCells?0:-1),l(),xe(t.rows),l(2),_("id",t._startDateLabelId),l(),U(" ",t.startDateAccessibleName,`
2
2
  `),l(),_("id",t._endDateLabelId),l(),U(" ",t.endDateAccessibleName,`
3
3
  `),l(),_("id",t._comparisonStartDateLabelId),l(),Xe(" ",t.comparisonDateAccessibleName," ",t.startDateAccessibleName,`
4
4
  `),l(),_("id",t._comparisonEndDateLabelId),l(),Xe(" ",t.comparisonDateAccessibleName," ",t.endDateAccessibleName,`
@@ -1 +1 @@
1
- import{a as ue}from"./chunk-DZEEABI4.js";import{F as le,H as me,I as se,q as pe}from"./chunk-5UTBAGIS.js";import{P as ce}from"./chunk-YJVLRBSS.js";import{a as re}from"./chunk-2FWFPV5I.js";import{E as ne,a as X,c as Z,h as ee,l as te,s as ie}from"./chunk-LNLGRZBB.js";import{a as q,d as ae}from"./chunk-MP62IGYR.js";import{$a as a,$b as k,D as A,Dc as G,E as s,Ib as r,Jb as l,Kb as d,M as w,Ob as R,Oc as L,Qb as $,Rb as _,Td as J,Wa as F,Wc as z,Wd as oe,Xc as W,Zb as N,_b as j,aa as M,ad as B,bc as U,cc as H,d as E,db as h,dc as C,ec as f,ed as K,fa as m,fc as g,ga as S,gb as D,hd as Y,kb as T,na as v,nc as Q,o as V,qb as u,t as b,va as x,vb as p,wa as P,xb as y,xc as I,yc as O}from"./chunk-EDB2BAIG.js";var de=["searchFilter"];function ge(o,t){o&1&&d(0,"i",8)}function ve(o,t){if(o&1&&d(0,"img",15),o&2){let i=_().$implicit;p("src",i.ImgUrl,F)}}function he(o,t){o&1&&(r(0,"div",16),d(1,"i",17),l())}function ye(o,t){if(o&1&&(r(0,"mat-option",9)(1,"div",10)(2,"div",11)(3,"div"),u(4,ve,1,1,"img",12)(5,he,2,0,"ng-template",null,2,G),l(),r(7,"div",13)(8,"div"),f(9),l(),r(10,"small",14),f(11),l()()(),r(12,"span"),f(13),I(14,"number"),l()()()),o&2){let i=t.$implicit,n=C(6),e=_();p("value",i),a(4),p("ngIf",i.ImgUrl)("ngIfElse",n),a(5),g(i.Value),a(2),g(i.Code),a(2),g(O(14,6,i[e.amountProperty]))}}var fe=class o{constructor(t,i){this.http=t;L(()=>{let n=this.searchFilter().nativeElement;i.searchFilterNativeEl=n})}searchFilter=D("searchFilter");toastr=v(J);role=v(ae);isOnModalVariant=!1;autocompleteEndpoint=ce.GetVariantSuggestions;outletID;inputID;amountProperty="UnitPrice";filteredVariants$;variant=new te("");barcodeInput;_onEnter=new E;onEnter$=this._onEnter.asObservable();focusInterval;disabled=!1;onChange=t=>{};onTouched=()=>{};ngOnDestroy(){clearInterval(this.focusInterval)}ngAfterViewInit(){}keepInputFocus(){this.barcodeInput.nativeElement.focus(),this.focusInterval=setInterval(()=>{document.activeElement!==this.barcodeInput.nativeElement&&this.barcodeInput.nativeElement.focus()},200)}ngOnInit(){this.filteredVariants$=this.variant.valueChanges.pipe(s(e=>typeof e=="string"&&e.length>=3||e===""),w(300),M(e=>e===""?V([]):this.http.get(this.autocompleteEndpoint,[{key:"Prefix",value:e},{key:"Count",value:100},{key:"EntityID",value:this.outletID}]).pipe(m(c=>{c?.length==0&&this.toastr.warning(`Product with name ${e} is not found`,re.Warning)}))));let t=this.variant.valueChanges.pipe(s(e=>typeof e!="string"&&!e.OnSet),m(e=>this.onChange({type:"ID",str:e.Key,value:e.Value}))),i=this.onEnter$.pipe(S(this.variant.valueChanges),b(([e,c])=>c),s(e=>typeof e=="string"),m(e=>this.onChange({type:"Code",str:e})));A(t,i).pipe(s(()=>!this.isOnModalVariant),m(()=>this.variant.setValue("")),m(()=>this.onChange(null))).subscribe()}writeValue(t){if(typeof t!="string"&&q.IsNotEmpty(t)){let i={Key:t.str,Value:t.value,OnSet:!0};this.variant.setValue(i)}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}onEnter(){this._onEnter.next()}displayFn(t){return t&&t.Value?t.Value:""}static \u0275fac=function(i){return new(i||o)(h(oe),h(ue))};static \u0275cmp=T({type:o,selectors:[["POS-variant-autocomplete"]],viewQuery:function(i,n){if(i&1&&(U(n.searchFilter,de,5),N(de,7)),i&2){H();let e;j(e=k())&&(n.barcodeInput=e.first)}},inputs:{isOnModalVariant:"isOnModalVariant",autocompleteEndpoint:"autocompleteEndpoint",outletID:"outletID",inputID:"inputID",amountProperty:"amountProperty"},features:[Q([{provide:X,multi:!0,useExisting:o}])],decls:8,vars:14,consts:[["searchFilter",""],["auto","matAutocomplete"],["EMPTY_IMAGE",""],[1,"position-relative"],["class","fa fa-barcode position-absolute",4,"ngIf"],["type","text","placeholder","Search product by name/code",1,"example-input",3,"keydown.enter","formControl","matAutocomplete","id"],["autoActiveFirstOption","",3,"displayWith"],[3,"value",4,"ngFor","ngForOf"],[1,"fa","fa-barcode","position-absolute"],[3,"value"],[1,"d-flex","align-items-center","justify-content-between"],[1,"d-flex","align-items-center","justify-content-start"],["width","30","height","30","class","me-2",3,"src",4,"ngIf","ngIfElse"],[1,"ms-3"],[1,"opacity-75"],["width","30","height","30",1,"me-2",3,"src"],[1,"empty-image","d-flex","justify-content-center","align-items-center","me-2"],[1,"fa-solid","fa-image","fa-image-autocomplete",2,"color","#b4b4b4c2"]],template:function(i,n){if(i&1){let e=R();r(0,"div",3),u(1,ge,1,0,"i",4),r(2,"input",5,0),$("keydown.enter",function(){return x(e),P(n.onEnter())}),l(),r(4,"mat-autocomplete",6,1),u(6,ye,15,8,"mat-option",7),I(7,"async"),l()()}if(i&2){let e=C(5);y("px-0",n.isOnModalVariant)("px-5",!n.isOnModalVariant),a(),p("ngIf",!n.isOnModalVariant),a(),y("px-6",n.isOnModalVariant),p("formControl",n.variant)("matAutocomplete",e)("id",n.inputID),a(2),p("displayWith",n.displayFn),a(2),p("ngForOf",O(7,12,n.filteredVariants$))}},dependencies:[Y,z,W,B,K,se,le,pe,me,ne,Z,ee,ie],styles:["input[_ngcontent-%COMP%]{height:38px!important;border-radius:.375rem;border:1px solid #ced4da;width:100%;padding-left:32px}input[_ngcontent-%COMP%]::placeholder{color:#ced4da}i[_ngcontent-%COMP%]{top:13px;left:23px}div[_ngcontent-%COMP%] > .empty-image[_ngcontent-%COMP%]{height:32px;width:30px;border:solid 1px #dddddd}.fa-image-autocomplete[_ngcontent-%COMP%]{font-size:20px}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%]{margin:.1rem 0;overflow:visible;line-height:initial;word-wrap:break-word;white-space:pre-wrap}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%] span.mdc-list-item__primary-text[_ngcontent-%COMP%]{white-space:normal}.mat-mdc-option[_ngcontent-%COMP%]{font-size:13px;height:auto!important;padding:10px 6px!important} .mdc-list-item__primary-text{margin-right:0;width:100%}"]})};export{fe as a};
1
+ import{a as ue}from"./chunk-XA77ZHST.js";import{F as le,H as me,I as se,q as pe}from"./chunk-KMVWE6IR.js";import{P as ce}from"./chunk-QMH4FATM.js";import{a as re}from"./chunk-2FWFPV5I.js";import{E as ne,a as X,c as Z,h as ee,l as te,s as ie}from"./chunk-J577JGRK.js";import{a as q,d as ae}from"./chunk-EQ6536VC.js";import{$a as a,$b as k,D as A,Dc as G,E as s,Ib as r,Jb as l,Kb as d,M as w,Ob as R,Oc as L,Qb as $,Rb as _,Td as J,Wa as F,Wc as z,Wd as oe,Xc as W,Zb as N,_b as j,aa as M,ad as B,bc as U,cc as H,d as E,db as h,dc as C,ec as f,ed as K,fa as m,fc as g,ga as S,gb as D,hd as Y,kb as T,na as v,nc as Q,o as V,qb as u,t as b,va as x,vb as p,wa as P,xb as y,xc as I,yc as O}from"./chunk-ONCTFURX.js";var de=["searchFilter"];function ge(o,t){o&1&&d(0,"i",8)}function ve(o,t){if(o&1&&d(0,"img",15),o&2){let i=_().$implicit;p("src",i.ImgUrl,F)}}function he(o,t){o&1&&(r(0,"div",16),d(1,"i",17),l())}function ye(o,t){if(o&1&&(r(0,"mat-option",9)(1,"div",10)(2,"div",11)(3,"div"),u(4,ve,1,1,"img",12)(5,he,2,0,"ng-template",null,2,G),l(),r(7,"div",13)(8,"div"),f(9),l(),r(10,"small",14),f(11),l()()(),r(12,"span"),f(13),I(14,"number"),l()()()),o&2){let i=t.$implicit,n=C(6),e=_();p("value",i),a(4),p("ngIf",i.ImgUrl)("ngIfElse",n),a(5),g(i.Value),a(2),g(i.Code),a(2),g(O(14,6,i[e.amountProperty]))}}var fe=class o{constructor(t,i){this.http=t;L(()=>{let n=this.searchFilter().nativeElement;i.searchFilterNativeEl=n})}searchFilter=D("searchFilter");toastr=v(J);role=v(ae);isOnModalVariant=!1;autocompleteEndpoint=ce.GetVariantSuggestions;outletID;inputID;amountProperty="UnitPrice";filteredVariants$;variant=new te("");barcodeInput;_onEnter=new E;onEnter$=this._onEnter.asObservable();focusInterval;disabled=!1;onChange=t=>{};onTouched=()=>{};ngOnDestroy(){clearInterval(this.focusInterval)}ngAfterViewInit(){}keepInputFocus(){this.barcodeInput.nativeElement.focus(),this.focusInterval=setInterval(()=>{document.activeElement!==this.barcodeInput.nativeElement&&this.barcodeInput.nativeElement.focus()},200)}ngOnInit(){this.filteredVariants$=this.variant.valueChanges.pipe(s(e=>typeof e=="string"&&e.length>=3||e===""),w(300),M(e=>e===""?V([]):this.http.get(this.autocompleteEndpoint,[{key:"Prefix",value:e},{key:"Count",value:100},{key:"EntityID",value:this.outletID}]).pipe(m(c=>{c?.length==0&&this.toastr.warning(`Product with name ${e} is not found`,re.Warning)}))));let t=this.variant.valueChanges.pipe(s(e=>typeof e!="string"&&!e.OnSet),m(e=>this.onChange({type:"ID",str:e.Key,value:e.Value}))),i=this.onEnter$.pipe(S(this.variant.valueChanges),b(([e,c])=>c),s(e=>typeof e=="string"),m(e=>this.onChange({type:"Code",str:e})));A(t,i).pipe(s(()=>!this.isOnModalVariant),m(()=>this.variant.setValue("")),m(()=>this.onChange(null))).subscribe()}writeValue(t){if(typeof t!="string"&&q.IsNotEmpty(t)){let i={Key:t.str,Value:t.value,OnSet:!0};this.variant.setValue(i)}}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this.disabled=t}onEnter(){this._onEnter.next()}displayFn(t){return t&&t.Value?t.Value:""}static \u0275fac=function(i){return new(i||o)(h(oe),h(ue))};static \u0275cmp=T({type:o,selectors:[["POS-variant-autocomplete"]],viewQuery:function(i,n){if(i&1&&(U(n.searchFilter,de,5),N(de,7)),i&2){H();let e;j(e=k())&&(n.barcodeInput=e.first)}},inputs:{isOnModalVariant:"isOnModalVariant",autocompleteEndpoint:"autocompleteEndpoint",outletID:"outletID",inputID:"inputID",amountProperty:"amountProperty"},features:[Q([{provide:X,multi:!0,useExisting:o}])],decls:8,vars:14,consts:[["searchFilter",""],["auto","matAutocomplete"],["EMPTY_IMAGE",""],[1,"position-relative"],["class","fa fa-barcode position-absolute",4,"ngIf"],["type","text","placeholder","Search product by name/code",1,"example-input",3,"keydown.enter","formControl","matAutocomplete","id"],["autoActiveFirstOption","",3,"displayWith"],[3,"value",4,"ngFor","ngForOf"],[1,"fa","fa-barcode","position-absolute"],[3,"value"],[1,"d-flex","align-items-center","justify-content-between"],[1,"d-flex","align-items-center","justify-content-start"],["width","30","height","30","class","me-2",3,"src",4,"ngIf","ngIfElse"],[1,"ms-3"],[1,"opacity-75"],["width","30","height","30",1,"me-2",3,"src"],[1,"empty-image","d-flex","justify-content-center","align-items-center","me-2"],[1,"fa-solid","fa-image","fa-image-autocomplete",2,"color","#b4b4b4c2"]],template:function(i,n){if(i&1){let e=R();r(0,"div",3),u(1,ge,1,0,"i",4),r(2,"input",5,0),$("keydown.enter",function(){return x(e),P(n.onEnter())}),l(),r(4,"mat-autocomplete",6,1),u(6,ye,15,8,"mat-option",7),I(7,"async"),l()()}if(i&2){let e=C(5);y("px-0",n.isOnModalVariant)("px-5",!n.isOnModalVariant),a(),p("ngIf",!n.isOnModalVariant),a(),y("px-6",n.isOnModalVariant),p("formControl",n.variant)("matAutocomplete",e)("id",n.inputID),a(2),p("displayWith",n.displayFn),a(2),p("ngForOf",O(7,12,n.filteredVariants$))}},dependencies:[Y,z,W,B,K,se,le,pe,me,ne,Z,ee,ie],styles:["input[_ngcontent-%COMP%]{height:38px!important;border-radius:.375rem;border:1px solid #ced4da;width:100%;padding-left:32px}input[_ngcontent-%COMP%]::placeholder{color:#ced4da}i[_ngcontent-%COMP%]{top:13px;left:23px}div[_ngcontent-%COMP%] > .empty-image[_ngcontent-%COMP%]{height:32px;width:30px;border:solid 1px #dddddd}.fa-image-autocomplete[_ngcontent-%COMP%]{font-size:20px}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%]{margin:.1rem 0;overflow:visible;line-height:initial;word-wrap:break-word;white-space:pre-wrap}div.mat-mdc-autocomplete-panel[_ngcontent-%COMP%] mat-option.mat-mdc-option[_ngcontent-%COMP%] span.mdc-list-item__primary-text[_ngcontent-%COMP%]{white-space:normal}.mat-mdc-option[_ngcontent-%COMP%]{font-size:13px;height:auto!important;padding:10px 6px!important} .mdc-list-item__primary-text{margin-right:0;width:100%}"]})};export{fe as a};
@@ -1,4 +1,4 @@
1
- import{b as f,d as C}from"./chunk-YQGBGJ5U.js";import{a as ae,b as u,c as de}from"./chunk-7COMDF6M.js";import{F as ne,K as m,b as A,d as ie,ga as oe,ja as se,ka as re,sa as le,t as j}from"./chunk-NEEN2JO2.js";import{$a as b,$b as y,$c as W,Bd as R,Ed as I,Fa as s,Fd as V,Ga as F,Gd as M,Ib as w,Jb as T,Nb as K,Ob as S,Qb as E,Rb as r,Sb as N,Tb as P,Uc as Y,Xc as G,Yb as k,Zb as D,_b as v,_c as J,db as O,hd as X,id as ee,ja as Z,kb as B,na as z,nc as q,ob as Q,pc as _,qb as g,rc as U,va as h,vb as d,wa as p,wc as $,yd as te,za as H,zb as x,zd as L}from"./chunk-EDB2BAIG.js";import{a as c}from"./chunk-7DCB7DB2.js";var ce=["content"],_e=["overlay"],Ce=["*"],be=(i,l,e,t,n,o,a,pe,ve,ye,me,ue,fe,ge)=>({"p-overlay p-component":!0,"p-overlay-modal p-overlay-mask p-overlay-mask-enter":i,"p-overlay-center":l,"p-overlay-top":e,"p-overlay-top-start":t,"p-overlay-top-end":n,"p-overlay-bottom":o,"p-overlay-bottom-start":a,"p-overlay-bottom-end":pe,"p-overlay-left":ve,"p-overlay-left-start":ye,"p-overlay-left-end":me,"p-overlay-right":ue,"p-overlay-right-start":fe,"p-overlay-right-end":ge}),Oe=(i,l,e)=>({showTransitionParams:i,hideTransitionParams:l,transform:e}),xe=i=>({value:"visible",params:i}),we=i=>({mode:i}),Te=i=>({$implicit:i});function Se(i,l){i&1&&K(0)}function Ee(i,l){if(i&1){let e=S();w(0,"div",3,1),E("click",function(n){h(e);let o=r(2);return p(o.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){h(e);let o=r(2);return p(o.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){h(e);let o=r(2);return p(o.onOverlayContentAnimationDone(n))}),P(2),g(3,Se,1,0,"ng-container",4),T()}if(i&2){let e=r(2);x(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",_(11,xe,U(7,Oe,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),b(3),d("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",_(15,Te,_(13,we,e.overlayMode)))}}function ke(i,l){if(i&1){let e=S();w(0,"div",3,0),E("click",function(){h(e);let n=r();return p(n.onOverlayClick())}),g(2,Ee,4,17,"div",2),T()}if(i&2){let e=r();x(e.styleClass),d("ngStyle",e.style)("ngClass",$(5,be,[e.modal,e.modal&&e.overlayResponsiveDirection==="center",e.modal&&e.overlayResponsiveDirection==="top",e.modal&&e.overlayResponsiveDirection==="top-start",e.modal&&e.overlayResponsiveDirection==="top-end",e.modal&&e.overlayResponsiveDirection==="bottom",e.modal&&e.overlayResponsiveDirection==="bottom-start",e.modal&&e.overlayResponsiveDirection==="bottom-end",e.modal&&e.overlayResponsiveDirection==="left",e.modal&&e.overlayResponsiveDirection==="left-start",e.modal&&e.overlayResponsiveDirection==="left-end",e.modal&&e.overlayResponsiveDirection==="right",e.modal&&e.overlayResponsiveDirection==="right-start",e.modal&&e.overlayResponsiveDirection==="right-end"])),b(2),d("ngIf",e.visible)}}var De=({dt:i})=>`
1
+ import{b as f,d as C}from"./chunk-GDLTEIKV.js";import{a as ae,b as u,c as de}from"./chunk-O4T67QQ3.js";import{F as ne,K as m,b as A,d as ie,ga as oe,ja as se,ka as re,sa as le,t as j}from"./chunk-WUSKRV4R.js";import{$a as b,$b as y,$c as W,Bd as R,Ed as I,Fa as s,Fd as V,Ga as F,Gd as M,Ib as w,Jb as T,Nb as K,Ob as S,Qb as E,Rb as r,Sb as N,Tb as P,Uc as Y,Xc as G,Yb as k,Zb as D,_b as v,_c as J,db as O,hd as X,id as ee,ja as Z,kb as B,na as z,nc as q,ob as Q,pc as _,qb as g,rc as U,va as h,vb as d,wa as p,wc as $,yd as te,za as H,zb as x,zd as L}from"./chunk-ONCTFURX.js";import{a as c}from"./chunk-7DCB7DB2.js";var ce=["content"],_e=["overlay"],Ce=["*"],be=(i,l,e,t,n,o,a,pe,ve,ye,me,ue,fe,ge)=>({"p-overlay p-component":!0,"p-overlay-modal p-overlay-mask p-overlay-mask-enter":i,"p-overlay-center":l,"p-overlay-top":e,"p-overlay-top-start":t,"p-overlay-top-end":n,"p-overlay-bottom":o,"p-overlay-bottom-start":a,"p-overlay-bottom-end":pe,"p-overlay-left":ve,"p-overlay-left-start":ye,"p-overlay-left-end":me,"p-overlay-right":ue,"p-overlay-right-start":fe,"p-overlay-right-end":ge}),Oe=(i,l,e)=>({showTransitionParams:i,hideTransitionParams:l,transform:e}),xe=i=>({value:"visible",params:i}),we=i=>({mode:i}),Te=i=>({$implicit:i});function Se(i,l){i&1&&K(0)}function Ee(i,l){if(i&1){let e=S();w(0,"div",3,1),E("click",function(n){h(e);let o=r(2);return p(o.onOverlayContentClick(n))})("@overlayContentAnimation.start",function(n){h(e);let o=r(2);return p(o.onOverlayContentAnimationStart(n))})("@overlayContentAnimation.done",function(n){h(e);let o=r(2);return p(o.onOverlayContentAnimationDone(n))}),P(2),g(3,Se,1,0,"ng-container",4),T()}if(i&2){let e=r(2);x(e.contentStyleClass),d("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",_(11,xe,U(7,Oe,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),b(3),d("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",_(15,Te,_(13,we,e.overlayMode)))}}function ke(i,l){if(i&1){let e=S();w(0,"div",3,0),E("click",function(){h(e);let n=r();return p(n.onOverlayClick())}),g(2,Ee,4,17,"div",2),T()}if(i&2){let e=r();x(e.styleClass),d("ngStyle",e.style)("ngClass",$(5,be,[e.modal,e.modal&&e.overlayResponsiveDirection==="center",e.modal&&e.overlayResponsiveDirection==="top",e.modal&&e.overlayResponsiveDirection==="top-start",e.modal&&e.overlayResponsiveDirection==="top-end",e.modal&&e.overlayResponsiveDirection==="bottom",e.modal&&e.overlayResponsiveDirection==="bottom-start",e.modal&&e.overlayResponsiveDirection==="bottom-end",e.modal&&e.overlayResponsiveDirection==="left",e.modal&&e.overlayResponsiveDirection==="left-start",e.modal&&e.overlayResponsiveDirection==="left-end",e.modal&&e.overlayResponsiveDirection==="right",e.modal&&e.overlayResponsiveDirection==="right-start",e.modal&&e.overlayResponsiveDirection==="right-end"])),b(2),d("ngIf",e.visible)}}var De=({dt:i})=>`
2
2
  .p-overlay {
3
3
  position: absolute;
4
4
  top: 0;
@@ -1,4 +1,4 @@
1
- import{Db as Oe,Hc as Ye,Kb as Ke,Rb as Je,_c as Ge,db as xe,fb as De,hd as se,ka as _e,kb as ke,lb as Ue,mb as ve,qb as ze,ua as Fe,vb as He,zb as Ve}from"./chunk-EDB2BAIG.js";import{e as d,g as $t,j as be}from"./chunk-7DCB7DB2.js";var Qe=d((Wn,je)=>{je.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var M=d(R=>{var ce,Xt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];R.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};R.getSymbolTotalCodewords=function(e){return Xt[e]};R.getBCHDigit=function(n){let e=0;for(;n!==0;)e++,n>>>=1;return e};R.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');ce=e};R.isKanjiModeEnabled=function(){return typeof ce<"u"};R.toSJIS=function(e){return ce(e)}});var Y=d(p=>{p.L={bit:1};p.M={bit:0};p.Q={bit:3};p.H={bit:2};function en(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return p.L;case"m":case"medium":return p.M;case"q":case"quartile":return p.Q;case"h":case"high":return p.H;default:throw new Error("Unknown EC Level: "+n)}}p.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};p.from=function(e,t){if(p.isValid(e))return e;try{return en(e)}catch{return t}}});var $e=d((Xn,Ze)=>{function We(){this.buffer=[],this.length=0}We.prototype={get:function(n){let e=Math.floor(n/8);return(this.buffer[e]>>>7-n%8&1)===1},put:function(n,e){for(let t=0;t<e;t++)this.putBit((n>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),n&&(this.buffer[e]|=128>>>this.length%8),this.length++}};Ze.exports=We});var et=d((er,Xe)=>{function U(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}U.prototype.set=function(n,e,t,r){let o=n*this.size+e;this.data[o]=t,r&&(this.reservedBit[o]=!0)};U.prototype.get=function(n,e){return this.data[n*this.size+e]};U.prototype.xor=function(n,e,t){this.data[n*this.size+e]^=t};U.prototype.isReserved=function(n,e){return this.reservedBit[n*this.size+e]};Xe.exports=U});var tt=d(G=>{var tn=M().getSymbolSize;G.getRowColCoords=function(e){if(e===1)return[];let t=Math.floor(e/7)+2,r=tn(e),o=r===145?26:Math.ceil((r-13)/(2*t-2))*2,i=[r-7];for(let s=1;s<t-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()};G.getPositions=function(e){let t=[],r=G.getRowColCoords(e),o=r.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||t.push([r[i],r[s]]);return t}});var ot=d(rt=>{var nn=M().getSymbolSize,nt=7;rt.getPositions=function(e){let t=nn(e);return[[0,0],[t-nt,0],[0,t-nt]]}});var it=d(g=>{g.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var q={N1:3,N2:3,N3:40,N4:10};g.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};g.from=function(e){return g.isValid(e)?parseInt(e,10):void 0};g.getPenaltyN1=function(e){let t=e.size,r=0,o=0,i=0,s=null,c=null;for(let a=0;a<t;a++){o=i=0,s=c=null;for(let l=0;l<t;l++){let u=e.get(a,l);u===s?o++:(o>=5&&(r+=q.N1+(o-5)),s=u,o=1),u=e.get(l,a),u===c?i++:(i>=5&&(r+=q.N1+(i-5)),c=u,i=1)}o>=5&&(r+=q.N1+(o-5)),i>=5&&(r+=q.N1+(i-5))}return r};g.getPenaltyN2=function(e){let t=e.size,r=0;for(let o=0;o<t-1;o++)for(let i=0;i<t-1;i++){let s=e.get(o,i)+e.get(o,i+1)+e.get(o+1,i)+e.get(o+1,i+1);(s===4||s===0)&&r++}return r*q.N2};g.getPenaltyN3=function(e){let t=e.size,r=0,o=0,i=0;for(let s=0;s<t;s++){o=i=0;for(let c=0;c<t;c++)o=o<<1&2047|e.get(s,c),c>=10&&(o===1488||o===93)&&r++,i=i<<1&2047|e.get(c,s),c>=10&&(i===1488||i===93)&&r++}return r*q.N3};g.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let i=0;i<r;i++)t+=e.data[i];return Math.abs(Math.ceil(t*100/r/5)-10)*q.N4};function rn(n,e,t){switch(n){case g.Patterns.PATTERN000:return(e+t)%2===0;case g.Patterns.PATTERN001:return e%2===0;case g.Patterns.PATTERN010:return t%3===0;case g.Patterns.PATTERN011:return(e+t)%3===0;case g.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case g.Patterns.PATTERN101:return e*t%2+e*t%3===0;case g.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case g.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}g.applyMask=function(e,t){let r=t.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)t.isReserved(i,o)||t.xor(i,o,rn(e,i,o))};g.getBestMask=function(e,t){let r=Object.keys(g.Patterns).length,o=0,i=1/0;for(let s=0;s<r;s++){t(s),g.applyMask(s,e);let c=g.getPenaltyN1(e)+g.getPenaltyN2(e)+g.getPenaltyN3(e)+g.getPenaltyN4(e);g.applyMask(s,e),c<i&&(i=c,o=s)}return o}});var ue=d(ae=>{var S=Y(),j=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Q=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ae.getBlocksCount=function(e,t){switch(t){case S.L:return j[(e-1)*4+0];case S.M:return j[(e-1)*4+1];case S.Q:return j[(e-1)*4+2];case S.H:return j[(e-1)*4+3];default:return}};ae.getTotalCodewordsCount=function(e,t){switch(t){case S.L:return Q[(e-1)*4+0];case S.M:return Q[(e-1)*4+1];case S.Q:return Q[(e-1)*4+2];case S.H:return Q[(e-1)*4+3];default:return}}});var st=d(Z=>{var v=new Uint8Array(512),W=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)v[t]=e,W[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)v[t]=v[t-255]})();Z.log=function(e){if(e<1)throw new Error("log("+e+")");return W[e]};Z.exp=function(e){return v[e]};Z.mul=function(e,t){return e===0||t===0?0:v[W[e]+W[t]]}});var ct=d(z=>{var le=st();z.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)r[o+i]^=le.mul(e[o],t[i]);return r};z.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let o=r[0];for(let s=0;s<t.length;s++)r[s]^=le.mul(t[s],o);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r};z.generateECPolynomial=function(e){let t=new Uint8Array([1]);for(let r=0;r<e;r++)t=z.mul(t,new Uint8Array([1,le.exp(r)]));return t}});var lt=d((cr,ut)=>{var at=ct();function fe(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}fe.prototype.initialize=function(e){this.degree=e,this.genPoly=at.generateECPolynomial(this.degree)};fe.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=at.mod(t,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};ut.exports=fe});var de=d(ft=>{ft.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var ge=d(I=>{var dt="[0-9]+",on="[A-Z $%*+\\-./:]+",H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");var sn="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
1
+ import{Db as Oe,Hc as Ye,Kb as Ke,Rb as Je,_c as Ge,db as xe,fb as De,hd as se,ka as _e,kb as ke,lb as Ue,mb as ve,qb as ze,ua as Fe,vb as He,zb as Ve}from"./chunk-ONCTFURX.js";import{e as d,g as $t,j as be}from"./chunk-7DCB7DB2.js";var Qe=d((Wn,je)=>{je.exports=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}});var M=d(R=>{var ce,Xt=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];R.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};R.getSymbolTotalCodewords=function(e){return Xt[e]};R.getBCHDigit=function(n){let e=0;for(;n!==0;)e++,n>>>=1;return e};R.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');ce=e};R.isKanjiModeEnabled=function(){return typeof ce<"u"};R.toSJIS=function(e){return ce(e)}});var Y=d(p=>{p.L={bit:1};p.M={bit:0};p.Q={bit:3};p.H={bit:2};function en(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return p.L;case"m":case"medium":return p.M;case"q":case"quartile":return p.Q;case"h":case"high":return p.H;default:throw new Error("Unknown EC Level: "+n)}}p.isValid=function(e){return e&&typeof e.bit<"u"&&e.bit>=0&&e.bit<4};p.from=function(e,t){if(p.isValid(e))return e;try{return en(e)}catch{return t}}});var $e=d((Xn,Ze)=>{function We(){this.buffer=[],this.length=0}We.prototype={get:function(n){let e=Math.floor(n/8);return(this.buffer[e]>>>7-n%8&1)===1},put:function(n,e){for(let t=0;t<e;t++)this.putBit((n>>>e-t-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(n){let e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),n&&(this.buffer[e]|=128>>>this.length%8),this.length++}};Ze.exports=We});var et=d((er,Xe)=>{function U(n){if(!n||n<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=n,this.data=new Uint8Array(n*n),this.reservedBit=new Uint8Array(n*n)}U.prototype.set=function(n,e,t,r){let o=n*this.size+e;this.data[o]=t,r&&(this.reservedBit[o]=!0)};U.prototype.get=function(n,e){return this.data[n*this.size+e]};U.prototype.xor=function(n,e,t){this.data[n*this.size+e]^=t};U.prototype.isReserved=function(n,e){return this.reservedBit[n*this.size+e]};Xe.exports=U});var tt=d(G=>{var tn=M().getSymbolSize;G.getRowColCoords=function(e){if(e===1)return[];let t=Math.floor(e/7)+2,r=tn(e),o=r===145?26:Math.ceil((r-13)/(2*t-2))*2,i=[r-7];for(let s=1;s<t-1;s++)i[s]=i[s-1]-o;return i.push(6),i.reverse()};G.getPositions=function(e){let t=[],r=G.getRowColCoords(e),o=r.length;for(let i=0;i<o;i++)for(let s=0;s<o;s++)i===0&&s===0||i===0&&s===o-1||i===o-1&&s===0||t.push([r[i],r[s]]);return t}});var ot=d(rt=>{var nn=M().getSymbolSize,nt=7;rt.getPositions=function(e){let t=nn(e);return[[0,0],[t-nt,0],[0,t-nt]]}});var it=d(g=>{g.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};var q={N1:3,N2:3,N3:40,N4:10};g.isValid=function(e){return e!=null&&e!==""&&!isNaN(e)&&e>=0&&e<=7};g.from=function(e){return g.isValid(e)?parseInt(e,10):void 0};g.getPenaltyN1=function(e){let t=e.size,r=0,o=0,i=0,s=null,c=null;for(let a=0;a<t;a++){o=i=0,s=c=null;for(let l=0;l<t;l++){let u=e.get(a,l);u===s?o++:(o>=5&&(r+=q.N1+(o-5)),s=u,o=1),u=e.get(l,a),u===c?i++:(i>=5&&(r+=q.N1+(i-5)),c=u,i=1)}o>=5&&(r+=q.N1+(o-5)),i>=5&&(r+=q.N1+(i-5))}return r};g.getPenaltyN2=function(e){let t=e.size,r=0;for(let o=0;o<t-1;o++)for(let i=0;i<t-1;i++){let s=e.get(o,i)+e.get(o,i+1)+e.get(o+1,i)+e.get(o+1,i+1);(s===4||s===0)&&r++}return r*q.N2};g.getPenaltyN3=function(e){let t=e.size,r=0,o=0,i=0;for(let s=0;s<t;s++){o=i=0;for(let c=0;c<t;c++)o=o<<1&2047|e.get(s,c),c>=10&&(o===1488||o===93)&&r++,i=i<<1&2047|e.get(c,s),c>=10&&(i===1488||i===93)&&r++}return r*q.N3};g.getPenaltyN4=function(e){let t=0,r=e.data.length;for(let i=0;i<r;i++)t+=e.data[i];return Math.abs(Math.ceil(t*100/r/5)-10)*q.N4};function rn(n,e,t){switch(n){case g.Patterns.PATTERN000:return(e+t)%2===0;case g.Patterns.PATTERN001:return e%2===0;case g.Patterns.PATTERN010:return t%3===0;case g.Patterns.PATTERN011:return(e+t)%3===0;case g.Patterns.PATTERN100:return(Math.floor(e/2)+Math.floor(t/3))%2===0;case g.Patterns.PATTERN101:return e*t%2+e*t%3===0;case g.Patterns.PATTERN110:return(e*t%2+e*t%3)%2===0;case g.Patterns.PATTERN111:return(e*t%3+(e+t)%2)%2===0;default:throw new Error("bad maskPattern:"+n)}}g.applyMask=function(e,t){let r=t.size;for(let o=0;o<r;o++)for(let i=0;i<r;i++)t.isReserved(i,o)||t.xor(i,o,rn(e,i,o))};g.getBestMask=function(e,t){let r=Object.keys(g.Patterns).length,o=0,i=1/0;for(let s=0;s<r;s++){t(s),g.applyMask(s,e);let c=g.getPenaltyN1(e)+g.getPenaltyN2(e)+g.getPenaltyN3(e)+g.getPenaltyN4(e);g.applyMask(s,e),c<i&&(i=c,o=s)}return o}});var ue=d(ae=>{var S=Y(),j=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Q=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];ae.getBlocksCount=function(e,t){switch(t){case S.L:return j[(e-1)*4+0];case S.M:return j[(e-1)*4+1];case S.Q:return j[(e-1)*4+2];case S.H:return j[(e-1)*4+3];default:return}};ae.getTotalCodewordsCount=function(e,t){switch(t){case S.L:return Q[(e-1)*4+0];case S.M:return Q[(e-1)*4+1];case S.Q:return Q[(e-1)*4+2];case S.H:return Q[(e-1)*4+3];default:return}}});var st=d(Z=>{var v=new Uint8Array(512),W=new Uint8Array(256);(function(){let e=1;for(let t=0;t<255;t++)v[t]=e,W[e]=t,e<<=1,e&256&&(e^=285);for(let t=255;t<512;t++)v[t]=v[t-255]})();Z.log=function(e){if(e<1)throw new Error("log("+e+")");return W[e]};Z.exp=function(e){return v[e]};Z.mul=function(e,t){return e===0||t===0?0:v[W[e]+W[t]]}});var ct=d(z=>{var le=st();z.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let o=0;o<e.length;o++)for(let i=0;i<t.length;i++)r[o+i]^=le.mul(e[o],t[i]);return r};z.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let o=r[0];for(let s=0;s<t.length;s++)r[s]^=le.mul(t[s],o);let i=0;for(;i<r.length&&r[i]===0;)i++;r=r.slice(i)}return r};z.generateECPolynomial=function(e){let t=new Uint8Array([1]);for(let r=0;r<e;r++)t=z.mul(t,new Uint8Array([1,le.exp(r)]));return t}});var lt=d((cr,ut)=>{var at=ct();function fe(n){this.genPoly=void 0,this.degree=n,this.degree&&this.initialize(this.degree)}fe.prototype.initialize=function(e){this.degree=e,this.genPoly=at.generateECPolynomial(this.degree)};fe.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=at.mod(t,this.genPoly),o=this.degree-r.length;if(o>0){let i=new Uint8Array(this.degree);return i.set(r,o),i}return r};ut.exports=fe});var de=d(ft=>{ft.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}});var ge=d(I=>{var dt="[0-9]+",on="[A-Z $%*+\\-./:]+",H="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";H=H.replace(/u/g,"\\u");var sn="(?:(?![A-Z0-9 $%*+\\-./:]|"+H+`)(?:.|[\r
2
2
  ]))+`;I.KANJI=new RegExp(H,"g");I.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");I.BYTE=new RegExp(sn,"g");I.NUMERIC=new RegExp(dt,"g");I.ALPHANUMERIC=new RegExp(on,"g");var cn=new RegExp("^"+H+"$"),an=new RegExp("^"+dt+"$"),un=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");I.testKanji=function(e){return cn.test(e)};I.testNumeric=function(e){return an.test(e)};I.testAlphanumeric=function(e){return un.test(e)}});var T=d(C=>{var ln=de(),he=ge();C.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]};C.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]};C.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]};C.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]};C.MIXED={bit:-1};C.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!ln.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]};C.getBestModeForData=function(e){return he.testNumeric(e)?C.NUMERIC:he.testAlphanumeric(e)?C.ALPHANUMERIC:he.testKanji(e)?C.KANJI:C.BYTE};C.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")};C.isValid=function(e){return e&&e.bit&&e.ccBits};function fn(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"numeric":return C.NUMERIC;case"alphanumeric":return C.ALPHANUMERIC;case"kanji":return C.KANJI;case"byte":return C.BYTE;default:throw new Error("Unknown mode: "+n)}}C.from=function(e,t){if(C.isValid(e))return e;try{return fn(e)}catch{return t}}});var pt=d(L=>{var $=M(),dn=ue(),gt=Y(),N=T(),Ce=de(),Ct=7973,ht=$.getBCHDigit(Ct);function gn(n,e,t){for(let r=1;r<=40;r++)if(e<=L.getCapacity(r,t,n))return r}function mt(n,e){return N.getCharCountIndicator(n,e)+4}function hn(n,e){let t=0;return n.forEach(function(r){let o=mt(r.mode,e);t+=o+r.getBitsLength()}),t}function Cn(n,e){for(let t=1;t<=40;t++)if(hn(n,t)<=L.getCapacity(t,e,N.MIXED))return t}L.from=function(e,t){return Ce.isValid(e)?parseInt(e,10):t};L.getCapacity=function(e,t,r){if(!Ce.isValid(e))throw new Error("Invalid QR Code version");typeof r>"u"&&(r=N.BYTE);let o=$.getSymbolTotalCodewords(e),i=dn.getTotalCodewordsCount(e,t),s=(o-i)*8;if(r===N.MIXED)return s;let c=s-mt(r,e);switch(r){case N.NUMERIC:return Math.floor(c/10*3);case N.ALPHANUMERIC:return Math.floor(c/11*2);case N.KANJI:return Math.floor(c/13);case N.BYTE:default:return Math.floor(c/8)}};L.getBestVersionForData=function(e,t){let r,o=gt.from(t,gt.M);if(Array.isArray(e)){if(e.length>1)return Cn(e,o);if(e.length===0)return 1;r=e[0]}else r=e;return gn(r.mode,r.getLength(),o)};L.getEncodedBits=function(e){if(!Ce.isValid(e)||e<7)throw new Error("Invalid QR Code version");let t=e<<12;for(;$.getBCHDigit(t)-ht>=0;)t^=Ct<<$.getBCHDigit(t)-ht;return e<<12|t}});var It=d(yt=>{var me=M(),Et=1335,mn=21522,wt=me.getBCHDigit(Et);yt.getEncodedBits=function(e,t){let r=e.bit<<3|t,o=r<<10;for(;me.getBCHDigit(o)-wt>=0;)o^=Et<<me.getBCHDigit(o)-wt;return(r<<10|o)^mn}});var At=d((gr,Bt)=>{var pn=T();function _(n){this.mode=pn.NUMERIC,this.data=n.toString()}_.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};_.prototype.getLength=function(){return this.data.length};_.prototype.getBitsLength=function(){return _.getBitsLength(this.data.length)};_.prototype.write=function(e){let t,r,o;for(t=0;t+3<=this.data.length;t+=3)r=this.data.substr(t,3),o=parseInt(r,10),e.put(o,10);let i=this.data.length-t;i>0&&(r=this.data.substr(t),o=parseInt(r,10),e.put(o,i*3+1))};Bt.exports=_});var St=d((hr,Mt)=>{var wn=T(),pe=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function F(n){this.mode=wn.ALPHANUMERIC,this.data=n}F.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};F.prototype.getLength=function(){return this.data.length};F.prototype.getBitsLength=function(){return F.getBitsLength(this.data.length)};F.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=pe.indexOf(this.data[t])*45;r+=pe.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(pe.indexOf(this.data[t]),6)};Mt.exports=F});var Nt=d((Cr,Tt)=>{var En=T();function x(n){this.mode=En.BYTE,typeof n=="string"?this.data=new TextEncoder().encode(n):this.data=new Uint8Array(n)}x.getBitsLength=function(e){return e*8};x.prototype.getLength=function(){return this.data.length};x.prototype.getBitsLength=function(){return x.getBitsLength(this.data.length)};x.prototype.write=function(n){for(let e=0,t=this.data.length;e<t;e++)n.put(this.data[e],8)};Tt.exports=x});var qt=d((mr,Rt)=>{var yn=T(),In=M();function D(n){this.mode=yn.KANJI,this.data=n}D.getBitsLength=function(e){return e*13};D.prototype.getLength=function(){return this.data.length};D.prototype.getBitsLength=function(){return D.getBitsLength(this.data.length)};D.prototype.write=function(n){let e;for(e=0;e<this.data.length;e++){let t=In.toSJIS(this.data[e]);if(t>=33088&&t<=40956)t-=33088;else if(t>=57408&&t<=60351)t-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
3
3
  Make sure your charset is UTF-8`);t=(t>>>8&255)*192+(t&255),n.put(t,13)}};Rt.exports=D});var Lt=d((pr,we)=>{"use strict";var V={single_source_shortest_paths:function(n,e,t){var r={},o={};o[e]=0;var i=V.PriorityQueue.make();i.push(e,0);for(var s,c,a,l,u,m,h,w,B;!i.empty();){s=i.pop(),c=s.value,l=s.cost,u=n[c]||{};for(a in u)u.hasOwnProperty(a)&&(m=u[a],h=l+m,w=o[a],B=typeof o[a]>"u",(B||w>h)&&(o[a]=h,i.push(a,h),r[a]=c))}if(typeof t<"u"&&typeof o[t]>"u"){var A=["Could not find a path from ",e," to ",t,"."].join("");throw new Error(A)}return r},extract_shortest_path_from_predecessor_list:function(n,e){for(var t=[],r=e,o;r;)t.push(r),o=n[r],r=n[r];return t.reverse(),t},find_path:function(n,e,t){var r=V.single_source_shortest_paths(n,e,t);return V.extract_shortest_path_from_predecessor_list(r,t)},PriorityQueue:{make:function(n){var e=V.PriorityQueue,t={},r;n=n||{};for(r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t.queue=[],t.sorter=n.sorter||e.default_sorter,t},default_sorter:function(n,e){return n.cost-e.cost},push:function(n,e){var t={value:n,cost:e};this.queue.push(t),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};typeof we<"u"&&(we.exports=V)});var Ut=d(k=>{var f=T(),_t=At(),Ft=St(),xt=Nt(),Dt=qt(),O=ge(),X=M(),Bn=Lt();function Pt(n){return unescape(encodeURIComponent(n)).length}function K(n,e,t){let r=[],o;for(;(o=n.exec(t))!==null;)r.push({data:o[0],index:o.index,mode:e,length:o[0].length});return r}function kt(n){let e=K(O.NUMERIC,f.NUMERIC,n),t=K(O.ALPHANUMERIC,f.ALPHANUMERIC,n),r,o;return X.isKanjiModeEnabled()?(r=K(O.BYTE,f.BYTE,n),o=K(O.KANJI,f.KANJI,n)):(r=K(O.BYTE_KANJI,f.BYTE,n),o=[]),e.concat(t,r,o).sort(function(s,c){return s.index-c.index}).map(function(s){return{data:s.data,mode:s.mode,length:s.length}})}function Ee(n,e){switch(e){case f.NUMERIC:return _t.getBitsLength(n);case f.ALPHANUMERIC:return Ft.getBitsLength(n);case f.KANJI:return Dt.getBitsLength(n);case f.BYTE:return xt.getBitsLength(n)}}function An(n){return n.reduce(function(e,t){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)},[])}function Mn(n){let e=[];for(let t=0;t<n.length;t++){let r=n[t];switch(r.mode){case f.NUMERIC:e.push([r,{data:r.data,mode:f.ALPHANUMERIC,length:r.length},{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.ALPHANUMERIC:e.push([r,{data:r.data,mode:f.BYTE,length:r.length}]);break;case f.KANJI:e.push([r,{data:r.data,mode:f.BYTE,length:Pt(r.data)}]);break;case f.BYTE:e.push([{data:r.data,mode:f.BYTE,length:Pt(r.data)}])}}return e}function Sn(n,e){let t={},r={start:{}},o=["start"];for(let i=0;i<n.length;i++){let s=n[i],c=[];for(let a=0;a<s.length;a++){let l=s[a],u=""+i+a;c.push(u),t[u]={node:l,lastCount:0},r[u]={};for(let m=0;m<o.length;m++){let h=o[m];t[h]&&t[h].node.mode===l.mode?(r[h][u]=Ee(t[h].lastCount+l.length,l.mode)-Ee(t[h].lastCount,l.mode),t[h].lastCount+=l.length):(t[h]&&(t[h].lastCount=l.length),r[h][u]=Ee(l.length,l.mode)+4+f.getCharCountIndicator(l.mode,e))}}o=c}for(let i=0;i<o.length;i++)r[o[i]].end=0;return{map:r,table:t}}function bt(n,e){let t,r=f.getBestModeForData(n);if(t=f.from(e,r),t!==f.BYTE&&t.bit<r.bit)throw new Error('"'+n+'" cannot be encoded with mode '+f.toString(t)+`.
4
4
  Suggested mode is: `+f.toString(r));switch(t===f.KANJI&&!X.isKanjiModeEnabled()&&(t=f.BYTE),t){case f.NUMERIC:return new _t(n);case f.ALPHANUMERIC:return new Ft(n);case f.KANJI:return new Dt(n);case f.BYTE:return new xt(n)}}k.fromArray=function(e){return e.reduce(function(t,r){return typeof r=="string"?t.push(bt(r,null)):r.data&&t.push(bt(r.data,r.mode)),t},[])};k.fromString=function(e,t){let r=kt(e,X.isKanjiModeEnabled()),o=Mn(r),i=Sn(o,t),s=Bn.find_path(i.map,"start","end"),c=[];for(let a=1;a<s.length-1;a++)c.push(i.table[s[a]].node);return k.fromArray(An(c))};k.rawSplit=function(e){return k.fromArray(kt(e,X.isKanjiModeEnabled()))}});var zt=d(vt=>{var te=M(),ye=Y(),Tn=$e(),Nn=et(),Rn=tt(),qn=ot(),Ae=it(),Me=ue(),Ln=lt(),ee=pt(),Pn=It(),bn=T(),Ie=Ut();function _n(n,e){let t=n.size,r=qn.getPositions(e);for(let o=0;o<r.length;o++){let i=r[o][0],s=r[o][1];for(let c=-1;c<=7;c++)if(!(i+c<=-1||t<=i+c))for(let a=-1;a<=7;a++)s+a<=-1||t<=s+a||(c>=0&&c<=6&&(a===0||a===6)||a>=0&&a<=6&&(c===0||c===6)||c>=2&&c<=4&&a>=2&&a<=4?n.set(i+c,s+a,!0,!0):n.set(i+c,s+a,!1,!0))}}function Fn(n){let e=n.size;for(let t=8;t<e-8;t++){let r=t%2===0;n.set(t,6,r,!0),n.set(6,t,r,!0)}}function xn(n,e){let t=Rn.getPositions(e);for(let r=0;r<t.length;r++){let o=t[r][0],i=t[r][1];for(let s=-2;s<=2;s++)for(let c=-2;c<=2;c++)s===-2||s===2||c===-2||c===2||s===0&&c===0?n.set(o+s,i+c,!0,!0):n.set(o+s,i+c,!1,!0)}}function Dn(n,e){let t=n.size,r=ee.getEncodedBits(e),o,i,s;for(let c=0;c<18;c++)o=Math.floor(c/3),i=c%3+t-8-3,s=(r>>c&1)===1,n.set(o,i,s,!0),n.set(i,o,s,!0)}function Be(n,e,t){let r=n.size,o=Pn.getEncodedBits(e,t),i,s;for(i=0;i<15;i++)s=(o>>i&1)===1,i<6?n.set(i,8,s,!0):i<8?n.set(i+1,8,s,!0):n.set(r-15+i,8,s,!0),i<8?n.set(8,r-i-1,s,!0):i<9?n.set(8,15-i-1+1,s,!0):n.set(8,15-i-1,s,!0);n.set(r-8,8,1,!0)}function kn(n,e){let t=n.size,r=-1,o=t-1,i=7,s=0;for(let c=t-1;c>0;c-=2)for(c===6&&c--;;){for(let a=0;a<2;a++)if(!n.isReserved(o,c-a)){let l=!1;s<e.length&&(l=(e[s]>>>i&1)===1),n.set(o,c-a,l),i--,i===-1&&(s++,i=7)}if(o+=r,o<0||t<=o){o-=r,r=-r;break}}}function Un(n,e,t){let r=new Tn;t.forEach(function(a){r.put(a.mode.bit,4),r.put(a.getLength(),bn.getCharCountIndicator(a.mode,n)),a.write(r)});let o=te.getSymbolTotalCodewords(n),i=Me.getTotalCodewordsCount(n,e),s=(o-i)*8;for(r.getLengthInBits()+4<=s&&r.put(0,4);r.getLengthInBits()%8!==0;)r.putBit(0);let c=(s-r.getLengthInBits())/8;for(let a=0;a<c;a++)r.put(a%2?17:236,8);return vn(r,n,e)}function vn(n,e,t){let r=te.getSymbolTotalCodewords(e),o=Me.getTotalCodewordsCount(e,t),i=r-o,s=Me.getBlocksCount(e,t),c=r%s,a=s-c,l=Math.floor(r/s),u=Math.floor(i/s),m=u+1,h=l-u,w=new Ln(h),B=0,A=new Array(s),Le=new Array(s),re=0,Zt=new Uint8Array(n.buffer);for(let b=0;b<s;b++){let ie=b<a?u:m;A[b]=Zt.slice(B,B+ie),Le[b]=w.encode(A[b]),B+=ie,re=Math.max(re,ie)}let oe=new Uint8Array(r),Pe=0,E,y;for(E=0;E<re;E++)for(y=0;y<s;y++)E<A[y].length&&(oe[Pe++]=A[y][E]);for(E=0;E<h;E++)for(y=0;y<s;y++)oe[Pe++]=Le[y][E];return oe}function zn(n,e,t,r){let o;if(Array.isArray(n))o=Ie.fromArray(n);else if(typeof n=="string"){let l=e;if(!l){let u=Ie.rawSplit(n);l=ee.getBestVersionForData(u,t)}o=Ie.fromString(n,l||40)}else throw new Error("Invalid data");let i=ee.getBestVersionForData(o,t);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=i;else if(e<i)throw new Error(`
@@ -1,4 +1,4 @@
1
- import{a as zt,e as lt,g as Wt}from"./chunk-5UTBAGIS.js";import{B as Ht,F as ot,I as Vt,J as Nt,N as Ot,Q as Qt,R as st,f as nt,fa as dt,g as rt,m as Lt,n as Et,r as At,y as St,z as Ft}from"./chunk-JLOQTYOI.js";import{$ as V,$a as f,$b as b,B as vt,Ba as U,D as H,Db as J,E as yt,Fa as u,Fb as tt,Ga as O,Gb as et,Hb as at,Ib as h,Ic as Z,Jb as y,Ka as M,Kb as G,Kc as _,Lc as K,M as kt,Na as It,Ob as E,Qa as Q,Qb as C,Rb as v,Sb as $,Ta as z,Tb as q,Yb as A,Z as Tt,Zb as p,_b as m,a as x,aa as Ct,ab as W,c as ut,cb as X,d as F,da as B,dc as it,ec as Bt,fb as Dt,fc as Pt,k as ft,ka as wt,kb as P,la as D,lb as Mt,mb as I,na as r,nc as S,o as gt,ob as L,qb as R,ua as xt,ub as k,va as l,vb as T,wa as c,wb as Rt,xb as g,za as N,zb as j}from"./chunk-EDB2BAIG.js";var pt=["*"];function Xt(n,d){n&1&&q(0)}var Jt=["tabListContainer"],te=["tabList"],ee=["tabListInner"],ae=["nextPaginator"],ie=["previousPaginator"],ne=["content"];function re(n,d){}var oe=["tabBodyWrapper"],se=["tabHeader"];function de(n,d){}function le(n,d){if(n&1&&R(0,de,0,0,"ng-template",12),n&2){let t=v().$implicit;T("cdkPortalOutlet",t.templateLabel)}}function ce(n,d){if(n&1&&Bt(0),n&2){let t=v().$implicit;Pt(t.textLabel)}}function me(n,d){if(n&1){let t=E();h(0,"div",7,2),C("click",function(){let a=l(t),i=a.$implicit,o=a.$index,s=v(),w=it(1);return c(s._handleClick(i,w,o))})("cdkFocusChange",function(a){let i=l(t).$index,o=v();return c(o._tabFocusChanged(a,i))}),G(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),R(6,le,1,1,null,12)(7,ce,1,1),y()()()}if(n&2){let t=d.$implicit,e=d.$index,a=it(1),i=v();j(t.labelClass),g("mdc-tab--active",i.selectedIndex===e),T("id",i._getTabLabelId(t,e))("disabled",t.disabled)("fitInkBarToContent",i.fitInkBarToContent),k("tabIndex",i._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(e))("aria-selected",i.selectedIndex===e)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),f(3),T("matRippleTrigger",a)("matRippleDisabled",t.disabled||i.disableRipple),f(3),J(t.templateLabel?6:7)}}function be(n,d){n&1&&q(0)}function he(n,d){if(n&1){let t=E();h(0,"mat-tab-body",13),C("_onCentered",function(){l(t);let a=v();return c(a._removeTabBodyWrapperHeight())})("_onCentering",function(a){l(t);let i=v();return c(i._setTabBodyWrapperHeight(a))})("_beforeCentering",function(a){l(t);let i=v();return c(i._bodyCentered(a))}),y()}if(n&2){let t=d.$implicit,e=d.$index,a=v();j(t.bodyClass),T("id",a._getTabContentId(e))("content",t.content)("position",t.position)("animationDuration",a.animationDuration)("preserveContent",a.preserveContent),k("tabindex",a.contentTabIndex!=null&&a.selectedIndex===e?a.contentTabIndex:null)("aria-labelledby",a._getTabLabelId(t,e))("aria-hidden",a.selectedIndex!==e)}}var pe=new D("MatTabContent"),_e=(()=>{class n{template=r(W);constructor(){}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,selectors:[["","matTabContent",""]],features:[S([{provide:pe,useExisting:n}])]})}return n})(),ue=new D("MatTabLabel"),qt=new D("MAT_TAB"),fe=(()=>{class n extends Qt{_closestTab=r(qt,{optional:!0});static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275dir=I({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[S([{provide:ue,useExisting:n}]),L]})}return n})(),Zt=new D("MAT_TAB_GROUP"),ge=(()=>{class n{_viewContainerRef=r(Dt);_closestTabGroup=r(Zt,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new F;position=null;origin=null;isActive=!1;constructor(){r(Et).load(zt)}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ot(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=P({type:n,selectors:[["mat-tab"]],contentQueries:function(e,a,i){if(e&1&&(A(i,fe,5),A(i,_e,7,W)),e&2){let o;m(o=b())&&(a.templateLabel=o.first),m(o=b())&&(a._explicitContent=o.first)}},viewQuery:function(e,a){if(e&1&&p(W,7),e&2){let i;m(i=b())&&(a._implicitContent=i.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(e,a){e&2&&k("id",null)},inputs:{disabled:[2,"disabled","disabled",_],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[S([{provide:qt,useExisting:n}]),xt],ngContentSelectors:pt,decls:1,vars:0,template:function(e,a){e&1&&($(),R(0,Xt,1,0,"ng-template"))},encapsulation:2})}return n})(),ct="mdc-tab-indicator--active",jt="mdc-tab-indicator--no-transition",mt=class{_items;_currentItem;constructor(d){this._items=d}hide(){this._items.forEach(d=>d.deactivateInkBar()),this._currentItem=void 0}alignToElement(d){let t=this._items.find(a=>a.elementRef.nativeElement===d),e=this._currentItem;if(t!==e&&(e?.deactivateInkBar(),t)){let a=e?.elementRef.nativeElement.getBoundingClientRect?.();t.activateInkBar(a),this._currentItem=t}}},ve=(()=>{class n{_elementRef=r(M);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let e=this._elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement){e.classList.add(ct);return}let a=e.getBoundingClientRect(),i=t.width/a.width,o=t.left-a.left;e.classList.add(jt),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${i})`),e.getBoundingClientRect(),e.classList.remove(jt),e.classList.add(ct),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ct)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,e=this._inkBarElement=t.createElement("span"),a=this._inkBarContentElement=t.createElement("span");e.className="mdc-tab-indicator",a.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",e.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_]}})}return n})();var Kt=(()=>{class n extends ve{elementRef=r(M);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275dir=I({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,a){e&2&&(k("aria-disabled",!!a.disabled),g("mat-mdc-tab-disabled",a.disabled))},inputs:{disabled:[2,"disabled","disabled",_]},features:[L]})}return n})(),Gt={passive:!0},ye=650,ke=100,Te=(()=>{class n{_elementRef=r(M);_changeDetectorRef=r(Z);_viewportRuler=r(Nt);_dir=r(ot,{optional:!0});_ngZone=r(O);_platform=r(rt);_sharedResizeObserver=r(Wt);_injector=r(U);_renderer=r(X);_animationMode=r(Q,{optional:!0});_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new F;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new F;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let e=isNaN(t)?0:t;this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}_selectedIndex=0;selectFocusedIndex=new u;indexFocused=new u;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(nt(this._renderer,this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),Gt),nt(this._renderer,this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),Gt))}ngAfterContentInit(){let t=this._dir?this._dir.change:gt("ltr"),e=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(kt(32),B(this._destroyed)),a=this._viewportRuler.change(150).pipe(B(this._destroyed)),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ht(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),z(i,{injector:this._injector}),H(t,a,e,this._items.changes,this._itemsResized()).pipe(B(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),i()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return typeof ResizeObserver!="function"?ft:this._items.changes.pipe(V(this._items),Ct(t=>new ut(e=>this._ngZone.runOutsideAngular(()=>{let a=new ResizeObserver(i=>e.next(i));return t.forEach(i=>a.observe(i.elementRef.nativeElement)),()=>{a.disconnect()}}))),Tt(1),yt(t=>t.some(e=>e.contentRect.width>0&&e.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(t=>t()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Ft(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let e=this._items.get(this.focusIndex);e&&!e.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager?.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let e=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?e.scrollLeft=0:e.scrollLeft=e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,e=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let e=this._tabListContainer.nativeElement.offsetWidth,a=(t=="before"?-1:1)*e/3;return this._scrollTo(this._scrollDistance+a)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let e=this._items?this._items.toArray()[t]:null;if(!e)return;let a=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:o}=e.elementRef.nativeElement,s,w;this._getLayoutDirection()=="ltr"?(s=i,w=s+o):(w=this._tabListInner.nativeElement.offsetWidth-i,s=w-o);let Y=this.scrollDistance,_t=this.scrollDistance+a;s<Y?this.scrollDistance-=Y-s:w>_t&&(this.scrollDistance+=Math.min(w-_t,s-Y))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,e=this._elementRef.nativeElement.offsetWidth,a=t-e>=5;a||(this.scrollDistance=0),a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,e=this._tabListContainer.nativeElement.offsetWidth;return t-e||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&e.button!=null&&e.button!==0||(this._stopInterval(),vt(ye,ke).pipe(B(H(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:a,distance:i}=this._scrollHeader(t);(i===0||i>=a)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,inputs:{disablePagination:[2,"disablePagination","disablePagination",_],selectedIndex:[2,"selectedIndex","selectedIndex",K]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return n})(),Ce=(()=>{class n extends Te{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new mt(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275cmp=P({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,a,i){if(e&1&&A(i,Kt,4),e&2){let o;m(o=b())&&(a._items=o)}},viewQuery:function(e,a){if(e&1&&(p(Jt,7),p(te,7),p(ee,7),p(ae,5),p(ie,5)),e&2){let i;m(i=b())&&(a._tabListContainer=i.first),m(i=b())&&(a._tabList=i.first),m(i=b())&&(a._tabListInner=i.first),m(i=b())&&(a._nextPaginator=i.first),m(i=b())&&(a._previousPaginator=i.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,a){e&2&&g("mat-mdc-tab-header-pagination-controls-enabled",a._showPaginationControls)("mat-mdc-tab-header-rtl",a._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",_]},features:[L],ngContentSelectors:pt,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(e,a){if(e&1){let i=E();$(),h(0,"div",5,0),C("click",function(){return l(i),c(a._handlePaginatorClick("before"))})("mousedown",function(s){return l(i),c(a._handlePaginatorPress("before",s))})("touchend",function(){return l(i),c(a._stopInterval())}),G(2,"div",6),y(),h(3,"div",7,1),C("keydown",function(s){return l(i),c(a._handleKeydown(s))}),h(5,"div",8,2),C("cdkObserveContent",function(){return l(i),c(a._onContentChanges())}),h(7,"div",9,3),q(9),y()()(),h(10,"div",10,4),C("mousedown",function(s){return l(i),c(a._handlePaginatorPress("after",s))})("click",function(){return l(i),c(a._handlePaginatorClick("after"))})("touchend",function(){return l(i),c(a._stopInterval())}),G(12,"div",6),y()}e&2&&(g("mat-mdc-tab-header-pagination-disabled",a._disableScrollBefore),T("matRippleDisabled",a._disableScrollBefore||a.disableRipple),f(3),g("_mat-animation-noopable",a._animationMode==="NoopAnimations"),f(2),k("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null),f(5),g("mat-mdc-tab-header-pagination-disabled",a._disableScrollAfter),T("matRippleDisabled",a._disableScrollAfter||a.disableRipple))},dependencies:[lt,At],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}
1
+ import{a as zt,e as lt,g as Wt}from"./chunk-KMVWE6IR.js";import{B as Ht,F as ot,I as Vt,J as Nt,N as Ot,Q as Qt,R as st,f as nt,fa as dt,g as rt,m as Lt,n as Et,r as At,y as St,z as Ft}from"./chunk-4IJDCXOA.js";import{$ as V,$a as f,$b as b,B as vt,Ba as U,D as H,Db as J,E as yt,Fa as u,Fb as tt,Ga as O,Gb as et,Hb as at,Ib as h,Ic as Z,Jb as y,Ka as M,Kb as G,Kc as _,Lc as K,M as kt,Na as It,Ob as E,Qa as Q,Qb as C,Rb as v,Sb as $,Ta as z,Tb as q,Yb as A,Z as Tt,Zb as p,_b as m,a as x,aa as Ct,ab as W,c as ut,cb as X,d as F,da as B,dc as it,ec as Bt,fb as Dt,fc as Pt,k as ft,ka as wt,kb as P,la as D,lb as Mt,mb as I,na as r,nc as S,o as gt,ob as L,qb as R,ua as xt,ub as k,va as l,vb as T,wa as c,wb as Rt,xb as g,za as N,zb as j}from"./chunk-ONCTFURX.js";var pt=["*"];function Xt(n,d){n&1&&q(0)}var Jt=["tabListContainer"],te=["tabList"],ee=["tabListInner"],ae=["nextPaginator"],ie=["previousPaginator"],ne=["content"];function re(n,d){}var oe=["tabBodyWrapper"],se=["tabHeader"];function de(n,d){}function le(n,d){if(n&1&&R(0,de,0,0,"ng-template",12),n&2){let t=v().$implicit;T("cdkPortalOutlet",t.templateLabel)}}function ce(n,d){if(n&1&&Bt(0),n&2){let t=v().$implicit;Pt(t.textLabel)}}function me(n,d){if(n&1){let t=E();h(0,"div",7,2),C("click",function(){let a=l(t),i=a.$implicit,o=a.$index,s=v(),w=it(1);return c(s._handleClick(i,w,o))})("cdkFocusChange",function(a){let i=l(t).$index,o=v();return c(o._tabFocusChanged(a,i))}),G(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),R(6,le,1,1,null,12)(7,ce,1,1),y()()()}if(n&2){let t=d.$implicit,e=d.$index,a=it(1),i=v();j(t.labelClass),g("mdc-tab--active",i.selectedIndex===e),T("id",i._getTabLabelId(t,e))("disabled",t.disabled)("fitInkBarToContent",i.fitInkBarToContent),k("tabIndex",i._getTabIndex(e))("aria-posinset",e+1)("aria-setsize",i._tabs.length)("aria-controls",i._getTabContentId(e))("aria-selected",i.selectedIndex===e)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),f(3),T("matRippleTrigger",a)("matRippleDisabled",t.disabled||i.disableRipple),f(3),J(t.templateLabel?6:7)}}function be(n,d){n&1&&q(0)}function he(n,d){if(n&1){let t=E();h(0,"mat-tab-body",13),C("_onCentered",function(){l(t);let a=v();return c(a._removeTabBodyWrapperHeight())})("_onCentering",function(a){l(t);let i=v();return c(i._setTabBodyWrapperHeight(a))})("_beforeCentering",function(a){l(t);let i=v();return c(i._bodyCentered(a))}),y()}if(n&2){let t=d.$implicit,e=d.$index,a=v();j(t.bodyClass),T("id",a._getTabContentId(e))("content",t.content)("position",t.position)("animationDuration",a.animationDuration)("preserveContent",a.preserveContent),k("tabindex",a.contentTabIndex!=null&&a.selectedIndex===e?a.contentTabIndex:null)("aria-labelledby",a._getTabLabelId(t,e))("aria-hidden",a.selectedIndex!==e)}}var pe=new D("MatTabContent"),_e=(()=>{class n{template=r(W);constructor(){}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,selectors:[["","matTabContent",""]],features:[S([{provide:pe,useExisting:n}])]})}return n})(),ue=new D("MatTabLabel"),qt=new D("MAT_TAB"),fe=(()=>{class n extends Qt{_closestTab=r(qt,{optional:!0});static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275dir=I({type:n,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[S([{provide:ue,useExisting:n}]),L]})}return n})(),Zt=new D("MAT_TAB_GROUP"),ge=(()=>{class n{_viewContainerRef=r(Dt);_closestTabGroup=r(Zt,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new F;position=null;origin=null;isActive=!1;constructor(){r(Et).load(zt)}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Ot(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&t._closestTab===this&&(this._templateLabel=t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=P({type:n,selectors:[["mat-tab"]],contentQueries:function(e,a,i){if(e&1&&(A(i,fe,5),A(i,_e,7,W)),e&2){let o;m(o=b())&&(a.templateLabel=o.first),m(o=b())&&(a._explicitContent=o.first)}},viewQuery:function(e,a){if(e&1&&p(W,7),e&2){let i;m(i=b())&&(a._implicitContent=i.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(e,a){e&2&&k("id",null)},inputs:{disabled:[2,"disabled","disabled",_],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[S([{provide:qt,useExisting:n}]),xt],ngContentSelectors:pt,decls:1,vars:0,template:function(e,a){e&1&&($(),R(0,Xt,1,0,"ng-template"))},encapsulation:2})}return n})(),ct="mdc-tab-indicator--active",jt="mdc-tab-indicator--no-transition",mt=class{_items;_currentItem;constructor(d){this._items=d}hide(){this._items.forEach(d=>d.deactivateInkBar()),this._currentItem=void 0}alignToElement(d){let t=this._items.find(a=>a.elementRef.nativeElement===d),e=this._currentItem;if(t!==e&&(e?.deactivateInkBar(),t)){let a=e?.elementRef.nativeElement.getBoundingClientRect?.();t.activateInkBar(a),this._currentItem=t}}},ve=(()=>{class n{_elementRef=r(M);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(t){this._fitToContent!==t&&(this._fitToContent=t,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(t){let e=this._elementRef.nativeElement;if(!t||!e.getBoundingClientRect||!this._inkBarContentElement){e.classList.add(ct);return}let a=e.getBoundingClientRect(),i=t.width/a.width,o=t.left-a.left;e.classList.add(jt),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${i})`),e.getBoundingClientRect(),e.classList.remove(jt),e.classList.add(ct),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(ct)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let t=this._elementRef.nativeElement.ownerDocument||document,e=this._inkBarElement=t.createElement("span"),a=this._inkBarContentElement=t.createElement("span");e.className="mdc-tab-indicator",a.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",e.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let t=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;t.appendChild(this._inkBarElement)}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_]}})}return n})();var Kt=(()=>{class n extends ve{elementRef=r(M);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275dir=I({type:n,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(e,a){e&2&&(k("aria-disabled",!!a.disabled),g("mat-mdc-tab-disabled",a.disabled))},inputs:{disabled:[2,"disabled","disabled",_]},features:[L]})}return n})(),Gt={passive:!0},ye=650,ke=100,Te=(()=>{class n{_elementRef=r(M);_changeDetectorRef=r(Z);_viewportRuler=r(Nt);_dir=r(ot,{optional:!0});_ngZone=r(O);_platform=r(rt);_sharedResizeObserver=r(Wt);_injector=r(U);_renderer=r(X);_animationMode=r(Q,{optional:!0});_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new F;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new F;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let e=isNaN(t)?0:t;this._selectedIndex!=e&&(this._selectedIndexChanged=!0,this._selectedIndex=e,this._keyManager&&this._keyManager.updateActiveItem(e))}_selectedIndex=0;selectFocusedIndex=new u;indexFocused=new u;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(nt(this._renderer,this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),Gt),nt(this._renderer,this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),Gt))}ngAfterContentInit(){let t=this._dir?this._dir.change:gt("ltr"),e=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(kt(32),B(this._destroyed)),a=this._viewportRuler.change(150).pipe(B(this._destroyed)),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Ht(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),z(i,{injector:this._injector}),H(t,a,e,this._items.changes,this._itemsResized()).pipe(B(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),i()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return typeof ResizeObserver!="function"?ft:this._items.changes.pipe(V(this._items),Ct(t=>new ut(e=>this._ngZone.runOutsideAngular(()=>{let a=new ResizeObserver(i=>e.next(i));return t.forEach(i=>a.observe(i.elementRef.nativeElement)),()=>{a.disconnect()}}))),Tt(1),yt(t=>t.some(e=>e.contentRect.width>0&&e.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(t=>t()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Ft(t))switch(t.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let e=this._items.get(this.focusIndex);e&&!e.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t))}break;default:this._keyManager?.onKeydown(t)}}_onContentChanges(){let t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){!this._isValidIndex(t)||this.focusIndex===t||!this._keyManager||this._keyManager.setActiveItem(t)}_isValidIndex(t){return this._items?!!this._items.toArray()[t]:!0}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();let e=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?e.scrollLeft=0:e.scrollLeft=e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let t=this.scrollDistance,e=this._getLayoutDirection()==="ltr"?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(e)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){let e=this._tabListContainer.nativeElement.offsetWidth,a=(t=="before"?-1:1)*e/3;return this._scrollTo(this._scrollDistance+a)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;let e=this._items?this._items.toArray()[t]:null;if(!e)return;let a=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:i,offsetWidth:o}=e.elementRef.nativeElement,s,w;this._getLayoutDirection()=="ltr"?(s=i,w=s+o):(w=this._tabListInner.nativeElement.offsetWidth-i,s=w-o);let Y=this.scrollDistance,_t=this.scrollDistance+a;s<Y?this.scrollDistance-=Y-s:w>_t&&(this.scrollDistance+=Math.min(w-_t,s-Y))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let t=this._tabListInner.nativeElement.scrollWidth,e=this._elementRef.nativeElement.offsetWidth,a=t-e>=5;a||(this.scrollDistance=0),a!==this._showPaginationControls&&(this._showPaginationControls=a,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let t=this._tabListInner.nativeElement.scrollWidth,e=this._tabListContainer.nativeElement.offsetWidth;return t-e||0}_alignInkBarToSelectedTab(){let t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&e.button!=null&&e.button!==0||(this._stopInterval(),vt(ye,ke).pipe(B(H(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:a,distance:i}=this._scrollHeader(t);(i===0||i>=a)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,inputs:{disablePagination:[2,"disablePagination","disablePagination",_],selectedIndex:[2,"selectedIndex","selectedIndex",K]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return n})(),Ce=(()=>{class n extends Te{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new mt(this._items),super.ngAfterContentInit()}_itemSelected(t){t.preventDefault()}static \u0275fac=(()=>{let t;return function(a){return(t||(t=N(n)))(a||n)}})();static \u0275cmp=P({type:n,selectors:[["mat-tab-header"]],contentQueries:function(e,a,i){if(e&1&&A(i,Kt,4),e&2){let o;m(o=b())&&(a._items=o)}},viewQuery:function(e,a){if(e&1&&(p(Jt,7),p(te,7),p(ee,7),p(ae,5),p(ie,5)),e&2){let i;m(i=b())&&(a._tabListContainer=i.first),m(i=b())&&(a._tabList=i.first),m(i=b())&&(a._tabListInner=i.first),m(i=b())&&(a._nextPaginator=i.first),m(i=b())&&(a._previousPaginator=i.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(e,a){e&2&&g("mat-mdc-tab-header-pagination-controls-enabled",a._showPaginationControls)("mat-mdc-tab-header-rtl",a._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",_]},features:[L],ngContentSelectors:pt,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(e,a){if(e&1){let i=E();$(),h(0,"div",5,0),C("click",function(){return l(i),c(a._handlePaginatorClick("before"))})("mousedown",function(s){return l(i),c(a._handlePaginatorPress("before",s))})("touchend",function(){return l(i),c(a._stopInterval())}),G(2,"div",6),y(),h(3,"div",7,1),C("keydown",function(s){return l(i),c(a._handleKeydown(s))}),h(5,"div",8,2),C("cdkObserveContent",function(){return l(i),c(a._onContentChanges())}),h(7,"div",9,3),q(9),y()()(),h(10,"div",10,4),C("mousedown",function(s){return l(i),c(a._handlePaginatorPress("after",s))})("click",function(){return l(i),c(a._handlePaginatorClick("after"))})("touchend",function(){return l(i),c(a._stopInterval())}),G(12,"div",6),y()}e&2&&(g("mat-mdc-tab-header-pagination-disabled",a._disableScrollBefore),T("matRippleDisabled",a._disableScrollBefore||a.disableRipple),f(3),g("_mat-animation-noopable",a._animationMode==="NoopAnimations"),f(2),k("aria-label",a.ariaLabel||null)("aria-labelledby",a.ariaLabelledby||null),f(5),g("mat-mdc-tab-header-pagination-disabled",a._disableScrollAfter),T("matRippleDisabled",a._disableScrollAfter||a.disableRipple))},dependencies:[lt,At],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-header-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-header-divider-height, 1px);border-bottom-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-header-divider-height, 1px);border-top-color:var(--mat-tab-header-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mdc-secondary-navigation-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}
2
2
  `],encapsulation:2})}return n})(),we=new D("MAT_TABS_CONFIG"),$t=(()=>{class n extends st{_host=r(bt);_centeringSub=x.EMPTY;_leavingSub=x.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(V(this._host._isCenterPosition())).subscribe(t=>{this._host._content&&t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(e){return new(e||n)};static \u0275dir=I({type:n,selectors:[["","matTabBodyHost",""]],features:[L]})}return n})(),bt=(()=>{class n{_elementRef=r(M);_dir=r(ot,{optional:!0});_ngZone=r(O);_injector=r(U);_renderer=r(X);_animationsModule=r(Q,{optional:!0});_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=x.EMPTY;_position;_previousPosition;_onCentering=new u;_beforeCentering=new u;_afterLeavingCenter=new u;_onCentered=new u(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(t){this._positionIndex=t,this._computePositionAnimationState()}constructor(){if(this._dir){let t=r(Z);this._dirChangeSubscription=this._dir.change.subscribe(e=>{this._computePositionAnimationState(e),t.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),z(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(t=>t()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let t=this._elementRef.nativeElement,e=a=>{a.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),a.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(t,"transitionstart",a=>{a.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(t,"transitionend",e),this._renderer.listen(t,"transitioncancel",e)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let t=this._position==="center";this._beforeCentering.emit(t),t&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(t){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",t)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(t=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=t=="ltr"?"left":"right":this._positionIndex>0?this._position=t=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),z(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._animationsModule==="NoopAnimations"||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=P({type:n,selectors:[["mat-tab-body"]],viewQuery:function(e,a){if(e&1&&(p($t,5),p(ne,5)),e&2){let i;m(i=b())&&(a._portalHost=i.first),m(i=b())&&(a._contentElement=i.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(e,a){e&2&&k("inert",a._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(e,a){e&1&&(h(0,"div",1,0),R(2,re,0,0,"ng-template",2),y()),e&2&&g("mat-tab-body-content-left",a._position==="left")("mat-tab-body-content-right",a._position==="right")("mat-tab-body-content-can-animate",a._position==="center"||a._previousPosition==="center")},dependencies:[$t,Vt],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}
3
3
  `],encapsulation:2})}return n})(),ra=(()=>{class n{_elementRef=r(M);_changeDetectorRef=r(Z);_ngZone=r(O);_tabsSubscription=x.EMPTY;_tabLabelSubscription=x.EMPTY;_tabBodySubscription=x.EMPTY;_diAnimationsDisabled=r(Q,{optional:!0})==="NoopAnimations";_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new It;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(t){this._fitInkBarToContent=t,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=isNaN(t)?null:t}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(t){let e=t+"";this._animationDuration=/^\d+$/.test(e)?t+"ms":e}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(t){this._contentTabIndex=isNaN(t)?null:t}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(t){let e=this._elementRef.nativeElement.classList;e.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),t&&e.add("mat-tabs-with-background",`mat-background-${t}`),this._backgroundColor=t}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new u;focusChange=new u;animationDone=new u;selectedTabChange=new u(!0);_groupId;_isServer=!r(rt).isBrowser;constructor(){let t=r(we,{optional:!0});this._groupId=r(St).getId("mat-tab-group-"),this.animationDuration=t&&t.animationDuration?t.animationDuration:"500ms",this.disablePagination=t&&t.disablePagination!=null?t.disablePagination:!1,this.dynamicHeight=t&&t.dynamicHeight!=null?t.dynamicHeight:!1,t?.contentTabIndex!=null&&(this.contentTabIndex=t.contentTabIndex),this.preserveContent=!!t?.preserveContent,this.fitInkBarToContent=t&&t.fitInkBarToContent!=null?t.fitInkBarToContent:!1,this.stretchTabs=t&&t.stretchTabs!=null?t.stretchTabs:!0,this.alignTabs=t&&t.alignTabs!=null?t.alignTabs:null}ngAfterContentChecked(){let t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){let e=this._selectedIndex==null;if(!e){this.selectedTabChange.emit(this._createChangeEvent(t));let a=this._tabBodyWrapper.nativeElement;a.style.minHeight=a.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((a,i)=>a.isActive=i===t),e||(this.selectedIndexChange.emit(t),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((e,a)=>{e.position=a-t,this._selectedIndex!=null&&e.position==0&&!e.origin&&(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let t=this._clampTabIndex(this._indexToSelect);if(t===this._selectedIndex){let e=this._tabs.toArray(),a;for(let i=0;i<e.length;i++)if(e[i].isActive){this._indexToSelect=this._selectedIndex=i,this._lastFocusedTabIndex=null,a=e[i];break}!a&&e[t]&&Promise.resolve().then(()=>{e[t].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(t))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(V(this._allTabs)).subscribe(t=>{this._tabs.reset(t.filter(e=>e._closestTabGroup===this||!e._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(t){let e=this._tabHeader;e&&(e.focusIndex=t)}_focusChanged(t){this._lastFocusedTabIndex=t,this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){let e=new ht;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=H(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t,e){return t.id||`${this._groupId}-label-${e}`}_getTabContentId(t){return`${this._groupId}-content-${t}`}_setTabBodyWrapperHeight(t){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=t;return}let e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){let t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(t,e,a){e.focusIndex=a,t.disabled||(this.selectedIndex=a)}_getTabIndex(t){let e=this._lastFocusedTabIndex??this.selectedIndex;return t===e?0:-1}_tabFocusChanged(t,e){t&&t!=="mouse"&&t!=="touch"&&(this._tabHeader.focusIndex=e)}_bodyCentered(t){t&&this._tabBodies?.forEach((e,a)=>e._setActiveClass(a===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=P({type:n,selectors:[["mat-tab-group"]],contentQueries:function(e,a,i){if(e&1&&A(i,ge,5),e&2){let o;m(o=b())&&(a._allTabs=o)}},viewQuery:function(e,a){if(e&1&&(p(oe,5),p(se,5),p(bt,5)),e&2){let i;m(i=b())&&(a._tabBodyWrapper=i.first),m(i=b())&&(a._tabHeader=i.first),m(i=b())&&(a._tabBodies=i)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(e,a){e&2&&(k("mat-align-tabs",a.alignTabs),j("mat-"+(a.color||"primary")),Rt("--mat-tab-animation-duration",a.animationDuration),g("mat-mdc-tab-group-dynamic-height",a.dynamicHeight)("mat-mdc-tab-group-inverted-header",a.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",a.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",_],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",_],selectedIndex:[2,"selectedIndex","selectedIndex",K],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",K],disablePagination:[2,"disablePagination","disablePagination",_],disableRipple:[2,"disableRipple","disableRipple",_],preserveContent:[2,"preserveContent","preserveContent",_],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[S([{provide:Zt,useExisting:n}])],ngContentSelectors:pt,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(e,a){if(e&1){let i=E();$(),h(0,"mat-tab-header",3,0),C("indexFocused",function(s){return l(i),c(a._focusChanged(s))})("selectFocusedIndex",function(s){return l(i),c(a.selectedIndex=s)}),et(2,me,8,17,"div",4,tt),y(),R(4,be,1,0),h(5,"div",5,1),et(7,he,1,10,"mat-tab-body",6,tt),y()}e&2&&(T("selectedIndex",a.selectedIndex||0)("disableRipple",a.disableRipple)("disablePagination",a.disablePagination)("aria-label",a.ariaLabel)("aria-labelledby",a.ariaLabelledby),f(2),at(a._tabs),f(2),J(a._isServer?4:-1),f(),g("_mat-animation-noopable",a._animationsDisabled()),f(2),at(a._tabs))},dependencies:[Ce,Kt,Lt,lt,st,bt],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mdc-secondary-navigation-tab-container-height, 48px);font-family:var(--mat-tab-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-header-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-header-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-header-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-header-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mdc-tab-indicator-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mdc-tab-indicator-active-indicator-height, 2px);border-radius:var(--mdc-tab-indicator-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-header-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-header-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-header-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-header-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-header-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-header-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-header-disabled-ripple-color)}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-header-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-header-with-background-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-header-with-background-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}
4
4
  `],encapsulation:2})}return n})(),ht=class{index;tab};var oa=(()=>{class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=Mt({type:n});static \u0275inj=wt({imports:[dt,dt]})}return n})();export{_e as a,fe as b,ge as c,ra as d,oa as e};
@@ -1 +1 @@
1
- import{c as F,d as H}from"./chunk-POKWPMMW.js";import{a as N,b as P}from"./chunk-RCUV6EEF.js";import{ja as E}from"./chunk-NEEN2JO2.js";import{D as k,h as j,o as A}from"./chunk-LNLGRZBB.js";import{a as G}from"./chunk-MP62IGYR.js";import{$a as p,Fa as v,Ib as u,Jb as i,Qb as _,Rb as w,Wd as s,Xc as M,Y as g,ad as x,ca as S,d as f,db as a,ec as h,fa as b,gc as T,hd as $,ja as I,kb as y,na as C,o as O,qb as d,vb as m,xc as D,yc as L}from"./chunk-EDB2BAIG.js";var c=class l{http=C(s);onOpenTreeSelector$=new f;outletGroups$=this.onOpenTreeSelector$.pipe(S(e=>e.length?O(e):this.http.get("/API/outlet/ActiveOptions"),[]),g(1));constructor(){}loadOutletGroups(){this.onOpenTreeSelector$.next()}static \u0275fac=function(t){return new(t||l)};static \u0275prov=I({token:l,factory:l.\u0275fac,providedIn:"root"})};function q(l,e){if(l&1&&(u(0,"div"),h(1),i()),l&2){let t=w();p(),T(" ",t.selectedOutletGroupLabel," ")}}function z(l,e){l&1&&(u(0,"label",4),h(1,"Outlet Group"),i())}var R=class l{constructor(e,t){this.http=e;this.outletGroup=t}outletGroups=[];showClear=!1;showLabel=!1;selectedOutletGroup;selectedOutletGroupID;selectedOutletGroupIDChange=new v;selectedOutletGroupLabel;isLoadOutletGroups=!1;top=0;outletGroups$;ngAfterViewInit(){let e=document.querySelector("body");this.top=e.getBoundingClientRect().top*-1}ngOnInit(){this.outletGroups.length>0&&(G.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(b(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let t=[];this.selectedOutletGroupLabel="";do t=[...t,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=t.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,t){if(G.IsNotEmpty(t))for(let o of e){if(o.key===t)return o;{o.children=o.children?o.children:[],o.children=o.children.map(n=>(n.parent=o,n));let r=this.findSelectedOutletGroup(o.children,t);if(r)return r}}else return null}loadOutletGroups(){let e=document.querySelector(".p-overlay.p-component"),t=this.top+e.getBoundingClientRect().top,o=e.getAttribute("style")||"";e.setAttribute("style",`${o} top: ${t+this.top}px;`),this.outletGroup.loadOutletGroups()}onClear(){this.selectedOutletGroupID=null,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static \u0275fac=function(t){return new(t||l)(a(s),a(c))};static \u0275cmp=y({type:l,selectors:[["POS-outlet-group-tree-select"]],inputs:{outletGroups:"outletGroups",showClear:"showClear",showLabel:"showLabel",selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:5,vars:6,consts:[["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectOutletGroup",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup",4,"ngIf"],["for","selectOutletGroup"]],template:function(t,o){t&1&&(u(0,"p-floatlabel",0)(1,"p-treeSelect",1),D(2,"async"),_("click",function(){return o.loadOutletGroups()})("ngModelChange",function(n){return o.onSelectOutletGroup(n)})("onClear",function(){return o.onClear()}),d(3,q,2,1,"ng-template",2),i(),d(4,z,2,0,"label",3),i()),t&2&&(p(),m("options",L(2,4,o.outletGroups$))("ngModel",o.selectedOutletGroup)("showClear",o.showClear),p(3),m("ngIf",o.showLabel))},dependencies:[$,M,x,H,F,E,k,j,A,P,N],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important}"]})};export{R as a};
1
+ import{c as F,d as H}from"./chunk-DS5ZUU74.js";import{a as N,b as P}from"./chunk-VFMAQOEX.js";import{ja as E}from"./chunk-WUSKRV4R.js";import{D as k,h as j,o as A}from"./chunk-J577JGRK.js";import{a as G}from"./chunk-EQ6536VC.js";import{$a as p,Fa as v,Ib as u,Jb as i,Qb as _,Rb as w,Wd as s,Xc as M,Y as g,ad as x,ca as S,d as f,db as a,ec as h,fa as b,gc as T,hd as $,ja as I,kb as y,na as C,o as O,qb as d,vb as m,xc as D,yc as L}from"./chunk-ONCTFURX.js";var c=class l{http=C(s);onOpenTreeSelector$=new f;outletGroups$=this.onOpenTreeSelector$.pipe(S(e=>e.length?O(e):this.http.get("/API/outlet/ActiveOptions"),[]),g(1));constructor(){}loadOutletGroups(){this.onOpenTreeSelector$.next()}static \u0275fac=function(t){return new(t||l)};static \u0275prov=I({token:l,factory:l.\u0275fac,providedIn:"root"})};function q(l,e){if(l&1&&(u(0,"div"),h(1),i()),l&2){let t=w();p(),T(" ",t.selectedOutletGroupLabel," ")}}function z(l,e){l&1&&(u(0,"label",4),h(1,"Outlet Group"),i())}var R=class l{constructor(e,t){this.http=e;this.outletGroup=t}outletGroups=[];showClear=!1;showLabel=!1;selectedOutletGroup;selectedOutletGroupID;selectedOutletGroupIDChange=new v;selectedOutletGroupLabel;isLoadOutletGroups=!1;top=0;outletGroups$;ngAfterViewInit(){let e=document.querySelector("body");this.top=e.getBoundingClientRect().top*-1}ngOnInit(){this.outletGroups.length>0&&(G.IsEmpty(this.selectedOutletGroupID)&&(this.selectedOutletGroupID=this.outletGroups[0]?.key),this.selectedOutletGroup=this.findSelectedOutletGroup(this.outletGroups,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)),this.outletGroups$=this.outletGroup.outletGroups$.pipe(b(e=>{console.log(e),this.selectedOutletGroup=this.findSelectedOutletGroup(e,this.selectedOutletGroupID),this.generateLabelSelectedOutletGroup(this.selectedOutletGroup)}))}onSelectOutletGroup(e){this.selectedOutletGroup=e,this.generateLabelSelectedOutletGroup(this.selectedOutletGroup),this.selectedOutletGroupID=e?.key,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}generateLabelSelectedOutletGroup(e){if(e){let t=[];this.selectedOutletGroupLabel="";do t=[...t,e.label],e=e.parent;while(e!==void 0);this.selectedOutletGroupLabel=t.reverse().join("/")}else this.selectedOutletGroupLabel="Select OutletGroup"}findSelectedOutletGroup(e,t){if(G.IsNotEmpty(t))for(let o of e){if(o.key===t)return o;{o.children=o.children?o.children:[],o.children=o.children.map(n=>(n.parent=o,n));let r=this.findSelectedOutletGroup(o.children,t);if(r)return r}}else return null}loadOutletGroups(){let e=document.querySelector(".p-overlay.p-component"),t=this.top+e.getBoundingClientRect().top,o=e.getAttribute("style")||"";e.setAttribute("style",`${o} top: ${t+this.top}px;`),this.outletGroup.loadOutletGroups()}onClear(){this.selectedOutletGroupID=null,this.selectedOutletGroupIDChange.emit(this.selectedOutletGroupID)}static \u0275fac=function(t){return new(t||l)(a(s),a(c))};static \u0275cmp=y({type:l,selectors:[["POS-outlet-group-tree-select"]],inputs:{outletGroups:"outletGroups",showClear:"showClear",showLabel:"showLabel",selectedOutletGroupID:"selectedOutletGroupID"},outputs:{selectedOutletGroupIDChange:"selectedOutletGroupIDChange"},decls:5,vars:6,consts:[["variant","on",1,"w-full","md:w-80"],["appendTo","body","inputId","selectOutletGroup","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectOutletGroup",3,"click","ngModelChange","onClear","options","ngModel","showClear"],["pTemplate","value"],["for","selectOutletGroup",4,"ngIf"],["for","selectOutletGroup"]],template:function(t,o){t&1&&(u(0,"p-floatlabel",0)(1,"p-treeSelect",1),D(2,"async"),_("click",function(){return o.loadOutletGroups()})("ngModelChange",function(n){return o.onSelectOutletGroup(n)})("onClear",function(){return o.onClear()}),d(3,q,2,1,"ng-template",2),i(),d(4,z,2,0,"label",3),i()),t&2&&(p(),m("options",L(2,4,o.outletGroups$))("ngModel",o.selectedOutletGroup)("showClear",o.showClear),p(3),m("ngIf",o.showLabel))},dependencies:[$,M,x,H,F,E,k,j,A,P,N],styles:[".p-overlay.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important}"]})};export{R as a};
@@ -1,4 +1,4 @@
1
- import{a as te}from"./chunk-YQGBGJ5U.js";import{a as ie}from"./chunk-7COMDF6M.js";import{ca as W,ja as X,ka as x,la as Y,sa as ee}from"./chunk-NEEN2JO2.js";import{$a as a,$b as V,$c as U,Dc as Z,Fa as w,Ib as p,Jb as m,Kb as u,Kc as q,Lb as T,Mb as k,Ob as C,Qb as v,Rb as r,Sb as O,Tb as A,Uc as H,Wa as D,Xc as G,Yb as $,_b as E,dc as R,ec as N,fc as Q,hd as J,ja as M,ka as S,kb as b,lb as B,na as F,nc as K,ob as I,qb as d,ua as L,ub as s,va as _,vb as c,wa as h,wb as j,xa as P,yb as z,za as g,zb as f}from"./chunk-EDB2BAIG.js";var ne=(()=>{class e extends te{pathId;ngOnInit(){this.pathId="url(#"+W()+")"}static \u0275fac=(()=>{let i;return function(n){return(i||(i=g(e)))(n||e)}})();static \u0275cmp=b({type:e,selectors:[["TimesCircleIcon"]],features:[I],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(P(),p(0,"svg",0)(1,"g"),u(2,"path",1),m(),p(3,"defs")(4,"clipPath",2),u(5,"rect",3),m()()()),t&2&&(f(n.getClassNames()),s("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),a(),s("clip-path",n.pathId),a(3),c("id",n.pathId))},encapsulation:2})}return e})();var ce=["removeicon"],ae=["*"];function le(e,l){if(e&1){let i=C();p(0,"img",4),v("error",function(n){_(i);let o=r();return h(o.imageError(n))}),m()}if(e&2){let i=r();c("src",i.image,D)("alt",i.alt)}}function se(e,l){if(e&1&&u(0,"span",6),e&2){let i=r(2);f(i.icon),c("ngClass","p-chip-icon"),s("data-pc-section","icon")}}function pe(e,l){if(e&1&&d(0,se,1,4,"span",5),e&2){let i=r();c("ngIf",i.icon)}}function me(e,l){if(e&1&&(p(0,"div",7),N(1),m()),e&2){let i=r();s("data-pc-section","label"),a(),Q(i.label)}}function _e(e,l){if(e&1){let i=C();p(0,"span",11),v("click",function(n){_(i);let o=r(3);return h(o.close(n))})("keydown",function(n){_(i);let o=r(3);return h(o.onKeydown(n))}),m()}if(e&2){let i=r(3);f(i.removeIcon),c("ngClass","p-chip-remove-icon"),s("data-pc-section","removeicon")("aria-label",i.removeAriaLabel)}}function he(e,l){if(e&1){let i=C();p(0,"TimesCircleIcon",12),v("click",function(n){_(i);let o=r(3);return h(o.close(n))})("keydown",function(n){_(i);let o=r(3);return h(o.onKeydown(n))}),m()}if(e&2){let i=r(3);f("p-chip-remove-icon"),s("data-pc-section","removeicon")("aria-label",i.removeAriaLabel)}}function de(e,l){if(e&1&&(T(0),d(1,_e,1,5,"span",9)(2,he,1,4,"TimesCircleIcon",10),k()),e&2){let i=r(2);a(),c("ngIf",i.removeIcon),a(),c("ngIf",!i.removeIcon)}}function fe(e,l){}function ge(e,l){e&1&&d(0,fe,0,0,"ng-template")}function ue(e,l){if(e&1){let i=C();p(0,"span",13),v("click",function(n){_(i);let o=r(2);return h(o.close(n))})("keydown",function(n){_(i);let o=r(2);return h(o.onKeydown(n))}),d(1,ge,1,0,null,14),m()}if(e&2){let i=r(2);s("data-pc-section","removeicon")("aria-label",i.removeAriaLabel),a(),c("ngTemplateOutlet",i.removeIconTemplate||i._removeIconTemplate)}}function Ce(e,l){if(e&1&&(T(0),d(1,de,3,2,"ng-container",3)(2,ue,2,3,"span",8),k()),e&2){let i=r();a(),c("ngIf",!i.removeIconTemplate&&!i._removeIconTemplate),a(),c("ngIf",i.removeIconTemplate||i._removeIconTemplate)}}var ve=({dt:e})=>`
1
+ import{a as te}from"./chunk-GDLTEIKV.js";import{a as ie}from"./chunk-O4T67QQ3.js";import{ca as W,ja as X,ka as x,la as Y,sa as ee}from"./chunk-WUSKRV4R.js";import{$a as a,$b as V,$c as U,Dc as Z,Fa as w,Ib as p,Jb as m,Kb as u,Kc as q,Lb as T,Mb as k,Ob as C,Qb as v,Rb as r,Sb as O,Tb as A,Uc as H,Wa as D,Xc as G,Yb as $,_b as E,dc as R,ec as N,fc as Q,hd as J,ja as M,ka as S,kb as b,lb as B,na as F,nc as K,ob as I,qb as d,ua as L,ub as s,va as _,vb as c,wa as h,wb as j,xa as P,yb as z,za as g,zb as f}from"./chunk-ONCTFURX.js";var ne=(()=>{class e extends te{pathId;ngOnInit(){this.pathId="url(#"+W()+")"}static \u0275fac=(()=>{let i;return function(n){return(i||(i=g(e)))(n||e)}})();static \u0275cmp=b({type:e,selectors:[["TimesCircleIcon"]],features:[I],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14C5.61553 14 4.26215 13.5895 3.11101 12.8203C1.95987 12.0511 1.06266 10.9579 0.532846 9.67879C0.00303296 8.3997 -0.13559 6.99224 0.134506 5.63437C0.404603 4.2765 1.07129 3.02922 2.05026 2.05026C3.02922 1.07129 4.2765 0.404603 5.63437 0.134506C6.99224 -0.13559 8.3997 0.00303296 9.67879 0.532846C10.9579 1.06266 12.0511 1.95987 12.8203 3.11101C13.5895 4.26215 14 5.61553 14 7C14 8.85652 13.2625 10.637 11.9497 11.9497C10.637 13.2625 8.85652 14 7 14ZM7 1.16667C5.84628 1.16667 4.71846 1.50879 3.75918 2.14976C2.79989 2.79074 2.05222 3.70178 1.61071 4.76768C1.16919 5.83358 1.05367 7.00647 1.27876 8.13803C1.50384 9.26958 2.05941 10.309 2.87521 11.1248C3.69102 11.9406 4.73042 12.4962 5.86198 12.7212C6.99353 12.9463 8.16642 12.8308 9.23232 12.3893C10.2982 11.9478 11.2093 11.2001 11.8502 10.2408C12.4912 9.28154 12.8333 8.15373 12.8333 7C12.8333 5.45291 12.2188 3.96918 11.1248 2.87521C10.0308 1.78125 8.5471 1.16667 7 1.16667ZM4.66662 9.91668C4.58998 9.91704 4.51404 9.90209 4.44325 9.87271C4.37246 9.84333 4.30826 9.8001 4.2544 9.74557C4.14516 9.6362 4.0838 9.48793 4.0838 9.33335C4.0838 9.17876 4.14516 9.0305 4.2544 8.92113L6.17553 7L4.25443 5.07891C4.15139 4.96832 4.09529 4.82207 4.09796 4.67094C4.10063 4.51982 4.16185 4.37563 4.26872 4.26876C4.3756 4.16188 4.51979 4.10066 4.67091 4.09799C4.82204 4.09532 4.96829 4.15142 5.07887 4.25446L6.99997 6.17556L8.92106 4.25446C9.03164 4.15142 9.1779 4.09532 9.32903 4.09799C9.48015 4.10066 9.62434 4.16188 9.73121 4.26876C9.83809 4.37563 9.89931 4.51982 9.90198 4.67094C9.90464 4.82207 9.84855 4.96832 9.74551 5.07891L7.82441 7L9.74554 8.92113C9.85478 9.0305 9.91614 9.17876 9.91614 9.33335C9.91614 9.48793 9.85478 9.6362 9.74554 9.74557C9.69168 9.8001 9.62748 9.84333 9.55669 9.87271C9.4859 9.90209 9.40996 9.91704 9.33332 9.91668C9.25668 9.91704 9.18073 9.90209 9.10995 9.87271C9.03916 9.84333 8.97495 9.8001 8.9211 9.74557L6.99997 7.82444L5.07884 9.74557C5.02499 9.8001 4.96078 9.84333 4.88999 9.87271C4.81921 9.90209 4.74326 9.91704 4.66662 9.91668Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(t,n){t&1&&(P(),p(0,"svg",0)(1,"g"),u(2,"path",1),m(),p(3,"defs")(4,"clipPath",2),u(5,"rect",3),m()()()),t&2&&(f(n.getClassNames()),s("aria-label",n.ariaLabel)("aria-hidden",n.ariaHidden)("role",n.role),a(),s("clip-path",n.pathId),a(3),c("id",n.pathId))},encapsulation:2})}return e})();var ce=["removeicon"],ae=["*"];function le(e,l){if(e&1){let i=C();p(0,"img",4),v("error",function(n){_(i);let o=r();return h(o.imageError(n))}),m()}if(e&2){let i=r();c("src",i.image,D)("alt",i.alt)}}function se(e,l){if(e&1&&u(0,"span",6),e&2){let i=r(2);f(i.icon),c("ngClass","p-chip-icon"),s("data-pc-section","icon")}}function pe(e,l){if(e&1&&d(0,se,1,4,"span",5),e&2){let i=r();c("ngIf",i.icon)}}function me(e,l){if(e&1&&(p(0,"div",7),N(1),m()),e&2){let i=r();s("data-pc-section","label"),a(),Q(i.label)}}function _e(e,l){if(e&1){let i=C();p(0,"span",11),v("click",function(n){_(i);let o=r(3);return h(o.close(n))})("keydown",function(n){_(i);let o=r(3);return h(o.onKeydown(n))}),m()}if(e&2){let i=r(3);f(i.removeIcon),c("ngClass","p-chip-remove-icon"),s("data-pc-section","removeicon")("aria-label",i.removeAriaLabel)}}function he(e,l){if(e&1){let i=C();p(0,"TimesCircleIcon",12),v("click",function(n){_(i);let o=r(3);return h(o.close(n))})("keydown",function(n){_(i);let o=r(3);return h(o.onKeydown(n))}),m()}if(e&2){let i=r(3);f("p-chip-remove-icon"),s("data-pc-section","removeicon")("aria-label",i.removeAriaLabel)}}function de(e,l){if(e&1&&(T(0),d(1,_e,1,5,"span",9)(2,he,1,4,"TimesCircleIcon",10),k()),e&2){let i=r(2);a(),c("ngIf",i.removeIcon),a(),c("ngIf",!i.removeIcon)}}function fe(e,l){}function ge(e,l){e&1&&d(0,fe,0,0,"ng-template")}function ue(e,l){if(e&1){let i=C();p(0,"span",13),v("click",function(n){_(i);let o=r(2);return h(o.close(n))})("keydown",function(n){_(i);let o=r(2);return h(o.onKeydown(n))}),d(1,ge,1,0,null,14),m()}if(e&2){let i=r(2);s("data-pc-section","removeicon")("aria-label",i.removeAriaLabel),a(),c("ngTemplateOutlet",i.removeIconTemplate||i._removeIconTemplate)}}function Ce(e,l){if(e&1&&(T(0),d(1,de,3,2,"ng-container",3)(2,ue,2,3,"span",8),k()),e&2){let i=r();a(),c("ngIf",!i.removeIconTemplate&&!i._removeIconTemplate),a(),c("ngIf",i.removeIconTemplate||i._removeIconTemplate)}}var ve=({dt:e})=>`
2
2
  .p-chip {
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -1 +1 @@
1
- import{P as c}from"./chunk-YJVLRBSS.js";import{I as s,Td as a,Wd as m,fa as p,ja as n,ma as o}from"./chunk-EDB2BAIG.js";var g=class i{constructor(t,e){this.httpService=t;this.toastr=e}_ignoreWarning=!1;_importResponse;get ignoreWarning(){return this._ignoreWarning}get importResponse(){return this._importResponse}generateFormData(t,e){let r=new FormData;return e&&r.append("Data",e),r.append("File",t),r}onSubmitForm(t,e){return this.httpService.postFormData(`/api/${t}`,e).pipe(p(r=>{this._importResponse=r,this.importResponseHandling(r)}),s(r=>(this._importResponse=r.error,this._ignoreWarning=!1,r)))}import(t){return this.httpService.post(c.ImportProduct,t)}previewImport(t,e){return this.httpService.postFormData(t,e)}importResponseHandling(t){t.Issues?(this.toastr.warning(t.Message,"Warning!"),this._ignoreWarning=!0):(this.toastr.success(t.Message,"Success"),this.importResponse.Issues=[],this._ignoreWarning=!1)}static \u0275fac=function(e){return new(e||i)(o(m),o(a))};static \u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})};export{g as a};
1
+ import{P as c}from"./chunk-QMH4FATM.js";import{I as s,Td as a,Wd as m,fa as p,ja as n,ma as o}from"./chunk-ONCTFURX.js";var g=class i{constructor(t,e){this.httpService=t;this.toastr=e}_ignoreWarning=!1;_importResponse;get ignoreWarning(){return this._ignoreWarning}get importResponse(){return this._importResponse}generateFormData(t,e){let r=new FormData;return e&&r.append("Data",e),r.append("File",t),r}onSubmitForm(t,e){return this.httpService.postFormData(`/api/${t}`,e).pipe(p(r=>{this._importResponse=r,this.importResponseHandling(r)}),s(r=>(this._importResponse=r.error,this._ignoreWarning=!1,r)))}import(t){return this.httpService.post(c.ImportProduct,t)}previewImport(t,e){return this.httpService.postFormData(t,e)}importResponseHandling(t){t.Issues?(this.toastr.warning(t.Message,"Warning!"),this._ignoreWarning=!0):(this.toastr.success(t.Message,"Success"),this.importResponse.Issues=[],this._ignoreWarning=!1)}static \u0275fac=function(e){return new(e||i)(o(m),o(a))};static \u0275prov=n({token:i,factory:i.\u0275fac,providedIn:"root"})};export{g as a};