@yinuo-ngm/server 1.0.15 → 1.0.16

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 (326) hide show
  1. package/lib/plugins/error-handler.plugin.js +5 -0
  2. package/lib/routes/api-client/hub-token.routes.js +22 -0
  3. package/lib/routes/index.js +2 -0
  4. package/lib/routes/node-version.routes.d.ts +2 -0
  5. package/lib/routes/node-version.routes.js +56 -0
  6. package/lib/routes/project.routes.js +5 -0
  7. package/lib/routes/sprite-browse.routes.js +19 -5
  8. package/lib/routes/sprite.routes.js +17 -11
  9. package/lib/routes/static-files.routes.js +16 -0
  10. package/lib/routes/task.routes.js +7 -0
  11. package/package.json +3 -3
  12. package/www/3rdpartylicenses.txt +14 -66
  13. package/www/browser/chunk-2BZRE4G7.js +1 -0
  14. package/www/browser/chunk-2X3MRS27.js +1 -0
  15. package/www/browser/chunk-4KETC6EB.js +1 -0
  16. package/www/browser/chunk-5T5KA5PG.js +1 -0
  17. package/www/browser/chunk-6CGHNKJI.js +1 -0
  18. package/www/browser/chunk-76TVIB33.js +63 -0
  19. package/www/browser/chunk-7J24TP36.js +1 -0
  20. package/www/browser/chunk-ACAZUX6C.js +1 -0
  21. package/www/browser/chunk-B6MBYCXI.js +1 -0
  22. package/www/browser/chunk-BYEU6KGP.js +2 -0
  23. package/www/browser/chunk-CZ5AZ3VW.js +1 -0
  24. package/www/browser/chunk-DW7F5PEA.js +1 -0
  25. package/www/browser/chunk-DXF7BVK5.js +1 -0
  26. package/www/browser/chunk-EEVPZGEY.js +1 -0
  27. package/www/browser/chunk-G2W3B7TJ.js +1 -0
  28. package/www/browser/chunk-GDWS2L66.js +1 -0
  29. package/www/browser/chunk-HFZLJHYR.js +1 -0
  30. package/www/browser/chunk-HGONFYP6.js +1 -0
  31. package/www/browser/chunk-HHBPULJW.js +2 -0
  32. package/www/browser/chunk-HRXCR3IN.js +1 -0
  33. package/www/browser/chunk-INL2PELS.js +1 -0
  34. package/www/browser/chunk-JHMEKUZ5.js +1 -0
  35. package/www/browser/chunk-JU3TEDBV.js +37 -0
  36. package/www/browser/chunk-JZULA5JV.js +1 -0
  37. package/www/browser/chunk-KVFR7GFV.js +20 -0
  38. package/www/browser/chunk-L5D75AMV.js +1 -0
  39. package/www/browser/chunk-L7TMCSHV.js +1 -0
  40. package/www/browser/chunk-LQ5OXSW7.js +3 -0
  41. package/www/browser/chunk-MVQTKINJ.js +1 -0
  42. package/www/browser/chunk-N4LRZJBP.js +1 -0
  43. package/www/browser/chunk-O2EYEF7J.js +1 -0
  44. package/www/browser/chunk-OMDHJIUB.js +1 -0
  45. package/www/browser/chunk-OWUAAOHW.js +2 -0
  46. package/www/browser/chunk-PIK5YPIB.js +1 -0
  47. package/www/browser/chunk-RHLQRQDK.js +9 -0
  48. package/www/browser/chunk-RW2JPJV7.js +1 -0
  49. package/www/browser/chunk-S3SJ4VVM.js +11 -0
  50. package/www/browser/chunk-SIVPP74B.js +0 -0
  51. package/www/browser/chunk-SPRWNZHF.js +15 -0
  52. package/www/browser/chunk-SQQNR223.js +1 -0
  53. package/www/browser/chunk-SVQWPHF5.js +1 -0
  54. package/www/browser/chunk-SYCNSLAW.js +4 -0
  55. package/www/browser/chunk-T3KK7ZXB.js +2 -0
  56. package/www/browser/chunk-TMX5TTV3.js +1 -0
  57. package/www/browser/chunk-UFY3FLDK.js +1 -0
  58. package/www/browser/chunk-UJOHBN2Y.js +1 -0
  59. package/www/browser/chunk-UQGCUFNM.js +1 -0
  60. package/www/browser/chunk-UXXWRMM6.js +1 -0
  61. package/www/browser/chunk-UZRJGJTD.js +2 -0
  62. package/www/browser/chunk-WD4IAQR3.js +1 -0
  63. package/www/browser/chunk-WF2QTF5L.js +1 -0
  64. package/www/browser/chunk-WI67LAOV.js +4 -0
  65. package/www/browser/chunk-WNCM6QKB.js +1 -0
  66. package/www/browser/chunk-XJ5KZQNN.js +1 -0
  67. package/www/browser/chunk-YETDFSQE.js +1 -0
  68. package/www/browser/chunk-YMTC5GZK.js +1 -0
  69. package/www/browser/chunk-YVZHJ76K.js +1 -0
  70. package/www/browser/chunk-ZNTJRLVH.js +1 -0
  71. package/www/browser/dark.css +1 -30433
  72. package/www/browser/default.css +1 -30149
  73. package/www/browser/index.html +3 -3
  74. package/www/browser/main-6LN5C22E.js +34 -0
  75. package/www/browser/scripts-U25HCVEI.js +6 -0
  76. package/www/browser/styles-ROAHD7MY.css +1 -0
  77. package/www/browser/add-widget-drawer.component.css.map +0 -7
  78. package/www/browser/advanced-editor.component.css.map +0 -7
  79. package/www/browser/api-client.component.css.map +0 -7
  80. package/www/browser/api-history-drawer.component.css.map +0 -7
  81. package/www/browser/app.css.map +0 -7
  82. package/www/browser/attachment-viewer.component.css.map +0 -7
  83. package/www/browser/auth-editor.component.css.map +0 -7
  84. package/www/browser/body-editor.component.css.map +0 -7
  85. package/www/browser/chunk-2YSUXBGC.js +0 -627
  86. package/www/browser/chunk-2YSUXBGC.js.map +0 -1
  87. package/www/browser/chunk-3G2GEOPV.js +0 -456
  88. package/www/browser/chunk-3G2GEOPV.js.map +0 -1
  89. package/www/browser/chunk-3L72DF3R.js +0 -1683
  90. package/www/browser/chunk-3L72DF3R.js.map +0 -1
  91. package/www/browser/chunk-3MCIETCQ.js +0 -8279
  92. package/www/browser/chunk-3MCIETCQ.js.map +0 -1
  93. package/www/browser/chunk-665WC4RU.js +0 -5383
  94. package/www/browser/chunk-665WC4RU.js.map +0 -1
  95. package/www/browser/chunk-6QMSEZPT.js +0 -10044
  96. package/www/browser/chunk-6QMSEZPT.js.map +0 -1
  97. package/www/browser/chunk-6TBQERYX.js +0 -280
  98. package/www/browser/chunk-6TBQERYX.js.map +0 -1
  99. package/www/browser/chunk-6UW4MRJZ.js +0 -43
  100. package/www/browser/chunk-6UW4MRJZ.js.map +0 -7
  101. package/www/browser/chunk-6XUMIL3W.js +0 -5495
  102. package/www/browser/chunk-6XUMIL3W.js.map +0 -1
  103. package/www/browser/chunk-724YOJI3.js +0 -903
  104. package/www/browser/chunk-724YOJI3.js.map +0 -1
  105. package/www/browser/chunk-766T7YES.js +0 -437
  106. package/www/browser/chunk-766T7YES.js.map +0 -1
  107. package/www/browser/chunk-7FC7DN65.js +0 -728
  108. package/www/browser/chunk-7FC7DN65.js.map +0 -1
  109. package/www/browser/chunk-APGQRYWX.js +0 -156
  110. package/www/browser/chunk-APGQRYWX.js.map +0 -7
  111. package/www/browser/chunk-AQHSGTHS.js +0 -1960
  112. package/www/browser/chunk-AQHSGTHS.js.map +0 -1
  113. package/www/browser/chunk-CTOEAJQK.js +0 -40
  114. package/www/browser/chunk-CTOEAJQK.js.map +0 -7
  115. package/www/browser/chunk-DEGQJKKZ.js +0 -409
  116. package/www/browser/chunk-DEGQJKKZ.js.map +0 -1
  117. package/www/browser/chunk-DIJX2663.js +0 -1166
  118. package/www/browser/chunk-DIJX2663.js.map +0 -1
  119. package/www/browser/chunk-E4XD4GLT.js +0 -427
  120. package/www/browser/chunk-E4XD4GLT.js.map +0 -1
  121. package/www/browser/chunk-EQOY6A3M.js +0 -212
  122. package/www/browser/chunk-EQOY6A3M.js.map +0 -1
  123. package/www/browser/chunk-ETTBRXVA.js +0 -2643
  124. package/www/browser/chunk-ETTBRXVA.js.map +0 -1
  125. package/www/browser/chunk-FLSUSPBD.js +0 -5569
  126. package/www/browser/chunk-FLSUSPBD.js.map +0 -1
  127. package/www/browser/chunk-FZNHBEAZ.js +0 -102
  128. package/www/browser/chunk-FZNHBEAZ.js.map +0 -1
  129. package/www/browser/chunk-GJC7CZIJ.js +0 -361
  130. package/www/browser/chunk-GJC7CZIJ.js.map +0 -7
  131. package/www/browser/chunk-GMCNMOTD.js +0 -844
  132. package/www/browser/chunk-GMCNMOTD.js.map +0 -7
  133. package/www/browser/chunk-H43HGCRW.js +0 -198
  134. package/www/browser/chunk-H43HGCRW.js.map +0 -7
  135. package/www/browser/chunk-J447GBHM.js +0 -160
  136. package/www/browser/chunk-J447GBHM.js.map +0 -1
  137. package/www/browser/chunk-JN3VOWP7.js +0 -384
  138. package/www/browser/chunk-JN3VOWP7.js.map +0 -1
  139. package/www/browser/chunk-KSHAGY2M.js +0 -399
  140. package/www/browser/chunk-KSHAGY2M.js.map +0 -7
  141. package/www/browser/chunk-KV72AKOD.js +0 -59
  142. package/www/browser/chunk-KV72AKOD.js.map +0 -7
  143. package/www/browser/chunk-LAVMY2SJ.js +0 -26
  144. package/www/browser/chunk-LAVMY2SJ.js.map +0 -7
  145. package/www/browser/chunk-LLRVGHG5.js +0 -73
  146. package/www/browser/chunk-LLRVGHG5.js.map +0 -7
  147. package/www/browser/chunk-LPME4AJ3.js +0 -196
  148. package/www/browser/chunk-LPME4AJ3.js.map +0 -1
  149. package/www/browser/chunk-LVPSURVU.js +0 -4615
  150. package/www/browser/chunk-LVPSURVU.js.map +0 -1
  151. package/www/browser/chunk-MMPO7QLO.js +0 -4146
  152. package/www/browser/chunk-MMPO7QLO.js.map +0 -7
  153. package/www/browser/chunk-O7LB6VFM.js +0 -1953
  154. package/www/browser/chunk-O7LB6VFM.js.map +0 -1
  155. package/www/browser/chunk-P5CWA4FO.js +0 -685
  156. package/www/browser/chunk-P5CWA4FO.js.map +0 -1
  157. package/www/browser/chunk-RBWIWNTL.js +0 -203
  158. package/www/browser/chunk-RBWIWNTL.js.map +0 -7
  159. package/www/browser/chunk-RUXJCM3V.js +0 -26199
  160. package/www/browser/chunk-RUXJCM3V.js.map +0 -1
  161. package/www/browser/chunk-S77VVYUZ.js +0 -168
  162. package/www/browser/chunk-S77VVYUZ.js.map +0 -1
  163. package/www/browser/chunk-SCXPYFOB.js +0 -4316
  164. package/www/browser/chunk-SCXPYFOB.js.map +0 -1
  165. package/www/browser/chunk-SS73S33S.js +0 -471
  166. package/www/browser/chunk-SS73S33S.js.map +0 -7
  167. package/www/browser/chunk-T6UAOWNP.js +0 -600
  168. package/www/browser/chunk-T6UAOWNP.js.map +0 -1
  169. package/www/browser/chunk-TEW4MY4J.js +0 -148
  170. package/www/browser/chunk-TEW4MY4J.js.map +0 -7
  171. package/www/browser/chunk-TVORF3SF.js +0 -82
  172. package/www/browser/chunk-TVORF3SF.js.map +0 -7
  173. package/www/browser/chunk-UAN42EUZ.js +0 -2147
  174. package/www/browser/chunk-UAN42EUZ.js.map +0 -1
  175. package/www/browser/chunk-ULOHDK7Y.js +0 -1
  176. package/www/browser/chunk-ULOHDK7Y.js.map +0 -7
  177. package/www/browser/chunk-UYJ3FVRV.js +0 -3978
  178. package/www/browser/chunk-UYJ3FVRV.js.map +0 -1
  179. package/www/browser/chunk-VXHZMSDM.js +0 -5509
  180. package/www/browser/chunk-VXHZMSDM.js.map +0 -1
  181. package/www/browser/chunk-VYNQPZQO.js +0 -281
  182. package/www/browser/chunk-VYNQPZQO.js.map +0 -1
  183. package/www/browser/chunk-W3J23PZI.js +0 -9213
  184. package/www/browser/chunk-W3J23PZI.js.map +0 -1
  185. package/www/browser/chunk-W5HGHCQT.js +0 -1642
  186. package/www/browser/chunk-W5HGHCQT.js.map +0 -7
  187. package/www/browser/chunk-XF5H7E4L.js +0 -4723
  188. package/www/browser/chunk-XF5H7E4L.js.map +0 -1
  189. package/www/browser/chunk-XNFNEBMY.js +0 -398
  190. package/www/browser/chunk-XNFNEBMY.js.map +0 -7
  191. package/www/browser/chunk-XQY5SPGI.js +0 -30811
  192. package/www/browser/chunk-XQY5SPGI.js.map +0 -1
  193. package/www/browser/chunk-Y7JBZHNK.js +0 -514
  194. package/www/browser/chunk-Y7JBZHNK.js.map +0 -1
  195. package/www/browser/chunk-YWHRP4X3.js +0 -406
  196. package/www/browser/chunk-YWHRP4X3.js.map +0 -1
  197. package/www/browser/chunk-Z7FJIV62.js +0 -95
  198. package/www/browser/chunk-Z7FJIV62.js.map +0 -7
  199. package/www/browser/chunk-ZBZHXS46.js +0 -1674
  200. package/www/browser/chunk-ZBZHXS46.js.map +0 -1
  201. package/www/browser/chunk-ZZA5NVAI.js +0 -735
  202. package/www/browser/chunk-ZZA5NVAI.js.map +0 -1
  203. package/www/browser/collection-modal.component.css.map +0 -7
  204. package/www/browser/collection-tree-item.component.css.map +0 -7
  205. package/www/browser/collection-tree.component.css.map +0 -7
  206. package/www/browser/config-change-bar-component.css.map +0 -7
  207. package/www/browser/config-item-component.css.map +0 -7
  208. package/www/browser/config-nav-component.css.map +0 -7
  209. package/www/browser/config-section-component.css.map +0 -7
  210. package/www/browser/create-summary-aside.component.css.map +0 -7
  211. package/www/browser/curl-actions.component.css.map +0 -7
  212. package/www/browser/dark.css.map +0 -7
  213. package/www/browser/dashboard-canvas.component.css.map +0 -7
  214. package/www/browser/dashboard.component.css.map +0 -7
  215. package/www/browser/default.css.map +0 -7
  216. package/www/browser/detail-item-card.component.css.map +0 -7
  217. package/www/browser/ellipsis-text.component.css.map +0 -7
  218. package/www/browser/env-modal.component.css.map +0 -7
  219. package/www/browser/env-picker.component.css.map +0 -7
  220. package/www/browser/feedback.component.css.map +0 -7
  221. package/www/browser/fs-explorer.component.css.map +0 -7
  222. package/www/browser/git-import-modal.component.css.map +0 -7
  223. package/www/browser/hub-v2-personal-token-modal.component.css.map +0 -7
  224. package/www/browser/issue-action-area.component.css.map +0 -7
  225. package/www/browser/issue-add-participants-dialog.component.css.map +0 -7
  226. package/www/browser/issue-assign-dialog.component.css.map +0 -7
  227. package/www/browser/issue-attachment-area.component.css.map +0 -7
  228. package/www/browser/issue-base-info-area.component.css.map +0 -7
  229. package/www/browser/issue-branches.component.css.map +0 -7
  230. package/www/browser/issue-close-dialog.component.css.map +0 -7
  231. package/www/browser/issue-collaborators-panel.component.css.map +0 -7
  232. package/www/browser/issue-comment-editor.component.css.map +0 -7
  233. package/www/browser/issue-create-branch-dialog.component.css.map +0 -7
  234. package/www/browser/issue-description-area.component.css.map +0 -7
  235. package/www/browser/issue-detail.component.css.map +0 -7
  236. package/www/browser/issue-resolve-dialog.component.css.map +0 -7
  237. package/www/browser/issue-start-own-branch-dialog.component.css.map +0 -7
  238. package/www/browser/issues-list-table.component.css.map +0 -7
  239. package/www/browser/issues.component.css.map +0 -7
  240. package/www/browser/kill-port-widget.component.css.map +0 -7
  241. package/www/browser/kv-table.component.css.map +0 -7
  242. package/www/browser/layout-footer.component.css.map +0 -7
  243. package/www/browser/layout-header.component.css.map +0 -7
  244. package/www/browser/layout-menu.component.css.map +0 -7
  245. package/www/browser/layout-project-nav.component.css.map +0 -7
  246. package/www/browser/layout-sidebar.component.css.map +0 -7
  247. package/www/browser/layout.component.css.map +0 -7
  248. package/www/browser/less-viewport-component.css.map +0 -7
  249. package/www/browser/main.js +0 -1872
  250. package/www/browser/main.js.map +0 -1
  251. package/www/browser/markdown-viewer.component.css.map +0 -7
  252. package/www/browser/news-feed-widget.component.css.map +0 -7
  253. package/www/browser/ng-devtool.component.css.map +0 -7
  254. package/www/browser/nginx-config-editor.component.css.map +0 -7
  255. package/www/browser/nginx-log-viewer.component.css.map +0 -7
  256. package/www/browser/nginx-secondary-logs-tab.component.css.map +0 -7
  257. package/www/browser/nginx-secondary-perf-tab.component.css.map +0 -7
  258. package/www/browser/nginx-secondary-settings-tab.component.css.map +0 -7
  259. package/www/browser/nginx-secondary-ssl-tab.component.css.map +0 -7
  260. package/www/browser/nginx-secondary-test-tab.component.css.map +0 -7
  261. package/www/browser/nginx-secondary-traffic-tab.component.css.map +0 -7
  262. package/www/browser/nginx-secondary-upstream-tab.component.css.map +0 -7
  263. package/www/browser/nginx-section-card.component.css.map +0 -7
  264. package/www/browser/nginx-server-drawer.component.css.map +0 -7
  265. package/www/browser/nginx-server-list.component.css.map +0 -7
  266. package/www/browser/nginx-stat-card.component.css.map +0 -7
  267. package/www/browser/nginx.component.css.map +0 -7
  268. package/www/browser/page-layout.component.css.map +0 -7
  269. package/www/browser/pick-workspace-modal.component.css.map +0 -7
  270. package/www/browser/polyfills.js +0 -26584
  271. package/www/browser/polyfills.js.map +0 -7
  272. package/www/browser/project-conf.component.css.map +0 -7
  273. package/www/browser/project-create-modal.component.css.map +0 -7
  274. package/www/browser/project-create.component.css.map +0 -7
  275. package/www/browser/project-deps.component.css.map +0 -7
  276. package/www/browser/project-edit-modal.component.css.map +0 -7
  277. package/www/browser/project-import.component.css.map +0 -7
  278. package/www/browser/project-item-popover.component.css.map +0 -7
  279. package/www/browser/project-item.component.css.map +0 -7
  280. package/www/browser/project-list.component.css.map +0 -7
  281. package/www/browser/projects.component.css.map +0 -7
  282. package/www/browser/quick-task-widget.component.css.map +0 -7
  283. package/www/browser/rd-action-area.component.css.map +0 -7
  284. package/www/browser/rd-advance-stage-dialog.component.css.map +0 -7
  285. package/www/browser/rd-block-dialog.component.css.map +0 -7
  286. package/www/browser/rd-create-dialog.component.css.map +0 -7
  287. package/www/browser/rd-detail.component.css.map +0 -7
  288. package/www/browser/rd-item-card.component.css.map +0 -7
  289. package/www/browser/rd-list-board.component.css.map +0 -7
  290. package/www/browser/rd-list-table.component.css.map +0 -7
  291. package/www/browser/rd.component.css.map +0 -7
  292. package/www/browser/request-collections.component.css.map +0 -7
  293. package/www/browser/request-editor.component.css.map +0 -7
  294. package/www/browser/request-list-item.component.css.map +0 -7
  295. package/www/browser/request-list.component.css.map +0 -7
  296. package/www/browser/request-tabs-bar.component.css.map +0 -7
  297. package/www/browser/request-tabs.component.css.map +0 -7
  298. package/www/browser/request-urlbar.component.css.map +0 -7
  299. package/www/browser/response-viewer.component.css.map +0 -7
  300. package/www/browser/scripts.js +0 -245
  301. package/www/browser/scripts.js.map +0 -7
  302. package/www/browser/setting.component.css.map +0 -7
  303. package/www/browser/sprite-conf-modal.component.css.map +0 -7
  304. package/www/browser/sprite-icons-panel-component.css.map +0 -7
  305. package/www/browser/sprite-images-panel-component.css.map +0 -7
  306. package/www/browser/sprite-result-tabs.component.css.map +0 -7
  307. package/www/browser/sprite-viewport-component.css.map +0 -7
  308. package/www/browser/sprite.component.css.map +0 -7
  309. package/www/browser/step-advance.component.css.map +0 -7
  310. package/www/browser/step-basic.component.css.map +0 -7
  311. package/www/browser/step-config.component.css.map +0 -7
  312. package/www/browser/step-features.component.css.map +0 -7
  313. package/www/browser/step-preset.component.css.map +0 -7
  314. package/www/browser/step-summary-aside.component.css.map +0 -7
  315. package/www/browser/styles.css +0 -258
  316. package/www/browser/styles.css.map +0 -7
  317. package/www/browser/system-log.component.css.map +0 -7
  318. package/www/browser/task-actions.component.css.map +0 -7
  319. package/www/browser/task-console.component.css.map +0 -7
  320. package/www/browser/task-header.component.css.map +0 -7
  321. package/www/browser/task-list.component.css.map +0 -7
  322. package/www/browser/tasks.component.css.map +0 -7
  323. package/www/browser/terminal-view.component.css.map +0 -7
  324. package/www/browser/welcome-widget.component.css.map +0 -7
  325. package/www/browser/widget-base.component.css.map +0 -7
  326. package/www/browser/widget-host.component.css.map +0 -7
