@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.
- package/lib/plugins/error-handler.plugin.js +5 -0
- package/lib/routes/api-client/hub-token.routes.js +22 -0
- package/lib/routes/index.js +2 -0
- package/lib/routes/node-version.routes.d.ts +2 -0
- package/lib/routes/node-version.routes.js +56 -0
- package/lib/routes/project.routes.js +5 -0
- package/lib/routes/sprite-browse.routes.js +19 -5
- package/lib/routes/sprite.routes.js +17 -11
- package/lib/routes/static-files.routes.js +16 -0
- package/lib/routes/task.routes.js +7 -0
- package/package.json +3 -3
- package/www/3rdpartylicenses.txt +14 -66
- package/www/browser/chunk-2BZRE4G7.js +1 -0
- package/www/browser/chunk-2X3MRS27.js +1 -0
- package/www/browser/chunk-4KETC6EB.js +1 -0
- package/www/browser/chunk-5T5KA5PG.js +1 -0
- package/www/browser/chunk-6CGHNKJI.js +1 -0
- package/www/browser/chunk-76TVIB33.js +63 -0
- package/www/browser/chunk-7J24TP36.js +1 -0
- package/www/browser/chunk-ACAZUX6C.js +1 -0
- package/www/browser/chunk-B6MBYCXI.js +1 -0
- package/www/browser/chunk-BYEU6KGP.js +2 -0
- package/www/browser/chunk-CZ5AZ3VW.js +1 -0
- package/www/browser/chunk-DW7F5PEA.js +1 -0
- package/www/browser/chunk-DXF7BVK5.js +1 -0
- package/www/browser/chunk-EEVPZGEY.js +1 -0
- package/www/browser/chunk-G2W3B7TJ.js +1 -0
- package/www/browser/chunk-GDWS2L66.js +1 -0
- package/www/browser/chunk-HFZLJHYR.js +1 -0
- package/www/browser/chunk-HGONFYP6.js +1 -0
- package/www/browser/chunk-HHBPULJW.js +2 -0
- package/www/browser/chunk-HRXCR3IN.js +1 -0
- package/www/browser/chunk-INL2PELS.js +1 -0
- package/www/browser/chunk-JHMEKUZ5.js +1 -0
- package/www/browser/chunk-JU3TEDBV.js +37 -0
- package/www/browser/chunk-JZULA5JV.js +1 -0
- package/www/browser/chunk-KVFR7GFV.js +20 -0
- package/www/browser/chunk-L5D75AMV.js +1 -0
- package/www/browser/chunk-L7TMCSHV.js +1 -0
- package/www/browser/chunk-LQ5OXSW7.js +3 -0
- package/www/browser/chunk-MVQTKINJ.js +1 -0
- package/www/browser/chunk-N4LRZJBP.js +1 -0
- package/www/browser/chunk-O2EYEF7J.js +1 -0
- package/www/browser/chunk-OMDHJIUB.js +1 -0
- package/www/browser/chunk-OWUAAOHW.js +2 -0
- package/www/browser/chunk-PIK5YPIB.js +1 -0
- package/www/browser/chunk-RHLQRQDK.js +9 -0
- package/www/browser/chunk-RW2JPJV7.js +1 -0
- package/www/browser/chunk-S3SJ4VVM.js +11 -0
- package/www/browser/chunk-SIVPP74B.js +0 -0
- package/www/browser/chunk-SPRWNZHF.js +15 -0
- package/www/browser/chunk-SQQNR223.js +1 -0
- package/www/browser/chunk-SVQWPHF5.js +1 -0
- package/www/browser/chunk-SYCNSLAW.js +4 -0
- package/www/browser/chunk-T3KK7ZXB.js +2 -0
- package/www/browser/chunk-TMX5TTV3.js +1 -0
- package/www/browser/chunk-UFY3FLDK.js +1 -0
- package/www/browser/chunk-UJOHBN2Y.js +1 -0
- package/www/browser/chunk-UQGCUFNM.js +1 -0
- package/www/browser/chunk-UXXWRMM6.js +1 -0
- package/www/browser/chunk-UZRJGJTD.js +2 -0
- package/www/browser/chunk-WD4IAQR3.js +1 -0
- package/www/browser/chunk-WF2QTF5L.js +1 -0
- package/www/browser/chunk-WI67LAOV.js +4 -0
- package/www/browser/chunk-WNCM6QKB.js +1 -0
- package/www/browser/chunk-XJ5KZQNN.js +1 -0
- package/www/browser/chunk-YETDFSQE.js +1 -0
- package/www/browser/chunk-YMTC5GZK.js +1 -0
- package/www/browser/chunk-YVZHJ76K.js +1 -0
- package/www/browser/chunk-ZNTJRLVH.js +1 -0
- package/www/browser/dark.css +1 -30433
- package/www/browser/default.css +1 -30149
- package/www/browser/index.html +3 -3
- package/www/browser/main-6LN5C22E.js +34 -0
- package/www/browser/scripts-U25HCVEI.js +6 -0
- package/www/browser/styles-ROAHD7MY.css +1 -0
- package/www/browser/add-widget-drawer.component.css.map +0 -7
- package/www/browser/advanced-editor.component.css.map +0 -7
- package/www/browser/api-client.component.css.map +0 -7
- package/www/browser/api-history-drawer.component.css.map +0 -7
- package/www/browser/app.css.map +0 -7
- package/www/browser/attachment-viewer.component.css.map +0 -7
- package/www/browser/auth-editor.component.css.map +0 -7
- package/www/browser/body-editor.component.css.map +0 -7
- package/www/browser/chunk-2YSUXBGC.js +0 -627
- package/www/browser/chunk-2YSUXBGC.js.map +0 -1
- package/www/browser/chunk-3G2GEOPV.js +0 -456
- package/www/browser/chunk-3G2GEOPV.js.map +0 -1
- package/www/browser/chunk-3L72DF3R.js +0 -1683
- package/www/browser/chunk-3L72DF3R.js.map +0 -1
- package/www/browser/chunk-3MCIETCQ.js +0 -8279
- package/www/browser/chunk-3MCIETCQ.js.map +0 -1
- package/www/browser/chunk-665WC4RU.js +0 -5383
- package/www/browser/chunk-665WC4RU.js.map +0 -1
- package/www/browser/chunk-6QMSEZPT.js +0 -10044
- package/www/browser/chunk-6QMSEZPT.js.map +0 -1
- package/www/browser/chunk-6TBQERYX.js +0 -280
- package/www/browser/chunk-6TBQERYX.js.map +0 -1
- package/www/browser/chunk-6UW4MRJZ.js +0 -43
- package/www/browser/chunk-6UW4MRJZ.js.map +0 -7
- package/www/browser/chunk-6XUMIL3W.js +0 -5495
- package/www/browser/chunk-6XUMIL3W.js.map +0 -1
- package/www/browser/chunk-724YOJI3.js +0 -903
- package/www/browser/chunk-724YOJI3.js.map +0 -1
- package/www/browser/chunk-766T7YES.js +0 -437
- package/www/browser/chunk-766T7YES.js.map +0 -1
- package/www/browser/chunk-7FC7DN65.js +0 -728
- package/www/browser/chunk-7FC7DN65.js.map +0 -1
- package/www/browser/chunk-APGQRYWX.js +0 -156
- package/www/browser/chunk-APGQRYWX.js.map +0 -7
- package/www/browser/chunk-AQHSGTHS.js +0 -1960
- package/www/browser/chunk-AQHSGTHS.js.map +0 -1
- package/www/browser/chunk-CTOEAJQK.js +0 -40
- package/www/browser/chunk-CTOEAJQK.js.map +0 -7
- package/www/browser/chunk-DEGQJKKZ.js +0 -409
- package/www/browser/chunk-DEGQJKKZ.js.map +0 -1
- package/www/browser/chunk-DIJX2663.js +0 -1166
- package/www/browser/chunk-DIJX2663.js.map +0 -1
- package/www/browser/chunk-E4XD4GLT.js +0 -427
- package/www/browser/chunk-E4XD4GLT.js.map +0 -1
- package/www/browser/chunk-EQOY6A3M.js +0 -212
- package/www/browser/chunk-EQOY6A3M.js.map +0 -1
- package/www/browser/chunk-ETTBRXVA.js +0 -2643
- package/www/browser/chunk-ETTBRXVA.js.map +0 -1
- package/www/browser/chunk-FLSUSPBD.js +0 -5569
- package/www/browser/chunk-FLSUSPBD.js.map +0 -1
- package/www/browser/chunk-FZNHBEAZ.js +0 -102
- package/www/browser/chunk-FZNHBEAZ.js.map +0 -1
- package/www/browser/chunk-GJC7CZIJ.js +0 -361
- package/www/browser/chunk-GJC7CZIJ.js.map +0 -7
- package/www/browser/chunk-GMCNMOTD.js +0 -844
- package/www/browser/chunk-GMCNMOTD.js.map +0 -7
- package/www/browser/chunk-H43HGCRW.js +0 -198
- package/www/browser/chunk-H43HGCRW.js.map +0 -7
- package/www/browser/chunk-J447GBHM.js +0 -160
- package/www/browser/chunk-J447GBHM.js.map +0 -1
- package/www/browser/chunk-JN3VOWP7.js +0 -384
- package/www/browser/chunk-JN3VOWP7.js.map +0 -1
- package/www/browser/chunk-KSHAGY2M.js +0 -399
- package/www/browser/chunk-KSHAGY2M.js.map +0 -7
- package/www/browser/chunk-KV72AKOD.js +0 -59
- package/www/browser/chunk-KV72AKOD.js.map +0 -7
- package/www/browser/chunk-LAVMY2SJ.js +0 -26
- package/www/browser/chunk-LAVMY2SJ.js.map +0 -7
- package/www/browser/chunk-LLRVGHG5.js +0 -73
- package/www/browser/chunk-LLRVGHG5.js.map +0 -7
- package/www/browser/chunk-LPME4AJ3.js +0 -196
- package/www/browser/chunk-LPME4AJ3.js.map +0 -1
- package/www/browser/chunk-LVPSURVU.js +0 -4615
- package/www/browser/chunk-LVPSURVU.js.map +0 -1
- package/www/browser/chunk-MMPO7QLO.js +0 -4146
- package/www/browser/chunk-MMPO7QLO.js.map +0 -7
- package/www/browser/chunk-O7LB6VFM.js +0 -1953
- package/www/browser/chunk-O7LB6VFM.js.map +0 -1
- package/www/browser/chunk-P5CWA4FO.js +0 -685
- package/www/browser/chunk-P5CWA4FO.js.map +0 -1
- package/www/browser/chunk-RBWIWNTL.js +0 -203
- package/www/browser/chunk-RBWIWNTL.js.map +0 -7
- package/www/browser/chunk-RUXJCM3V.js +0 -26199
- package/www/browser/chunk-RUXJCM3V.js.map +0 -1
- package/www/browser/chunk-S77VVYUZ.js +0 -168
- package/www/browser/chunk-S77VVYUZ.js.map +0 -1
- package/www/browser/chunk-SCXPYFOB.js +0 -4316
- package/www/browser/chunk-SCXPYFOB.js.map +0 -1
- package/www/browser/chunk-SS73S33S.js +0 -471
- package/www/browser/chunk-SS73S33S.js.map +0 -7
- package/www/browser/chunk-T6UAOWNP.js +0 -600
- package/www/browser/chunk-T6UAOWNP.js.map +0 -1
- package/www/browser/chunk-TEW4MY4J.js +0 -148
- package/www/browser/chunk-TEW4MY4J.js.map +0 -7
- package/www/browser/chunk-TVORF3SF.js +0 -82
- package/www/browser/chunk-TVORF3SF.js.map +0 -7
- package/www/browser/chunk-UAN42EUZ.js +0 -2147
- package/www/browser/chunk-UAN42EUZ.js.map +0 -1
- package/www/browser/chunk-ULOHDK7Y.js +0 -1
- package/www/browser/chunk-ULOHDK7Y.js.map +0 -7
- package/www/browser/chunk-UYJ3FVRV.js +0 -3978
- package/www/browser/chunk-UYJ3FVRV.js.map +0 -1
- package/www/browser/chunk-VXHZMSDM.js +0 -5509
- package/www/browser/chunk-VXHZMSDM.js.map +0 -1
- package/www/browser/chunk-VYNQPZQO.js +0 -281
- package/www/browser/chunk-VYNQPZQO.js.map +0 -1
- package/www/browser/chunk-W3J23PZI.js +0 -9213
- package/www/browser/chunk-W3J23PZI.js.map +0 -1
- package/www/browser/chunk-W5HGHCQT.js +0 -1642
- package/www/browser/chunk-W5HGHCQT.js.map +0 -7
- package/www/browser/chunk-XF5H7E4L.js +0 -4723
- package/www/browser/chunk-XF5H7E4L.js.map +0 -1
- package/www/browser/chunk-XNFNEBMY.js +0 -398
- package/www/browser/chunk-XNFNEBMY.js.map +0 -7
- package/www/browser/chunk-XQY5SPGI.js +0 -30811
- package/www/browser/chunk-XQY5SPGI.js.map +0 -1
- package/www/browser/chunk-Y7JBZHNK.js +0 -514
- package/www/browser/chunk-Y7JBZHNK.js.map +0 -1
- package/www/browser/chunk-YWHRP4X3.js +0 -406
- package/www/browser/chunk-YWHRP4X3.js.map +0 -1
- package/www/browser/chunk-Z7FJIV62.js +0 -95
- package/www/browser/chunk-Z7FJIV62.js.map +0 -7
- package/www/browser/chunk-ZBZHXS46.js +0 -1674
- package/www/browser/chunk-ZBZHXS46.js.map +0 -1
- package/www/browser/chunk-ZZA5NVAI.js +0 -735
- package/www/browser/chunk-ZZA5NVAI.js.map +0 -1
- package/www/browser/collection-modal.component.css.map +0 -7
- package/www/browser/collection-tree-item.component.css.map +0 -7
- package/www/browser/collection-tree.component.css.map +0 -7
- package/www/browser/config-change-bar-component.css.map +0 -7
- package/www/browser/config-item-component.css.map +0 -7
- package/www/browser/config-nav-component.css.map +0 -7
- package/www/browser/config-section-component.css.map +0 -7
- package/www/browser/create-summary-aside.component.css.map +0 -7
- package/www/browser/curl-actions.component.css.map +0 -7
- package/www/browser/dark.css.map +0 -7
- package/www/browser/dashboard-canvas.component.css.map +0 -7
- package/www/browser/dashboard.component.css.map +0 -7
- package/www/browser/default.css.map +0 -7
- package/www/browser/detail-item-card.component.css.map +0 -7
- package/www/browser/ellipsis-text.component.css.map +0 -7
- package/www/browser/env-modal.component.css.map +0 -7
- package/www/browser/env-picker.component.css.map +0 -7
- package/www/browser/feedback.component.css.map +0 -7
- package/www/browser/fs-explorer.component.css.map +0 -7
- package/www/browser/git-import-modal.component.css.map +0 -7
- package/www/browser/hub-v2-personal-token-modal.component.css.map +0 -7
- package/www/browser/issue-action-area.component.css.map +0 -7
- package/www/browser/issue-add-participants-dialog.component.css.map +0 -7
- package/www/browser/issue-assign-dialog.component.css.map +0 -7
- package/www/browser/issue-attachment-area.component.css.map +0 -7
- package/www/browser/issue-base-info-area.component.css.map +0 -7
- package/www/browser/issue-branches.component.css.map +0 -7
- package/www/browser/issue-close-dialog.component.css.map +0 -7
- package/www/browser/issue-collaborators-panel.component.css.map +0 -7
- package/www/browser/issue-comment-editor.component.css.map +0 -7
- package/www/browser/issue-create-branch-dialog.component.css.map +0 -7
- package/www/browser/issue-description-area.component.css.map +0 -7
- package/www/browser/issue-detail.component.css.map +0 -7
- package/www/browser/issue-resolve-dialog.component.css.map +0 -7
- package/www/browser/issue-start-own-branch-dialog.component.css.map +0 -7
- package/www/browser/issues-list-table.component.css.map +0 -7
- package/www/browser/issues.component.css.map +0 -7
- package/www/browser/kill-port-widget.component.css.map +0 -7
- package/www/browser/kv-table.component.css.map +0 -7
- package/www/browser/layout-footer.component.css.map +0 -7
- package/www/browser/layout-header.component.css.map +0 -7
- package/www/browser/layout-menu.component.css.map +0 -7
- package/www/browser/layout-project-nav.component.css.map +0 -7
- package/www/browser/layout-sidebar.component.css.map +0 -7
- package/www/browser/layout.component.css.map +0 -7
- package/www/browser/less-viewport-component.css.map +0 -7
- package/www/browser/main.js +0 -1872
- package/www/browser/main.js.map +0 -1
- package/www/browser/markdown-viewer.component.css.map +0 -7
- package/www/browser/news-feed-widget.component.css.map +0 -7
- package/www/browser/ng-devtool.component.css.map +0 -7
- package/www/browser/nginx-config-editor.component.css.map +0 -7
- package/www/browser/nginx-log-viewer.component.css.map +0 -7
- package/www/browser/nginx-secondary-logs-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-perf-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-settings-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-ssl-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-test-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-traffic-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-upstream-tab.component.css.map +0 -7
- package/www/browser/nginx-section-card.component.css.map +0 -7
- package/www/browser/nginx-server-drawer.component.css.map +0 -7
- package/www/browser/nginx-server-list.component.css.map +0 -7
- package/www/browser/nginx-stat-card.component.css.map +0 -7
- package/www/browser/nginx.component.css.map +0 -7
- package/www/browser/page-layout.component.css.map +0 -7
- package/www/browser/pick-workspace-modal.component.css.map +0 -7
- package/www/browser/polyfills.js +0 -26584
- package/www/browser/polyfills.js.map +0 -7
- package/www/browser/project-conf.component.css.map +0 -7
- package/www/browser/project-create-modal.component.css.map +0 -7
- package/www/browser/project-create.component.css.map +0 -7
- package/www/browser/project-deps.component.css.map +0 -7
- package/www/browser/project-edit-modal.component.css.map +0 -7
- package/www/browser/project-import.component.css.map +0 -7
- package/www/browser/project-item-popover.component.css.map +0 -7
- package/www/browser/project-item.component.css.map +0 -7
- package/www/browser/project-list.component.css.map +0 -7
- package/www/browser/projects.component.css.map +0 -7
- package/www/browser/quick-task-widget.component.css.map +0 -7
- package/www/browser/rd-action-area.component.css.map +0 -7
- package/www/browser/rd-advance-stage-dialog.component.css.map +0 -7
- package/www/browser/rd-block-dialog.component.css.map +0 -7
- package/www/browser/rd-create-dialog.component.css.map +0 -7
- package/www/browser/rd-detail.component.css.map +0 -7
- package/www/browser/rd-item-card.component.css.map +0 -7
- package/www/browser/rd-list-board.component.css.map +0 -7
- package/www/browser/rd-list-table.component.css.map +0 -7
- package/www/browser/rd.component.css.map +0 -7
- package/www/browser/request-collections.component.css.map +0 -7
- package/www/browser/request-editor.component.css.map +0 -7
- package/www/browser/request-list-item.component.css.map +0 -7
- package/www/browser/request-list.component.css.map +0 -7
- package/www/browser/request-tabs-bar.component.css.map +0 -7
- package/www/browser/request-tabs.component.css.map +0 -7
- package/www/browser/request-urlbar.component.css.map +0 -7
- package/www/browser/response-viewer.component.css.map +0 -7
- package/www/browser/scripts.js +0 -245
- package/www/browser/scripts.js.map +0 -7
- package/www/browser/setting.component.css.map +0 -7
- package/www/browser/sprite-conf-modal.component.css.map +0 -7
- package/www/browser/sprite-icons-panel-component.css.map +0 -7
- package/www/browser/sprite-images-panel-component.css.map +0 -7
- package/www/browser/sprite-result-tabs.component.css.map +0 -7
- package/www/browser/sprite-viewport-component.css.map +0 -7
- package/www/browser/sprite.component.css.map +0 -7
- package/www/browser/step-advance.component.css.map +0 -7
- package/www/browser/step-basic.component.css.map +0 -7
- package/www/browser/step-config.component.css.map +0 -7
- package/www/browser/step-features.component.css.map +0 -7
- package/www/browser/step-preset.component.css.map +0 -7
- package/www/browser/step-summary-aside.component.css.map +0 -7
- package/www/browser/styles.css +0 -258
- package/www/browser/styles.css.map +0 -7
- package/www/browser/system-log.component.css.map +0 -7
- package/www/browser/task-actions.component.css.map +0 -7
- package/www/browser/task-console.component.css.map +0 -7
- package/www/browser/task-header.component.css.map +0 -7
- package/www/browser/task-list.component.css.map +0 -7
- package/www/browser/tasks.component.css.map +0 -7
- package/www/browser/terminal-view.component.css.map +0 -7
- package/www/browser/welcome-widget.component.css.map +0 -7
- package/www/browser/widget-base.component.css.map +0 -7
- package/www/browser/widget-host.component.css.map +0 -7
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as at,B as tt,a as Hi,b as Ki,c as Yi,d as Gi,e as Xi,f as Zi,g as Ji,h as jt,i as Ut,j as eo,k as to,l as et,q as te,r as Ae,t as Oe,u as qt,v as $t,w as Wt,x as no,y as io,z as oo}from"./chunk-UZRJGJTD.js";import{c as Ze,d as Je}from"./chunk-O2EYEF7J.js";import"./chunk-76TVIB33.js";import{a as Ei,b as Ai,c as Oi,d as Fi,e as Bi,f as Li,g as ki,h as Vi,i as Ri,j as ji}from"./chunk-YMTC5GZK.js";import{a as Ft,b as Bt}from"./chunk-INL2PELS.js";import{b as Ui,c as qi,d as $i,e as Wi}from"./chunk-LQ5OXSW7.js";import{a as Qi,e as Rt}from"./chunk-SVQWPHF5.js";import{a as gi,b as fi,c as _i}from"./chunk-ZNTJRLVH.js";import{c as Lt}from"./chunk-G2W3B7TJ.js";import{a as Ni,b as Pi}from"./chunk-PIK5YPIB.js";import"./chunk-YVZHJ76K.js";import"./chunk-SIVPP74B.js";import{a as kt,b as Vt}from"./chunk-WD4IAQR3.js";import{a as Ge,b as Xe}from"./chunk-WF2QTF5L.js";import"./chunk-HRXCR3IN.js";import"./chunk-DW7F5PEA.js";import"./chunk-KVFR7GFV.js";import{b as di}from"./chunk-2X3MRS27.js";import{a as wi,b as Ot,c as He,d as Ke,e as Ye,f as Ee}from"./chunk-4KETC6EB.js";import{b as Tt,c as Ci,d as hi,e as Mi,f as Ti,g as Di}from"./chunk-JU3TEDBV.js";import"./chunk-TMX5TTV3.js";import{a as Ne,b as Pe}from"./chunk-UQGCUFNM.js";import{g as Qe,h as oe,i as Mt,j as se,k as re,l as j}from"./chunk-BYEU6KGP.js";import"./chunk-5T5KA5PG.js";import{d as At}from"./chunk-UXXWRMM6.js";import{$b as Si,Ab as zi,B as si,Bb as bi,C as wn,Eb as ae,F as ri,Fa as ee,Ga as Q,Gb as Y,H as ai,Ha as we,Hb as Dt,Ia as We,Jb as wt,Kb as G,L as ge,Lb as Nt,Oa as L,Pa as H,Ra as K,Sa as A,Sb as Ii,Ub as B,Xb as xi,Zb as le,a as $e,ac as X,ca as li,dc as Pt,fc as Et,ka as ci,qa as mi,ra as St,s as xt,u as oi,xa as ui,ya as pi,yb as yi,zb as vi}from"./chunk-SPRWNZHF.js";import"./chunk-HFZLJHYR.js";import{c as ni,e as ii,h as Dn}from"./chunk-L5D75AMV.js";import{i as be,m as De,n as W}from"./chunk-T3KK7ZXB.js";import{$b as w,$c as ve,Ac as V,B as Ln,Ba as $n,Bb as _t,Bc as Xn,Ca as Wn,D as kn,Da as xe,Dc as Zn,Ec as $,Fb as I,Fc as qe,G as Vn,Gb as pe,Gc as de,H as In,Ha as b,Hb as he,Jb as Yn,Jc as u,Kc as T,L as gt,Lb as S,Lc as x,Mb as Ct,Nc as yt,Oa as st,Oc as vt,Pa as Qn,Pc as zt,Qc as Jn,Ra as je,Rc as ei,Sc as bt,Ub as Gn,V as Rn,Wb as C,Wc as It,Yb as h,Yc as rt,Zb as ht,Zc as Tn,_b as ne,a as ce,ac as N,b as zn,bc as m,bd as ze,cc as r,cd as Z,da as ft,dc as a,ea as jn,ec as z,fc as Sn,g as Fn,gc as Mn,hd as y,ic as O,id as R,ja as Un,jc as F,kb as Ue,kc as Be,l as bn,lc as M,m as Bn,ma as qn,md as D,na as me,nb as s,nd as p,oa as ue,pd as ti,rc as _,sa as v,sb as Ce,t as _e,tb as xn,td as Me,u as dt,uc as c,vb as Hn,vc as q,wb as Se,wc as P,xc as ie,xd as Te,ya as g,yb as Kn,yc as ye,za as f,zc as k}from"./chunk-WI67LAOV.js";var To=(n,t)=>t.id;function Do(n,t){if(n&1&&(r(0,"div")(1,"div",3)(2,"span"),u(3,"\u534F\u4F5C\u4EBA\uFF08\u53EF\u591A\u9009\uFF09"),a(),r(4,"div",4),u(5),a()()()),n&2){let e=c();s(5),x(" ",e.issue()?e.issue().title:"\u9009\u62E9\u534F\u4F5C\u4EBA"," ")}}function wo(n,t){if(n&1&&z(0,"nz-option",7),n&2){let e=t.$implicit;m("nzLabel",e.displayName)("nzValue",e.userId)}}function No(n,t){if(n&1){let e=M();O(0),r(1,"p",5),u(2,"\u534F\u4F5C\u4EBA:"),a(),r(3,"nz-select",6),_("ngModelChange",function(o){g(e);let l=c();return f(l.onSelectedChange(o))}),w(4,wo,1,2,"nz-option",7,To),a(),F()}if(n&2){let e=c();s(3),m("ngModel",e.selectedUserIds()),s(),N(e.memberOptions())}}var Qt=class n{open=p(!1);busy=p(!1);issue=p(null);members=p([]);participants=p([]);cancel=D();confirm=D();selectedUserIds=b([]);disabledSubmit=y(()=>this.selectedUserIds().length===0);memberOptions=y(()=>this.members().filter(t=>{let i=this.participants().find(o=>o.userId===t.userId);return t.userId!==this.issue()?.assigneeId&&!i}));constructor(){R(()=>{this.open()&&this.selectedUserIds.set([])})}confirmSubmit(){let t=[...new Set(this.selectedUserIds().map(e=>e.trim()).filter(Boolean))];t.length!==0&&this.confirm.emit({userIds:t})}onSelectedChange(t){this.selectedUserIds.set(Array.isArray(t)?t:[])}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-add-participants-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],issue:[1,"issue"],members:[1,"members"],participants:[1,"participants"]},outputs:{cancel:"cancel",confirm:"confirm"},decls:3,vars:5,consts:[["nzOkText","\u6DFB\u52A0\u534F\u4F5C\u4EBA",3,"nzOnCancel","nzOnOk","nzVisible","nzClosable","nzMaskClosable","nzOkLoading","nzOkDisabled"],[4,"nzModalTitle"],[4,"nzModalContent"],[1,"modal-title"],[1,"modal-subtitle"],[1,"label"],["nzShowSearch","","nzPlaceHolder","\u9009\u62E9\u9879\u76EE\u6210\u5458\uFF08\u8D1F\u8D23\u4EBA\u4E0D\u53EF\u9009\uFF09","nzMode","multiple",1,"select",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"]],template:function(e,i){e&1&&(r(0,"nz-modal",0),_("nzOnCancel",function(){return i.cancel.emit()})("nzOnOk",function(){return i.confirmSubmit()}),S(1,Do,6,1,"div",1)(2,No,6,1,"ng-container",2),a()),e&2&&m("nzVisible",i.open())("nzClosable",!0)("nzMaskClosable",!1)("nzOkLoading",i.busy())("nzOkDisabled",i.disabledSubmit())},dependencies:[B,Y,G,A,Ee,Ke,Ye,j,re,oe,se],styles:[".modal-title[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-subtitle[_ngcontent-%COMP%]{color:#999;font-size:14px;line-height:20px}.select[_ngcontent-%COMP%]{width:100%}.label[_ngcontent-%COMP%]{font-size:.8rem;color:gray}"],changeDetection:0})};var Po=(n,t)=>t.id;function Eo(n,t){if(n&1&&(r(0,"div")(1,"div",3)(2,"span"),u(3),a(),r(4,"div",4),u(5),a()()()),n&2){let e=c();s(3),T(e.dialogTitle()),s(2),x(" ",e.issue()?e.issue().title:"\u9009\u62E9\u65B0\u7684\u8D1F\u8D23\u4EBA\u3002"," ")}}function Ao(n,t){if(n&1&&z(0,"nz-option",7),n&2){let e=t.$implicit;m("nzLabel",e.displayName)("nzValue",e.userId)}}function Oo(n,t){if(n&1){let e=M();O(0),r(1,"p",5),u(2,"\u8D1F\u8D23\u4EBA:"),a(),r(3,"nz-select",6),_("ngModelChange",function(o){g(e);let l=c();return f(l.assigneeId.set(o||""))}),w(4,Ao,1,2,"nz-option",7,Po),a(),F()}if(n&2){let e=c();s(3),m("ngModel",e.assigneeId()),s(),N(e.filterMembers())}}var Ht=class n{open=p(!1);busy=p(!1);issue=p(null);actionLabel=p("\u91CD\u65B0\u6307\u6D3E");members=p([]);confirm=D();cancel=D();assigneeId=b("");filterMembers=y(()=>{let t=this.issue()?.assigneeId?.trim()||"";return this.members().filter(e=>e.userId!==t)});constructor(){R(()=>{this.open()&&this.assigneeId.set("")})}dialogTitle(){let t=this.actionLabel();return t==="\u6307\u6D3E"?"\u6307\u6D3E\u8D1F\u8D23\u4EBA":t==="\u8F6C\u6D3E"?"\u8F6C\u6D3E\u8D1F\u8D23\u4EBA":"\u91CD\u65B0\u6307\u6D3E\u8D1F\u8D23\u4EBA"}confirmText(){let t=this.actionLabel();return t==="\u6307\u6D3E"?"\u786E\u8BA4\u6307\u6D3E":t==="\u8F6C\u6D3E"?"\u786E\u8BA4\u8F6C\u6D3E":"\u786E\u8BA4\u91CD\u65B0\u6307\u6D3E"}confirmAssign(){this.assigneeId()&&this.confirm.emit({assigneeId:this.assigneeId()})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-assign-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],issue:[1,"issue"],actionLabel:[1,"actionLabel"],members:[1,"members"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:3,vars:7,consts:[[3,"nzOnCancel","nzOnOk","nzVisible","nzClosable","nzMaskClosable","nzOkLoading","nzOkDisabled","nzOkText"],[4,"nzModalTitle"],[4,"nzModalContent"],[1,"modal-title"],[1,"modal-subtitle"],[1,"assignee"],["nzShowSearch","","nzPlaceHolder","\u9009\u62E9\u9879\u76EE\u6210\u5458",1,"assignee-select",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"]],template:function(e,i){e&1&&(r(0,"nz-modal",0),_("nzOnCancel",function(){return i.cancel.emit()})("nzOnOk",function(){return i.confirmAssign()}),S(1,Eo,6,2,"div",1)(2,Oo,6,1,"ng-container",2),a()),e&2&&m("nzVisible",i.open())("nzClosable",!0)("nzMaskClosable",!1)("nzOkLoading",i.busy())("nzOkDisabled",!i.assigneeId())("nzOkText",i.confirmText())("nzOkDisabled",!i.assigneeId())},dependencies:[B,Y,G,A,Ee,Ke,Ye,j,re,oe,se],styles:[".modal-title[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-subtitle[_ngcontent-%COMP%]{color:#999;font-size:14px;line-height:20px}.assignee-select[_ngcontent-%COMP%]{width:100%}.assignee[_ngcontent-%COMP%]{font-size:.8rem;color:gray}"],changeDetection:0})};function Fo(n,t){if(n&1&&(r(0,"div")(1,"div",4)(2,"span"),u(3,"\u5173\u95ED\u95EE\u9898"),a(),r(4,"div",5),u(5),a()()()),n&2){let e=c();s(5),x(" ",e.item()?e.item().title:"\u8BB0\u5F55\u5F53\u524D\u6D4B\u8BD5\u95EE\u9898\u7684\u5173\u95ED\u539F\u56E0\u3002"," ")}}function Bo(n,t){if(n&1){let e=M();O(0),r(1,"form",6)(2,"textarea",7),_("ngModelChange",function(o){g(e);let l=c();return f(l.reason.set(o))}),a()(),F()}if(n&2){let e=c();s(2),m("ngModel",e.reason())}}function Lo(n,t){if(n&1){let e=M();O(0),r(1,"button",8),_("click",function(){g(e);let o=c();return f(o.cancel.emit())}),u(2,"\u53D6\u6D88"),a(),r(3,"button",9),_("click",function(){g(e);let o=c();return f(o.submitForm())}),u(4," \u786E\u8BA4\u5173\u95ED "),a(),F()}if(n&2){let e=c();s(3),m("disabled",!e.reason().trim())("nzLoading",e.busy())}}var Kt=class n{open=p(!0);busy=p(!1);item=p(null);confirm=D();cancel=D();reason=b("");constructor(){R(()=>{this.open()&&this.reason.set(this.item()?.closeReason??"")})}submitForm(){let t=this.reason().trim();t&&this.confirm.emit(t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-close-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],item:[1,"item"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:4,vars:5,consts:[["nzTitle","\u5173\u95ED\u95EE\u9898",3,"nzOnCancel","nzOnOk","nzVisible","nzWidth","nzClosable","nzMaskClosable","nzOkLoading"],[4,"nzModalTitle"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-title"],[1,"modal-subtitle"],[1,"block-form"],["nz-input","","rows","6","placeholder","\u8BF7\u8F93\u5165\u5173\u95ED\u539F\u56E0\u3002\u4F8B\u5982\uFF1A\u9700\u6C42\u53D6\u6D88/\u95EE\u9898\u91CD\u590D/\u65E0\u6CD5\u590D\u73B0\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,i){e&1&&(r(0,"nz-modal",0),_("nzOnCancel",function(){return i.cancel.emit()})("nzOnOk",function(){return i.submitForm()}),S(1,Fo,6,1,"div",1)(2,Bo,3,1,"ng-container",2)(3,Lo,5,2,"ng-container",3),a()),e&2&&m("nzVisible",i.open())("nzWidth",640)("nzClosable",!0)("nzMaskClosable",!1)("nzOkLoading",i.busy())},dependencies:[j,re,Mt,oe,se,B,Nt,ae,Y,Dt,G,wt,A,K,L,H,X,le],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 ko=(n,t)=>t.id;function Vo(n,t){if(n&1&&(r(0,"div")(1,"div",3)(2,"span",4),z(3,"nz-icon",5),u(4," \u521B\u5EFA\u534F\u4F5C\u5206\u652F "),a(),r(5,"div",6),u(6),a()()()),n&2){let e=c();s(6),x(" ",e.issue()?e.issue().title:"\u4E3A\u534F\u4F5C\u4EBA\u62C6\u5206\u5904\u7406\u5206\u652F\u3002"," ")}}function Ro(n,t){if(n&1&&z(0,"nz-option",9),n&2){let e=t.$implicit;m("nzLabel",e.userName)("nzValue",e.userId)}}function jo(n,t){if(n&1){let e=M();O(0),r(1,"p",7),u(2,"\u534F\u4F5C\u4EBA"),a(),r(3,"nz-select",8),_("ngModelChange",function(o){g(e);let l=c();return f(l.selectedOwnerUserId.set(o))}),w(4,Ro,1,2,"nz-option",9,ko),a(),r(6,"p",7),u(7,"\u5206\u652F\u6807\u9898"),a(),r(8,"input",10),_("ngModelChange",function(o){g(e);let l=c();return f(l.title.set((o??"").toString()))}),a(),F()}if(n&2){let e=c();s(3),m("ngModel",e.selectedOwnerUserId()),s(),N(e.participants()),s(4),m("ngModel",e.title())}}var Yt=class n{open=p(!1);busy=p(!1);issue=p(null);participants=p([]);cancel=D();confirm=D();selectedOwnerUserId=b(null);title=b("");disabledSubmit=y(()=>!this.selectedOwnerUserId()?.trim()||!this.title().trim());constructor(){R(()=>{this.open()&&(this.selectedOwnerUserId.set(this.participants()[0]?.userId??null),this.title.set(""))})}confirmSubmit(){let t=this.selectedOwnerUserId()?.trim(),e=this.title().trim();!t||!e||this.confirm.emit({ownerUserId:t,title:e})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-create-branch-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],issue:[1,"issue"],participants:[1,"participants"]},outputs:{cancel:"cancel",confirm:"confirm"},decls:3,vars:6,consts:[[3,"nzOnCancel","nzOnOk","nzVisible","nzWidth","nzClosable","nzMaskClosable","nzOkLoading","nzOkDisabled"],[4,"nzModalTitle"],[4,"nzModalContent"],[1,"modal-title"],[1,"modal-title__main"],["nzType","plus-circle","nzTheme","twotone"],[1,"modal-subtitle"],[1,"label"],["nzShowSearch","","nzPlaceHolder","\u9009\u62E9\u8981\u8D1F\u8D23\u8BE5\u5206\u652F\u7684\u534F\u4F5C\u4EBA",1,"participant-selector",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"],["nz-input","","placeholder","\u4F8B\u5982\uFF1A\u6392\u67E5\u524D\u7AEF\u6E32\u67D3",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(r(0,"nz-modal",0),_("nzOnCancel",function(){return i.cancel.emit()})("nzOnOk",function(){return i.confirmSubmit()}),S(1,Vo,7,1,"div",1)(2,jo,9,2,"ng-container",2),a()),e&2&&m("nzVisible",i.open())("nzWidth",680)("nzClosable",!0)("nzMaskClosable",!1)("nzOkLoading",i.busy())("nzOkDisabled",i.disabledSubmit())},dependencies:[B,ae,Y,G,A,L,X,le,Ee,Ke,Ye,j,re,oe,se,Q,ee],styles:[".participant-selector[_ngcontent-%COMP%]{width:100%}.modal-title__main[_ngcontent-%COMP%]{font-weight:700}.modal-title[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-subtitle[_ngcontent-%COMP%]{margin-top:10px;color:#999;font-size:14px;line-height:20px}.label[_ngcontent-%COMP%]{font-weight:700;font-size:.875rem;margin:12px 0 4px}.hint[_ngcontent-%COMP%]{font-size:small;color:gray;text-align:right;margin-top:8px}"],changeDetection:0})};function Uo(n,t){if(n&1&&(r(0,"div")(1,"div",4)(2,"span"),u(3,"\u6807\u8BB0\u89E3\u51B3"),a(),r(4,"div",5),u(5),a()()()),n&2){let e=c();s(5),x(" ",e.item()?e.item().title:"\u8BB0\u5F55\u5F53\u524D\u6D4B\u8BD5\u95EE\u9898\u7684\u89E3\u51B3\u8BF4\u660E\u3002"," ")}}function qo(n,t){if(n&1){let e=M();O(0),r(1,"form",6),_("ngSubmit",function(){g(e);let o=c();return f(o.submitForm())}),r(2,"textarea",7),_("ngModelChange",function(o){g(e);let l=c();return f(l.reason.set(o))}),a()(),F()}if(n&2){let e=c();s(2),m("ngModel",e.reason())}}function $o(n,t){if(n&1){let e=M();O(0),r(1,"button",8),_("click",function(){g(e);let o=c();return f(o.cancel.emit())}),u(2,"\u53D6\u6D88"),a(),r(3,"button",9),_("click",function(){g(e);let o=c();return f(o.submitForm())}),u(4," \u786E\u8BA4\u89E3\u51B3 "),a(),F()}if(n&2){let e=c();s(3),m("disabled",!e.reason().trim())("nzLoading",e.busy())}}var Gt=class n{open=p(!0);busy=p(!1);item=p(null);confirm=D();cancel=D();reason=b("\u5DF2\u89E3\u51B3");constructor(){R(()=>{this.open()&&this.reason.set("\u5DF2\u89E3\u51B3")})}submitForm(){let t=this.reason().trim();t&&this.confirm.emit(t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-resolve-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],item:[1,"item"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:4,vars:5,consts:[[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\u89E3\u51B3\u8BF4\u660E\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,i){e&1&&(r(0,"nz-modal",0),_("nzOnCancel",function(){return i.cancel.emit()})("nzOnOk",function(){return i.submitForm()}),S(1,Uo,6,1,"div",1)(2,qo,3,1,"ng-container",2)(3,$o,5,2,"ng-container",3),a()),e&2&&m("nzVisible",i.open())("nzWidth",640)("nzClosable",!0)("nzMaskClosable",!1)("nzOkLoading",i.busy())},dependencies:[j,re,Mt,oe,se,B,Nt,ae,Y,Dt,G,wt,A,K,L,H,X,le],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}"]})};function Wo(n,t){if(n&1&&(r(0,"div")(1,"div",3)(2,"span",4),z(3,"nz-icon",5),u(4," \u5F00\u59CB\u534F\u4F5C "),a(),r(5,"div",6),u(6),a()()()),n&2){let e=c();s(6),x(" ",e.issue()?e.issue().title:"\u586B\u5199\u672C\u6B21\u534F\u4F5C\u5185\u5BB9\u3002"," ")}}function Qo(n,t){if(n&1){let e=M();O(0),r(1,"p",7),u(2,"\u534F\u4F5C\u5185\u5BB9"),a(),r(3,"input",8),_("ngModelChange",function(o){g(e);let l=c();return f(l.title.set((o??"").toString()))}),a(),r(4,"div",9),u(5,"\u63D0\u4EA4\u540E\u4F1A\u81EA\u52A8\u521B\u5EFA\u5E76\u5F00\u59CB\u4F60\u7684\u534F\u4F5C\u5206\u652F\u3002"),a(),F()}if(n&2){let e=c();s(3),m("ngModel",e.title())}}var Xt=class n{open=p(!1);busy=p(!1);issue=p(null);cancel=D();confirm=D();title=b("");disabledSubmit=y(()=>!this.title().trim());constructor(){R(()=>{this.open()&&this.title.set("")})}confirmSubmit(){let t=this.title().trim();t&&this.confirm.emit({title:t})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-start-own-branch-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],issue:[1,"issue"]},outputs:{cancel:"cancel",confirm:"confirm"},decls:3,vars:6,consts:[[3,"nzOnCancel","nzOnOk","nzVisible","nzWidth","nzClosable","nzMaskClosable","nzOkLoading","nzOkDisabled"],[4,"nzModalTitle"],[4,"nzModalContent"],[1,"modal-title"],[1,"modal-title__main"],["nzType","play-circle","nzTheme","twotone"],[1,"modal-subtitle"],[1,"label"],["nz-input","","maxlength","80","placeholder","\u4F8B\u5982\uFF1A\u8865\u6293\u5305\u5B9A\u4F4D\u767B\u5F55\u5F02\u5E38",3,"ngModelChange","ngModel"],[1,"hint"]],template:function(e,i){e&1&&(r(0,"nz-modal",0),_("nzOnCancel",function(){return i.cancel.emit()})("nzOnOk",function(){return i.confirmSubmit()}),S(1,Wo,7,1,"div",1)(2,Qo,6,1,"ng-container",2),a()),e&2&&m("nzVisible",i.open())("nzWidth",640)("nzClosable",!0)("nzMaskClosable",!1)("nzOkLoading",i.busy())("nzOkDisabled",i.disabledSubmit())},dependencies:[B,ae,Y,Ii,G,A,L,X,le,j,re,oe,se,Q,ee],styles:[".modal-title__main[_ngcontent-%COMP%]{font-weight:700}.modal-title[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-subtitle[_ngcontent-%COMP%]{margin-top:10px;color:#999;font-size:14px;line-height:20px}.label[_ngcontent-%COMP%]{font-weight:700;font-size:.875rem;margin-bottom:4px}.hint[_ngcontent-%COMP%]{font-size:small;color:gray;text-align:right}"],changeDetection:0})};var Zt=class n{apiClient=v(At);projectContext=v(Ne);async issuePostReqWithPK(t){return this.apiClient.hubRequestWithPersonalToken({projectId:this.projectContext.currentProjectId(),method:"POST",path:`/issues/${t.issueId}/${t.action}`,payload:t.payload})}async issueDeleteReqWithPK(t){let e=this.projectContext.currentProjectId();return this.apiClient.hubRequestWithPersonalToken({projectId:e,method:"DELETE",path:`/issues/${t.issueId}/${t.action}/${t.deletedId}`})}static \u0275fac=function(e){return new(e||n)};static \u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"})};var it=class n{apiClient=v(At);issueTokenApi=v(Zt);async addAttachment(t,e){throw new Error("Method not implemented.")}uploadFile(t,e){throw new Error("Method not implemented.")}getBranches(t,e){return this.apiClient.hubRequestWithPrjId({projectId:t,path:`/issues/${e}/branches`})}createBranch(t,e){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"branches",payload:e})}startOwnBranch(t,e){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"branches/start-mine",payload:e})}startBranch(t,e){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:`branches/${e}/start`,payload:{}})}completeBranch(t,e,i={}){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:`branches/${e}/complete`,payload:i})}addParticipant(t,e){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"participants",payload:e})}getIssueParticipants(t,e){return this.apiClient.hubRequestWithPrjId({projectId:t,path:`/issues/${e}/participants`})}getIssueLogs(t,e){return this.apiClient.hubRequestWithPrjId({projectId:t,path:`/issues/${e}/logs`})}addComment(t,e){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"comments",payload:{content:e}})}createIssueComment(t,e,i=[]){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"comments",payload:{content:e,mentions:i}})}assignIssue(t,e){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"assign",payload:e})}claimIssue(t){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"claim",payload:{}})}startIssue(t){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"start",payload:{}})}waitUpdateIssue(t){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"wait-update",payload:{}})}resolveIssue(t,e){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"resolve",payload:{}})}reopenIssue(t){return this.issueTokenApi.issuePostReqWithPK({issueId:t,action:"reopen",payload:{}})}getIssuesList(t,e){return this.apiClient.hubRequestWithPrjId({projectId:t,path:"/issues",query:ce({},e)})}getIssueDetail(t,e){return this.apiClient.hubRequestWithPrjId({projectId:t,path:`/issues/${e}`})}getIssueAttachments(t,e){return this.apiClient.hubRequestWithPrjId({projectId:t,path:`/issues/${e}/attachments`})}getProjectMembers(t){return this.apiClient.hubRequestWithPrjId({projectId:t,path:`/projects/${t}/members`})}removeParticipant(t,e){return this.issueTokenApi.issueDeleteReqWithPK({issueId:t,action:"participants",deletedId:e})}static \u0275fac=function(e){return new(e||n)};static \u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"})};var Jt=class n{canEdit(t,e){return this.matchActor(e,t.reporterId)}canAssign(t,e,i=!1){return!!this.getAssignActionLabel(t,e,i)}getAssignActionLabel(t,e,i=!1){if(!e||!["open","reopened","in_progress","pending_update"].includes(t.status))return null;let o=this.matchActor(e,t.reporterId),l=this.matchActor(e,t.assigneeId),d=i;return!t.assigneeId&&(o||d)?"\u6307\u6D3E":t.assigneeId&&l?"\u8F6C\u6D3E":null}canManageParticipants(t,e,i=!1){return!["open","in_progress","pending_update"].includes(t.status)||!t.assigneeId?!1:i||this.matchActor(e,t.reporterId)||this.matchActor(e,t.assigneeId)}canClaim(t,e){return!!e?.userId&&!t.assigneeId&&["open","reopened","in_progress","pending_update"].includes(t.status)}canStart(t,e){return this.matchActor(e,t.assigneeId)}canResolve(t,e){return this.canStart(t,e)}canVerify(t,e){return this.matchActor(e,t.verifierId)||this.matchActor(e,t.reporterId)}canClose(t,e){return this.matchActor(e,t.reporterId)?["open","reopened","in_progress","verified"].includes(t.status):!1}canDeleteAttachment(t,e,i=!1){return i||this.matchActor(e,t.upload.uploaderId)}canCreateBranches(t,e,i){return["verified","closed"].includes(t.status)||i.length===0?!1:this.matchActor(e,t.assigneeId)}canStartBranchActions(t,e){return!["resolved","verified","closed"].includes(t.status)}canStartOwnBranch(t,e,i){return!t||!e||["resolved","verified","closed"].includes(t.status)||!i.some(l=>l.userId===e.userId)?!1:!this.matchActor(e,t.reporterId)}hasPermissionToRead(t){return!0}hasPermissionToComment(t){return t.scopes?.includes("issue:comment:write")??!1}hasPermissionToTransition(t){return t.scopes?.includes("issue:transition:write")??!1}hasPermissionToAssign(t){return t.scopes?.includes("issue:assign:write")??!1}hasPermissionToManageParticipants(t){return t.scopes?.includes("issue:participant:write")??!1}hasPermissionToBranchOperation(t){return t.scopes?.includes("issue:branch:write")??!1}matchActor(t,e){if(!t||!e)return!1;let i=t.userId?.trim();return e===i}static \u0275fac=function(e){return new(e||n)};static \u0275prov=me({token:n,factory:n.\u0275fac,providedIn:"root"})};var Re=class n{issueApi=v(it);userStore=v(Pe);permissionService=v(Jt);projectContext=v(Ne);issueState=b(null);logsState=b([]);commentsState=b([]);participantsState=b([]);attachmentsState=b([]);branchesState=b([]);loadingState=b(!1);busyState=b(!1);actionTickState=b(0);currentProjectId=this.projectContext.currentProjectId;issue=y(()=>this.issueState());logs=y(()=>this.logsState());branches=y(()=>this.branchesState());participants=y(()=>this.participantsState());attachments=y(()=>this.attachmentsState());members=y(()=>this.projectContext.currentProjectMembers());loading=y(()=>this.loadingState());busy=y(()=>this.busyState());actionTick=y(()=>this.actionTickState());branchSummary=y(()=>{let t=this.branchesState(),e=t.length,i=t.filter(d=>d.status==="done").length,o=t.filter(d=>d.status==="in_progress").length,l=t.filter(d=>d.status==="todo").length;return{total:e,done:i,inProgress:o,todo:l}});pendingBranchCount=y(()=>this.branchSummary().total-this.branchSummary().done);currentUser=this.userStore.currentUser;availableMembers=y(()=>{let e=this.issueState()?.assigneeId??null,i=new Set(this.participantsState().map(o=>o.userId));return this.members().filter(o=>!i.has(o.userId)&&o.userId!==e)});isProjectAdmin=y(()=>{let t=this.currentUser();if(!t)return!1;let e=this.members().find(i=>i.userId===t.userId);return!!e&&(e.roleCode==="project_admin"||e.isOwner)});canAssign=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToAssign(e)?!1:this.permissionService.canAssign(t,e,this.isProjectAdmin())});canManageParticipants=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToManageParticipants(e)?!1:this.permissionService.canManageParticipants(t,this.currentUser(),this.isProjectAdmin())});canClaim=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToTransition(e)?!1:this.permissionService.canClaim(t,this.currentUser())});canStart=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToTransition(e)?!1:!!t&&["open","reopened","pending_update"].includes(t.status)&&this.permissionService.canStart(t,this.currentUser())});canResolve=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToTransition(e)?!1:!!t&&["in_progress","pending_update"].includes(t.status)&&this.permissionService.canResolve(t,this.currentUser())});canPendingUpdate=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToTransition(e)?!1:!!t&&t.status==="in_progress"&&this.permissionService.canResolve(t,this.currentUser())});canVerify=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToTransition(e)?!1:!!t&&t.status==="resolved"&&this.permissionService.canVerify(t,this.currentUser())});canReopen=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToTransition(e)?!1:!!t&&["resolved","verified","closed"].includes(t.status)&&this.permissionService.canVerify(t,this.currentUser())});canComment=y(()=>{let t=this.issueState(),e=this.currentUser();return!(!t||!e||!this.permissionService.hasPermissionToComment(e))});canRead=y(()=>{let t=this.issueState(),e=this.currentUser();return!(!t||!e||!this.permissionService.hasPermissionToRead(e))});canClose=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToTransition(e)?!1:!!t&&["open","in_progress","resolved","verified","reopened"].includes(t.status)&&this.permissionService.canClose(t,this.currentUser())});canCreateBranches=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToBranchOperation(e)?!1:this.isProjectAdmin()||this.permissionService.canCreateBranches(t,this.currentUser(),this.participants())});canStartBranchActions=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToBranchOperation(e)?!1:!!t&&this.permissionService.canStartBranchActions(t,this.currentUser())});canStartOwnBranch=y(()=>{let t=this.issueState(),e=this.currentUser();return!t||!e||!this.permissionService.hasPermissionToBranchOperation(e)||!this.permissionService.canStartOwnBranch(t,e,this.participantsState())?!1:!this.branchesState().some(i=>i.ownerUserId===e?.userId&&i.status!=="done")});canCompleteBranch=y(()=>{let t=this.issueState(),e=this.currentUser();return!(!t||!e||!this.permissionService.hasPermissionToBranchOperation(e))});startActionLabel=y(()=>{let t=this.issueState();return t&&t.status==="pending_update"?"\u7EE7\u7EED\u5904\u7406":"\u5F00\u59CB\u5904\u7406"});assignActionLabel=y(()=>{let t=this.issueState();return t?this.permissionService.getAssignActionLabel(t,this.currentUser(),this.isProjectAdmin())??"\u91CD\u65B0\u6307\u6D3E":"\u91CD\u65B0\u6307\u6D3E"});load(t){let e=this.currentProjectId();e&&(this.userStore.ensureUserLoaded(),this.loadingState.set(!0),In({issue:this.issueApi.getIssueDetail(e,t),logs:this.issueApi.getIssueLogs(e,t),branches:this.issueApi.getBranches(e,t),participants:this.issueApi.getIssueParticipants(e,t),attachments:this.issueApi.getIssueAttachments(e,t)}).subscribe({next:({issue:i,logs:o,branches:l,participants:d,attachments:fe})=>{this.issueState.set(i),this.logsState.set(o.items),this.branchesState.set(l.items),this.participantsState.set(d.items),this.attachmentsState.set(fe.items),this.loadingState.set(!1)},error:()=>{this.loadingState.set(!1)}}))}postComment(t){let e=this.issueState()?.id;!e||!t.content.trim()||(this.busyState.set(!0),_e(this.issueApi.createIssueComment(e,t.content.trim(),t.mentions)).subscribe({next:i=>{this.commentsState.update(o=>[i,...o]),this.refreshLogs(e),this.busyState.set(!1)},error:()=>{this.busyState.set(!1)}}))}start(){this.runIssueAction(t=>this.issueApi.startIssue(t))}claim(){this.runIssueAction(t=>this.issueApi.claimIssue(t))}assign(t){t.assigneeId.trim()&&this.runIssueAction(e=>this.issueApi.assignIssue(e,t))}waitForUpdate(){this.runIssueAction(t=>this.issueApi.waitUpdateIssue(t))}resolve(t){this.runIssueAction(e=>this.issueApi.resolveIssue(e,t))}addParticipants(t){let e=this.issueState()?.id,i=t.userIds,o=[...new Set(i.map(l=>l.trim()).filter(Boolean))];!e||o.length===0||(this.busyState.set(!0),In(o.map(l=>this.issueApi.addParticipant(e,{userId:l}))).subscribe({next:l=>{this.participantsState.update(d=>[...d,...l]),this.refreshLogs(e),this.busyState.set(!1)},error:()=>{this.busyState.set(!1)}}))}removeParticipant(t){let e=this.issueState()?.id;e&&(this.busyState.set(!0),_e(this.issueApi.removeParticipant(e,t)).subscribe({next:()=>{this.participantsState.update(i=>i.filter(o=>o.id!==t)),this.refreshLogs(e),this.busyState.set(!1)},error:()=>{this.busyState.set(!1)}}))}createBranch(t){let e=this.issueState()?.id;!e||!t.ownerUserId.trim()||!t.title.trim()||(this.busyState.set(!0),_e(this.issueApi.createBranch(e,{ownerUserId:t.ownerUserId.trim(),title:t.title.trim()})).subscribe({next:i=>{this.branchesState.update(o=>[i,...o]),this.refreshLogs(e),this.busyState.set(!1)},error:()=>{this.busyState.set(!1)}}))}startOwnBranch(t){let e=this.issueState()?.id,i=t.title.trim();!e||!i||(this.busyState.set(!0),_e(this.issueApi.startOwnBranch(e,{title:i})).subscribe({next:()=>{this.refreshBranches(e),this.refreshLogs(e),this.busyState.set(!1)},error:()=>{this.busyState.set(!1)}}))}startBranch(t){let e=this.issueState()?.id;e&&(this.busyState.set(!0),_e(this.issueApi.startBranch(e,t)).subscribe({next:()=>{this.refreshBranches(e),this.refreshLogs(e),this.busyState.set(!1)},error:()=>{this.busyState.set(!1)}}))}completeBranch(t){let e=this.issueState()?.id;e&&(this.busyState.set(!0),_e(this.issueApi.completeBranch(e,t)).subscribe({next:()=>{this.refreshBranches(e),this.refreshLogs(e),this.busyState.set(!1)},error:()=>{this.busyState.set(!1)}}))}runIssueAction(t){let e=this.issueState()?.id;e&&(this.busyState.set(!0),t(e).then(i=>{this.issueState.set(i),this.busyState.set(!1),this.refreshLogs(e),this.actionTickState.update(o=>o+1)}).catch(i=>{this.busyState.set(!1)}))}refreshLogs(t){let e=this.currentProjectId();e&&_e(this.issueApi.getIssueLogs(e,t)).subscribe({next:i=>this.logsState.set(i.items)})}refreshBranches(t){let e=this.currentProjectId();e&&_e(this.issueApi.getBranches(e,t)).subscribe({next:i=>this.branchesState.set(i.items)})}setSelectedIssue(t){this.issueState.set(t)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=me({token:n,factory:n.\u0275fac})};var Ho=(n,t)=>t.value;function Ko(n,t){if(n&1&&z(0,"nz-step",3),n&2){let e=t.$implicit,i=c();m("nzTitle",e.label)("nzStatus",i.stepState(e.value))}}function Yo(n,t){if(n&1){let e=M();r(0,"button",7),_("click",function(){g(e);let o=c();return f(o.actionClick.emit("start"))}),u(1),a()}if(n&2){let e=c();s(),x(" ",e.startActionLabel()," ")}}function Go(n,t){if(n&1){let e=M();r(0,"button",7),_("click",function(){g(e);let o=c();return f(o.actionClick.emit("claim"))}),u(1," \u8BA4\u9886 "),a()}}function Xo(n,t){if(n&1){let e=M();r(0,"button",7),_("click",function(){g(e);let o=c();return f(o.actionClick.emit("assign"))}),u(1),a()}if(n&2){let e=c();s(),x(" ",e.assignActionLabel()," ")}}function Zo(n,t){if(n&1){let e=M();r(0,"button",7),_("click",function(){g(e);let o=c();return f(o.actionClick.emit("add_participants"))}),u(1," \u6DFB\u52A0\u534F\u4F5C\u4EBA "),a()}}function Jo(n,t){if(n&1){let e=M();r(0,"button",7),_("click",function(){g(e);let o=c();return f(o.actionClick.emit("wait-update"))}),u(1," \u6807\u8BB0\u5F85\u63D0\u6D4B "),a()}}function es(n,t){if(n&1){let e=M();r(0,"button",8),_("click",function(){g(e);let o=c();return f(o.actionClick.emit("resolve"))}),u(1," \u6807\u8BB0\u89E3\u51B3 "),a()}}var en=class n{issue=p.required();logs=p([]);canStart=p(!1);canClaim=p(!1);canAssign=p(!1);canManageParticipants=p(!1);canResolve=p(!1);canPendingUpdate=p(!1);canVerify=p(!1);canReopen=p(!1);canClose=p(!1);assignActionLabel=p("\u91CD\u65B0\u6307\u6D3E");startActionLabel=p("\u5F00\u59CB\u5904\u7406");actionClick=D();excutedStatuses=y(()=>{let t=new Set,e=this.latestOpenAt();return this.logs().forEach((i,o)=>{e!==null&&Date.parse(i.createdAt)<e||t.add(i.toStatus)}),t.has("resolved")&&t.add("pending_update"),t});stepsOptions=et.filter(t=>!(t.value==="reopened"||t.value===""));stepState(t){return this.issue().status===t||t==="open"&&this.issue().status==="reopened"?"process":this.excutedStatuses().has(t)||t==="open"&&this.excutedStatuses().has("reopened")?"finish":"wait"}getStepIndex(t){return t==="reopened"?0:t==="closed"?4:Ji.findIndex(i=>i===t)??-1}latestOpenAt(){let t=null;for(let e of this.logs()){let i=e.actionType==="reopen"&&e.toStatus==="reopened",o=e.actionType==="create"&&e.toStatus==="open";if(!i&&!o)continue;let l=Date.parse(e.createdAt);Number.isNaN(l)||(t===null||l>t)&&(t=l)}return t}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-action-area"]],inputs:{issue:[1,"issue"],logs:[1,"logs"],canStart:[1,"canStart"],canClaim:[1,"canClaim"],canAssign:[1,"canAssign"],canManageParticipants:[1,"canManageParticipants"],canResolve:[1,"canResolve"],canPendingUpdate:[1,"canPendingUpdate"],canVerify:[1,"canVerify"],canReopen:[1,"canReopen"],canClose:[1,"canClose"],assignActionLabel:[1,"assignActionLabel"],startActionLabel:[1,"startActionLabel"]},outputs:{actionClick:"actionClick"},decls:13,vars:7,consts:[[1,"action-area"],[1,"steps"],["nzSize","small",3,"nzCurrent"],[3,"nzTitle","nzStatus"],[1,"action-btns"],["nz-button","","nzType","default",1,"detail-header__action-btn"],["nz-button","","nzType","primary",1,"detail-header__action-btn"],["nz-button","","nzType","default",1,"detail-header__action-btn",3,"click"],["nz-button","","nzType","primary",1,"detail-header__action-btn",3,"click"]],template:function(e,i){e&1&&(r(0,"app-detail-item-card")(1,"div",0)(2,"div",1)(3,"nz-steps",2),w(4,Ko,1,2,"nz-step",3,Ho),a()(),r(6,"div",4),C(7,Yo,2,1,"button",5),C(8,Go,2,0,"button",5),C(9,Xo,2,1,"button",5),C(10,Zo,2,0,"button",5),C(11,Jo,2,0,"button",5),C(12,es,2,0,"button",6),a()()()),e&2&&(s(3),m("nzCurrent",i.getStepIndex(i.issue().status)),s(),N(i.stepsOptions),s(3),h(i.canStart()?7:-1),s(),h(i.canClaim()&&!i.canAssign()?8:-1),s(),h(i.canAssign()?9:-1),s(),h(i.canManageParticipants()?10:-1),s(),h(i.canPendingUpdate()?11:-1),s(),h(i.canResolve()?12:-1))},dependencies:[Wi,$i,qi,A,K,L,H,j,te],styles:[".action-btns[_ngcontent-%COMP%]{margin-top:20px;display:flex;gap:10px}[_nghost-%COMP%] .ant-steps-item-title:after{background-color:#d3d3d3!important}"]})};var ts=["videoTpl"];function ns(n,t){n&1&&u(0," \u56FE\u7247 ")}function is(n,t){n&1&&u(0," \u89C6\u9891 ")}function os(n,t){n&1&&u(0," \u6587\u4EF6 ")}function ss(n,t){if(n&1&&z(0,"img",3),n&2){let e=c();m("nzSrc",e.item().url)("alt",e.item().name),Gn("data-preview-id",e.item().id)}}function rs(n,t){if(n&1&&z(0,"video",4),n&2){let e=c();m("src",e.item().url,Ue)}}function as(n,t){if(n&1&&(r(0,"div",5),z(1,"span",11),r(2,"span",12),u(3),a()()),n&2){let e=c();s(3),T(e.item().name)}}function ls(n,t){if(n&1&&(r(0,"span"),u(1),a()),n&2){let e=c();s(),T(e.item().meta)}}function cs(n,t){n&1&&(r(0,"span",10),z(1,"span",13),a())}function ms(n,t){n&1&&(r(0,"span",10),z(1,"span",14),a())}function us(n,t){n&1&&(r(0,"span",10),z(1,"span",15),a())}function ps(n,t){if(n&1&&z(0,"video",16),n&2){let e=c();m("src",e.previewUrl(),Ue)}}var tn=class n{modal=v(Qe);item=p.required();videoTpl;previewUrl=b("");openPreview(t){if(t.kind==="image"){document.querySelector(`img[data-preview-id="${t.id}"]`)?.click();return}t.kind==="video"&&(this.previewUrl.set(t.url),this.modal.create({nzContent:this.videoTpl,nzFooter:null,nzWidth:"80vw",nzBodyStyle:{padding:"0",background:"#000"},nzCentered:!0})),t.kind==="file"&&this.downloadFile(t)}downloadFile(t){let e=document.createElement("a");e.href=t.url,e.download=t.name,e.target="_blank",e.click(),e.remove()}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-attachment-viewer"]],viewQuery:function(e,i){if(e&1&&ye(ts,7),e&2){let o;k(o=V())&&(i.videoTpl=o.first)}},inputs:{item:[1,"item"]},decls:19,vars:6,consts:[["videoTpl",""],[1,"attachment-viewer__item"],[1,"attachment-viewer__type"],["nz-image","",1,"attachment-viewer__image",3,"nzSrc","alt"],[1,"attachment-viewer__video",3,"src"],[1,"attachment-viewer__file"],[1,"attachment-viewer__info"],[1,"attachment-viewer__name",3,"title"],[1,"attachment-viewer__meta"],[1,"attachment-viewer__mask",3,"click"],[1,"attachment-viewer__preview"],["nz-icon","","nzType","file"],[1,"attachment-viewer__file-name"],["nz-icon","","nzType","eye"],["nz-icon","","nzType","play-circle"],["nz-icon","","nzType","download"],["controls","","autoplay","",2,"width","100%","height","100%","background","#000",3,"src"]],template:function(e,i){if(e&1){let o=M();r(0,"div",1)(1,"div",2),C(2,ns,1,0)(3,is,1,0)(4,os,1,0),a(),C(5,ss,1,3,"img",3)(6,rs,1,1,"video",4)(7,as,4,1,"div",5),r(8,"div",6)(9,"div",7),u(10),a(),r(11,"div",8),C(12,ls,2,1,"span"),a()(),r(13,"div",9),_("click",function(){return g(o),f(i.openPreview(i.item()))}),C(14,cs,2,0,"span",10)(15,ms,2,0,"span",10)(16,us,2,0,"span",10),a(),S(17,ps,1,1,"ng-template",null,0,Z),a()}e&2&&(s(2),h(i.item().kind==="image"?2:i.item().kind==="video"?3:4),s(3),h(i.item().kind==="image"?5:i.item().kind==="video"?6:7),s(4),m("title",i.item().name),s(),x(" ",i.item().name," "),s(2),h(i.item().meta?12:-1),s(2),h(i.item().kind==="image"?14:i.item().kind==="video"?15:i.item().kind==="file"?16:-1))},dependencies:[Je,Ze,Q,ee,j],styles:[".attachment-viewer__item[_ngcontent-%COMP%]{margin:6px;position:relative;height:120px;border-radius:8px;overflow:hidden;background:#f5f5f5}.attachment-viewer__item[_ngcontent-%COMP%] .attachment-viewer__type[_ngcontent-%COMP%]{position:absolute;top:8px;left:8px;z-index:2;padding:4px 8px;font-size:.75rem;line-height:1;border-radius:4px;color:#fff;background:#1890ff;pointer-events:none}.attachment-viewer__image[_ngcontent-%COMP%], .attachment-viewer__video[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;display:block}.attachment-viewer__video[_ngcontent-%COMP%]{background:#000}.attachment-viewer__file[_ngcontent-%COMP%]{width:100%;height:100%;display:grid;place-content:center;gap:6px;text-align:center;padding:8px;font-size:12px}.attachment-viewer__file-name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-viewer__info[_ngcontent-%COMP%]{position:absolute;left:0;right:0;bottom:0;height:40%;display:flex;flex-direction:column;justify-content:flex-end;padding:8px;box-sizing:border-box;color:#fff;background:linear-gradient(to top,rgba(0,0,0,.85),rgba(0,0,0,.4),transparent)}.attachment-viewer__name[_ngcontent-%COMP%]{font-size:12px;font-weight:600;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-viewer__meta[_ngcontent-%COMP%]{font-size:11px;opacity:.85;display:flex;gap:8px}.attachment-viewer__mask[_ngcontent-%COMP%]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#00000080;opacity:0;transition:opacity .2s;cursor:pointer}.attachment-viewer__item[_ngcontent-%COMP%]:hover .attachment-viewer__mask[_ngcontent-%COMP%]{opacity:1}.attachment-viewer__preview[_ngcontent-%COMP%]{font-size:18px;color:#fff}"]})};function ds(n,t){if(n&1&&z(0,"app-attachment-viewer",1),n&2){let e=t.$implicit;m("item",e)}}var nn=class n{attachments=p([]);projectId=p("");members=p([]);apiBaseUrl="";attachmentPreviewItems(){return this.attachments().map(t=>{let e=(t.upload.mimeType||"").toLowerCase(),i=this.resolveUploaderName(t.upload.uploaderId,t.upload.uploaderName),o=e.startsWith("image/")?"image":e.startsWith("video/")?"video":"file";return{id:t.id,name:t.upload.originalName,url:this.fileUrl(t),kind:o,meta:`${i} \xB7 ${t.upload.mimeType||"file"} \xB7 ${this.formatSize(t.upload.fileSize)}`}})}fileUrl(t){return`/api/client/hub-token/projects/${this.projectId()}/issues/${t.issueId}/attachments/${t.id}/raw`}formatSize(t){return!Number.isFinite(t)||t<0?"-":t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`}resolveUploaderName(t,e){let i=e?.trim();if(i)return i;let o=t?.trim();return o?this.members().find(l=>l.userId===o)?.displayName||o:"\u672A\u77E5\u4E0A\u4F20\u8005"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-attachment-area"]],inputs:{attachments:[1,"attachments"],projectId:[1,"projectId"],members:[1,"members"]},decls:3,vars:2,consts:[["title","\u9644\u4EF6","emptyText","\u5F53\u524D\u8FD8\u6CA1\u6709\u9644\u4EF6",3,"emptyStatus","count"],[3,"item"]],template:function(e,i){e&1&&(r(0,"app-detail-item-card",0),w(1,ds,1,1,"app-attachment-viewer",1,ht),a()),e&2&&(m("emptyStatus",i.attachments().length<=0)("count",i.attachments().length),s(),N(i.attachmentPreviewItems()))},dependencies:[tn,te],styles:[".empty[_ngcontent-%COMP%]{text-align:center;color:gray}"]})};var on={bug:"\u7F3A\u9677",feature:"\u65B0\u529F\u80FD",change:"\u9700\u6C42\u53D8\u66F4",improvement:"\u6539\u8FDB",task:"\u4EFB\u52A1",test:"\u6D4B\u8BD5\u8BB0\u5F55"},sn={bug:"red",feature:"green",change:"blue",improvement:"cyan",task:"geekblue",test:"lime"};var ao=[{type:"bug",title:"\u95EE\u9898\u63CF\u8FF0"},{type:"feature",title:"\u65B0\u529F\u80FD\u63CF\u8FF0"},{type:"change",title:"\u9700\u6C42\u53D8\u66F4\u63CF\u8FF0"},{type:"improvement",title:"\u6539\u8FDB\u63CF\u8FF0"},{type:"task",title:"\u4EFB\u52A1\u63CF\u8FF0"},{type:"test",title:"\u6D4B\u8BD5\u8BB0\u5F55"}];var rn=class n{issue=p.required();getPriorityLabel(t){return qt[t]}getPriorityColor(t){return Wt[t]}getStatusLabel(t){return jt[t]}getStatusColor(t){return Ut[t]}getTypeLabel(t){return on[t]}getTypeColor(t){return sn[t]}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-base-info-area"]],inputs:{issue:[1,"issue"]},decls:27,vars:17,consts:[[3,"title"],["nzBordered","","nzSize","small",3,"nzColumn"],["nzTitle","\u63D0\u62A5\u4EBA"],["nzTitle","\u8D1F\u8D23\u4EBA"],["nzTitle","\u9A8C\u6536\u4EBA"],["nzTitle","\u72B6\u6001"],[3,"nzColor"],["nzTitle","\u4F18\u5148\u7EA7"],["nzTitle","\u7C7B\u578B"],["nzTitle","\u6A21\u5757"],["nzTitle","\u73AF\u5883"],["nzTitle","\u521B\u5EFA\u65F6\u95F4"]],template:function(e,i){e&1&&(r(0,"app-detail-item-card",0)(1,"nz-descriptions",1)(2,"nz-descriptions-item",2)(3,"b"),u(4),a()(),r(5,"nz-descriptions-item",3)(6,"b"),u(7),a()(),r(8,"nz-descriptions-item",4)(9,"b"),u(10),a()(),r(11,"nz-descriptions-item",5)(12,"nz-tag",6),u(13),a()(),r(14,"nz-descriptions-item",7)(15,"nz-tag",6),u(16),a()(),r(17,"nz-descriptions-item",8)(18,"nz-tag",6),u(19),a()(),r(20,"nz-descriptions-item",9),u(21),a(),r(22,"nz-descriptions-item",10),u(23),a(),r(24,"nz-descriptions-item",11),u(25),ve(26,"date"),a()()()),e&2&&(m("title","\u57FA\u7840\u4FE1\u606F"),s(),m("nzColumn",1),s(3),T(i.issue().reporterName),s(3),T(i.issue().assigneeName||"-"),s(3),T(i.issue().verifierName||"-"),s(2),m("nzColor",i.getStatusColor(i.issue().status)),s(),x(" ",i.getStatusLabel(i.issue().status)," "),s(2),m("nzColor",i.getPriorityColor(i.issue().priority)),s(),x(" ",i.getPriorityLabel(i.issue().priority)," "),s(2),m("nzColor",i.getTypeColor(i.issue().type)),s(),x(" ",i.getTypeLabel(i.issue().type)," "),s(2),x(" ",i.issue().moduleCode||"-"," "),s(2),x(" ",i.issue().environmentCode||"-"," "),s(2),x(" ",ze(26,14,i.issue().createdAt,"yyyy-MM-dd HH:mm")," "))},dependencies:[di,Yi,Ki,Hi,Xe,Ge,W,te,De],styles:["[_nghost-%COMP%] .ant-descriptions-item-content, [_nghost-%COMP%] .ant-descriptions-item-label{font-size:.875rem}"]})};var fs=(n,t)=>t.id;function _s(n,t){if(n&1){let e=M();r(0,"button",4),_("click",function(){g(e);let o=c();return f(o.startOwn.emit())}),u(1," \u5F00\u59CB "),a()}if(n&2){let e=c();m("nzLoading",e.busy())}}function Cs(n,t){if(n&1){let e=M();r(0,"button",5),_("click",function(){g(e);let o=c();return f(o.create.emit())}),u(1," \u65B0\u5EFA "),a()}if(n&2){let e=c();m("disabled",e.busy())}}function hs(n,t){if(n&1&&(r(0,"div",14),u(1),a()),n&2){let e=c().$implicit;s(),T(e.summary)}}function ys(n,t){if(n&1){let e=M();r(0,"button",18),_("click",function(){g(e);let o=c().$implicit,l=c(2);return f(l.startBranch.emit(o.id))}),u(1," \u5F00\u59CB\u5904\u7406 "),a()}if(n&2){let e=c(3);m("nzLoading",e.busy())}}function vs(n,t){if(n&1){let e=M();r(0,"button",19),_("nzOnConfirm",function(){g(e);let o=c().$implicit,l=c(2);return f(l.completeBranch.emit(o.id))}),u(1," \u6807\u8BB0\u5B8C\u6210 "),a()}if(n&2){let e=c(3);m("nzLoading",e.busy())}}function zs(n,t){if(n&1&&(r(0,"article",8)(1,"div",9)(2,"div",10),u(3),a(),r(4,"nz-tag",11),u(5),a()(),r(6,"div",12)(7,"span",13),u(8),a(),r(9,"span"),u(10),a(),r(11,"span"),u(12),ve(13,"date"),a()(),C(14,hs,2,1,"div",14),r(15,"div",15),C(16,ys,2,1,"button",16),C(17,vs,2,1,"button",17),a()()),n&2){let e=t.$implicit,i=c(2);s(3),T(e.title),s(),m("nzColor",i.branchStatusColor(e.status)),s(),x(" ",i.branchStatusLabel(e.status)," "),s(3),T(e.ownerUserName),s(2),x("\u7531 ",e.createdByName," \u521B\u5EFA"),s(2),x("",ze(13,9,e.updatedAt,"MM-dd HH:mm")," \u66F4\u65B0"),s(2),h(e.summary?14:-1),s(2),h(i.canStartActions()&&i.isMine(e)&&e.status==="todo"?16:-1),s(),h(i.canCompleteBranch()&&i.isMine(e)&&e.status==="in_progress"?17:-1)}}function bs(n,t){if(n&1&&(r(0,"div",6),u(1),a(),r(2,"div",7),w(3,zs,18,12,"article",8,fs),a()),n&2){let e=c();s(),T(e.branchSummaryText()),s(2),N(e.branches())}}var an=class n{userStore=v(Pe);branches=p([]);summary=p();canCreate=p(!1);canStartActions=p(!1);canStartOwn=p(!1);canCompleteBranch=p(!1);busy=p(!1);create=D();startOwn=D();startBranch=D();completeBranch=D();branchSummaryText=y(()=>{let t=this.summary();if(!t)return"";if(t.total===0)return"\u5F53\u524D\u6CA1\u6709\u534F\u4F5C\u5206\u652F";let e=[`\u5DF2\u5B8C\u6210 ${t.done}`];return t.inProgress>0&&e.push(`\u5904\u7406\u4E2D ${t.inProgress}`),t.todo>0&&e.push(`\u5F85\u5F00\u59CB ${t.todo}`),e.join("\uFF0C")});isMine(t){return this.userStore.currentUserId()===t.ownerUserId}branchStatusLabel(t){return to[t]??t}branchStatusColor(t){return eo[t]??"default"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-branches"]],inputs:{branches:[1,"branches"],summary:[1,"summary"],canCreate:[1,"canCreate"],canStartActions:[1,"canStartActions"],canStartOwn:[1,"canStartOwn"],canCompleteBranch:[1,"canCompleteBranch"],busy:[1,"busy"]},outputs:{create:"create",startOwn:"startOwn",startBranch:"startBranch",completeBranch:"completeBranch"},decls:5,vars:5,consts:[["title","\u534F\u4F5C\u5206\u652F","emptyText","\u5F53\u524D\u8FD8\u6CA1\u6709\u534F\u4F5C\u5206\u652F",3,"emptyStatus","count"],["actions","",2,"display","flex","gap","6px"],["nz-button","","nz-tooltip","\u70B9\u51FB\u5F00\u59CB\u534F\u4F5C","nzType","default","nzSize","small",3,"nzLoading"],["nz-button","","nz-tooltip","\u70B9\u51FB\u65B0\u5EFA\u534F\u4F5C\u5206\u652F","nzType","primary","nzSize","small",1,"create-btn",3,"disabled"],["nz-button","","nz-tooltip","\u70B9\u51FB\u5F00\u59CB\u534F\u4F5C","nzType","default","nzSize","small",3,"click","nzLoading"],["nz-button","","nz-tooltip","\u70B9\u51FB\u65B0\u5EFA\u534F\u4F5C\u5206\u652F","nzType","primary","nzSize","small",1,"create-btn",3,"click","disabled"],[1,"branch-summary"],[1,"branch-list"],[1,"branch-card"],[1,"branch-card__header"],[1,"branch-card__title"],[3,"nzColor"],[1,"branch-card__meta"],[1,"branch-card__owner"],[1,"branch-card__summary"],[1,"branch-card__actions"],["nz-button","","nzType","default","nzSize","small",1,"action-btn",3,"nzLoading"],["nz-button","","nzType","primary","nzSize","small","nz-popconfirm","","nzPopconfirmTitle","\u786E\u8BA4\u6807\u8BB0\u8BE5\u534F\u4F5C\u5206\u652F\u5DF2\u5B8C\u6210\uFF1F","nzPopconfirmOkText","\u5B8C\u6210","nzPopconfirmCancelText","\u53D6\u6D88",1,"action-btn",3,"nzLoading"],["nz-button","","nzType","default","nzSize","small",1,"action-btn",3,"click","nzLoading"],["nz-button","","nzType","primary","nzSize","small","nz-popconfirm","","nzPopconfirmTitle","\u786E\u8BA4\u6807\u8BB0\u8BE5\u534F\u4F5C\u5206\u652F\u5DF2\u5B8C\u6210\uFF1F","nzPopconfirmOkText","\u5B8C\u6210","nzPopconfirmCancelText","\u53D6\u6D88",1,"action-btn",3,"nzOnConfirm","nzLoading"]],template:function(e,i){e&1&&(r(0,"app-detail-item-card",0)(1,"div",1),C(2,_s,2,1,"button",2),C(3,Cs,2,1,"button",3),a(),C(4,bs,5,1),a()),e&2&&(m("emptyStatus",!i.branches().length)("count",i.branches().length),s(2),h(i.canStartActions()&&i.canStartOwn()?2:-1),s(),h(i.canCreate()?3:-1),s(),h(i.branches().length>0?4:-1))},dependencies:[te,A,K,L,H,Xe,Ge,Bt,Ft,W,De],styles:[".create-btn[_ngcontent-%COMP%]{margin-right:6px}.branch-summary[_ngcontent-%COMP%]{margin:-2px 0 6px;font-size:.875rem;color:gray}.branch-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:10px}.branch-list[_ngcontent-%COMP%] .branch-card[_ngcontent-%COMP%]{padding:12px;border-radius:10px;background-color:#fafafa;width:100%;transition:all .3s ease;border:1px solid #f0f0f0}.branch-list[_ngcontent-%COMP%] .branch-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 16px 10px -8px #0020401f}.branch-list[_ngcontent-%COMP%] .branch-card[_ngcontent-%COMP%] .branch-card__header[_ngcontent-%COMP%]{display:flex}.branch-list[_ngcontent-%COMP%] .branch-card[_ngcontent-%COMP%] .branch-card__header[_ngcontent-%COMP%] .branch-card__title[_ngcontent-%COMP%]{margin-right:4px;font-weight:600;flex-grow:1}.branch-list[_ngcontent-%COMP%] .branch-card[_ngcontent-%COMP%] .branch-card__meta[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:2px;margin:4px 0 8px;font-size:.75rem;color:gray}.branch-list[_ngcontent-%COMP%] .branch-card[_ngcontent-%COMP%] .branch-card__meta[_ngcontent-%COMP%] .branch-card__owner[_ngcontent-%COMP%]{color:#1677ff;font-weight:700}.branch-list[_ngcontent-%COMP%] .branch-card[_ngcontent-%COMP%] .branch-card__summary[_ngcontent-%COMP%]{margin-top:10px;font-size:.875rem}.branch-list[_ngcontent-%COMP%] .branch-card[_ngcontent-%COMP%] .branch-card__actions[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%] .ant-tag{height:1.6rem}"]})};var xs=(n,t)=>t.id;function Ss(n,t){if(n&1){let e=M();r(0,"button",8),_("nzOnConfirm",function(){g(e);let o=c().$implicit,l=c();return f(l.removeParticipant.emit(o.id))}),z(1,"nz-icon",9),a()}if(n&2){let e=c(2);m("nzLoading",e.busy())}}function Ms(n,t){if(n&1&&(r(0,"div",3)(1,"div",4),z(2,"nz-avatar",5),r(3,"span",6),u(4),a()(),C(5,Ss,2,1,"button",7),a()),n&2){let e=t.$implicit,i=c();qe("width",i.canManageParticipants()?"100%":"auto"),s(2),m("nzText",e.userName.charAt(0)),s(2),T(e.userName),s(),h(i.canManageParticipants()?5:-1)}}var ln=class n{issue=p.required();participants=p([]);members=p([]);availableMembers=p([]);canAssign=p(!1);canManageParticipants=p(!1);busy=p(!1);assign=D();removeParticipant=D();selectedAssignee=b(null);static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-collaborators-area"]],inputs:{issue:[1,"issue"],participants:[1,"participants"],members:[1,"members"],availableMembers:[1,"availableMembers"],canAssign:[1,"canAssign"],canManageParticipants:[1,"canManageParticipants"],busy:[1,"busy"]},outputs:{assign:"assign",removeParticipant:"removeParticipant"},decls:4,vars:2,consts:[["title","\u5408\u4F5C\u4EBA","emptyText","\u5F53\u524D\u8FD8\u6CA1\u6709\u5408\u4F5C\u4EBA",3,"emptyStatus","count"],[1,"participant-list"],[1,"participant-item",3,"width"],[1,"participant-item"],[1,"participant-chip"],["nzSize","small",2,"background-color","#1890ff",3,"nzText"],[1,"participant-item__name"],["nz-button","","nzType","default","nzShape","circle","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u79FB\u9664\u8BE5\u53C2\u4E0E\u4EBA\u5417\uFF1F","nzPopconfirmOkText","\u79FB\u9664","nzPopconfirmCancelText","\u53D6\u6D88","nz-tooltip","\u79FB\u9664\u53C2\u4E0E\u4EBA","nzSize","small",1,"remove-btn",3,"nzLoading"],["nz-button","","nzType","default","nzShape","circle","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u79FB\u9664\u8BE5\u53C2\u4E0E\u4EBA\u5417\uFF1F","nzPopconfirmOkText","\u79FB\u9664","nzPopconfirmCancelText","\u53D6\u6D88","nz-tooltip","\u79FB\u9664\u53C2\u4E0E\u4EBA","nzSize","small",1,"remove-btn",3,"nzOnConfirm","nzLoading"],["nzType","minus"]],template:function(e,i){e&1&&(r(0,"app-detail-item-card",0)(1,"div",1),w(2,Ms,6,5,"div",2,xs),a()()),e&2&&(m("emptyStatus",i.participants().length<=0)("count",i.participants().length),s(2),N(i.participants()))},dependencies:[B,A,K,L,H,Ee,Q,ee,Et,Pt,Bt,Ft,Oe,Ae,te],styles:[".empty[_ngcontent-%COMP%]{text-align:center;color:gray}.participant-list[_ngcontent-%COMP%]{width:100%;display:flex;flex-wrap:wrap;gap:20px 8px;padding:10px 0}.participant-item[_ngcontent-%COMP%]{height:20px;display:flex;justify-content:space-between;gap:12px;align-items:center}.participant-chip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border-radius:999px;background:#fafafa;border:1px solid #f0f0f0}.participant-item__name[_ngcontent-%COMP%]{font-size:.875rem;font-weight:600}.remove-btn[_ngcontent-%COMP%]{margin-right:8px}"],changeDetection:0})};var Ds=["*"];function ws(n,t){n&1&&P(0)}var Ns=[[["nz-avatar","nz-comment-avatar",""]],[["nz-comment-content"]],"*"],Ps=["nz-avatar[nz-comment-avatar]","nz-comment-content","*"];function Es(n,t){if(n&1&&(O(0),u(1),F()),n&2){let e=c(2);s(),T(e.nzAuthor)}}function As(n,t){if(n&1&&(r(0,"span",4),S(1,Es,2,1,"ng-container",8),a()),n&2){let e=c();s(),m("nzStringTemplateOutlet",e.nzAuthor)}}function Os(n,t){if(n&1&&(O(0),u(1),F()),n&2){let e=c(2);s(),T(e.nzDatetime)}}function Fs(n,t){if(n&1&&(r(0,"span",5),S(1,Os,2,1,"ng-container",8),a()),n&2){let e=c();s(),m("nzStringTemplateOutlet",e.nzDatetime)}}function Bs(n,t){}function Ls(n,t){if(n&1&&(r(0,"li")(1,"span"),S(2,Bs,0,0,"ng-template",9),a()()),n&2){let e=t.$implicit;s(2),m("nzCommentActionHost",e.content)}}function ks(n,t){if(n&1&&(r(0,"ul",6),w(1,Ls,3,1,"li",null,ne),a()),n&2){let e=c();s(),N(e.actions)}}var cn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=he({type:n,selectors:[["nz-avatar","nz-comment-avatar",""]],exportAs:["nzCommentAvatar"]})}return n})(),mn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=he({type:n,selectors:[["nz-comment-content"],["","nz-comment-content",""]],hostAttrs:[1,"ant-comment-content-detail"],exportAs:["nzCommentContent"]})}return n})(),Vs=(()=>{class n extends oi{nzCommentActionHost;ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}ngAfterViewInit(){this.attach(this.nzCommentActionHost)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Qn(n)))(o||n)}})();static \u0275dir=he({type:n,selectors:[["","nzCommentActionHost",""]],inputs:{nzCommentActionHost:"nzCommentActionHost"},exportAs:["nzCommentActionHost"],features:[Yn]})}return n})(),Rs=(()=>{class n{implicitContent;viewContainerRef=v(_t);contentPortal=null;get content(){return this.contentPortal}ngOnInit(){this.contentPortal=new xt(this.implicitContent,this.viewContainerRef)}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-comment-action"]],viewQuery:function(i,o){if(i&1&&ye(Se,7),i&2){let l;k(l=V())&&(o.implicitContent=l.first)}},exportAs:["nzCommentAction"],ngContentSelectors:Ds,decls:1,vars:0,template:function(i,o){i&1&&(q(),Ct(0,ws,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return n})(),mt=(()=>{class n{destroyRef=v(xe);cdr=v(Me);directionality=v($e);nzAuthor;nzDatetime;dir="ltr";actions;ngOnInit(){this.directionality.change?.pipe(ge(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-comment"]],contentQueries:function(i,o,l){if(i&1&&ie(l,Rs,4),i&2){let d;k(d=V())&&(o.actions=d)}},hostVars:4,hostBindings:function(i,o){i&2&&de("ant-comment",!0)("ant-comment-rtl",o.dir==="rtl")},inputs:{nzAuthor:"nzAuthor",nzDatetime:"nzDatetime"},exportAs:["nzComment"],ngContentSelectors:Ps,decls:11,vars:3,consts:[[1,"ant-comment-inner"],[1,"ant-comment-avatar"],[1,"ant-comment-content"],[1,"ant-comment-content-author"],[1,"ant-comment-content-author-name"],[1,"ant-comment-content-author-time"],[1,"ant-comment-actions"],[1,"ant-comment-nested"],[4,"nzStringTemplateOutlet"],[3,"nzCommentActionHost"]],template:function(i,o){i&1&&(q(Ns),r(0,"div",0)(1,"div",1),P(2),a(),r(3,"div",2)(4,"div",3),C(5,As,2,1,"span",4),C(6,Fs,2,1,"span",5),a(),P(7,1),C(8,ks,3,0,"ul",6),a()(),r(9,"div",7),P(10,2),a()),i&2&&(s(5),h(o.nzAuthor?5:-1),s(),h(o.nzDatetime?6:-1),s(2),h(o.actions!=null&&o.actions.length?8:-1))},dependencies:[We,we,Vs],encapsulation:2,changeDetection:0})}return n})();var un=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=ue({imports:[mt]})}return n})();var Fe=["*"];function qs(n,t){if(n&1&&z(0,"nz-avatar",1),n&2){let e=c();m("nzSrc",e.nzSrc)}}function $s(n,t){n&1&&P(0)}var Ws=[[["nz-list-item-meta-avatar"]],[["nz-list-item-meta-title"]],[["nz-list-item-meta-description"]]],Qs=["nz-list-item-meta-avatar","nz-list-item-meta-title","nz-list-item-meta-description"];function Hs(n,t){if(n&1&&z(0,"nz-list-item-meta-avatar",0),n&2){let e=c();m("nzSrc",e.avatarStr)}}function Ks(n,t){if(n&1&&(r(0,"nz-list-item-meta-avatar"),Be(1,2),a()),n&2){let e=c();s(),m("ngTemplateOutlet",e.avatarTpl)}}function Ys(n,t){if(n&1&&(O(0),u(1),F()),n&2){let e=c(3);s(),T(e.nzTitle)}}function Gs(n,t){if(n&1&&(r(0,"nz-list-item-meta-title"),S(1,Ys,2,1,"ng-container",3),a()),n&2){let e=c(2);s(),m("nzStringTemplateOutlet",e.nzTitle)}}function Xs(n,t){if(n&1&&(O(0),u(1),F()),n&2){let e=c(3);s(),T(e.nzDescription)}}function Zs(n,t){if(n&1&&(r(0,"nz-list-item-meta-description"),S(1,Xs,2,1,"ng-container",3),a()),n&2){let e=c(2);s(),m("nzStringTemplateOutlet",e.nzDescription)}}function Js(n,t){if(n&1&&(r(0,"div",1),C(1,Gs,2,1,"nz-list-item-meta-title"),C(2,Zs,2,1,"nz-list-item-meta-description"),P(3,1),P(4,2),a()),n&2){let e=c();s(),h(e.nzTitle&&!e.titleComponent?1:-1),s(),h(e.nzDescription&&!e.descriptionComponent?2:-1)}}function er(n,t){n&1&&P(0)}var tr=["nz-list-item-actions",""];function nr(n,t){}function ir(n,t){n&1&&z(0,"em",1)}function or(n,t){if(n&1&&(r(0,"li"),S(1,nr,0,0,"ng-template",0),C(2,ir,1,0,"em",1),a()),n&2){let e=t.$implicit,i=t.$index,o=t.$count;s(),m("ngTemplateOutlet",e),s(),h(i!==o-1?2:-1)}}var sr=[[["nz-list-header"]],[["nz-list-footer"],["","nz-list-footer",""]],[["nz-list-load-more"],["","nz-list-load-more",""]],[["nz-list-pagination"],["","nz-list-pagination",""]],"*"],rr=["nz-list-header","nz-list-footer, [nz-list-footer]","nz-list-load-more, [nz-list-load-more]","nz-list-pagination, [nz-list-pagination]","*"],Co=(n,t)=>({$implicit:n,index:t});function ar(n,t){if(n&1&&(O(0),u(1),F()),n&2){let e=c(2);s(),T(e.nzHeader)}}function lr(n,t){if(n&1&&(r(0,"nz-list-header"),S(1,ar,2,1,"ng-container",6),a()),n&2){let e=c();s(),m("nzStringTemplateOutlet",e.nzHeader)}}function cr(n,t){n&1&&z(0,"div"),n&2&&qe("min-height",53,"px")}function mr(n,t){}function ur(n,t){if(n&1&&(r(0,"div",7),S(1,mr,0,0,"ng-template",8),a()),n&2){let e=t.$implicit,i=t.$index,o=c(2);m("nzSpan",o.nzGrid.span||null)("nzXs",o.nzGrid.xs||null)("nzSm",o.nzGrid.sm||null)("nzMd",o.nzGrid.md||null)("nzLg",o.nzGrid.lg||null)("nzXl",o.nzGrid.xl||null)("nzXXl",o.nzGrid.xxl||null),s(),m("ngTemplateOutlet",o.nzRenderItem)("ngTemplateOutletContext",Tn(9,Co,e,i))}}function pr(n,t){if(n&1&&(r(0,"div",2),w(1,ur,2,12,"div",7,ne),a()),n&2){let e=c();m("nzGutter",e.nzGrid.gutter||null),s(),N(e.nzDataSource)}}function dr(n,t){}function gr(n,t){if(n&1&&(O(0),S(1,dr,0,0,"ng-template",8),F()),n&2){let e=t.$implicit,i=t.$index,o=c(2);s(),m("ngTemplateOutlet",o.nzRenderItem)("ngTemplateOutletContext",Tn(2,Co,e,i))}}function fr(n,t){if(n&1&&(r(0,"div",3),w(1,gr,2,5,"ng-container",null,ne),P(3,4),a()),n&2){let e=c();s(),N(e.nzDataSource)}}function _r(n,t){if(n&1&&z(0,"nz-list-empty",4),n&2){let e=c();m("nzNoResult",e.nzNoResult)}}function Cr(n,t){if(n&1&&(O(0),u(1),F()),n&2){let e=c(2);s(),T(e.nzFooter)}}function hr(n,t){if(n&1&&(r(0,"nz-list-footer"),S(1,Cr,2,1,"ng-container",6),a()),n&2){let e=c();s(),m("nzStringTemplateOutlet",e.nzFooter)}}function yr(n,t){}function vr(n,t){}function zr(n,t){if(n&1&&(r(0,"nz-list-pagination"),S(1,vr,0,0,"ng-template",5),a()),n&2){let e=c();s(),m("ngTemplateOutlet",e.nzPagination)}}var br=[[["nz-list-item-actions"],["","nz-list-item-actions",""]],[["nz-list-item-meta"],["","nz-list-item-meta",""]],"*",[["nz-list-item-extra"],["","nz-list-item-extra",""]]],Ir=["nz-list-item-actions, [nz-list-item-actions]","nz-list-item-meta, [nz-list-item-meta]","*","nz-list-item-extra, [nz-list-item-extra]"];function xr(n,t){if(n&1&&z(0,"ul",3),n&2){let e=c(2);m("nzActions",e.nzActions)}}function Sr(n,t){if(n&1&&(C(0,xr,1,1,"ul",3),P(1)),n&2){let e=c();h(e.nzActions&&e.nzActions.length>0?0:-1)}}function Mr(n,t){if(n&1&&(O(0),u(1),F()),n&2){let e=c(3);s(),T(e.nzContent)}}function Tr(n,t){if(n&1&&S(0,Mr,2,1,"ng-container",4),n&2){let e=c(2);m("nzStringTemplateOutlet",e.nzContent)}}function Dr(n,t){if(n&1&&(P(0,1),P(1,2),C(2,Tr,1,1,"ng-container")),n&2){let e=c();s(2),h(e.nzContent?2:-1)}}function wr(n,t){n&1&&P(0,3)}function Nr(n,t){}function Pr(n,t){}function Er(n,t){}function Ar(n,t){if(n&1&&(r(0,"nz-list-item-extra"),S(1,Er,0,0,"ng-template",6),a()),n&2){let e=c(2);s(),m("ngTemplateOutlet",e.nzExtra)}}function Or(n,t){}function Fr(n,t){if(n&1&&(r(0,"div",5),S(1,Nr,0,0,"ng-template",6)(2,Pr,0,0,"ng-template",6),a(),C(3,Ar,2,1,"nz-list-item-extra"),S(4,Or,0,0,"ng-template",6)),n&2){let e=c(),i=$(1),o=$(3),l=$(5);s(),m("ngTemplateOutlet",o),s(),m("ngTemplateOutlet",i),s(),h(e.nzExtra?3:-1),s(),m("ngTemplateOutlet",l)}}function Br(n,t){}function Lr(n,t){}function kr(n,t){}function Vr(n,t){}function Rr(n,t){if(n&1&&S(0,Br,0,0,"ng-template",6)(1,Lr,0,0,"ng-template",6)(2,kr,0,0,"ng-template",6)(3,Vr,0,0,"ng-template",6),n&2){let e=c(),i=$(1),o=$(3),l=$(5);m("ngTemplateOutlet",o),s(),m("ngTemplateOutlet",e.nzExtra),s(),m("ngTemplateOutlet",l),s(),m("ngTemplateOutlet",i)}}var mo=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-item-meta-title"]],exportAs:["nzListItemMetaTitle"],ngContentSelectors:Fe,decls:2,vars:0,consts:[[1,"ant-list-item-meta-title"]],template:function(i,o){i&1&&(q(),Sn(0,"h4",0),P(1),Mn())},encapsulation:2,changeDetection:0})}return n})(),uo=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-item-meta-description"]],exportAs:["nzListItemMetaDescription"],ngContentSelectors:Fe,decls:2,vars:0,consts:[[1,"ant-list-item-meta-description"]],template:function(i,o){i&1&&(q(),Sn(0,"div",0),P(1),Mn())},encapsulation:2,changeDetection:0})}return n})(),ho=(()=>{class n{nzSrc;static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-item-meta-avatar"]],inputs:{nzSrc:"nzSrc"},exportAs:["nzListItemMetaAvatar"],ngContentSelectors:Fe,decls:3,vars:1,consts:[[1,"ant-list-item-meta-avatar"],[3,"nzSrc"]],template:function(i,o){i&1&&(q(),r(0,"div",0),C(1,qs,1,1,"nz-avatar",1)(2,$s,1,0),a()),i&2&&(s(),h(o.nzSrc?1:2))},dependencies:[Oe,Ae],encapsulation:2,changeDetection:0})}return n})(),jr=(()=>{class n{elementRef=v(je);avatarStr="";avatarTpl;set nzAvatar(e){e instanceof Se?(this.avatarStr="",this.avatarTpl=e):this.avatarStr=e}nzTitle;nzDescription;descriptionComponent;titleComponent;static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-item-meta"],["","nz-list-item-meta",""]],contentQueries:function(i,o,l){if(i&1&&(ie(l,uo,5),ie(l,mo,5)),i&2){let d;k(d=V())&&(o.descriptionComponent=d.first),k(d=V())&&(o.titleComponent=d.first)}},hostAttrs:[1,"ant-list-item-meta"],inputs:{nzAvatar:"nzAvatar",nzTitle:"nzTitle",nzDescription:"nzDescription"},exportAs:["nzListItemMeta"],ngContentSelectors:Qs,decls:4,vars:3,consts:[[3,"nzSrc"],[1,"ant-list-item-meta-content"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"]],template:function(i,o){i&1&&(q(Ws),C(0,Hs,1,1,"nz-list-item-meta-avatar",0),C(1,Ks,2,1,"nz-list-item-meta-avatar"),P(2),C(3,Js,5,2,"div",1)),i&2&&(h(o.avatarStr?0:-1),s(),h(o.avatarTpl?1:-1),s(2),h(o.nzTitle||o.nzDescription||o.descriptionComponent||o.titleComponent?3:-1))},dependencies:[ho,be,mo,We,we,uo],encapsulation:2,changeDetection:0})}return n})(),po=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-item-extra"],["","nz-list-item-extra",""]],hostAttrs:[1,"ant-list-item-extra"],exportAs:["nzListItemExtra"],ngContentSelectors:Fe,decls:1,vars:0,template:function(i,o){i&1&&(q(),P(0))},encapsulation:2,changeDetection:0})}return n})(),Ur=(()=>{class n{templateRef;static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-item-action"]],viewQuery:function(i,o){if(i&1&&ye(Se,7),i&2){let l;k(l=V())&&(o.templateRef=l.first)}},exportAs:["nzListItemAction"],ngContentSelectors:Fe,decls:1,vars:0,template:function(i,o){i&1&&(q(),Ct(0,er,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return n})(),qr=(()=>{class n{cdr=v(Me);nzActions=[];nzListItemActions;actions=[];inputActionChanges$=new bn;contentChildrenChanges$=Vn(()=>this.nzListItemActions?dt(null):this.initialized.pipe(kn(()=>this.nzListItemActions.changes.pipe(ft(this.nzListItemActions)))));initialized=new bn;constructor(){gt(this.contentChildrenChanges$,this.inputActionChanges$).pipe(ge()).subscribe(()=>{this.nzActions.length?this.actions=this.nzActions:this.actions=this.nzListItemActions.map(e=>e.templateRef),this.cdr.detectChanges()})}ngOnChanges(){this.inputActionChanges$.next(null)}ngAfterContentInit(){this.initialized.next(),this.initialized.complete()}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["ul","nz-list-item-actions",""]],contentQueries:function(i,o,l){if(i&1&&ie(l,Ur,4),i&2){let d;k(d=V())&&(o.nzListItemActions=d)}},hostAttrs:[1,"ant-list-item-action"],inputs:{nzActions:"nzActions"},exportAs:["nzListItemActions"],features:[st],attrs:tr,decls:2,vars:0,consts:[[3,"ngTemplateOutlet"],[1,"ant-list-item-action-split"]],template:function(i,o){i&1&&w(0,or,3,2,"li",null,ne),i&2&&N(o.actions)},dependencies:[be],encapsulation:2,changeDetection:0})}return n})(),yo=(()=>{class n{nzNoResult;static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-empty"]],hostAttrs:[1,"ant-list-empty-text"],inputs:{nzNoResult:"nzNoResult"},exportAs:["nzListHeader"],decls:1,vars:2,consts:[[3,"nzComponentName","specificContent"]],template:function(i,o){i&1&&z(0,"nz-embed-empty",0),i&2&&m("nzComponentName","list")("specificContent",o.nzNoResult)},dependencies:[He,Ot],encapsulation:2,changeDetection:0})}return n})(),$r=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-header"]],hostAttrs:[1,"ant-list-header"],exportAs:["nzListHeader"],ngContentSelectors:Fe,decls:1,vars:0,template:function(i,o){i&1&&(q(),P(0))},encapsulation:2,changeDetection:0})}return n})(),go=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-footer"]],hostAttrs:[1,"ant-list-footer"],exportAs:["nzListFooter"],ngContentSelectors:Fe,decls:1,vars:0,template:function(i,o){i&1&&(q(),P(0))},encapsulation:2,changeDetection:0})}return n})(),fo=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-pagination"]],hostAttrs:[1,"ant-list-pagination"],exportAs:["nzListPagination"],ngContentSelectors:Fe,decls:1,vars:0,template:function(i,o){i&1&&(q(),P(0))},encapsulation:2,changeDetection:0})}return n})(),Wr=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=he({type:n,selectors:[["nz-list-load-more"]],exportAs:["nzListLoadMoreDirective"]})}return n})();var vo=(()=>{class n{directionality=v($e);destroyRef=v(xe);nzDataSource;nzBordered=!1;nzGrid="";nzHeader;nzFooter;nzItemLayout="horizontal";nzRenderItem=null;nzLoading=!1;nzLoadMore=null;nzPagination;nzSize="default";nzSplit=!0;nzNoResult;nzListFooterComponent;nzListPaginationComponent;nzListLoadMoreDirective;hasSomethingAfterLastItem=!1;dir="ltr";itemLayoutNotifySource=new Bn(this.nzItemLayout);get itemLayoutNotify$(){return this.itemLayoutNotifySource.asObservable()}constructor(){this.destroyRef.onDestroy(()=>this.itemLayoutNotifySource.unsubscribe())}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(ge(this.destroyRef)).subscribe(e=>{this.dir=e})}getSomethingAfterLastItem(){return!!(this.nzLoadMore||this.nzPagination||this.nzFooter||this.nzListFooterComponent||this.nzListPaginationComponent||this.nzListLoadMoreDirective)}ngOnChanges(e){e.nzItemLayout&&this.itemLayoutNotifySource.next(this.nzItemLayout)}ngAfterContentInit(){this.hasSomethingAfterLastItem=this.getSomethingAfterLastItem()}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list"],["","nz-list",""]],contentQueries:function(i,o,l){if(i&1&&(ie(l,go,5),ie(l,fo,5),ie(l,Wr,5)),i&2){let d;k(d=V())&&(o.nzListFooterComponent=d.first),k(d=V())&&(o.nzListPaginationComponent=d.first),k(d=V())&&(o.nzListLoadMoreDirective=d.first)}},hostAttrs:[1,"ant-list"],hostVars:16,hostBindings:function(i,o){i&2&&de("ant-list-rtl",o.dir==="rtl")("ant-list-vertical",o.nzItemLayout==="vertical")("ant-list-lg",o.nzSize==="large")("ant-list-sm",o.nzSize==="small")("ant-list-split",o.nzSplit)("ant-list-bordered",o.nzBordered)("ant-list-loading",o.nzLoading)("ant-list-something-after-last-item",o.hasSomethingAfterLastItem)},inputs:{nzDataSource:"nzDataSource",nzBordered:[2,"nzBordered","nzBordered",Te],nzGrid:"nzGrid",nzHeader:"nzHeader",nzFooter:"nzFooter",nzItemLayout:"nzItemLayout",nzRenderItem:"nzRenderItem",nzLoading:[2,"nzLoading","nzLoading",Te],nzLoadMore:"nzLoadMore",nzPagination:"nzPagination",nzSize:"nzSize",nzSplit:[2,"nzSplit","nzSplit",Te],nzNoResult:"nzNoResult"},exportAs:["nzList"],features:[st],ngContentSelectors:rr,decls:14,vars:8,consts:[[3,"nzSpinning"],[3,"min-height"],["nz-row","",3,"nzGutter"],[1,"ant-list-items"],[3,"nzNoResult"],[3,"ngTemplateOutlet"],[4,"nzStringTemplateOutlet"],["nz-col","",3,"nzSpan","nzXs","nzSm","nzMd","nzLg","nzXl","nzXXl"],[3,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(i,o){i&1&&(q(sr),C(0,lr,2,1,"nz-list-header"),P(1),r(2,"nz-spin",0),O(3),C(4,cr,1,2,"div",1),C(5,pr,3,1,"div",2)(6,fr,4,0,"div",3),C(7,_r,1,1,"nz-list-empty",4),F(),a(),C(8,hr,2,1,"nz-list-footer"),P(9,1),S(10,yr,0,0,"ng-template",5),P(11,2),C(12,zr,2,1,"nz-list-pagination"),P(13,3)),i&2&&(h(o.nzHeader?0:-1),s(2),m("nzSpinning",o.nzLoading),s(2),h(o.nzLoading&&o.nzDataSource&&o.nzDataSource.length===0?4:-1),s(),h(o.nzGrid&&o.nzDataSource?5:6),s(2),h(!o.nzLoading&&o.nzDataSource&&o.nzDataSource.length===0?7:-1),s(),h(o.nzFooter?8:-1),s(2),m("ngTemplateOutlet",o.nzLoadMore),s(2),h(o.nzPagination?12:-1))},dependencies:[be,$r,We,we,Vt,kt,hi,Ci,Tt,yo,go,fo],encapsulation:2,changeDetection:0})}return n})(),Qr=(()=>{class n{cdr=v(Me);destroyRef=v(xe);parentComp=v(vo);nzActions=[];nzContent;nzExtra=null;nzNoFlex=!1;listItemExtraDirective;itemLayout;get isVerticalAndExtra(){return this.itemLayout==="vertical"&&(!!this.listItemExtraDirective||!!this.nzExtra)}ngAfterViewInit(){this.parentComp.itemLayoutNotify$.pipe(ge(this.destroyRef)).subscribe(e=>{this.itemLayout=e,this.cdr.detectChanges()})}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-list-item"],["","nz-list-item",""]],contentQueries:function(i,o,l){if(i&1&&ie(l,po,5),i&2){let d;k(d=V())&&(o.listItemExtraDirective=d.first)}},hostAttrs:[1,"ant-list-item"],hostVars:2,hostBindings:function(i,o){i&2&&de("ant-list-item-no-flex",o.nzNoFlex)},inputs:{nzActions:"nzActions",nzContent:"nzContent",nzExtra:"nzExtra",nzNoFlex:[2,"nzNoFlex","nzNoFlex",Te]},exportAs:["nzListItem"],ngContentSelectors:Ir,decls:8,vars:1,consts:[["actionsTpl",""],["contentTpl",""],["extraTpl",""],["nz-list-item-actions","",3,"nzActions"],[4,"nzStringTemplateOutlet"],[1,"ant-list-item-main"],[3,"ngTemplateOutlet"]],template:function(i,o){i&1&&(q(br),S(0,Sr,2,1,"ng-template",null,0,Z)(2,Dr,3,1,"ng-template",null,1,Z)(4,wr,1,0,"ng-template",null,2,Z),C(6,Fr,5,4)(7,Rr,4,4)),i&2&&(s(6),h(o.isVerticalAndExtra?6:7))},dependencies:[qr,We,we,be,po],encapsulation:2,changeDetection:0})}return n})();var zo=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=ue({imports:[vo,yo,Qr,jr,ho]})}return n})();var Hr=["items"],Kr=["*"],Yr=n=>({$implicit:n});function Gr(n,t){n&1&&Be(0)}function Xr(n,t){if(n&1&&S(0,Gr,1,0,"ng-container",9),n&2){let e=c().$implicit,i=c(2);m("ngTemplateOutlet",i.suggestionTemplate)("ngTemplateOutletContext",rt(2,Yr,e))}}function Zr(n,t){if(n&1&&u(0),n&2){let e=c().$implicit,i=c(2);x(" ",i.nzValueWith(e)," ")}}function Jr(n,t){if(n&1){let e=M();r(0,"li",8,1),_("click",function(){let o=g(e).$implicit,l=c(2);return f(l.selectSuggestion(o))}),C(2,Xr,1,4,"ng-container")(3,Zr,1,1),a()}if(n&2){let e=t.$index,i=c(2);de("ant-mentions-dropdown-menu-item-active",e===i.activeIndex)("ant-mentions-dropdown-menu-item-selected",e===i.activeIndex),s(2),h(i.suggestionTemplate?2:3)}}function ea(n,t){n&1&&(r(0,"span"),z(1,"nz-icon",10),a())}function ta(n,t){if(n&1&&(r(0,"span"),z(1,"nz-embed-empty",11),a()),n&2){let e=c(3);s(),m("specificContent",e.nzNotFoundContent)}}function na(n,t){if(n&1&&(r(0,"li",7),C(1,ea,2,0,"span")(2,ta,2,1,"span"),a()),n&2){let e=c(2);s(),h(e.nzLoading?1:2)}}function ia(n,t){if(n&1&&(r(0,"div",4)(1,"ul",5),w(2,Jr,4,5,"li",6,ne),C(4,na,3,1,"li",7),a()()),n&2){let e=c();s(2),N(e.filteredSuggestions),s(2),h(e.filteredSuggestions.length===0?4:-1)}}function oa(n,t){if(n&1&&z(0,"nz-form-item-feedback-icon",2),n&2){let e=c();m("status",e.status)}}function sa(n,t){n&1&&z(0,"nz-icon",14)}function ra(n,t){if(n&1){let e=M();r(0,"span",3)(1,"button",12),_("click",function(){g(e);let o=c();return f(o.clear())}),S(2,sa,1,0,"ng-template",13),a()()}if(n&2){let e=c();s(2),m("nzStringTemplateOutlet",e.nzClearIcon)}}var En=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275dir=he({type:n,selectors:[["","nzMentionSuggestion",""]],exportAs:["nzMentionSuggestion"]})}return n})(),ot={split:" "},aa={provide:bi,useExisting:qn(()=>ut),multi:!0},ut=(()=>{class n{elementRef=v(je);ngZone=v(xn);cdr=v(Me);destroyRef=v(xe);onFocusin=new Ce;onBlur=new Ce;onInput=new Ce;onKeydown=new Ce;onClick=new Ce;value=b("");disabled=b(!1);constructor(){this.destroyRef.onDestroy(()=>{this.completeEvents()}),Hn(()=>{this.setupEventListener("blur",this.onBlur),this.setupEventListener("focusin",this.onFocusin),this.setupEventListener("input",this.onInput),this.setupEventListener("click",this.onClick),this.setupEventListener("keydown",this.onKeydown)})}completeEvents(){this.onFocusin.complete(),this.onBlur.complete(),this.onInput.complete(),this.onKeydown.complete(),this.onClick.complete()}focus(e=null){this.elementRef.nativeElement.focus(),this.elementRef.nativeElement.setSelectionRange(e,e)}insertMention(e){let i=this.elementRef.nativeElement.value,o=`${e.mention}${ot.split}`,l=[i.slice(0,e.startPos+1),o,i.slice(e.endPos,i.length)].join("");this.elementRef.nativeElement.value=l,this.focus(e.startPos+o.length+1),this.onChange(l),this.value.set(l)}clear(){this.value.set(""),this.elementRef.nativeElement.value="",this.onChange("")}writeValue(e){let i=typeof e=="string"?e:"";this.value.set(i),this.elementRef.nativeElement.value=i}onChange=()=>{};onTouched=()=>{};registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled.set(e)}setupEventListener(e,i){St(this.elementRef.nativeElement,e).pipe(ge(this.destroyRef)).subscribe(o=>{i.observers.length&&this.ngZone.run(()=>{i.emit(o),this.cdr.markForCheck()})})}static \u0275fac=function(i){return new(i||n)};static \u0275dir=he({type:n,selectors:[["input","nzMentionTrigger",""],["textarea","nzMentionTrigger",""]],hostAttrs:["autocomplete","off"],outputs:{onFocusin:"onFocusin",onBlur:"onBlur",onInput:"onInput",onKeydown:"onKeydown",onClick:"onClick"},exportAs:["nzMentionTrigger"],features:[It([aa])]})}return n})(),An=(()=>{class n{ngZone=v(xn);directionality=v($e);cdr=v(Me);injector=v($n);viewContainerRef=v(_t);elementRef=v(je);renderer=v(Kn);destroyRef=v(xe);nzValueWith=e=>e;nzPrefix="@";nzLoading=!1;nzNotFoundContent="\u65E0\u5339\u914D\u7ED3\u679C\uFF0C\u8F7B\u6572\u7A7A\u683C\u5B8C\u6210\u8F93\u5165";nzPlacement="bottom";nzSuggestions=[];nzStatus="";nzVariant="outlined";nzAllowClear=!1;nzClearIcon=null;nzOnSelect=new Ce;nzOnSearchChange=new Ce;nzOnClear=new Ce;suggestionsTemp;items;set suggestionChild(e){e&&(this.suggestionTemplate=e)}trigger=ti.required(ut);isOpen=!1;filteredSuggestions=[];suggestionTemplate=null;activeIndex=-1;dir="ltr";prefixCls="ant-mentions";statusCls={};status="";hasFeedback=!1;focused=b(!1);disabled=y(()=>this.trigger().disabled());hasValue=y(()=>!!this.trigger()?.value().trim());previousValue=null;cursorMention=null;cursorMentionStart;cursorMentionEnd;overlayRef=null;portal;positionStrategy;overlayOutsideClickSubscription;document=v(Wn);get triggerNativeElement(){return this.trigger().elementRef.nativeElement}get focusItemElement(){let e=this.items?.toArray();return e&&e[this.activeIndex]?e[this.activeIndex].nativeElement:null}nzFormStatusService=v(yi,{optional:!0});nzFormNoStatusService=v(vi,{optional:!0});constructor(){this.destroyRef.onDestroy(()=>{this.closeDropdown()}),R(()=>{this.trigger()&&(this.bindTriggerEvents(),this.closeDropdown(),this.overlayRef=null)})}ngOnInit(){this.nzFormStatusService?.formStatusChanges.pipe(Rn((e,i)=>e.status===i.status&&e.hasFeedback===i.hasFeedback),Un(this.nzFormNoStatusService?this.nzFormNoStatusService.noFormStatus:dt(!1)),Ln(([{status:e,hasFeedback:i},o])=>({status:o?"":e,hasFeedback:i})),ge(this.destroyRef)).subscribe(({status:e,hasFeedback:i})=>{this.setStatusStyles(e,i)}),this.dir=this.directionality.value,this.directionality.change?.pipe(ge(this.destroyRef)).subscribe(e=>{this.dir=e})}ngOnChanges(e){let{nzSuggestions:i,nzStatus:o}=e;i&&this.isOpen&&(this.previousValue=null,this.activeIndex=-1,this.resetDropdown(!1)),o&&this.setStatusStyles(this.nzStatus,this.hasFeedback)}ngAfterViewInit(){this.items.changes.pipe(ft(this.items),jn(()=>{let e=this.items.toArray();return gt(...e.map(i=>St(i.nativeElement,"mousedown")))})).subscribe(e=>{e.preventDefault()})}closeDropdown(){this.overlayRef&&this.overlayRef.hasAttached()&&(this.overlayRef.detach(),this.overlayOutsideClickSubscription.unsubscribe(),this.isOpen=!1,this.cdr.markForCheck())}openDropdown(){this.attachOverlay(),this.isOpen=!0,this.cdr.markForCheck()}getMentions(){return this.trigger()?li(this.trigger().value(),this.nzPrefix):[]}selectSuggestion(e){let i=this.nzValueWith(e);this.trigger().insertMention({mention:i,startPos:this.cursorMentionStart,endPos:this.cursorMentionEnd}),this.nzOnSelect.emit(e),this.closeDropdown(),this.activeIndex=-1}clear(){this.closeDropdown(),this.trigger().clear(),this.nzOnClear.emit()}handleInput(e){let i=e.target;this.trigger().onChange(i.value),this.trigger().value.set(i.value),this.resetDropdown()}handleKeydown(e){let i=e.keyCode;if(this.isOpen&&i===13&&this.activeIndex!==-1&&this.filteredSuggestions.length)this.selectSuggestion(this.filteredSuggestions[this.activeIndex]),e.preventDefault();else if(i===37||i===39)this.resetDropdown(),e.stopPropagation();else{if(this.isOpen&&(i===9||i===27)){this.closeDropdown();return}this.isOpen&&i===38&&(this.setPreviousItemActive(),e.preventDefault(),e.stopPropagation()),this.isOpen&&i===40&&(this.setNextItemActive(),e.preventDefault(),e.stopPropagation())}}handleClick(){this.resetDropdown(!1)}bindTriggerEvents(){this.trigger().onFocusin.subscribe(()=>this.focused.set(!0)),this.trigger().onBlur.subscribe(()=>this.focused.set(!1)),this.trigger().onInput.subscribe(e=>this.handleInput(e)),this.trigger().onKeydown.subscribe(e=>this.handleKeydown(e)),this.trigger().onClick.subscribe(()=>this.handleClick())}suggestionsFilter(e,i){let o=e.substring(1);if(this.previousValue===e&&e!==this.cursorMention[0])return;this.previousValue=e,i&&this.nzOnSearchChange.emit({value:this.cursorMention.substring(1),prefix:this.cursorMention[0]});let l=o.toLowerCase();this.filteredSuggestions=this.nzSuggestions.filter(d=>this.nzValueWith(d).toLowerCase().includes(l))}resetDropdown(e=!0){if(this.resetCursorMention(),typeof this.cursorMention!="string"||!this.canOpen()){this.closeDropdown();return}this.suggestionsFilter(this.cursorMention,e);let i=this.filteredSuggestions.indexOf(this.cursorMention.substring(1));this.activeIndex=i>=0?i:0,this.openDropdown()}setNextItemActive(){this.activeIndex=this.activeIndex+1<=this.filteredSuggestions.length-1?this.activeIndex+1:0,this.cdr.markForCheck(),this.scrollToFocusItem()}setPreviousItemActive(){this.activeIndex=this.activeIndex-1<0?this.filteredSuggestions.length-1:this.activeIndex-1,this.cdr.markForCheck(),this.scrollToFocusItem()}scrollToFocusItem(){this.focusItemElement&&this.focusItemElement.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}canOpen(){let e=this.triggerNativeElement;return!e.readOnly&&!e.disabled}resetCursorMention(){let e=this.triggerNativeElement.value.replace(/[\r\n]/g,ot.split)||"",i=this.triggerNativeElement.selectionStart,o=typeof this.nzPrefix=="string"?[this.nzPrefix]:this.nzPrefix,l=o.length;for(;l>=0;){let d=e.lastIndexOf(o[l],i),fe=e.indexOf(ot.split,i)>-1?e.indexOf(ot.split,i):e.length,J=e.substring(d,fe);if(d>0&&e[d-1]!==ot.split||d<0||J.includes(o[l],1)||J.includes(ot.split))this.cursorMention=null,this.cursorMentionStart=-1,this.cursorMentionEnd=-1;else{this.cursorMention=J,this.cursorMentionStart=d,this.cursorMentionEnd=fe;return}l--}}updatePositions(){let e=ci(this.triggerNativeElement,this.cursorMentionStart),i=e.top-this.triggerNativeElement.getBoundingClientRect().height-this.triggerNativeElement.scrollTop+(this.nzPlacement==="bottom"?e.height-6:-6),o=e.left-this.triggerNativeElement.scrollLeft;this.positionStrategy.withDefaultOffsetX(o).withDefaultOffsetY(i),this.nzPlacement==="bottom"&&this.positionStrategy.withPositions([...pi]),this.nzPlacement==="top"&&this.positionStrategy.withPositions([...ui]),this.positionStrategy.apply()}subscribeOverlayOutsideClick(){let e=o=>{let l=o.target;return this.isOpen&&l!==this.triggerNativeElement&&!this.overlayRef?.overlayElement.contains(l)},i=new Fn;return i.add(this.overlayRef.outsidePointerEvents().subscribe(o=>e(o)&&this.closeDropdown())),i.add(St(this.document,"touchend").subscribe(o=>e(o)&&this.ngZone.run(()=>this.closeDropdown()))),i}attachOverlay(){this.overlayRef||(this.portal=new xt(this.suggestionsTemp,this.viewContainerRef),this.overlayRef=ai(this.injector,{positionStrategy:this.getOverlayPosition(),scrollStrategy:si(this.injector),disposeOnNavigation:!0})),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayOutsideClickSubscription=this.subscribeOverlayOutsideClick()),this.updatePositions()}getOverlayPosition(){return this.positionStrategy=ri(this.injector,this.trigger().elementRef).withPositions([new wn({originX:"start",originY:"bottom"},{overlayX:"start",overlayY:"top"}),new wn({originX:"start",originY:"top"},{overlayX:"start",overlayY:"bottom"})]).withFlexibleDimensions(!1).withPush(!1)}setStatusStyles(e,i){this.status=e,this.hasFeedback=i,this.cdr.markForCheck(),this.statusCls=mi(this.prefixCls,e,i),Object.keys(this.statusCls).forEach(o=>{this.statusCls[o]?this.renderer.addClass(this.elementRef.nativeElement,o):this.renderer.removeClass(this.elementRef.nativeElement,o)})}static \u0275fac=function(i){return new(i||n)};static \u0275cmp=I({type:n,selectors:[["nz-mention"]],contentQueries:function(i,o,l){if(i&1&&(Xn(l,o.trigger,ut,5),ie(l,En,5,Se)),i&2){Zn();let d;k(d=V())&&(o.suggestionChild=d.first)}},viewQuery:function(i,o){if(i&1&&(ye(Se,5),ye(Hr,5,je)),i&2){let l;k(l=V())&&(o.suggestionsTemp=l.first),k(l=V())&&(o.items=l)}},hostAttrs:[1,"ant-mentions"],hostVars:12,hostBindings:function(i,o){i&2&&de("ant-mentions-rtl",o.dir==="rtl")("ant-mentions-borderless",o.nzVariant==="borderless")("ant-mentions-filled",o.nzVariant==="filled")("ant-mentions-underlined",o.nzVariant==="underlined")("ant-mentions-focused",o.focused())("ant-mentions-disabled",o.disabled())},inputs:{nzValueWith:"nzValueWith",nzPrefix:"nzPrefix",nzLoading:[2,"nzLoading","nzLoading",Te],nzNotFoundContent:"nzNotFoundContent",nzPlacement:"nzPlacement",nzSuggestions:"nzSuggestions",nzStatus:"nzStatus",nzVariant:"nzVariant",nzAllowClear:[2,"nzAllowClear","nzAllowClear",Te],nzClearIcon:"nzClearIcon"},outputs:{nzOnSelect:"nzOnSelect",nzOnSearchChange:"nzOnSearchChange",nzOnClear:"nzOnClear"},exportAs:["nzMention"],features:[st],ngContentSelectors:Kr,decls:5,vars:2,consts:[["suggestions",""],["items",""],[1,"ant-mentions-suffix",3,"status"],[1,"ant-mentions-suffix"],[1,"ant-mentions-dropdown"],["role","menu","tabindex","0",1,"ant-mentions-dropdown-menu"],["role","menuitem","tabindex","-1",1,"ant-mentions-dropdown-menu-item",3,"ant-mentions-dropdown-menu-item-active","ant-mentions-dropdown-menu-item-selected"],[1,"ant-mentions-dropdown-menu-item","ant-mentions-dropdown-menu-item-disabled"],["role","menuitem","tabindex","-1",1,"ant-mentions-dropdown-menu-item",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["nzType","loading"],["nzComponentName","select",3,"specificContent"],["type","button","tabindex","-1",1,"ant-mentions-clear-icon",3,"click"],[3,"nzStringTemplateOutlet"],["nzType","close-circle","nzTheme","fill"]],template:function(i,o){i&1&&(q(),P(0),S(1,ia,5,1,"ng-template",null,0,Z),C(3,oa,1,1,"nz-form-item-feedback-icon",2),C(4,ra,3,1,"span",3)),i&2&&(s(3),h(o.hasFeedback&&o.status?3:-1),s(),h(o.nzAllowClear&&o.hasValue()?4:-1))},dependencies:[be,Q,ee,He,Ot,zi,we],encapsulation:2,changeDetection:0})}return n})();var pn=(()=>{class n{static \u0275fac=function(i){return new(i||n)};static \u0275mod=pe({type:n});static \u0275inj=ue({imports:[An]})}return n})();var bo={member:"\u6210\u5458",product:"\u4EA7\u54C1",ui:"UI",frontend_dev:"\u524D\u7AEF\u5F00\u53D1",backend_dev:"\u540E\u7AEF\u5F00\u53D1",qa:"\u6D4B\u8BD5",ops:"\u8FD0\u7EF4",project_admin:"\u9879\u76EE\u7BA1\u7406\u5458"};function ca(n,t){if(n&1&&(r(0,"div",6)(1,"span",7),u(2),a(),r(3,"span",8),u(4),a()()),n&2){let e=t.$implicit,i=c();s(2),T(e.displayName||e.userId),s(2),T(i.roleLabel(e.roleCode))}}function ma(n,t){n&1&&u(0," \u53D1\u9001\u8BC4\u8BBA ")}function ua(n,t){n&1&&u(0," \u6CA1\u6709\u8BC4\u8BBA\u6743\u9650 ")}var dn=class n{busy=p(!1);canComment=p(!1);members=p([]);submit=D();mentionKeyword=b("");commentDraft=b("");mentionOptions=y(()=>{let t=this.mentionKeyword().trim().toLowerCase(),e=this.members();return t?e.filter(i=>{let o=(i.displayName||"").toLowerCase(),l=(i.userId||"").toLowerCase();return o.includes(t)||l.includes(t)}).slice(0,20):e.slice(0,20)});mentionLabel(t){return t.displayName?.trim()||t.userId}handleMentionSearch(t){this.mentionKeyword.set(t.value||"")}handleMentionSelect(t){this.mentionKeyword.set("")}roleLabel(t){return bo[t]||t}handleSubmit(){this.commentDraft().trim()&&(this.submit.emit({content:this.commentDraft(),mentions:this.collectMentions(this.commentDraft())}),this.commentDraft.set(""),this.mentionKeyword.set(""))}collectMentions(t){let e=new Set;for(let i of this.members()){let o=this.mentionLabel(i);o&&t.includes(`@${o}`)&&e.add(i.userId)}return[...e]}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-comment-input"]],inputs:{busy:[1,"busy"],canComment:[1,"canComment"],members:[1,"members"]},outputs:{submit:"submit"},decls:11,vars:7,consts:[["nz-comment-avatar","","nzSize","small",2,"background-color","#87d068",3,"nzSrc","nzText"],[3,"nzOnSearchChange","nzOnSelect","nzSuggestions","nzValueWith"],["nz-input","","nzMentionTrigger","","rows","4","placeholder","\u6DFB\u52A0\u8BC4\u8BBA...\u8F93\u5165 @ \u63D0\u53CA\u6210\u5458",1,"comment-input",3,"ngModelChange","ngModel"],["nzMentionSuggestion",""],[1,"toolbar"],["nz-button","","nzType","primary",1,"send",3,"click","nzLoading","disabled"],[1,"mention-option"],[1,"mention-name"],[1,"mention-id"]],template:function(e,i){e&1&&(r(0,"nz-comment"),z(1,"nz-avatar",0),r(2,"nz-comment-content")(3,"nz-form-item")(4,"nz-mention",1),_("nzOnSearchChange",function(l){return i.handleMentionSearch(l)})("nzOnSelect",function(l){return i.handleMentionSelect(l)}),r(5,"textarea",2),zt("ngModelChange",function(l){return vt(i.commentDraft,l)||(i.commentDraft=l),l}),a(),S(6,ca,5,2,"ng-template",3),a()(),r(7,"nz-form-item",4)(8,"button",5),_("click",function(){return i.handleSubmit()}),C(9,ma,1,0)(10,ua,1,0),a()()()()),e&2&&(s(),m("nzText","\u6211"),s(3),m("nzSuggestions",i.mentionOptions())("nzValueWith",i.mentionLabel),s(),yt("ngModel",i.commentDraft),s(3),m("nzLoading",i.busy())("disabled",!i.canComment()),s(),h(i.canComment()?9:10))},dependencies:[un,mt,cn,mn,Oe,Ae,pn,An,ut,En,A,K,L,H,X,le,W,B,ae,Y,G,Rt,Tt,Qi],styles:[".comment-input[_ngcontent-%COMP%]{width:100%;border-radius:10px}.toolbar[_ngcontent-%COMP%]{display:flex;justify-content:end}.send[_ngcontent-%COMP%]{border-radius:6px}.mention-option[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.mention-name[_ngcontent-%COMP%]{font-weight:600}.mention-id[_ngcontent-%COMP%]{font-size:12px}"]})};var Io=n=>({logParsed:n}),pa=(n,t)=>t.id;function da(n,t){n&1&&u(0," \u4EC5\u770B\u8BC4\u8BBA ")}function ga(n,t){n&1&&u(0," \u67E5\u770B\u5168\u90E8 ")}function fa(n,t){n&1&&(r(0,"div",7),u(1,"\u6682\u65E0\u8BC4\u8BBA/\u5907\u6CE8"),a())}function _a(n,t){n&1&&Be(0)}function Ca(n,t){if(n&1&&(r(0,"div",9)(1,"nz-comment",11),z(2,"nz-avatar",12),r(3,"nz-comment-content")(4,"p",13),S(5,_a,1,0,"ng-container",14),a()()(),r(6,"span",15),u(7),ve(8,"date"),a()()),n&2){let e=c().$implicit,i=$(7),o=bt(0),l=c(2);s(),m("nzAuthor",e.operatorName),s(),m("nzSrc",l.getMemberAvatarUrl((e==null?null:e.operatorId)??""))("nzText",e.operatorName.charAt(0)),s(3),m("ngTemplateOutlet",i)("ngTemplateOutletContext",rt(9,Io,o)),s(2),T(ze(8,6,e.createdAt,"MM/dd HH:mm"))}}function ha(n,t){n&1&&Be(0)}function ya(n,t){if(n&1&&(r(0,"div",10)(1,"div",16)(2,"span",17),u(3),a(),S(4,ha,1,0,"ng-container",14),r(5,"div",15),u(6),ve(7,"date"),a()()()),n&2){let e=c().$implicit,i=$(7),o=bt(0);s(3),T(e.operatorName||"\u7CFB\u7EDF"),s(),m("ngTemplateOutlet",i)("ngTemplateOutletContext",rt(7,Io,o)),s(2),T(ze(7,4,e.createdAt,"MM/dd HH:mm"))}}function va(n,t){if(n&1&&z(0,"nz-icon",18),n&2){let e=c().$implicit,i=c(2);m("nzType",i.iconType(e))}}function za(n,t){if(n&1&&(r(0,"span",21),u(1),a()),n&2){let e=c().$implicit;s(),T(e.text)}}function ba(n,t){if(n&1&&(r(0,"span"),u(1),a()),n&2){let e=c().$implicit;s(),T(e.text)}}function Ia(n,t){if(n&1&&C(0,za,2,1,"span",21)(1,ba,2,1,"span"),n&2){let e=t.$implicit;h(e.mention?0:1)}}function xa(n,t){if(n&1&&z(0,"img",20),n&2){let e=t.$implicit;m("nzSrc",e)}}function Sa(n,t){if(n&1&&(r(0,"app-ellipsis-text",19),w(1,Ia,2,1,null,null,ht),z(3,"br"),w(4,xa,1,1,"img",20,ne),a()),n&2){c();let e=bt(0);m("lines",2)("maxHeight",40),s(),N(e.segments),s(3),N(e.imgUrls)}}function Ma(n,t){if(n&1&&(Jn(0),r(1,"nz-timeline-item",8),C(2,Ca,9,11,"div",9)(3,ya,8,9,"div",10),a(),S(4,va,1,1,"ng-template",null,0,Z)(6,Sa,6,2,"ng-template",null,1,Z)),n&2){let e=t.$implicit,i=$(5),o=c(2);ei(o.parseLogContent(e)),s(),m("nzDot",i),s(),h(e.actionType==="comment"?2:3)}}function Ta(n,t){if(n&1&&(r(0,"nz-timeline"),w(1,Ma,8,3,null,null,pa),a()),n&2){let e=c();s(),N(e.viewLogs())}}var gn=class n{mentionPattern=/(@[^\s@,,.。;;::!?!?]+)/g;extractAndRemoveImagePaths=at;issueId=p("");canComment=p(!1);logs=p.required();members=p([]);projectId=p();busy=p(!1);submit=D();viewMode=b("all");constructor(){R(()=>{this.issueId()&&this.viewMode.set("all")})}commentDraft=b("");mentionKeyword=b("");commontLogs=y(()=>this.logs().filter(t=>t.actionType==="comment"));viewLogs=y(()=>this.viewMode()==="comment"?this.commontLogs():this.logs());iconType(t){let e=this.readMetaKind(t.metaJson);return e==="participant.added"||e==="participant.added.batch"?"user-add":e==="participant.removed"?"user-delete":e==="issue_branch.created"||e==="issue_branch.claimed"?"share-alt":e==="issue_branch.started"?"play-circle":e==="issue_branch.completed"?"check-circle":{create:"plus-circle",assign:"user-add",claim:"user-add",start:"play-circle",wait_update:"clock-circle",resolve:"check-circle",verify:"safety-certificate",reopen:"redo",close:"close-circle",comment:"message",update:"edit"}[t.actionType]||"clock-circle"}parseLogContent(t){let e=[],i=[],o=t.summary;if(!o)return{segments:e};if(t.actionType==="comment"||t.actionType==="reopen"){let J=at(o,this.projectId(),this.issueId(),"issues");o=J.text,i.push(...J.imgUrls)}let l=this.mentionPattern,d=0,fe;for(;fe=l.exec(o);){let J=fe.index,On=fe[0],Mo=On.slice(1);J>d&&e.push({text:o.slice(d,J)}),e.push({text:On,mention:this.isMember(Mo)}),d=l.lastIndex}return d<o.length&&e.push({text:o.slice(d)}),{segments:e,imgUrls:i}}isMember(t){return!!this.members().find(e=>e.displayName===t)}getMemberAvatarUrl(t){return""}toggleViewMode(t){t&&this.viewMode.set(t);let e=this.viewMode()==="all"?"comment":"all";this.viewMode.set(e)}transformAvatarUrl(t,e,i){let o=/\/api\/admin\/uploads\/(upl_[a-zA-Z0-9_-]+)\/raw/,l=t.match(o);if(l){let d=l[1];return`/api/token/projects/${e}/issues/${i}/attachments/${d}/raw`}else return""}readMetaKind(t){let e=this.parseMeta(t);return typeof e?.kind=="string"?e.kind:null}parseMeta(t){if(!t)return null;try{let e=JSON.parse(t);return e&&typeof e=="object"?e:null}catch{return null}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-logs-area"]],inputs:{issueId:[1,"issueId"],canComment:[1,"canComment"],logs:[1,"logs"],members:[1,"members"],projectId:[1,"projectId"],busy:[1,"busy"]},outputs:{submit:"submit"},decls:9,vars:5,consts:[["dotTemplate",""],["logContent",""],["title","\u6D3B\u52A8\u8BB0\u5F55"],["actions",""],["nz-button","","nzSize","small",3,"click"],[3,"submit","busy","members","canComment"],[1,"logs-content"],[1,"comment-empty"],[3,"nzDot"],[1,"comment-item"],[1,"log-item"],[3,"nzAuthor"],["nz-comment-avatar","","nzSize","small",2,"background-color","#1890ff",3,"nzSrc","nzText"],[1,"summary"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"time"],[1,"meta"],[1,"operator"],["nzTheme","outline",2,"font-size","16px",3,"nzType"],[3,"lines","maxHeight"],["nz-image","","width","100px","height","100px","alt","",3,"nzSrc"],[1,"mention"]],template:function(e,i){e&1&&(r(0,"app-detail-item-card",2)(1,"div",3)(2,"button",4),_("click",function(){return i.toggleViewMode()}),C(3,da,1,0)(4,ga,1,0),a()(),r(5,"app-issue-comment-input",5),_("submit",function(l){return i.submit.emit(l)}),a(),r(6,"div",6),C(7,fa,2,0,"div",7)(8,Ta,3,0,"nz-timeline"),a()()),e&2&&(s(3),h(i.viewMode()==="all"?3:4),s(2),m("busy",i.busy())("members",i.members())("canComment",i.canComment()),s(2),h(i.logs().length===0?7:8))},dependencies:[W,be,B,A,K,L,H,Q,ee,X,zo,un,mt,cn,mn,Zi,Gi,Xi,Je,Ze,pn,Rt,Oe,Ae,dn,te,tt,De],styles:[".mention[_ngcontent-%COMP%]{color:#1677ff;font-weight:500;cursor:pointer}.comment-empty[_ngcontent-%COMP%]{margin:1rem;text-align:center;color:gray}.logs-content[_ngcontent-%COMP%]{padding:12px 0;max-height:600px;overflow:auto}.log-item[_ngcontent-%COMP%]{padding:4px 0 0}.log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{display:flex;align-items:start;gap:.875rem;color:#000000a6;font-size:.875rem;margin-bottom:4px}.log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .operator[_ngcontent-%COMP%]{font-weight:700;white-space:nowrap}.log-item[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{color:#00000073}.comment-item[_ngcontent-%COMP%]{display:flex}.time[_ngcontent-%COMP%]{padding-left:10px;display:flex;align-items:center;min-width:100px;font-size:14px;font-weight:300;color:#bbb;margin-left:auto}.log-item[_ngcontent-%COMP%]{padding-bottom:16px}.summary[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] .ant-timeline-item{margin-left:6px;padding-bottom:0}"],changeDetection:0})};function Da(n,t){n&1&&z(0,"app-markdown-viewer",1),n&2&&m("content",t)("showToc",!0)("tocVariant","floating")("tocCollapsedByDefault",!0)}function wa(n,t){n&1&&(r(0,"div",2),u(1,"\u6682\u65E0\u63CF\u8FF0"),a())}function Na(n,t){if(n&1&&(r(0,"div",3)(1,"div",4),u(2,"\u89E3\u51B3\u8BF4\u660E"),a(),r(3,"div",5)(4,"app-ellipsis-text",6),u(5),a()()()),n&2){let e=c();s(4),m("lines",2),s(),x(" ",e.issue().resolutionSummary," ")}}function Pa(n,t){if(n&1&&(r(0,"div",3)(1,"div",4),u(2,"\u5173\u95ED\u539F\u56E0"),a(),r(3,"div",5)(4,"app-ellipsis-text",6),u(5),a()()()),n&2){let e=c();s(4),m("lines",2),s(),x(" ",e.issue().closeReason," ")}}function Ea(n,t){if(n&1&&z(0,"img",7),n&2){let e=t.$implicit;m("nzSrc",e)}}function Aa(n,t){if(n&1&&(r(0,"div",3)(1,"div",4),u(2,"\u91CD\u5F00\u539F\u56E0"),a(),r(3,"div",5)(4,"app-ellipsis-text",6),u(5),z(6,"br"),w(7,Ea,1,1,"img",7,ne),a()()()),n&2){let e=c();s(4),m("lines",2),s(),x(" ",e.closeRemarkContent().text," "),s(2),N(e.closeRemarkContent().imgUrls)}}var fn=class n{issue=p.required();projectId=p("");mdContent=y(()=>oo(this.issue().description||"",this.projectId(),this.issue().id,"issues"));closeRemarkContent=y(()=>{let t=this.issue();return t?at(t.closeRemark||"",this.projectId(),this.issue().id,"issues"):{text:"",imgUrls:[]}});getIssueTitleByType(t){let e=ao.find(i=>i.type===t.type);return e?e.title:"\u95EE\u9898\u63CF\u8FF0"}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-description-area"]],inputs:{issue:[1,"issue"],projectId:[1,"projectId"]},decls:6,vars:5,consts:[["maxHeight","550px",3,"title"],[3,"content","showToc","tocVariant","tocCollapsedByDefault"],[1,"empty"],[1,"resolution"],[1,"resolution-label"],[1,"resolution-content"],[3,"lines"],["nz-image","","width","150px","height","100px","alt","",3,"nzSrc"]],template:function(e,i){if(e&1&&(r(0,"app-detail-item-card",0),C(1,Da,1,4,"app-markdown-viewer",1)(2,wa,2,0,"div",2),C(3,Na,6,2,"div",3),C(4,Pa,6,2,"div",3),C(5,Aa,9,2,"div",3),a()),e&2){let o;m("title",i.getIssueTitleByType(i.issue())),s(),h((o=i.mdContent())?1:2,o),s(2),h(i.issue().resolutionSummary?3:-1),s(),h(i.issue().closeReason?4:-1),s(),h(i.issue().closeRemark?5:-1)}},dependencies:[te,no,Je,Ze,tt],styles:[".empty[_ngcontent-%COMP%]{margin:1rem;text-align:center;color:gray;font-size:.875rem}.resolution[_ngcontent-%COMP%]{margin-top:26px}.resolution[_ngcontent-%COMP%] .resolution-label[_ngcontent-%COMP%]{margin-bottom:4px;font-size:.8rem;font-weight:700;color:gray}.resolution[_ngcontent-%COMP%] .resolution-content[_ngcontent-%COMP%]{font-size:.8rem;margin-bottom:4px}"]})};function Oa(n,t){n&1&&(r(0,"span",10),u(1),a()),n&2&&(s(),T(t))}function Fa(n,t){if(n&1&&(r(0,"div",8)(1,"div",9),C(2,Oa,2,1,"span",10),r(3,"strong"),u(4),a()()()),n&2){let e,i=c();s(2),h((e=i.subtitleText())?2:-1,e),s(2),T(i.titleText())}}function Ba(n,t){n&1&&z(0,"nz-empty",11),n&2&&m("nzNotFoundContent","\u60A8\u6CA1\u6709\u6743\u9650\u67E5\u770B\u8BE5\u95EE\u9898\u8BE6\u60C5")}function La(n,t){n&1&&z(0,"nz-spin",12)}function ka(n,t){if(n&1){let e=M();r(0,"div",13)(1,"div",14)(2,"app-issue-action-area",15),_("actionClick",function(o){g(e);let l=c(2);return f(l.handleActions(o))}),a()(),r(3,"div",16)(4,"div",17),z(5,"app-issue-description-area",18),r(6,"app-issue-logs-area",19),_("submit",function(o){g(e);let l=c(2);return f(l.store.postComment(o))}),a()(),r(7,"div",20),z(8,"app-issue-base-info-area",21),r(9,"app-issue-branches",22),_("startOwn",function(){g(e);let o=c(2);return f(o.openStartOwnBranch())})("create",function(){g(e);let o=c(2);return f(o.openCreateBranch())})("startBranch",function(o){g(e);let l=c(2);return f(l.store.startBranch(o))})("completeBranch",function(o){g(e);let l=c(2);return f(l.store.completeBranch(o))}),a(),r(10,"app-issue-collaborators-area",23),_("removeParticipant",function(o){g(e);let l=c(2);return f(l.removeParticipant(o))}),a(),z(11,"app-issue-attachment-area",24),a()()()}if(n&2){let e=t,i=c(2);s(2),m("issue",e)("logs",i.store.logs())("canStart",i.store.canStart())("canClaim",i.store.canClaim())("canAssign",i.store.canAssign())("assignActionLabel",i.store.assignActionLabel())("startActionLabel",i.store.startActionLabel())("canManageParticipants",i.store.canManageParticipants())("canPendingUpdate",i.store.canPendingUpdate())("canResolve",i.store.canResolve())("canVerify",i.store.canVerify())("canReopen",i.store.canReopen())("canClose",i.store.canClose()),s(3),m("issue",e)("projectId",i.store.currentProjectId()),s(),m("issueId",e.id)("busy",i.store.busy())("logs",i.store.logs())("members",i.store.members())("projectId",i.store.currentProjectId())("canComment",i.store.canComment()),s(2),m("issue",e),s(),m("branches",i.store.branches())("canStartActions",i.store.canStartBranchActions())("canCreate",i.store.canCreateBranches())("canStartOwn",i.store.canStartOwnBranch())("canCompleteBranch",i.store.canCompleteBranch())("summary",i.store.branchSummary())("busy",i.store.busy()),s(),m("issue",e)("participants",i.store.participants())("canManageParticipants",i.store.canManageParticipants())("busy",i.store.busy()),s(),m("attachments",i.store.attachments())("projectId",i.store.currentProjectId())("members",i.store.members())}}function Va(n,t){if(n&1&&C(0,Ba,1,1,"nz-empty",11)(1,La,1,0,"nz-spin",12)(2,ka,12,36,"div",13),n&2){let e,i=c();h(i.store.canRead()?i.store.loading()?1:(e=i.store.issue())?2:-1:0,e)}}var _n=class n{modal=v(Qe);store=v(Re);open=p(!1);close=D();startOwnBranchOpen=b(!1);createBranchOpen=b(!1);IssueCloseDialogOpen=b(!1);IssueAddParticipantsDialogOpen=b(!1);IssueResolveDialogOpen=b(!1);IssueAssignDialogOpen=b(!1);subtitleText=y(()=>this.store.issue()?.issueNo||"");titleText=y(()=>this.store.issue()?.title||"\u95EE\u9898\u8BE6\u60C5");closeDetaile(){this.close.emit()}handleActions(t){switch(t){case"comments":break;case"start":{this.startConfirm();break}case"claim":{this.claimConfirm();break}case"assign":{this.IssueAssignDialogOpen.set(!0);break}case"wait-update":{this.waitForUpdateConfirm();break}case"resolve":{this.IssueResolveDialogOpen.set(!0);break}case"verify":break;case"reopen":break;case"close":{this.IssueCloseDialogOpen.set(!0);break}case"add_participants":{this.IssueAddParticipantsDialogOpen.set(!0);break}case"remove_participants":break}}startConfirm(){this.modal.confirm({nzTitle:this.store.issue()?.status==="pending_update"?"\u786E\u8BA4\u7EE7\u7EED\u5904\u7406\u8BE5\u95EE\u9898\uFF1F":"\u786E\u8BA4\u5F00\u59CB\u5904\u7406\u8BE5\u95EE\u9898\uFF1F",nzContent:this.store.issue()?.status==="pending_update"?"\u7EE7\u7EED\u5904\u7406\u540E\uFF0C\u72B6\u6001\u5C06\u4ECE\u201C\u5F85\u63D0\u6D4B\u201D\u56DE\u5230\u201C\u5904\u7406\u4E2D\u201D\u3002":"\u5F00\u59CB\u5904\u7406\u540E\u5C06\u8FDB\u5165\u5904\u7406\u6D41\u8F6C\uFF0C\u8D1F\u8D23\u4EBA\u53EF\u7EE7\u7EED\u5904\u7406\u3001\u8F6C\u6D3E\u6216\u6807\u8BB0\u5F85\u63D0\u6D4B\u3002",nzOkText:this.store.issue()?.status==="pending_update"?"\u786E\u8BA4\u7EE7\u7EED":"\u786E\u8BA4\u5F00\u59CB",nzCancelText:"\u53D6\u6D88",nzOnOk:()=>this.store.start()})}waitForUpdateConfirm(){this.modal.confirm({nzTitle:"\u6807\u8BB0\u4E3A\u5F85\u63D0\u6D4B\uFF1F",nzContent:"\u9002\u7528\u4E8E\u4EE3\u7801\u5DF2\u63D0\u4EA4\u3001\u7B49\u5F85\u6D4B\u8BD5\u9A8C\u8BC1\u7684\u60C5\u51B5\uFF0C\u65B9\u4FBF\u540E\u7EED\u5355\u72EC\u7B5B\u9009\u3002",nzOkText:"\u786E\u8BA4\u6807\u8BB0",nzCancelText:"\u53D6\u6D88",nzOnOk:()=>this.store.waitForUpdate()})}resolveConfirm(t){this.IssueResolveDialogOpen.set(!1);let e=t.trim(),i=this.store.pendingBranchCount();if(i>0){this.modal.confirm({nzTitle:`\u8FD8\u6709 ${i} \u4E2A\u672A\u5B8C\u6210\u534F\u4F5C\u5206\u652F\uFF0C\u4ECD\u8981\u6807\u8BB0\u89E3\u51B3\u5417\uFF1F`,nzContent:"\u534F\u4F5C\u5206\u652F\u4E0D\u4F1A\u81EA\u52A8\u5173\u95ED\uFF0C\u4E3B\u6D4B\u8BD5\u5355\u4F1A\u6309\u8D1F\u8D23\u4EBA\u64CD\u4F5C\u7EE7\u7EED\u8FDB\u5165\u5F85\u9A8C\u8BC1\u3002",nzOkText:"\u4ECD\u7136\u89E3\u51B3",nzCancelText:"\u53D6\u6D88",nzOnOk:()=>this.store.resolve(e||void 0)});return}this.store.resolve(e||void 0)}cancelResolveDialog(){this.IssueResolveDialogOpen.set(!1)}cancelAssignDialog(){this.IssueAssignDialogOpen.set(!1)}assignConfirm(t){this.store.assign(t),this.IssueAssignDialogOpen.set(!1)}claimConfirm(){this.modal.confirm({nzTitle:"\u786E\u5B9A\u8BA4\u9886\u8BE5\u95EE\u9898\uFF1F",nzContent:"\u8BA4\u9886\u540E\u4F60\u5C06\u6210\u4E3A\u8D1F\u8D23\u4EBA\uFF0C\u53EF\u7EE7\u7EED\u5F00\u59CB\u5904\u7406\u3002\uFF08\u8F6C\u6D3E\u9700\u524D\u5F80NGM Hub V2\uFF09",nzOnOk:()=>{this.store.claim()}})}openStartOwnBranch(){this.startOwnBranchOpen.set(!0)}confirmStartOwnBranch(t){this.store.startOwnBranch(t),this.startOwnBranchOpen.set(!1)}openCreateBranch(){this.createBranchOpen.set(!0)}confirmCreateBranch(t){this.store.createBranch(t),this.createBranchOpen.set(!1)}cancelCloseDialog(){this.IssueCloseDialogOpen.set(!1)}closeConfirm(t){}cancelAddParticipantsConfirm(){this.IssueAddParticipantsDialogOpen.set(!1)}AddParticipantsConfirm(t){this.store.addParticipants(t),this.IssueAddParticipantsDialogOpen.set(!1)}removeParticipant(t){this.store.removeParticipant(t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-detail"]],inputs:{open:[1,"open"]},outputs:{close:"close"},decls:10,vars:30,consts:[["drawerTitleTpl",""],[3,"nzOnClose","nzVisible","nzClosable","nzMaskClosable","nzWidth","nzWrapClassName","nzMask","nzTitle"],["nzDrawerContent",""],[3,"confirm","cancel","open","issue","busy"],[3,"cancel","confirm","open","busy","issue","participants"],[3,"cancel","confirm","open","busy","item"],[3,"cancel","confirm","open","busy","issue","members","participants"],[3,"cancel","confirm","open","busy","issue","actionLabel","members"],[1,"title-wrap"],[1,"title-main"],[1,"subtitle"],[3,"nzNotFoundContent"],["nzSize","large","nzTip","\u6B63\u5728\u52A0\u8F7D\u6D4B\u8BD5\u5355\u8BE6\u60C5",1,"loading"],[1,"detail-wrap"],[1,"detail-header"],[3,"actionClick","issue","logs","canStart","canClaim","canAssign","assignActionLabel","startActionLabel","canManageParticipants","canPendingUpdate","canResolve","canVerify","canReopen","canClose"],[1,"detail-content"],[1,"left-column"],[3,"issue","projectId"],[3,"submit","issueId","busy","logs","members","projectId","canComment"],[1,"right-column"],[3,"issue"],[3,"startOwn","create","startBranch","completeBranch","branches","canStartActions","canCreate","canStartOwn","canCompleteBranch","summary","busy"],[3,"removeParticipant","issue","participants","canManageParticipants","busy"],[3,"attachments","projectId","members"]],template:function(e,i){if(e&1){let o=M();r(0,"nz-drawer",1),_("nzOnClose",function(){return g(o),f(i.closeDetaile())}),S(1,Fa,5,2,"ng-template",null,0,Z)(3,Va,3,1,"ng-template",2),r(4,"app-issue-start-own-branch-dialog",3),_("confirm",function(d){return g(o),f(i.confirmStartOwnBranch(d))})("cancel",function(){return g(o),f(i.startOwnBranchOpen.set(!1))}),a(),r(5,"app-issue-create-branch-dialog",4),_("cancel",function(){return g(o),f(i.createBranchOpen.set(!1))})("confirm",function(d){return g(o),f(i.confirmCreateBranch(d))}),a(),r(6,"app-issue-close-dialog",5),_("cancel",function(){return g(o),f(i.cancelCloseDialog())})("confirm",function(d){return g(o),f(i.closeConfirm(d))}),a(),r(7,"app-issue-add-participants-dialog",6),_("cancel",function(){return g(o),f(i.cancelAddParticipantsConfirm())})("confirm",function(d){return g(o),f(i.AddParticipantsConfirm(d))}),a(),r(8,"app-issue-resolve-dialog",5),_("cancel",function(){return g(o),f(i.cancelResolveDialog())})("confirm",function(d){return g(o),f(i.resolveConfirm(d))}),a(),r(9,"app-issue-assign-dialog",7),_("cancel",function(){return g(o),f(i.cancelAssignDialog())})("confirm",function(d){return g(o),f(i.assignConfirm(d))}),a()()}if(e&2){let o=$(2);m("nzVisible",i.open())("nzClosable",!0)("nzMaskClosable",!0)("nzWidth",900)("nzWrapClassName","rd-detail-drawer")("nzMask",!1)("nzTitle",o),s(4),m("open",i.startOwnBranchOpen())("issue",i.store.issue())("busy",i.store.busy()),s(),m("open",i.createBranchOpen())("busy",i.store.busy())("issue",i.store.issue())("participants",i.store.participants()),s(),m("open",i.IssueCloseDialogOpen())("busy",i.store.busy())("item",i.store.issue()),s(),m("open",i.IssueAddParticipantsDialogOpen())("busy",i.store.busy())("issue",i.store.issue())("members",i.store.members())("participants",i.store.participants()),s(),m("open",i.IssueResolveDialogOpen())("busy",i.store.busy())("item",i.store.issue()),s(),m("open",i.IssueAssignDialogOpen())("busy",i.store.busy())("issue",i.store.issue())("actionLabel",i.store.assignActionLabel())("members",i.store.members())}},dependencies:[_i,fi,gi,He,wi,Vt,kt,en,ln,gn,nn,rn,fn,an,Xt,Yt,Kt,Gt,Ht,Qt,W],styles:[".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:#f1f5f9;color:#64748b}.detail-wrap[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;gap:10px}.detail-wrap[_ngcontent-%COMP%] .detail-header[_ngcontent-%COMP%]{width:100%}.detail-wrap[_ngcontent-%COMP%] .detail-content[_ngcontent-%COMP%]{width:100%;display:flex;gap:10px}.detail-wrap[_ngcontent-%COMP%] .wrap-title[_ngcontent-%COMP%]{width:100%;margin-bottom:12px;font-size:18px;font-weight:700;border-bottom:1px solid #bbbbbb}.detail-wrap[_ngcontent-%COMP%] .left-column[_ngcontent-%COMP%]{width:60%;display:flex;flex-direction:column;gap:10px}.detail-wrap[_ngcontent-%COMP%] .right-column[_ngcontent-%COMP%]{width:40%;display:flex;flex-direction:column;gap:10px}"]})};var Ra=(n,t)=>t.id;function ja(n,t){if(n&1&&(r(0,"nz-tag",16),u(1),a()),n&2){let e=c().$implicit;s(),T(e.moduleCode)}}function Ua(n,t){if(n&1){let e=M();r(0,"div",19)(1,"img",21),_("error",function(){g(e);let o=c().$implicit,l=c();return f(l.markPreviewImageError(o))})("mouseenter",function(o){g(e);let l=c().$implicit,d=c();return f(d.showPreview(o,l))})("mousemove",function(o){g(e);let l=c().$implicit,d=c();return f(d.movePreview(o,l))})("mouseleave",function(){g(e);let o=c(2);return f(o.hidePreview())}),a()()}if(n&2){let e=c().$implicit,i=c();s(),m("src",i.previewImageUrl(e),Ue)}}function qa(n,t){if(n&1&&(r(0,"span",20),u(1),a()),n&2){let e=c().$implicit,i=c();m("nz-tooltip","\u534F\u4F5C\u4EBA\uFF1A"+i.participantNamesText(e)),s(),x(" \xB7 ",i.participantNamesText(e)," ")}}function $a(n,t){if(n&1){let e=M();r(0,"tr",9),_("click",function(){let o=g(e).$implicit,l=c();return f(l.selectItem.emit(o))}),r(1,"td"),u(2),a(),r(3,"td",10)(4,"div",11)(5,"div",12)(6,"p",13,0),_("mouseenter",function(){let o=g(e).$implicit,l=$(7),d=c();return f(d.setTitleOverflow(o.id,l))})("mouseleave",function(){g(e);let o=c();return f(o.refreshTitleOverflow())}),r(8,"span",14),u(9),a(),r(10,"span"),u(11),a()(),r(12,"nz-tag",15),u(13),a(),r(14,"nz-tag",15),u(15),a(),C(16,ja,2,1,"nz-tag",16),a(),r(17,"div",17)(18,"app-ellipsis-text",18),u(19),a()()(),C(20,Ua,2,1,"div",19),a(),r(21,"td")(22,"nz-tag",15),u(23),a()(),r(24,"td"),u(25),a(),r(26,"td"),u(27),z(28,"br"),C(29,qa,2,2,"span",20),a(),r(30,"td"),u(31),ve(32,"date"),a()()}if(n&2){let e,i=t.$implicit,o=t.$index,l=c();de("selected-row",i.id===((e=l.selectedItem())==null?null:e.id)),s(2),T(o+1+l.query().pageSize*(l.query().page-1)),s(4),m("nzPopoverContent",i.title)("nzPopoverVisible",l.checkTitleOverflow(i))("nzPopoverTrigger",null),s(3),x(" [",i.issueNo,"] "),s(2),x(" ",i.title," "),s(),m("nzColor",l.getTypeColor(i.type)),s(),x(" ",l.getTypeLabel(i.type)," "),s(),m("nzColor",l.getPriorityColor(i.priority)),s(),x(" ",l.getPriorityLabel(i.priority)," "),s(),h(i.moduleCode?16:-1),s(2),m("lines",2)("enableToggle",!1),s(),x(" ",l.previewSummary(i)," "),s(),h(l.previewImageUrl(i)?20:-1),s(2),m("nzColor",l.getStatusColor(i.status)),s(),x(" ",l.getStatusLabel(i.status)," "),s(2),x(" ",i.reporterName||"-"," "),s(2),x(" ",i.assigneeName||"\u672A\u6307\u6D3E"),s(2),h(((i.participantNames==null?null:i.participantNames.length)??0)>0?29:-1),s(2),T(ze(32,23,i.updatedAt,"MM-dd HH:mm")??"_")}}function Wa(n,t){if(n&1){let e=M();r(0,"div",22)(1,"img",23),_("error",function(){g(e);let o=c();return f(o.onImageError(o.hoveredPreview().src))}),a()()}if(n&2){let e=c();qe("left",e.hoveredPreview().left,"px")("top",e.hoveredPreview().top,"px"),s(),m("src",e.hoveredPreview().src,Ue)("alt",e.hoveredPreview().alt)}}var Cn=class n{issues=p.required();selectedItem=p();projectId=p(null);selectItem=D();loading=p(!1);query=p.required();hoveredPreview=b(null);imageErrorSet=b(new Set);previewMap=y(()=>{let t=new Map;for(let e of this.issues())t.set(e.id,io(e.description,this.projectId(),e.id,"issues"));return t});titleOverflowPreview=b(null);getStatusLabel(t){return jt[t]}getStatusColor(t){return Ut[t]}getPriorityColor(t){return Wt[t]}getPriorityLabel(t){return qt[t]}getTypeLabel(t){return on[t]}getTypeColor(t){return sn[t]}participantNamesText(t){let e=(t.participantNames??[]).filter(Boolean);return e.length===0?"":e.join("\u3001")}previewSummary(t){return this.previewMap().get(t.id)?.summary||"\u6682\u65E0\u8BE6\u7EC6\u63CF\u8FF0"}previewImageUrl(t){return this.imageErrorSet().has(t.id)?null:this.previewMap().get(t.id)?.imageUrl??null}markPreviewImageError(t){this.imageErrorSet.update(e=>new Set([...e,t.id]))}showPreview(t,e){let i=this.previewMap().get(e.id);if(!i?.imageUrl){this.hoveredPreview.set(null);return}if(this.imageErrorSet().has(i.imageUrl)){this.hoveredPreview.set(null);return}let o=this.calcPosition(t);this.hoveredPreview.set(ce({src:i.imageUrl,alt:i.imageAlt||e.title},o))}onImageError(t){let e=new Set(this.imageErrorSet());e.add(t),this.imageErrorSet.set(e),this.hoveredPreview.set(null)}movePreview(t,e){this.hoveredPreview()&&this.showPreview(t,e)}hidePreview(){this.hoveredPreview.set(null)}checkTitleOverflow(t){return this.titleOverflowPreview()?.issueId===t.id&&this.titleOverflowPreview()?.overflowing}setTitleOverflow(t,e){let i=e.scrollWidth>e.clientWidth;this.titleOverflowPreview.set({issueId:t,overflowing:i})}refreshTitleOverflow(){this.titleOverflowPreview.set(null)}calcPosition(t){let l=t.clientX+16,d=t.clientY+16;return l+320>window.innerWidth&&(l=t.clientX-320-16),d+200>window.innerHeight&&(d=window.innerHeight-200-12),{left:l,top:d}}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issues-list-table"]],inputs:{issues:[1,"issues"],selectedItem:[1,"selectedItem"],projectId:[1,"projectId"],loading:[1,"loading"],query:[1,"query"]},outputs:{selectItem:"selectItem"},decls:19,vars:8,consts:[["titleEl",""],["nzTableLayout","fixed",1,"rd-list",3,"nzData","nzFrontPagination","nzShowPagination","nzShowSizeChanger","nzLoading"],["nzWidth","66px"],[3,"nzEllipsis"],["nzWidth","100px"],["nzWidth","120px",3,"nzEllipsis"],["nzWidth","140px"],[1,"issue-item-row",3,"selected-row"],[1,"preview-float",3,"left","top"],[1,"issue-item-row",3,"click"],[1,"title-td-container"],[1,"issue-item-text"],[1,"title-wrap"],["nz-popover","","nzPopoverOverlayClassName","issue-tooltip-popover",1,"issue-title",3,"mouseenter","mouseleave","nzPopoverContent","nzPopoverVisible","nzPopoverTrigger"],[1,"issue-no"],[3,"nzColor"],["nzColor","default"],[1,"des"],[3,"lines","enableToggle"],[1,"issue-item-img"],[1,"participant-inline",3,"nz-tooltip"],[3,"error","mouseenter","mousemove","mouseleave","src","alt"],[1,"preview-float"],[3,"error","src","alt"]],template:function(e,i){e&1&&(r(0,"nz-table",1)(1,"thead")(2,"tr")(3,"th",2),u(4,"\u5E8F\u53F7"),a(),r(5,"th",3),u(6,"\u6807\u9898"),a(),r(7,"th",4),u(8,"\u72B6\u6001"),a(),r(9,"th",4),u(10,"\u63D0\u62A5\u4EBA"),a(),r(11,"th",5),u(12,"\u8D1F\u8D23\u4EBA"),a(),r(13,"th",6),u(14,"\u66F4\u65B0\u65F6\u95F4"),a()()(),r(15,"tbody"),w(16,$a,33,26,"tr",7,Ra),a()(),C(18,Wa,2,6,"div",8)),e&2&&(m("nzData",i.issues())("nzFrontPagination",!1)("nzShowPagination",!1)("nzShowSizeChanger",!0)("nzLoading",i.loading()),s(5),m("nzEllipsis",!0),s(6),m("nzEllipsis",!0),s(5),N(i.issues()),s(2),h(i.hoveredPreview()?18:-1))},dependencies:[ji,ki,Oi,Fi,Ri,Li,Vi,Bi,Xe,Ge,Ui,Di,Ti,Et,Pt,tt,W,De],styles:[".title-td-container[_ngcontent-%COMP%]{display:flex;overflow:hidden;min-width:0}.title-td-container[_ngcontent-%COMP%] .issue-item-text[_ngcontent-%COMP%]{overflow:hidden;min-width:0}.title-td-container[_ngcontent-%COMP%] .issue-item-text[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%]{overflow:hidden;display:flex;align-items:center;gap:8px;min-width:0}.title-td-container[_ngcontent-%COMP%] .issue-item-text[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] .issue-title[_ngcontent-%COMP%]{margin-bottom:0;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block;max-width:100%}.title-td-container[_ngcontent-%COMP%] .issue-item-text[_ngcontent-%COMP%] .title-wrap[_ngcontent-%COMP%] .issue-title[_ngcontent-%COMP%] .issue-no[_ngcontent-%COMP%]{color:#1890ff}.title-td-container[_ngcontent-%COMP%] .issue-item-text[_ngcontent-%COMP%] .des[_ngcontent-%COMP%]{font-size:12px;color:#999;margin-top:2px}.title-td-container[_ngcontent-%COMP%] .issue-item-img[_ngcontent-%COMP%]{flex-shrink:0;margin-left:auto;width:60px;height:60px;overflow:hidden;border-radius:8px;border:1px solid #f0f0f0}.title-td-container[_ngcontent-%COMP%] .issue-item-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}.participant-inline[_ngcontent-%COMP%]{font-size:12px;color:gray;font-weight:400;max-width:100%;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.issue-item-row[_ngcontent-%COMP%]{cursor:pointer}.issue-item-row.selected-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]:first-child{border-left:4px solid #91d5ff}.issue-item-row.selected-row[_ngcontent-%COMP%]:hover > td[_ngcontent-%COMP%]{background-color:#e6f7ff}.issue-item-row.selected-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{background-color:#e6f7ff}.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%]{max-width:100%;max-height:100%;object-fit:contain} .issue-tooltip-popover .ant-popover-inner{background-color:#000000b3;color:#fff} .issue-tooltip-popover .ant-popover-inner-content{color:#fff;font-size:1rem;padding:8px 6px} .issue-tooltip-popover .ant-popover-arrow-content{background-color:#000c}"]})};var Qa={page:1,pageSize:10,keyword:"",projectId:"",status:["open","in_progress","reopened"],types:[],priority:[],reporterIds:[],assigneeIds:[],moduleCodes:[],versionCodes:[],environmentCodes:[],includeAssigneeParticipants:!0,sortBy:"createdAt",sortOrder:"desc"},pt=class n{issueApi=v(it);projectContext=v(Ne);userStore=v(Pe);queryState=b(ce({},Qa));resultState=b(null);loadingState=b(!1);query=y(()=>this.queryState());result=y(()=>this.resultState());items=y(()=>this.resultState()?.items??[]);loading=y(()=>this.loadingState());total=y(()=>this.resultState()?.total??0);page=y(()=>this.queryState().page??1);pageSize=y(()=>this.queryState().pageSize??20);currentProjectId=this.projectContext.currentProjectId;initialize(){this.userStore.ensureUserLoaded(),this.load()}refreshForProject(t){if(this.queryState.update(e=>zn(ce({},e),{projectId:this.currentProjectId()??"",page:1})),!t){this.resultState.set({items:[],page:1,pageSize:Ha(this.queryState()),total:0}),this.loadingState.set(!1);return}this.loadingState.set(!0),this.resultState.set(null),this.load()}updateQuery(t){this.queryState.update(e=>zn(ce(ce({},e),t),{page:t.page??e.page??1}))}async load(){let t=this.currentProjectId();if(!t)return;let e=this.queryState();this.loadingState.set(!0);try{let i=await this.issueApi.getIssuesList(t,e);this.resultState.set(i),this.loadingState.set(!1)}catch{this.loadingState.set(!1)}}async createIssue(t,e){let i=this.currentProjectId()??"",o=t.title.trim();if(!i||!o)return;let l=e??[],d=t.assigneeId??null,fe=[...new Set((t.participantIds??[]).map(J=>J.trim()).filter(Boolean))].filter(J=>J!==d);this.loadingState.set(!0),this.load(),this.loadingState.set(!1)}static \u0275fac=function(e){return new(e||n)};static \u0275prov=me({token:n,factory:n.\u0275fac})};function Ha(n){return n.pageSize&&n.pageSize>0?n.pageSize:20}var xo=(n,t)=>t.value;function Ka(n,t){if(n&1){let e=M();r(0,"button",15),_("click",function(){let o=g(e).$implicit,l=c();return f(l.updateStatusSelectedOpts(o.value))}),u(1),a()}if(n&2){let e=t.$implicit,i=c();m("nzType",i.statusBtnTypeByType(e.value)),s(),x(" ",e.label," ")}}function Ya(n,t){if(n&1){let e=M();r(0,"button",16),_("click",function(){let o=g(e).$implicit,l=c();return f(l.updatePrioritySelectedOpts(o.value))}),u(1),a()}if(n&2){let e=t.$implicit,i=c();m("nzType",i.priorityBtnTypeByType(e.value)),s(),x(" ",e.label," ")}}var hn=class n{userStore=v(Pe);query=p.required();queryChange=D();statusOptions=et;priorityOptions=$t;viewType=b("list");todoChecked=y(()=>{let t=["open","in_progress","reopened"];return t.every(e=>this.query().status.includes(e))&&this.query().status.length===t.length});mineChecked=y(()=>this.query().assigneeIds.includes(this.userStore.currentUserId())&&this.query().assigneeIds.length===1);updateKeyword(t){this.queryChange.emit({keyword:t})}updatePrioritySelectedOpts(t){let e=this.query().priority;if(t===""){this.queryChange.emit({priority:[]});return}e.includes(t)?this.queryChange.emit({priority:e.filter(i=>i!==t)}):this.queryChange.emit({priority:[...e,t]})}updateStatusSelectedOpts(t){let e=this.query().status;if(t===""){this.queryChange.emit({status:[]});return}e.includes(t)?this.queryChange.emit({status:e.filter(i=>i!==t)}):this.queryChange.emit({status:[...e,t]})}statusBtnTypeByType(t){return t===""&&this.query().status.length===0||t!==""&&this.query().status.includes(t)?"primary":"default"}priorityBtnTypeByType(t){return t===""&&this.query().priority.length===0||t!==""&&this.query().priority.includes(t)?"primary":"default"}todoCheckedChanged(t){t?this.queryChange.emit({status:["open","in_progress","reopened"]}):this.queryChange.emit({status:[]})}mineCheckedChanged(t){t?this.queryChange.emit({assigneeIds:[this.userStore.currentUserId(),"__unassigned__"]}):this.queryChange.emit({assigneeIds:[]})}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issue-filter-bar"]],inputs:{query:[1,"query"]},outputs:{queryChange:"queryChange"},decls:23,vars:4,consts:[[1,"toolbar"],[1,"filter-group"],[1,"keyword-wrap"],["nzInputPrefix","","nzType","search","nzTheme","outline"],["nz-input","","type","text","placeholder","\u641C\u7D22\u6807\u9898\u3001\u7F16\u53F7\u6216\u63D0\u62A5\u4EBA",3,"ngModelChange","ngModel"],[1,"status-filter-wrap"],[1,"label"],["nzType","tags","nzTheme","fill"],["nz-button","","type","button","nzShape","round",3,"nzType"],[1,"priority-filter-wrap"],["nzType","experiment","nzTheme","fill"],["nz-button","","type","button",3,"nzType"],[1,"right-col"],["nz-checkbox","",3,"ngModelChange","ngModel"],["nz-checkbox","",3,"ngModelChange","ngModel","disabled"],["nz-button","","type","button","nzShape","round",3,"click","nzType"],["nz-button","","type","button",3,"click","nzType"]],template:function(e,i){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"nz-input-wrapper"),z(4,"nz-icon",3),r(5,"input",4),_("ngModelChange",function(l){return i.updateKeyword(l)}),a()()(),r(6,"div",5)(7,"span",6),z(8,"nz-icon",7),u(9," \u72B6\u6001\uFF1A "),a(),w(10,Ka,2,2,"button",8,xo),a(),r(12,"div",9)(13,"span",6),z(14,"nz-icon",10),u(15," \u4F18\u5148\u7EA7\uFF1A "),a(),w(16,Ya,2,2,"button",11,xo),a()(),r(18,"div",12)(19,"label",13),_("ngModelChange",function(l){return i.todoCheckedChanged(l)}),u(20,"\u4EC5\u770B\u5F85\u89E3\u51B3"),a(),r(21,"label",14),_("ngModelChange",function(l){return i.mineCheckedChanged(l)}),u(22,"\u4EC5\u770B\u6211\u8D1F\u8D23"),a()()()),e&2&&(s(5),m("ngModel",i.query().keyword),s(5),N(i.statusOptions),s(6),N(i.priorityOptions),s(3),m("ngModel",i.todoChecked()),s(2),m("ngModel",i.mineChecked())("disabled",!i.userStore.currentUserId()))},dependencies:[X,le,Si,xi,A,K,L,H,Q,ee,Lt,Pi,Ni,B,ae,Y,G],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%] .filter-group[_ngcontent-%COMP%]{width:80%;display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between}.toolbar[_ngcontent-%COMP%] .filter-group[_ngcontent-%COMP%] .keyword-wrap[_ngcontent-%COMP%]{width:100%}.toolbar[_ngcontent-%COMP%] .status-filter-wrap[_ngcontent-%COMP%]{min-width:0;display:flex;flex-wrap:wrap;gap:10px}.toolbar[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%]{height:100%;margin-top:auto;display:flex;flex-direction:column;align-items:end;justify-content:end}.toolbar[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%] .view-type[_ngcontent-%COMP%]{display:flex;justify-content:end}"]})};function Ga(n,t){if(n&1){let e=M();r(0,"app-issues-list-table",10),_("selectItem",function(o){g(e);let l=c();return f(l.selectIssue(o))}),a()}if(n&2){let e=c();m("issues",e.issues())("query",e.query())("selectedItem",e.selectedIssue())("projectId",e.currentProjectId())("loading",e.loading())}}function Xa(n,t){}function Za(n,t){if(n&1&&u(0),n&2){let e=t.$implicit;x("\u5171 ",e," \u6761\u8BB0\u5F55")}}var yn=class n{issueListStore=v(pt);issueDetailStore=v(Re);projectContextStore=v(Ne);router=v(ii);route=v(ni);modal=v(Qe);statusOptions=et;priorityOptions=$t;viewType=b("list");loading=this.issueListStore.loading;issues=this.issueListStore.items;total=this.issueListStore.total;query=this.issueListStore.query;selectedIssue=this.issueDetailStore.issue;currentProjectId=this.projectContextStore.currentProjectId;issueDetailLoading=this.issueDetailStore.loading;open=b(!1);currentPriority=b("");constructor(){let t=this.projectContextStore.currentProjectId();this.issueListStore.initialize(),t&&this.projectContextStore.loadProjectMembers(t),this.route.queryParamMap.subscribe(o=>{let l=o.get("detail");l&&(this.selectedIssue()?.id===l||this.issueDetailLoading()||l&&!this.selectedIssue()&&(this.issueDetailStore.load(l),this.open.set(!0)))});let e,i=this.issueListStore.query();R(()=>{let o=this.issueListStore.query(),l=i&&(i.page!==o.page||i.pageSize!==o.pageSize);if(i=ce({},o),l){clearTimeout(e),this.issueListStore.load();return}clearTimeout(e),e=setTimeout(()=>{this.issueListStore.load()},500)})}onPageChange(t){this.issueListStore.updateQuery({page:t})}onPageSizeChange(t){this.issueListStore.updateQuery({pageSize:t})}selectIssue(t){this.openDetail(t),this.issueDetailStore.load(t.id),this.open.set(!0)}closeIssueDetail(){this.open.set(!1),this.issueDetailStore.setSelectedIssue(null),this.router.navigate([],{queryParams:{}})}openDetail(t){this.router.navigate([],{relativeTo:this.route,queryParams:{detail:t.id},queryParamsHandling:"merge"})}updateQuery(t){this.issueListStore.updateQuery(t)}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=I({type:n,selectors:[["app-issues"]],features:[It([pt,Re])],decls:12,vars:11,consts:[["totalTemplate",""],[3,"title","loading","isFullscreen","isOverflowYAuto"],[1,"issues-content"],[1,"filter-container"],[3,"queryChange","query"],[1,"list-content"],[3,"issues","query","selectedItem","projectId","loading"],[1,"pagination-bar"],["nzShowSizeChanger","","nzShowQuickJumper","",3,"nzPageIndexChange","nzPageSizeChange","nzPageIndex","nzTotal","nzShowTotal","nzPageSize"],[3,"close","open"],[3,"selectItem","issues","query","selectedItem","projectId","loading"]],template:function(e,i){if(e&1){let o=M();r(0,"app-page-layout",1)(1,"div",2)(2,"div",3)(3,"app-issue-filter-bar",4),_("queryChange",function(d){return g(o),f(i.updateQuery(d))}),a()(),r(4,"div",5),C(5,Ga,1,5,"app-issues-list-table",6)(6,Xa,0,0),r(7,"div",7)(8,"nz-pagination",8),zt("nzPageIndexChange",function(d){return g(o),vt(i.query().page,d)||(i.query().page=d),f(d)}),_("nzPageIndexChange",function(d){return g(o),f(i.onPageChange(d))})("nzPageSizeChange",function(d){return g(o),f(i.onPageSizeChange(d))}),a(),S(9,Za,1,1,"ng-template",null,0,Z),a()()(),r(11,"app-issue-detail",9),_("close",function(){return g(o),f(i.closeIssueDetail())}),a()()}if(e&2){let o=$(10);m("title","\u6D4B\u8BD5\u8DDF\u8E2A")("loading",i.loading())("isFullscreen",!0)("isOverflowYAuto",!1),s(3),m("query",i.query()),s(2),h(i.viewType()==="list"?5:6),s(3),yt("nzPageIndex",i.query().page),m("nzTotal",i.total())("nzShowTotal",o)("nzPageSize",i.query().pageSize),s(3),m("open",i.open())}},dependencies:[Mi,B,X,A,Lt,Q,Ai,Ei,j,Cn,hn,_n],styles:[".issues-content[_ngcontent-%COMP%]{width:100%;min-width:630px;height:100%;display:flex;flex-direction:column;align-items:center;overflow:auto}.issues-content[_ngcontent-%COMP%] .filter-container[_ngcontent-%COMP%]{width:100%;padding:0 48px}.issues-content[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{width:100%;padding:12px 48px 8px;min-height:0;flex-grow:1}.issues-content[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%] .pagination-bar[_ngcontent-%COMP%]{padding:12px;display:flex;justify-content:end}"]})};var Ja=[{path:"",component:yn}],vn=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=pe({type:n});static \u0275inj=ue({imports:[W,Dn.forChild(Ja),Dn]})};var So=class n{static \u0275fac=function(e){return new(e||n)};static \u0275mod=pe({type:n});static \u0275inj=ue({imports:[W,vn]})};export{So as IssuesModule};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b as Dn}from"./chunk-XJ5KZQNN.js";import{a as Tn,c as _t,d as xt}from"./chunk-O2EYEF7J.js";import{b as In}from"./chunk-ACAZUX6C.js";import{b as _n}from"./chunk-INL2PELS.js";import{c as Fn,d as Pn,e as Nn}from"./chunk-LQ5OXSW7.js";import{a as Mn,b as wn,c as En,d as zn}from"./chunk-HGONFYP6.js";import{a as gt,b as ht,c as Ct,d as vt,e as St}from"./chunk-SVQWPHF5.js";import{b as ft}from"./chunk-GDWS2L66.js";import{c as rt}from"./chunk-ZNTJRLVH.js";import{a as je,b as dt}from"./chunk-B6MBYCXI.js";import{a as xn,b as ut}from"./chunk-PIK5YPIB.js";import"./chunk-YVZHJ76K.js";import"./chunk-SIVPP74B.js";import{a as yn,b as mt}from"./chunk-WD4IAQR3.js";import{a as bn,b as Se}from"./chunk-WF2QTF5L.js";import"./chunk-HRXCR3IN.js";import"./chunk-DW7F5PEA.js";import"./chunk-KVFR7GFV.js";import{a as De,b as fe}from"./chunk-2X3MRS27.js";import{a as he,c as Ce,d as vn,e as Sn,f as ve}from"./chunk-4KETC6EB.js";import{a as Vt,b as Ie,c as Te,d as ke,e as mn,g as dn}from"./chunk-JU3TEDBV.js";import{a as lt,b as ct}from"./chunk-TMX5TTV3.js";import{a as hn}from"./chunk-UQGCUFNM.js";import{e as pn,f as ln,g as ot,l as cn}from"./chunk-BYEU6KGP.js";import{b as gn}from"./chunk-5T5KA5PG.js";import{d as fn,e as Be,f as Cn}from"./chunk-UXXWRMM6.js";import{Eb as Oe,Fa as me,Ga as U,Gb as ie,Hb as at,Jb as st,Kb as oe,Lb as pt,Ma as sn,Na as nt,Oa as de,Pa as it,Ra as Ne,Rb as un,Sa as H,Ub as Y,Zb as ge,ac as Z,dc as Ae,fc as re}from"./chunk-SPRWNZHF.js";import"./chunk-HFZLJHYR.js";import{h as $t}from"./chunk-L5D75AMV.js";import{h as an,n as N,u as tt}from"./chunk-T3KK7ZXB.js";import{$b as pe,Ac as Ze,Ec as Bt,Fb as O,Fc as ne,Gb as Qe,Gc as we,Ha as F,Jc as c,Kc as k,Lb as Pe,Lc as te,Nc as B,Oa as qe,Oc as j,Pc as $,Tc as on,V as Zt,Wb as I,Xc as et,Yb as T,a as q,ac as le,b as ee,bc as x,cc as r,cd as jt,d as Hn,dc as a,e as Yn,ec as g,g as Ge,hd as W,ic as tn,jc as nn,l as ze,lc as A,m as Xt,na as Fe,nb as p,nd as Le,oa as Ke,ra as en,rc as P,rd as rn,sa as z,uc as v,ya as y,yc as Je,z as se,za as b,zc as Xe}from"./chunk-WI67LAOV.js";var $n=Hn((Yt,Gt)=>{"use strict";(function(i,t){typeof Yt=="object"&&typeof Gt<"u"?Gt.exports=t():typeof define=="function"&&define.amd?define(t):(i=typeof globalThis<"u"?globalThis:i||self).dayjs=t()})(Yt,function(){"use strict";var i=1e3,t=6e4,e=36e5,n="millisecond",o="second",s="minute",l="hour",h="day",G="week",w="month",xe="quarter",J="year",ae="date",qt="Invalid Date",Rn=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,Wn=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,Ln={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(C){var d=["th","st","nd","rd"],u=C%100;return"["+C+(d[(u-20)%10]||d[u]||d[0])+"]"}},Ot=function(C,d,u){var f=String(C);return!f||f.length>=d?C:""+Array(d+1-f.length).join(u)+C},Un={s:Ot,z:function(C){var d=-C.utcOffset(),u=Math.abs(d),f=Math.floor(u/60),m=u%60;return(d<=0?"+":"-")+Ot(f,2,"0")+":"+Ot(m,2,"0")},m:function C(d,u){if(d.date()<u.date())return-C(u,d);var f=12*(u.year()-d.year())+(u.month()-d.month()),m=d.clone().add(f,w),S=u-m<0,_=d.clone().add(f+(S?-1:1),w);return+(-(f+(u-m)/(S?m-_:_-m))||0)},a:function(C){return C<0?Math.ceil(C)||0:Math.floor(C)},p:function(C){return{M:w,y:J,w:G,d:h,D:ae,h:l,m:s,s:o,ms:n,Q:xe}[C]||String(C||"").toLowerCase().replace(/s$/,"")},u:function(C){return C===void 0}},Ve="en",ye={};ye[Ve]=Ln;var Qt="$isDayjsObject",At=function(C){return C instanceof He||!(!C||!C[Qt])},Ue=function C(d,u,f){var m;if(!d)return Ve;if(typeof d=="string"){var S=d.toLowerCase();ye[S]&&(m=S),u&&(ye[S]=u,m=S);var _=d.split("-");if(!m&&_.length>1)return C(_[0])}else{var E=d.name;ye[E]=d,m=E}return!f&&m&&(Ve=m),m||!f&&Ve},V=function(C,d){if(At(C))return C.clone();var u=typeof d=="object"?d:{};return u.date=C,u.args=arguments,new He(u)},M=Un;M.l=Ue,M.i=At,M.w=function(C,d){return V(C,{locale:d.$L,utc:d.$u,x:d.$x,$offset:d.$offset})};var He=(function(){function C(u){this.$L=Ue(u.locale,null,!0),this.parse(u),this.$x=this.$x||u.x||{},this[Qt]=!0}var d=C.prototype;return d.parse=function(u){this.$d=(function(f){var m=f.date,S=f.utc;if(m===null)return new Date(NaN);if(M.u(m))return new Date;if(m instanceof Date)return new Date(m);if(typeof m=="string"&&!/Z$/i.test(m)){var _=m.match(Rn);if(_){var E=_[2]-1||0,D=(_[7]||"0").substring(0,3);return S?new Date(Date.UTC(_[1],E,_[3]||1,_[4]||0,_[5]||0,_[6]||0,D)):new Date(_[1],E,_[3]||1,_[4]||0,_[5]||0,_[6]||0,D)}}return new Date(m)})(u),this.init()},d.init=function(){var u=this.$d;this.$y=u.getFullYear(),this.$M=u.getMonth(),this.$D=u.getDate(),this.$W=u.getDay(),this.$H=u.getHours(),this.$m=u.getMinutes(),this.$s=u.getSeconds(),this.$ms=u.getMilliseconds()},d.$utils=function(){return M},d.isValid=function(){return this.$d.toString()!==qt},d.isSame=function(u,f){var m=V(u);return this.startOf(f)<=m&&m<=this.endOf(f)},d.isAfter=function(u,f){return V(u)<this.startOf(f)},d.isBefore=function(u,f){return this.endOf(f)<V(u)},d.$g=function(u,f,m){return M.u(u)?this[f]:this.set(m,u)},d.unix=function(){return Math.floor(this.valueOf()/1e3)},d.valueOf=function(){return this.$d.getTime()},d.startOf=function(u,f){var m=this,S=!!M.u(f)||f,_=M.p(u),E=function(Me,K){var ue=M.w(m.$u?Date.UTC(m.$y,K,Me):new Date(m.$y,K,Me),m);return S?ue:ue.endOf(h)},D=function(Me,K){return M.w(m.toDate()[Me].apply(m.toDate("s"),(S?[0,0,0,0]:[23,59,59,999]).slice(K)),m)},R=this.$W,L=this.$M,X=this.$D,Ee="set"+(this.$u?"UTC":"");switch(_){case J:return S?E(1,0):E(31,11);case w:return S?E(1,L):E(0,L+1);case G:var be=this.$locale().weekStart||0,Re=(R<be?R+7:R)-be;return E(S?X-Re:X+(6-Re),L);case h:case ae:return D(Ee+"Hours",0);case l:return D(Ee+"Minutes",1);case s:return D(Ee+"Seconds",2);case o:return D(Ee+"Milliseconds",3);default:return this.clone()}},d.endOf=function(u){return this.startOf(u,!1)},d.$set=function(u,f){var m,S=M.p(u),_="set"+(this.$u?"UTC":""),E=(m={},m[h]=_+"Date",m[ae]=_+"Date",m[w]=_+"Month",m[J]=_+"FullYear",m[l]=_+"Hours",m[s]=_+"Minutes",m[o]=_+"Seconds",m[n]=_+"Milliseconds",m)[S],D=S===h?this.$D+(f-this.$W):f;if(S===w||S===J){var R=this.clone().set(ae,1);R.$d[E](D),R.init(),this.$d=R.set(ae,Math.min(this.$D,R.daysInMonth())).$d}else E&&this.$d[E](D);return this.init(),this},d.set=function(u,f){return this.clone().$set(u,f)},d.get=function(u){return this[M.p(u)]()},d.add=function(u,f){var m,S=this;u=Number(u);var _=M.p(f),E=function(L){var X=V(S);return M.w(X.date(X.date()+Math.round(L*u)),S)};if(_===w)return this.set(w,this.$M+u);if(_===J)return this.set(J,this.$y+u);if(_===h)return E(1);if(_===G)return E(7);var D=(m={},m[s]=t,m[l]=e,m[o]=i,m)[_]||1,R=this.$d.getTime()+u*D;return M.w(R,this)},d.subtract=function(u,f){return this.add(-1*u,f)},d.format=function(u){var f=this,m=this.$locale();if(!this.isValid())return m.invalidDate||qt;var S=u||"YYYY-MM-DDTHH:mm:ssZ",_=M.z(this),E=this.$H,D=this.$m,R=this.$M,L=m.weekdays,X=m.months,Ee=m.meridiem,be=function(K,ue,We,Ye){return K&&(K[ue]||K(f,S))||We[ue].slice(0,Ye)},Re=function(K){return M.s(E%12||12,K,"0")},Me=Ee||function(K,ue,We){var Ye=K<12?"AM":"PM";return We?Ye.toLowerCase():Ye};return S.replace(Wn,function(K,ue){return ue||(function(We){switch(We){case"YY":return String(f.$y).slice(-2);case"YYYY":return M.s(f.$y,4,"0");case"M":return R+1;case"MM":return M.s(R+1,2,"0");case"MMM":return be(m.monthsShort,R,X,3);case"MMMM":return be(X,R);case"D":return f.$D;case"DD":return M.s(f.$D,2,"0");case"d":return String(f.$W);case"dd":return be(m.weekdaysMin,f.$W,L,2);case"ddd":return be(m.weekdaysShort,f.$W,L,3);case"dddd":return L[f.$W];case"H":return String(E);case"HH":return M.s(E,2,"0");case"h":return Re(1);case"hh":return Re(2);case"a":return Me(E,D,!0);case"A":return Me(E,D,!1);case"m":return String(D);case"mm":return M.s(D,2,"0");case"s":return String(f.$s);case"ss":return M.s(f.$s,2,"0");case"SSS":return M.s(f.$ms,3,"0");case"Z":return _}return null})(K)||_.replace(":","")})},d.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},d.diff=function(u,f,m){var S,_=this,E=M.p(f),D=V(u),R=(D.utcOffset()-this.utcOffset())*t,L=this-D,X=function(){return M.m(_,D)};switch(E){case J:S=X()/12;break;case w:S=X();break;case xe:S=X()/3;break;case G:S=(L-R)/6048e5;break;case h:S=(L-R)/864e5;break;case l:S=L/e;break;case s:S=L/t;break;case o:S=L/i;break;default:S=L}return m?S:M.a(S)},d.daysInMonth=function(){return this.endOf(w).$D},d.$locale=function(){return ye[this.$L]},d.locale=function(u,f){if(!u)return this.$L;var m=this.clone(),S=Ue(u,f,!0);return S&&(m.$L=S),m},d.clone=function(){return M.w(this.$d,this)},d.toDate=function(){return new Date(this.valueOf())},d.toJSON=function(){return this.isValid()?this.toISOString():null},d.toISOString=function(){return this.$d.toISOString()},d.toString=function(){return this.$d.toUTCString()},C})(),Jt=He.prototype;return V.prototype=Jt,[["$ms",n],["$s",o],["$m",s],["$H",l],["$W",h],["$M",w],["$y",J],["$D",ae]].forEach(function(C){Jt[C[1]]=function(d){return this.$g(d,C[0],C[1])}}),V.extend=function(C,d){return C.$i||(C(d,He,V),C.$i=!0),V},V.locale=Ue,V.isDayjs=At,V.unix=function(C){return V(1e3*C)},V.en=ye[Ve],V.Ls=ye,V.p={},V})});var _e=class i{api=z(fn);generate(t,e={}){return this.api.post(`/api/sprite/generate/${t}`,e)}getConfig(t){return this.api.get(`/api/sprite/config/${t}`)}createConfig(t,e,n){return this.api.post(`/api/sprite/config/${t}`,{config:n,assets:e})}checkout(t,e={}){return this.api.post(`/api/svn/sync/${t}`,e)}streamCheckout(t,e={}){return this.api.post(`/api/svn/sync/stream/${t}`,e)}getRuntimes(t){return this.api.get(`/api/svn/runtime/${t}`)}getSprites(t,e=!1){let n=new tt().set("local",e.toString());return this.api.get(`/api/sprite/list/${t}`,n)}browseIconGroups(t){return this.api.get(`/api/sprite/browse/icons/groups/${t}`)}browseIconFiles(t,e){let n=new tt().set("group",e);return this.api.get(`/api/sprite/browse/icons/files/${t}`,n)}browseImages(t,e=""){let n=new tt().set("dir",e);return this.api.get(`/api/sprite/browse/images/list/${t}`,n)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Fe({token:i,factory:i.\u0275fac,providedIn:"root"})};var $e=class i{projectContext=z(hn);api=z(_e);project=W(()=>this.projectContext.currentProject());async loadConfig(){if(!this.project())throw new Error("No project selected");let t=this.project().id;return await se(this.api.getConfig(t))}async createConfig(t,e){if(!this.project())throw new Error("No project selected");let n=this.project().id,o=await se(this.api.createConfig(n,t,e));return this.projectContext.patchProject(o.project),o.cfg}async checkout(t={}){let e=this.ensureProjectId();return await se(this.api.checkout(e,t))}async streamCheckout(t={}){let e=this.ensureProjectId();return await se(this.api.streamCheckout(e,t))}async getSvnRuntimes(){let t=this.ensureProjectId();return await se(this.api.getRuntimes(t))}async generate(){let t=this.ensureProjectId();return await se(this.api.generate(t))}async getSprites(){let t=this.ensureProjectId();return await se(this.api.getSprites(t))}async getLocalSprites(){let t=this.ensureProjectId();return await se(this.api.getSprites(t,!0))}ensureProjectId(){let t=this.project();if(!t)throw new Error("No project selected");return t.id}static \u0275fac=function(e){return new(e||i)};static \u0275prov=Fe({token:i,factory:i.\u0275fac,providedIn:"root"})};var yt=class i{constructor(t){this.ws=t;this.ws.messages().subscribe(e=>this.onMessage(e)),this.ws.stateChanges().subscribe(e=>{e==="open"&&this.lastWsState!=="open"&&this.replaySubs(),this.lastWsState=e})}subs=new Map;lastWsState="idle";event$=new ze;eventByProject=new Map;runtimesByProject=new Map;outputByKey=new Map;ensureConnected(){this.ws.connect()}subscribeProject(t,e=1e3){let n=String(t??"").trim();if(!n)return;let o=Math.max(0,Math.min(5e3,e|0));this.subs.get(n)!==o&&(this.subs.set(n,o),this.ensureProjectEventSubject(n),this.ensureProjectRuntimesSubject(n),this.ws.isOpen()&&this.ws.send({op:"sub",topic:"svn",projectId:n,tail:o}))}unsubscribeProject(t){let e=String(t??"").trim();this.subs.has(e)&&(this.subs.delete(e),this.ws.isOpen()&&this.ws.send({op:"unsub",topic:"svn",projectId:e}))}watchProject(t,e=1e3){let n=String(t??"").trim();this.ensureConnected(),this.subscribeProject(n,e);let o=new Ge;return o.add(()=>this.unsubscribeProject(n)),o}bindToDestroyRef(t,e,n=1e3){let o=String(t??"").trim();this.ensureConnected(),this.subscribeProject(o,n),e.onDestroy(()=>this.unsubscribeProject(o))}events$(){return this.event$.asObservable()}eventsByProject$(t){let e=String(t??"").trim();return this.ensureProjectEventSubject(e).asObservable()}runtimes$(t){let e=String(t??"").trim();return this.ensureProjectRuntimesSubject(e).asObservable().pipe(Zt())}output$(t){let e=this.keyOf(t);return this.outputByKey.has(e)||this.outputByKey.set(e,new ze),this.outputByKey.get(e).asObservable()}replaySubs(){for(let[t,e]of this.subs.entries())this.ws.send({op:"sub",topic:"svn",projectId:t,tail:e})}onMessage(t){if(t?.op!=="svn.event")return;let e=t,n=e.type,o=e.payload,s=String(o?.projectId??"").trim();s&&(this.event$.next(e),this.ensureProjectEventSubject(s).next(e),this.applyEvent(n,o,e.ts??Date.now()))}applyEvent(t,e,n){let o=String(e?.projectId??"").trim(),s=String(e?.sourceId??"").trim();if(!(!o||!s))switch(t){case"runtime":{let l=e;this.upsert(o,s,h=>ee(q(q({},h),l),{lastEventAt:n}),!0);return}case"started":{let l=e;this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n}));return}case"output":{let l=e,h=l.type,G=String(l.data??"");if(G){let w=this.keyOf(o);this.outputByKey.has(w)||this.outputByKey.set(w,new ze),this.outputByKey.get(w).next({projectId:o,sourceId:s,stream:h,text:G,status:l.status,ts:n})}this.upsert(o,s,w=>ee(q({},w),{status:l.status,lastEventAt:n,lastStdout:h==="stdout"?G:w.lastStdout,lastStderr:h==="stderr"?G:w.lastStderr}));return}case"progress":{let l=e;this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n,total:l.total??h.total,changed:l.changed??h.changed,percent:l.percent??h.percent}));return}case"done":{let l=e;this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n,updatedAt:l.updatedAt,lastSyncAt:l.updatedAt,lastSyncMode:l.mode,desiredUrl:l.desiredUrl,currentUrl:l.currentUrl}));return}case"failed":{let l=e;if(this.upsert(o,s,h=>ee(q({},h),{status:l.status,lastEventAt:n,updatedAt:l.updatedAt,lastError:l.error,lastStderr:l.error?`[failed] ${l.error}`:h.lastStderr})),l.error){let h=this.keyOf(o);this.outputByKey.has(h)||this.outputByKey.set(h,new ze),this.outputByKey.get(h).next({projectId:o,sourceId:s,stream:"stderr",text:`[failed] ${l.error}
|
|
2
|
+
`,status:l.status,ts:n})}return}default:return}}upsert(t,e,n,o=!1){let s=this.ensureProjectRuntimesSubject(t),l=s.value??[],h=l.findIndex(ae=>ae.projectId===t&&ae.sourceId===e),G=h>=0?l[h]:{projectId:t,sourceId:e},w=n(G),xe=o?q(q({},G),w):w,J=l.slice();h>=0?J[h]=xe:J.unshift(xe),s.next(J.slice(0,200))}ensureProjectEventSubject(t){let e=String(t??"").trim();return this.eventByProject.has(e)||this.eventByProject.set(e,new ze),this.eventByProject.get(e)}ensureProjectRuntimesSubject(t){let e=String(t??"").trim();return this.runtimesByProject.has(e)||this.runtimesByProject.set(e,new Xt([])),this.runtimesByProject.get(e)}keyOf(t){return`svn:${t}`}static \u0275fac=function(e){return new(e||i)(en(gn))};static \u0275prov=Fe({token:i,factory:i.\u0275fac,providedIn:"root"})};var Rt=()=>({type:"question-circle",theme:"outline"}),bt=class i{draft;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-step-basic"]],inputs:{draft:"draft"},decls:35,vars:11,consts:[["nzTitle","\u57FA\u7840\u8BBE\u7F6E"],["nz-form","","nzLayout","vertical"],["nzTooltipTitle","\u9879\u76EE\u7684\u539F\u5C3A\u5BF8\u56FE\u6807SVN\u5730\u5740\uFF0C\u7528\u4E8E\u5236\u4F5C\u9879\u76EE\u6240\u9700\u96EA\u78A7\u56FE\uFF08\u53EF\u9009\uFF09",3,"nzTooltipIcon"],["nz-input","","name","iconSvnPath","placeholder","\u8F93\u5165\u539F\u5C3A\u5BF8\u56FE\u6807SVN\u5730\u5740\uFF08\u53EF\u9009\uFF09",3,"ngModelChange","ngModel"],[1,"hint"],["nzTooltipTitle","\u9879\u76EE\u7684\u5176\u4ED6\u5207\u56FESVN\u5730\u5740\uFF0C\u65B9\u4FBF\u6D4F\u89C8\u548C\u67E5\u770B\u8BE6\u60C5",3,"nzTooltipIcon"],["nz-input","","name","otherImagesSvnPath","placeholder","\u8F93\u5165\u5176\u4ED6\u5207\u56FE SVN \u5730\u5740",3,"ngModelChange","ngModel"],["nzTooltipTitle","\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939\u8DEF\u5F84\uFF0C\u652F\u6301\u4E24\u7EA7\u904D\u5386\uFF08\u6839\u76EE\u5F55 + \u4E00\u7EA7\u5B50\u76EE\u5F55\uFF09\u751F\u6210\u96EA\u78A7\u56FE",3,"nzTooltipIcon"],["nzHasFeedback","","nzErrorTip","\u8BF7\u8F93\u5165\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939\u8DEF\u5F84"],["nz-input","","name","localImageRoot","placeholder","\u8F93\u5165\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939\u8DEF\u5F84",3,"ngModelChange","ngModel"],["nzRequired","","nzTooltipTitle","\u7528\u4E8E\u5B58\u653E\u751F\u6210\u7684\u96EA\u78A7\u56FE\u6587\u4EF6"],["nzHasFeedback","","nzErrorTip","\u8BF7\u8F93\u5165\u5B58\u653E\u96EA\u78A7\u56FE\u7684\u5BFC\u51FA\u76EE\u5F55"],["nz-input","","required","","name","spriteExportDir","placeholder","\u8F93\u5165\u96EA\u78A7\u56FE\u5BFC\u51FA\u76EE\u5F55",3,"ngModelChange","ngModel"],["nzRequired","","nzTooltipTitle","\u7528\u4E8E\u5B58\u653E\u751F\u6210\u7684Less\u6587\u4EF6"],["nzHasFeedback","","nzErrorTip","\u8BF7\u8F93\u5165\u5B58\u653ELess\u6587\u4EF6\u7684\u5BFC\u51FA\u76EE\u5F55"],["nz-input","","required","","name","lessExportDir","placeholder","\u8F93\u5165Less\u5BFC\u51FA\u76EE\u5F55",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"form",1)(2,"nz-form-item")(3,"nz-form-label",2),c(4,"\u539F\u5C3A\u5BF8\u56FE\u6807 SVN \u5730\u5740"),a(),r(5,"nz-form-control")(6,"input",3),$("ngModelChange",function(s){return j(n.draft.iconSvnPath,s)||(n.draft.iconSvnPath=s),s}),a()(),r(7,"div",4),c(8,"\u793A\u4F8B\uFF1Asvn://192.168.1.10/\u9879\u76EE\u7BA1\u7406/xx\u9879\u76EE/02.\u9879\u76EE\u6587\u6863/05.\u7CFB\u7EDF\u8BBE\u8BA1/02-\u539F\u578B\u8BBE\u8BA1/02-UI\u8BBE\u8BA1\u6548\u679C\u56FE&\u5207\u56FE/3-\u539F\u5C3A\u5BF8\u56FE\u6807"),a()(),r(9,"nz-form-item")(10,"nz-form-label",5),c(11,"\u5176\u4ED6\u5207\u56FE SVN \u5730\u5740"),a(),r(12,"nz-form-control")(13,"input",6),$("ngModelChange",function(s){return j(n.draft.otherImagesSvnPath,s)||(n.draft.otherImagesSvnPath=s),s}),a()()(),r(14,"nz-form-item")(15,"nz-form-label",7),c(16,"\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939"),a(),r(17,"nz-form-control",8)(18,"input",9),$("ngModelChange",function(s){return j(n.draft.localImageRoot,s)||(n.draft.localImageRoot=s),s}),a()(),r(19,"div",4),c(20,"\u793A\u4F8B\uFF1AD:workicons \u6216 /home/user/icons\u3002\u5982\u679C\u8BBE\u7F6E\u6B64\u8DEF\u5F84\uFF0C\u5C06\u4F18\u5148\u4F7F\u7528\u6B64\u76EE\u5F55\u751F\u6210\u96EA\u78A7\u56FE\u3002"),a()(),r(21,"nz-form-item")(22,"nz-form-label",10),c(23,"\u96EA\u78A7\u56FE\u5BFC\u51FA\u76EE\u5F55"),a(),r(24,"nz-form-control",11)(25,"input",12),$("ngModelChange",function(s){return j(n.draft.spriteExportDir,s)||(n.draft.spriteExportDir=s),s}),a()(),r(26,"div",4),c(27," \u793A\u4F8B\uFF1A\u524D\u7AEF\u9879\u76EE\u4E2D\u516C\u5171\u8D44\u6E90\u76EE\u5F55\u4E00\u822C\u4E3A assets \u6216 public\uFF0C\u5EFA\u8BAE\u8BBE\u7F6E\u4E3A 'assets/icons' \u6216 'public/icons' "),a()(),r(28,"nz-form-item")(29,"nz-form-label",13),c(30,"Less \u5BFC\u51FA\u76EE\u5F55"),a(),r(31,"nz-form-control",14)(32,"input",15),$("ngModelChange",function(s){return j(n.draft.lessExportDir,s)||(n.draft.lessExportDir=s),s}),a()(),r(33,"div",4),c(34," \u793A\u4F8B\uFF1A\u524D\u7AEF\u9879\u76EE\u4E2D\u6837\u5F0F\u6587\u4EF6\u76EE\u5F55\u4E00\u822C\u4E3A '/src/styles'\uFF0C\u5EFA\u8BAE\u8BBE\u7F6E\u4E3A '/src/styles/icons' "),a()()()()),e&2&&(p(3),x("nzTooltipIcon",et(8,Rt)),p(3),B("ngModel",n.draft.iconSvnPath),p(4),x("nzTooltipIcon",et(9,Rt)),p(3),B("ngModel",n.draft.otherImagesSvnPath),p(2),x("nzTooltipIcon",et(10,Rt)),p(3),B("ngModel",n.draft.localImageRoot),p(7),B("ngModel",n.draft.spriteExportDir),p(7),B("ngModel",n.draft.lessExportDir))},dependencies:[N,Y,pt,Oe,ie,at,un,oe,st,St,Te,Ie,ht,gt,vt,Ct,Z,ge,H,ve,ft,fe,De,re,U],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}.emit[_ngcontent-%COMP%]{margin-top:8px}"]})};var wt=class i{draft;spriteUrlHint="\u9879\u76EE\u4E2D\u5B9E\u9645\u96EA\u78A7\u56FE\u8DEF\u5F84\uFF0C\u9ED8\u8BA4\uFF1A/assets/icons/{group}.png\uFF0C\u5982\uFF1A/assets/icons/16-16.png\u3002\u652F\u6301\u5360\u4F4D\u7B26\uFF1A {group} \u5206\u7EC4\u540D\uFF08\u5982 16-16\uFF09\uFF0C {size} \u5C3A\u5BF8\u524D\u7F00\uFF08\u5982 16\uFF09\u3002";templatePlaceholder='\u8F93\u5165\u590D\u5236\u6A21\u677F,\u9ED8\u8BA4\uFF1A<i class="{base} {class}"></i>';templateHint='\u5B9E\u9645\u590D\u5236\u7684\u6587\u672C\uFF0C\u9ED8\u8BA4\uFF1A<i class="{base} {class}"></i>\uFF0C\u5982\uFF1A<i class="sl-16 sl-16-1"></i>\u3002\u652F\u6301\u5360\u4F4D\u7B26\uFF1A{base} \u57FA\u7C7B\u540D\uFF0C{class} CSS \u7C7B\u540D\uFF1B{name} \u56FE\u6807\u540D\u79F0\uFF1B\u652F\u6301\u4F7F\u7528\u81EA\u5B9A\u4E49\u7EC4\u4EF6\uFF0C\u5982\u5C0F\u7A0B\u5E8F\u4E2D\u7528\u6CD5\uFF1A<SlIcon name="16-16-1" size="16" />\uFF0C\u5219\u6A21\u677F\u4E3A\uFF1A<SlIcon name="{name}" size="{size}"/>\u3002';static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-step-advance"]],inputs:{draft:"draft"},decls:23,vars:7,consts:[["nzTitle","\u9AD8\u7EA7\u8BBE\u7F6E"],["nz-form","","nzLayout","vertical"],["nz-input","","name","cssPrefix","placeholder","\u8F93\u5165 CSS \u524D\u7F00\uFF0C\u9ED8\u8BA4\uFF1Asl",3,"ngModelChange","ngModel"],[1,"hint"],["nz-input","","name","spriteUrl","placeholder","\u8F93\u5165\u96EA\u78A7\u56FE URL\uFF0C\u9ED8\u8BA4\uFF1A/assets/icons/{group}.png",3,"ngModelChange","ngModel"],["nz-input","","name","template","rows","3",2,"resize","none",3,"ngModelChange","ngModel","placeholder"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"form",1)(2,"nz-form-item")(3,"nz-form-label"),c(4,"CSS \u524D\u7F00"),a(),r(5,"nz-form-control")(6,"input",2),$("ngModelChange",function(s){return j(n.draft.cssPrefix,s)||(n.draft.cssPrefix=s),s}),a(),r(7,"div",3),c(8," \u53EF\u9009\uFF0C\u9ED8\u8BA4\u4E3A sl\u3002\u751F\u6210\u7684 CSS \u7C7B\u540D\u5C06\u4EE5\u8BE5\u524D\u7F00\u5F00\u5934\uFF0C\u5982\uFF1Asl-16-1\u3002 "),a()()(),r(9,"nz-form-item")(10,"nz-form-label"),c(11,"\u96EA\u78A7\u56FE URL"),a(),r(12,"nz-form-control")(13,"input",4),$("ngModelChange",function(s){return j(n.draft.spriteUrl,s)||(n.draft.spriteUrl=s),s}),a(),r(14,"div",3),c(15),a()()(),r(16,"nz-form-item")(17,"nz-form-label"),c(18,"\u590D\u5236\u6A21\u677F"),a(),r(19,"nz-form-control")(20,"textarea",5),$("ngModelChange",function(s){return j(n.draft.template,s)||(n.draft.template=s),s}),a(),r(21,"div",3),c(22),a()()()()()),e&2&&(p(6),B("ngModel",n.draft.cssPrefix),p(7),B("ngModel",n.draft.spriteUrl),p(2),te(" ",n.spriteUrlHint," "),p(5),x("placeholder",on(n.templatePlaceholder)),B("ngModel",n.draft.template),p(2),te(" ",n.templateHint," "))},dependencies:[N,Y,pt,Oe,ie,at,oe,st,St,Te,Ie,ht,gt,vt,Ct,Z,ge,H,ve,ft,fe,De,re,U],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}.emit[_ngcontent-%COMP%]{margin-top:8px}"]})};var Et=class i{draft;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-step-summary-aside"]],inputs:{draft:"draft"},decls:48,vars:14,consts:[["nzTitle","\u6458\u8981","nzSize","small"],[1,"item"],[1,"k"],[1,"v"],[1,"v","mono",3,"nz-tooltip"],[1,"v",3,"nz-tooltip"],[1,"sep"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"div",1)(2,"span",2),c(3,"\u9879\u76EE\u540D\u79F0"),a(),r(4,"span",3),c(5),a()(),r(6,"div",1)(7,"span",2),c(8,"\u539F\u5C3A\u5BF8\u56FE\u6807"),a(),r(9,"span",4),c(10),a()(),r(11,"div",1)(12,"span",2),c(13,"\u5176\u4ED6\u5207\u56FE"),a(),r(14,"span",5),c(15),a()(),g(16,"div",6),r(17,"div",1)(18,"span",2),c(19,"\u672C\u5730\u76EE\u5F55"),a(),r(20,"span",5),c(21),a()(),r(22,"div",1)(23,"span",2),c(24,"\u96EA\u78A7\u56FE\u5BFC\u51FA"),a(),r(25,"span",5),c(26),a()(),r(27,"div",1)(28,"span",2),c(29,"Less \u5BFC\u51FA\u76EE\u5F55"),a(),r(30,"span",5),c(31),a()(),g(32,"div",6),r(33,"div",1)(34,"span",2),c(35,"CSS\u524D\u7F00"),a(),r(36,"span",3),c(37),a()(),r(38,"div",1)(39,"span",2),c(40,"\u96EA\u78A7\u56FE URL"),a(),r(41,"span",3),c(42),a()(),r(43,"div",1)(44,"span",2),c(45,"\u590D\u5236\u6A21\u677F"),a(),r(46,"span",3),c(47),a()()()),e&2&&(p(5),k(n.draft.name||"-"),p(4),x("nz-tooltip",n.draft.iconSvnPath),p(),k(n.draft.iconSvnPath||"-"),p(4),x("nz-tooltip",n.draft.otherImagesSvnPath),p(),k(n.draft.otherImagesSvnPath||"-"),p(5),x("nz-tooltip",n.draft.localDir),p(),k(n.draft.localDir||"-"),p(4),x("nz-tooltip",n.draft.spriteExportDir),p(),k(n.draft.spriteExportDir??"-"),p(4),x("nz-tooltip",n.draft.lessExportDir),p(),k(n.draft.lessExportDir??"-"),p(6),k(n.draft.cssPrefix??"-"),p(5),k(n.draft.spriteUrl??"-"),p(5),k(n.draft.template??"-"))},dependencies:[N,fe,De,Se,re,Ae,U,H,rt],styles:[".item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:10px;padding:6px 0;align-items:center}.k[_ngcontent-%COMP%]{opacity:.7;width:90px;font-size:14px}.v[_ngcontent-%COMP%]{text-align:right;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;word-break:break-all}.sep[_ngcontent-%COMP%]{height:1px;background:#0000000f;margin:10px 0}.tag[_ngcontent-%COMP%]{margin-top:8px;text-align:right}.warn[_ngcontent-%COMP%]{margin-top:10px;font-size:12px;color:#d46b08}"]})};var zt=class i{cssText="";clipboard=z(je);msg=z(Be);async copyCss(){let t=this.cssText;t&&(this.clipboard.copy(t),this.msg.success("\u5DF2\u590D\u5236\u6837\u5F0F"))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-less-viewport"]],inputs:{cssText:"cssText"},decls:11,vars:2,consts:[[1,"view-card","bg-fx"],[1,"view-header"],[1,"text"],[1,"actions"],["nz-button","","nzType","text","nz-tooltip","\u590D\u5236\u6837\u5F0F",3,"click","disabled"],["nzType","copy"],[1,"viewport"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),c(3,"\u6837\u5F0F\u4EE3\u7801"),a(),r(4,"div",3)(5,"button",4),P("click",function(){return n.copyCss()}),g(6,"nz-icon",5),a()()(),r(7,"div",6)(8,"pre")(9,"code"),c(10),a()()()()),e&2&&(p(5),x("disabled",!n.cssText),p(5),k(n.cssText))},dependencies:[N,ut,Y,nt,H,Ne,de,U,me,dt,re,Ae],styles:["[_nghost-%COMP%]{display:block;height:100%}.bg-fx[_ngcontent-%COMP%]{background:radial-gradient(1200px 650px at 20% 10%,rgba(34,211,238,.14),transparent 55%),radial-gradient(900px 520px at 80% 35%,rgba(124,58,237,.16),transparent 55%),radial-gradient(900px 520px at 40% 90%,rgba(52,211,153,.1),transparent 55%),linear-gradient(180deg,#050816,#070b18 40%,#050816);position:relative}.view-card[_ngcontent-%COMP%]{border:1px solid rgba(15,23,42,.12);position:relative;border-radius:12px;display:flex;flex-direction:column;height:100%;overflow:hidden}.view-header[_ngcontent-%COMP%]{padding:8px 12px;display:flex;align-items:center;justify-content:space-between;flex:0 0 auto}.view-header[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#ffffffd9}.view-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.view-header[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%] button[nz-button][_ngcontent-%COMP%]{color:#ffffffd9}.viewport[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;cursor:default;background-color:#050815;position:relative;color:#fff;padding-left:12px;overflow-x:hidden;overflow-y:auto}"]})};var qn=["viewport"],Qn=(i,t)=>t.name;function Jn(i,t){if(i&1){let e=A();r(0,"div",19),P("mousemove",function(o){let s=y(e).$implicit,l=v();return b(l.onBoxMove(o,s))})("mouseleave",function(){y(e);let o=v();return b(o.onBoxLeave())})("click",function(o){let s=y(e).$implicit,l=v();return o.stopPropagation(),b(l.setActive(s.name))}),a()}if(i&2){let e=t.$implicit,n=v();ne("left",e.x,"px")("top",e.y,"px")("width",e.width,"px")("height",e.height,"px"),we("active",n.activeClassName()===e.className)}}var Ft=class i{item=null;viewportRef;activeClassName=rn("");showGrid=!0;showBoxes=!0;scale=F(1);tx=F(0);ty=F(0);dragging=F(!1);last=F({x:0,y:0});tooltip=F({visible:!1,left:0,top:0,name:"\u2014",meta:"\u2014"});get classes(){return this.meta?.classes??[]}get meta(){return this.item?.meta}get previewSpriteUrl(){return this.item?.previewSpriteUrl??""}setActive(t){this.activeClassName.set(t)}stageTransform=W(()=>`translate(${this.tx()}px, ${this.ty()}px) scale(${this.scale()})`);onBoxMove(t,e){if(!this.showBoxes)return;this.activeClassName()!==e.className&&this.setActive(e.className);let n=this.viewportRef.nativeElement.getBoundingClientRect();this.tooltip.set({visible:!0,left:t.clientX-n.left+10,top:t.clientY-n.top+10,name:e.name,meta:`${e.width}\xD7${e.height} \xB7 (-${e.x}px, -${e.y}px)`})}onBoxLeave(){this.tooltip.set(ee(q({},this.tooltip()),{visible:!1}))}onMouseDown(t){this.dragging.set(!0),this.last.set({x:t.clientX,y:t.clientY})}onMouseUp(){this.dragging.set(!1)}onMouseMove(t){if(!this.dragging())return;let e=this.last(),n=t.clientX-e.x,o=t.clientY-e.y;this.last.set({x:t.clientX,y:t.clientY}),this.tx.set(this.tx()+n),this.ty.set(this.ty()+o)}onWheel(t){t.preventDefault();let e=this.viewportRef.nativeElement.getBoundingClientRect(),n=t.clientX-e.left,o=t.clientY-e.top,s=-Math.sign(t.deltaY)*.08,l=this.scale(),h=this.clamp(l*(1+s),.6,3),G=(n-this.tx())/l,w=(o-this.ty())/l;this.scale.set(h),this.tx.set(n-G*h),this.ty.set(o-w*h)}clearActiveIfBlank(t){t.target.id==="viewport"&&this.setActive("")}resetView(){this.scale.set(1),this.tx.set(0),this.ty.set(0)}clamp(t,e,n){return Math.max(e,Math.min(n,t))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-viewport"]],viewQuery:function(e,n){if(e&1&&Je(qn,7),e&2){let o;Xe(o=Ze())&&(n.viewportRef=o.first)}},inputs:{item:"item",activeClassName:[1,"activeClassName"]},outputs:{activeClassName:"activeClassNameChange"},decls:32,vars:24,consts:[["viewport",""],[1,"view-card","bg-fx"],[1,"view-header"],[1,"tip"],["nzColor","purple"],["nzColor","geekblue"],[1,"actions"],["href","javascript:;",1,"tip",3,"click"],["nz-checkbox","",3,"ngModelChange","ngModel"],[1,"viewport",3,"mousedown","mousemove","mouseup","mouseleave","wheel","click"],[1,"stage","abs","inset-0",2,"transform-origin","0 0"],[1,"sprite","abs"],[1,"abs","inset-0",2,"background-repeat","no-repeat","background-position","0 0","background-size","100% 100%","opacity",".95"],[1,"abs","inset-0","abs2"],[1,"abs","inset-0","boxes"],[1,"abs","box-item","transition",3,"active","left","top","width","height"],[1,"tooltip","abs"],[1,"font-medium"],[1,"info-bar"],[1,"abs","box-item","transition",3,"mousemove","mouseleave","click"]],template:function(e,n){if(e&1){let o=A();r(0,"div",1)(1,"div",2)(2,"nz-space")(3,"div",3),g(4,"nz-badge",4),c(5," \u9F20\u6807\u6EDA\u8F6E\u7F29\u653E "),a(),r(6,"div",3),g(7,"nz-badge",5),c(8," \u62D6\u62FD\u79FB\u52A8 "),a()(),r(9,"div",6)(10,"nz-space")(11,"a",7),P("click",function(){return y(o),b(n.resetView())}),c(12,"\u91CD\u7F6E\u89C6\u56FE"),a(),r(13,"label",8),$("ngModelChange",function(l){return y(o),j(n.showGrid,l)||(n.showGrid=l),b(l)}),c(14,"\u50CF\u7D20\u7F51\u683C"),a(),r(15,"label",8),$("ngModelChange",function(l){return y(o),j(n.showBoxes,l)||(n.showBoxes=l),b(l)}),c(16,"\u5207\u7247\u6846"),a()()()(),r(17,"div",9,0),P("mousedown",function(l){return y(o),b(n.onMouseDown(l))})("mousemove",function(l){return y(o),b(n.onMouseMove(l))})("mouseup",function(){return y(o),b(n.onMouseUp())})("mouseleave",function(){return y(o),b(n.onMouseUp())})("wheel",function(l){return y(o),b(n.onWheel(l))})("click",function(l){return y(o),b(n.clearActiveIfBlank(l))}),r(19,"div",10)(20,"div",11),g(21,"div",12)(22,"div",13),r(23,"div",14),pe(24,Jn,1,10,"div",15,Qn),a()()(),r(26,"div",16)(27,"div",17),c(28),a(),r(29,"div"),c(30),a()()(),g(31,"div",18),a()}e&2&&(p(13),B("ngModel",n.showGrid),p(2),B("ngModel",n.showBoxes),p(2),ne("height",((n.meta==null?null:n.meta.spriteHeight)??0)+48,"px"),we("grid-fx",n.showGrid),p(2),ne("transform",n.stageTransform()),p(),ne("width",n.meta==null?null:n.meta.spriteWidth,"px")("height",n.meta==null?null:n.meta.spriteHeight,"px"),p(),ne("background-image","url("+n.previewSpriteUrl+")"),p(2),ne("display",n.showBoxes?"block":"none"),p(),le(n.classes),p(2),ne("left",n.tooltip().left,"px")("top",n.tooltip().top,"px"),we("hidden",!n.tooltip().visible),p(2),k(n.tooltip().name),p(2),k(n.tooltip().meta))},dependencies:[N,ut,xn,Y,ie,oe,nt,sn,ct,lt],styles:[`.view-card[_ngcontent-%COMP%]{border:1px solid rgba(15,23,42,.12);position:relative;border-radius:12px;overflow:hidden}.view-header[_ngcontent-%COMP%]{padding:8px 12px;display:flex;align-items:center;justify-content:space-between}.view-header[_ngcontent-%COMP%] .tip[_ngcontent-%COMP%]{display:inline-flex;align-items:center;color:#fffc;font-size:12px}.view-header[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{color:#fffc}.viewport[_ngcontent-%COMP%]{cursor:default;min-height:360px;background-color:#050815;position:relative;overflow:hidden}.viewport.grid-fx[_ngcontent-%COMP%]{background-image:linear-gradient(to right,rgba(148,163,184,.06) 1px,transparent 1px),linear-gradient(to bottom,rgba(148,163,184,.06) 1px,transparent 1px);background-size:28px 28px}.bg-fx[_ngcontent-%COMP%]{background:radial-gradient(1200px 650px at 20% 10%,rgba(34,211,238,.14),transparent 55%),radial-gradient(900px 520px at 80% 35%,rgba(124,58,237,.16),transparent 55%),radial-gradient(900px 520px at 40% 90%,rgba(52,211,153,.1),transparent 55%),linear-gradient(180deg,#050816,#070b18 40%,#050816);position:relative}.bg-fx[_ngcontent-%COMP%]:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.1;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");mix-blend-mode:overlay}.sprite[_ngcontent-%COMP%]{border-radius:12px;background-color:#ffffff05;top:24px;left:24px;--tw-ring-offset-shadow: 0 0 #0000;--tw-shadow: 0 0 0 1px rgba(34, 211, 238, .14), 0 24px 80px rgba(0, 0, 0, .55);--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color), 0 24px 80px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.abs[_ngcontent-%COMP%]{position:absolute}.inset-0[_ngcontent-%COMP%]{inset:0}.abs2[_ngcontent-%COMP%]{border-radius:12px;background:linear-gradient(135deg,#22d3ee14,#7c3aed1a)}.transition[_ngcontent-%COMP%]{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-text-decoration-color,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.box-item[_ngcontent-%COMP%]{border-width:1px;border-style:solid;border-color:#ffffff26}.box-item[_ngcontent-%COMP%]:hover{border-color:#7c3aed66}.box-item.active[_ngcontent-%COMP%]{border-color:#22d3eeb3;box-shadow:0 0 0 1px #22d3ee40,0 0 28px #22d3ee2e}.tooltip[_ngcontent-%COMP%]{pointer-events:none;z-index:10;border-radius:8px;border:1px solid rgba(148,163,184,.14);background-color:#121c34b3;padding:6px 10px;box-shadow:0 0 0 1px #22d3ee40,0 10px 30px #7c3aed2e;color:#fff}.tooltip.hidden[_ngcontent-%COMP%]{display:none}`]})};var Zn=(i,t)=>t.group,ei=(i,t)=>t.name,ti=(i,t)=>t.className;function ni(i,t){if(i&1&&g(0,"nz-option",5),i&2){let e=t.$implicit;x("nzLabel",e.group)("nzValue",e.group)}}function ii(i,t){i&1&&g(0,"nz-empty",6)}function oi(i,t){i&1&&g(0,"nz-empty",15)}function ri(i,t){if(i&1&&g(0,"img",25),i&2){let e=v().$implicit;x("nzSrc",e.url)("alt",e.name)}}function ai(i,t){if(i&1){let e=A();r(0,"div",23),P("click",function(){let o=y(e).$implicit,s=v(4);return b(s.copySvg(o))}),r(1,"div",24),I(2,ri,1,2,"img",25),a(),r(3,"div",26)(4,"div",27),c(5),a()()()}if(i&2){let e=t.$implicit;p(2),T(e.kind==="file"&&e.url?2:-1),p(3),k(e.name)}}function si(i,t){if(i&1&&pe(0,ai,6,2,"div",22,ei),i&2){let e=v(3);le(e.icons())}}function pi(i,t){if(i&1){let e=A();r(0,"div",23),P("click",function(){let o=y(e).$implicit,s=v(4);return b(s.copySpriteClass(o.className))}),r(1,"div",24),g(2,"div",28),a(),r(3,"div",26)(4,"div",27),c(5),a(),r(6,"div",29),c(7),a(),g(8,"nz-badge",30),a()()}if(i&2){let e=t.$implicit,n=v(4);p(2),x("ngStyle",n.spriteStyle(e)),p(3),k(e.name),p(2),k(e.className),p(),x("nzStatus",n.activeClassName()===e.className?"processing":"default")}}function li(i,t){if(i&1&&pe(0,pi,9,4,"div",22,ti),i&2){let e=v(3);le(e.iconClasses())}}function ci(i,t){if(i&1&&(r(0,"div",16),I(1,si,2,0)(2,li,2,0),a()),i&2){let e=v(2);p(),T(e.mode()==="svg"?1:2)}}function ui(i,t){if(i&1){let e=A();r(0,"div",7)(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),c(5,"\u56FE\u6807\u9884\u89C8"),a(),r(6,"div",12),c(7),a()(),r(8,"div",13),g(9,"input",14),a()(),I(10,oi,1,0,"nz-empty",15)(11,ci,3,1,"div",16),a(),r(12,"div",8)(13,"div",9)(14,"div",10)(15,"div",11),c(16,"\u751F\u6210\u7ED3\u679C"),a(),r(17,"div",12),c(18,"LESS/CSS \u6837\u5F0F\uFF0C\u5305\u542B\u96EA\u78A7\u56FE\u80CC\u666F\u5B9A\u4F4D\u7B49\u4FE1\u606F"),a()(),g(19,"div",17),a(),r(20,"div",18)(21,"app-sprite-viewport",19),$("activeClassNameChange",function(o){y(e);let s=v();return j(s.activeClassName,o)||(s.activeClassName=o),b(o)}),a()(),r(22,"div",20),g(23,"app-less-viewport",21),a()()()}if(i&2){let e=v();p(7),te("\u5171",e.icons().length+e.iconClasses().length,"\u4E2A\u56FE\u6807"),p(3),T(e.iconClasses().length===0&&e.icons().length===0?10:11),p(11),B("activeClassName",e.activeClassName),x("item",e.activeItem()),p(2),x("cssText",e.cssText())}}var Pt=class i{clipboard=z(je);msg=z(Be);api=z(_e);sprite=Le(null);groups=W(()=>this.sprite()?.groups??[]);group=F("");activeItem=W(()=>{let t=this.group();return this.groups().find(e=>e.group===t)??null});mode=W(()=>this.activeItem()?.kind==="svg"?"svg":"png");activeClassName=F("");activePreviewSpriteUrl=W(()=>this.activeItem()?.previewSpriteUrl??null);ngOnChanges(t){if(t.sprite){let e=this.sprite()?.groups?.[0];if(e){let n=e.group??"";this.group.set(n),this.groupChange(n)}}}groupChange(t){this.activeItem()?.kind==="svg"&&this.loadImages(t)}loadImages(t){let e=this.sprite()?.projectId??"";e&&this.api.browseIconFiles(e,t).subscribe(n=>{let o=n.entries??[];this.icons.set(o)})}baseClass=W(()=>{let t=this.sprite()?.config?.prefix||"sl",e=this.group(),n=String(e).split("-");if(n.length>1){let[o,s]=n;return o!==s?`${t}-${n[0]}-${n[1]}`:`${t}-${n[0]}`}return`${t}-${n[0]}`});iconClasses=W(()=>(this.activeItem()?.meta?.classes??[]).filter(o=>!!o.className));icons=F([]);cssText=W(()=>{let t=this.activeItem();return String(t?.lessText??"")});async copySpriteClass(t){let n=(this.sprite()?.config?.template||'<i class="{base} {class}"></i>').replaceAll("{base}",this.baseClass()).replaceAll("{class}",t);this.activeClassName.set(t),this.clipboard.copy(n);let s=`\u5DF2\u590D\u5236\uFF1A${jn(n)}`;this.msg.success(s)}async copySvg(t){let e=this.sprite()?.config?.template;if(!e)return;let o=this.activeItem()?.meta;if(!o)return;let s=o?.size,l=o.icons.find(xe=>xe.file===t.name);if(!l)return;let h=e.replaceAll("{name}",l.name).replaceAll("{size}",s).replaceAll("{base}",l.className).replaceAll("{group}",o.group);this.clipboard.copy(h);let w=`\u5DF2\u590D\u5236\uFF1A${jn(h)}`;this.msg.success(w)}async copyCss(){let t=this.cssText();t&&(this.clipboard.copy(t),this.msg.success("\u5DF2\u590D\u5236"))}baseSpriteStyle(){let t=this.activeItem(),e=t?.previewSpriteUrl;if(!e)return{};let n=t?.meta;return{backgroundImage:`url("${e}")`,backgroundRepeat:"no-repeat",backgroundSize:n?`${n.spriteWidth}px ${n.spriteHeight}px`:"initial"}}spriteStyle(t){if(!t)return{};let e=this.baseSpriteStyle();return ee(q({},e),{width:`${t.width}px`,height:`${t.height}px`,backgroundPosition:`-${t.x}px -${t.y}px`})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-icons-panel"]],inputs:{sprite:[1,"sprite"]},features:[qe],decls:10,vars:2,consts:[[1,"wrap"],[1,"bar"],[1,"left"],[1,"label"],["nzPlaceHolder","\u8BF7\u9009\u62E9",2,"width","220px",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"],["nzNotFoundContent","\u6CA1\u6709\u53EF\u5C55\u793A\u7684\u5206\u7EC4"],[1,"grid"],[1,"panel"],[1,"panel-header"],[1,"panel-title","column"],[1,"text"],[1,"sub-text"],[1,"search"],["type","text","placeholder","\u641C\u7D22\u56FE\u6807\u540D\u79F0\u6216\u7C7B\u540D","nz-input",""],["nzNotFoundContent","\u8BE5\u5206\u7EC4\u6CA1\u6709\u53EF\u7528\u56FE\u6807"],[1,"icon-grid"],[1,"actions"],[1,"sprite-content"],[3,"activeClassNameChange","activeClassName","item"],[1,"css-content"],[3,"cssText"],[1,"icon-card"],[1,"icon-card",3,"click"],[1,"thumb"],["nz-image","","loading","lazy",3,"nzSrc","alt"],[1,"meta"],[1,"name"],[1,"sprite",3,"ngStyle"],[1,"cls"],[3,"nzStatus"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"span",3),c(4,"\u5206\u7EC4"),a(),r(5,"nz-select",4),P("ngModelChange",function(s){return n.group.set(s),n.groupChange(s)}),pe(6,ni,1,2,"nz-option",5,Zn),a()()(),I(8,ii,1,0,"nz-empty",6)(9,ui,24,5,"div",7),a()),e&2&&(p(5),x("ngModel",n.group()),p(),le(n.groups()),p(2),T(n.activeItem()?9:8))},dependencies:[N,an,Y,ie,oe,ve,vn,Sn,ke,Ce,he,In,H,U,dt,Z,ge,Ft,zt,ct,lt,xt,_t],styles:[".wrap[_ngcontent-%COMP%]{height:100%;min-height:0;display:flex;flex-direction:column;gap:12px}.bar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}.left[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;min-width:0}.label[_ngcontent-%COMP%]{opacity:.8}.hint[_ngcontent-%COMP%]{opacity:.75;max-width:520px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ok[_ngcontent-%COMP%]{color:#52c41a}.grid[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.2fr);gap:12px}@media (max-width: 1100px){.grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.panel[_ngcontent-%COMP%]{border:1px solid rgba(15,23,42,.12);border-radius:20px;min-height:0;display:flex;flex-direction:column;background:#ffffff05}.panel-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:12px;border-bottom:1px solid rgba(15,23,42,.12)}.panel-title[_ngcontent-%COMP%]{display:flex}.panel-title.column[_ngcontent-%COMP%]{flex-direction:column}.panel-title[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.panel-title[_ngcontent-%COMP%] .sub-text[_ngcontent-%COMP%]{font-size:12px;opacity:.75}.search[_ngcontent-%COMP%]{width:240px}.icon-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;overflow:auto;padding:12px}.icon-card[_ngcontent-%COMP%]{cursor:pointer;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:#00000080;transition:transform .08s ease,border-color .08s ease;-webkit-user-select:none;user-select:none;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:12px 16px}.icon-card[_ngcontent-%COMP%]:hover{transform:translateY(-1px);border-color:#ffffffe6}.thumb[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{min-width:32px;min-height:32px}.meta[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:12px;opacity:.9}.meta[_ngcontent-%COMP%] .cls[_ngcontent-%COMP%]{font-size:12px;opacity:.65}.meta[_ngcontent-%COMP%]{position:relative}.meta[_ngcontent-%COMP%] nz-badge[_ngcontent-%COMP%]{position:absolute;top:-12px;right:0}.sprite-content[_ngcontent-%COMP%]{padding:16px 16px 0}.css-content[_ngcontent-%COMP%]{padding:12px;line-height:1.5;flex:1 1 auto;overflow:hidden}"]})};function jn(i){return i.replaceAll("&","&").replaceAll("<","<").replaceAll(">",">")}var mi=(i,t)=>t.dir,di=(i,t)=>t.url;function fi(i,t){i&1&&g(0,"nz-empty",4)}function gi(i,t){i&1&&g(0,"nz-icon",9)}function hi(i,t){if(i&1){let e=A();r(0,"nz-tag",8),P("click",function(){let o=y(e).$implicit,s=v(2);return b(s.loadDir(o))}),c(1),a(),I(2,gi,1,0,"nz-icon",9)}if(i&2){let e=t.$implicit,n=t.$index,o=v(2);p(),te(" ",e.label," "),p(),T(n<o.dirStack.length-1?2:-1)}}function Ci(i,t){if(i&1&&g(0,"img",11),i&2){let e=v().$implicit;x("nzSrc",e.url)("nzFallback","/images/placeholder.png")("nzPlaceholder","/images/placeholder.png")("alt",e.name)}}function vi(i,t){if(i&1){let e=A();r(0,"div",16),P("click",function(){y(e);let o=v().$implicit,s=v(2);return b(s.openDir(o))}),g(1,"nz-icon",17),a()}}function Si(i,t){if(i&1&&(r(0,"div",15),c(1),a()),i&2){let e=v().$implicit;p(),te("\u5171",e.fileCount," \u5F20\u56FE\u7247")}}function _i(i,t){if(i&1&&(r(0,"div",7)(1,"div",10),I(2,Ci,1,4,"img",11)(3,vi,2,0,"div",12),a(),r(4,"div",13)(5,"div",14),c(6),a(),I(7,Si,2,1,"div",15),a()()),i&2){let e=t.$implicit;p(2),T(e.kind==="file"?2:3),p(4),k(e.name),p(),T(e.kind==="dir"&&e.fileCount!==void 0?7:-1)}}function xi(i,t){if(i&1&&(r(0,"div",5),pe(1,hi,3,2,null,null,mi),a(),r(3,"nz-image-group")(4,"div",6),pe(5,_i,8,3,"div",7,di),a()()),i&2){let e=v();p(),le(e.dirStack),p(4),le(e.images())}}var Nt=class i{sprite=null;api=z(_e);clipboard=z(je);msg=z(Be);currentDir=F("");dirStack=[{label:"\u6839\u76EE\u5F55",dir:""}];cachedImages=F([]);imagesCount=W(()=>this.images().filter(t=>t.kind==="file").length);keyword=F("");ngOnInit(){}ngOnChanges(t){let e=t.sprite.currentValue;e&&(this.dirStack=[{label:"\u6839\u76EE\u5F55",dir:""}],this.loadImages(e.projectId))}images=W(()=>{let t=this.keyword().trim().toLowerCase();return t?this.cachedImages().filter(e=>e.name.toLowerCase().includes(t)):this.cachedImages()});loadImages(t,e=""){this.keyword.set(""),this.currentDir.set(e),this.api.browseImages(t,e).subscribe(n=>{this.cachedImages.set(n.entries)})}loadDir(t){if(!this.sprite?.projectId)return;let e=this.dirStack.findIndex(n=>n.dir===t.dir);e>=0&&(this.dirStack=this.dirStack.slice(0,e+1)),this.loadImages(this.sprite.projectId,t.dir)}openDir(t){if(!this.sprite?.projectId||t.kind!=="dir")return;let e=String(t.name??"").trim();if(!e)return;let n=this.currentDir(),o=n?`${n}/${e}`:e;this.dirStack=[...this.dirStack,{label:e,dir:o}],this.loadImages(this.sprite.projectId,o)}copy(t){this.clipboard.copy(t),this.msg.success("\u5DF2\u590D\u5236\u56FE\u7247 URL")}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-images-panel"]],inputs:{sprite:"sprite"},features:[qe],decls:7,vars:3,consts:[[1,"wrap"],[1,"header"],["nz-input","","placeholder","\u641C\u7D22\u6587\u4EF6\u540D",3,"ngModelChange","ngModel"],[1,"count"],["nzNotFoundContent","\u6682\u65E0\u56FE\u7247\u5217\u8868\uFF08\u540E\u7EED\u53EF\u4ECE cutImageSvn \u626B\u63CF\u5E76\u6620\u5C04 URL\uFF09"],[1,"dir-stack"],[1,"img-grid"],[1,"img-card"],["color","blue",1,"dir-item",3,"click"],["nzType","right","nzTheme","outline"],[1,"thumb"],["nz-image","","loading","lazy",3,"nzSrc","nzFallback","nzPlaceholder","alt"],["title","\u76EE\u5F55",1,"dir"],[1,"meta"],[1,"name"],[1,"file-count"],["title","\u76EE\u5F55",1,"dir",3,"click"],["nzType","folder","nzTheme","fill"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"input",2),$("ngModelChange",function(s){return j(n.keyword,s)||(n.keyword=s),s}),a(),r(3,"div",3),c(4),a()(),I(5,fi,1,0,"nz-empty",4)(6,xi,7,0),a()),e&2&&(p(2),B("ngModel",n.keyword),p(2),te(" \u5171 ",n.imagesCount()," \u5F20\u56FE\u7247 "),p(),T(n.cachedImages().length===0?5:6))},dependencies:[N,Y,Oe,ie,oe,Ce,he,H,de,U,me,Z,ge,Se,bn,xt,_t,Tn],styles:[".wrap[_ngcontent-%COMP%]{height:100%;min-height:0;overflow-y:auto;padding:12px}.header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.header[_ngcontent-%COMP%] .count[_ngcontent-%COMP%]{font-size:14px;opacity:.45;flex:0 0 auto;white-space:nowrap}.dir-stack[_ngcontent-%COMP%]{display:flex;align-items:center;gap:6px;margin-bottom:12px;flex-wrap:wrap}.dir-item[_ngcontent-%COMP%]{cursor:pointer}.img-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;overflow:auto;padding-right:4px}.img-card[_ngcontent-%COMP%]{border:1px solid rgba(255,255,255,.08);border-radius:16px;overflow:hidden;background:#ffffff05;display:flex;flex-direction:column}.thumb[_ngcontent-%COMP%]{height:160px;background:#0000002e;display:flex;align-items:center;justify-content:center;-webkit-user-select:none;user-select:none}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%;max-height:100%;object-fit:contain;cursor:pointer}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]:focus, .thumb[_ngcontent-%COMP%]:focus{outline:none}.thumb[_ngcontent-%COMP%] .dir[_ngcontent-%COMP%]{color:#fff9;font-size:56px;cursor:pointer}.meta[_ngcontent-%COMP%]{padding:10px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:#0000000a}.name[_ngcontent-%COMP%]{font-size:14px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-count[_ngcontent-%COMP%]{font-size:14px;opacity:.45;flex:0 0 auto;white-space:nowrap}"]})};function bi(i,t){if(i&1&&g(0,"app-step-basic",10),i&2){let e=v();x("draft",e.draft())}}function Mi(i,t){if(i&1&&g(0,"app-step-advance",10),i&2){let e=v();x("draft",e.draft())}}function wi(i,t){if(i&1){let e=A();r(0,"button",16),P("click",function(){y(e);let o=v();return b(o.cancel())}),g(1,"nz-icon",17),c(2," \u53D6\u6D88 "),a()}}function Ei(i,t){if(i&1){let e=A();r(0,"button",16),P("click",function(){y(e);let o=v();return b(o.prev())}),g(1,"nz-icon",18),c(2," \u4E0A\u4E00\u6B65 "),a()}}function zi(i,t){if(i&1){let e=A();r(0,"button",19),P("click",function(){y(e);let o=v();return b(o.create())}),g(1,"nz-icon",20),c(2," \u786E\u5B9A "),a()}}function Fi(i,t){if(i&1){let e=A();r(0,"button",21),P("click",function(){y(e);let o=v();return b(o.next())}),c(1," \u4E0B\u4E00\u6B65 "),g(2,"nz-icon",22),a()}if(i&2){let e=v();x("disabled",!e.canNext())}}var Dt=class i{step=F(0);creating=F(!1);draft=F({name:"",iconSvnPath:"",otherImagesSvnPath:"",localDir:""});nzModalData=z(pn);modalRef=z(ln);modal=z(ot);state=z($e);notify=z(Cn);constructor(){let t=this.state.project();if(t){let e=t.assets?.iconsSvn?.url||"",n=t.assets?.iconsSvn?.id||"",o=t.assets?.cutImageSvn?.url||"",s=this.nzModalData.cfg;this.draft.update(l=>(l.name=t.name,l.sourceId=n,l.iconSvnPath=e,l.otherImagesSvnPath=o,l.localDir=s?.localDir||"",l.cssPrefix=s?.prefix||"sl",l.spriteUrl=s?.spriteUrl||"/assets/icons/{group}.png",l.template=s?.template||'<i class="{base} {class}"></i>',l.spriteExportDir=s?.spriteExportDir||"",l.lessExportDir=s?.lessExportDir||"",l.localImageRoot=s?.localImageRoot||"",l))}}canNext(){let t=this.step(),e=this.draft();if(t===0){let n=e.iconSvnPath?.trim(),o=e.localImageRoot?.trim();return!(!n&&!o)}return!0}next(){this.step.update(t=>t+1)}prev(){this.step.update(t=>t-1)}canCreateHere(){return this.step()===1}async create(){if(this.creating())return;this.creating.set(!0);let t=this.draft(),e={};if(t.iconSvnPath?.trim()&&(e.iconsSvn={kind:"svn",url:t.iconSvnPath,label:"icons",mode:"manual",localDir:t.localDir,id:t.sourceId}),t.otherImagesSvnPath){let s=this.state.project()?.assets?.cutImageSvn?.id||"";e.cutImageSvn={kind:"svn",url:t.otherImagesSvnPath,label:"images",mode:"manual",localDir:t.localDir,id:s}}let n={enabled:!0,persistLess:!0,localDir:t.localDir,localImageRoot:t.localImageRoot||void 0,template:t.template||'<i class="{base} {class}"></i>',prefix:t.cssPrefix||"sl",sourceId:t.sourceId||"",spriteUrl:t.spriteUrl||"/assets/icons/{group}.png",algorithm:"binary-tree",spriteExportDir:t.spriteExportDir||"",lessExportDir:t.lessExportDir||""},o=await this.state.createConfig(e,n);this.creating.set(!1),this.notify.success("\u914D\u7F6E\u5DF2\u4FDD\u5B58"),this.modalRef.close({ok:!0,cfg:o})}cancel(){this.modalRef.close()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-conf-modal"]],decls:19,vars:7,consts:[["nz-row","","nzJustify","center"],["nz-col","","nzSpan","16"],[3,"nzCurrent"],["nzTitle","\u8BE6\u60C5"],["nzTitle","\u914D\u7F6E"],["nz-row","","nzJustify","start"],["nz-col","","nzSpan","24"],[3,"nzSpinning"],[1,"content"],[1,"main"],[3,"draft"],[1,"actions"],["nz-button",""],["nz-button","","nzType","primary"],["nz-button","","nzType","primary",3,"disabled"],[1,"aside"],["nz-button","",3,"click"],["nzType","close","nzTheme","outline"],["nzType","arrow-left","nzTheme","outline"],["nz-button","","nzType","primary",3,"click"],["nzType","check","nzTheme","outline"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","arrow-right","nzTheme","outline"]],template:function(e,n){if(e&1&&(r(0,"div",0)(1,"div",1)(2,"nz-steps",2),g(3,"nz-step",3)(4,"nz-step",4),a()()(),r(5,"div",5)(6,"div",6)(7,"nz-spin",7)(8,"div",8)(9,"div",9),I(10,bi,1,1,"app-step-basic",10)(11,Mi,1,1,"app-step-advance",10),r(12,"div",11),I(13,wi,3,0,"button",12),I(14,Ei,3,0,"button",12),I(15,zi,3,0,"button",13)(16,Fi,3,1,"button",14),a()(),r(17,"div",15),g(18,"app-step-summary-aside",10),a()()()()()),e&2){let o;p(2),x("nzCurrent",n.step()),p(5),x("nzSpinning",n.creating()),p(3),T((o=n.step())===0?10:o===1?11:-1),p(3),T(n.step()===0?13:-1),p(),T(n.step()>0?14:-1),p(),T(n.canCreateHere()?15:16),p(3),x("draft",n.draft())}},dependencies:[N,Y,cn,fe,ke,Te,Ie,Nn,Pn,Fn,H,Ne,de,it,Z,U,me,mt,yn,bt,wt,Et],styles:[".content[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 360px;gap:16px;margin-top:16px}.main[_ngcontent-%COMP%]{min-height:420px}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.aside[_ngcontent-%COMP%]{position:sticky;top:16px;height:fit-content}"]})};function Pi(i,t){if(i&1&&g(0,"app-sprite-icons-panel",5),i&2){let e=v();x("sprite",e.sprite())}}function Ni(i,t){if(i&1&&g(0,"app-sprite-images-panel",5),i&2){let e=v();x("sprite",e.sprite())}}function Di(i,t){if(i&1&&g(0,"app-sprite-icons-panel",5),i&2){let e=v(2);x("sprite",e.localSprite())}}function Ii(i,t){i&1&&g(0,"nz-empty",6)}function Ti(i,t){if(i&1&&I(0,Di,1,1,"app-sprite-icons-panel",5)(1,Ii,1,0,"nz-empty",6),i&2){let e=v();T(e.localSprite()?0:1)}}var It=class i{sprite=Le(null);localSprite=Le(null);tabIndex=0;static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite-result-tabs"]],inputs:{sprite:[1,"sprite"],localSprite:[1,"localSprite"]},decls:7,vars:1,consts:[[3,"nzSelectedIndexChange","nzSelectedIndex"],["nzTitle","SVN \u56FE\u6807"],["nz-tab",""],["nzTitle","SVN \u56FE\u7247"],["nzTitle","\u672C\u5730\u56FE\u6807"],[3,"sprite"],["nzNotFoundContent","\u672A\u914D\u7F6E\u672C\u5730\u56FE\u7247\u6587\u4EF6\u5939"]],template:function(e,n){e&1&&(r(0,"nz-tabs",0),$("nzSelectedIndexChange",function(s){return j(n.tabIndex,s)||(n.tabIndex=s),s}),r(1,"nz-tab",1),Pe(2,Pi,1,1,"ng-template",2),a(),r(3,"nz-tab",3),Pe(4,Ni,1,1,"ng-template",2),a(),r(5,"nz-tab",4),Pe(6,Ti,2,1,"ng-template",2),a()()),e&2&&B("nzSelectedIndex",n.tabIndex)},dependencies:[N,zn,En,wn,Mn,Ce,he,ve,Se,Nt,Pt],styles:["[_nghost-%COMP%]{display:block;height:100%}[_nghost-%COMP%] nz-tabs[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%] nz-tabs[_ngcontent-%COMP%] .ant-tabs-content-holder{height:100%}[_nghost-%COMP%] nz-tabs[_ngcontent-%COMP%] .ant-tabs-content-holder .ant-tabs-content{height:100%}[_nghost-%COMP%] nz-tabs[_ngcontent-%COMP%] .ant-tabs-content-holder .ant-tabs-content .ant-tabs-tabpane{height:100%}"]})};var Kt=Yn($n());function ki(i,t){if(i&1){let e=A();r(0,"button",16),P("click",function(){y(e);let o=v(2);return b(o.streamCheckout())}),g(1,"nz-icon",17),r(2,"span"),c(3),a()()}if(i&2){let e=v(2);p(3),te("\u540C\u6B65 ",e.lastSyncAt())}}function Oi(i,t){if(i&1){let e=A();r(0,"button",13),P("click",function(){y(e);let o=v();return b(o.generate())}),g(1,"nz-icon",14),r(2,"span"),c(3,"\u751F\u6210\u96EA\u78A7\u56FE"),a()(),I(4,ki,4,1,"button",15)}if(i&2){let e=v();p(4),T(e.hasSvnSource()?4:-1)}}function Ai(i,t){if(i&1&&g(0,"nz-empty",10),i&2){v();let e=Bt(14),n=Bt(16);x("nzNotFoundContent",e)("nzNotFoundFooter",n)}}function Bi(i,t){if(i&1&&g(0,"app-sprite-result-tabs",11),i&2){let e=v();x("sprite",e.sprite())("localSprite",e.localSprite())}}function ji(i,t){i&1&&(r(0,"span"),c(1,"\u6682\u65E0\u96EA\u78A7\u56FE\u914D\u7F6E\uFF0C\u70B9\u51FB\u53F3\u4E0A\u89D2\u201C"),g(2,"nz-icon",7),c(3,"\u201D \u65B0\u589E\u914D\u7F6E"),a())}function $i(i,t){if(i&1){let e=A();r(0,"button",18),P("click",function(){y(e);let o=v();return b(o.openSettingModal())}),c(1,"\u7ACB\u5373\u65B0\u589E"),a()}}var Tt=class i{isDrawerOpen=!1;loading=F(!1);cfg=F(null);lastSyncAt=F("N/A");sub=new Ge;state=z($e);modal=z(ot);svnStream=z(yt);term;sprite=F(null);localSprite=F(null);async ngOnInit(){if(await this.loadConfig(),this.isEmpty())return;let t=this.state.project()?.id;if(!t)return;let e=await this.state.getSvnRuntimes();e?.length&&e.forEach(o=>{let s=o.lastSyncAt?(0,Kt.default)(o.lastSyncAt).format("YYYY-MM-DD HH:mm:ss"):"N/A",l=o.lastStderr?"\u5931\u8D25":"\u6210\u529F",h=o.desiredUrl?`${o.desiredUrl}`:"No desired URL";this.term?.writeln(`[\u66F4\u65B0\u65F6\u95F4]: ${s}`),this.term?.writeln(`[\u66F4\u65B0\u72B6\u6001]: ${l}`),this.term?.writeln(`[SVN \u8DEF\u5F84]: ${h}`),this.term?.writeln("-----------------------------"),o.sourceId===this.cfg()?.sourceId&&o.lastSyncAt&&this.lastSyncAt.set((0,Kt.default)(o.lastSyncAt).format("YYYY-MM-DD HH:mm:ss"))});let n=await this.state.getSprites();if(this.sprite.set(n),this.cfg()?.localImageRoot){let o=await this.state.getLocalSprites();this.localSprite.set(o)}this.sub.add(this.svnStream.watchProject(t,1e3)),this.sub.add(this.svnStream.output$(t).subscribe(o=>{this.term&&this.term.write(o.text)}))}ngOnDestroy(){this.term&&this.term.clear(),this.sub.unsubscribe()}isEmpty=W(()=>{let t=this.cfg(),e=this.state.project(),n=t&&(e?.assets?.iconsSvn||t?.sourceId),o=!!t?.localImageRoot;return!n&&!o});hasSvnSource=W(()=>{let t=this.cfg(),e=this.state.project();return!!(t&&(e?.assets?.iconsSvn||t?.sourceId))});async loadConfig(){try{this.loading.set(!0);let t=await this.state.loadConfig();this.cfg.set(t),this.loading.set(!1)}catch{this.loading.set(!1)}}async generate(){this.loading.set(!0),await this.state.generate();let t=await this.state.getSprites();if(this.sprite.set(t),this.cfg()?.localImageRoot){let e=await this.state.getLocalSprites();this.localSprite.set(e)}else this.localSprite.set(null);this.loading.set(!1)}async checkout(){this.loading.set(!0);let t=await this.state.checkout();this.loading.set(!1)}async streamCheckout(){this.hasSvnSource()&&(this.loading.set(!0),this.isDrawerOpen=!0,await this.state.streamCheckout(),this.loading.set(!1))}openSettingModal(){let t=this.modal.create({nzTitle:"\u96EA\u78A7\u56FE\u914D\u7F6E",nzFooter:null,nzKeyboard:!1,nzMaskClosable:!1,nzClosable:!0,nzContent:Dt,nzData:{cfg:this.cfg()},nzWidth:"1020px",nzCentered:!0}),e=t.getContentComponent();t.afterClose.subscribe(n=>{n?.ok&&this.loadConfig()})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["app-sprite"]],viewQuery:function(e,n){if(e&1&&Je(Vt,5),e&2){let o;Xe(o=Ze())&&(n.term=o.first)}},decls:17,vars:12,consts:[["contentTpl",""],["footerTpl",""],[3,"title","loading","isFullscreen","isOverflowYAuto"],["ngProjectAs","actions",5,["actions"]],["nz-button","","nzType","text","nz-tooltip","","nzTooltipTitle","\u67E5\u770B\u65E5\u5FD7",3,"click"],["nzType","desktop","nzTheme","outline"],["nz-button","","nzType","text","nz-tooltip","","nzTooltipTitle","\u914D\u7F6E\u96EA\u78A7\u56FE",3,"click"],["nzType","setting","nzTheme","outline"],[1,"page"],[1,"content"],[3,"nzNotFoundContent","nzNotFoundFooter"],[3,"sprite","localSprite"],[1,"aside"],["nz-button","","nzType","primary","nz-tooltip","","nzTooltipTitle","\u751F\u6210\u96EA\u78A7\u56FE",3,"click"],["nzType","play-circle","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","","nzTooltipTitle","\u4ECEsvn\u66F4\u65B0\u8D44\u6E90"],["nz-button","","nzType","primary","nz-tooltip","","nzTooltipTitle","\u4ECEsvn\u66F4\u65B0\u8D44\u6E90",3,"click"],["nzType","sync","nzTheme","outline"],["nz-button","","nzType","primary",3,"click"]],template:function(e,n){if(e&1){let o=A();r(0,"app-page-layout",2),tn(1,3),I(2,Oi,5,1),r(3,"button",4),P("click",function(){return y(o),b(n.isDrawerOpen=!n.isDrawerOpen)}),g(4,"nz-icon",5),a(),r(5,"button",6),P("click",function(){return y(o),b(n.openSettingModal())}),g(6,"nz-icon",7),a(),nn(),r(7,"div",8)(8,"div",9),I(9,Ai,1,2,"nz-empty",10)(10,Bi,1,2,"app-sprite-result-tabs",11),a(),r(11,"div",12),g(12,"app-terminal-view"),a()()(),Pe(13,ji,4,0,"ng-template",null,0,jt)(15,$i,2,0,"ng-template",null,1,jt)}e&2&&(x("title","\u96EA\u78A7\u56FE")("loading",n.loading())("isFullscreen",!0)("isOverflowYAuto",!1),p(2),T(n.isEmpty()?-1:2),p(6),we("empty",n.isEmpty()),p(),T(n.isEmpty()?9:10),p(2),we("open",n.isDrawerOpen),p(),ne("height",100,"%"))},dependencies:[N,Y,ke,H,Ne,de,it,Z,U,me,re,Ae,Se,mt,Dn,_n,dn,mn,Ce,he,rt,Vt,It],styles:[".page[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:row;overflow:hidden;gap:16px;padding:0 16px}.content[_ngcontent-%COMP%]{flex:1 1 auto;width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}.content.empty[_ngcontent-%COMP%]{justify-content:center}.aside[_ngcontent-%COMP%]{width:0;flex:0 0 auto;height:100%;padding:16px;background:#000;transition:transform .2s ease;transform:translate(150%)}.aside.open[_ngcontent-%COMP%]{width:400px;transform:translate(0)}"]})};var Vi=[{path:"",component:Tt}],kt=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=Qe({type:i});static \u0275inj=Ke({imports:[$t.forChild(Vi),$t]})};var Vn=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=Qe({type:i});static \u0275inj=Ke({imports:[N,kt]})};export{Vn as SpriteModule};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Bb as E,Cb as te,Gb as oe,Kb as ie,L as c,M as ee,Ub as se,_a as F,a as N,ra as M,yb as ne}from"./chunk-SPRWNZHF.js";import{$b as P,Ac as H,Da as f,Fb as u,Gb as T,Gc as b,Ha as R,Jc as U,Lc as q,Ra as z,Ub as j,Wc as v,ac as W,bc as D,cc as d,dc as l,ec as L,gd as y,hd as K,id as X,jd as J,l as _,lc as B,ma as h,nb as k,nd as C,oa as w,qa as V,rc as Q,sa as i,sb as g,tb as A,td as Y,uc as x,vb as I,vc as p,wc as m,xd as a,ya as S,yc as Z,za as G,zc as $}from"./chunk-WI67LAOV.js";var O=["*"],le=["inputElement"],he=["nz-checkbox",""],ue=(o,s)=>s.value;function de(o,s){if(o&1&&(d(0,"label",0),U(1),l()),o&2){let e=s.$implicit,t=x(2);D("nzValue",e.value)("nzName",t.nzName())("nzDisabled",e.disabled||t.finalDisabled()),k(),q(" ",e.label," ")}}function pe(o,s){if(o&1&&P(0,de,2,4,"label",0,ue),o&2){let e=x();W(e.normalizedOptions())}}var me=(()=>{class o{nzOnChange=new g;checkboxList=[];addCheckbox(e){this.checkboxList.push(e)}removeCheckbox(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)}onChange(){let e=this.checkboxList.filter(t=>t.nzChecked).map(t=>t.nzValue);this.nzOnChange.emit(e)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=u({type:o,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:O,decls:1,vars:0,template:function(t,n){t&1&&(p(),m(0))},encapsulation:2,changeDetection:0})}return o})(),re=new V(""),ae=(()=>{class o{ngZone=i(A);elementRef=i(z);cdr=i(Y);focusMonitor=i(F);directionality=i(N);destroyRef=i(f);checkboxGroupComponent=i(re,{optional:!0});nzFormStatusService=i(ne,{optional:!0});nzCheckboxWrapperComponent=i(me,{optional:!0});dir="ltr";destroy$=new _;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new g;nzValue=null;nzAutoFocus=!1;nzDisabled=!1;nzIndeterminate=!1;nzChecked=!1;nzId=null;nzName=null;innerCheckedChange(e){!this.nzDisabled&&!this.checkboxGroupComponent?.finalDisabled()&&(this.setValue(e),this.nzCheckboxWrapperComponent?.onChange(),this.checkboxGroupComponent?.onCheckedChange(this.nzValue,e))}writeValue(e){this.nzChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef),this.nzCheckboxWrapperComponent?.removeCheckbox(this)}),this.checkboxGroupComponent&&X(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck()})}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(c(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent?.addCheckbox(this),this.directionality.change.pipe(c(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,M(this.elementRef.nativeElement,"click").pipe(c(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),M(this.inputElement.nativeElement,"click").pipe(c(this.destroyRef)).subscribe(e=>e.stopPropagation())}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setValue(e){this.nzChecked=e,this.onChange(e),this.nzCheckedChange.emit(e)}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=u({type:o,selectors:[["","nz-checkbox",""]],viewQuery:function(t,n){if(t&1&&Z(le,7),t&2){let r;$(r=H())&&(n.inputElement=r.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(t,n){t&2&&b("ant-checkbox-group-item",!!n.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!n.nzFormStatusService)("ant-checkbox-wrapper-checked",n.nzChecked)("ant-checkbox-wrapper-disabled",n.nzDisabled||(n.checkboxGroupComponent==null?null:n.checkboxGroupComponent.finalDisabled()))("ant-checkbox-rtl",n.dir==="rtl")},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",a],nzDisabled:[2,"nzDisabled","nzDisabled",a],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",a],nzChecked:[2,"nzChecked","nzChecked",a],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[v([{provide:E,useExisting:h(()=>o),multi:!0}])],attrs:he,ngContentSelectors:O,decls:6,vars:12,consts:[["inputElement",""],[1,"ant-checkbox"],["type","checkbox",1,"ant-checkbox-input",3,"ngModelChange","checked","ngModel","disabled"],[1,"ant-checkbox-inner"]],template:function(t,n){if(t&1){let r=B();p(),d(0,"span",1)(1,"input",2,0),Q("ngModelChange",function(ce){return S(r),G(n.innerCheckedChange(ce))}),l(),L(3,"span",3),l(),d(4,"span"),m(5),l()}t&2&&(b("ant-checkbox-checked",n.nzChecked&&!n.nzIndeterminate)("ant-checkbox-disabled",n.nzDisabled||(n.checkboxGroupComponent==null?null:n.checkboxGroupComponent.finalDisabled()))("ant-checkbox-indeterminate",n.nzIndeterminate),k(),D("checked",n.nzChecked)("ngModel",n.nzChecked)("disabled",n.nzDisabled||((n.checkboxGroupComponent==null?null:n.checkboxGroupComponent.finalDisabled())??!1)),j("autofocus",n.nzAutoFocus?"autofocus":null)("id",n.nzId)("name",n.nzName||(n.checkboxGroupComponent==null?null:n.checkboxGroupComponent.nzName())))},dependencies:[se,te,oe,ie],encapsulation:2,changeDetection:0})}return o})(),be=(()=>{class o{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=!0;directionality=i(N);nzName=C(null);nzDisabled=C(!1,{transform:a});nzOptions=C([]);value=R(null);finalDisabled=J(()=>this.nzDisabled());dir=ee(this.directionality.change,{initialValue:this.directionality.value});normalizedOptions=K(()=>Ce(this.nzOptions()));constructor(){let e=i(z),t=i(F),n=i(f);I(()=>{t.monitor(e,!0).pipe(c(n)).subscribe(r=>{r||this.onTouched()}),n.onDestroy(()=>{t.stopMonitoring(e)})})}writeValue(e){y(()=>{this.value.set(e)})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){y(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e)}),this.isDisabledFirstChange=!1}onCheckedChange(e,t){this.finalDisabled()||(this.value.update(n=>t?n?.concat(e)||[e]:n?.filter(r=>r!==e)||[]),this.onChange(this.value()))}static \u0275fac=function(t){return new(t||o)};static \u0275cmp=u({type:o,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(t,n){t&2&&b("ant-checkbox-group-rtl",n.dir()==="rtl")},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[v([{provide:E,useExisting:h(()=>o),multi:!0},{provide:re,useExisting:h(()=>o)}])],ngContentSelectors:O,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(t,n){t&1&&(p(),m(0,0,null,pe,2,0))},dependencies:[ae],encapsulation:2,changeDetection:0})}return o})();function Ce(o){return o.map(s=>typeof s=="string"||typeof s=="number"?{label:`${s}`,value:s}:s)}var Re=(()=>{class o{static \u0275fac=function(t){return new(t||o)};static \u0275mod=T({type:o});static \u0275inj=w({imports:[ae,be]})}return o})();export{ae as a,Re as b};
|