@@ -0,0 +1 @@
1
+ import{a as ct,b as ut}from"./chunk-DXF7BVK5.js";import{B as Ct,a as pi,b as ci,c as gt,d as ui,e as gi,f as ft,m as fi,n as X,o as ue,p as ht,q as Q,r as yt,s as hi,t as _t,u as De,v as yi,w as we,x as _i,y as vt,z as vi}from"./chunk-UZRJGJTD.js";import"./chunk-O2EYEF7J.js";import"./chunk-76TVIB33.js";import{a as Gn,b as Yn,c as Xn,d as Zn,e as ei,f as ti,g as ni,h as ii,i as ri,j as mt}from"./chunk-YMTC5GZK.js";import{a as qn,b as lt}from"./chunk-INL2PELS.js";import{a as Re,b as ce,c as oi,d as ai,e as si}from"./chunk-LQ5OXSW7.js";import{a as li,b as di,c as mi,e as pt}from"./chunk-SVQWPHF5.js";import{a as wn,b as En,c as Tn}from"./chunk-ZNTJRLVH.js";import{a as Wn,b as Qn,c as dt}from"./chunk-G2W3B7TJ.js";import"./chunk-PIK5YPIB.js";import"./chunk-YVZHJ76K.js";import"./chunk-SIVPP74B.js";import{a as Jn,b as Kn}from"./chunk-WD4IAQR3.js";import{a as K,b as H}from"./chunk-WF2QTF5L.js";import"./chunk-HRXCR3IN.js";import"./chunk-DW7F5PEA.js";import"./chunk-KVFR7GFV.js";import{a as Dn,b as ze}from"./chunk-2X3MRS27.js";import{a as $n,c as rt,d as ot,e as at,f as Pe}from"./chunk-4KETC6EB.js";import{b as Nn,c as On,e as Ln,g as Hn}from"./chunk-JU3TEDBV.js";import{a as Un,b as st}from"./chunk-TMX5TTV3.js";import{a as Se,b as it}from"./chunk-UQGCUFNM.js";import{h as ve,i as Ye,j as Je,k as Ce,l as be}from"./chunk-BYEU6KGP.js";import"./chunk-5T5KA5PG.js";import{d as nt}from"./chunk-UXXWRMM6.js";import{$b as jn,Bb as An,Eb as Ie,Fa as he,Ga as Y,Gb as me,Hb as Ke,Jb as kn,Kb as pe,L as Ae,Lb as Xe,Oa as de,Ob as Fn,Pa as ye,Pb as Bn,Ra as _e,Sa as B,T as Mn,Tb as Ze,Ub as L,V as xn,Vb as et,Xb as Vn,Y as Ge,Zb as Me,a as zn,aa as Xt,ac as J,ba as Sn,c as In,dc as xe,ea as Pn,fa as Rn,fc as tt,ga as ke}from"./chunk-SPRWNZHF.js";import"./chunk-HFZLJHYR.js";import{c as Cn,e as bn,h as Kt}from"./chunk-L5D75AMV.js";import{g as vn,h as Qe,m as W,n as N}from"./chunk-T3KK7ZXB.js";import{$b as D,$c as k,Ac as $e,B as Te,Da as dn,Ec as U,Fb as z,Fc as se,Gb as re,Gc as ee,Ha as I,Hc as Ne,I as Be,Jc as d,Kc as v,L as Ve,Lb as A,Lc as b,M as Wt,Mc as gn,Nc as Ue,Oa as fe,Oc as qe,Pc as We,Q as an,Ra as mn,V as Qt,Wb as M,Wc as fn,Xc as hn,Yb as x,Yc as Oe,Zc as yn,a as V,ac as w,b as ge,bc as p,bd as F,cc as a,cd as q,dc as o,ec as g,fa as sn,ha as Gt,hc as je,hd as y,ic as oe,id as le,jb as pn,jc as ae,kb as Yt,lc as E,ma as ln,mc as un,md as S,na as ne,nb as s,nd as c,oa as ie,rc as _,rd as _n,sa as P,sb as cn,t as qt,td as Jt,uc as u,xd as O,ya as f,yc as Le,yd as te,za as h,zc as He}from"./chunk-WI67LAOV.js";var Ci=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=re({type:i});static \u0275inj=ie({})}return i})();var Oi=(i,t)=>t.id;function Ai(i,t){if(i&1&&g(0,"nz-option",4),i&2){let e=t.$implicit;p("nzLabel",e.name)("nzValue",e.id)}}function ki(i,t){i&1&&(a(0,"p",5),d(1,"\u63D0\u793A\uFF1A\u5F53\u524D\u9879\u76EE\u6CA1\u6709\u53EF\u63A8\u8FDB\u7684\u540E\u7EED\u9636\u6BB5\u3002"),o())}function Fi(i,t){if(i&1){let e=E();a(0,"p",2),d(1," \u5F53\u524D\u7814\u53D1\u9879\uFF1A"),a(2,"strong"),d(3),o()(),a(4,"nz-select",3),_("ngModelChange",function(r){f(e);let l=u(2);return h(l.selectedStageId.set(r||""))}),D(5,Ai,1,2,"nz-option",4,Oi),o(),M(7,ki,2,0,"p",5)}if(i&2){let e=u(2);s(3),v(t.title),s(),p("ngModel",e.selectedStageId()),s(),w(e.candidateStages()),s(2),x(e.candidateStages().length===0?7:-1)}}function Bi(i,t){if(i&1&&(oe(0),M(1,Fi,8,3),ae()),i&2){let e,n=u();s(),x((e=n.item())?1:-1,e)}}var bt=class i{open=c(!1);busy=c(!1);item=c(null);stages=c([]);confirm=S();cancel=S();selectedStageId=I("");candidateStages=y(()=>{let t=this.item(),e=[...this.stages()].sort((r,l)=>r.sort-l.sort);if(!t)return[];if(!t.stageId)return e;let n=e.find(r=>r.id===t.stageId);return n?e.filter(r=>r.sort>n.sort):e});constructor(){le(()=>{if(!this.open()){this.selectedStageId.set("");return}let t=this.candidateStages()[0];this.selectedStageId.set(t?.id??"")})}confirmSelection(){let t=this.selectedStageId().trim();t&&this.confirm.emit({stageId:t})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-advance-stage-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],item:[1,"item"],stages:[1,"stages"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:2,vars:6,consts:[[3,"nzOnCancel","nzOnOk","nzVisible","nzTitle","nzOkText","nzCancelText","nzOkLoading","nzOkDisabled"],[4,"nzModalContent"],[1,"hint"],["nzShowSearch","","nzPlaceHolder","\u9009\u62E9\u4E0B\u4E00\u9636\u6BB5",1,"stage-select",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"],[1,"empty"]],template:function(e,n){e&1&&(a(0,"nz-modal",0),_("nzOnCancel",function(){return n.cancel.emit()})("nzOnOk",function(){return n.confirmSelection()}),A(1,Bi,2,1,"ng-container",1),o()),e&2&&p("nzVisible",n.open())("nzTitle","\u8FDB\u5165\u4E0B\u4E00\u9636\u6BB5")("nzOkText","\u786E\u8BA4\u63A8\u8FDB")("nzCancelText","\u53D6\u6D88")("nzOkLoading",n.busy())("nzOkDisabled",n.busy()||!n.selectedStageId())},dependencies:[be,Ce,ve,Pe,ot,at,B,L,me,pe],styles:[".stage-select[_ngcontent-%COMP%]{width:100%}.empty[_ngcontent-%COMP%]{font-size:.8rem;color:gray;text-align:right}"]})};function Vi(i,t){if(i&1&&(a(0,"div")(1,"div",4)(2,"span"),d(3,"\u6807\u8BB0\u4E3A\u963B\u585E"),o(),a(4,"div",5),d(5),o()()()),i&2){let e=u();s(5),b(" ",e.item()?e.item().title:"\u8BB0\u5F55\u5F53\u524D\u7814\u53D1\u9879\u7684\u963B\u585E\u539F\u56E0\u3002"," ")}}function ji(i,t){if(i&1){let e=E();oe(0),a(1,"form",6),_("ngSubmit",function(){f(e);let r=u();return h(r.submitForm())}),a(2,"textarea",7),_("ngModelChange",function(r){f(e);let l=u();return h(l.reason.set(r))}),o()(),ae()}if(i&2){let e=u();s(2),p("ngModel",e.reason())}}function Li(i,t){if(i&1){let e=E();oe(0),a(1,"button",8),_("click",function(){f(e);let r=u();return h(r.cancel.emit())}),d(2,"\u53D6\u6D88"),o(),a(3,"button",9),_("click",function(){f(e);let r=u();return h(r.submitForm())}),d(4," \u786E\u8BA4\u963B\u585E "),o(),ae()}if(i&2){let e=u();s(3),p("disabled",!e.reason().trim())("nzLoading",e.busy())}}var zt=class i{open=c(!0);busy=c(!1);item=c(null);confirm=S();cancel=S();reason=I("");constructor(){le(()=>{this.open()&&this.reason.set(this.item()?.blockerReason??"")})}submitForm(){let t=this.reason().trim();t&&this.confirm.emit({blockerReason:t})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-block-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],item:[1,"item"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:4,vars:5,consts:[["nzTitle","\u6807\u8BB0\u4E3A\u963B\u585E",3,"nzOnCancel","nzOnOk","nzVisible","nzWidth","nzClosable","nzMaskClosable","nzOkLoading"],[4,"nzModalTitle"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-title"],[1,"modal-subtitle"],[1,"block-form",3,"ngSubmit"],["nz-input","","rows","6","placeholder","\u8BF7\u8F93\u5165\u963B\u585E\u539F\u56E0\u3002\u4F8B\u5982\uFF1A\u4F9D\u8D56\u7684\u63A5\u53E3\u5B9A\u4E49\u5C1A\u672A\u51BB\u7ED3\uFF0C\u65E0\u6CD5\u7EE7\u7EED\u8054\u8C03\u3002","name","reason",1,"block-input",3,"ngModelChange","ngModel"],["nz-button","","type","button",3,"click"],["nz-button","","nzType","primary",3,"click","disabled","nzLoading"]],template:function(e,n){e&1&&(a(0,"nz-modal",0),_("nzOnCancel",function(){return n.cancel.emit()})("nzOnOk",function(){return n.submitForm()}),A(1,Vi,6,1,"div",1)(2,ji,3,1,"ng-container",2)(3,Li,5,2,"ng-container",3),o()),e&2&&p("nzVisible",n.open())("nzWidth",640)("nzClosable",!0)("nzMaskClosable",!1)("nzOkLoading",n.busy())},dependencies:[be,Ce,Ye,ve,Je,L,Xe,Ie,me,Ke,pe,kn,B,_e,de,ye,J,Me],styles:[".modal-title[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-subtitle[_ngcontent-%COMP%]{color:#999;font-size:14px;line-height:20px}.block-input[_ngcontent-%COMP%]{border-radius:8px}"]})};var It=class i{canEditProgress(t,e){return!!t&&!!e&&!!t.assigneeId&&t.assigneeId===e}canStart(t,e){return this.canEditProgress(t,e)}canComplete(t,e){return this.canEditProgress(t,e)}canEditBasic(t,e,n){return!t||!e?!1:t.creatorId===e||t.assigneeId===e?!0:this.isProjectAdmin(e,n)}canDelete(t,e,n){return!t||!e?!1:t.creatorId===e?!0:this.isProjectAdmin(e,n)}canBlock(t,e,n){return!t||!e?!1:t.assigneeId===e?!0:this.isProjectAdmin(e,n)}canResume(t,e,n){return this.canBlock(t,e,n)}canAdvance(t,e,n){return!t||t.status!=="done"&&t.status!=="accepted"?!1:this.canEditBasic(t,e,n)}hasPermissionToRead(t){return!!t&&(t.scopes?.includes("rd:read")??!1)}hasPermissionToTransition(t){return!!t&&(t.scopes?.includes("rd:transition:write")??!1)}hasPermissionToEdit(t){return!!t&&(t.scopes?.includes("rd:edit:write")??!1)}hasPermissionToDelete(t){return!!t&&(t.scopes?.includes("rd:delete:write")??!1)}isProjectAdmin(t,e){let n=e.find(r=>r.userId===t);return!!n&&(n.roleCode==="project_admin"||n.isOwner)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})};var $i=["handle"],Ui=i=>({$implicit:i}),nn=(i,t)=>t.value;function qi(i,t){if(i&1&&je(0,"span",1),i&2){let e=t.$implicit;Ne(e.style),ee("ant-slider-mark-active",e.active),un("innerHTML",e.label,pn)}}function Wi(i,t){if(i&1&&je(0,"span",1),i&2){let e=t.$implicit;Ne(e.style),ee("ant-slider-dot-active",e.active)}}function Qi(i,t){if(i&1&&g(0,"nz-slider-step",2),i&2){let e=u();p("vertical",e.nzVertical)("min",e.nzMin)("max",e.nzMax)("lowerBound",e.bounds.lower)("upperBound",e.bounds.upper)("marksArray",e.marksArray)("included",e.nzIncluded)("reverse",e.nzReverse)}}function Gi(i,t){if(i&1){let e=E();a(0,"nz-slider-handle",4),_("focusin",function(){let r=f(e).$index,l=u();return h(l.onHandleFocusIn(r))}),o()}if(i&2){let e=t.$implicit,n=u();p("vertical",n.nzVertical)("reverse",n.nzReverse)("offset",e.offset)("value",e.value)("active",e.active)("tooltipFormatter",n.nzTipFormatter)("tooltipVisible",n.nzTooltipVisible)("tooltipPlacement",n.nzTooltipPlacement)("dragging",n.dragging())("dir",n.dir)}}function Yi(i,t){if(i&1&&g(0,"nz-slider-marks",2),i&2){let e=u();p("vertical",e.nzVertical)("min",e.nzMin)("max",e.nzMax)("lowerBound",e.bounds.lower)("upperBound",e.bounds.upper)("marksArray",e.marksArray)("included",e.nzIncluded)("reverse",e.nzReverse)}}var tn=(()=>{class i{cdr=P(Jt);handleEl;tooltip;vertical;reverse;offset;value;tooltipVisible="default";tooltipPlacement;tooltipFormatter;active=!1;dir="ltr";dragging;tooltipTitle;style={};ngOnChanges(e){let{offset:n,value:r,active:l,tooltipVisible:m,reverse:C,dir:R}=e;(n||C||R)&&this.updateStyle(),r&&(this.updateTooltipTitle(),this.updateTooltipPosition()),l&&(l.currentValue?this.toggleTooltip(!0):this.toggleTooltip(!1)),m?.currentValue==="always"&&Promise.resolve().then(()=>this.toggleTooltip(!0,!0))}enterHandle=()=>{this.dragging||(this.toggleTooltip(!0),this.updateTooltipPosition(),this.cdr.detectChanges())};leaveHandle=()=>{this.dragging||(this.toggleTooltip(!1),this.cdr.detectChanges())};focus(){this.handleEl?.nativeElement.focus()}toggleTooltip(e,n=!1){!n&&(this.tooltipVisible!=="default"||!this.tooltip)||(e?this.tooltip?.show():this.tooltip?.hide())}updateTooltipTitle(){this.tooltipFormatter?this.tooltipTitle=typeof this.tooltipFormatter=="function"?this.tooltipFormatter(this.value):this.tooltipFormatter:this.tooltipTitle=`${this.value}`}updateTooltipPosition(){this.tooltip&&Promise.resolve().then(()=>this.tooltip?.updatePosition())}updateStyle(){this.vertical?this.style={[this.reverse?"top":"bottom"]:`${this.offset}%`,[this.reverse?"bottom":"top"]:"auto",transform:this.reverse?null:"translateY(+50%)"}:this.style=ge(V({},this.getHorizontalStylePosition()),{transform:`translateX(${this.reverse?this.dir==="rtl"?"-":"+":this.dir==="rtl"?"+":"-"}50%)`}),this.cdr.markForCheck()}getHorizontalStylePosition(){let e=this.reverse?"auto":`${this.offset}%`,n=this.reverse?`${this.offset}%`:"auto";return this.dir==="rtl"&&([e,n]=[n,e]),{left:e,right:n}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider-handle"]],viewQuery:function(n,r){if(n&1&&(Le($i,5),Le(xe,5)),n&2){let l;He(l=$e())&&(r.handleEl=l.first),He(l=$e())&&(r.tooltip=l.first)}},hostBindings:function(n,r){n&1&&_("mouseenter",function(){return r.enterHandle()})("mouseleave",function(){return r.leaveHandle()})},inputs:{vertical:[2,"vertical","vertical",O],reverse:[2,"reverse","reverse",O],offset:[2,"offset","offset",Ge],value:[2,"value","value",Ge],tooltipVisible:"tooltipVisible",tooltipPlacement:"tooltipPlacement",tooltipFormatter:"tooltipFormatter",active:[2,"active","active",O],dir:"dir",dragging:"dragging"},exportAs:["nzSliderHandle"],features:[fe],decls:2,vars:8,consts:[["handle",""],["tabindex","0","nz-tooltip","",1,"ant-slider-handle",3,"nzTooltipTitle","nzTooltipTitleContext","nzTooltipTrigger","nzTooltipPlacement"]],template:function(n,r){n&1&&g(0,"div",1,0),n&2&&(Ne(r.style),p("nzTooltipTitle",r.tooltipFormatter===null||r.tooltipVisible==="never"?null:r.tooltipTitle)("nzTooltipTitleContext",Oe(6,Ui,r.value))("nzTooltipTrigger",null)("nzTooltipPlacement",r.tooltipPlacement))},dependencies:[tt,xe],encapsulation:2,changeDetection:0})}return i})(),Ji=(()=>{class i{lowerBound=null;upperBound=null;marksArray=[];min;max;vertical=!1;included=!1;reverse;marks=[];ngOnChanges(e){let{marksArray:n,lowerBound:r,upperBound:l,reverse:m}=e;(n||m)&&this.buildMarks(),(n||r||l||m)&&this.togglePointActive()}buildMarks(){let e=this.max-this.min;this.marks=this.marksArray.map(n=>{let{value:r,offset:l,config:m}=n,C=this.getMarkStyles(r,e,m);return{label:xi(m)?m.label:m,offset:l,style:C,value:r,config:m,active:!1}})}getMarkStyles(e,n,r){let l,m=this.reverse?this.max+this.min-e:e;return this.vertical?l={marginBottom:"-50%",bottom:`${(m-this.min)/n*100}%`}:l={transform:"translate3d(-50%, 0, 0)",left:`${(m-this.min)/n*100}%`},xi(r)&&r.style&&(l=V(V({},l),r.style)),l}togglePointActive(){this.marks&&this.lowerBound!==null&&this.upperBound!==null&&this.marks.forEach(e=>{let n=e.value;e.active=this.included?n<=this.upperBound&&n>=this.lowerBound:n===this.upperBound})}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider-marks"]],hostAttrs:[1,"ant-slider-mark"],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",min:[2,"min","min",te],max:[2,"max","max",te],vertical:[2,"vertical","vertical",O],included:[2,"included","included",O],reverse:[2,"reverse","reverse",O]},exportAs:["nzSliderMarks"],features:[fe],decls:2,vars:0,consts:[[1,"ant-slider-mark-text",3,"ant-slider-mark-active","style","innerHTML"],[1,"ant-slider-mark-text",3,"innerHTML"]],template:function(n,r){n&1&&D(0,qi,1,5,"span",0,nn),n&2&&w(r.marks)},encapsulation:2,changeDetection:0})}return i})();function xi(i){return typeof i!="string"}var Ki=(()=>{class i{lowerBound=null;upperBound=null;marksArray=[];min;max;vertical=!1;included=!1;reverse;steps=[];ngOnChanges(e){let{marksArray:n,lowerBound:r,upperBound:l,reverse:m}=e;(n||m)&&this.buildSteps(),(n||r||l||m)&&this.togglePointActive()}buildSteps(){let e=this.vertical?"bottom":"left";this.steps=this.marksArray.map(n=>{let{value:r,config:l}=n,m=n.offset,C=this.max-this.min;return this.reverse&&(m=(this.max-r)/C*100),{value:r,offset:m,config:l,active:!1,style:{[e]:`${m}%`,transform:this.vertical?"translateY(50%)":"translateX(-50%)"}}})}togglePointActive(){this.steps&&this.lowerBound!==null&&this.upperBound!==null&&this.steps.forEach(e=>{let n=e.value;e.active=this.included?n<=this.upperBound&&n>=this.lowerBound:n===this.upperBound})}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider-step"]],hostAttrs:[1,"ant-slider-step"],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",min:[2,"min","min",te],max:[2,"max","max",te],vertical:[2,"vertical","vertical",O],included:[2,"included","included",O],reverse:[2,"reverse","reverse",O]},exportAs:["nzSliderStep"],features:[fe],decls:2,vars:0,consts:[[1,"ant-slider-dot",3,"ant-slider-dot-active","style"],[1,"ant-slider-dot"]],template:function(n,r){n&1&&D(0,Wi,1,4,"span",0,nn),n&2&&w(r.steps)},encapsulation:2,changeDetection:0})}return i})(),Xi=(()=>{class i{offset=0;reverse=!1;dir="ltr";length=0;vertical=!1;included=!1;style={};ngOnChanges(){let e=this.included?"visible":"hidden";this.vertical?this.style={[this.reverse?"top":"bottom"]:`${this.offset}%`,[this.reverse?"bottom":"top"]:"auto",height:`${this.length}%`,visibility:e}:this.style=ge(V({},this.getHorizontalStylePosition()),{width:`${this.length}%`,visibility:e})}getHorizontalStylePosition(){let e=this.reverse?"auto":`${this.offset}%`,n=this.reverse?`${this.offset}%`:"auto";return this.dir==="rtl"&&([e,n]=[n,e]),{left:e,right:n}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider-track"]],inputs:{offset:[2,"offset","offset",te],reverse:[2,"reverse","reverse",O],dir:"dir",length:[2,"length","length",te],vertical:[2,"vertical","vertical",O],included:[2,"included","included",O]},exportAs:["nzSliderTrack"],features:[fe],decls:1,vars:2,consts:[[1,"ant-slider-track"]],template:function(n,r){n&1&&je(0,"div",0),n&2&&Ne(r.style)},encapsulation:2,changeDetection:0})}return i})(),rn=(()=>{class i{slider=P(mn);destroyRef=P(dn);cdr=P(Jt);platform=P(In);directionality=P(zn);handlerComponents;nzDisabled=!1;nzDots=!1;nzIncluded=!0;nzRange=!1;nzVertical=!1;nzReverse=!1;nzDefaultValue;nzMarks=null;nzMax=100;nzMin=0;nzStep=1;nzTooltipVisible="default";nzTooltipPlacement="top";nzTipFormatter;nzOnAfterChange=new cn;value=null;cacheSliderStart=null;cacheSliderLength=null;activeValueIndex=void 0;track={offset:null,length:null};handles=[];marksArray=null;bounds={lower:null,upper:null};dir="ltr";dragging=I(!1);dragStart$;dragMove$;dragEnd$;dragStart_;dragMove_;dragEnd_;isNzDisableFirstChange=!0;ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(Ae(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges(),this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0))}),this.handles=Si(this.nzRange?2:1),this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null,this.bindDraggingHandlers(),this.toggleDragDisabled(this.nzDisabled),this.getValue()===null&&this.setValue(this.formatValue(null))}ngOnChanges(e){let{nzDisabled:n,nzMarks:r,nzRange:l}=e;n&&!n.firstChange?this.toggleDragDisabled(n.currentValue):r&&!r.firstChange?this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null:l&&!l.firstChange&&(this.handles=Si(l.currentValue?2:1),this.setValue(this.formatValue(null)))}writeValue(e){this.setValue(e,!0)}onValueChange(e){}onTouched(){}registerOnChange(e){this.onValueChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.toggleDragDisabled(this.nzDisabled),this.cdr.markForCheck()}onKeyDown(e){if(this.nzDisabled)return;let n=e.keyCode,r=n===39||n===38,l=n===37||n===40;if(!(r||l))return;e.preventDefault();let m=(l?-this.nzStep:this.nzStep)*(this.nzReverse?-1:1)*(this.dir==="rtl"?-1:1),C=this.nzRange?this.value[this.activeValueIndex]+m:this.value+m;this.setActiveValue(ke(C,this.nzMin,this.nzMax)),this.nzOnAfterChange.emit(this.getValue(!0))}onHandleFocusIn(e){this.activeValueIndex=e}setValue(e,n=!1){n?(this.value=this.formatValue(e),this.updateTrackAndHandles()):nr(this.value,e)||(this.value=e,this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0)))}getValue(e=!1){return e&&this.value&&$(this.value)?[...this.value].sort((n,r)=>n-r):this.value}getValueToOffset(e){let n=e;return typeof n>"u"&&(n=this.getValue(!0)),$(n)?n.map(r=>this.valueToOffset(r)):this.valueToOffset(n)}setActiveValueIndex(e){let n=this.getValue();if($(n)){let r=null,l,m=-1;n.forEach((C,R)=>{l=Math.abs(e-C),(r===null||l<r)&&(r=l,m=R)}),this.activeValueIndex=m,this.handlerComponents.toArray()[m].focus()}else this.handlerComponents.toArray()[0].focus()}setActiveValue(e){if($(this.value)){let n=[...this.value];n[this.activeValueIndex]=e,this.setValue(n)}else this.setValue(e)}updateTrackAndHandles(){let e=this.getValue(),n=this.getValueToOffset(e),r=this.getValue(!0),l=this.getValueToOffset(r),m=$(r)?r:[0,r],C=$(l)?[l[0],l[1]-l[0]]:[0,l];this.handles.forEach((R,G)=>{R.offset=$(n)?n[G]:n,R.value=$(e)?e[G]:e||0}),[this.bounds.lower,this.bounds.upper]=m,[this.track.offset,this.track.length]=C,this.cdr.markForCheck()}onDragStart(e){this.toggleDragMoving(!0),this.cacheSliderProperty(),this.setActiveValueIndex(this.getLogicalValue(e)),this.setActiveValue(this.getLogicalValue(e)),this.showHandleTooltip(this.nzRange?this.activeValueIndex:0)}onDragMove(e){this.setActiveValue(this.getLogicalValue(e)),this.cdr.markForCheck()}getLogicalValue(e){return this.nzReverse?!this.nzVertical&&this.dir==="rtl"?e:this.nzMax-e+this.nzMin:!this.nzVertical&&this.dir==="rtl"?this.nzMax-e+this.nzMin:e}onDragEnd(){this.nzOnAfterChange.emit(this.getValue(!0)),this.toggleDragMoving(!1),this.cacheSliderProperty(!0),this.hideAllHandleTooltip(),this.cdr.markForCheck()}bindDraggingHandlers(){if(!this.platform.isBrowser)return;let e=C=>R=>C.reduce((G,Z)=>G[Z]||G,R),n=this.slider.nativeElement,r=this.nzVertical?"pageY":"pageX",l={start:"mousedown",move:"mousemove",end:"mouseup",pluckKey:[r]},m={start:"touchstart",move:"touchmove",end:"touchend",pluckKey:["touches","0",r],filter:C=>C instanceof TouchEvent};[l,m].forEach(C=>{let{start:R,move:G,end:Z,pluckKey:Fe,filter:on=()=>!0}=C;C.startPlucked$=Be(n,R).pipe(Wt(on),Gt(Xt),Te(e(Fe)),Te(Ut=>this.findClosestValue(Ut))),C.end$=Be(document,Z),C.moveResolved$=Be(document,G).pipe(Wt(on),Gt(Xt),Te(e(Fe)),Qt(),Te(Ut=>this.findClosestValue(Ut)),Qt(),sn(C.end$))}),this.dragStart$=Ve(l.startPlucked$,m.startPlucked$),this.dragMove$=Ve(l.moveResolved$,m.moveResolved$),this.dragEnd$=Ve(l.end$,m.end$)}subscribeDrag(e=["start","move","end"]){e.indexOf("start")!==-1&&this.dragStart$&&!this.dragStart_&&(this.dragStart_=this.dragStart$.pipe(Ae(this.destroyRef)).subscribe(this.onDragStart.bind(this))),e.indexOf("move")!==-1&&this.dragMove$&&!this.dragMove_&&(this.dragMove_=this.dragMove$.pipe(Ae(this.destroyRef)).subscribe(this.onDragMove.bind(this))),e.indexOf("end")!==-1&&this.dragEnd$&&!this.dragEnd_&&(this.dragEnd_=this.dragEnd$.pipe(Ae(this.destroyRef)).subscribe(this.onDragEnd.bind(this)))}unsubscribeDrag(e=["start","move","end"]){e.includes("start")&&(this.dragStart_?.unsubscribe(),this.dragStart_=null),e.includes("move")&&(this.dragMove_?.unsubscribe(),this.dragMove_=null),e.includes("end")&&(this.dragEnd_?.unsubscribe(),this.dragEnd_=null)}toggleDragMoving(e){let n=["move","end"];e?(this.dragging.set(!0),this.subscribeDrag(n)):(this.dragging.set(!1),this.unsubscribeDrag(n))}toggleDragDisabled(e){e?this.unsubscribeDrag():this.subscribeDrag(["start"])}findClosestValue(e){let n=this.getSliderStartPosition(),r=this.getSliderLength(),l=ke((e-n)/r,0,1),m=(this.nzMax-this.nzMin)*(this.nzVertical?1-l:l)+this.nzMin,C=this.nzMarks===null?[]:Object.keys(this.nzMarks).map(parseFloat).sort((Z,Fe)=>Z-Fe);if(this.nzStep!==0&&!this.nzDots){let Z=Math.round(m/this.nzStep)*this.nzStep;C.push(Z)}let R=C.map(Z=>Math.abs(m-Z)),G=C[R.indexOf(Math.min(...R))];return this.nzStep===0?G:parseFloat(G.toFixed(Rn(this.nzStep)))}valueToOffset(e){return Pn(this.nzMin,this.nzMax,e)}getSliderStartPosition(){if(this.cacheSliderStart!==null)return this.cacheSliderStart;let e=Sn(this.slider.nativeElement);return this.nzVertical?e.top:e.left}getSliderLength(){if(this.cacheSliderLength!==null)return this.cacheSliderLength;let e=this.slider.nativeElement;return this.nzVertical?e.clientHeight:e.clientWidth}cacheSliderProperty(e=!1){this.cacheSliderStart=e?null:this.getSliderStartPosition(),this.cacheSliderLength=e?null:this.getSliderLength()}formatValue(e){return xn(e)?this.nzRange?[this.nzMin,this.nzMax]:this.nzMin:er(e,this.nzRange)?$(e)?e.map(n=>ke(n,this.nzMin,this.nzMax)):ke(e,this.nzMin,this.nzMax):this.nzDefaultValue?this.nzDefaultValue:this.nzRange?[this.nzMin,this.nzMax]:this.nzMin}showHandleTooltip(e=0){this.handles.forEach((n,r)=>n.active=r===e)}hideAllHandleTooltip(){this.handles.forEach(e=>e.active=!1)}generateMarkItems(e){let n=[];for(let r in e)if(e.hasOwnProperty(r)){let l=e[r],m=typeof r=="number"?r:parseFloat(r);m>=this.nzMin&&m<=this.nzMax&&n.push({value:m,offset:this.valueToOffset(m),config:l})}return n.length?n:null}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider"]],viewQuery:function(n,r){if(n&1&&Le(tn,5),n&2){let l;He(l=$e())&&(r.handlerComponents=l)}},hostAttrs:[1,"ant-slider"],hostVars:8,hostBindings:function(n,r){n&1&&_("keydown",function(m){return r.onKeyDown(m)}),n&2&&ee("ant-slider-rtl",r.dir==="rtl")("ant-slider-disabled",r.nzDisabled)("ant-slider-vertical",r.nzVertical)("ant-slider-with-marks",r.marksArray)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",O],nzDots:[2,"nzDots","nzDots",O],nzIncluded:[2,"nzIncluded","nzIncluded",O],nzRange:[2,"nzRange","nzRange",O],nzVertical:[2,"nzVertical","nzVertical",O],nzReverse:[2,"nzReverse","nzReverse",O],nzDefaultValue:"nzDefaultValue",nzMarks:"nzMarks",nzMax:[2,"nzMax","nzMax",te],nzMin:[2,"nzMin","nzMin",te],nzStep:[2,"nzStep","nzStep",Ge],nzTooltipVisible:"nzTooltipVisible",nzTooltipPlacement:"nzTooltipPlacement",nzTipFormatter:"nzTipFormatter"},outputs:{nzOnAfterChange:"nzOnAfterChange"},exportAs:["nzSlider"],features:[fn([{provide:An,useExisting:ln(()=>i),multi:!0}]),fe],decls:6,vars:8,consts:[[1,"ant-slider-rail"],[3,"vertical","included","offset","length","reverse","dir"],[3,"vertical","min","max","lowerBound","upperBound","marksArray","included","reverse"],[3,"vertical","reverse","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement","dragging","dir"],[3,"focusin","vertical","reverse","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement","dragging","dir"]],template:function(n,r){n&1&&(g(0,"div",0)(1,"nz-slider-track",1),M(2,Qi,1,8,"nz-slider-step",2),D(3,Gi,1,10,"nz-slider-handle",3,nn),M(5,Yi,1,8,"nz-slider-marks",2)),n&2&&(s(),p("vertical",r.nzVertical)("included",r.nzIncluded)("offset",r.track.offset)("length",r.track.length)("reverse",r.nzReverse)("dir",r.dir),s(),x(r.marksArray?2:-1),s(),w(r.handles),s(2),x(r.marksArray?5:-1))},dependencies:[Xi,Ki,tn,Ji],encapsulation:2,changeDetection:0})}return i})();function Zi(){return new Error(`The "nzRange" can't match the "ngModel"'s type, please check these properties: "nzRange", "ngModel", "nzDefaultValue".`)}function $(i){return i instanceof Array?i.length===2:!1}function Si(i){return Array(i).fill(0).map(()=>({offset:null,value:null,active:!1}))}function er(i,t){return!$(i)&&isNaN(i)||$(i)&&i.some(e=>isNaN(e))?!1:tr(i,t)}function tr(i,t=!1){if($(i)!==t)throw Zi();return!0}function nr(i,t){return typeof i!=typeof t?!1:$(i)&&$(t)?Mn(i,t):i===t}var Mt=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=re({type:i});static \u0275inj=ie({imports:[rn,tn]})}return i})();var rr=(i,t)=>t.value;function or(i,t){if(i&1&&g(0,"nz-step",5),i&2){let e=u().$implicit,n=u();p("nzTitle",e.label)("nzStatus",n.excutedStatus().has(e.value)?"finish":"wait")}}function ar(i,t){if(i&1&&g(0,"nz-step",6),i&2){let e=u().$implicit;p("nzTitle",e.label)}}function sr(i,t){if(i&1&&M(0,or,1,2,"nz-step",5)(1,ar,1,1,"nz-step",6),i&2){let e=u();x(e.item().status==="closed"?0:1)}}var xt=class i{rdPermission=P(It);userStore=P(it);item=c.required();stages=c([]);busy=c();actionClick=S();deleteClick=S();progressChange=S();members=c([]);currentUser=y(()=>this.userStore.currentUser());currentUserId=y(()=>this.userStore.currentUserId());currentStageName=y(()=>{let t=this.item();return t?this.stages().find(e=>e.id===t.stageId)?.name??"-":"-"});currentStatusName=y(()=>{let t=this.item()?.status;return t==="blocked"?"\u5904\u7406\u4E2D\uFF08\u963B\u585E\u4E2D\uFF09":X[t]??"_ _"});excutedStatus=y(()=>{let t=new Set;return this.item().status!=="closed"||(t.add("todo"),t.add("closed"),this.item().progress>0&&t.add("doing"),this.item().progress>=100&&t.add("done")),t});progressDraft=I(0);constructor(){le(()=>{this.item()?.progress&&this.progressDraft.set(this.item()?.progress)})}stepsOptions=ht.filter(t=>!(t.value==="blocked"||t.value===""));getStepIndex(t){return t==="blocked"?1:t==="done"?2:t==="closed"||t==="accepted"?3:t==="reopened"?1:fi.findIndex(n=>n===t)??-1}getRdStatusColor(t){return ue[t]??"default"}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-flow-area"]],inputs:{item:[1,"item"],stages:[1,"stages"],busy:[1,"busy"],members:[1,"members"]},outputs:{actionClick:"actionClick",deleteClick:"deleteClick",progressChange:"progressChange"},decls:10,vars:4,consts:[[1,"steps"],[1,"flow-card__meta"],[1,"stage"],[3,"nzColor"],["nzSize","small",3,"nzCurrent"],[3,"nzTitle","nzStatus"],[3,"nzTitle"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card")(1,"div",0)(2,"div",1)(3,"span",2),d(4),o(),a(5,"nz-tag",3),d(6),o()(),a(7,"nz-steps",4),D(8,sr,2,1,null,null,rr),o()()()),e&2&&(s(4),b("\u5F53\u524D\u9636\u6BB5\uFF1A",n.currentStageName()),s(),p("nzColor",n.getRdStatusColor(n.item().status)),s(),v(n.currentStatusName()),s(),p("nzCurrent",n.getStepIndex(n.item().status)),s(),w(n.stepsOptions))},dependencies:[B,lt,Mt,si,ai,oi,H,K,L,Q],styles:[".flow-card__meta[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:.875rem;margin-bottom:1rem;font-weight:600}.flow-card__meta[_ngcontent-%COMP%] .stage[_ngcontent-%COMP%]{margin-right:auto}.action-empty[_ngcontent-%COMP%]{color:gray;font-size:.9rem}.delete-btn[_ngcontent-%COMP%]{margin-left:auto}.progress-wrap[_ngcontent-%COMP%]{width:100%;margin-top:8px;padding:1rem;border:1px solid #f0f0f0;border-radius:10px}.progress-wrap[_ngcontent-%COMP%] .progress-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.progress-wrap[_ngcontent-%COMP%] .progress-actions[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:end;gap:1rem}[_nghost-%COMP%] .ant-steps-item-title:after{background-color:#d3d3d3!important}"]})};var dr=()=>({"0%":"#108ee9","100%":"#87d068"}),mr=(i,t)=>t.id;function pr(i,t){i&1&&d(0," (\u6211) ")}function cr(i,t){if(i&1&&(a(0,"div",18)(1,"span",20),d(2,"\u8FDB\u5EA6\u8BF4\u660E\uFF1A"),o(),a(3,"span",21),d(4),o()()),i&2){let e=u().$implicit;s(4),v(e.note)}}function ur(i,t){if(i&1){let e=E();a(0,"button",24),_("nzOnConfirm",function(){f(e);let r=u(2).$implicit,l=u();return h(l.onStartProgress(r))}),d(1," \u5F00\u59CB "),o()}}function gr(i,t){if(i&1){let e=E();a(0,"button",25),_("click",function(){f(e);let r=u(2).$implicit,l=u();return h(l.onUpdateProgress(r))}),d(1," \u66F4\u65B0 "),o()}}function fr(i,t){if(i&1&&M(0,ur,2,0,"button",22)(1,gr,2,0,"button",23),i&2){let e=u().$implicit;x(e.progress<=0?0:1)}}function hr(i,t){if(i&1&&(a(0,"div",9)(1,"div",11),g(2,"nz-avatar",12),a(3,"div",13)(4,"span",14),d(5),M(6,pr,1,0),o(),a(7,"span",15),d(8),k(9,"date"),o()(),g(10,"nz-progress",16),o(),a(11,"div",17),M(12,cr,5,1,"div",18),a(13,"div",19),M(14,fr,2,1),o()()()),i&2){let e=t.$implicit,n=u();s(2),se("background-color","#1890ff"),p("nzSize","small")("nzText",e.userName==null?null:e.userName.charAt(0)),s(3),b(" ",e.userName," "),s(),x(e.userId===n.currentUserId()?6:-1),s(2),b(" \u6700\u540E\u66F4\u65B0\uFF1A",F(9,10,e.updatedAt,"MM:dd hh:mm")," "),s(2),p("nzPercent",e.progress),s(2),x(e.note?12:-1),s(2),x(e.userId===n.currentUserId()&&!n.isProgressLocked()?14:-1)}}function yr(i,t){i&1&&(a(0,"div",10),d(1,"\u6682\u65E0\u6210\u5458\u8FDB\u5EA6\u6570\u636E"),o())}var Pt=class i{item=c(null);progressList=c([]);members=c([]);currentUserId=c("");updateProgressClick=S();normalizedProgressList=y(()=>{let t=this.item();if(!t)return[];let e=t.memberIds??[],n=new Map(this.members().map(C=>[C.userId,C.displayName])),r=new Map(this.progressList().map(C=>[C.userId,C])),l=[];if(e.length){let C=e.map(R=>({id:R,itemId:r.get(R)?.itemId??t.id,userId:R,userName:r.get(R)?.userName??n.get(R)??R,progress:r.get(R)?.progress??0,note:r.get(R)?.note??"",updatedAt:t.updatedAt}));l.push(...C)}else{if(!t.assigneeId)return[];l.push({id:"",itemId:t.id,userId:t.assigneeId,userName:t.assigneeName??n.get(t.assigneeId)??t.assigneeId,progress:t.progress,note:"",updatedAt:t.updatedAt})}let m=this.currentUserId();return l.sort((C,R)=>C.userId===m?-1:R.userId===m?1:0)});mainProgress=y(()=>this.item()?.progress??0);isClosed(){return this.item()?.status==="closed"}getAvatarLetter(t){return t?t.charAt(0).toUpperCase():"?"}isProgressLocked(){let t=this.item()?.status;return t==="accepted"||t==="closed"}onUpdateProgress(t){this.updateProgressClick.emit(t)}onStartProgress(t){this.updateProgressClick.emit(t)}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-progress-area"]],inputs:{item:[1,"item"],progressList:[1,"progressList"],members:[1,"members"],currentUserId:[1,"currentUserId"]},outputs:{updateProgressClick:"updateProgressClick"},decls:15,vars:6,consts:[["title","\u6210\u5458\u8FDB\u5EA6"],[1,"main-progress-header"],[1,"main-progress-info"],[1,"main-progress-label"],[1,"main-progress-hint"],[1,"main-progress-data"],[1,"progress-bar"],[3,"nzPercent","nzShowInfo","nzStrokeColor"],[1,"progress-list"],[1,"progress-item"],[1,"empty"],[1,"progress-item-header"],[3,"nzSize","nzText"],[1,"member-info"],[1,"member-name"],[1,"member-hint"],[3,"nzPercent"],[1,"progress-item-footer"],[1,"note-row"],[1,"progress-item-actions"],[1,"note-label"],[1,"note"],["nz-button","","nzType","default","nzSize","small","nz-popconfirm","","nzPopconfirmTitle","\u786E\u8BA4\u5F00\u59CB\u5904\u7406\u5417\uFF1F","nzPopconfirmPlacement","topRight"],["nz-button","","nzType","default","nzSize","small"],["nz-button","","nzType","default","nzSize","small","nz-popconfirm","","nzPopconfirmTitle","\u786E\u8BA4\u5F00\u59CB\u5904\u7406\u5417\uFF1F","nzPopconfirmPlacement","topRight",3,"nzOnConfirm"],["nz-button","","nzType","default","nzSize","small",3,"click"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card",0)(1,"div",1)(2,"div",2)(3,"span",3),d(4,"\u6574\u4F53\u8FDB\u5EA6"),o(),a(5,"span",4),d(6,"\u81EA\u52A8\u53D6\u6210\u5458\u5E73\u5747\u503C"),o()(),a(7,"div",5),d(8),o()(),a(9,"div",6),g(10,"nz-progress",7),o(),a(11,"div",8),D(12,hr,15,13,"div",9,mr,!1,yr,2,0,"div",10),o()()),e&2&&(s(8),b("",n.mainProgress(),"%"),s(2),p("nzPercent",n.mainProgress())("nzShowInfo",!1)("nzStrokeColor",hn(5,dr)),s(2),w(n.normalizedProgressList()))},dependencies:[_t,yt,B,_e,de,ye,ce,Re,Hn,lt,qn,Q,N,W],styles:["[_nghost-%COMP%]{display:block}.main-progress-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.main-progress-header[_ngcontent-%COMP%] .main-progress-info[_ngcontent-%COMP%]{margin-left:4px;display:flex;flex-direction:column}.main-progress-header[_ngcontent-%COMP%] .main-progress-info[_ngcontent-%COMP%] .main-progress-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#262626}.main-progress-header[_ngcontent-%COMP%] .main-progress-info[_ngcontent-%COMP%] .main-progress-hint[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c}.main-progress-header[_ngcontent-%COMP%] .main-progress-data[_ngcontent-%COMP%]{font-size:28px;font-weight:600;color:#262626}.progress-bar[_ngcontent-%COMP%]{margin-bottom:16px}.progress-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.progress-item[_ngcontent-%COMP%]{background:#fafafa;border-radius:8px;padding:12px 16px;transition:all .2s ease;border:1px solid transparent}.progress-item[_ngcontent-%COMP%]:hover{background:#f5faff;border-color:#d6e4ff}.progress-item-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.member-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:120px;margin-right:50px}.member-name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#262626}.member-hint[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c}.progress-item-header[_ngcontent-%COMP%] nz-progress[_ngcontent-%COMP%]{flex:1;margin-left:12px}.progress-item-footer[_ngcontent-%COMP%]{margin-top:8px;display:flex;justify-content:space-between;align-items:center}.progress-item-footer[_ngcontent-%COMP%] .note-row[_ngcontent-%COMP%]{font-size:12px;color:#595959}.progress-item-footer[_ngcontent-%COMP%] .note-label[_ngcontent-%COMP%]{color:#8c8c8c}.progress-item-footer[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{margin-left:4px}.progress-item-actions[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center;gap:8px}.progress-item-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:6px}.empty[_ngcontent-%COMP%]{text-align:center;color:#bfbfbf;padding:24px 0}"]})};var vr=(i,t)=>t.id;function Cr(i,t){if(i&1&&g(0,"nz-alert",14),i&2){let e=u().$implicit;p("nzMessage","\u963B\u585E\u539F\u56E0\uFF1A"+e.snapshot.blockerReason)}}function br(i,t){if(i&1&&(a(0,"div",2)(1,"div",3)(2,"div")(3,"div",4),d(4),o(),a(5,"div",5),d(6),k(7,"date"),o()(),a(8,"div",6)(9,"nz-tag",7),d(10),o(),a(11,"nz-tag",8),d(12),o()()(),a(13,"div",9)(14,"div",10)(15,"div",11),d(16,"\u64CD\u4F5C\u4EBA"),o(),a(17,"div",12),d(18),o()(),a(19,"div",10)(20,"div",11),d(21,"\u9A8C\u8BC1\u4EBA"),o(),a(22,"div",12),d(23),o()(),a(24,"div",13)(25,"div",11),d(26,"\u6267\u884C\u4EBA"),o(),a(27,"div",12),d(28),o()(),a(29,"div",10)(30,"div",11),d(31,"\u8BA1\u5212\u5468\u671F"),o(),a(32,"div",12),d(33),o()(),a(34,"div",10)(35,"div",11),d(36,"\u5B9E\u9645\u5468\u671F"),o(),a(37,"div",12),d(38),o()()(),M(39,Cr,1,1,"nz-alert",14),o()),i&2){let e=t.$implicit,n=u();s(4),v(e.fromStageName),s(2),v(F(7,11,e.createdAt,"MM:dd HH:mm")),s(3),p("nzColor",n.statusColor(e.snapshot.status)),s(),b(" ",n.statusLabel(e.snapshot.status)," "),s(2),b(" \u8FDB\u5EA6 ",n.clampProgress(e.snapshot.progress),"% "),s(6),b(" ",e.operatorName||e.operatorId||"\u7CFB\u7EDF"," "),s(5),b(" ",e.snapshot.verifierName||"\u672A\u6307\u5B9A"," "),s(5),b(" ",e.snapshot.memberNames.length?e.snapshot.memberNames.join("\u3001"):"\u672A\u6307\u5B9A"," "),s(5),b(" ",n.formatDateRange(e.snapshot.planStartAt,e.snapshot.planEndAt)," "),s(5),b(" ",n.formatDateRange(e.snapshot.actualStartAt,e.snapshot.actualEndAt)," "),s(),x(e.snapshot.blockerReason?39:-1)}}var Rt=class i{entries=c([]);parsedEntries=y(()=>this.entries().map(t=>ge(V({},t),{snapshot:this.parseSnapshot(t.snapshotJson)})));statusLabel(t){return X[t]??t}statusColor(t){return ue[t]??t}clampProgress(t){let e=Number.isFinite(t)?t:0;return Math.max(0,Math.min(100,Math.round(e)))}formatDateRange(t,e){return`${this.formatDate(t)} ~ ${this.formatDate(e)}`}formatDate(t){return t?new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date(t)):"-"}parseSnapshot(t){try{let e=JSON.parse(t);return{stageId:e.stageId??null,stageName:e.stageName??"-",status:e.status??"todo",progress:e.progress??0,assigneeId:e.assigneeId??null,assigneeName:e.assigneeName??null,verifierId:e.verifierId??null,verifierName:e.verifierName??null,memberIds:e.memberIds??[],memberNames:e.memberNames??[],planStartAt:e.planStartAt??null,planEndAt:e.planEndAt??null,actualStartAt:e.actualStartAt??null,actualEndAt:e.actualEndAt??null,blockerReason:e.blockerReason??null}}catch{return{stageId:null,stageName:"-",status:"todo",progress:0,assigneeId:null,assigneeName:null,verifierId:null,verifierName:null,memberIds:[],memberNames:[],planStartAt:null,planEndAt:null,actualStartAt:null,actualEndAt:null,blockerReason:null}}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-stage-history"]],inputs:{entries:[1,"entries"]},decls:4,vars:1,consts:[["title","\u7814\u53D1\u9636\u6BB5\u5386\u53F2","emptyText","\u6682\u65E0\u7814\u53D1\u9636\u6BB5\u5386\u53F2",3,"emptyStatus"],[1,"history-list"],[1,"history-item"],[1,"history-header"],[1,"title"],[1,"time"],[1,"tags"],[3,"nzColor"],["nzColor","blue"],[1,"meta-grid"],[1,"meta-item"],[1,"label"],[1,"value"],[1,"meta-item","full"],["nzType","warning","nzShowIcon","",1,"mt",3,"nzMessage"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card",0)(1,"div",1),D(2,br,40,14,"div",2,vr),o()()),e&2&&(p("emptyStatus",n.parsedEntries().length===0),s(2),w(n.parsedEntries()))},dependencies:[Q,H,K,ut,ct,N,W],styles:['.history-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.history-item[_ngcontent-%COMP%]{position:relative;border:1px solid #f0f0f0;border-radius:10px;padding:12px;background:#fff}.history-item[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:#1890ff}.history-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#262626}.time[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c;margin-top:2px}.tags[_ngcontent-%COMP%]{display:flex;gap:8px}.meta-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.meta-item[_ngcontent-%COMP%]{background:#fafafa;border-radius:8px;padding:8px 10px}.meta-item.full[_ngcontent-%COMP%]{grid-column:1 / -1}.label[_ngcontent-%COMP%]{font-size:11px;color:#8c8c8c}.value[_ngcontent-%COMP%]{font-size:13px;color:#262626;font-weight:500;margin-top:2px}.mt[_ngcontent-%COMP%]{margin-top:10px}@media (max-width: 768px){.meta-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}']})};function zr(i,t){if(i&1&&(a(0,"nz-descriptions",2)(1,"nz-descriptions-item",4),d(2),o(),a(3,"nz-descriptions-item",5),d(4),o(),a(5,"nz-descriptions-item",6),d(6),o(),a(7,"nz-descriptions-item",7)(8,"nz-tag",8),d(9),o()(),a(10,"nz-descriptions-item",9)(11,"nz-tag",8),d(12),o()(),a(13,"nz-descriptions-item",10),d(14),o(),a(15,"nz-descriptions-item",11),d(16),o()()),i&2){let e=t,n=u();p("nzColumn",1),s(2),b(" ",e.creatorName," "),s(2),b(" ",n.memberNames()," "),s(2),b(" ",e.creatorName," "),s(2),p("nzColor",n.getStatusColor(e.status)),s(),b(" ",n.getStatusLabel(e.status)," "),s(2),p("nzColor",n.getPriorityColor(e.priority)),s(),b(" ",n.getPriorityLabel(e.priority)," "),s(2),b(" ",n.getStagesName(e.stageId)," "),s(2),b(" ",e.progress," % ")}}function Ir(i,t){if(i&1&&(a(0,"div",12)(1,"div",13)(2,"div",14),d(3,"\u8BA1\u5212\u5F00\u59CB"),o(),a(4,"div",15),d(5),k(6,"date"),o()(),a(7,"div",13)(8,"div",14),d(9,"\u8BA1\u5212\u7ED3\u675F"),o(),a(10,"div",15),d(11),k(12,"date"),o()(),a(13,"div",13)(14,"div",14),d(15,"\u5B9E\u9645\u5F00\u59CB"),o(),a(16,"div",15),d(17),k(18,"date"),o()(),a(19,"div",13)(20,"div",14),d(21,"\u5B9E\u9645\u7ED3\u675F"),o(),a(22,"div",15),d(23),k(24,"date"),o()(),a(25,"div",13)(26,"div",14),d(27,"\u8BA1\u5212\u5DE5\u671F"),o(),a(28,"div",15),d(29),o()(),a(30,"div",13)(31,"div",14),d(32,"\u5B9E\u9645\u5DE5\u671F"),o(),a(33,"div",15),d(34),o()(),a(35,"div",13)(36,"div",14),d(37,"\u5F53\u524D\u9636\u6BB5\u5DE5\u671F"),o(),a(38,"div",15),d(39),o()(),a(40,"div",16)(41,"div",14),d(42,"\u521B\u5EFA\u65F6\u95F4"),o(),a(43,"div",15),d(44),k(45,"date"),o()()(),a(46,"div",17),d(47),o()),i&2){let e=t,n=u();s(5),v(F(6,10,e.planStartAt,"yyyy-MM-dd")||"\u672A\u8BBE\u7F6E"),s(6),v(F(12,13,e.planEndAt,"yyyy-MM-dd")||"\u672A\u8BBE\u7F6E"),s(6),v(F(18,16,e.actualStartAt,"yyyy-MM-dd")||"-"),s(6),v(F(24,19,e.actualEndAt,"yyyy-MM-dd")||"-"),s(6),v(n.getPlannedDuration()),s(5),v(n.getActualDuration()),s(5),v(n.getCurrentStageDuration()),s(5),v(F(45,22,e.createdAt,"yyyy-MM-dd HH:mm")),s(3),gn("\u65F6\u95F4\u72B6\u6001\uFF1A",n.getTimeStatus(),"\u3002",n.getTimeStatusHint())}}var Dt=class i{rdItem=c.required();stages=c([]);stageHistory=c([]);members=c([]);memberNames=y(()=>this.rdItem().memberIds.length<=0||this.members().length<=0?this.rdItem().assigneeName:this.rdItem().memberIds.map(t=>this.members().find(n=>n.userId===t)?.displayName).join("\uFF0C"));getStatusLabel(t){return X[t]}getStatusColor(t){return ue[t]}getPriorityLabel(t){return De[t]}getPriorityColor(t){return we[t]}getStagesName(t){return t?this.stages().find(n=>n.id===t)?.name??"":""}getPlannedDuration(){let t=this.rdItem().planStartAt,e=this.rdItem().planEndAt;return!t||!e?"-":this.formatDuration(this.diffDurationDays(t,e))}getActualDuration(){let t=this.rdItem(),e=this.stageHistory().map(l=>this.parseSnapshot(l.snapshotJson)).reduce((l,m)=>!m?.actualStartAt||!m.actualEndAt?l:l+this.diffDurationDays(m.actualStartAt,m.actualEndAt),0),n=this.getCurrentStageDurationDays(t),r=e+n;return r<=0?"-":this.formatDuration(r)}getCurrentStageDuration(){let t=this.getCurrentStageDurationDays(this.rdItem());return t<=0?"-":this.formatDuration(t)}getTimeStatus(){let t=this.rdItem();if(!t.actualStartAt)return"\u672A\u5F00\u59CB";if(t.status!=="done"&&t.status!=="accepted"&&t.status!=="closed")return"\u8FDB\u884C\u4E2D";if(!t.actualEndAt||!t.planEndAt)return"\u5DF2\u5B8C\u6210";let e=new Date(t.actualEndAt),n=new Date(t.planEndAt),r=Math.round((n.getTime()-e.getTime())/(1e3*60*60*24)*2)/2;return r>0?`\u63D0\u524D ${this.formatDuration(r)}`:r===0?"\u6309\u65F6\u5B8C\u6210":`\u5EF6\u671F ${this.formatDuration(Math.abs(r))}`}getTimeStatusHint(){let t=this.getTimeStatus();return t==="\u672A\u5F00\u59CB"?"\u5F00\u59CB\u540E\u5C06\u81EA\u52A8\u7EDF\u8BA1\u5B9E\u9645\u5DE5\u671F\u3002":t==="\u8FDB\u884C\u4E2D"?"\u5B8C\u6210\u540E\u81EA\u52A8\u8BA1\u7B97\u201C\u63D0\u524D / \u6309\u65F6 / \u5EF6\u671F\u201D\u3002":"\u65F6\u95F4\u7EDF\u8BA1\u5DF2\u6309\u8BA1\u5212\u4E0E\u5B9E\u9645\u7ED3\u675F\u65F6\u95F4\u81EA\u52A8\u8BA1\u7B97\u3002"}parseSnapshot(t){if(!t)return null;try{return JSON.parse(t)}catch{return null}}getCurrentStageDurationDays(t){if(!t.actualStartAt)return 0;let e=t.actualEndAt??(t.status==="done"||t.status==="accepted"||t.status==="closed"?t.updatedAt:new Date().toISOString());return this.diffDurationDays(t.actualStartAt,e)}formatDuration(t){let e=Math.round(Math.max(0,t)*2)/2;return e<=0?"-":`${Number.isInteger(e)?e.toFixed(0):e.toFixed(1)} \u5929`}parseDateTime(t,e){if(/^\d{4}-\d{2}-\d{2}$/.test(t)){let n=e==="start"?"T00:00:00.000":"T23:59:59.999";return new Date(`${t}${n}`)}return new Date(t)}diffDurationDays(t,e){let n=this.parseDateTime(t,"start"),r=this.parseDateTime(e,"end");if(Number.isNaN(n.getTime())||Number.isNaN(r.getTime()))return 0;let l=Math.max(0,r.getTime()-n.getTime()),m=l/(1e3*60*60*24),C=Math.round(m*2)/2;return l>0&&C===0||l===0?.5:C}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-base-info"]],inputs:{rdItem:[1,"rdItem"],stages:[1,"stages"],stageHistory:[1,"stageHistory"],members:[1,"members"]},decls:5,vars:2,consts:[[1,"base-info-container"],["title","\u57FA\u7840\u4FE1\u606F"],["nzBordered","","nzSize","small",3,"nzColumn"],["title","\u65F6\u95F4\u4FE1\u606F"],["nzTitle","\u521B\u5EFA\u4EBA"],["nzTitle","\u6267\u884C\u4EBA"],["nzTitle","\u9A8C\u6536\u4EBA"],["nzTitle","\u72B6\u6001"],[3,"nzColor"],["nzTitle","\u4F18\u5148\u7EA7"],["nzTitle","\u9636\u6BB5"],["nzTitle","\u8FDB\u5EA6"],[1,"time-grid"],[1,"time-item"],[1,"label"],[1,"value"],[1,"time-item","full"],[1,"time-status"]],template:function(e,n){if(e&1&&(a(0,"div",0)(1,"app-detail-item-card",1),M(2,zr,17,10,"nz-descriptions",2),o(),a(3,"app-detail-item-card",3),M(4,Ir,48,25),o()()),e&2){let r,l;s(2),x((r=n.rdItem())?2:-1,r),s(2),x((l=n.rdItem())?4:-1,l)}},dependencies:[gt,ci,pi,Q,H,K,N,W],styles:[".base-info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.time-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.time-item[_ngcontent-%COMP%]{background:#f5f7fa;border-radius:8px;padding:12px}.time-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c;margin-bottom:4px}.time-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#262626}.time-item.full[_ngcontent-%COMP%]{grid-column:span 2}.time-status[_ngcontent-%COMP%]{margin-top:12px;padding:10px 12px;border-radius:6px;background:#fff7e6;color:#d46b08;border:1px solid #ffd591;font-size:13px}"]})};var Mr=(i,t)=>t.id;function xr(i,t){if(i&1&&(a(0,"nz-timeline-item")(1,"div",1)(2,"div",2)(3,"span",3),d(4),o(),a(5,"span",4),d(6),o(),a(7,"span",5),d(8),k(9,"date"),o()()()()),i&2){let e=t.$implicit;s(4),v(e.operatorName||"\u7CFB\u7EDF"),s(2),v(e.content||e.actionType),s(2),v(F(9,3,e.createdAt,"MM/dd HH:mm"))}}var wt=class i{logs=c([]);static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-logs-area"]],inputs:{logs:[1,"logs"]},decls:4,vars:2,consts:[["title","\u7814\u53D1\u52A8\u6001","maxHeight","600px",3,"emptyStatus","emptyText"],[1,"rd-log-item"],[1,"meta"],[1,"operator"],[1,"content"],[1,"time"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card",0)(1,"nz-timeline"),D(2,xr,10,6,"nz-timeline-item",null,Mr),o()()),e&2&&(p("emptyStatus",n.logs().length===0)("emptyText","\u6682\u65E0\u52A8\u6001"),s(2),w(n.logs()))},dependencies:[Q,ft,ui,gi,N,W],styles:[".rd-log-item[_ngcontent-%COMP%]{padding:4px 0 0}.rd-log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.875rem;color:#000000a6;font-size:1rem;margin-bottom:4px}.rd-log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .operator[_ngcontent-%COMP%]{font-weight:700;white-space:nowrap;flex-shrink:0}.rd-log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{color:#000000d9;font-size:.875rem}.rd-log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{margin-right:15px;font-size:.875rem;font-weight:300;color:#bbb;margin-left:auto;white-space:nowrap;flex-shrink:0}"]})};var Sr=(i,t)=>t.id;function Pr(i,t){i&1&&(a(0,"div",3),d(1,"\u6682\u65E0\u7814\u53D1\u9879\u63CF\u8FF0"),o())}function Rr(i,t){if(i&1&&(a(0,"div",4)(1,"div",5),d(2),o(),a(3,"div",6),d(4),o()()),i&2){let e=t.$implicit;s(2),v(e.label),s(2),v(e.content)}}var Et=class i{rdItem=c.required();projectId=c.required();logs=c([]);mdContent=y(()=>{let t=this.rdItem();return t?vi(t.description||"",this.projectId(),t.id,"rd-items"):""});detailNotes=y(()=>{let t=[...this.logs()].reverse(),e=[];for(let n of t){let r=n.content?.trim()||"";if(r){if(n.actionType==="advance_stage"){let m=r.match(/(?:^|;)\s*说明[::]\s*(.+)$/)?.[1]?.trim();if(!m)continue;let R=r.match(/推进阶段[::]\s*.+?\s*->\s*([^;]+)/)?.[1]?.trim()||"\u8BE5";e.push({id:`advance-${n.id}`,label:`${R}\u9636\u6BB5\u63CF\u8FF0`,content:m});continue}if(n.actionType==="close"){let m=r.match(/关闭研发项[::]\s*(.+)$/)?.[1]?.trim();if(!m)continue;e.push({id:`close-${n.id}`,label:"\u5173\u95ED\u539F\u56E0",content:m})}}}return e});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-description-area"]],inputs:{rdItem:[1,"rdItem"],projectId:[1,"projectId"],logs:[1,"logs"]},decls:6,vars:6,consts:[[3,"title"],[1,"description-container"],[3,"content","showToc","tocVariant","tocCollapsedByDefault"],[1,"empty"],[1,"note"],[1,"note-label"],[1,"note-content"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card",0)(1,"div",1),g(2,"app-markdown-viewer",2),M(3,Pr,2,0,"div",3),o(),D(4,Rr,5,2,"div",4,Sr),o()),e&2&&(p("title","\u7814\u53D1\u9879\u63CF\u8FF0"),s(2),p("content",n.mdContent())("showToc",!0)("tocVariant","floating")("tocCollapsedByDefault",!0),s(),x(n.mdContent()?-1:3),s(),w(n.detailNotes()))},dependencies:[_i,Q],styles:[".description-container[_ngcontent-%COMP%]{margin-bottom:10px;max-height:500px;overflow-y:auto}.description-container[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:.875rem;color:gray}.note[_ngcontent-%COMP%]{padding:1rem 0;border-top:1px solid #ebedf0}.note[_ngcontent-%COMP%] .note-label[_ngcontent-%COMP%]{margin-bottom:4px;font-size:.8rem;font-weight:700;color:gray}.note[_ngcontent-%COMP%] .note-content[_ngcontent-%COMP%]{font-size:.8rem;text-indent:.8rem}"]})};function Dr(i,t){i&1&&(a(0,"span",5),d(1),o()),i&2&&(s(),v(t))}function wr(i,t){if(i&1&&(a(0,"div",3)(1,"div",4),M(2,Dr,2,1,"span",5),a(3,"strong"),d(4),o()()()),i&2){let e,n=u();s(2),x((e=n.subtitleText())?2:-1,e),s(2),v(n.titleText())}}function Er(i,t){i&1&&g(0,"nz-spin",6)}function Tr(i,t){if(i&1){let e=E();a(0,"div",7)(1,"div",8)(2,"app-rd-flow-area",9),_("actionClick",function(r){f(e);let l=u(2);return h(l.actionClick.emit(r))})("deleteClick",function(){f(e);let r=u(2);return h(r.deleteClick.emit())}),o(),a(3,"app-rd-progress-area",10),_("updateProgressClick",function(r){f(e);let l=u(2);return h(l.updateProgressClick.emit(r))}),o(),g(4,"app-rd-description-area",11)(5,"app-rd-logs-area",12)(6,"app-rd-stage-history",13),o(),a(7,"div",14),g(8,"app-rd-base-info",15),o()()}if(i&2){let e=t,n=u(2);s(2),p("item",e)("members",n.members())("stages",n.stages())("busy",n.busy()),s(),p("item",e)("progressList",n.progressList())("members",n.members())("currentUserId",n.currentUserId()),s(),p("projectId",n.projectId())("rdItem",e)("logs",n.logs()),s(),p("logs",n.logs()),s(),p("entries",n.stageHistory()),s(2),p("rdItem",e)("stages",n.stages())("stageHistory",n.stageHistory())("members",n.members())}}function Nr(i,t){if(i&1&&M(0,Er,1,0,"nz-spin",6)(1,Tr,9,17,"div",7),i&2){let e,n=u();x(n.loading()&&!n.rdItem()?0:(e=n.rdItem())?1:-1,e)}}var Tt=class i{rdItem=c();loading=c(!1);open=c(!1);busy=c(!1);logs=c([]);members=c([]);stages=c([]);progressList=c([]);stageHistory=c([]);projectId=c("");currentUserId=c("");close=S();actionClick=S();updateProgressClick=S();deleteClick=S();subtitleText=y(()=>this.rdItem()?.rdNo||"");titleText=y(()=>this.rdItem()?.title||"\u7814\u53D1\u9879\u8BE6\u60C5");closeDetaile(){this.close.emit()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-detail"]],inputs:{rdItem:[1,"rdItem"],loading:[1,"loading"],open:[1,"open"],busy:[1,"busy"],logs:[1,"logs"],members:[1,"members"],stages:[1,"stages"],progressList:[1,"progressList"],stageHistory:[1,"stageHistory"],projectId:[1,"projectId"],currentUserId:[1,"currentUserId"]},outputs:{close:"close",actionClick:"actionClick",updateProgressClick:"updateProgressClick",deleteClick:"deleteClick"},decls:4,vars:7,consts:[["drawerTitleTpl",""],[3,"nzOnClose","nzVisible","nzClosable","nzMaskClosable","nzWidth","nzWrapClassName","nzMask","nzTitle"],["nzDrawerContent",""],[1,"title-wrap"],[1,"title-main"],[1,"subtitle"],["nzSize","large","nzTip","\u6B63\u5728\u52A0\u8F7D\u7814\u53D1\u9879....",1,"loading"],[1,"detail-wrap"],[1,"left-column"],[3,"actionClick","deleteClick","item","members","stages","busy"],[3,"updateProgressClick","item","progressList","members","currentUserId"],[3,"projectId","rdItem","logs"],[3,"logs"],[3,"entries"],[1,"right-column"],[3,"rdItem","stages","stageHistory","members"]],template:function(e,n){if(e&1){let r=E();a(0,"nz-drawer",1),_("nzOnClose",function(){return f(r),h(n.closeDetaile())}),A(1,wr,5,2,"ng-template",null,0,q)(3,Nr,2,1,"ng-template",2),o()}if(e&2){let r=U(2);p("nzVisible",n.open())("nzClosable",!0)("nzMaskClosable",!0)("nzWidth",900)("nzWrapClassName","rd-detail-drawer")("nzMask",!1)("nzTitle",r)}},dependencies:[Tn,En,wn,Y,ze,gt,ft,N,J,rt,L,xt,Et,wt,Dt,Pt,Kn,Jn,Rt],styles:[".ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-label{min-width:75px}.loading[_ngcontent-%COMP%]{margin-top:40%}.title-wrap[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.title-wrap[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{margin-right:1rem;font-size:12px;line-height:1.4;padding:3px 8px;border-radius:4px;white-space:nowrap;background:#fafafa;color:#64748b}.wrap-title[_ngcontent-%COMP%]{width:100%;margin-bottom:12px;font-size:18px;font-weight:700;border-bottom:1px solid #bbbbbb}.detail-wrap[_ngcontent-%COMP%]{display:flex;align-items:start;gap:1rem}.detail-wrap[_ngcontent-%COMP%] .left-column[_ngcontent-%COMP%]{width:65%;display:flex;flex-direction:column;gap:1rem}.detail-wrap[_ngcontent-%COMP%] .right-column[_ngcontent-%COMP%]{width:35%;display:flex;flex-direction:column;gap:1rem}.detail-wrap[_ngcontent-%COMP%] .edit-bar[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:end}.detail-wrap[_ngcontent-%COMP%] .edit-bar[_ngcontent-%COMP%] .edit-btn[_ngcontent-%COMP%]{margin-top:10px}.detail-wrap[_ngcontent-%COMP%] .edit-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px} .ant-descriptions-item-content, .ant-descriptions-item-label{font-size:.875rem}"]})};var Or=(i,t)=>t.id,Ri=(i,t)=>t.value;function Ar(i,t){if(i&1&&g(0,"nz-option",11),i&2){let e=t.$implicit;p("nzLabel",e.name)("nzValue",e.id)("nzDisabled",!e.enabled)}}function kr(i,t){i&1&&g(0,"nz-icon",20)}function Fr(i,t){if(i&1&&g(0,"nz-option",21),i&2){let e=u().$implicit;p("nzLabel",e.label)("nzValue",e.value)}}function Br(i,t){if(i&1&&M(0,Fr,1,2,"nz-option",21),i&2){let e=t.$implicit;x(e.value!==""?0:-1)}}function Vr(i,t){i&1&&g(0,"nz-icon",22)}function jr(i,t){if(i&1&&g(0,"nz-option",21),i&2){let e=u().$implicit;p("nzLabel",e.label)("nzValue",e.value)}}function Lr(i,t){if(i&1&&M(0,jr,1,2,"nz-option",21),i&2){let e=t.$implicit;x(e.value!==""?0:-1)}}function Hr(i,t){i&1&&g(0,"nz-icon",23)}var Nt=class i{fb=P(Ze);statusOptions=ht;priorityOptions=yi;query=c.required();stages=c([]);viewType=_n();valueChange=S();openCreateDialog=S();constructor(){this.form.valueChanges.pipe(an(500)).subscribe(t=>{this.valueChange.emit(t)})}ngOnInit(){this.form.patchValue(this.query(),{emitEvent:!1})}form=this.fb.group({keyword:this.fb.control(""),stageIds:this.fb.control([]),status:this.fb.control([]),priority:this.fb.control([])});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-filter-bar"]],inputs:{query:[1,"query"],stages:[1,"stages"],viewType:[1,"viewType"]},outputs:{viewType:"viewTypeChange",valueChange:"valueChange",openCreateDialog:"openCreateDialog"},decls:35,vars:8,consts:[["stageIconTpl",""],["statusIconTpl",""],["priorityIconTpl",""],[1,"toolbar"],["nz-form","",1,"search-form",3,"formGroup"],[1,"search-row"],[1,"search-box"],["nzInputPrefix","","nzType","search","nzTheme","outline"],["nz-input","","type","text","formControlName","keyword","placeholder","\u641C\u7D22 RD \u7F16\u53F7\u3001\u6807\u9898\u6216\u63CF\u8FF0"],[1,"form-item"],["formControlName","stageIds","nzPlaceHolder","\u9009\u62E9\u9636\u6BB5","nzMode","multiple","nzAllowClear","",3,"nzPrefix","nzMaxTagCount"],[3,"nzLabel","nzValue","nzDisabled"],["formControlName","status","nzPlaceHolder","\u9009\u62E9\u72B6\u6001","nzMode","multiple","nzAllowClear","",3,"nzPrefix","nzMaxTagCount"],["formControlName","priority","nzPlaceHolder","\u9009\u62E9\u4F18\u5148\u7EA7","nzMode","multiple","nzAllowClear","",3,"nzPrefix","nzMaxTagCount"],[1,"right-col"],[1,"view-type",3,"ngModelChange","ngModel"],["nz-radio-button","","nzValue","list"],["nzType","unordered-list","nzTheme","outline"],["nz-radio-button","","nzValue","board"],["nzType","book","nzTheme","outline"],["nzType","stock","nzTheme","outline"],[3,"nzLabel","nzValue"],["nzType","thunderbolt","nzTheme","outline"],["nzType","tags","nzTheme","outline"]],template:function(e,n){if(e&1){let r=E();a(0,"div",3)(1,"form",4)(2,"div",5)(3,"nz-form-item",6)(4,"nz-form-control")(5,"nz-input-wrapper"),g(6,"nz-icon",7)(7,"input",8),o()()()(),a(8,"nz-form-item",9)(9,"nz-form-control")(10,"nz-select",10),D(11,Ar,1,3,"nz-option",11,Or),o()(),A(13,kr,1,0,"ng-template",null,0,q),o(),a(15,"nz-form-item",9)(16,"nz-form-control")(17,"nz-select",12),D(18,Br,1,1,null,null,Ri),o()(),A(20,Vr,1,0,"ng-template",null,1,q),o(),a(22,"nz-form-item",9)(23,"nz-form-control")(24,"nz-select",13),D(25,Lr,1,1,null,null,Ri),o()(),A(27,Hr,1,0,"ng-template",null,2,q),o()(),a(29,"div",14)(30,"nz-radio-group",15),We("ngModelChange",function(m){return f(r),qe(n.viewType,m)||(n.viewType=m),h(m)}),a(31,"label",16),g(32,"nz-icon",17),o(),a(33,"label",18),g(34,"nz-icon",19),o()()()()}if(e&2){let r=U(14),l=U(21),m=U(28);s(),p("formGroup",n.form),s(9),p("nzPrefix",r)("nzMaxTagCount",2),s(),w(n.stages()),s(6),p("nzPrefix",l)("nzMaxTagCount",2),s(),w(n.statusOptions),s(6),p("nzPrefix",m)("nzMaxTagCount",2),s(),w(n.priorityOptions),s(5),Ue("ngModel",n.viewType)}},dependencies:[pt,On,Nn,di,li,mi,B,de,Pe,ot,at,J,Me,jn,Vn,L,Xe,Ie,me,Ke,pe,et,Fn,Bn,dt,Qn,Wn,Y,he],styles:[".toolbar[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12);border-radius:8px;display:flex;justify-content:space-between;margin-top:16px;padding:16px}.toolbar[_ngcontent-%COMP%] .search-form[_ngcontent-%COMP%]{flex:1;margin-right:50px;display:flex;flex-wrap:wrap;gap:10px}.toolbar[_ngcontent-%COMP%] .search-form[_ngcontent-%COMP%] .form-item[_ngcontent-%COMP%]{width:285px;min-width:285px;margin-bottom:0}.toolbar[_ngcontent-%COMP%] .search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{width:100%}.toolbar[_ngcontent-%COMP%] .search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:380px}.toolbar[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:end;justify-content:end}.toolbar[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%] .view-type[_ngcontent-%COMP%]{margin-top:auto;display:flex;justify-content:end}"]})};var $r=i=>({"task-card-active":i}),Ur=i=>({"background-color":i}),qr=(i,t)=>t.name;function Wr(i,t){if(i&1&&g(0,"nz-avatar",14),i&2){let e=t.$implicit;p("nzText",e.text)("ngStyle",Oe(2,Ur,e.color))}}var Ot=class i{rdItem=c.required();stages=c([]);projectMembers=c([]);selected=c(!1);projectId=c(null);selectItem=S();rdItemPreview=y(()=>vt(this.rdItem().description,this.projectId(),this.rdItem().id,"rd-items")||"\u6682\u65E0\u8BE6\u7EC6\u63CF\u8FF0");itemMembersMap=y(()=>{let t=this.rdItem().memberIds||[];return t.length===0&&this.rdItem().assigneeName?new Map([[this.rdItem().assigneeName,this.rdItem().assigneeName]]):t.length===0&&!this.rdItem().assigneeName?new Map:new Map(this.projectMembers().filter(e=>t.includes(e.userId)).map(e=>[e.userId,e.displayName]))});memberAvatarList=y(()=>{let t=this.itemMembersMap(),e=Array.from(t.values());return e.map((n,r)=>({name:n,text:n?.charAt(0)?.toUpperCase()||"?",color:this.generateBlue(r,e.length)}))});generateBlue(t,e){if(e<=1)return"hsl(210, 70%, 55%)";let n=65;return`hsl(210, 70%, ${n-t/(e-1)*(n-35)}%)`}getPriorityColor(t){return we[t]}getPriorityLabel(t){return De[t]}getStatusLabel(t){return X[t]}getStageName(t){let e=this.stages().find(n=>n.id===t);return e?e.name:"-"}getStagesName(t){return t?this.stages().find(n=>n.id===t)?.name??"":""}memberNamesText(t){let e=this.itemMembersMap();return e.size===0?"":Array.from(e.values()).join("\u3001")}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-item-card"]],inputs:{rdItem:[1,"rdItem"],stages:[1,"stages"],projectMembers:[1,"projectMembers"],selected:[1,"selected"],projectId:[1,"projectId"]},outputs:{selectItem:"selectItem"},decls:30,vars:24,consts:[[1,"task-card",3,"click","ngClass"],[1,"priority-left-bar"],[1,"card-content"],[1,"card-header"],[1,"task-id"],[1,"badge-row"],[1,"tag",3,"nzColor"],[1,"task-title"],[1,"des-text"],[3,"lines","enableToggle"],[1,"progress-section"],["nzSize","small",3,"nzPercent"],[1,"meta-row"],[1,"assignee"],[3,"nzText","ngStyle"],[1,"assignee-name"],[1,"due-date"],["nzType","calendar","nzTheme","outline"]],template:function(e,n){e&1&&(a(0,"div",0),_("click",function(){return n.selectItem.emit(n.rdItem())}),g(1,"div",1),a(2,"div",2)(3,"div",3)(4,"span",4),d(5),o(),a(6,"div",5)(7,"nz-tag",6),d(8),o(),a(9,"nz-tag",6),d(10),o()()(),a(11,"div",7),d(12),o(),a(13,"div",8)(14,"app-ellipsis-text",9),d(15),o()(),a(16,"div",10),g(17,"nz-progress",11),o(),a(18,"div",12)(19,"div",13)(20,"nz-avatar-group"),D(21,Wr,1,4,"nz-avatar",14,qr),o(),a(23,"span",15)(24,"app-ellipsis-text",9),d(25),o()()(),a(26,"div",16),g(27,"nz-icon",17),d(28),k(29,"date"),o()()()()),e&2&&(p("ngClass",Oe(22,$r,n.selected())),s(),se("background","#1890ff"),ee("priority-left-bar",n.selected()),s(4),v(n.rdItem().rdNo),s(2),p("nzColor","blue"),s(),v(n.getStageName(n.rdItem().stageId)),s(),p("nzColor",n.getPriorityColor(n.rdItem().priority)),s(),v(n.getPriorityLabel(n.rdItem().priority)),s(2),v(n.rdItem().title),s(2),p("lines",2)("enableToggle",!1),s(),b(" ",n.rdItemPreview().summary," "),s(2),p("nzPercent",n.rdItem().progress),s(4),w(n.memberAvatarList()),s(3),p("lines",1)("enableToggle",!1),s(),b(" ",n.memberNamesText(n.rdItem())," "),s(3),b(" ",F(29,19,n.rdItem().planEndAt,"yyyy-MM-dd")," "))},dependencies:[ce,Re,H,K,_t,yt,hi,Y,he,Ct,N,vn,Qe,W],styles:[".task-card[_ngcontent-%COMP%]{width:100%;background:#fff;border-radius:8px;box-shadow:0 2px 18px #41414107,0 0 0 1px #3f3f3f05,0 4px 6px #00000008;transition:all .25s ease;overflow:hidden;-webkit-backdrop-filter:blur(0px);backdrop-filter:blur(0px);cursor:pointer}.task-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 12px 32px -12px #00000026,0 0 0 1px #00000008}.task-card-active[_ngcontent-%COMP%]{transform:translateY(2px);box-shadow:0 4px 12px -4px #00000026,0 0 0 1px #00000008;border:1px solid #188fff75}.priority-left-bar[_ngcontent-%COMP%]{position:absolute;left:0;top:0;bottom:0;width:4px}.card-content[_ngcontent-%COMP%]{padding:10px}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.task-id[_ngcontent-%COMP%]{font-size:12px;font-weight:500;letter-spacing:.3px;background:#f3f4f8;padding:2px 10px;border-radius:40px;color:#94a3b8;font-family:SF Mono,Fira Code,monospace;background:#f1f5f9;display:inline-block}.task-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;line-height:1.4;color:#0f172a;letter-spacing:-.2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}.des-text[_ngcontent-%COMP%]{font-size:12px;color:#999;margin-top:2px}.progress-section[_ngcontent-%COMP%]{margin-bottom:0}.meta-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.assignee[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.assignee-name[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#1e293b}.due-date[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center;gap:6px;background:#f8fafc;padding:4px 10px;border-radius:40px;font-size:12px;color:#334155;font-weight:500}.footer-note[_ngcontent-%COMP%]{font-size:11px;color:#94a3b8;display:flex;justify-content:flex-end;margin-top:8px}@media (max-width: 480px){.demo-grid[_ngcontent-%COMP%]{gap:16px}.task-card[_ngcontent-%COMP%]{width:100%;max-width:380px}}[_nghost-%COMP%] .progress-section{margin:0}"]})};var Ei=(i,t)=>t.id;function Qr(i,t){if(i&1){let e=E();a(0,"app-rd-item-card",4),_("selectItem",function(r){f(e);let l=u(3);return h(l.select(r))}),o()}if(i&2){let e,n=t.$implicit,r=u(3);p("rdItem",n)("stages",r.stages())("selected",((e=r.selectedItem())==null?null:e.id)===n.id)("projectId",r.projectId())("projectMembers",r.members())}}function Gr(i,t){i&1&&g(0,"nz-empty")}function Yr(i,t){if(i&1&&(a(0,"div",5)(1,"span"),d(2),o(),g(3,"nz-badge",6),o()),i&2){let e,n=u().$implicit,r=u(2);s(2),v(r.getStagesName(n.id)),s(),p("nzColor","#eee")("nzCount",((e=r.itemGroupByStages().get(n.id))==null?null:e.length)??0)}}function Jr(i,t){if(i&1&&(a(0,"nz-card",2),D(1,Qr,1,5,"app-rd-item-card",3,Ei,!1,Gr,1,0,"nz-empty"),o(),A(4,Yr,4,3,"ng-template",null,0,q)),i&2){let e=t.$implicit,n=U(5),r=u(2);p("nzTitle",n),s(),w(r.itemGroupByStages().get(e.id))}}function Kr(i,t){if(i&1&&D(0,Jr,6,2,null,null,Ei),i&2){let e=u();w(e.stages())}}var wi={critical:4,high:3,medium:2,low:1},At=class i{rdItems=c([]);stages=c([]);selectedItem=c(null);projectId=c(null);members=c([]);selectItem=S();itemGroupByStages=y(()=>{let t=new Map;for(let e of this.rdItems()){let n=e.stageId;n&&(t.has(n)||t.set(n,[]),t.get(n).push(e))}for(let e of t.values())e.sort((n,r)=>wi[r.priority]-wi[n.priority]);return t});select(t){this.selectItem.emit(t)}getStagesName(t){return t?this.stages().find(n=>n.id===t)?.name??"":""}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-list-board"]],inputs:{rdItems:[1,"rdItems"],stages:[1,"stages"],selectedItem:[1,"selectedItem"],projectId:[1,"projectId"],members:[1,"members"]},outputs:{selectItem:"selectItem"},decls:2,vars:1,consts:[["cardTitleTpl",""],[1,"cards-list"],[1,"items-card",3,"nzTitle"],[3,"rdItem","stages","selected","projectId","projectMembers"],[3,"selectItem","rdItem","stages","selected","projectId","projectMembers"],[1,"card-title"],["nzStandalone","","nzShowZero","",3,"nzColor","nzCount"]],template:function(e,n){e&1&&(a(0,"div",1),M(1,Kr,2,0),o()),e&2&&(s(),x(n.rdItems().length>0?1:-1))},dependencies:[ze,Dn,st,Un,H,Ot,rt,$n],styles:[".cards-list[_ngcontent-%COMP%]{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.cards-list[_ngcontent-%COMP%] .items-card[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden}.cards-list[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center}.cards-list[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:auto}.rd-title[_ngcontent-%COMP%]{color:#1677ff;font-weight:500;cursor:pointer}[_nghost-%COMP%] .ant-card-head{height:48px;padding:0 12px}[_nghost-%COMP%] .ant-card-head-title{padding:10px 0}[_nghost-%COMP%] .ant-card-body{display:flex;flex-direction:column;gap:10px;overflow:auto;padding:0 12px}[_nghost-%COMP%] .ant-card-bordered{border:1px solid #e7e7e7;border-radius:8px}"]})};var Xr=(i,t)=>({width:i,height:t});function Zr(i,t){if(i&1&&(a(0,"div",3),g(1,"img",4),o()),i&2){let e=u();se("left",e.hoveredPreview().left,"px")("top",e.hoveredPreview().top,"px"),s(),p("src",e.hoveredPreview().src,Yt)("alt",e.hoveredPreview().alt)}}var kt=class i{width=c("60px");height=c("60px");src=c(null);alt=c("");previewSrc=c(null);previewAlt=c("");hasError=I(!1);hoveredPreview=I(null);showPreview(t){if(!this.previewSrc()||this.hasError()){this.hoveredPreview.set(null);return}let e=this.calcPosition(t);this.hoveredPreview.set(V({src:this.previewSrc(),alt:this.previewAlt()||this.alt()},e))}movePreview(t){this.hoveredPreview()&&this.showPreview(t)}hidePreview(){this.hoveredPreview.set(null)}markError(){this.hasError.set(!0),this.hoveredPreview.set(null)}calcPosition(t){let l=t.clientX+16,m=t.clientY+16;return l+320>window.innerWidth&&(l=t.clientX-320-16),m+200>window.innerHeight&&(m=window.innerHeight-200-12),{left:l,top:m}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-image-hover-preview"]],inputs:{width:[1,"width"],height:[1,"height"],src:[1,"src"],alt:[1,"alt"],previewSrc:[1,"previewSrc"],previewAlt:[1,"previewAlt"]},decls:3,vars:9,consts:[[1,"item-img",3,"ngStyle"],[3,"error","mouseenter","mousemove","mouseleave","src","alt"],[1,"preview-float",3,"left","top"],[1,"preview-float"],[3,"src","alt"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"img",1),_("error",function(){return n.markError()})("mouseenter",function(l){return n.showPreview(l)})("mousemove",function(l){return n.movePreview(l)})("mouseleave",function(){return n.hidePreview()})("error",function(){return n.markError()}),o()(),M(2,Zr,2,6,"div",2)),e&2&&(se("display",!n.src()||n.hasError()?"none":"block"),p("ngStyle",yn(6,Xr,n.width(),n.height())),s(),p("src",n.src(),Yt)("alt",n.alt()),s(),x(n.hoveredPreview()?2:-1))},dependencies:[N,Qe],styles:[".item-img[_ngcontent-%COMP%]{flex-shrink:0;margin-left:auto;overflow:hidden;border-radius:8px;border:1px solid #f0f0f0}.item-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}.preview-float[_ngcontent-%COMP%]{padding:6px;position:fixed;z-index:1000;pointer-events:none;width:320px;height:200px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:6px;overflow:hidden;box-shadow:0 4px 16px #0003}.preview-float[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:100%;max-height:100%;object-fit:contain}"]})};var eo=(i,t)=>t.id;function to(i,t){if(i&1&&(a(0,"app-ellipsis-text",11)(1,"span",19),d(2),o()()),i&2){let e=t;p("lines",1)("enableToggle",!1),s(),p("nz-tooltip",e),s(),v(e)}}function no(i,t){i&1&&(a(0,"span",17),d(1,"\u672A\u6307\u6D3E"),o())}function io(i,t){if(i&1){let e=E();a(0,"tr",7),_("click",function(){let r=f(e).$implicit,l=u();return h(l.selectItem.emit(r))}),a(1,"td"),d(2),o(),a(3,"td",8)(4,"div",9)(5,"div",10)(6,"app-ellipsis-text",11)(7,"span",12),d(8),o(),a(9,"span",13),d(10),o()(),a(11,"nz-tag",14),d(12),o(),a(13,"nz-tag",14),d(14),o()(),a(15,"div",15)(16,"app-ellipsis-text",11),d(17),o()()(),g(18,"app-image-hover-preview",16),o(),a(19,"td"),d(20),o(),a(21,"td"),d(22),o(),a(23,"td"),M(24,to,3,4,"app-ellipsis-text",11)(25,no,2,0,"span",17),o(),a(26,"td"),g(27,"nz-progress",18),o(),a(28,"td"),d(29),k(30,"date"),o()()}if(i&2){let e,n,r=t.$implicit,l=t.$index,m=u();ee("selected-row",r.id===((e=m.selectedItem())==null?null:e.id)),s(2),v(l+1+m.query().pageSize*(m.query().page-1)),s(4),p("lines",1)("enableToggle",!1),s(2),b("[",r.rdNo,"]"),s(2),b(" ",r.title," "),s(),p("nzColor",m.getStatusColor(r.status)),s(),b(" ",m.getStatusLabel(r.status)," "),s(),p("nzColor",m.getPriorityColor(r.priority)),s(),b(" ",m.getPriorityLabel(r.priority)," "),s(2),p("lines",2)("enableToggle",!1),s(),b(" ",m.previewSummary(r)," "),s(),p("src",m.previewImageUrl(r))("previewSrc",m.previewImageUrl(r)),s(2),v(m.getStagesName(r.stageId)||"-"),s(2),v(r.creatorName||"-"),s(2),x((n=m.memberNamesText(r))?24:25,n),s(3),p("nzPercent",r.progress),s(2),v(F(30,21,r.updatedAt,"MM-dd HH:mm"))}}var Ft=class i{rdItems=c.required();query=c.required();projectId=c(null);selectedItem=c(null);stages=c([]);selectItem=S();members=c([]);previewMap=y(()=>{let t=new Map;for(let e of this.rdItems())t.set(e.id,vt(e.description,this.projectId(),e.id,"rd-items"));return t});getPriorityColor(t){return we[t]}getPriorityLabel(t){return De[t]}getStatusLabel(t){return X[t]}getStatusColor(t){return ue[t]}getStagesName(t){return t?this.stages().find(n=>n.id===t)?.name??"":""}previewSummary(t){return this.previewMap().get(t.id)?.summary||"\u6682\u65E0\u8BE6\u7EC6\u63CF\u8FF0"}previewImageUrl(t){return this.previewMap().get(t.id)?.imageUrl??null}memberNamesText(t){let e=t.memberIds||[];if(e.length===0&&!t.assigneeName)return"";if(e.length===0&&t.assigneeName)return t.assigneeName;let n=new Map(this.members().map(r=>[r.userId,r.displayName]));return e.map(r=>n.get(r)||r).join("\u3001")}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-list-table"]],inputs:{rdItems:[1,"rdItems"],query:[1,"query"],projectId:[1,"projectId"],selectedItem:[1,"selectedItem"],stages:[1,"stages"],members:[1,"members"]},outputs:{selectItem:"selectItem"},decls:20,vars:5,consts:[[1,"rd-list",3,"nzData","nzFrontPagination","nzShowPagination","nzShowSizeChanger"],["nzWidth","66px"],[3,"nzEllipsis"],["nzWidth","100px"],["nzWidth","140px"],["nzWidth","150px"],[1,"rd-item-row",3,"selected-row"],[1,"rd-item-row",3,"click"],[1,"title-col"],[1,"rd-title-wrap"],[1,"title-text"],[3,"lines","enableToggle"],[1,"rd-no"],[1,"rd-title"],[3,"nzColor"],[1,"des-text"],[3,"src","previewSrc"],[1,"no-member"],["nzSize","small",3,"nzPercent"],[1,"rd-member-text",3,"nz-tooltip"]],template:function(e,n){e&1&&(a(0,"nz-table",0)(1,"thead")(2,"tr")(3,"th",1),d(4,"\u5E8F\u53F7"),o(),a(5,"th",2),d(6,"\u7814\u53D1\u9879"),o(),a(7,"th",3),d(8,"\u9636\u6BB5"),o(),a(9,"th",3),d(10,"\u521B\u5EFA\u4EBA"),o(),a(11,"th",4),d(12,"\u6267\u884C\u4EBA"),o(),a(13,"th",5),d(14,"\u8FDB\u5EA6"),o(),a(15,"th",4),d(16,"\u66F4\u65B0\u65F6\u95F4"),o()()(),a(17,"tbody"),D(18,io,31,24,"tr",6,eo),o()()),e&2&&(p("nzData",n.rdItems())("nzFrontPagination",!1)("nzShowPagination",!1)("nzShowSizeChanger",!0),s(5),p("nzEllipsis",!0),s(13),w(n.rdItems()))},dependencies:[mt,ni,Xn,Zn,ri,ti,ii,ei,B,ce,Re,H,K,tt,xe,N,Ct,kt,W],styles:[".title-col[_ngcontent-%COMP%]{display:flex}.title-col[_ngcontent-%COMP%] .rd-title-wrap[_ngcontent-%COMP%]{margin-right:auto}.title-col[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%]{display:flex;align-items:center}.title-col[_ngcontent-%COMP%] .rd-title[_ngcontent-%COMP%]{margin-right:8px;font-weight:600;font-size:1rem;cursor:pointer}.title-col[_ngcontent-%COMP%] .rd-no[_ngcontent-%COMP%]{font-weight:600;color:#1890ff}.title-col[_ngcontent-%COMP%] .des-text[_ngcontent-%COMP%]{font-size:12px;color:#999;margin-top:2px}.title-col[_ngcontent-%COMP%] .rd-img-wrap[_ngcontent-%COMP%]{width:100px;margin-left:auto}.rd-item-row[_ngcontent-%COMP%]{cursor:pointer}.rd-item-row.selected-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{border-left:4px solid #91d5ff}.rd-item-row.selected-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{background-color:#e6f7ff}.rd-item-row.selected-row[_ngcontent-%COMP%]:hover > td[_ngcontent-%COMP%]{background-color:#e6f7ff}"]})};var Bt=class i{apiClient=P(nt);projectContext=P(Se);async rdPostReqWithPK(t){let e=this.projectContext.currentProjectId();return this.apiClient.hubRequestWithPersonalToken({projectId:e,method:"POST",path:`/rd-items/${t.rdId}/${t.action}`,payload:t.payload})}async rdDeleteReqWithPK(t){let e=this.projectContext.currentProjectId();return this.apiClient.hubRequestWithPersonalToken({projectId:e,method:"DELETE",path:`/rd-items/${t.rdId}`,payload:t.payload})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})};var Vt=class i{apiClient=P(nt);rdTokenApi=P(Bt);async delete(t,e){return await this.rdTokenApi.rdDeleteReqWithPK({rdId:e,payload:{}})}async close(t,e,n){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"close",payload:{summary:n}})}async accept(t,e){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"accept",payload:{}})}async resolve(t,e,n){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"complete",payload:{summary:n}})}async resume(t,e){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"resume",payload:{}})}async block(t,e,n){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"block",payload:n})}async start(t,e){return await this.rdTokenApi.rdPostReqWithPK({action:"start",rdId:e,payload:{}})}async updateProgress(t,e){return await this.rdTokenApi.rdPostReqWithPK({rdId:t,action:"progress",payload:e})}async advanceStage(t,e){}async update(t,e,n){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"update",payload:V({},n)})}async getRdItemsList(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:"/rd-items",query:V({},e)})}async getRdItem(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:`/rd-items/${e}`})}async getRdStages(t){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:"/rd-stages"})}async getRdItemLogs(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:`/rd-items/${e}/logs`})}async getRdProgress(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:`/rd-items/${e}/progress`})}async getRdStageHistory(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:`/rd-items/${e}/stage-history`})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})};var jt=class i{rdApi=P(Vt);projectContextStore=P(Se);projectId=y(()=>this.projectContextStore.currentProjectId());rdItemsPageListState=I([]);rdItemsCountState=I(0);currentRdItemState=I(null);currentRdLogsState=I([]);currentRdProgressState=I([]);currentRdStageHistoryState=I([]);stagesState=I([]);projectMembersState=this.projectContextStore.currentProjectMembers;queryState=I({page:1,pageSize:10,stageId:"",status:[],type:[],priority:[],assigneeId:"",keyword:""});busyState=I(!1);loadingState=I(!1);currentRdLoadingState=I(!1);query=y(()=>this.queryState());currentRdItem=y(()=>this.currentRdItemState());currentRdLogs=y(()=>this.currentRdLogsState());currentRdProgress=y(()=>this.currentRdProgressState());currentRdStageHistory=y(()=>this.currentRdStageHistoryState());stages=y(()=>this.stagesState());rdItemsCount=y(()=>this.rdItemsCountState());rdItemsPageList=y(()=>this.rdItemsPageListState());projectMembers=y(()=>this.projectMembersState());busy=y(()=>this.busyState());rdItemsLoading=y(()=>this.loadingState());currentRdLoading=y(()=>this.currentRdLoadingState());initialize(){try{let t=this.projectId();if(!t)return;Promise.all([this.loadStages(),this.loadRdItems(),this.projectContextStore.loadProjectMembers(t)])}catch{}}async loadRdItems(){try{let t=this.projectId();if(!t)return;this.loadingState.set(!0);let e=await this.rdApi.getRdItemsList(t,this.query());this.rdItemsPageListState.set(e.items),this.rdItemsCountState.set(e.total),this.loadingState.set(!1)}catch{this.loadingState.set(!1)}}async loadStages(){let t=this.projectId();if(t)try{let e=(await this.rdApi.getRdStages(t)).items;this.stagesState.set(e)}catch{this.stagesState.set([])}}async loadCurrentRdItem(t){let e=this.projectId();if(e){this.currentRdLoadingState.set(!0);try{let n=await this.rdApi.getRdItem(e,t);this.currentRdItemState.set(n);let r=await this.rdApi.getRdItemLogs(e,t);this.currentRdLogsState.set(r.items);let l=await this.rdApi.getRdProgress(e,t),m=await this.rdApi.getRdStageHistory(e,t);this.currentRdProgressState.set(l.items),this.currentRdStageHistoryState.set(m.items),this.currentRdLoadingState.set(!1)}catch{throw this.currentRdLoadingState.set(!1),new Error("load current rd item error")}}}setCurrentRdItem(t){this.currentRdItemState.set(t)}updateQuery(t){this.queryState.update(e=>ge(V(V({},e),t),{page:t.page??e.page??1}))}update(t,e){let n=this.projectId();n&&this.runAction(()=>this.rdApi.update(n,t,e))}start(t){let e=this.projectId();this.runAction(()=>this.rdApi.start(e,t))}block(t,e){this.runAction(()=>this.rdApi.block(this.projectId(),t,e))}resume(t){this.runAction(()=>this.rdApi.resume(this.projectId(),t))}resolve(t){let e=this.projectId();e&&this.runAction(()=>this.rdApi.resolve(e,t))}advanceStage(t,e){}updateProgress(t){let e=this.currentRdItem();e&&this.runAction(()=>this.rdApi.updateProgress(e.id,t))}accept(t){let e=this.projectId();e&&this.runAction(()=>this.rdApi.accept(e,t))}close(t,e){let n=this.projectId();n&&this.runAction(()=>this.rdApi.close(n,t,e))}delete(t){let e=this.projectId();this.busyState.set(!0),qt(this.rdApi.delete(e,t)).subscribe({next:()=>{this.busyState.set(!1);let n=this.rdItemsPageListState();if(!n){this.loadRdItems();return}let r=n.filter(l=>l.id!==t);if(r.length===n.length){this.loadRdItems();return}this.rdItemsCountState.update(l=>l-1),this.rdItemsPageListState.update(l=>r)},error:()=>{this.busyState.set(!1)}})}runAction(t){this.busyState.set(!0),qt(t()).subscribe({next:e=>{this.busyState.set(!1),this.patchOrRefresh(e)},error:()=>{this.busyState.set(!1)}})}patchOrRefresh(t){let e=this.rdItemsPageListState();if(!e){this.loadRdItems();return}let n=e.findIndex(l=>l.id===t.id);if(n<0)return;this.loadCurrentRdItem(t.id);let r=[...e];r[n]=t,this.rdItemsPageListState.set(r)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})};function ro(i,t){if(i&1&&(a(0,"div")(1,"div",5)(2,"span"),d(3,"\u66F4\u65B0\u6211\u7684\u8FDB\u5EA6"),o(),a(4,"div",6),d(5),o()()()),i&2){let e=u();s(5),b(" ",e.rdItem()?e.rdItem().title:""," ")}}function oo(i,t){i&1&&(a(0,"div",15),g(1,"nz-icon",16),d(2," \u4EC5\u5141\u8BB8\u66F4\u65B0\u81EA\u5DF1\u7684\u8FDB\u5EA6"),o())}function ao(i,t){if(i&1){let e=E();oe(0),a(1,"div",7)(2,"div",8)(3,"div",9),d(4,"\u6210\u5458"),o(),a(5,"div",10),d(6),o()(),a(7,"div",8)(8,"div",9),d(9,"\u8FDB\u5EA6\u503C"),o(),a(10,"nz-slider",11),_("ngModelChange",function(r){f(e);let l=u();return h(l.progressDraft.set(r))}),o(),a(11,"div",12),d(12),o()(),a(13,"div",8)(14,"div",9),d(15,"\u8FDB\u5EA6\u8BF4\u660E\uFF08\u53EF\u9009\uFF09"),o(),a(16,"textarea",13),_("ngModelChange",function(r){f(e);let l=u();return h(l.note.set(r))}),o()(),g(17,"nz-alert",14),A(18,oo,3,0,"ng-template",null,0,q),o(),ae()}if(i&2){let e,n=U(19),r=u();s(6),v(((e=r.progress())==null?null:e.userName)??"_ _"),s(4),p("ngModel",r.progressDraft())("nzMin",0)("nzMax",100),s(2),b("",r.progressDraft(),"%"),s(4),p("ngModel",r.note()),s(),p("nzMessage",n)}}function so(i,t){if(i&1){let e=E();oe(0),a(1,"button",17),_("click",function(){f(e);let r=u();return h(r.cancel.emit())}),d(2,"\u53D6\u6D88"),o(),a(3,"button",18),_("click",function(){f(e);let r=u();return h(r.submitForm())}),d(4," \u4FDD\u5B58\u8FDB\u5EA6 "),o(),ae()}if(i&2){let e=u();s(3),p("nzLoading",e.busy())}}var Lt=class i{open=c(!1);busy=c(!1);progress=c(null);rdItem=c(null);confirm=S();cancel=S();progressDraft=I(0);note=I("");constructor(){le(()=>{this.open()&&(this.progressDraft.set(this.progress()?.progress||0),this.note.set(""))})}submitForm(){this.confirm.emit({progress:this.progressDraft(),note:this.note().trim()})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-progress-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],progress:[1,"progress"],rdItem:[1,"rdItem"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:4,vars:4,consts:[["alertInfoTemplate",""],[3,"nzOnCancel","nzVisible","nzWidth","nzClosable","nzMaskClosable"],[4,"nzModalTitle"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-title"],[1,"modal-subtitle"],[1,"progress-form"],[1,"field"],[1,"label"],[1,"value"],[3,"ngModelChange","ngModel","nzMin","nzMax"],[1,"progress-value"],["nz-input","","rows","4","placeholder","\u4F8B\u5982\uFF1A\u5B8C\u6210\u4E86\u6838\u5FC3\u6A21\u5757\u5F00\u53D1\uFF0C\u5F85\u8054\u8C03\u6D4B\u8BD5...",3,"ngModelChange","ngModel"],["nzType","info",3,"nzMessage"],[1,"hint"],["nzType","bulb","nzTheme","fill"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","nzLoading"]],template:function(e,n){e&1&&(a(0,"nz-modal",1),_("nzOnCancel",function(){return n.cancel.emit()}),A(1,ro,6,1,"div",2)(2,ao,20,7,"ng-container",3)(3,so,5,1,"ng-container",4),o()),e&2&&p("nzVisible",n.open())("nzWidth",600)("nzClosable",!0)("nzMaskClosable",!1)},dependencies:[be,Ce,Ye,ve,Je,L,Ie,me,pe,B,_e,de,ye,J,Me,Mt,rn,ut,ct,Y,he],styles:[".modal-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600}.modal-subtitle[_ngcontent-%COMP%]{color:#999;font-size:14px;line-height:20px}.progress-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.label[_ngcontent-%COMP%]{font-size:.875rem;color:#8c8c8c}.value[_ngcontent-%COMP%]{font-size:1rem;font-weight:500;color:#262626}.progress-value[_ngcontent-%COMP%]{text-align:center;font-size:28px;font-weight:600;color:#262626;margin-top:8px}textarea[_ngcontent-%COMP%]{border-radius:8px}.hint[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c} .ant-alert-info{border-radius:8px}"]})};var lo=["class","component"];function mo(i,t){if(i&1){let e=E();a(0,"app-rd-list-table",14),_("selectItem",function(r){f(e);let l=u();return h(l.selectItem(r))}),o()}if(i&2){let e=u();p("rdItems",e.pageRdItems())("query",e.query())("selectedItem",e.currentRdItem())("members",e.members())("stages",e.stages())("projectId",e.currentProjectId())}}function po(i,t){if(i&1){let e=E();a(0,"app-rd-list-board",15),_("selectItem",function(r){f(e);let l=u();return h(l.selectItem(r))}),o()}if(i&2){let e=u();p("rdItems",e.pageRdItems())("projectId",e.currentProjectId())("selectedItem",e.currentRdItem())("stages",e.stages())("members",e.members())}}function co(i,t){if(i&1&&d(0),i&2){let e=t.$implicit;b("\u5171 ",e," \u6761\u8BB0\u5F55")}}var Ht=class i{rdStore=P(jt);fb=P(Ze);router=P(bn);route=P(Cn);userStore=P(it);projectContext=P(Se);viewType=I("list");createDialogOpen=I(!1);detailDrawerOpen=I(!1);blockingItem=I(null);blockOpen=I(!1);drawerPlacement=I("right");advanceStageOpen=I(!1);progressUpdateItem=I(null);progressUpdateOpen=I(!1);currentUserId=this.userStore.currentUserId;currentProjectId=y(()=>this.rdStore.projectId()||"");members=this.rdStore.projectMembers;priorities=["\u4F4E","\u4E2D","\u9AD8"];loading=this.rdStore.rdItemsLoading;currentRdLoading=this.rdStore.currentRdLoading;pageRdItems=this.rdStore.rdItemsPageList;currentRdItem=this.rdStore.currentRdItem;currentRdLogs=this.rdStore.currentRdLogs;currentRdProgress=this.rdStore.currentRdProgress;currentRdStageHistory=this.rdStore.currentRdStageHistory;stages=this.rdStore.stages;total=this.rdStore.rdItemsCount;busy=this.rdStore.busy;query=this.rdStore.query;constructor(){this.rdStore.initialize(),this.route.queryParamMap.subscribe(t=>{let e=t.get("detail");if(e){if(this.currentRdItem()?.id===e||this.currentRdLoading()){this.detailDrawerOpen.set(!0);return}this.rdStore.loadCurrentRdItem(e),this.detailDrawerOpen.set(!0)}}),this.userStore.ensureUserLoaded()}onPageChange(t){this.rdStore.updateQuery({page:t}),this.rdStore.loadRdItems()}onPageSizeChange(t){this.rdStore.updateQuery({pageSize:t}),this.rdStore.loadRdItems()}updateQueryByFilter(t){this.rdStore.updateQuery(t),this.rdStore.loadRdItems()}createRd(t){}openCreateDialog(){this.createDialogOpen.set(!0)}async selectItem(t){this.openDetail(t),this.detailDrawerOpen.set(!0);try{await this.rdStore.loadCurrentRdItem(t.id),this.rdStore.setCurrentRdItem(this.rdStore.currentRdItem()??t)}catch{this.rdStore.setCurrentRdItem(t)}}closeDetail(){this.detailDrawerOpen.set(!1),this.rdStore.setCurrentRdItem(null),this.router.navigate([],{queryParams:{}})}handleSelectedAction(t){let e=this.currentRdItem();e&&this.handleAction(e,t)}deleteSelectedItem(){let t=this.currentRdItem();t&&(this.rdStore.delete(t.id),this.closeDetail())}handleAction(t,e){switch(this.openDetail(t),e){case"start":this.rdStore.start(t.id);break;case"block":this.blockingItem.set(t),this.blockOpen.set(!0);break;case"resume":this.rdStore.resume(t.id);break;case"complete":this.rdStore.resolve(t.id);break;case"advance":this.advanceStageOpen.set(!0);break}}openDetail(t){this.router.navigate([],{relativeTo:this.route,queryParams:{detail:t.id},queryParamsHandling:"merge"})}openProgressUpdate(t){if(this.currentRdItem()?.status!=="closed"){if(t.progress===0){this.confirmProgressUpdate({progress:1,note:""});return}this.progressUpdateItem.set(t),this.progressUpdateOpen.set(!0)}}confirmProgressUpdate(t){this.rdStore.updateProgress(t),this.progressUpdateOpen.set(!1),this.progressUpdateItem.set(null)}confirmBlock(t){let e=this.blockingItem();e&&(this.rdStore.block(e.id,{blockerReason:t}),this.closeBlockDialog())}closeBlockDialog(){this.blockOpen.set(!1),this.blockingItem.set(null)}confirmAdvanceStage(t){let e=this.currentRdItem();!e||!t.trim()||(this.rdStore.advanceStage(e.id,{stageId:t.trim()}),this.advanceStageOpen.set(!1))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd",8,"component"]],attrs:lo,decls:15,vars:34,consts:[["totalTemplate",""],[3,"title","loading","isFullscreen","isOverflowYAuto"],[1,"rd-content"],[1,"filter-container"],[3,"viewTypeChange","openCreateDialog","valueChange","query","stages","viewType"],[1,"list-content"],[3,"rdItems","query","selectedItem","members","stages","projectId"],[3,"rdItems","projectId","selectedItem","stages","members"],[1,"pagination-bar"],["nzShowSizeChanger","","nzShowQuickJumper","",3,"nzPageIndexChange","nzPageSizeChange","nzPageIndex","nzTotal","nzShowTotal","nzPageSize"],[3,"actionClick","close","updateProgressClick","deleteClick","open","rdItem","progressList","currentUserId","stageHistory","members","projectId","busy","logs","stages","loading"],[3,"cancel","confirm","open","busy","item"],[3,"cancel","confirm","open","busy","item","stages"],[3,"cancel","confirm","open","busy","rdItem","progress"],[3,"selectItem","rdItems","query","selectedItem","members","stages","projectId"],[3,"selectItem","rdItems","projectId","selectedItem","stages","members"]],template:function(e,n){if(e&1){let r=E();a(0,"app-page-layout",1)(1,"div",2)(2,"div",3)(3,"app-rd-filter-bar",4),We("viewTypeChange",function(m){return f(r),qe(n.viewType,m)||(n.viewType=m),h(m)}),_("openCreateDialog",function(){return f(r),h(n.openCreateDialog())})("valueChange",function(m){return f(r),h(n.updateQueryByFilter(m))}),o()(),a(4,"div",5),M(5,mo,1,6,"app-rd-list-table",6)(6,po,1,5,"app-rd-list-board",7),a(7,"div",8)(8,"nz-pagination",9),_("nzPageIndexChange",function(m){return f(r),h(n.onPageChange(m))})("nzPageSizeChange",function(m){return f(r),h(n.onPageSizeChange(m))}),o(),A(9,co,1,1,"ng-template",null,0,q),o()()(),a(11,"app-rd-detail",10),_("actionClick",function(m){return f(r),h(n.handleSelectedAction(m))})("close",function(){return f(r),h(n.closeDetail())})("updateProgressClick",function(m){return f(r),h(n.openProgressUpdate(m))})("deleteClick",function(){return f(r),h(n.deleteSelectedItem())}),o(),a(12,"app-rd-block-dialog",11),_("cancel",function(){return f(r),h(n.closeBlockDialog())})("confirm",function(m){return f(r),h(n.confirmBlock(m.blockerReason))}),o(),a(13,"app-rd-advance-stage-dialog",12),_("cancel",function(){return f(r),h(n.advanceStageOpen.set(!1))})("confirm",function(m){return f(r),h(n.confirmAdvanceStage(m.stageId))}),o(),a(14,"app-rd-progress-dialog",13),_("cancel",function(){return f(r),h(n.progressUpdateOpen.set(!1))})("confirm",function(m){return f(r),h(n.confirmProgressUpdate(m))}),o()()}if(e&2){let r=U(10);p("title","\u7814\u53D1\u9879")("loading",n.loading())("isFullscreen",!0)("isOverflowYAuto",!1),s(3),p("query",n.query())("stages",n.stages()),Ue("viewType",n.viewType),s(2),x(n.viewType()==="list"?5:6),s(3),p("nzPageIndex",n.query().page)("nzTotal",n.total())("nzShowTotal",r)("nzPageSize",n.query().pageSize),s(3),p("open",n.detailDrawerOpen())("rdItem",n.currentRdItem())("progressList",n.currentRdProgress())("currentUserId",n.currentUserId())("stageHistory",n.currentRdStageHistory())("members",n.members())("projectId",n.currentProjectId())("busy",n.busy())("logs",n.currentRdLogs())("stages",n.stages())("loading",n.currentRdLoading()),s(),p("open",n.blockOpen())("busy",n.busy())("item",n.blockingItem()),s(),p("open",n.advanceStageOpen())("busy",n.busy())("item",n.currentRdItem())("stages",n.stages()),s(),p("open",n.progressUpdateOpen())("busy",n.busy())("rdItem",n.currentRdItem())("progress",n.progressUpdateItem())}},dependencies:[Ln,Pe,mt,B,J,Y,dt,pt,ze,ce,st,et,L,Ci,H,Yn,Gn,At,Ft,Tt,zt,Lt,bt,Nt],styles:[".rd-content[_ngcontent-%COMP%]{width:100%;min-width:630px;height:100%;display:flex;flex-direction:column;align-items:center;overflow:auto}.rd-content[_ngcontent-%COMP%] .filter-container[_ngcontent-%COMP%]{width:100%;padding:0 48px}.rd-content[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{width:100%;padding:12px 48px 8px;min-height:0;flex-grow:1}.rd-content[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .pagination-bar[_ngcontent-%COMP%]{padding:12px;display:flex;justify-content:end}"]})};var uo=[{path:"",component:Ht}],$t=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=re({type:i});static \u0275inj=ie({imports:[N,Kt.forChild(uo),Kt]})};var Ti=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=re({type:i});static \u0275inj=ie({imports:[N,$t]})};export{Ti as RdModule};
@@ -0,0 +1 @@
1
+ import{$ as pe,Ha as W,Ia as Z,L as de,a as se,b as ce,ta as ze,ua as Q}from"./chunk-SPRWNZHF.js";import{i as $}from"./chunk-T3KK7ZXB.js";import{$b as L,Ac as q,Da as ee,Fb as g,Fc as A,Gb as B,Gc as h,Hb as F,Hc as j,Jc as M,Kc as E,Lb as _,Mb as ne,Oa as V,Wb as c,Xc as le,Yb as d,Zb as ie,_b as ae,a as x,ac as H,bc as m,cc as z,dc as p,ec as S,f as G,hc as oe,ic as N,jc as k,nb as o,oa as O,r as P,s as v,sa as y,td as R,uc as s,vc as D,wb as te,wc as b,xc as U,xd as C,yc as re,zc as I}from"./chunk-WI67LAOV.js";var ve=["nzType","avatar"];var ge=["*"];function he(e,a){if(e&1&&(z(0,"div",0),S(1,"nz-skeleton-element",4),p()),e&2){let t=s(2);o(),m("nzSize",t.avatar.size||"default")("nzShape",t.avatar.shape||"circle")}}function ye(e,a){if(e&1&&S(0,"h3",5),e&2){let t=s(2);A("width",t.toCSSUnit(t.title.width))}}function Se(e,a){if(e&1&&S(0,"li"),e&2){let t=a.$index,n=s(3);A("width",n.toCSSUnit(n.widthList[t]))}}function Te(e,a){if(e&1&&(z(0,"ul",3),L(1,Se,1,2,"li",6,ae),p()),e&2){let t=s(2);o(),H(t.rowsList)}}function xe(e,a){if(e&1&&(c(0,he,2,2,"div",0),z(1,"div",1),c(2,ye,1,2,"h3",2),c(3,Te,3,0,"ul",3),p()),e&2){let t=s();d(t.nzAvatar?0:-1),o(2),d(t.nzTitle?2:-1),o(),d(t.nzParagraph?3:-1)}}function Ne(e,a){e&1&&b(0)}var ke=(()=>{class e{nzActive=!1;nzType;nzBlock=!1;static \u0275fac=function(n){return new(n||e)};static \u0275dir=F({type:e,selectors:[["nz-skeleton-element"]],hostAttrs:[1,"ant-skeleton","ant-skeleton-element"],hostVars:4,hostBindings:function(n,i){n&2&&h("ant-skeleton-active",i.nzActive)("ant-skeleton-block",i.nzBlock)},inputs:{nzActive:[2,"nzActive","nzActive",C],nzType:"nzType",nzBlock:[2,"nzBlock","nzBlock",C]}})}return e})();var De=(()=>{class e{nzShape="circle";nzSize="default";styleMap={};ngOnChanges(t){if(t.nzSize&&typeof this.nzSize=="number"){let n=`${this.nzSize}px`;this.styleMap={width:n,height:n,"line-height":n}}else this.styleMap={}}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["nz-skeleton-element","nzType","avatar"]],inputs:{nzShape:"nzShape",nzSize:"nzSize"},features:[V],attrs:ve,decls:1,vars:10,consts:[[1,"ant-skeleton-avatar"]],template:function(n,i){n&1&&oe(0,"span",0),n&2&&(j(i.styleMap),h("ant-skeleton-avatar-square",i.nzShape==="square")("ant-skeleton-avatar-circle",i.nzShape==="circle")("ant-skeleton-avatar-lg",i.nzSize==="large")("ant-skeleton-avatar-sm",i.nzSize==="small"))},encapsulation:2,changeDetection:0})}return e})();var me=(()=>{class e{cdr=y(R);nzActive=!1;nzLoading=!0;nzRound=!1;nzTitle=!0;nzAvatar=!1;nzParagraph=!0;title;avatar;paragraph;rowsList=[];widthList=[];toCSSUnit(t=""){return pe(t)}getTitleProps(){let t=!!this.nzAvatar,n=!!this.nzParagraph,i="";return!t&&n?i="38%":t&&n&&(i="50%"),x({width:i},this.getProps(this.nzTitle))}getAvatarProps(){let t=this.nzTitle&&!this.nzParagraph?"square":"circle";return x({shape:t,size:"large"},this.getProps(this.nzAvatar))}getParagraphProps(){let t=!!this.nzAvatar,n=!!this.nzTitle,i={};return(!t||!n)&&(i.width="61%"),!t&&n?i.rows=3:i.rows=2,x(x({},i),this.getProps(this.nzParagraph))}getProps(t){return t&&typeof t=="object"?t:{}}getWidthList(){let{width:t,rows:n}=this.paragraph,i=[];return t&&Array.isArray(t)?i=t:t&&!Array.isArray(t)&&(i=[],i[n-1]=t),i}updateProps(){this.title=this.getTitleProps(),this.avatar=this.getAvatarProps(),this.paragraph=this.getParagraphProps(),this.rowsList=[...Array(this.paragraph.rows)],this.widthList=this.getWidthList(),this.cdr.markForCheck()}ngOnInit(){this.updateProps()}ngOnChanges(t){(t.nzTitle||t.nzAvatar||t.nzParagraph)&&this.updateProps()}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["nz-skeleton"]],hostAttrs:[1,"ant-skeleton"],hostVars:6,hostBindings:function(n,i){n&2&&h("ant-skeleton-with-avatar",!!i.nzAvatar)("ant-skeleton-active",i.nzActive)("ant-skeleton-round",i.nzRound)},inputs:{nzActive:[2,"nzActive","nzActive",C],nzLoading:[2,"nzLoading","nzLoading",C],nzRound:[2,"nzRound","nzRound",C],nzTitle:"nzTitle",nzAvatar:"nzAvatar",nzParagraph:"nzParagraph"},exportAs:["nzSkeleton"],features:[V],ngContentSelectors:ge,decls:2,vars:1,consts:[[1,"ant-skeleton-header"],[1,"ant-skeleton-content"],[1,"ant-skeleton-title",3,"width"],[1,"ant-skeleton-paragraph"],["nzType","avatar",3,"nzSize","nzShape"],[1,"ant-skeleton-title"],[3,"width"]],template:function(n,i){n&1&&(D(),c(0,xe,4,3)(1,Ne,1,0)),n&2&&d(i.nzLoading?0:1)},dependencies:[ke,De],encapsulation:2,changeDetection:0})}return e})(),ue=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=B({type:e});static \u0275inj=O({})}return e})();function Ae(e,a){}function Me(e,a){if(e&1&&(z(0,"div",0),_(1,Ae,0,0,"ng-template",2),p()),e&2){let t=s();o(),m("ngTemplateOutlet",t.nzAvatar)}}function Ee(e,a){if(e&1&&(N(0),M(1),k()),e&2){let t=s(3);o(),E(t.nzTitle)}}function we(e,a){if(e&1&&(z(0,"div",3),_(1,Ee,2,1,"ng-container",5),p()),e&2){let t=s(2);o(),m("nzStringTemplateOutlet",t.nzTitle)}}function Pe(e,a){if(e&1&&(N(0),M(1),k()),e&2){let t=s(3);o(),E(t.nzDescription)}}function Oe(e,a){if(e&1&&(z(0,"div",4),_(1,Pe,2,1,"ng-container",5),p()),e&2){let t=s(2);o(),m("nzStringTemplateOutlet",t.nzDescription)}}function Be(e,a){if(e&1&&(z(0,"div",1),c(1,we,2,1,"div",3),c(2,Oe,2,1,"div",4),p()),e&2){let t=s();o(),d(t.nzTitle?1:-1),o(),d(t.nzDescription?2:-1)}}var fe=["*"];function Fe(e,a){e&1&&b(0)}var Le=()=>({rows:4});function He(e,a){if(e&1&&(N(0),M(1),k()),e&2){let t=s(3);o(),E(t.nzTitle)}}function Ie(e,a){if(e&1&&(z(0,"div",6),_(1,He,2,1,"ng-container",9),p()),e&2){let t=s(2);o(),m("nzStringTemplateOutlet",t.nzTitle)}}function qe(e,a){if(e&1&&(N(0),M(1),k()),e&2){let t=s(3);o(),E(t.nzExtra)}}function je(e,a){if(e&1&&(z(0,"div",7),_(1,qe,2,1,"ng-container",9),p()),e&2){let t=s(2);o(),m("nzStringTemplateOutlet",t.nzExtra)}}function Re(e,a){}function Qe(e,a){if(e&1&&_(0,Re,0,0,"ng-template",8),e&2){let t=s(2);m("ngTemplateOutlet",t.listOfNzCardTabComponent.template)}}function Ge(e,a){if(e&1&&(z(0,"div",0)(1,"div",5),c(2,Ie,2,1,"div",6),c(3,je,2,1,"div",7),p(),c(4,Qe,1,1,null,8),p()),e&2){let t=s();o(2),d(t.nzTitle?2:-1),o(),d(t.nzExtra?3:-1),o(),d(t.listOfNzCardTabComponent?4:-1)}}function Ve(e,a){}function Ue(e,a){if(e&1&&(z(0,"div",1),_(1,Ve,0,0,"ng-template",8),p()),e&2){let t=s();o(),m("ngTemplateOutlet",t.nzCover)}}function $e(e,a){e&1&&S(0,"nz-skeleton",3),e&2&&m("nzActive",!0)("nzTitle",!1)("nzParagraph",le(3,Le))}function We(e,a){e&1&&b(0)}function Ze(e,a){}function Je(e,a){if(e&1&&(z(0,"li")(1,"span"),_(2,Ze,0,0,"ng-template",8),p()()),e&2){let t=a.$implicit,n=s(2);A("width",100/n.nzActions.length,"%"),o(2),m("ngTemplateOutlet",t)}}function Ke(e,a){if(e&1&&(z(0,"ul",4),L(1,Je,3,3,"li",10,ie),p()),e&2){let t=s();o(),H(t.nzActions)}}var Xe=(()=>{class e{nzHoverable=!0;static \u0275fac=function(n){return new(n||e)};static \u0275dir=F({type:e,selectors:[["","nz-card-grid",""]],hostAttrs:[1,"ant-card-grid"],hostVars:2,hostBindings:function(n,i){n&2&&h("ant-card-hoverable",i.nzHoverable)},inputs:{nzHoverable:[2,"nzHoverable","nzHoverable",C]},exportAs:["nzCardGrid"]})}return e})(),Ye=(()=>{class e{nzTitle=null;nzDescription=null;nzAvatar=null;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["nz-card-meta"]],hostAttrs:[1,"ant-card-meta"],inputs:{nzTitle:"nzTitle",nzDescription:"nzDescription",nzAvatar:"nzAvatar"},exportAs:["nzCardMeta"],decls:2,vars:2,consts:[[1,"ant-card-meta-avatar"],[1,"ant-card-meta-detail"],[3,"ngTemplateOutlet"],[1,"ant-card-meta-title"],[1,"ant-card-meta-description"],[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&(c(0,Me,2,1,"div",0),c(1,Be,3,2,"div",1)),n&2&&(d(i.nzAvatar?0:-1),o(),d(i.nzTitle||i.nzDescription?1:-1))},dependencies:[$,Z,W],encapsulation:2,changeDetection:0})}return e})(),et=(()=>{class e{template;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=g({type:e,selectors:[["nz-card-tab"]],viewQuery:function(n,i){if(n&1&&re(te,7),n&2){let T;I(T=q())&&(i.template=T.first)}},exportAs:["nzCardTab"],ngContentSelectors:fe,decls:1,vars:0,template:function(n,i){n&1&&(D(),ne(0,Fe,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return e})(),Ce="card",tt=(()=>{var f;let e,a=[],t=[],n,i=[],T=[],J,K=[],X=[];return f=class{cdr=y(R);directionality=y(se);destroyRef=y(ee);_nzModuleName=Ce;nzBordered=v(this,a,!0);nzLoading=(v(this,t),!1);nzHoverable=v(this,i,!1);nzBodyStyle=(v(this,T),null);nzCover;nzActions=[];nzType=null;nzSize=v(this,K,"default");nzTitle=v(this,X);nzExtra;listOfNzCardTabComponent;listOfNzCardGridDirective;dir="ltr";constructor(){ze(Ce,()=>this.cdr.markForCheck())}ngOnInit(){this.directionality.change?.pipe(de(this.destroyRef)).subscribe(u=>{this.dir=u,this.cdr.detectChanges()}),this.dir=this.directionality.value}},(()=>{let u=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[Q()],n=[Q()],J=[Q()],P(null,null,e,{kind:"field",name:"nzBordered",static:!1,private:!1,access:{has:r=>"nzBordered"in r,get:r=>r.nzBordered,set:(r,l)=>{r.nzBordered=l}},metadata:u},a,t),P(null,null,n,{kind:"field",name:"nzHoverable",static:!1,private:!1,access:{has:r=>"nzHoverable"in r,get:r=>r.nzHoverable,set:(r,l)=>{r.nzHoverable=l}},metadata:u},i,T),P(null,null,J,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:r=>"nzSize"in r,get:r=>r.nzSize,set:(r,l)=>{r.nzSize=l}},metadata:u},K,X),u&&Object.defineProperty(f,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:u})})(),G(f,"\u0275fac",function(r){return new(r||f)}),G(f,"\u0275cmp",g({type:f,selectors:[["nz-card"]],contentQueries:function(r,l,Y){if(r&1&&(U(Y,et,5),U(Y,Xe,4)),r&2){let w;I(w=q())&&(l.listOfNzCardTabComponent=w.first),I(w=q())&&(l.listOfNzCardGridDirective=w)}},hostAttrs:[1,"ant-card"],hostVars:16,hostBindings:function(r,l){r&2&&h("ant-card-loading",l.nzLoading)("ant-card-bordered",l.nzBordered)("ant-card-hoverable",l.nzHoverable)("ant-card-small",l.nzSize==="small")("ant-card-contain-grid",l.listOfNzCardGridDirective&&l.listOfNzCardGridDirective.length)("ant-card-type-inner",l.nzType==="inner")("ant-card-contain-tabs",!!l.listOfNzCardTabComponent)("ant-card-rtl",l.dir==="rtl")},inputs:{nzBordered:[2,"nzBordered","nzBordered",C],nzLoading:[2,"nzLoading","nzLoading",C],nzHoverable:[2,"nzHoverable","nzHoverable",C],nzBodyStyle:"nzBodyStyle",nzCover:"nzCover",nzActions:"nzActions",nzType:"nzType",nzSize:"nzSize",nzTitle:"nzTitle",nzExtra:"nzExtra"},exportAs:["nzCard"],ngContentSelectors:fe,decls:6,vars:6,consts:[[1,"ant-card-head"],[1,"ant-card-cover"],[1,"ant-card-body"],[3,"nzActive","nzTitle","nzParagraph"],[1,"ant-card-actions"],[1,"ant-card-head-wrapper"],[1,"ant-card-head-title"],[1,"ant-card-extra"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],[3,"width"]],template:function(r,l){r&1&&(D(),c(0,Ge,5,3,"div",0),c(1,Ue,2,1,"div",1),z(2,"div",2),c(3,$e,1,4,"nz-skeleton",3)(4,We,1,0),p(),c(5,Ke,3,0,"ul",4)),r&2&&(d(l.nzTitle||l.nzExtra||l.listOfNzCardTabComponent?0:-1),o(),d(l.nzCover?1:-1),o(),j(l.nzBodyStyle),o(),d(l.nzLoading?3:4),o(2),d(l.nzActions.length?5:-1))},dependencies:[Z,W,$,ue,me],encapsulation:2,changeDetection:0})),f})(),wt=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=B({type:e});static \u0275inj=O({imports:[tt,Ye,ce]})}return e})();export{tt as a,wt as b};
@@ -0,0 +1 @@
1
+ import{Ab as $t,Ba as Ft,Bb as Qt,Ca as Re,Db as Gt,Eb as jt,Fa as ce,Ga as pe,Gb as qt,Ha as $,I as De,Ia as q,J as Fe,Ja as At,K as Mt,Ka as Lt,Kb as Zt,L as N,La as Pt,U as Ae,Ub as Ut,Va as Rt,Z as Le,_a as Be,a as vt,c as xt,e as Tt,fb as He,gb as We,j as It,mb as Bt,n as _e,o as wt,qa as kt,r as Vt,ra as ie,rb as Se,sa as Et,ta as ge,u as bt,ua as oe,v as Nt,va as Pe,yb as Ht,za as Dt,zb as Wt}from"./chunk-SPRWNZHF.js";import{i as re,p as yt}from"./chunk-T3KK7ZXB.js";import{$b as ut,Aa as Ie,Ac as E,B as Ye,Ba as we,Bb as pt,C as Je,Da as Z,Ec as ke,Fb as w,Fc as ze,Gb as fe,Gc as G,Ha as ot,Hc as ht,Jc as L,Kb as mt,Kc as U,L as Te,Lb as x,Lc as ne,Mb as dt,Mc as Ct,Na as lt,Oa as B,Ra as j,Ub as he,V as Xe,Wa as at,Wb as h,Wc as Ee,Yb as C,Yc as zt,a as Ue,ac as ft,bc as u,cc as z,cd as _t,da as de,dc as _,ea as et,ec as y,f as ye,fc as ae,gc as Ce,hc as te,hd as gt,ic as F,ja as tt,jb as st,jc as A,kb as rt,l as ve,lc as W,m as xe,ma as nt,md as St,nb as d,oa as ue,qa as it,r as X,rc as M,s as R,sa as f,sb as V,tb as le,td as se,u as Ke,uc as c,vb as ct,vc as be,wb as ee,wc as Ne,xc as Me,xd as T,ya as S,yb as Ve,yc as H,yd as Ot,za as O,zc as k}from"./chunk-WI67LAOV.js";function mn(t,r){if(t&1&&(F(0),y(1,"img",4),A()),t&2){let e=c(2);d(),u("src",e.nzNotFoundImage,rt)("alt",e.isContentString?e.nzNotFoundContent:"empty")}}function dn(t,r){if(t&1&&x(0,mn,2,2,"ng-container",3),t&2){let e=c();u("nzStringTemplateOutlet",e.nzNotFoundImage)}}function un(t,r){t&1&&y(0,"nz-empty-simple")}function fn(t,r){t&1&&y(0,"nz-empty-default")}function hn(t,r){if(t&1&&h(0,un,1,0,"nz-empty-simple")(1,fn,1,0,"nz-empty-default"),t&2){let e=c();C(e.nzNotFoundImage==="simple"?0:1)}}function Cn(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(2);d(),ne(" ",e.isContentString?e.nzNotFoundContent:e.locale.description," ")}}function zn(t,r){if(t&1&&(z(0,"p",1),x(1,Cn,2,1,"ng-container",3),_()),t&2){let e=c();d(),u("nzStringTemplateOutlet",e.nzNotFoundContent)}}function _n(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(2);d(),ne(" ",e.nzNotFoundFooter," ")}}function gn(t,r){if(t&1&&(z(0,"div",2),x(1,_n,2,1,"ng-container",3),_()),t&2){let e=c();d(),u("nzStringTemplateOutlet",e.nzNotFoundFooter)}}var Sn=t=>({$implicit:t});function On(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(3);d(),U(e.content)}}function yn(t,r){if(t&1&&x(0,On,2,1,"ng-container",1),t&2){let e=c(2);u("nzStringTemplateOutlet",e.content)("nzStringTemplateOutletContext",zt(2,Sn,e.nzComponentName))}}function vn(t,r){}function xn(t,r){if(t&1&&x(0,vn,0,0,"ng-template",0),t&2){let e=c(2);u("cdkPortalOutlet",e.contentPortal)}}function Tn(t,r){if(t&1&&h(0,yn,1,4,"ng-container")(1,xn,1,1,null,0),t&2){let e=c();C(e.contentType==="template"||e.contentType==="string"?0:1)}}function In(t,r){t&1&&y(0,"nz-empty",2)}function wn(t,r){t&1&&y(0,"nz-empty",3)}function Vn(t,r){t&1&&y(0,"nz-empty")}function bn(t,r){if(t&1&&h(0,In,1,0,"nz-empty",2)(1,wn,1,0,"nz-empty",3)(2,Vn,1,0,"nz-empty"),t&2){let e,n=c(2);C((e=n.size)==="normal"?0:e==="small"?1:2)}}function Nn(t,r){if(t&1&&h(0,bn,3,1),t&2){let e=c();C(e.specificContent!==null?0:-1)}}var Mn=new it(""),kn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-empty-default"]],exportAs:["nzEmptyDefault"],decls:12,vars:0,consts:[["width","184","height","152","viewBox","0 0 184 152","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-default"],["fill","none","fill-rule","evenodd"],["transform","translate(24 31.67)"],["cx","67.797","cy","106.89","rx","67.797","ry","12.668",1,"ant-empty-img-default-ellipse"],["d","M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",1,"ant-empty-img-default-path-1"],["d","M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z","transform","translate(13.56)",1,"ant-empty-img-default-path-2"],["d","M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",1,"ant-empty-img-default-path-3"],["d","M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",1,"ant-empty-img-default-path-4"],["d","M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",1,"ant-empty-img-default-path-5"],["transform","translate(149.65 15.383)",1,"ant-empty-img-default-g"],["cx","20.654","cy","3.167","rx","2.849","ry","2.815"],["d","M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"]],template:function(n,i){n&1&&(Ie(),ae(0,"svg",0)(1,"g",1)(2,"g",2),te(3,"ellipse",3)(4,"path",4)(5,"path",5)(6,"path",6)(7,"path",7),Ce(),te(8,"path",8),ae(9,"g",9),te(10,"ellipse",10)(11,"path",11),Ce()()())},encapsulation:2,changeDetection:0})}return t})(),En=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-empty-simple"]],exportAs:["nzEmptySimple"],decls:6,vars:0,consts:[["width","64","height","41","viewBox","0 0 64 41","xmlns","http://www.w3.org/2000/svg",1,"ant-empty-img-simple"],["transform","translate(0 1)","fill","none","fill-rule","evenodd"],["cx","32","cy","33","rx","32","ry","7",1,"ant-empty-img-simple-ellipse"],["fill-rule","nonzero",1,"ant-empty-img-simple-g"],["d","M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"],["d","M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",1,"ant-empty-img-simple-path"]],template:function(n,i){n&1&&(Ie(),ae(0,"svg",0)(1,"g",1),te(2,"ellipse",2),ae(3,"g",3),te(4,"path",4)(5,"path",5),Ce()()())},encapsulation:2,changeDetection:0})}return t})(),Dn=["default","simple"],Kt=(()=>{class t{i18n=f(Rt);cdr=f(se);destroyRef=f(Z);nzNotFoundImage="default";nzNotFoundContent;nzNotFoundFooter;isContentString=!1;isImageBuildIn=!0;locale;ngOnChanges(e){let{nzNotFoundContent:n,nzNotFoundImage:i}=e;if(n){let p=n.currentValue;this.isContentString=typeof p=="string"}if(i){let p=i.currentValue||"default";this.isImageBuildIn=Dn.findIndex(v=>v===p)>-1}}ngOnInit(){this.i18n.localeChange.pipe(N(this.destroyRef)).subscribe(()=>{this.locale=this.i18n.getLocaleData("Empty"),this.cdr.markForCheck()})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-empty"]],hostAttrs:[1,"ant-empty"],inputs:{nzNotFoundImage:"nzNotFoundImage",nzNotFoundContent:"nzNotFoundContent",nzNotFoundFooter:"nzNotFoundFooter"},exportAs:["nzEmpty"],features:[B],decls:5,vars:3,consts:[[1,"ant-empty-image"],[1,"ant-empty-description"],[1,"ant-empty-footer"],[4,"nzStringTemplateOutlet"],[3,"src","alt"]],template:function(n,i){n&1&&(z(0,"div",0),h(1,dn,1,1,"ng-container")(2,hn,2,1),_(),h(3,zn,2,1,"p",1),h(4,gn,2,1,"div",2)),n&2&&(d(),C(i.isImageBuildIn?2:1),d(2),C(i.nzNotFoundContent!==null?3:-1),d(),C(i.nzNotFoundFooter?4:-1))},dependencies:[q,$,kn,En],encapsulation:2,changeDetection:0})}return t})();function Fn(t){switch(t){case"table":case"list":return"normal";case"select":case"tree-select":case"cascader":case"transfer":return"small";default:return""}}var $e=(()=>{class t{configService=f(Et);viewContainerRef=f(pt);cdr=f(se);injector=f(we);nzComponentName;specificContent;content;contentType="string";contentPortal;size="";constructor(){ge("empty",()=>{this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()})}ngOnChanges(e){e.nzComponentName&&(this.size=Fn(e.nzComponentName.currentValue)),e.specificContent&&!e.specificContent.isFirstChange()&&(this.content=e.specificContent.currentValue,this.renderEmpty())}ngOnInit(){this.content=this.specificContent||this.getUserDefaultEmptyContent(),this.renderEmpty()}renderEmpty(){let e=this.content;if(typeof e=="string")this.contentType="string";else if(e instanceof ee)this.contentType="template",this.contentPortal=void 0;else if(e instanceof lt){let n=we.create({parent:this.injector,providers:[{provide:Mn,useValue:this.nzComponentName}]});this.contentType="component",this.contentPortal=new Vt(e,this.viewContainerRef,n)}else this.contentType="string",this.contentPortal=void 0;this.cdr.detectChanges()}getUserDefaultEmptyContent(){return(this.configService.getConfigForComponent("empty")||{}).nzDefaultEmptyContent}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-embed-empty"]],inputs:{nzComponentName:"nzComponentName",specificContent:"specificContent"},exportAs:["nzEmbedEmpty"],features:[B],decls:2,vars:1,consts:[[3,"cdkPortalOutlet"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nzNotFoundImage","simple",1,"ant-empty-normal"],["nzNotFoundImage","simple",1,"ant-empty-small"]],template:function(n,i){n&1&&h(0,Tn,2,1)(1,Nn,1,1),n&2&&C(i.content?0:1)},dependencies:[Kt,Nt,bt,q,$],encapsulation:2,changeDetection:0})}return t})(),Yt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=fe({type:t});static \u0275inj=ue({imports:[Kt,$e]})}return t})();var Xt=["*"];function Pn(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c();d(),U(e.nzLabel)}}function Rn(t,r){}function Bn(t,r){if(t&1&&x(0,Rn,0,0,"ng-template",1),t&2){let e=c();u("ngTemplateOutlet",e.template)}}function Hn(t,r){if(t&1&&L(0),t&2){let e=c();ne(" ",e.label," ")}}function Wn(t,r){t&1&&y(0,"nz-icon",3)}function $n(t,r){}function Qn(t,r){if(t&1&&x(0,$n,0,0,"ng-template",1),t&2){let e=c(2);u("ngTemplateOutlet",e.icon)}}function Gn(t,r){if(t&1&&(z(0,"div",2),h(1,Wn,1,0,"nz-icon",3)(2,Qn,1,1,null,1),_()),t&2){let e=c();d(),C(e.icon?2:1)}}function jn(t,r){if(t&1&&(z(0,"div",0),y(1,"nz-embed-empty",4),_()),t&2){let e=c();d(),u("specificContent",e.notFoundContent)}}function qn(t,r){if(t&1&&y(0,"nz-option-item-group",5),t&2){let e=c().$implicit;u("nzLabel",e.groupLabel??null)}}function Zn(t,r){if(t&1){let e=W();z(0,"nz-option-item",7),M("itemHover",function(i){S(e);let p=c(2);return O(p.onItemHover(i))})("itemClick",function(i){S(e);let p=c(2);return O(p.onItemClick(i))}),_()}if(t&2){let e=c().$implicit,n=c();u("icon",n.menuItemSelectedIcon)("customContent",e.nzCustomContent)("template",e.template??null)("grouped",!!e.groupLabel)("disabled",e.nzDisabled||n.isMaxMultipleCountReached&&!n.listOfSelectedValue.includes(e.nzValue))("showState",n.mode==="tags"||n.mode==="multiple")("title",e.nzTitle)("label",e.nzLabel)("compareWith",n.compareWith)("activatedValue",n.activatedValue)("listOfSelectedValue",n.listOfSelectedValue)("value",e.nzValue)}}function Un(t,r){if(t&1&&h(0,qn,1,1,"nz-option-item-group",5)(1,Zn,1,12,"nz-option-item",6),t&2){let e,n=r.$implicit;C((e=n.type)==="group"?0:e==="item"?1:-1)}}function Kn(t,r){}function Yn(t,r){t&1&&Ne(0)}function Jn(t,r){if(t&1&&(z(0,"span"),L(1),_()),t&2){let e=c();d(),Ct("",e.listOfValue.length," / ",e.nzMaxMultipleCount)}}function Xn(t,r){t&1&&y(0,"nz-icon",0)}function ei(t,r){t&1&&y(0,"nz-icon",2)}function ti(t,r){t&1&&y(0,"nz-icon",3)}function ni(t,r){if(t&1&&h(0,ei,1,0,"nz-icon",2)(1,ti,1,0,"nz-icon",3),t&2){let e=c(2);C(e.search?0:1)}}function ii(t,r){if(t&1&&(F(0),y(1,"nz-icon",4),A()),t&2){let e=r.$implicit;d(),u("nzType",e)}}function oi(t,r){if(t&1&&x(0,ii,2,1,"ng-container",1),t&2){let e=c(2);u("nzStringTemplateOutlet",e.suffixIcon)}}function li(t,r){if(t&1&&h(0,ni,2,1)(1,oi,1,1,"ng-container"),t&2){let e=c();C(e.showArrow&&!e.suffixIcon?0:1)}}function ai(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c();d(),U(e.feedbackIcon)}}function si(t,r){}function ri(t,r){if(t&1&&x(0,si,0,0,"ng-template",0),t&2){let e=c();u("ngTemplateOutlet",e.clearIcon)}}function ci(t,r){t&1&&y(0,"nz-icon",1)}function pi(t,r){if(t&1&&y(0,"span",4),t&2){let e=c(2);G("ant-select-selection-item-content",e.deletable),u("innerHTML",e.label,st)}}function mi(t,r){if(t&1&&(z(0,"span"),L(1),_()),t&2){let e=c(2);G("ant-select-selection-item-content",e.deletable),d(),U(e.label)}}function di(t,r){if(t&1&&(F(0),h(1,pi,1,3,"span",2)(2,mi,2,3,"span",3),A()),t&2){let e=c();d(),C(e.displayLabelInHtml?1:2)}}function ui(t,r){t&1&&y(0,"nz-icon",6)}function fi(t,r){}function hi(t,r){if(t&1&&x(0,fi,0,0,"ng-template",7),t&2){let e=c(2);u("ngTemplateOutlet",e.removeIcon)}}function Ci(t,r){if(t&1){let e=W();z(0,"span",5),M("click",function(i){S(e);let p=c();return O(p.onDelete(i))}),h(1,ui,1,0,"nz-icon",6)(2,hi,1,1,null,7),_()}if(t&2){let e=c();d(),C(e.removeIcon?2:1)}}function zi(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c();d(),ne(" ",e.placeholder," ")}}var _i=["inputElement"],gi=["mirrorElement"];function Si(t,r){t&1&&y(0,"span",3,1)}var Oi=(t,r)=>r.nzValue;function yi(t,r){if(t&1&&(F(0),L(1),A()),t&2){let e=c(2);d(),U(e.prefix)}}function vi(t,r){if(t&1&&(z(0,"div",0),x(1,yi,2,1,"ng-container",4),_()),t&2){let e=c();d(),u("nzStringTemplateOutlet",e.prefix)}}function xi(t,r){if(t&1&&y(0,"nz-select-item",6),t&2){let e=c(2);u("removeIcon",e.removeIcon)("label",e.listOfTopItem[0].nzLabel)("contentTemplateOutlet",e.customTemplate)("contentTemplateOutletContext",e.listOfTopItem[0])}}function Ti(t,r){if(t&1){let e=W();z(0,"nz-select-search",5),M("isComposingChange",function(i){S(e);let p=c();return O(p.isComposingChange(i))})("valueChange",function(i){S(e);let p=c();return O(p.onInputValueChange(i))}),_(),h(1,xi,1,4,"nz-select-item",6)}if(t&2){let e=c();u("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("showInput",e.showSearch)("mirrorSync",!1)("autofocus",e.autofocus)("focusTrigger",e.open),d(),C(e.isShowSingleLabel?1:-1)}}function Ii(t,r){if(t&1){let e=W();z(0,"div",7)(1,"nz-select-item",10),M("delete",function(){let i=S(e).$implicit,p=c(2);return O(p.onDeleteItem(i.contentTemplateOutletContext))}),_()()}if(t&2){let e=r.$implicit,n=c(2);d(),u("removeIcon",n.removeIcon)("label",e.nzLabel)("disabled",e.nzDisabled||n.disabled)("contentTemplateOutlet",e.contentTemplateOutlet)("contentTemplateOutletContext",e.contentTemplateOutletContext)}}function wi(t,r){if(t&1){let e=W();z(0,"div",2),ut(1,Ii,2,5,"div",7,Oi),z(3,"div",8)(4,"nz-select-search",9),M("isComposingChange",function(i){S(e);let p=c();return O(p.isComposingChange(i))})("valueChange",function(i){S(e);let p=c();return O(p.onInputValueChange(i))}),_()()()}if(t&2){let e=c();d(),ft(e.listOfSlicedItem),d(3),u("nzId",e.nzId)("disabled",e.disabled)("value",e.inputValue)("autofocus",e.autofocus)("showInput",!0)("mirrorSync",!0)("focusTrigger",e.open)}}function Vi(t,r){if(t&1&&y(0,"nz-select-placeholder",3),t&2){let e=c();u("placeholder",e.placeHolder)}}function bi(t,r){if(t&1&&y(0,"nz-form-item-feedback-icon",6),t&2){let e=c(3);u("status",e.status)}}function Ni(t,r){if(t&1&&h(0,bi,1,1,"nz-form-item-feedback-icon",6),t&2){let e=c(2);C(e.hasFeedback&&e.status?0:-1)}}function Mi(t,r){if(t&1&&(z(0,"nz-select-arrow",3),x(1,Ni,1,1,"ng-template",null,1,_t),_()),t&2){let e=ke(2),n=c();u("showArrow",n.nzShowArrow)("loading",n.nzLoading)("search",n.nzOpen&&n.nzShowSearch)("suffixIcon",n.nzSuffixIcon)("feedbackIcon",e)("nzMaxMultipleCount",n.nzMaxMultipleCount)("listOfValue",n.listOfValue)("isMaxMultipleCountSet",n.isMaxMultipleCountSet)}}function ki(t,r){if(t&1){let e=W();z(0,"nz-select-clear",7),M("clear",function(){S(e);let i=c();return O(i.onClearSelection())}),_()}if(t&2){let e=c();u("clearIcon",e.nzClearIcon)}}function Ei(t,r){if(t&1){let e=W();z(0,"nz-option-container",8),M("keydown",function(i){S(e);let p=c();return O(p.onKeyDown(i))})("itemClick",function(i){S(e);let p=c();return O(p.onItemClick(i))})("scrollToBottom",function(){S(e);let i=c();return O(i.nzScrollToBottom.emit())}),_()}if(t&2){let e=c();ht(e.nzDropdownStyle),G("ant-select-dropdown-placement-bottomLeft",e.dropdownPosition==="bottomLeft")("ant-select-dropdown-placement-topLeft",e.dropdownPosition==="topLeft")("ant-select-dropdown-placement-bottomRight",e.dropdownPosition==="bottomRight")("ant-select-dropdown-placement-topRight",e.dropdownPosition==="topRight"),u("itemSize",e.nzOptionHeightPx)("maxItemLength",e.nzOptionOverflowSize)("matchWidth",e.nzDropdownMatchSelectWidth)("@slideMotion","enter")("@.disabled",!!(e.noAnimation!=null&&e.noAnimation.nzNoAnimation))("nzNoAnimation",e.noAnimation==null?null:e.noAnimation.nzNoAnimation)("listOfContainerItem",e.listOfContainerItem)("menuItemSelectedIcon",e.nzMenuItemSelectedIcon)("notFoundContent",e.nzNotFoundContent)("activatedValue",e.activatedValue)("listOfSelectedValue",e.listOfValue)("dropdownRender",e.nzDropdownRender)("compareWith",e.compareWith)("mode",e.nzMode)("isMaxMultipleCountReached",e.isMaxMultipleCountReached)}}var Qe=(()=>{class t{nzLabel=null;changes=new ve;ngOnChanges(){this.changes.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-group"]],inputs:{nzLabel:"nzLabel"},exportAs:["nzOptionGroup"],features:[B],ngContentSelectors:Xt,decls:1,vars:0,template:function(n,i){n&1&&(be(),Ne(0))},encapsulation:2,changeDetection:0})}return t})(),en=(()=>{class t{nzLabel=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-item-group"]],hostAttrs:[1,"ant-select-item","ant-select-item-group"],inputs:{nzLabel:"nzLabel"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&x(0,Pn,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.nzLabel)},dependencies:[q,$],encapsulation:2,changeDetection:0})}return t})(),tn=(()=>{class t{el=f(j).nativeElement;ngZone=f(le);destroyRef=f(Z);selected=!1;activated=!1;grouped=!1;customContent=!1;template=null;disabled=!1;showState=!1;title;label=null;value=null;activatedValue=null;listOfSelectedValue=[];icon=null;compareWith;itemClick=new V;itemHover=new V;ngOnChanges(e){let{value:n,activatedValue:i,listOfSelectedValue:p}=e;(n||p)&&(this.selected=this.listOfSelectedValue.some(v=>this.compareWith(v,this.value))),(n||i)&&(this.activated=this.compareWith(this.activatedValue,this.value))}ngOnInit(){ie(this.el,"click").pipe(N(this.destroyRef)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemClick.emit(this.value))}),ie(this.el,"mouseenter").pipe(N(this.destroyRef)).subscribe(()=>{this.disabled||this.ngZone.run(()=>this.itemHover.emit(this.value))})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-item"]],hostAttrs:[1,"ant-select-item","ant-select-item-option"],hostVars:9,hostBindings:function(n,i){n&2&&(he("title",i.title),G("ant-select-item-option-grouped",i.grouped)("ant-select-item-option-selected",i.selected&&!i.disabled)("ant-select-item-option-disabled",i.disabled)("ant-select-item-option-active",i.activated&&!i.disabled))},inputs:{grouped:"grouped",customContent:[2,"customContent","customContent",T],template:"template",disabled:"disabled",showState:"showState",title:"title",label:"label",value:"value",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",icon:"icon",compareWith:"compareWith"},outputs:{itemClick:"itemClick",itemHover:"itemHover"},features:[B],decls:4,vars:2,consts:[[1,"ant-select-item-option-content"],[3,"ngTemplateOutlet"],["unselectable","on",1,"ant-select-item-option-state"],["nzType","check",1,"ant-select-selected-icon"]],template:function(n,i){n&1&&(z(0,"div",0),h(1,Bn,1,1,null,1)(2,Hn,1,1),_(),h(3,Gn,3,1,"div",2)),n&2&&(d(),C(i.customContent?1:2),d(2),C(i.showState&&i.selected?3:-1))},dependencies:[re,pe,ce],encapsulation:2,changeDetection:0})}return t})(),nn=(()=>{class t{ngZone=f(le);platformId=f(at);notFoundContent=void 0;menuItemSelectedIcon=null;dropdownRender=null;activatedValue=null;listOfSelectedValue=[];compareWith;mode="default";matchWidth=!0;itemSize=32;maxItemLength=8;isMaxMultipleCountReached=!1;listOfContainerItem=[];itemClick=new V;scrollToBottom=new V;cdkVirtualScrollViewport;scrolledIndex=0;onItemClick(e){this.itemClick.emit(e)}onItemHover(e){this.activatedValue=e}trackValue(e,n){return n.key}onScrolledIndexChange(e){this.scrolledIndex=e,e===this.listOfContainerItem.length-this.maxItemLength-1&&this.scrollToBottom.emit()}scrollToActivatedValue(){let e=this.listOfContainerItem.findIndex(n=>this.compareWith(n.key,this.activatedValue));(e<this.scrolledIndex||e>=this.scrolledIndex+this.maxItemLength)&&this.cdkVirtualScrollViewport.scrollToIndex(e||0)}ngOnChanges(e){let{listOfContainerItem:n,activatedValue:i}=e;(n||i)&&this.scrollToActivatedValue()}ngAfterViewInit(){yt(this.platformId)&&this.ngZone.runOutsideAngular(()=>setTimeout(()=>this.scrollToActivatedValue()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option-container"]],viewQuery:function(n,i){if(n&1&&H(_e,7),n&2){let p;k(p=E())&&(i.cdkVirtualScrollViewport=p.first)}},hostAttrs:[1,"ant-select-dropdown"],inputs:{notFoundContent:"notFoundContent",menuItemSelectedIcon:"menuItemSelectedIcon",dropdownRender:"dropdownRender",activatedValue:"activatedValue",listOfSelectedValue:"listOfSelectedValue",compareWith:"compareWith",mode:"mode",matchWidth:"matchWidth",itemSize:"itemSize",maxItemLength:"maxItemLength",isMaxMultipleCountReached:"isMaxMultipleCountReached",listOfContainerItem:"listOfContainerItem"},outputs:{itemClick:"itemClick",scrollToBottom:"scrollToBottom"},exportAs:["nzOptionContainer"],features:[B],decls:5,vars:14,consts:[[1,"ant-select-item-empty"],[3,"scrolledIndexChange","itemSize","maxBufferPx","minBufferPx"],["cdkVirtualFor","",3,"cdkVirtualForOf","cdkVirtualForTrackBy","cdkVirtualForTemplateCacheSize"],[3,"ngTemplateOutlet"],["nzComponentName","select",3,"specificContent"],[3,"nzLabel"],[3,"icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"],[3,"itemHover","itemClick","icon","customContent","template","grouped","disabled","showState","title","label","compareWith","activatedValue","listOfSelectedValue","value"]],template:function(n,i){n&1&&(z(0,"div"),h(1,jn,2,1,"div",0),z(2,"cdk-virtual-scroll-viewport",1),M("scrolledIndexChange",function(v){return i.onScrolledIndexChange(v)}),x(3,Un,2,1,"ng-template",2),_(),x(4,Kn,0,0,"ng-template",3),_()),n&2&&(d(),C(i.listOfContainerItem.length===0?1:-1),d(),ze("height",i.listOfContainerItem.length*i.itemSize,"px")("max-height",i.itemSize*i.maxItemLength,"px"),G("full-width",!i.matchWidth),u("itemSize",i.itemSize)("maxBufferPx",i.itemSize*i.maxItemLength)("minBufferPx",i.itemSize*i.maxItemLength),d(),u("cdkVirtualForOf",i.listOfContainerItem)("cdkVirtualForTrackBy",i.trackValue)("cdkVirtualForTemplateCacheSize",0),d(),u("ngTemplateOutlet",i.dropdownRender))},dependencies:[Yt,$e,en,tn,re,Mt,It,wt,_e,Re],encapsulation:2,changeDetection:0})}return t})(),Di=(()=>{class t{destroyRef=f(Z);nzOptionGroupComponent=f(Qe,{optional:!0});changes=new ve;groupLabel=null;template;nzTitle;nzLabel=null;nzValue=null;nzKey;nzDisabled=!1;nzHide=!1;nzCustomContent=!1;ngOnInit(){this.nzOptionGroupComponent?.changes.pipe(de(!0),N(this.destroyRef)).subscribe(()=>{this.groupLabel=this.nzOptionGroupComponent?.nzLabel})}ngOnChanges(){this.changes.next()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-option"]],viewQuery:function(n,i){if(n&1&&H(ee,7),n&2){let p;k(p=E())&&(i.template=p.first)}},inputs:{nzTitle:"nzTitle",nzLabel:"nzLabel",nzValue:"nzValue",nzKey:"nzKey",nzDisabled:[2,"nzDisabled","nzDisabled",T],nzHide:[2,"nzHide","nzHide",T],nzCustomContent:[2,"nzCustomContent","nzCustomContent",T]},exportAs:["nzOption"],features:[B],ngContentSelectors:Xt,decls:1,vars:0,template:function(n,i){n&1&&(be(),dt(0,Yn,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),on=(()=>{class t{listOfValue=[];loading=!1;search=!1;showArrow=!1;isMaxMultipleCountSet=!1;suffixIcon=null;feedbackIcon=null;nzMaxMultipleCount=1/0;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-arrow"]],hostAttrs:[1,"ant-select-arrow"],hostVars:2,hostBindings:function(n,i){n&2&&G("ant-select-arrow-loading",i.loading)},inputs:{listOfValue:"listOfValue",loading:"loading",search:"search",showArrow:"showArrow",isMaxMultipleCountSet:"isMaxMultipleCountSet",suffixIcon:"suffixIcon",feedbackIcon:"feedbackIcon",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",Le]},decls:4,vars:3,consts:[["nzType","loading"],[4,"nzStringTemplateOutlet"],["nzType","search"],["nzType","down"],[3,"nzType"]],template:function(n,i){n&1&&(h(0,Jn,2,2,"span"),h(1,Xn,1,0,"nz-icon",0)(2,li,2,1),x(3,ai,2,1,"ng-container",1)),n&2&&(C(i.isMaxMultipleCountSet?0:-1),d(),C(i.loading?1:2),d(2),u("nzStringTemplateOutlet",i.feedbackIcon))},dependencies:[pe,ce,q,$],encapsulation:2,changeDetection:0})}return t})(),ln=(()=>{class t{clearIcon=null;clear=new V;onClick(e){e.preventDefault(),e.stopPropagation(),this.clear.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-clear"]],hostAttrs:[1,"ant-select-clear"],hostBindings:function(n,i){n&1&&M("click",function(v){return i.onClick(v)})},inputs:{clearIcon:"clearIcon"},outputs:{clear:"clear"},decls:2,vars:1,consts:[[3,"ngTemplateOutlet"],["nzType","close-circle","nzTheme","fill",1,"ant-select-close-icon"]],template:function(n,i){n&1&&h(0,ri,1,1,null,0)(1,ci,1,0,"nz-icon",1),n&2&&C(i.clearIcon?0:1)},dependencies:[re,pe,ce],encapsulation:2,changeDetection:0})}return t})(),an=(()=>{class t{disabled=!1;label=null;displayLabelInHtml=!1;deletable=!1;removeIcon=null;contentTemplateOutletContext=null;contentTemplateOutlet=null;delete=new V;get templateOutletContext(){return Ue({$implicit:this.contentTemplateOutletContext},this.contentTemplateOutletContext)}onDelete(e){e.preventDefault(),e.stopPropagation(),this.disabled||this.delete.next(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-item"]],hostAttrs:[1,"ant-select-selection-item"],hostVars:3,hostBindings:function(n,i){n&2&&(he("title",i.label),G("ant-select-selection-item-disabled",i.disabled))},inputs:{disabled:[2,"disabled","disabled",T],label:"label",displayLabelInHtml:[2,"displayLabelInHtml","displayLabelInHtml",T],deletable:[2,"deletable","deletable",T],removeIcon:"removeIcon",contentTemplateOutletContext:"contentTemplateOutletContext",contentTemplateOutlet:"contentTemplateOutlet"},outputs:{delete:"delete"},decls:2,vars:3,consts:[[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-select-selection-item-remove"],[3,"ant-select-selection-item-content","innerHTML"],[3,"ant-select-selection-item-content"],[3,"innerHTML"],[1,"ant-select-selection-item-remove",3,"click"],["nzType","close"],[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&(x(0,di,3,1,"ng-container",0),h(1,Ci,3,1,"span",1)),n&2&&(u("nzStringTemplateOutlet",i.contentTemplateOutlet)("nzStringTemplateOutletContext",i.templateOutletContext),d(),C(i.deletable&&!i.disabled?1:-1))},dependencies:[re,q,$,pe,ce],encapsulation:2,changeDetection:0})}return t})(),sn=(()=>{class t{placeholder=null;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-placeholder"]],hostAttrs:[1,"ant-select-selection-placeholder"],inputs:{placeholder:"placeholder"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"]],template:function(n,i){n&1&&x(0,zi,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.placeholder)},dependencies:[q,$],encapsulation:2,changeDetection:0})}return t})(),Ge=(()=>{class t{elementRef=f(j);renderer=f(Ve);focusMonitor=f(Be);nzId=null;disabled=!1;mirrorSync=!1;showInput=!0;focusTrigger=!1;value="";autofocus=!1;valueChange=new V;isComposingChange=new V;inputElement;mirrorElement;constructor(){ct(()=>{this.mirrorSync&&this.syncMirrorWidth(),this.autofocus&&this.focus()})}setCompositionState(e){this.isComposingChange.next(e)}onValueChange(e){this.value=e,this.valueChange.next(e),this.mirrorSync&&this.syncMirrorWidth()}clearInputValue(){let e=this.inputElement.nativeElement;e.value="",this.onValueChange("")}syncMirrorWidth(){let e=this.mirrorElement.nativeElement,n=this.elementRef.nativeElement,i=this.inputElement.nativeElement;this.renderer.removeStyle(n,"width"),this.renderer.setProperty(e,"textContent",`${i.value}\xA0`),this.renderer.setStyle(n,"width",`${e.scrollWidth}px`)}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}ngOnChanges(e){let n=this.inputElement.nativeElement,{focusTrigger:i,showInput:p}=e;p&&(this.showInput?this.renderer.removeAttribute(n,"readonly"):this.renderer.setAttribute(n,"readonly","readonly")),i&&i.currentValue===!0&&i.previousValue===!1&&n.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-search"]],viewQuery:function(n,i){if(n&1&&(H(_i,7),H(gi,5)),n&2){let p;k(p=E())&&(i.inputElement=p.first),k(p=E())&&(i.mirrorElement=p.first)}},hostAttrs:[1,"ant-select-selection-search"],hostVars:2,hostBindings:function(n,i){n&2&&ze("width",i.mirrorSync?0:null,"px")},inputs:{nzId:"nzId",disabled:"disabled",mirrorSync:"mirrorSync",showInput:"showInput",focusTrigger:"focusTrigger",value:"value",autofocus:"autofocus"},outputs:{valueChange:"valueChange",isComposingChange:"isComposingChange"},features:[Ee([{provide:Gt,useValue:!1}]),B],decls:3,vars:7,consts:[["inputElement",""],["mirrorElement",""],["autocomplete","off",1,"ant-select-selection-search-input",3,"ngModelChange","compositionstart","compositionend","ngModel","disabled"],[1,"ant-select-selection-search-mirror"]],template:function(n,i){if(n&1){let p=W();z(0,"input",2,0),M("ngModelChange",function(D){return S(p),O(i.onValueChange(D))})("compositionstart",function(){return S(p),O(i.setCompositionState(!0))})("compositionend",function(){return S(p),O(i.setCompositionState(!1))}),_(),h(2,Si,2,0,"span",3)}n&2&&(ze("opacity",i.showInput?null:0),u("ngModel",i.value)("disabled",i.disabled),he("id",i.nzId)("autofocus",i.autofocus?"autofocus":null),d(2),C(i.mirrorSync?2:-1))},dependencies:[Ut,jt,qt,Zt],encapsulation:2,changeDetection:0})}return t})(),Oe=(()=>{class t{destroyRef=f(Z);elementRef=f(j);ngZone=f(le);noAnimation=f(Se,{host:!0,optional:!0});nzId=null;showSearch=!1;placeHolder=null;open=!1;maxTagCount=1/0;autofocus=!1;disabled=!1;mode="default";customTemplate=null;maxTagPlaceholder=null;removeIcon=null;listOfTopItem=[];tokenSeparators=[];prefix=null;tokenize=new V;inputValueChange=new V;deleteItem=new V;nzSelectSearchComponent;listOfSlicedItem=[];isShowPlaceholder=!0;isShowSingleLabel=!1;isComposing=!1;inputValue=null;updateTemplateVariable(){let e=this.listOfTopItem.length===0;this.isShowPlaceholder=e&&!this.isComposing&&!this.inputValue,this.isShowSingleLabel=!e&&!this.isComposing&&!this.inputValue}isComposingChange(e){this.isComposing=e,this.updateTemplateVariable()}onInputValueChange(e){e!==this.inputValue&&(this.inputValue=e,this.updateTemplateVariable(),this.inputValueChange.emit(e),this.tokenSeparate(e,this.tokenSeparators))}tokenSeparate(e,n){let i=(v,D)=>{for(let b=0;b<D.length;++b)if(v.lastIndexOf(D[b])>0)return!0;return!1},p=(v,D)=>{let b=new RegExp(`[${D.join()}]`),K=v.split(b).filter(Y=>Y);return[...new Set(K)]};if(e&&e.length&&n.length&&this.mode!=="default"&&i(e,n)){let v=p(e,n);this.tokenize.next(v)}}clearInputValue(){this.nzSelectSearchComponent?.clearInputValue()}focus(){this.nzSelectSearchComponent?.focus()}blur(){this.nzSelectSearchComponent?.blur()}onDeleteItem(e){!this.disabled&&!e.nzDisabled&&this.deleteItem.next(e)}ngOnChanges(e){let{listOfTopItem:n,maxTagCount:i,customTemplate:p,maxTagPlaceholder:v}=e;if(n&&this.updateTemplateVariable(),n||i||p||v){let D=this.listOfTopItem.slice(0,this.maxTagCount).map(b=>({nzLabel:b.nzLabel,nzValue:b.nzValue,nzDisabled:b.nzDisabled,contentTemplateOutlet:this.customTemplate,contentTemplateOutletContext:b}));if(this.listOfTopItem.length>this.maxTagCount){let b=`+ ${this.listOfTopItem.length-this.maxTagCount} ...`,K=this.listOfTopItem.map(me=>me.nzValue),Y={nzLabel:b,nzValue:"$$__nz_exceeded_item",nzDisabled:!0,contentTemplateOutlet:this.maxTagPlaceholder,contentTemplateOutletContext:K.slice(this.maxTagCount)};D.push(Y)}this.listOfSlicedItem=D}}ngOnInit(){ie(this.elementRef.nativeElement,"click").pipe(N(this.destroyRef)).subscribe(e=>{e.target!==this.nzSelectSearchComponent.inputElement.nativeElement&&this.nzSelectSearchComponent.focus()}),ie(this.elementRef.nativeElement,"keydown").pipe(N(this.destroyRef)).subscribe(e=>{if(e.target instanceof HTMLInputElement){let n=e.target.value;e.keyCode===8&&this.mode!=="default"&&!n&&this.listOfTopItem.length>0&&(e.preventDefault(),this.ngZone.run(()=>this.onDeleteItem(this.listOfTopItem[this.listOfTopItem.length-1])))}})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=w({type:t,selectors:[["nz-select-top-control"]],viewQuery:function(n,i){if(n&1&&H(Ge,5),n&2){let p;k(p=E())&&(i.nzSelectSearchComponent=p.first)}},hostAttrs:[1,"ant-select-selector"],inputs:{nzId:"nzId",showSearch:"showSearch",placeHolder:"placeHolder",open:"open",maxTagCount:[2,"maxTagCount","maxTagCount",Ot],autofocus:"autofocus",disabled:"disabled",mode:"mode",customTemplate:"customTemplate",maxTagPlaceholder:"maxTagPlaceholder",removeIcon:"removeIcon",listOfTopItem:"listOfTopItem",tokenSeparators:"tokenSeparators",prefix:"prefix"},outputs:{tokenize:"tokenize",inputValueChange:"inputValueChange",deleteItem:"deleteItem"},exportAs:["nzSelectTopControl"],features:[B],decls:5,vars:3,consts:[[1,"ant-select-prefix"],[1,"ant-select-selection-wrap"],[1,"ant-select-selection-overflow"],[3,"placeholder"],[4,"nzStringTemplateOutlet"],[3,"isComposingChange","valueChange","nzId","disabled","value","showInput","mirrorSync","autofocus","focusTrigger"],[3,"removeIcon","label","contentTemplateOutlet","contentTemplateOutletContext"],[1,"ant-select-selection-overflow-item"],[1,"ant-select-selection-overflow-item","ant-select-selection-overflow-item-suffix"],[3,"isComposingChange","valueChange","nzId","disabled","value","autofocus","showInput","mirrorSync","focusTrigger"],["deletable","",3,"delete","removeIcon","label","disabled","contentTemplateOutlet","contentTemplateOutletContext"]],template:function(n,i){if(n&1&&(h(0,vi,2,1,"div",0),z(1,"span",1),h(2,Ti,2,8)(3,wi,5,7,"div",2),h(4,Vi,1,1,"nz-select-placeholder",3),_()),n&2){let p;C(i.prefix?0:-1),d(2),C((p=i.mode)==="default"?2:3),d(2),C(i.isShowPlaceholder?4:-1)}},dependencies:[Ge,an,sn,$],encapsulation:2,changeDetection:0})}return t})(),Fi=(t,r)=>r&&r.nzLabel?r.nzLabel.toString().toLowerCase().indexOf(t.toLowerCase())>-1:!1,Jt="select",Ai=(()=>{var P;let t,r=[],e=[],n,i=[],p=[],v,D=[],b=[],K,Y=[],me=[],je,qe=[],Ze=[];return P=class{_nzModuleName=Jt;ngZone=f(le);cdr=f(se);host=f(j);renderer=f(Ve);platform=f(xt);focusMonitor=f(Be);directionality=f(vt);destroyRef=f(Z);nzId=null;nzSize="default";nzStatus="";nzVariant=R(this,r,"outlined");nzOptionHeightPx=(R(this,e),R(this,i,32));nzOptionOverflowSize=(R(this,p),8);nzDropdownClassName=null;nzDropdownMatchSelectWidth=!0;nzDropdownStyle=null;nzNotFoundContent=void 0;nzPlaceHolder=null;nzPlacement=null;nzMaxTagCount=1/0;nzDropdownRender=null;nzCustomTemplate=null;nzPrefix=null;nzSuffixIcon=R(this,D,null);nzClearIcon=(R(this,b),null);nzRemoveIcon=null;nzMenuItemSelectedIcon=null;nzTokenSeparators=[];nzMaxTagPlaceholder=null;nzMaxMultipleCount=1/0;nzMode="default";nzFilterOption=Fi;compareWith=(l,a)=>l===a;nzAllowClear=!1;nzBorderless=R(this,Y,!1);nzShowSearch=(R(this,me),!1);nzLoading=!1;nzAutoFocus=!1;nzAutoClearSearchValue=!0;nzServerSearch=!1;nzDisabled=!1;nzOpen=!1;nzSelectOnTab=!1;nzBackdrop=R(this,qe,!1);nzOptions=(R(this,Ze),[]);nzShowArrow=!0;get showArrow(){return this.nzShowArrow||!!this.nzSuffixIcon}get isMultiple(){return this.nzMode==="multiple"||this.nzMode==="tags"}get isMaxMultipleCountSet(){return this.isMultiple&&this.nzMaxMultipleCount!==1/0}get isMaxMultipleCountReached(){return this.nzMaxMultipleCount!==1/0&&this.listOfValue.length===this.nzMaxMultipleCount}nzOnSearch=new V;nzScrollToBottom=new V;nzOpenChange=new V;nzBlur=new V;nzFocus=new V;nzOnClear=St();originElement;cdkConnectedOverlay;nzSelectTopControlComponent;listOfNzOptionComponent;listOfNzOptionGroupComponent;nzOptionGroupComponentElement;nzSelectTopControlComponentElement;finalSize=gt(()=>this.compactSize?this.compactSize():this.size());size=ot(this.nzSize);compactSize=f(At,{optional:!0});listOfValue$=new xe([]);listOfTemplateItem$=new xe([]);listOfTagAndTemplateItem=[];searchValue="";isReactiveDriven=!1;value;requestId=-1;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};dropdownPosition="bottomLeft";triggerWidth=null;listOfContainerItem=[];listOfTopItem=[];activatedValue=null;listOfValue=[];focused=!1;dir="ltr";positions=[];prefixCls="ant-select";statusCls={};status="";hasFeedback=!1;generateTagItem(l){return{nzValue:l,nzLabel:l,type:"item"}}onItemClick(l){if(this.activatedValue=l,this.nzMode==="default")(this.listOfValue.length===0||!this.compareWith(this.listOfValue[0],l))&&this.updateListOfValue([l]),this.setOpenState(!1);else{let a=this.listOfValue.findIndex(o=>this.compareWith(o,l));if(a!==-1){let o=this.listOfValue.filter((s,m)=>m!==a);this.updateListOfValue(o)}else if(this.listOfValue.length<this.nzMaxMultipleCount){let o=[...this.listOfValue,l];this.updateListOfValue(o)}this.focus(),this.nzAutoClearSearchValue&&this.clearInput()}}onItemDelete(l){let a=this.listOfValue.filter(o=>!this.compareWith(o,l.nzValue));this.updateListOfValue(a),this.clearInput()}updateListOfContainerItem(){let l=this.listOfTagAndTemplateItem.filter(s=>!s.nzHide).filter(s=>!this.nzServerSearch&&this.searchValue?this.nzFilterOption(this.searchValue,s):!0);if(this.nzMode==="tags"&&this.searchValue){let s=this.listOfTagAndTemplateItem.find(m=>m.nzLabel===this.searchValue);if(s)this.activatedValue=s.nzValue;else{let m=this.generateTagItem(this.searchValue);l=[m,...l],this.activatedValue=m.nzValue}}let a=l.find(s=>s.nzLabel===this.searchValue)||l.find(s=>this.compareWith(s.nzValue,this.activatedValue))||l.find(s=>this.compareWith(s.nzValue,this.listOfValue[0]))||l[0];this.activatedValue=a&&a.nzValue||null;let o=[];this.isReactiveDriven?o=[...new Set(this.nzOptions.filter(s=>s.groupLabel).map(s=>s.groupLabel))]:this.listOfNzOptionGroupComponent&&(o=this.listOfNzOptionGroupComponent.map(s=>s.nzLabel)),o.forEach(s=>{let m=l.findIndex(g=>s===g.groupLabel);if(m>-1){let g={groupLabel:s,type:"group",key:s};l.splice(m,0,g)}}),this.listOfContainerItem=[...l],this.updateCdkConnectedOverlayPositions()}clearInput(){this.nzSelectTopControlComponent.clearInputValue()}updateListOfValue(l){let o=((s,m)=>m==="default"?s.length>0?s[0]:null:s)(l,this.nzMode);this.value!==o&&(this.listOfValue=l,this.listOfValue$.next(l),this.value=o,this.onChange(this.value))}onTokenSeparate(l){let a=this.listOfTagAndTemplateItem.filter(s=>l.findIndex(m=>m===s.nzLabel)!==-1).map(s=>s.nzValue).filter(s=>this.listOfValue.findIndex(m=>this.compareWith(m,s))===-1),o=s=>this.isMaxMultipleCountSet?s.slice(0,this.nzMaxMultipleCount):s;if(this.nzMode==="multiple"){let s=o([...this.listOfValue,...a]);this.updateListOfValue(s)}else if(this.nzMode==="tags"){let s=l.filter(g=>this.listOfTagAndTemplateItem.findIndex(Q=>Q.nzLabel===g)===-1),m=o([...this.listOfValue,...a,...s]);this.updateListOfValue(m)}this.clearInput()}onKeyDown(l){if(this.nzDisabled)return;let a=this.listOfContainerItem.filter(s=>s.type==="item").filter(s=>!s.nzDisabled),o=a.findIndex(s=>this.compareWith(s.nzValue,this.activatedValue));switch(l.keyCode){case 38:if(l.preventDefault(),this.nzOpen&&a.length>0){let s=o>0?o-1:a.length-1;this.activatedValue=a[s].nzValue}break;case 40:if(l.preventDefault(),this.nzOpen&&a.length>0){let s=o<a.length-1?o+1:0;this.activatedValue=a[s].nzValue}else this.setOpenState(!0);break;case 13:l.preventDefault(),this.nzOpen?Ae(this.activatedValue)&&o!==-1&&this.onItemClick(this.activatedValue):this.setOpenState(!0);break;case 32:this.nzOpen||(this.setOpenState(!0),l.preventDefault());break;case 9:this.nzSelectOnTab?this.nzOpen&&(l.preventDefault(),Ae(this.activatedValue)&&this.onItemClick(this.activatedValue)):this.setOpenState(!1);break;case 27:break;default:this.nzOpen||this.setOpenState(!0)}}setOpenState(l){this.nzOpen!==l&&(this.nzOpen=l,this.nzOpenChange.emit(l),this.onOpenChange(),this.cdr.markForCheck())}onOpenChange(){this.updateCdkConnectedOverlayStatus(),this.nzAutoClearSearchValue&&this.clearInput()}onInputValueChange(l){this.searchValue=l,this.updateListOfContainerItem(),this.nzOnSearch.emit(l),this.updateCdkConnectedOverlayPositions()}onClearSelection(){this.updateListOfValue([]),this.nzOnClear.emit()}onClickOutside(l){let a=Tt(l);this.host.nativeElement.contains(a)||this.setOpenState(!1)}focus(){this.nzSelectTopControlComponent.focus()}blur(){this.nzSelectTopControlComponent.blur()}onPositionChange(l){let a=Dt(l);this.dropdownPosition=a}updateCdkConnectedOverlayStatus(){if(this.platform.isBrowser&&this.originElement.nativeElement){let l=this.triggerWidth;We(this.requestId),this.requestId=He(()=>{this.triggerWidth=this.originElement.nativeElement.getBoundingClientRect().width,l!==this.triggerWidth&&this.cdr.detectChanges()})}}updateCdkConnectedOverlayPositions(){He(()=>{this.cdkConnectedOverlay?.overlayRef?.updatePosition()})}noAnimation=f(Se,{host:!0,optional:!0});nzFormStatusService=f(Ht,{optional:!0});nzFormNoStatusService=f(Wt,{optional:!0});constructor(){this.destroyRef.onDestroy(()=>{We(this.requestId),this.focusMonitor.stopMonitoring(this.host)}),ge(Jt,()=>{this.size.set(this.nzSize),this.cdr.markForCheck()})}writeValue(l){if(this.value!==l){this.value=l;let o=((s,m)=>s==null?[]:m==="default"?[s]:s)(l,this.nzMode);this.listOfValue=o,this.listOfValue$.next(o),this.cdr.markForCheck()}}registerOnChange(l){this.onChange=l}registerOnTouched(l){this.onTouched=l}setDisabledState(l){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||l,this.isNzDisableFirstChange=!1,this.nzDisabled&&this.setOpenState(!1),this.cdr.markForCheck()}ngOnChanges({nzOpen:l,nzDisabled:a,nzOptions:o,nzStatus:s,nzPlacement:m,nzSize:g}){if(l&&this.onOpenChange(),a&&this.nzDisabled&&this.setOpenState(!1),o){this.isReactiveDriven=!0;let J=(this.nzOptions||[]).map(I=>({template:I.label instanceof ee?I.label:null,nzTitle:this.getTitle(I.title,I.label),nzLabel:typeof I.label=="string"||typeof I.label=="number"?I.label:null,nzValue:I.value,nzDisabled:I.disabled||!1,nzHide:I.hide||!1,nzCustomContent:I.label instanceof ee,groupLabel:I.groupLabel||null,type:"item",key:I.key===void 0?I.value:I.key}));this.listOfTemplateItem$.next(J)}if(s&&this.setStatusStyles(this.nzStatus,this.hasFeedback),m){let{currentValue:Q}=m;this.dropdownPosition=Q;let J=["bottomLeft","topLeft","bottomRight","topRight"];Q&&J.includes(Q)?this.positions=[Pe[Q]]:this.positions=J.map(I=>Pe[I])}g&&this.size.set(g.currentValue)}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Xe((l,a)=>l.status===a.status&&l.hasFeedback===a.hasFeedback),tt(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:Ke(!1)),Ye(([{status:l,hasFeedback:a},o])=>({status:o?"":l,hasFeedback:a})),N(this.destroyRef)).subscribe(({status:l,hasFeedback:a})=>{this.setStatusStyles(l,a)}),this.focusMonitor.monitor(this.host,!0).pipe(N(this.destroyRef)).subscribe(l=>{l?(this.focused=!0,this.cdr.markForCheck(),this.nzFocus.emit()):(this.focused=!1,this.cdr.markForCheck(),this.nzBlur.emit(),Promise.resolve().then(()=>{this.onTouched()}))}),Je([this.listOfValue$,this.listOfTemplateItem$]).pipe(N(this.destroyRef)).subscribe(([l,a])=>{let o=l.filter(()=>this.nzMode==="tags").filter(s=>a.findIndex(m=>this.compareWith(m.nzValue,s))===-1).map(s=>this.listOfTopItem.find(m=>this.compareWith(m.nzValue,s))||this.generateTagItem(s));this.listOfTagAndTemplateItem=[...a,...o],this.listOfTopItem=this.listOfValue.map(s=>[...this.listOfTagAndTemplateItem,...this.listOfTopItem].find(m=>this.compareWith(s,m.nzValue))).filter(s=>!!s),this.updateListOfContainerItem()}),this.directionality.change?.pipe(N(this.destroyRef)).subscribe(l=>{this.dir=l,this.cdr.detectChanges()}),this.dir=this.directionality.value,ie(this.host.nativeElement,"click").pipe(N(this.destroyRef)).subscribe(()=>{this.nzOpen&&this.nzShowSearch||this.nzDisabled||this.ngZone.run(()=>this.setOpenState(!this.nzOpen))}),this.cdkConnectedOverlay.overlayKeydown.pipe(N(this.destroyRef)).subscribe(l=>{l.keyCode===27&&this.setOpenState(!1)})}ngAfterContentInit(){this.isReactiveDriven||Te(this.listOfNzOptionGroupComponent.changes,this.listOfNzOptionComponent.changes).pipe(de(!0),et(()=>Te(this.listOfNzOptionComponent.changes,this.listOfNzOptionGroupComponent.changes,...this.listOfNzOptionComponent.map(l=>l.changes),...this.listOfNzOptionGroupComponent.map(l=>l.changes)).pipe(de(!0))),N(this.destroyRef)).subscribe(()=>{let l=this.listOfNzOptionComponent.toArray().map(a=>{let{template:o,nzLabel:s,nzValue:m,nzKey:g,nzDisabled:Q,nzHide:J,nzCustomContent:I,groupLabel:rn}=a;return{template:o,nzLabel:s,nzValue:m,nzDisabled:Q,nzHide:J,nzCustomContent:I,groupLabel:rn,nzTitle:this.getTitle(a.nzTitle,a.nzLabel),type:"item",key:g===void 0?m:g}});this.listOfTemplateItem$.next(l),this.cdr.markForCheck()})}setStatusStyles(l,a){this.status=l,this.hasFeedback=a,this.cdr.markForCheck(),this.statusCls=kt(this.prefixCls,l,a),Object.keys(this.statusCls).forEach(o=>{this.statusCls[o]?this.renderer.addClass(this.host.nativeElement,o):this.renderer.removeClass(this.host.nativeElement,o)})}getTitle(l,a){let o;return l===void 0?(typeof a=="string"||typeof a=="number")&&(o=a.toString()):(typeof l=="string"||typeof l=="number")&&(o=l.toString()),o}},(()=>{let l=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[oe()],n=[oe()],v=[oe()],K=[oe()],je=[oe()],X(null,null,t,{kind:"field",name:"nzVariant",static:!1,private:!1,access:{has:a=>"nzVariant"in a,get:a=>a.nzVariant,set:(a,o)=>{a.nzVariant=o}},metadata:l},r,e),X(null,null,n,{kind:"field",name:"nzOptionHeightPx",static:!1,private:!1,access:{has:a=>"nzOptionHeightPx"in a,get:a=>a.nzOptionHeightPx,set:(a,o)=>{a.nzOptionHeightPx=o}},metadata:l},i,p),X(null,null,v,{kind:"field",name:"nzSuffixIcon",static:!1,private:!1,access:{has:a=>"nzSuffixIcon"in a,get:a=>a.nzSuffixIcon,set:(a,o)=>{a.nzSuffixIcon=o}},metadata:l},D,b),X(null,null,K,{kind:"field",name:"nzBorderless",static:!1,private:!1,access:{has:a=>"nzBorderless"in a,get:a=>a.nzBorderless,set:(a,o)=>{a.nzBorderless=o}},metadata:l},Y,me),X(null,null,je,{kind:"field",name:"nzBackdrop",static:!1,private:!1,access:{has:a=>"nzBackdrop"in a,get:a=>a.nzBackdrop,set:(a,o)=>{a.nzBackdrop=o}},metadata:l},qe,Ze),l&&Object.defineProperty(P,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:l})})(),ye(P,"\u0275fac",function(a){return new(a||P)}),ye(P,"\u0275cmp",w({type:P,selectors:[["nz-select"]],contentQueries:function(a,o,s){if(a&1&&(Me(s,Di,5),Me(s,Qe,5)),a&2){let m;k(m=E())&&(o.listOfNzOptionComponent=m),k(m=E())&&(o.listOfNzOptionGroupComponent=m)}},viewQuery:function(a,o){if(a&1&&(H(De,7,j),H(Fe,7),H(Oe,7),H(Qe,7,j),H(Oe,7,j)),a&2){let s;k(s=E())&&(o.originElement=s.first),k(s=E())&&(o.cdkConnectedOverlay=s.first),k(s=E())&&(o.nzSelectTopControlComponent=s.first),k(s=E())&&(o.nzOptionGroupComponentElement=s.first),k(s=E())&&(o.nzSelectTopControlComponentElement=s.first)}},hostAttrs:[1,"ant-select"],hostVars:30,hostBindings:function(a,o){a&2&&G("ant-select-in-form-item",!!o.nzFormStatusService)("ant-select-lg",o.finalSize()==="large")("ant-select-sm",o.finalSize()==="small")("ant-select-show-arrow",o.showArrow)("ant-select-disabled",o.nzDisabled)("ant-select-show-search",(o.nzShowSearch||o.nzMode!=="default")&&!o.nzDisabled)("ant-select-allow-clear",o.nzAllowClear)("ant-select-borderless",o.nzVariant==="borderless"||o.nzVariant==="outlined"&&o.nzBorderless)("ant-select-filled",o.nzVariant==="filled")("ant-select-underlined",o.nzVariant==="underlined")("ant-select-open",o.nzOpen)("ant-select-focused",o.nzOpen||o.focused)("ant-select-single",o.nzMode==="default")("ant-select-multiple",o.nzMode!=="default")("ant-select-rtl",o.dir==="rtl")},inputs:{nzId:"nzId",nzSize:"nzSize",nzStatus:"nzStatus",nzVariant:"nzVariant",nzOptionHeightPx:"nzOptionHeightPx",nzOptionOverflowSize:"nzOptionOverflowSize",nzDropdownClassName:"nzDropdownClassName",nzDropdownMatchSelectWidth:"nzDropdownMatchSelectWidth",nzDropdownStyle:"nzDropdownStyle",nzNotFoundContent:"nzNotFoundContent",nzPlaceHolder:"nzPlaceHolder",nzPlacement:"nzPlacement",nzMaxTagCount:"nzMaxTagCount",nzDropdownRender:"nzDropdownRender",nzCustomTemplate:"nzCustomTemplate",nzPrefix:"nzPrefix",nzSuffixIcon:"nzSuffixIcon",nzClearIcon:"nzClearIcon",nzRemoveIcon:"nzRemoveIcon",nzMenuItemSelectedIcon:"nzMenuItemSelectedIcon",nzTokenSeparators:"nzTokenSeparators",nzMaxTagPlaceholder:"nzMaxTagPlaceholder",nzMaxMultipleCount:[2,"nzMaxMultipleCount","nzMaxMultipleCount",Le],nzMode:"nzMode",nzFilterOption:"nzFilterOption",compareWith:"compareWith",nzAllowClear:[2,"nzAllowClear","nzAllowClear",T],nzBorderless:[2,"nzBorderless","nzBorderless",T],nzShowSearch:[2,"nzShowSearch","nzShowSearch",T],nzLoading:[2,"nzLoading","nzLoading",T],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",T],nzAutoClearSearchValue:[2,"nzAutoClearSearchValue","nzAutoClearSearchValue",T],nzServerSearch:[2,"nzServerSearch","nzServerSearch",T],nzDisabled:[2,"nzDisabled","nzDisabled",T],nzOpen:[2,"nzOpen","nzOpen",T],nzSelectOnTab:[2,"nzSelectOnTab","nzSelectOnTab",T],nzBackdrop:[2,"nzBackdrop","nzBackdrop",T],nzOptions:"nzOptions",nzShowArrow:[2,"nzShowArrow","nzShowArrow",T]},outputs:{nzOnSearch:"nzOnSearch",nzScrollToBottom:"nzScrollToBottom",nzOpenChange:"nzOpenChange",nzBlur:"nzBlur",nzFocus:"nzFocus",nzOnClear:"nzOnClear"},exportAs:["nzSelect"],features:[Ee([{provide:Qt,useExisting:nt(()=>P),multi:!0},{provide:Lt,useValue:"select"}]),mt([Pt]),B],decls:5,vars:26,consts:[["origin","cdkOverlayOrigin"],["feedbackIconTpl",""],["cdkOverlayOrigin","",3,"inputValueChange","tokenize","deleteItem","keydown","nzId","open","disabled","mode","nzNoAnimation","maxTagPlaceholder","removeIcon","placeHolder","maxTagCount","customTemplate","tokenSeparators","showSearch","autofocus","listOfTopItem","prefix"],[3,"showArrow","loading","search","suffixIcon","feedbackIcon","nzMaxMultipleCount","listOfValue","isMaxMultipleCountSet"],[3,"clearIcon"],["cdkConnectedOverlay","","nzConnectedOverlay","",3,"overlayOutsideClick","detach","positionChange","cdkConnectedOverlayHasBackdrop","cdkConnectedOverlayMinWidth","cdkConnectedOverlayWidth","cdkConnectedOverlayOrigin","cdkConnectedOverlayTransformOriginOn","cdkConnectedOverlayPanelClass","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions"],[3,"status"],[3,"clear","clearIcon"],[3,"keydown","itemClick","scrollToBottom","itemSize","maxItemLength","matchWidth","nzNoAnimation","listOfContainerItem","menuItemSelectedIcon","notFoundContent","activatedValue","listOfSelectedValue","dropdownRender","compareWith","mode","isMaxMultipleCountReached"]],template:function(a,o){if(a&1){let s=W();z(0,"nz-select-top-control",2,0),M("inputValueChange",function(g){return S(s),O(o.onInputValueChange(g))})("tokenize",function(g){return S(s),O(o.onTokenSeparate(g))})("deleteItem",function(g){return S(s),O(o.onItemDelete(g))})("keydown",function(g){return S(s),O(o.onKeyDown(g))}),_(),h(2,Mi,3,8,"nz-select-arrow",3),h(3,ki,1,1,"nz-select-clear",4),x(4,Ei,1,25,"ng-template",5),M("overlayOutsideClick",function(g){return S(s),O(o.onClickOutside(g))})("detach",function(){return S(s),O(o.setOpenState(!1))})("positionChange",function(g){return S(s),O(o.onPositionChange(g))})}if(a&2){let s=ke(1);u("nzId",o.nzId)("open",o.nzOpen)("disabled",o.nzDisabled)("mode",o.nzMode)("@.disabled",!!(o.noAnimation!=null&&o.noAnimation.nzNoAnimation))("nzNoAnimation",o.noAnimation==null?null:o.noAnimation.nzNoAnimation)("maxTagPlaceholder",o.nzMaxTagPlaceholder)("removeIcon",o.nzRemoveIcon)("placeHolder",o.nzPlaceHolder)("maxTagCount",o.nzMaxTagCount)("customTemplate",o.nzCustomTemplate)("tokenSeparators",o.nzTokenSeparators)("showSearch",o.nzShowSearch)("autofocus",o.nzAutoFocus)("listOfTopItem",o.listOfTopItem)("prefix",o.nzPrefix),d(2),C(o.showArrow||o.hasFeedback&&o.status||o.isMaxMultipleCountSet?2:-1),d(),C(o.nzAllowClear&&!o.nzDisabled&&o.listOfValue.length?3:-1),d(),u("cdkConnectedOverlayHasBackdrop",o.nzBackdrop)("cdkConnectedOverlayMinWidth",o.nzDropdownMatchSelectWidth?null:o.triggerWidth)("cdkConnectedOverlayWidth",o.nzDropdownMatchSelectWidth?o.triggerWidth:null)("cdkConnectedOverlayOrigin",s)("cdkConnectedOverlayTransformOriginOn",".ant-select-dropdown")("cdkConnectedOverlayPanelClass",o.nzDropdownClassName)("cdkConnectedOverlayOpen",o.nzOpen)("cdkConnectedOverlayPositions",o.positions)}},dependencies:[Oe,De,Se,on,$t,ln,Fe,Re,Ft,nn],encapsulation:2,data:{animation:[Bt]},changeDetection:0})),P})(),Ro=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=fe({type:t});static \u0275inj=ue({imports:[Ai,nn,tn,Oe,Ge,an,ln,on,sn,en]})}return t})();export{Kt as a,$e as b,Yt as c,Di as d,Ai as e,Ro as f};
@@ -0,0 +1 @@
1
+ import{J as a,l as i,m as r,na as o,ra as c,tb as h}from"./chunk-WI67LAOV.js";var p={production:!0,environment:"WEB-PROD"};var u=class n{constructor(e){this.zone=e}ws;url=p.production===!0?`ws:${window.location.host}/ws`:"ws://127.0.0.1:3210/ws";pending=[];state$=new r("idle");inbound$=new i;reconnectAttempt=0;manualClose=!1;opening=!1;reconnectSub;stateChanges(){return this.state$.asObservable()}messages(){return this.inbound$.asObservable()}connect(){this.opening||this.ws&&(this.ws.readyState===WebSocket.OPEN||this.ws.readyState===WebSocket.CONNECTING)||(this.manualClose=!1,this.open())}close(){this.manualClose=!0,this.cancelReconnect(),this.stopHeartbeat(),this.ws?.close(),this.ws=void 0,this.opening=!1,this.state$.next("closed")}send(e){let t=JSON.stringify(e);this.ws?.readyState===WebSocket.OPEN?this.ws.send(t):this.pending.push(e)}isOpen(){return this.state$.value==="open"}open(){this.opening||this.ws&&(this.ws.readyState===WebSocket.OPEN||this.ws.readyState===WebSocket.CONNECTING)||(this.opening=!0,this.state$.next("connecting"),this.cancelReconnect(),this.zone.runOutsideAngular(()=>{let e=new WebSocket(this.url);this.ws=e,e.onopen=()=>{this.reconnectAttempt=0,this.opening=!1,this.cancelReconnect(),this.pending.splice(0).forEach(s=>this.send(s)),this.zone.run(()=>this.state$.next("open")),this.startHeartbeat()},e.onmessage=t=>{let s;try{s=JSON.parse(t.data)}catch{return}this.zone.run(()=>this.inbound$.next(s))},e.onerror=()=>{this.zone.run(()=>this.state$.next("error"));try{e.close()}catch{}},e.onclose=()=>{this.opening=!1,this.ws=void 0,this.stopHeartbeat(),this.zone.run(()=>this.state$.next("closed")),this.manualClose||this.scheduleReconnect()}}))}heartbeatTimer;startHeartbeat(){this.stopHeartbeat(),this.heartbeatTimer=setInterval(()=>{this.send({op:"ping"})},2e4)}stopHeartbeat(){this.heartbeatTimer&&(clearInterval(this.heartbeatTimer),this.heartbeatTimer=void 0)}scheduleReconnect(){if(this.reconnectSub)return;this.reconnectAttempt++;let e=Math.min(1e3*Math.pow(2,this.reconnectAttempt),15e3);this.reconnectSub=a(e).subscribe(()=>{this.reconnectSub=void 0,!this.manualClose&&this.open()})}cancelReconnect(){this.reconnectSub?.unsubscribe(),this.reconnectSub=void 0}static \u0275fac=function(t){return new(t||n)(c(h))};static \u0275prov=o({token:n,factory:n.\u0275fac,providedIn:"root"})};export{p as a,u as b};
@@ -0,0 +1 @@
1
+ import{a as Ae,b as Be}from"./chunk-GDWS2L66.js";import{a as Se,c as Te,f as Oe,g as De,h as Ne,i as Ve,j as Ie}from"./chunk-HRXCR3IN.js";import{a as je}from"./chunk-UQGCUFNM.js";import{g as ue,h as fe,i as he,k as ge,l as _e}from"./chunk-BYEU6KGP.js";import{b as J,c as I,d as A,f as ke}from"./chunk-UXXWRMM6.js";import{$b as ye,Eb as ve,Fa as ae,Ga as le,Gb as Ce,Kb as be,Oa as pe,Pa as ce,Ra as de,Sa as me,Ub as xe,Xb as Pe,Yb as ze,Zb as Fe,ac as Me,dc as Ee,fc as we}from"./chunk-SPRWNZHF.js";import{e as se}from"./chunk-L5D75AMV.js";import{n as oe,u as Y}from"./chunk-T3KK7ZXB.js";import{$b as S,B as Q,Ec as Z,Fb as ee,Ha as _,Jc as y,Lb as te,Lc as O,Mc as ne,Nc as D,Oc as N,Pc as V,Tc as re,Wb as W,Yb as K,Zb as ie,a as $,ac as T,b as L,bc as C,cc as s,dc as a,ec as f,hd as z,ic as G,jc as H,lc as E,na as w,nb as l,rc as b,sa as g,uc as v,y as q,ya as m,za as u,zb as X}from"./chunk-WI67LAOV.js";var j=class r{api=g(A);ls(e,t=!1){let i=new Y().set("path",e).set("showSystem",t?"1":"0");return this.api.get("/api/fs/ls",i)}mkdir(e,t){return this.api.post("/api/fs/mkdir",{path:e,name:t})}pathExists(e){let t=new Y().set("path",e);return this.api.get("/api/fs/path-exists",t).pipe(Q(i=>i.exists))}static \u0275fac=function(t){return new(t||r)};static \u0275prov=w({token:r,factory:r.\u0275fac,providedIn:"root"})};var U=class r{fsApi=g(j);localState=g(I);path=_("D:\\");currentPath=_("");entries=_([]);reloading=_(!1);isEditingPath=_(!1);showSystemFolders=_(!1);isCreateFolderModalVisible=_(!1);newFolderName=_("");segments=z(()=>{let e=this.currentPath()||this.path()||"";return this.buildSegments(e)});isRoot=z(()=>{let e=(this.currentPath()||this.path()||"").trim();if(!e||/^\\\\[^\\]+\\[^\\]+$/.test(e.replaceAll("/","\\")))return!0;let t=e.replaceAll("/","\\");return/^[a-zA-Z]:\\?$/.test(t)?!0:e.replaceAll("\\","/")==="/"});canUp=z(()=>!this.reloading()&&!this.isRoot());favorites=_(this.normalizeFavorites(this.localState.get(J.fs.explorer.favorites,[])));isCurFavorited=z(()=>{let e=this.normalizePath(this.currentPath()||this.path()||"");return e?this.favorites().some(t=>t.path===e):!1});toggleFavoriteCurrent(){let e=this.normalizePath(this.currentPath()||this.path()||"");if(!e)return;let t=this.favorites(),i=t.findIndex(o=>o.path===e),n;i>=0?n=t.slice(0,i).concat(t.slice(i+1)):n=[{path:e,label:this.buildFavoriteLabel(e),createdAt:Date.now()},...t],n=this.normalizeFavorites(n),this.favorites.set(n),this.persistFavorites(n)}openFavorite(e){e?.path&&(this.path.set(e.path),this.load())}removeFavorite(e){let t=this.normalizeFavorites(this.favorites().filter(i=>i.path!==e.path));this.favorites.set(t),this.persistFavorites(t)}clearFavorites(){this.favorites.set([]),this.persistFavorites([])}persistFavorites(e){this.localState.set(J.fs.explorer.favorites,e)}normalizeFavorites(e){let t=new Map;for(let i of e||[]){let n=this.normalizePath(i?.path||"");n&&t.set(n,{path:n,label:String(i?.label||this.buildFavoriteLabel(n)).trim(),createdAt:Number(i?.createdAt||Date.now())})}return Array.from(t.values()).sort((i,n)=>n.createdAt-i.createdAt)}buildFavoriteLabel(e){let t=e.replaceAll("/","\\");if(/^[a-zA-Z]:\\?$/.test(t))return t.slice(0,2);if(/^\\\\[^\\]+\\[^\\]+$/.test(t))return t;if(/^\\\\/.test(t)){let o=t.split("\\").filter(Boolean);return o[o.length-1]||t}let i=e.replaceAll("\\","/");if(i==="/")return"/";let n=i.split("/").filter(Boolean);return n[n.length-1]||i}load(e=!1){let t=(this.path()||"").trim();if(!t)return;let i=(this.currentPath()||"").trim();if(i&&this.normalizePath(i)===this.normalizePath(t)&&this.entries().length&&!e){this.isEditingPath.set(!1);return}this.reloading.set(!0),this.isEditingPath.set(!1),this.fsApi.ls(t,this.showSystemFolders()).subscribe({next:n=>{this.currentPath.set(n.path),this.entries.set(n.entries),this.path.set(n.path)},error:()=>{this.reloading.set(!1)},complete:()=>{this.reloading.set(!1)}})}toggleShowSystemFolders(){this.showSystemFolders.update(e=>!e),this.load()}editPath(){this.isEditingPath.update(e=>!e)}open(e){e.type==="dir"&&(this.path.set(e.fullPath),this.load())}up(){if(!this.canUp())return;let e=(this.currentPath()||this.path()||"").trim();if(!e)return;let t=this.normalizePath(e),i=t.replaceAll("/","\\"),n=/^\\\\[^\\]+\\[^\\]+/.test(i),o=/^[a-zA-Z]:\\/.test(i),P=n||o?"\\":"/";if(n){let d=i.match(/^\\\\([^\\]+)\\([^\\]+)(?:\\(.*))?$/);if(!d)return;let p=`\\\\${d[1]}\\${d[2]}`;if(i===p)return;let F=i.lastIndexOf("\\"),k=F<=p.length?p:i.slice(0,F);if(this.normalizePath(k)===this.normalizePath(this.currentPath()))return;this.path.set(k),this.load();return}if(o){let d=i.lastIndexOf("\\");if(d<=2){let F=`${i.slice(0,2)}\\`;if(this.normalizePath(F)===this.normalizePath(this.currentPath()))return;this.path.set(F),this.load();return}let p=i.slice(0,d);if(this.normalizePath(p)===this.normalizePath(this.currentPath()))return;this.path.set(p),this.load();return}let h=t.replaceAll("\\","/");if(h==="/")return;let x=h.lastIndexOf("/"),M=x<=0?"/":h.slice(0,x);this.normalizePath(M)!==this.normalizePath(this.currentPath())&&(this.path.set(M),this.load())}jumpTo(e){e.disabled||(this.path.set(e.fullPath),this.load())}openCreateFolderModal(){this.newFolderName.set(""),this.isCreateFolderModalVisible.set(!0)}cancelCreateFolder(){this.isCreateFolderModalVisible.set(!1),this.newFolderName.set("")}confirmCreateFolder(){let e=(this.newFolderName()||"").trim();if(!e)return;let t=this.currentPath()||this.path();this.fsApi.mkdir(t,e).subscribe(()=>{this.isCreateFolderModalVisible.set(!1),this.newFolderName.set(""),this.load(!0)})}buildSegments(e){let t=(e||"").trim();if(!t)return[];let i=/^[a-zA-Z]:[\\/]/.test(t)||/^[a-zA-Z]:$/.test(t),n=i?"\\":"/",o=i?t.replaceAll("/","\\"):t.replaceAll("\\","/"),c=i?o.slice(0,2):"/",P=o;if(i){let p=o.match(/^([a-zA-Z]:)(?:[\\\/])?(.*)$/);p&&(c=p[1],P=p[2]||"")}else P=o.startsWith("/")?o.slice(1):o;let h=P.split(i?/[\\]+/:/[\/]+/).filter(Boolean),x=[],M=i?`${c}\\`:"/";x.push({key:"root",label:c,fullPath:M,disabled:h.length===0});let d=M;for(let p=0;p<h.length;p++){let F=h[p];d=d.endsWith(n)?d+F:d+n+F;let k=p===h.length-1,$e=k?d:d+n;x.push({key:`${p}-${F}`,label:F,fullPath:$e,disabled:k})}return x}normalizePath(e){let t=(e||"").trim();if(!t)return"";let i=/^\\\\[^\\]+\\[^\\]+/.test(t.replaceAll("/","\\")),n=/^[a-zA-Z]:([\\/]|$)/.test(t),o=i||n,c=o?t.replaceAll("/","\\"):t.replaceAll("\\","/");if(n){let P=c.slice(0,2);if(c===P||c===`${P}\\`)return`${P}\\`}return!o&&c==="/"?"/":(c=c.replace(/[\\\/]+$/,""),c)}static \u0275fac=function(t){return new(t||r)};static \u0275prov=w({token:r,factory:r.\u0275fac,providedIn:"root"})};var We=(r,e)=>e.path,Ke=(r,e)=>e.key;function Ge(r,e){if(r&1){let t=E();s(0,"div",6)(1,"nz-input-wrapper")(2,"input",27),V("ngModelChange",function(n){m(t);let o=v();return N(o.fs.path,n)||(o.fs.path=n),u(n)}),b("keyup.enter",function(){m(t);let n=v();return u(n.fs.load())}),a(),s(3,"button",28),f(4,"nz-icon",29),a()()()}if(r&2){let t=v();l(2),D("ngModel",t.fs.path)}}function He(r,e){if(r&1){let t=E();s(0,"div",31)(1,"button",32),b("click",function(){let n=m(t).$implicit,o=v(2);return u(o.fs.jumpTo(n))}),y(2),a()()}if(r&2){let t=e.$implicit;l(2),O(" ",t.label," ")}}function Ze(r,e){if(r&1){let t=E();s(0,"div",7)(1,"div",30),S(2,He,3,1,"div",31,Ke),a(),s(4,"button",32),b("click",function(){m(t);let n=v();return u(n.fs.editPath())}),f(5,"nz-icon",33),a()()}if(r&2){let t=v();l(2),T(t.fs.segments())}}function Ye(r,e){if(r&1&&f(0,"nz-icon",38),r&2){let t=v().$implicit;C("nzType","proj:"+t.projectKind)}}function Je(r,e){if(r&1){let t=E();s(0,"div",34),b("click",function(){let n=m(t).$implicit,o=v();return u(o.fs.open(n))}),s(1,"div",35),f(2,"span",36),a(),s(3,"div",37),y(4),W(5,Ye,1,1,"nz-icon",38),a()()}if(r&2){let t=e.$implicit;l(2),C("nzType",t.type==="dir"?"folder":"file"),l(),C("title",re(t.name)),l(),O(" ",t.name," "),l(),K(t.projectKind&&t.projectKind!="unknown"?5:-1)}}function qe(r,e){if(r&1){let t=E();s(0,"li",19),f(1,"nz-icon",39),s(2,"button",40),b("click",function(){let n=m(t).$implicit,o=v();return u(o.fs.openFavorite(n))}),y(3),a()()}if(r&2){let t=e.$implicit;l(2),C("nz-tooltip",t.path),l(),O(" ",t.label," ")}}function Qe(r,e){if(r&1){let t=E();G(0),s(1,"div",41)(2,"label"),y(3,"\u6587\u4EF6\u5939\u540D\u79F0\uFF1A "),a(),s(4,"nz-input-wrapper")(5,"input",42),V("ngModelChange",function(n){m(t);let o=v();return N(o.fs.newFolderName,n)||(o.fs.newFolderName=n),u(n)}),a(),f(6,"nz-icon",43)(7,"nz-icon",44),a(),s(8,"div",45),y(9),a()(),H()}if(r&2){let t=v();l(5),D("ngModel",t.fs.newFolderName),l(4),ne("",t.fs.currentPath(),"",t.fs.newFolderName())}}function Xe(r,e){if(r&1){let t=E();G(0),s(1,"button",46),b("click",function(){m(t);let n=v();return u(n.fs.isCreateFolderModalVisible.set(!1))}),y(2,"\u53D6\u6D88"),a(),s(3,"button",47),b("click",function(){m(t);let n=v();return u(n.fs.confirmCreateFolder())}),f(4,"nz-icon",48),y(5," \u521B\u5EFA "),a(),H()}if(r&2){let t=v();l(3),C("disabled",!t.fs.newFolderName().trim())}}var Ue=class r{constructor(e){this.fs=e}ngOnInit(){this.fs.load()}static \u0275fac=function(t){return new(t||r)(X(U))};static \u0275cmp=ee({type:r,selectors:[["app-fs-explorer"]],decls:35,vars:10,consts:[["collectMenu","nzDropdownMenu"],["moreMenu","nzDropdownMenu"],[1,"page"],[1,"toolbar"],["nz-button","","nz-tooltip","\u4E0A\u4E00\u5C42",3,"click","disabled"],["nzType","up","nzTheme","outline"],[1,"path-edit"],[1,"current-path"],["nz-button","","nzType","primary","nz-tooltip","\u5237\u65B0",3,"click","nzLoading"],["nzTheme","outline",3,"nzType"],["nz-button","","nz-tooltip","\u6DFB\u52A0/\u53D6\u6D88\u6536\u85CF",3,"click"],["nzType","star",3,"nzTheme"],["nz-button","","nz-tooltip","\u6536\u85CF\u7684\u6587\u4EF6\u5939","nz-dropdown","","nzTrigger","click","nzPlacement","bottomRight",3,"nzDropdownMenu"],["nzType","caret-down","nzTheme","outline"],["nz-button","","nz-dropdown","","nzPlacement","bottomRight","nzTrigger","click","nz-tooltip","\u66F4\u591A\u64CD\u4F5C",3,"nzDropdownMenu"],["nzType","more","nzTheme","outline"],[1,"folders"],[1,"folder-item"],["nz-menu",""],["nz-menu-item",""],["nz-menu-item","",3,"click"],["nzType","folder-add","nzTheme","fill",2,"font-size","16px"],["nzType","eye","nzTheme","fill",2,"font-size","16px"],[2,"margin-left","8px",3,"ngModel"],["nzTitle","\u65B0\u5EFA\u6587\u4EF6\u5939",3,"nzVisibleChange","nzOnCancel","nzVisible","nzMaskClosable"],[4,"nzModalContent"],[4,"nzModalFooter"],["nz-input","","nzSize","small","placeholder","\u8F93\u5165\u6587\u4EF6\u5939\u5B8C\u6574\u8DEF\u5F84\uFF0C\u5982 D:\\work \u6216 /Users/xx",3,"ngModelChange","keyup.enter","ngModel"],["nzInputSuffix","","nz-button","","nzType","link"],["nzInputSuffix","","nzType","edit","nzTheme","outline"],[1,"path-value"],[1,"path-part"],["nz-button","","nzType","link",3,"click"],["nzType","edit","nzTheme","outline"],[1,"folder-item",3,"click"],[1,"icon"],["nz-icon","",3,"nzType"],[1,"name",3,"title"],["nzTheme","outline",1,"project-suffix-icon",3,"nzType"],["nzType","folder","nzTheme","fill"],["nz-button","","nzType","link",3,"click","nz-tooltip"],[1,"modal-body"],["nz-input","","placeholder","\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","folder","nzTheme","fill"],["nzInputSuffix","","nzType","question-circle","nzTheme","outline","nz-tooltip","\u4F60\u53EF\u4EE5\u4F7F\u7528\u8DEF\u5F84\u5206\u9694\u7B26\u6765\u521B\u5EFA\u5D4C\u5957\u7684\u6587\u4EF6\u5939","nzTooltipTrigger","hover","nzTooltipPlacement","right"],[1,"hint"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","folder-add","nzTheme","fill"]],template:function(t,i){if(t&1){let n=E();s(0,"div",2)(1,"div",3)(2,"button",4),b("click",function(){return m(n),u(i.fs.up())}),f(3,"nz-icon",5),a(),W(4,Ge,5,1,"div",6)(5,Ze,6,0,"div",7),s(6,"button",8),b("click",function(){return m(n),u(i.fs.load(!0))}),f(7,"nz-icon",9),a(),s(8,"button",10),b("click",function(){return m(n),u(i.fs.toggleFavoriteCurrent())}),f(9,"nz-icon",11),a(),s(10,"button",12),f(11,"nz-icon",13),a(),s(12,"button",14),f(13,"nz-icon",15),a()(),s(14,"div",16),S(15,Je,6,5,"div",17,ie),a()(),s(17,"nz-dropdown-menu",null,0)(19,"ul",18),S(20,qe,4,2,"li",19,We),a()(),s(22,"nz-dropdown-menu",null,1)(24,"ul",18)(25,"li",20),b("click",function(){return m(n),u(i.fs.openCreateFolderModal())}),f(26,"nz-icon",21),y(27," \u65B0\u5EFA\u6587\u4EF6\u5939 "),a(),s(28,"li",20),b("click",function(){return m(n),u(i.fs.toggleShowSystemFolders())}),f(29,"nz-icon",22),y(30," \u662F\u5426\u9690\u85CF\u7CFB\u7EDF\u6587\u4EF6\u5939 "),f(31,"nz-switch",23),a()()(),s(32,"nz-modal",24),V("nzVisibleChange",function(c){return m(n),N(i.fs.isCreateFolderModalVisible,c)||(i.fs.isCreateFolderModalVisible=c),u(c)}),b("nzOnCancel",function(){return m(n),u(i.fs.isCreateFolderModalVisible.set(!1))}),te(33,Qe,10,3,"ng-container",25)(34,Xe,6,1,"ng-container",26),a()}if(t&2){let n=Z(18),o=Z(23);l(2),C("disabled",!i.fs.canUp()),l(2),K(i.fs.isEditingPath()?4:5),l(2),C("nzLoading",i.fs.reloading()),l(),C("nzType",i.fs.reloading()?"loading":"reload"),l(2),C("nzTheme",i.fs.isCurFavorited()?"fill":"outline"),l(),C("nzDropdownMenu",n),l(2),C("nzDropdownMenu",o),l(3),T(i.fs.entries()),l(5),T(i.fs.favorites()),l(11),C("ngModel",i.fs.showSystemFolders()),l(),D("nzVisible",i.fs.isCreateFolderModalVisible),C("nzMaskClosable",!1)}},dependencies:[oe,xe,ve,Ce,be,Me,Fe,ye,Pe,ze,me,de,pe,ce,le,ae,we,Ee,Ie,Te,Se,De,Ve,Ne,Oe,Be,Ae,_e,ge,he,fe],styles:[".page[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column}.toolbar[_ngcontent-%COMP%]{display:flex;gap:8px;align-items:center;padding:16px 0;flex:0 0 auto}.folders[_ngcontent-%COMP%]{flex:100% 1 1;height:0;overflow-x:hidden;overflow-y:auto;position:relative}.current-path[_ngcontent-%COMP%]{min-width:0;flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;height:34px}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%]{flex:auto 1 1;display:flex;flex-direction:row;align-items:stretch}.current-path[_ngcontent-%COMP%] .path-value[_ngcontent-%COMP%] .path-part[_ngcontent-%COMP%]{flex:auto 0 0;border-left-width:2px;border-left-style:solid}.path-edit[_ngcontent-%COMP%]{flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;border:none;outline:none}.folder-item[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;position:relative}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin:0 4px;flex:auto 0 0}.folder-item[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:24px}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:100% 1 1;display:inline-flex;align-items:center;margin-left:16px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.folder-item[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] nz-icon[_ngcontent-%COMP%]{font-size:16px;margin-left:4px}.modal-body[_ngcontent-%COMP%]{display:grid;gap:12px}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.75}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--app-gray: #e6f7ff;--app-primary: #1890ff;--app-primary-1: #e6f7ff;--app-primary-2: #bae7ff;--app-primary-3: #91d5ff;--app-primary-4: #69c0ff;--app-primary-5: #40a9ff;--app-primary-6: #1890ff;--app-text-color: rgba(0, 0, 0, .85);--app-text-secondary: rgba(0, 0, 0, .45);--text-color-primary: #1890ff;--app-component-bg: #fff;--app-border-color: #d9d9d9;--header-error-background: #ff4d4f}html.default[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #888}html.default [_nghost-%COMP%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.default [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#000000d9}html.default [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#fff}html.default [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}html.dark[_ngcontent-%COMP%] [_ngcontent-%COMP%]:root{--text-color-gray: #bbb}html.dark [_nghost-%COMP%] .current-path[_ngcontent-%COMP%]{background:var(--app-primary-3)}html.dark [_nghost-%COMP%] button[_ngcontent-%COMP%]:not(.ant-btn-link){background-color:var(--app-primary-3)}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#ffffffd9}html.dark [_nghost-%COMP%] .path-part[_ngcontent-%COMP%]{border-left-color:#141414}html.dark [_nghost-%COMP%] .folder-item[_ngcontent-%COMP%]:hover{background:var(--app-primary-3)}"]})};var R=class r{api=g(A);fs=g(j);async checkPathExists(e){return await q(this.fs.pathExists(e))}detect(e){return this.api.post("/api/projects/detect",{rootPath:e})}async pickFolder(){return null}bootstrapByCli(e){return this.api.post("/api/projects/bootstrap/cli",{parentDir:e.parentDir,name:e.name,rootPath:e.rootPath,packageManager:e.packageManager,overwriteIfExists:e.overwriteIfExists,skipOnboarding:e.skipOnboarding,initGit:e.initGit,initialCommitMessage:e.initialCommitMessage,cliFramework:e.cliFramework,cliTool:e.cliTool,cliArgs:e.cliArgs??[]})}bootstrapPickRoot(e){return this.api.post("/api/projects/bootstrap/pickRoot",e)}bootstrapByGit(e){return this.api.post("/api/projects/bootstrap/git",{repoUrl:e.repoUrl,parentDir:e.parentDir,name:e.name,rootPath:e.rootPath,overwriteIfExists:e.overwriteIfExists,initGit:e.initGit,initialCommitMessage:e.initialCommitMessage,packageManager:e.packageManager,skipOnboarding:e.skipOnboarding??!0})}getProjectMembers(e){return this.api.hubRequestWithPrjId({projectId:e,path:"/members"})}list(){return this.api.get("/api/projects/list")}get(e){return this.api.get(`/api/projects/getInfo/${e}`)}check(e){return this.api.post("/api/projects/check",{rootPath:e})}createByPath(e){return this.api.post("/api/projects/create",e)}checkImport(e){return this.api.post("/api/projects/checkImport",{root:e})}importByPath(e){return this.api.post("/api/projects/import",e)}delete(e){return this.api.delete(`/api/projects/delete/${e}`)}update(e,t){return this.api.post(`/api/projects/update/${e}`,t)}setFavorite(e,t){return this.api.post(`/api/projects/favorite/${e}`,{isFavorite:t})}toggleFavorite(e){return this.api.post(`/api/projects/favorite/${e}/toggle`,{})}setLastOpened(e,t){return this.api.post(`/api/projects/lastOpened/${e}`,{timestamp:t})}openInEditor(e,t="code"){return this.api.post(`/api/projects/openInEditor/${e}`,{editor:t})}edit(e,t){return this.api.post(`/api/projects/edit/${e}`,t)}updateAssets(e,t){return this.api.post(`/api/projects/updateAssets/${e}`,{assets:t})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=w({token:r,factory:r.\u0275fac,providedIn:"root"})};var Re=class r{modal=g(ue);notify=g(ke);projectService=g(R);projectContext=g(je);ls=g(I);router=g(se);projects=z(()=>this.projectContext.projects());keyword=_("");isEditModalVisible=_(!1);isEditSaving=_(!1);editingProject=_(null);filteredProjects=z(()=>{let e=this.keyword().trim().toLowerCase();return e?this.projects().filter(t=>t.name.toLowerCase().includes(e)):this.projects()});favoriteProjects=z(()=>this.filteredProjects().filter(e=>e.isFavorite));moreProjects=z(()=>this.filteredProjects().filter(e=>!e.isFavorite));recentProjects=z(()=>this.projects().slice().sort((e,t)=>{let i=new Date(e.lastOpened||0).getTime();return new Date(t.lastOpened||0).getTime()-i}).slice(0,5));selectProject(e){this.projectContext.setCurrentProject(e);let t=Date.now();this.projectContext.patchProject(L($({},e),{lastOpened:t})),this.projectService.setLastOpened(e.id,t).subscribe(),this.router.navigate(["/dashboard"])}openInEditor(e){this.projectService.openInEditor(e).subscribe({next:()=>{console.log("Opened project in editor:",e),this.notify.success("\u5DF2\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00\u9879\u76EE")}})}toggleFavorite(e){this.projectService.toggleFavorite(e).subscribe(t=>{this.projectContext.patchProject(t)})}getProjects(e){this.projectContext.loadProjects(e).subscribe()}setCurrentProjectById(e){this.projectContext.setCurrentProjectById(e)}isOpen(e){return this.projectContext.isOpen(e)}openEditModal(e){let t=e.env??{};this.editingProject.set({id:e.id,name:e.name??"",repoPageUrl:e.repoPageUrl??"",description:e.description??"",hubV2:{baseUrl:t.NGM_HUB_V2_BASE_URL||"http://192.168.1.31:7008",projectKey:t.NGM_HUB_V2_PROJECT_KEY||"",token:t.NGM_HUB_V2_TOKEN||""}}),this.isEditModalVisible.set(!0)}closeEditModal(){this.isEditModalVisible.set(!1),this.editingProject.set(null)}confirmEditProject(){if(this.isEditSaving()||!this.editingProject())return;let{id:e,name:t,description:i,repoPageUrl:n,hubV2:o}=this.editingProject();if(!e){this.notify.error("\u672A\u9009\u4E2D\u9700\u8981\u91CD\u547D\u540D\u7684\u9879\u76EE");return}if(!t)return;let c=i?.trim(),P=n?.trim(),h={baseUrl:o.baseUrl.trim(),projectKey:o.projectKey.trim(),token:o.token.trim()},x=this.projectContext.getProjectById(e),M=x?.env??{};if(x&&x.name===t&&x.description===c&&x.repoPageUrl===P&&(M.NGM_HUB_V2_BASE_URL??"")===h.baseUrl&&(M.NGM_HUB_V2_PROJECT_KEY??"")===h.projectKey&&(M.NGM_HUB_V2_TOKEN??"")===h.token){this.closeEditModal();return}this.isEditSaving.set(!0),this.projectService.edit(e,{name:t,description:c,repoPageUrl:P}).subscribe({next:()=>{let d=L($({},x?.env??{}),{NGM_HUB_V2_BASE_URL:h.baseUrl,NGM_HUB_V2_PROJECT_KEY:h.projectKey,NGM_HUB_V2_TOKEN:h.token});this.projectService.update(e,{env:d}).subscribe({next:p=>{this.projectContext.patchProject(p),this.notify.success("\u4FEE\u6539\u6210\u529F"),this.isEditSaving.set(!1),this.closeEditModal()},error:p=>{this.notify.error(p?.message||"\u9879\u76EE\u914D\u7F6E\u4FDD\u5B58\u5931\u8D25"),this.isEditSaving.set(!1)}})},error:d=>{this.notify.error(d?.message||"\u4FEE\u6539\u5931\u8D25"),this.isEditSaving.set(!1)}})}deleteProject(e){this.modal.confirm({nzTitle:"\u786E\u8BA4\u5220\u9664\u8BE5\u9879\u76EE\u5417\uFF1F",nzContent:"\u5220\u9664\u9879\u76EE\u53EA\u4F1A\u79FB\u9664\u9879\u76EE\u8BB0\u5F55\uFF0C\u4E0D\u4F1A\u5220\u9664\u78C1\u76D8\u4E0A\u7684\u6587\u4EF6\u5939\u3002\u5982\u9700\u5220\u9664\u78C1\u76D8\u6587\u4EF6\uFF0C\u8BF7\u624B\u52A8\u64CD\u4F5C\u3002",nzOkText:"\u5220\u9664",nzCancelText:"\u53D6\u6D88",nzOkDanger:!0,nzOnOk:()=>{this.projectService.delete(e).subscribe({next:()=>{this.projectContext.removeProject(e),this.projectContext.currentProject()||this.notify.info("\u5F53\u524D\u6CA1\u6709\u9879\u76EE\uFF0C\u8BF7\u5148\u521B\u5EFA\u6216\u5BFC\u5165\u9879\u76EE"),this.notify.success("\u9879\u76EE\u5DF2\u5220\u9664")}})}})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=w({token:r,factory:r.\u0275fac,providedIn:"root"})};export{j as a,U as b,Ue as c,R as d,Re as e};