@yinuo-ngm/server 1.0.19 → 1.0.21
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/app.js +0 -4
- package/lib/env.js +5 -1
- package/lib/plugins/success-handle.plugin.js +1 -1
- package/lib/plugins/ws/topics/nginx.ws.js +1 -1
- package/lib/plugins/ws/ws.context.js +3 -1
- package/lib/plugins/ws/ws.plugin.js +14 -2
- package/lib/routes/api-client/collection.routes.js +35 -35
- package/lib/routes/api-client/env.routes.js +12 -8
- package/lib/routes/api-client/history.routes.js +10 -5
- package/lib/routes/api-client/request.routes.js +14 -8
- package/lib/routes/api-client/route-mappers.d.ts +7 -0
- package/lib/routes/api-client/route-mappers.js +78 -0
- package/lib/routes/api-client/send.routes.js +12 -8
- package/lib/routes/config.routes.js +73 -49
- package/lib/routes/deps.route.js +47 -5
- package/lib/routes/nginx/nginx-config.routes.js +3 -3
- package/lib/routes/nginx/nginx-lifecycle.routes.js +14 -13
- package/lib/routes/nginx/nginx-module.routes.js +6 -6
- package/lib/routes/nginx/nginx-route.context.d.ts +16 -1
- package/lib/routes/nginx/nginx-route.context.js +136 -1
- package/lib/routes/nginx/nginx-server.routes.js +5 -5
- package/lib/routes/project.routes.js +90 -13
- package/lib/routes/sprite-browse.routes.js +17 -11
- package/lib/routes/sprite.routes.d.ts +1 -1
- package/lib/routes/sprite.routes.js +68 -11
- package/lib/routes/svn.routes.js +48 -14
- package/lib/routes/task.routes.js +99 -7
- package/package.json +7 -7
- package/www/3rdpartylicenses.txt +5 -5
- package/www/browser/{chunk-OZCK4XVV.js → chunk-2VJVGBXG.js} +1 -1
- package/www/browser/{chunk-FL6GDGHW.js → chunk-3ODVU46S.js} +1 -1
- package/www/browser/chunk-442QFABJ.js +1 -0
- package/www/browser/{chunk-WD2EKZQC.js → chunk-6J6G7JEP.js} +1 -1
- package/www/browser/{chunk-7U44RF5F.js → chunk-6UFDNETG.js} +1 -1
- package/www/browser/{chunk-75W3GVSO.js → chunk-7AKVG375.js} +1 -1
- package/www/browser/chunk-7GLWEFTM.js +1 -0
- package/www/browser/{chunk-DIJPUYIA.js → chunk-7QR6RHLA.js} +1 -1
- package/www/browser/{chunk-HJTXXSMC.js → chunk-CO3CQHKV.js} +1 -1
- package/www/browser/{chunk-3XNNQFWR.js → chunk-CPJTSA6E.js} +1 -1
- package/www/browser/chunk-DENFXXOY.js +1 -0
- package/www/browser/{chunk-HDNG236Q.js → chunk-HC5KLPHD.js} +1 -1
- package/www/browser/chunk-HJAP6WBI.js +1 -0
- package/www/browser/{chunk-N2PELLMM.js → chunk-JM6DCZP6.js} +7 -7
- package/www/browser/chunk-K6C5ZIV2.js +20 -0
- package/www/browser/chunk-M6NZ6C2R.js +2 -0
- package/www/browser/{chunk-RGOYDY7H.js → chunk-MBPB43C6.js} +1 -1
- package/www/browser/chunk-MPLGMTLT.js +3 -0
- package/www/browser/chunk-NNOWADVM.js +1 -0
- package/www/browser/{chunk-M4QRBV3K.js → chunk-NREWZQVN.js} +1 -1
- package/www/browser/{chunk-6YYNHZ2A.js → chunk-OUGN4APK.js} +1 -1
- package/www/browser/chunk-PB2LGZNW.js +1 -0
- package/www/browser/chunk-PDI3HSSH.js +4 -0
- package/www/browser/chunk-PUG3VNTI.js +3 -0
- package/www/browser/{chunk-QJP5F735.js → chunk-PY3AUTHC.js} +1 -1
- package/www/browser/{chunk-3M56F2S2.js → chunk-R4HSZU2J.js} +1 -1
- package/www/browser/{chunk-DE6E23ET.js → chunk-RKK4I2RT.js} +1 -1
- package/www/browser/chunk-RMIYLAEM.js +1 -0
- package/www/browser/chunk-RZA3IFQV.js +2 -0
- package/www/browser/{chunk-K7PESFPY.js → chunk-SD2HFD54.js} +1 -1
- package/www/browser/{chunk-BTQIUVTQ.js → chunk-SEJGGBE2.js} +1 -1
- package/www/browser/chunk-SSCUT2GF.js +1 -0
- package/www/browser/chunk-TCBOC5FF.js +1 -0
- package/www/browser/{chunk-AZ6SIMYH.js → chunk-TS5ZQYYY.js} +1 -1
- package/www/browser/chunk-TVJHI463.js +1 -0
- package/www/browser/{chunk-YNW4HEJO.js → chunk-TXAXE73U.js} +17 -17
- package/www/browser/{chunk-4X42HB6N.js → chunk-U2YWR3HF.js} +1 -1
- package/www/browser/{chunk-D2ODDESN.js → chunk-U3EUR236.js} +1 -1
- package/www/browser/chunk-UKCMUTYL.js +1 -0
- package/www/browser/{chunk-DLGJD6YU.js → chunk-UPOORT3S.js} +1 -1
- package/www/browser/chunk-VW3S7C2Z.js +1 -0
- package/www/browser/chunk-VZYJ3MSW.js +15 -0
- package/www/browser/{chunk-AELTP6YN.js → chunk-WCHN62X6.js} +1 -1
- package/www/browser/chunk-WWIPELAV.js +1 -0
- package/www/browser/{chunk-B3C35ET3.js → chunk-WYNERG74.js} +1 -1
- package/www/browser/{chunk-ZTDLWBW5.js → chunk-XJDJL3TQ.js} +1 -1
- package/www/browser/{chunk-EEDA5U4V.js → chunk-YV6QPLF5.js} +1 -1
- package/www/browser/{chunk-ONXBYGIG.js → chunk-YVRGRFK2.js} +1 -1
- package/www/browser/index.html +1 -1
- package/www/browser/main-7GYUOEJY.js +38 -0
- package/lib/plugins/api-client.plugin.d.ts +0 -3
- package/lib/plugins/api-client.plugin.js +0 -55
- package/lib/plugins/nginx.binding.store.d.ts +0 -4
- package/lib/plugins/nginx.binding.store.js +0 -39
- package/lib/plugins/nginx.plugin.d.ts +0 -3
- package/lib/plugins/nginx.plugin.js +0 -23
- package/www/browser/chunk-2L7NUOMX.js +0 -2
- package/www/browser/chunk-2NZJ7CN2.js +0 -20
- package/www/browser/chunk-3CM4SKDO.js +0 -15
- package/www/browser/chunk-3OHBKMAA.js +0 -1
- package/www/browser/chunk-4LBSLURA.js +0 -1
- package/www/browser/chunk-5DYX4DUX.js +0 -11
- package/www/browser/chunk-6SYVDN5L.js +0 -1
- package/www/browser/chunk-AMXRL4GR.js +0 -1
- package/www/browser/chunk-AV2ZODEH.js +0 -1
- package/www/browser/chunk-CN5J4WNO.js +0 -1
- package/www/browser/chunk-FK6Z4HLL.js +0 -1
- package/www/browser/chunk-FXCG34QS.js +0 -1
- package/www/browser/chunk-H5HGMOE6.js +0 -1
- package/www/browser/chunk-HB3HECPD.js +0 -1
- package/www/browser/chunk-HUMCWAKJ.js +0 -3
- package/www/browser/chunk-IKB3EQCP.js +0 -2
- package/www/browser/chunk-OSBDR36P.js +0 -1
- package/www/browser/chunk-XLFHB7RS.js +0 -3
- package/www/browser/main-N64WJCHX.js +0 -34
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yinuo-ngm/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.21",
|
|
4
4
|
"description": "a server package for Yinuo NG Manager",
|
|
5
5
|
"author": "ZhangJing <892295834@qq.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@fastify/static": "^9.0.0",
|
|
30
30
|
"@fastify/websocket": "^11.2.0",
|
|
31
|
-
"@yinuo-ngm/api": "^0.1.
|
|
32
|
-
"@yinuo-ngm/core": "^0.1.
|
|
33
|
-
"@yinuo-ngm/errors": "^1.0.
|
|
34
|
-
"@yinuo-ngm/nginx": "^0.1.
|
|
35
|
-
"@yinuo-ngm/protocol": "^0.1.
|
|
31
|
+
"@yinuo-ngm/api": "^0.1.7",
|
|
32
|
+
"@yinuo-ngm/core": "^0.1.13",
|
|
33
|
+
"@yinuo-ngm/errors": "^1.0.2",
|
|
34
|
+
"@yinuo-ngm/nginx": "^0.1.4",
|
|
35
|
+
"@yinuo-ngm/protocol": "^0.1.2",
|
|
36
36
|
"fastify": "^5.6.2",
|
|
37
37
|
"fastify-plugin": "^5.1.0",
|
|
38
38
|
"launch-editor": "^2.12.0",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"@types/mime-types": "^3.0.1",
|
|
44
44
|
"tsx": "^4.21.0"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "3f4445714fe3483f9b92687b700100dcdd621614"
|
|
47
47
|
}
|
package/www/3rdpartylicenses.txt
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
--------------------------------------------------------------------------------
|
|
3
|
-
Package: ng-zorro-antd
|
|
4
|
-
License: "MIT"
|
|
5
|
-
|
|
6
|
-
|
|
7
2
|
--------------------------------------------------------------------------------
|
|
8
3
|
Package: dayjs
|
|
9
4
|
License: "MIT"
|
|
@@ -30,6 +25,11 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
30
25
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
31
26
|
SOFTWARE.
|
|
32
27
|
|
|
28
|
+
--------------------------------------------------------------------------------
|
|
29
|
+
Package: ng-zorro-antd
|
|
30
|
+
License: "MIT"
|
|
31
|
+
|
|
32
|
+
|
|
33
33
|
--------------------------------------------------------------------------------
|
|
34
34
|
Package: @angular/common
|
|
35
35
|
License: "MIT"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ab as S,Bb as re,Fb as ce,Jb as ae,L as a,M as oe,Tb as ue,Za as w,a as N,i as ie,pa as F,xb as se}from"./chunk-VZYJ3MSW.js";import{$b as B,Ac as K,Da as u,Fb as f,Gb as O,Gc as g,Ha as T,Jc as X,Lc as J,Ra as p,Ub as L,Xc as v,ac as Q,bc as R,cc as m,dc as l,ec as Z,hd as M,i as A,id as Y,jd as ee,kd as ne,l as d,lc as $,ma as h,na as D,nb as x,oa as y,od as k,qa as j,rc as H,sa as o,sb as b,tb as P,uc as E,ud as te,vb as W,vc as z,wc as C,ya as G,yc as U,yd as c,za as _,zc as q}from"./chunk-4BRW6LCZ.js";var I=["*"],be=["inputElement"],fe=["nz-checkbox",""],me=(i,r)=>r.value;function ze(i,r){if(i&1&&(m(0,"label",0),X(1),l()),i&2){let e=r.$implicit,n=E(2);R("nzValue",e.value)("nzName",n.nzName())("nzDisabled",e.disabled||n.finalDisabled()),x(),J(" ",e.label," ")}}function Ce(i,r){if(i&1&&B(0,ze,2,4,"label",0,me),i&2){let e=E();Q(e.normalizedOptions())}}var ge=(()=>{class i{nzOnChange=new b;checkboxList=[];addCheckbox(e){this.checkboxList.push(e)}removeCheckbox(e){this.checkboxList.splice(this.checkboxList.indexOf(e),1)}onChange(){let e=this.checkboxList.filter(n=>n.nzChecked).map(n=>n.nzValue);this.nzOnChange.emit(e)}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["nz-checkbox-wrapper"]],hostAttrs:[1,"ant-checkbox-group"],outputs:{nzOnChange:"nzOnChange"},exportAs:["nzCheckboxWrapper"],ngContentSelectors:I,decls:1,vars:0,template:function(n,t){n&1&&(z(),C(0))},encapsulation:2,changeDetection:0})}return i})(),le=new j(""),de=(()=>{class i{ngZone=o(P);elementRef=o(p);cdr=o(te);focusMonitor=o(w);directionality=o(N);destroyRef=o(u);checkboxGroupComponent=o(le,{optional:!0});nzFormStatusService=o(se,{optional:!0});nzCheckboxWrapperComponent=o(ge,{optional:!0});dir="ltr";destroy$=new d;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};inputElement;nzCheckedChange=new b;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&&ee(()=>{let e=this.checkboxGroupComponent.value()||[];this.setValue(e.includes(this.nzValue)),this.cdr.markForCheck()})}ngOnInit(){this.focusMonitor.monitor(this.elementRef,!0).pipe(a(this.destroyRef)).subscribe(e=>{e||Promise.resolve().then(()=>this.onTouched())}),this.nzCheckboxWrapperComponent?.addCheckbox(this),this.directionality.change.pipe(a(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,F(this.elementRef.nativeElement,"click").pipe(a(this.destroyRef)).subscribe(e=>{e.preventDefault(),this.focus(),!this.nzDisabled&&this.ngZone.run(()=>{this.innerCheckedChange(!this.nzChecked),this.cdr.markForCheck()})}),F(this.inputElement.nativeElement,"click").pipe(a(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(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["","nz-checkbox",""]],viewQuery:function(n,t){if(n&1&&U(be,7),n&2){let s;q(s=K())&&(t.inputElement=s.first)}},hostAttrs:[1,"ant-checkbox-wrapper"],hostVars:10,hostBindings:function(n,t){n&2&&g("ant-checkbox-group-item",!!t.checkboxGroupComponent)("ant-checkbox-wrapper-in-form-item",!!t.nzFormStatusService)("ant-checkbox-wrapper-checked",t.nzChecked)("ant-checkbox-wrapper-disabled",t.nzDisabled||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled()))("ant-checkbox-rtl",t.dir==="rtl")},inputs:{nzValue:"nzValue",nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",c],nzDisabled:[2,"nzDisabled","nzDisabled",c],nzIndeterminate:[2,"nzIndeterminate","nzIndeterminate",c],nzChecked:[2,"nzChecked","nzChecked",c],nzId:"nzId",nzName:"nzName"},outputs:{nzCheckedChange:"nzCheckedChange"},exportAs:["nzCheckbox"],features:[v([{provide:S,useExisting:h(()=>i),multi:!0}])],attrs:fe,ngContentSelectors:I,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(n,t){if(n&1){let s=$();z(),m(0,"span",1)(1,"input",2,0),H("ngModelChange",function(he){return G(s),_(t.innerCheckedChange(he))}),l(),Z(3,"span",3),l(),m(4,"span"),C(5),l()}n&2&&(g("ant-checkbox-checked",t.nzChecked&&!t.nzIndeterminate)("ant-checkbox-disabled",t.nzDisabled||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled()))("ant-checkbox-indeterminate",t.nzIndeterminate),x(),R("checked",t.nzChecked)("ngModel",t.nzChecked)("disabled",t.nzDisabled||((t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.finalDisabled())??!1)),L("autofocus",t.nzAutoFocus?"autofocus":null)("id",t.nzId)("name",t.nzName||(t.checkboxGroupComponent==null?null:t.checkboxGroupComponent.nzName())))},dependencies:[ue,re,ce,ae],encapsulation:2,changeDetection:0})}return i})(),ve=(()=>{class i{onChange=()=>{};onTouched=()=>{};isDisabledFirstChange=!0;directionality=o(N);nzName=k(null);nzDisabled=k(!1,{transform:c});nzOptions=k([]);value=T(null);finalDisabled=ne(()=>this.nzDisabled());dir=oe(this.directionality.change,{initialValue:this.directionality.value});normalizedOptions=Y(()=>ke(this.nzOptions()));constructor(){let e=o(p),n=o(w),t=o(u);W(()=>{n.monitor(e,!0).pipe(a(t)).subscribe(s=>{s||this.onTouched()}),t.onDestroy(()=>{n.stopMonitoring(e)})})}writeValue(e){M(()=>{this.value.set(e)})}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){M(()=>{this.finalDisabled.set(this.isDisabledFirstChange&&this.nzDisabled()||e)}),this.isDisabledFirstChange=!1}onCheckedChange(e,n){this.finalDisabled()||(this.value.update(t=>n?t?.concat(e)||[e]:t?.filter(s=>s!==e)||[]),this.onChange(this.value()))}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=f({type:i,selectors:[["nz-checkbox-group"]],hostAttrs:[1,"ant-checkbox-group"],hostVars:2,hostBindings:function(n,t){n&2&&g("ant-checkbox-group-rtl",t.dir()==="rtl")},inputs:{nzName:[1,"nzName"],nzDisabled:[1,"nzDisabled"],nzOptions:[1,"nzOptions"]},exportAs:["nzCheckboxGroup"],features:[v([{provide:S,useExisting:h(()=>i),multi:!0},{provide:le,useExisting:h(()=>i)}])],ngContentSelectors:I,decls:2,vars:0,consts:[["nz-checkbox","",3,"nzValue","nzName","nzDisabled"]],template:function(n,t){n&1&&(z(),C(0,0,null,Ce,2,0))},dependencies:[de],encapsulation:2,changeDetection:0})}return i})();function ke(i){return i.map(r=>typeof r=="string"||typeof r=="number"?{label:`${r}`,value:r}:r)}var Te=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=O({type:i});static \u0275inj=y({imports:[de,ve]})}return i})();var De=(()=>{class i{create(e){return typeof ResizeObserver>"u"?null:new ResizeObserver(e)}static \u0275fac=function(n){return new(n||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Xe=(()=>{class i{nzResizeObserverFactory=o(De);destroyRef=o(u);observedElements=new Map;constructor(){this.destroyRef.onDestroy(()=>this.observedElements.forEach((e,n)=>this.cleanupObserver(n)))}observe(e){let n=ie(e);return new A(t=>{let V=this.observeElement(n).subscribe(t);return()=>{V.unsubscribe(),this.unobserveElement(n)}})}observeElement(e){if(this.observedElements.has(e))this.observedElements.get(e).count++;else{let n=new d,t=this.nzResizeObserverFactory.create(s=>n.next(s));t&&t.observe(e),this.observedElements.set(e,{observer:t,stream:n,count:1})}return this.observedElements.get(e).stream}unobserveElement(e){this.observedElements.has(e)&&(this.observedElements.get(e).count--,this.observedElements.get(e).count||this.cleanupObserver(e))}cleanupObserver(e){if(this.observedElements.has(e)){let{observer:n,stream:t}=this.observedElements.get(e);n&&n.disconnect(),t.complete(),this.observedElements.delete(e)}}static \u0275fac=function(n){return new(n||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{de as a,Te as b,Xe as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as A,b as D}from"./chunk-
|
|
1
|
+
import{a as A,b as D}from"./chunk-HC5KLPHD.js";import{Ea as T,Fa as b,La as y,Ma as k,Na as x,Oa as S,Qa as E,Ra as v}from"./chunk-VZYJ3MSW.js";import{Fb as _,Jc as a,Wb as d,Yb as g,cc as i,dc as o,ec as s,lc as z,nb as C,rc as c,sb as f,uc as l,ya as m,za as u}from"./chunk-4BRW6LCZ.js";function F(n,p){if(n&1){let t=z();i(0,"button",2),c("click",function(){m(t);let r=l();return u(r.toggle.emit())}),s(1,"span",3),a(2," \u8FD0\u884C "),o()}}function N(n,p){n&1&&(i(0,"button",1),s(1,"span",4),a(2," \u505C\u6B62\u4E2D... "),o())}function B(n,p){if(n&1){let t=z();i(0,"button",5),c("nzOnConfirm",function(){m(t);let r=l();return u(r.stopTask())}),s(1,"span",6),a(2," \u505C\u6B62 "),o(),i(3,"button",7),c("nzOnConfirm",function(){m(t);let r=l();return u(r.restart.emit())}),s(4,"span",8),a(5," \u91CD\u542F "),o()}}var w=class n{isRunning=!1;isStopping=!1;isStartable=!1;toggle=new f;restart=new f;stopTask(){this.toggle.emit()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["app-task-actions"]],inputs:{isRunning:"isRunning",isStopping:"isStopping",isStartable:"isStartable"},outputs:{toggle:"toggle",restart:"restart"},decls:4,vars:1,consts:[["nz-button","","nzType","primary"],["nz-button","","nzType","primary","nzDanger",""],["nz-button","","nzType","primary",3,"click"],["nz-icon","","nzType","play-circle"],["nz-icon","","nzType","loading"],["nz-button","","nzType","primary","nzDanger","","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u505C\u6B62\u8BE5\u4EFB\u52A1\u5417\uFF1F",3,"nzOnConfirm"],["nz-icon","","nzType","pause"],["nz-button","","nzType","default","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u91CD\u542F\u8BE5\u4EFB\u52A1\u5417\uFF1F",3,"nzOnConfirm"],["nz-icon","","nzType","sync"]],template:function(t,e){t&1&&(i(0,"nz-space"),d(1,F,3,0,"button",0)(2,N,3,0,"button",1)(3,B,6,0),o()),t&2&&(C(),g(e.isStartable?1:e.isStopping?2:e.isRunning?3:-1))},dependencies:[k,y,v,E,x,S,b,T,D,A],styles:["[_nghost-%COMP%]{padding:0 16px;display:flex;flex-direction:row;align-items:center;position:relative}"]})};export{w as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{k as c}from"./chunk-K6C5ZIV2.js";import{u as r}from"./chunk-KRYMOHYF.js";import{Ha as a,m,na as i,sa as k}from"./chunk-4BRW6LCZ.js";var R=class e{api=k(c);refresh(t){return this.api.post(`/api/tasks/refresh/${t}`,{})}refreshProjectScripts(t){return this.api.post(`/api/projects/refreshScripts/${t}`,{})}getViews(t){return this.api.get(`/api/tasks/list/${t}`)}getStatus(t){return this.api.get(`/api/tasks/status/${t}`)}start(t){let s={taskId:t};return this.api.post("/api/tasks/start",s)}stop(t){let s={taskId:t};return this.api.post("/api/tasks/stop",s)}restart(t){let s={taskId:t};return this.api.post("/api/tasks/restart",s)}active(){return this.api.get("/api/tasks/active")}getRunLog(t,s=200){let n=new r().set("tail",s.toString());return this.api.get(`/api/tasks/log/run/${t}`,n)}getLatestReport(t){return this.api.get(`/api/tasks/report/latest/${t}`)}getLatestDiagnostics(t){return this.api.get(`/api/tasks/diagnostics/latest/${t}`)}getReportSummariesByTask(t,s=10){let n=new r().set("limit",String(s));return this.api.get(`/api/tasks/report/summary/task/${t}`,n)}getDashboard(t){return this.api.get(`/api/tasks/dashboard/${t}`)}getSyslog(t=200){let s=new r().set("tail",t.toString());return this.api.get("/api/tasks/syslog",s)}static \u0275fac=function(s){return new(s||e)};static \u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})};var T=class e{statusByTask=new Map;sigByTask=new Map;runtimeByTask=new Map;runningCountByProject=new Map;totalRunningCount=a(0);totalRunningCountSignal(){return this.totalRunningCount}setRuntime(t){let s=this.norm(t.taskId),n=this.norm(t.projectId);if(!s||!n)return;let h=this.ensureTaskSignal(s)(),o=this.isBusy(h.status),d=this.isBusy(t.status),u=this.toStatus(t);if(this.ensureTaskSubject(s).next(u),this.ensureTaskSignal(s).set(u),this.ensureRuntimeSignal(s).set(t),o!==d){let p=this.ensureProjectCount(n),g=p();p.set(o?Math.max(0,g-1):g+1);let l=this.totalRunningCount();this.totalRunningCount.set(o?Math.max(0,l-1):l+1)}}status$(t){return this.ensureTaskSubject(t).asObservable()}statusSignal(t){return this.ensureTaskSignal(t)}runtimeSignal(t){return this.ensureRuntimeSignal(t)}hasRunning(t){return this.ensureProjectCount(t)()>0}runningCountSignal(t){return this.ensureProjectCount(t)}snapshot(t){return this.ensureTaskSignal(t)()}toStatus(t){switch(t.status){case"idle":return{status:"idle"};case"running":return{status:"running",pid:t.pid,startedAt:t.startedAt};case"stopping":return{status:"stopping"};case"failed":return{status:"failed",exitCode:t.exitCode??null,signal:t.signal??null,stoppedAt:t.stoppedAt};case"success":return{status:"success",exitCode:t.exitCode??null,signal:t.signal??null,stoppedAt:t.stoppedAt};case"stopped":return{status:"stopped",exitCode:t.exitCode??null,signal:t.signal??null,stoppedAt:t.stoppedAt};default:return{status:"idle"}}}isBusy(t){return t==="running"||t==="stopping"}norm(t){return(t??"").trim()}ensureTaskSubject(t){let s=this.norm(t);return this.statusByTask.has(s)||this.statusByTask.set(s,new m({status:"idle"})),this.statusByTask.get(s)}ensureTaskSignal(t){let s=this.norm(t);return this.sigByTask.has(s)||this.sigByTask.set(s,a({status:"idle"})),this.sigByTask.get(s)}ensureProjectCount(t){let s=this.norm(t);return this.runningCountByProject.has(s)||this.runningCountByProject.set(s,a(0)),this.runningCountByProject.get(s)}ensureRuntimeSignal(t){let s=this.norm(t);return this.runtimeByTask.has(s)||this.runtimeByTask.set(s,a(void 0)),this.runtimeByTask.get(s)}static \u0275fac=function(s){return new(s||e)};static \u0275prov=i({token:e,factory:e.\u0275fac,providedIn:"root"})};export{R as a,T as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as b,D as Ee,Ea as Fe,G as Ie,Ga as Pe,H as q,Ha as Ve,Ia as je,Ja as We,L as P,W as G,a as Te,cb as $e,jb as Be,l as Ne,r as U,s as ke,sb as Qe,ta as Ae,u as F,v as Me,va as D,y as Se}from"./chunk-3CM4SKDO.js";import{i as Re}from"./chunk-KRYMOHYF.js";import{Ac as S,Ba as N,Bb as ze,Ca as me,Da as pe,Fb as Ce,Fc as E,Gb as _e,Gc as K,Hb as ge,Hc as L,Ic as xe,Jb as ye,Jc as I,Kc as A,Lb as C,Na as fe,Oa as he,Vc as be,Wb as m,Yb as p,bc as f,c as se,cc as h,dc as u,dd as De,ec as ve,f as j,fa as W,ic as O,jc as x,kc as we,l as T,lc as X,na as le,nb as o,oa as ce,qa as de,r as w,rc as Y,s as z,sa as l,sb as k,uc as r,ud as H,wb as Q,xc as Oe,ya as $,yb as ue,yc as Z,yd as g,za as B,zc as M}from"./chunk-4BRW6LCZ.js";var Ke=["drawerTemplate"];function Le(t,a){if(t&1){let e=X();h(0,"div",9),Y("click",function(){$(e);let _=r(2);return B(_.maskClick())}),u()}if(t&2){let e=r(2);L(e.nzMaskStyle),f("@drawerMaskMotion",void 0)}}function He(t,a){if(t&1&&(O(0),ve(1,"nz-icon",17),x()),t&2){let e=a.$implicit;o(),f("nzType",e)}}function Ue(t,a){if(t&1){let e=X();h(0,"button",15),Y("click",function(){$(e);let _=r(3);return B(_.closeClick())}),C(1,He,2,1,"ng-container",16),u()}if(t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzCloseIcon)}}function qe(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzTitle)}}function Ge(t,a){if(t&1&&(h(0,"div",13),C(1,qe,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzTitle)}}function Je(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzExtra)}}function et(t,a){if(t&1&&(h(0,"div",14),C(1,Je,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzExtra)}}function tt(t,a){if(t&1&&(h(0,"div",10)(1,"div",11),m(2,Ue,2,1,"button",12),m(3,Ge,2,1,"div",13),u(),m(4,et,2,1,"div",14),u()),t&2){let e=r(2);K("ant-drawer-header-close-only",!e.nzTitle),o(2),p(e.nzClosable?2:-1),o(),p(e.nzTitle?3:-1),o(),p(e.nzExtra?4:-1)}}function nt(t,a){}function it(t,a){t&1&&we(0)}function at(t,a){if(t&1&&C(0,it,1,0,"ng-container",18),t&2){let e=r(3);f("ngTemplateOutlet",e.nzContent)("ngTemplateOutletContext",e.templateContext)}}function ot(t,a){if(t&1&&m(0,at,1,2,"ng-container"),t&2){let e=r(2);p(e.isTemplateRef(e.nzContent)?0:-1)}}function rt(t,a){}function st(t,a){if(t&1&&C(0,rt,0,0,"ng-template",19),t&2){let e=r(3);f("ngTemplateOutlet",e.contentFromContentChild)}}function lt(t,a){if(t&1&&m(0,st,1,1,null,19),t&2){let e=r(2);p(e.contentFromContentChild&&(e.isOpen||e.inAnimation)?0:-1)}}function ct(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(3);o(),A(e.nzFooter)}}function dt(t,a){if(t&1&&(h(0,"div",8),C(1,ct,2,1,"ng-container",16),u()),t&2){let e=r(2);o(),f("nzStringTemplateOutlet",e.nzFooter)}}function mt(t,a){if(t&1&&(h(0,"div",1),m(1,Le,1,3,"div",2),h(2,"div")(3,"div",3)(4,"div",4),m(5,tt,5,5,"div",5),h(6,"div",6),C(7,nt,0,0,"ng-template",7),m(8,ot,1,1)(9,lt,1,1),u(),m(10,dt,2,1,"div",8),u()()()()),t&2){let e=r();E("transform",e.offsetTransform)("transition",e.placementChanging?"none":null)("z-index",e.nzZIndex),K("ant-drawer-rtl",e.dir==="rtl")("ant-drawer-open",e.isOpen)("no-mask",!e.nzMask)("ant-drawer-top",e.nzPlacement==="top")("ant-drawer-bottom",e.nzPlacement==="bottom")("ant-drawer-right",e.nzPlacement==="right")("ant-drawer-left",e.nzPlacement==="left"),f("nzNoAnimation",e.nzNoAnimation),o(),p(e.nzMask&&e.isOpen?1:-1),o(),xe(be("ant-drawer-content-wrapper ",e.nzWrapClassName)),E("width",e.width)("height",e.height)("transform",e.transform)("transition",e.placementChanging?"none":null),o(2),E("height",e.isLeftOrRight?"100%":null),o(),p(e.nzTitle||e.nzClosable?5:-1),o(),L(e.nzBodyStyle),o(2),p(e.nzContent?8:9),o(2),p(e.nzFooter?10:-1)}}var pt=(()=>{class t{templateRef=l(Q);static \u0275fac=function(c){return new(c||t)};static \u0275dir=ge({type:t,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]})}return t})(),Xe=378,Ye=736,ft=new de(""),V=class{},ht=300,ut="drawer",Ze=(()=>{var d;let t=V,a,e=[],c=[],_,v=[],R=[],ee,te=[],ne=[],ie,ae=[],oe=[];return d=class extends t{cdr=l(H);nzConfigService=l(Ae);renderer=l(ue);injector=l(N);changeDetectorRef=l(H);focusTrapFactory=l($e);viewContainerRef=l(ze);overlayKeyboardDispatcher=l(Ee);directionality=l(Te);destroyRef=l(pe);_nzModuleName=ut;nzContent;nzCloseIcon="close";nzClosable=!0;nzMaskClosable=z(this,e,!0);nzMask=(z(this,c),z(this,v,!0));nzCloseOnNavigation=(z(this,R),z(this,te,!0));nzNoAnimation=(z(this,ne),!1);nzKeyboard=!0;nzTitle;nzExtra;nzFooter;nzPlacement="right";nzSize="default";nzMaskStyle={};nzBodyStyle={};nzWrapClassName;nzWidth;nzHeight;nzZIndex=1e3;nzOffsetX=0;nzOffsetY=0;componentInstance=null;componentRef=null;set nzVisible(i){this.isOpen=i}get nzVisible(){return this.isOpen}nzOnViewInit=new k;nzOnClose=new k;nzVisibleChange=new k;drawerTemplate;bodyPortalOutlet;contentFromContentChild;previouslyFocusedElement;placementChanging=!1;placementChangeTimeoutId;nzContentParams;nzData;overlayRef;portal;focusTrap;isOpen=!1;inAnimation=!1;templateContext={$implicit:void 0,drawerRef:this};isTemplateRef=G;get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){if(this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzWidth===void 0?b(i):b(this.nzWidth)}return null}get height(){if(!this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzHeight===void 0?b(i):b(this.nzHeight)}return null}get isLeftOrRight(){return this.nzPlacement==="left"||this.nzPlacement==="right"}nzAfterOpen=new T;nzAfterClose=new T;get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}get isNzContentTemplateRef(){return G(this.nzContent)}nzDirection=z(this,ae,void 0);dir=(z(this,oe),"ltr");document=l(me);constructor(){super(),this.destroyRef.onDestroy(()=>{clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()})}ngOnInit(){this.directionality.change?.pipe(P(this.destroyRef)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzData||this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(i){let{nzPlacement:n,nzVisible:s}=i;s&&(i.nzVisible.currentValue?this.open():this.close()),n&&!n.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}getAnimationDuration(){return this.nzNoAnimation?0:ht}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(i){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(i),this.nzAfterClose.complete(),this.componentInstance=null,this.componentRef=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof fe){let i=N.create({parent:this.injector,providers:[{provide:V,useValue:this},{provide:ft,useValue:this.nzData}]}),n=new U(this.nzContent,null,i);this.componentRef=this.bodyPortalOutlet.attachComponentPortal(n),this.componentInstance=this.componentRef.instance,Object.assign(this.componentRef.instance,this.nzData||this.nzContentParams),this.componentRef.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new ke(this.drawerTemplate,this.viewContainerRef),this.overlayRef=q(this.injector,{disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:Ie(this.injector),scrollStrategy:Se(this.injector)}),Fe(this.overlayRef,this.nzZIndex)),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe(P(this.destroyRef)).subscribe(i=>{i.keyCode===27&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe(P(this.destroyRef)).subscribe(()=>{this.close(),this.disposeOverlay()}))}disposeOverlay(){this.overlayRef?.dispose(),this.overlayRef=null}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.blur=="function"&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.focus=="function"&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=void 0),this.focusTrap&&this.focusTrap.destroy()}},(()=>{let i=typeof Symbol=="function"&&Symbol.metadata?Object.create(t[Symbol.metadata]??null):void 0;a=[D()],_=[D()],ee=[D()],ie=[D()],w(null,null,a,{kind:"field",name:"nzMaskClosable",static:!1,private:!1,access:{has:n=>"nzMaskClosable"in n,get:n=>n.nzMaskClosable,set:(n,s)=>{n.nzMaskClosable=s}},metadata:i},e,c),w(null,null,_,{kind:"field",name:"nzMask",static:!1,private:!1,access:{has:n=>"nzMask"in n,get:n=>n.nzMask,set:(n,s)=>{n.nzMask=s}},metadata:i},v,R),w(null,null,ee,{kind:"field",name:"nzCloseOnNavigation",static:!1,private:!1,access:{has:n=>"nzCloseOnNavigation"in n,get:n=>n.nzCloseOnNavigation,set:(n,s)=>{n.nzCloseOnNavigation=s}},metadata:i},te,ne),w(null,null,ie,{kind:"field",name:"nzDirection",static:!1,private:!1,access:{has:n=>"nzDirection"in n,get:n=>n.nzDirection,set:(n,s)=>{n.nzDirection=s}},metadata:i},ae,oe),i&&Object.defineProperty(d,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),j(d,"\u0275fac",function(n){return new(n||d)}),j(d,"\u0275cmp",Ce({type:d,selectors:[["nz-drawer"]],contentQueries:function(n,s,y){if(n&1&&Oe(y,pt,7,Q),n&2){let re;M(re=S())&&(s.contentFromContentChild=re.first)}},viewQuery:function(n,s){if(n&1&&(Z(Ke,7),Z(F,5)),n&2){let y;M(y=S())&&(s.drawerTemplate=y.first),M(y=S())&&(s.bodyPortalOutlet=y.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:[2,"nzClosable","nzClosable",g],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",g],nzMask:[2,"nzMask","nzMask",g],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",g],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",g],nzKeyboard:[2,"nzKeyboard","nzKeyboard",g],nzTitle:"nzTitle",nzExtra:"nzExtra",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzSize:"nzSize",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:[2,"nzVisible","nzVisible",g]},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[ye,he],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],[1,"ant-drawer-mask",3,"style"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],[1,"ant-drawer-header",3,"ant-drawer-header-close-only"],["cdkScrollable","",1,"ant-drawer-body"],["cdkPortalOutlet",""],[1,"ant-drawer-footer"],[1,"ant-drawer-mask",3,"click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close",1,"ant-drawer-close"],[1,"ant-drawer-title"],[1,"ant-drawer-extra"],["aria-label","Close",1,"ant-drawer-close",3,"click"],[4,"nzStringTemplateOutlet"],[3,"nzType"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(n,s){n&1&&C(0,mt,11,40,"ng-template",null,0,De)},dependencies:[Qe,We,je,Ve,Pe,Me,F,Re,Ne],encapsulation:2,data:{animation:[Be]},changeDetection:0})),d})(),J=class{overlayRef;options;drawerRef;unsubscribe$=new T;constructor(a,e){this.overlayRef=a,this.options=e;let v=this.options,{nzOnCancel:c}=v,_=se(v,["nzOnCancel"]);this.drawerRef=this.overlayRef.attach(new U(Ze)).instance,this.updateOptions(_),this.drawerRef.savePreviouslyFocusedElement(),this.drawerRef.nzOnViewInit.pipe(W(this.unsubscribe$)).subscribe(()=>{this.drawerRef.open()}),this.drawerRef.nzOnClose.subscribe(()=>{c?c().then(R=>{R!==!1&&this.drawerRef.close()}):this.drawerRef.close()}),this.drawerRef.afterClose.pipe(W(this.unsubscribe$)).subscribe(()=>{this.overlayRef.dispose(),this.drawerRef=null,this.unsubscribe$.next(),this.unsubscribe$.complete()})}getInstance(){return this.drawerRef}updateOptions(a){Object.assign(this.drawerRef,a)}},zt=(()=>{class t{injector=l(N);create(e){return new J(q(this.injector),e).getInstance()}static \u0275fac=function(c){return new(c||t)};static \u0275prov=le({token:t,factory:t.\u0275fac})}return t})(),Lt=(()=>{class t{static \u0275fac=function(c){return new(c||t)};static \u0275mod=_e({type:t});static \u0275inj=ce({providers:[zt],imports:[Ze]})}return t})();export{pt as a,Ze as b,Lt as c};
|
|
1
|
+
import{$ as b,Ca as Fe,D as Ee,Ea as Pe,Fa as Ve,G as Ie,Ga as je,H as q,Ha as We,L as P,W as G,a as Te,ab as $e,hb as Be,l as Ne,qb as Qe,r as U,ra as Ae,s as ke,ta as D,u as F,v as Me,y as Se}from"./chunk-VZYJ3MSW.js";import{i as Re}from"./chunk-KRYMOHYF.js";import{Ac as S,Ba as N,Bb as ze,Ca as me,Da as pe,Fb as Ce,Fc as E,Gb as _e,Gc as K,Hb as ge,Hc as L,Ic as xe,Jb as ye,Jc as I,Kc as A,Lb as C,Na as fe,Oa as he,Vc as be,Wb as m,Yb as p,bc as f,c as se,cc as h,dc as u,dd as De,ec as ve,f as j,fa as W,ic as O,jc as x,kc as we,l as T,lc as X,na as le,nb as o,oa as ce,qa as de,r as w,rc as Y,s as z,sa as l,sb as k,uc as r,ud as H,wb as Q,xc as Oe,ya as $,yb as ue,yc as Z,yd as g,za as B,zc as M}from"./chunk-4BRW6LCZ.js";var Ke=["drawerTemplate"];function Le(t,a){if(t&1){let e=X();h(0,"div",9),Y("click",function(){$(e);let _=r(2);return B(_.maskClick())}),u()}if(t&2){let e=r(2);L(e.nzMaskStyle),f("@drawerMaskMotion",void 0)}}function He(t,a){if(t&1&&(O(0),ve(1,"nz-icon",17),x()),t&2){let e=a.$implicit;o(),f("nzType",e)}}function Ue(t,a){if(t&1){let e=X();h(0,"button",15),Y("click",function(){$(e);let _=r(3);return B(_.closeClick())}),C(1,He,2,1,"ng-container",16),u()}if(t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzCloseIcon)}}function qe(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzTitle)}}function Ge(t,a){if(t&1&&(h(0,"div",13),C(1,qe,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzTitle)}}function Je(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(4);o(),A(e.nzExtra)}}function et(t,a){if(t&1&&(h(0,"div",14),C(1,Je,2,1,"ng-container",16),u()),t&2){let e=r(3);o(),f("nzStringTemplateOutlet",e.nzExtra)}}function tt(t,a){if(t&1&&(h(0,"div",10)(1,"div",11),m(2,Ue,2,1,"button",12),m(3,Ge,2,1,"div",13),u(),m(4,et,2,1,"div",14),u()),t&2){let e=r(2);K("ant-drawer-header-close-only",!e.nzTitle),o(2),p(e.nzClosable?2:-1),o(),p(e.nzTitle?3:-1),o(),p(e.nzExtra?4:-1)}}function nt(t,a){}function it(t,a){t&1&&we(0)}function at(t,a){if(t&1&&C(0,it,1,0,"ng-container",18),t&2){let e=r(3);f("ngTemplateOutlet",e.nzContent)("ngTemplateOutletContext",e.templateContext)}}function ot(t,a){if(t&1&&m(0,at,1,2,"ng-container"),t&2){let e=r(2);p(e.isTemplateRef(e.nzContent)?0:-1)}}function rt(t,a){}function st(t,a){if(t&1&&C(0,rt,0,0,"ng-template",19),t&2){let e=r(3);f("ngTemplateOutlet",e.contentFromContentChild)}}function lt(t,a){if(t&1&&m(0,st,1,1,null,19),t&2){let e=r(2);p(e.contentFromContentChild&&(e.isOpen||e.inAnimation)?0:-1)}}function ct(t,a){if(t&1&&(O(0),I(1),x()),t&2){let e=r(3);o(),A(e.nzFooter)}}function dt(t,a){if(t&1&&(h(0,"div",8),C(1,ct,2,1,"ng-container",16),u()),t&2){let e=r(2);o(),f("nzStringTemplateOutlet",e.nzFooter)}}function mt(t,a){if(t&1&&(h(0,"div",1),m(1,Le,1,3,"div",2),h(2,"div")(3,"div",3)(4,"div",4),m(5,tt,5,5,"div",5),h(6,"div",6),C(7,nt,0,0,"ng-template",7),m(8,ot,1,1)(9,lt,1,1),u(),m(10,dt,2,1,"div",8),u()()()()),t&2){let e=r();E("transform",e.offsetTransform)("transition",e.placementChanging?"none":null)("z-index",e.nzZIndex),K("ant-drawer-rtl",e.dir==="rtl")("ant-drawer-open",e.isOpen)("no-mask",!e.nzMask)("ant-drawer-top",e.nzPlacement==="top")("ant-drawer-bottom",e.nzPlacement==="bottom")("ant-drawer-right",e.nzPlacement==="right")("ant-drawer-left",e.nzPlacement==="left"),f("nzNoAnimation",e.nzNoAnimation),o(),p(e.nzMask&&e.isOpen?1:-1),o(),xe(be("ant-drawer-content-wrapper ",e.nzWrapClassName)),E("width",e.width)("height",e.height)("transform",e.transform)("transition",e.placementChanging?"none":null),o(2),E("height",e.isLeftOrRight?"100%":null),o(),p(e.nzTitle||e.nzClosable?5:-1),o(),L(e.nzBodyStyle),o(2),p(e.nzContent?8:9),o(2),p(e.nzFooter?10:-1)}}var pt=(()=>{class t{templateRef=l(Q);static \u0275fac=function(c){return new(c||t)};static \u0275dir=ge({type:t,selectors:[["","nzDrawerContent",""]],exportAs:["nzDrawerContent"]})}return t})(),Xe=378,Ye=736,ft=new de(""),V=class{},ht=300,ut="drawer",Ze=(()=>{var d;let t=V,a,e=[],c=[],_,v=[],R=[],ee,te=[],ne=[],ie,ae=[],oe=[];return d=class extends t{cdr=l(H);nzConfigService=l(Ae);renderer=l(ue);injector=l(N);changeDetectorRef=l(H);focusTrapFactory=l($e);viewContainerRef=l(ze);overlayKeyboardDispatcher=l(Ee);directionality=l(Te);destroyRef=l(pe);_nzModuleName=ut;nzContent;nzCloseIcon="close";nzClosable=!0;nzMaskClosable=z(this,e,!0);nzMask=(z(this,c),z(this,v,!0));nzCloseOnNavigation=(z(this,R),z(this,te,!0));nzNoAnimation=(z(this,ne),!1);nzKeyboard=!0;nzTitle;nzExtra;nzFooter;nzPlacement="right";nzSize="default";nzMaskStyle={};nzBodyStyle={};nzWrapClassName;nzWidth;nzHeight;nzZIndex=1e3;nzOffsetX=0;nzOffsetY=0;componentInstance=null;componentRef=null;set nzVisible(i){this.isOpen=i}get nzVisible(){return this.isOpen}nzOnViewInit=new k;nzOnClose=new k;nzVisibleChange=new k;drawerTemplate;bodyPortalOutlet;contentFromContentChild;previouslyFocusedElement;placementChanging=!1;placementChangeTimeoutId;nzContentParams;nzData;overlayRef;portal;focusTrap;isOpen=!1;inAnimation=!1;templateContext={$implicit:void 0,drawerRef:this};isTemplateRef=G;get offsetTransform(){if(!this.isOpen||this.nzOffsetX+this.nzOffsetY===0)return null;switch(this.nzPlacement){case"left":return`translateX(${this.nzOffsetX}px)`;case"right":return`translateX(-${this.nzOffsetX}px)`;case"top":return`translateY(${this.nzOffsetY}px)`;case"bottom":return`translateY(-${this.nzOffsetY}px)`}}get transform(){if(this.isOpen)return null;switch(this.nzPlacement){case"left":return"translateX(-100%)";case"right":return"translateX(100%)";case"top":return"translateY(-100%)";case"bottom":return"translateY(100%)"}}get width(){if(this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzWidth===void 0?b(i):b(this.nzWidth)}return null}get height(){if(!this.isLeftOrRight){let i=this.nzSize==="large"?Ye:Xe;return this.nzHeight===void 0?b(i):b(this.nzHeight)}return null}get isLeftOrRight(){return this.nzPlacement==="left"||this.nzPlacement==="right"}nzAfterOpen=new T;nzAfterClose=new T;get afterOpen(){return this.nzAfterOpen.asObservable()}get afterClose(){return this.nzAfterClose.asObservable()}get isNzContentTemplateRef(){return G(this.nzContent)}nzDirection=z(this,ae,void 0);dir=(z(this,oe),"ltr");document=l(me);constructor(){super(),this.destroyRef.onDestroy(()=>{clearTimeout(this.placementChangeTimeoutId),this.disposeOverlay()})}ngOnInit(){this.directionality.change?.pipe(P(this.destroyRef)).subscribe(i=>{this.dir=i,this.cdr.detectChanges()}),this.dir=this.nzDirection||this.directionality.value,this.attachOverlay(),this.updateOverlayStyle(),this.updateBodyOverflow(),this.templateContext={$implicit:this.nzData||this.nzContentParams,drawerRef:this},this.changeDetectorRef.detectChanges()}ngAfterViewInit(){this.attachBodyContent(),this.nzOnViewInit.observers.length&&setTimeout(()=>{this.nzOnViewInit.emit()})}ngOnChanges(i){let{nzPlacement:n,nzVisible:s}=i;s&&(i.nzVisible.currentValue?this.open():this.close()),n&&!n.isFirstChange()&&this.triggerPlacementChangeCycleOnce()}getAnimationDuration(){return this.nzNoAnimation?0:ht}triggerPlacementChangeCycleOnce(){this.nzNoAnimation||(this.placementChanging=!0,this.changeDetectorRef.markForCheck(),clearTimeout(this.placementChangeTimeoutId),this.placementChangeTimeoutId=setTimeout(()=>{this.placementChanging=!1,this.changeDetectorRef.markForCheck()},this.getAnimationDuration()))}close(i){this.isOpen=!1,this.inAnimation=!0,this.nzVisibleChange.emit(!1),this.updateOverlayStyle(),this.overlayKeyboardDispatcher.remove(this.overlayRef),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.updateBodyOverflow(),this.restoreFocus(),this.inAnimation=!1,this.nzAfterClose.next(i),this.nzAfterClose.complete(),this.componentInstance=null,this.componentRef=null},this.getAnimationDuration())}open(){this.attachOverlay(),this.isOpen=!0,this.inAnimation=!0,this.nzVisibleChange.emit(!0),this.overlayKeyboardDispatcher.add(this.overlayRef),this.updateOverlayStyle(),this.updateBodyOverflow(),this.savePreviouslyFocusedElement(),this.trapFocus(),this.changeDetectorRef.detectChanges(),setTimeout(()=>{this.inAnimation=!1,this.changeDetectorRef.detectChanges(),this.nzAfterOpen.next()},this.getAnimationDuration())}getContentComponent(){return this.componentInstance}getContentComponentRef(){return this.componentRef}closeClick(){this.nzOnClose.emit()}maskClick(){this.nzMaskClosable&&this.nzMask&&this.nzOnClose.emit()}attachBodyContent(){if(this.bodyPortalOutlet.dispose(),this.nzContent instanceof fe){let i=N.create({parent:this.injector,providers:[{provide:V,useValue:this},{provide:ft,useValue:this.nzData}]}),n=new U(this.nzContent,null,i);this.componentRef=this.bodyPortalOutlet.attachComponentPortal(n),this.componentInstance=this.componentRef.instance,Object.assign(this.componentRef.instance,this.nzData||this.nzContentParams),this.componentRef.changeDetectorRef.detectChanges()}}attachOverlay(){this.overlayRef||(this.portal=new ke(this.drawerTemplate,this.viewContainerRef),this.overlayRef=q(this.injector,{disposeOnNavigation:this.nzCloseOnNavigation,positionStrategy:Ie(this.injector),scrollStrategy:Se(this.injector)}),Fe(this.overlayRef,this.nzZIndex)),this.overlayRef&&!this.overlayRef.hasAttached()&&(this.overlayRef.attach(this.portal),this.overlayRef.keydownEvents().pipe(P(this.destroyRef)).subscribe(i=>{i.keyCode===27&&this.isOpen&&this.nzKeyboard&&this.nzOnClose.emit()}),this.overlayRef.detachments().pipe(P(this.destroyRef)).subscribe(()=>{this.close(),this.disposeOverlay()}))}disposeOverlay(){this.overlayRef?.dispose(),this.overlayRef=null}updateOverlayStyle(){this.overlayRef&&this.overlayRef.overlayElement&&this.renderer.setStyle(this.overlayRef.overlayElement,"pointer-events",this.isOpen?"auto":"none")}updateBodyOverflow(){this.overlayRef&&(this.isOpen?this.overlayRef.getConfig().scrollStrategy.enable():this.overlayRef.getConfig().scrollStrategy.disable())}savePreviouslyFocusedElement(){this.document&&!this.previouslyFocusedElement&&(this.previouslyFocusedElement=this.document.activeElement,this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.blur=="function"&&this.previouslyFocusedElement.blur())}trapFocus(){!this.focusTrap&&this.overlayRef&&this.overlayRef.overlayElement&&(this.focusTrap=this.focusTrapFactory.create(this.overlayRef.overlayElement),this.focusTrap.focusInitialElement())}restoreFocus(){this.previouslyFocusedElement&&typeof this.previouslyFocusedElement.focus=="function"&&(this.previouslyFocusedElement.focus(),this.previouslyFocusedElement=void 0),this.focusTrap&&this.focusTrap.destroy()}},(()=>{let i=typeof Symbol=="function"&&Symbol.metadata?Object.create(t[Symbol.metadata]??null):void 0;a=[D()],_=[D()],ee=[D()],ie=[D()],w(null,null,a,{kind:"field",name:"nzMaskClosable",static:!1,private:!1,access:{has:n=>"nzMaskClosable"in n,get:n=>n.nzMaskClosable,set:(n,s)=>{n.nzMaskClosable=s}},metadata:i},e,c),w(null,null,_,{kind:"field",name:"nzMask",static:!1,private:!1,access:{has:n=>"nzMask"in n,get:n=>n.nzMask,set:(n,s)=>{n.nzMask=s}},metadata:i},v,R),w(null,null,ee,{kind:"field",name:"nzCloseOnNavigation",static:!1,private:!1,access:{has:n=>"nzCloseOnNavigation"in n,get:n=>n.nzCloseOnNavigation,set:(n,s)=>{n.nzCloseOnNavigation=s}},metadata:i},te,ne),w(null,null,ie,{kind:"field",name:"nzDirection",static:!1,private:!1,access:{has:n=>"nzDirection"in n,get:n=>n.nzDirection,set:(n,s)=>{n.nzDirection=s}},metadata:i},ae,oe),i&&Object.defineProperty(d,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:i})})(),j(d,"\u0275fac",function(n){return new(n||d)}),j(d,"\u0275cmp",Ce({type:d,selectors:[["nz-drawer"]],contentQueries:function(n,s,y){if(n&1&&Oe(y,pt,7,Q),n&2){let re;M(re=S())&&(s.contentFromContentChild=re.first)}},viewQuery:function(n,s){if(n&1&&(Z(Ke,7),Z(F,5)),n&2){let y;M(y=S())&&(s.drawerTemplate=y.first),M(y=S())&&(s.bodyPortalOutlet=y.first)}},inputs:{nzContent:"nzContent",nzCloseIcon:"nzCloseIcon",nzClosable:[2,"nzClosable","nzClosable",g],nzMaskClosable:[2,"nzMaskClosable","nzMaskClosable",g],nzMask:[2,"nzMask","nzMask",g],nzCloseOnNavigation:[2,"nzCloseOnNavigation","nzCloseOnNavigation",g],nzNoAnimation:[2,"nzNoAnimation","nzNoAnimation",g],nzKeyboard:[2,"nzKeyboard","nzKeyboard",g],nzTitle:"nzTitle",nzExtra:"nzExtra",nzFooter:"nzFooter",nzPlacement:"nzPlacement",nzSize:"nzSize",nzMaskStyle:"nzMaskStyle",nzBodyStyle:"nzBodyStyle",nzWrapClassName:"nzWrapClassName",nzWidth:"nzWidth",nzHeight:"nzHeight",nzZIndex:"nzZIndex",nzOffsetX:"nzOffsetX",nzOffsetY:"nzOffsetY",nzVisible:[2,"nzVisible","nzVisible",g]},outputs:{nzOnViewInit:"nzOnViewInit",nzOnClose:"nzOnClose",nzVisibleChange:"nzVisibleChange"},exportAs:["nzDrawer"],features:[ye,he],decls:2,vars:0,consts:[["drawerTemplate",""],[1,"ant-drawer",3,"nzNoAnimation"],[1,"ant-drawer-mask",3,"style"],[1,"ant-drawer-content"],[1,"ant-drawer-wrapper-body"],[1,"ant-drawer-header",3,"ant-drawer-header-close-only"],["cdkScrollable","",1,"ant-drawer-body"],["cdkPortalOutlet",""],[1,"ant-drawer-footer"],[1,"ant-drawer-mask",3,"click"],[1,"ant-drawer-header"],[1,"ant-drawer-header-title"],["aria-label","Close",1,"ant-drawer-close"],[1,"ant-drawer-title"],[1,"ant-drawer-extra"],["aria-label","Close",1,"ant-drawer-close",3,"click"],[4,"nzStringTemplateOutlet"],[3,"nzType"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngTemplateOutlet"]],template:function(n,s){n&1&&C(0,mt,11,40,"ng-template",null,0,De)},dependencies:[Qe,We,je,Ve,Pe,Me,F,Re,Ne],encapsulation:2,data:{animation:[Be]},changeDetection:0})),d})(),J=class{overlayRef;options;drawerRef;unsubscribe$=new T;constructor(a,e){this.overlayRef=a,this.options=e;let v=this.options,{nzOnCancel:c}=v,_=se(v,["nzOnCancel"]);this.drawerRef=this.overlayRef.attach(new U(Ze)).instance,this.updateOptions(_),this.drawerRef.savePreviouslyFocusedElement(),this.drawerRef.nzOnViewInit.pipe(W(this.unsubscribe$)).subscribe(()=>{this.drawerRef.open()}),this.drawerRef.nzOnClose.subscribe(()=>{c?c().then(R=>{R!==!1&&this.drawerRef.close()}):this.drawerRef.close()}),this.drawerRef.afterClose.pipe(W(this.unsubscribe$)).subscribe(()=>{this.overlayRef.dispose(),this.drawerRef=null,this.unsubscribe$.next(),this.unsubscribe$.complete()})}getInstance(){return this.drawerRef}updateOptions(a){Object.assign(this.drawerRef,a)}},zt=(()=>{class t{injector=l(N);create(e){return new J(q(this.injector),e).getInstance()}static \u0275fac=function(c){return new(c||t)};static \u0275prov=le({token:t,factory:t.\u0275fac})}return t})(),Lt=(()=>{class t{static \u0275fac=function(c){return new(c||t)};static \u0275mod=_e({type:t});static \u0275inj=ce({providers:[zt],imports:[Ze]})}return t})();export{pt as a,Ze as b,Lt as c};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{M as je}from"./chunk-
|
|
1
|
+
import{M as je}from"./chunk-VZYJ3MSW.js";import{A as Me,p as E,w as Ne}from"./chunk-KRYMOHYF.js";import{B as ue,Bb as $e,Fb as K,Gb as Ae,Gc as Pe,J as de,Jc as Ce,Kc as Le,L as ge,Oa as Se,Ra as Re,T as fe,V as me,Wa as Te,a as f,b as O,ba as ke,ea as xe,fa as be,fc as Oe,gc as _e,ib as Q,id as De,l as D,na as we,nb as Ee,oa as ye,qa as _,ra as R,sb as N,tc as ze,u as pe,vc as Ie,wc as ve,zb as M}from"./chunk-4BRW6LCZ.js";function J(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var A=J();function We(r){A=r}var C={exec:()=>null};function g(r,e=""){let i=typeof r=="string"?r:r.source,n={replace:(t,l)=>{let s=typeof l=="string"?l:l.source;return s=s.replace(b.caret,"$1"),i=i.replace(t,s),n},getRegex:()=>new RegExp(i,e)};return n}var lt=(()=>{try{return!!new RegExp("(?<=1)(?<!1)")}catch{return!1}})(),b={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:r=>new RegExp(`^( {0,3}${r})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}#`),htmlBeginRegex:r=>new RegExp(`^ {0,${Math.min(3,r-1)}}<(?:[a-z].*>|!--)`,"i")},at=/^(?:[ \t]*(?:\n|$))+/,ot=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ct=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,L=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,ht=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Y=/(?:[*+-]|\d{1,9}[.)])/,Qe=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Ke=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),pt=g(Qe).replace(/bull/g,Y).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),ee=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ut=/^[^\n]+/,te=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,dt=g(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",te).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),gt=g(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Y).getRegex(),q="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",ne=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,ft=g("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",ne).replace("tag",q).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xe=g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),mt=g(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Xe).getRegex(),re={blockquote:mt,code:ot,def:dt,fences:ct,heading:ht,hr:L,html:ft,lheading:Ke,list:gt,newline:at,paragraph:Xe,table:C,text:ut},Be=g("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex(),kt=O(f({},re),{lheading:pt,table:Be,paragraph:g(ee).replace("hr",L).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Be).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",q).getRegex()}),xt=O(f({},re),{html:g(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",ne).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:C,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:g(ee).replace("hr",L).replace("heading",` *#{1,6} *[^
|
|
2
2
|
]`).replace("lheading",Ke).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()}),bt=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,wt=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Ge=/^( {2,}|\\)\n(?!\s*$)/,yt=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,H=/[\p{P}\p{S}]/u,ie=/[\s\p{P}\p{S}]/u,Ve=/[^\s\p{P}\p{S}]/u,St=g(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ie).getRegex(),Je=/(?!~)[\p{P}\p{S}]/u,Rt=/(?!~)[\s\p{P}\p{S}]/u,Tt=/(?:[^\s\p{P}\p{S}]|~)/u,Et=g(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",lt?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),Ye=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,$t=g(Ye,"u").replace(/punct/g,H).getRegex(),At=g(Ye,"u").replace(/punct/g,Je).getRegex(),et="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ot=g(et,"gu").replace(/notPunctSpace/g,Ve).replace(/punctSpace/g,ie).replace(/punct/g,H).getRegex(),_t=g(et,"gu").replace(/notPunctSpace/g,Tt).replace(/punctSpace/g,Rt).replace(/punct/g,Je).getRegex(),zt=g("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Ve).replace(/punctSpace/g,ie).replace(/punct/g,H).getRegex(),It=g(/\\(punct)/,"gu").replace(/punct/g,H).getRegex(),vt=g(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Pt=g(ne).replace("(?:-->|$)","-->").getRegex(),Ct=g("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",Pt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),B=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Lt=g(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",B).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),tt=g(/^!?\[(label)\]\[(ref)\]/).replace("label",B).replace("ref",te).getRegex(),nt=g(/^!?\[(ref)\](?:\[\])?/).replace("ref",te).getRegex(),Dt=g("reflink|nolink(?!\\()","g").replace("reflink",tt).replace("nolink",nt).getRegex(),Fe=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,se={_backpedal:C,anyPunctuation:It,autolink:vt,blockSkip:Et,br:Ge,code:wt,del:C,emStrongLDelim:$t,emStrongRDelimAst:Ot,emStrongRDelimUnd:zt,escape:bt,link:Lt,nolink:nt,punctuation:St,reflink:tt,reflinkSearch:Dt,tag:Ct,text:yt,url:C},Nt=O(f({},se),{link:g(/^!?\[(label)\]\((.*?)\)/).replace("label",B).getRegex(),reflink:g(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",B).getRegex()}),X=O(f({},se),{emStrongRDelimAst:_t,emStrongLDelim:At,url:g(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Fe).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:g(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Fe).getRegex()}),Mt=O(f({},X),{br:g(Ge).replace("{2,}","*").getRegex(),text:g(X.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()}),j={normal:re,gfm:kt,pedantic:xt},I={normal:se,gfm:X,breaks:Mt,pedantic:Nt},jt={"&":"&","<":"<",">":">",'"':""","'":"'"},qe=r=>jt[r];function S(r,e){if(e){if(b.escapeTest.test(r))return r.replace(b.escapeReplace,qe)}else if(b.escapeTestNoEncode.test(r))return r.replace(b.escapeReplaceNoEncode,qe);return r}function He(r){try{r=encodeURI(r).replace(b.percentDecode,"%")}catch{return null}return r}function Ze(r,e){let i=r.replace(b.findPipe,(l,s,o)=>{let a=!1,h=s;for(;--h>=0&&o[h]==="\\";)a=!a;return a?"|":" |"}),n=i.split(b.splitPipe),t=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;t<n.length;t++)n[t]=n[t].trim().replace(b.slashPipe,"|");return n}function v(r,e,i){let n=r.length;if(n===0)return"";let t=0;for(;t<n;){let l=r.charAt(n-t-1);if(l===e&&!i)t++;else if(l!==e&&i)t++;else break}return r.slice(0,n-t)}function Bt(r,e){if(r.indexOf(e[1])===-1)return-1;let i=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])i++;else if(r[n]===e[1]&&(i--,i<0))return n;return i>0?-2:-1}function Ue(r,e,i,n,t){let l=e.href,s=e.title||null,o=r[1].replace(t.other.outputLinkReplace,"$1");n.state.inLink=!0;let a={type:r[0].charAt(0)==="!"?"image":"link",raw:i,href:l,title:s,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,a}function Ft(r,e,i){let n=r.match(i.other.indentCodeCompensation);if(n===null)return e;let t=n[1];return e.split(`
|
|
3
3
|
`).map(l=>{let s=l.match(i.other.beginningSpace);if(s===null)return l;let[o]=s;return o.length>=t.length?l.slice(t.length):l}).join(`
|
|
4
4
|
`)}var F=class{options;rules;lexer;constructor(r){this.options=r||A}space(r){let e=this.rules.block.newline.exec(r);if(e&&e[0].length>0)return{type:"space",raw:e[0]}}code(r){let e=this.rules.block.code.exec(r);if(e){let i=e[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:e[0],codeBlockStyle:"indented",text:this.options.pedantic?i:v(i,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Ab as C,L as o,Za as O,a as R,pa as P,xb as T}from"./chunk-VZYJ3MSW.js";import{Ac as j,Da as l,Fb as c,Gb as w,Gc as a,Oa as F,Ra as N,Ub as E,Xc as b,fc as p,gc as f,hc as M,l as y,ma as u,mc as A,n as d,na as k,nb as h,oa as S,sa as s,tb as B,ud as g,vc as m,wc as z,yc as V,yd as r,zc as $}from"./chunk-4BRW6LCZ.js";var I=["*"],G=["inputElement"],Q=["nz-radio",""],D=(()=>{class n{selected$=new d(1);touched$=new y;disabled$=new d(1);name$=new d(1);touch(){this.touched$.next()}select(e){this.selected$.next(e)}setDisabled(e){this.disabled$.next(e)}setName(e){this.name$.next(e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=k({token:n,factory:n.\u0275fac})}return n})(),se=(()=>{class n{cdr=s(g);nzRadioService=s(D);directionality=s(R);destroyRef=s(l);value=null;isNzDisableFirstChange=!0;onChange=()=>{};onTouched=()=>{};nzDisabled=!1;nzButtonStyle="outline";nzSize="default";nzName=null;dir="ltr";ngOnInit(){this.nzRadioService.selected$.pipe(o(this.destroyRef)).subscribe(e=>{this.value!==e&&(this.value=e,this.onChange(this.value))}),this.nzRadioService.touched$.pipe(o(this.destroyRef)).subscribe(()=>{Promise.resolve().then(()=>this.onTouched())}),this.directionality.change?.pipe(o(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzDisabled:t,nzName:i}=e;t&&this.nzRadioService.setDisabled(this.nzDisabled),i&&this.nzRadioService.setName(this.nzName)}writeValue(e){this.value=e,this.nzRadioService.select(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.nzRadioService.setDisabled(this.nzDisabled),this.cdr.markForCheck()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=c({type:n,selectors:[["nz-radio-group"]],hostAttrs:[1,"ant-radio-group"],hostVars:8,hostBindings:function(t,i){t&2&&a("ant-radio-group-large",i.nzSize==="large")("ant-radio-group-small",i.nzSize==="small")("ant-radio-group-solid",i.nzButtonStyle==="solid")("ant-radio-group-rtl",i.dir==="rtl")},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",r],nzButtonStyle:"nzButtonStyle",nzSize:"nzSize",nzName:"nzName"},exportAs:["nzRadioGroup"],features:[b([D,{provide:C,useExisting:u(()=>n),multi:!0}]),F],ngContentSelectors:I,decls:1,vars:0,template:function(t,i){t&1&&(m(),z(0))},encapsulation:2,changeDetection:0})}return n})(),oe=(()=>{class n{directionality=s(R);nzRadioService=s(D,{optional:!0});ngZone=s(B);elementRef=s(N);cdr=s(g);focusMonitor=s(O);destroyRef=s(l);nzFormStatusService=s(T,{optional:!0});isNgModel=!1;isNzDisableFirstChange=!0;isChecked=!1;name=null;onChange=()=>{};onTouched=()=>{};inputElement;nzValue=null;nzDisabled=!1;nzAutoFocus=!1;isRadioButton=!1;dir="ltr";focus(){this.focusMonitor.focusVia(this.inputElement,"keyboard")}blur(){this.inputElement.nativeElement.blur()}constructor(){this.destroyRef.onDestroy(()=>{this.focusMonitor.stopMonitoring(this.elementRef)})}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}writeValue(e){this.isChecked=e,this.cdr.markForCheck()}registerOnChange(e){this.isNgModel=!0,this.onChange=e}registerOnTouched(e){this.onTouched=e}ngOnInit(){this.nzRadioService&&(this.nzRadioService.name$.pipe(o(this.destroyRef)).subscribe(e=>{this.name=e,this.cdr.markForCheck()}),this.nzRadioService.disabled$.pipe(o(this.destroyRef)).subscribe(e=>{this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.cdr.markForCheck()}),this.nzRadioService.selected$.pipe(o(this.destroyRef)).subscribe(e=>{let t=this.isChecked;this.isChecked=this.nzValue===e,this.isNgModel&&t!==this.isChecked&&this.isChecked===!1&&this.onChange(!1),this.cdr.markForCheck()})),this.focusMonitor.monitor(this.elementRef,!0).pipe(o(this.destroyRef)).subscribe(e=>{e||(Promise.resolve().then(()=>this.onTouched()),this.nzRadioService&&this.nzRadioService.touch())}),this.directionality.change.pipe(o(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.setupClickListener()}ngAfterViewInit(){this.nzAutoFocus&&this.focus()}setupClickListener(){P(this.elementRef.nativeElement,"click").pipe(o(this.destroyRef)).subscribe(e=>{e.stopPropagation(),e.preventDefault(),!(this.nzDisabled||this.isChecked)&&this.ngZone.run(()=>{this.focus(),this.nzRadioService?.select(this.nzValue),this.isNgModel&&(this.isChecked=!0,this.onChange(!0)),this.cdr.markForCheck()})})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=c({type:n,selectors:[["","nz-radio",""],["","nz-radio-button",""]],viewQuery:function(t,i){if(t&1&&V(G,7),t&2){let v;$(v=j())&&(i.inputElement=v.first)}},hostVars:18,hostBindings:function(t,i){t&2&&a("ant-radio-wrapper-in-form-item",!!i.nzFormStatusService)("ant-radio-wrapper",!i.isRadioButton)("ant-radio-button-wrapper",i.isRadioButton)("ant-radio-wrapper-checked",i.isChecked&&!i.isRadioButton)("ant-radio-button-wrapper-checked",i.isChecked&&i.isRadioButton)("ant-radio-wrapper-disabled",i.nzDisabled&&!i.isRadioButton)("ant-radio-button-wrapper-disabled",i.nzDisabled&&i.isRadioButton)("ant-radio-wrapper-rtl",!i.isRadioButton&&i.dir==="rtl")("ant-radio-button-wrapper-rtl",i.isRadioButton&&i.dir==="rtl")},inputs:{nzValue:"nzValue",nzDisabled:[2,"nzDisabled","nzDisabled",r],nzAutoFocus:[2,"nzAutoFocus","nzAutoFocus",r],isRadioButton:[2,"nz-radio-button","isRadioButton",r]},exportAs:["nzRadio"],features:[b([{provide:C,useExisting:u(()=>n),multi:!0}])],attrs:Q,ngContentSelectors:I,decls:6,vars:24,consts:[["inputElement",""],["type","radio",3,"disabled","checked"]],template:function(t,i){t&1&&(m(),p(0,"span"),M(1,"input",1,0)(3,"span"),f(),p(4,"span"),z(5),f()),t&2&&(a("ant-radio",!i.isRadioButton)("ant-radio-checked",i.isChecked&&!i.isRadioButton)("ant-radio-disabled",i.nzDisabled&&!i.isRadioButton)("ant-radio-button",i.isRadioButton)("ant-radio-button-checked",i.isChecked&&i.isRadioButton)("ant-radio-button-disabled",i.nzDisabled&&i.isRadioButton),h(),a("ant-radio-input",!i.isRadioButton)("ant-radio-button-input",i.isRadioButton),A("disabled",i.nzDisabled)("checked",i.isChecked),E("autofocus",i.nzAutoFocus?"autofocus":null)("name",i.name),h(2),a("ant-radio-inner",!i.isRadioButton)("ant-radio-button-inner",i.isRadioButton))},encapsulation:2,changeDetection:0})}return n})(),ae=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=w({type:n});static \u0275inj=S({})}return n})();export{se as a,oe as b,ae as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ut,b as gt}from"./chunk-R4HSZU2J.js";import{C as bt,D as fi,a as ai,b as si,c as ft,d as li,e as di,f as ht,m as mi,n as X,o as ue,p as yt,q as Q,r as _t,s as pi,t as vt,u as De,v as ci,w as we,x as ui,y as Ct,z as gi}from"./chunk-RZA3IFQV.js";import"./chunk-RKK4I2RT.js";import"./chunk-6UFDNETG.js";import{a as Gn,b as Yn,c as Xn,h as Zn,j as pt}from"./chunk-WWIPELAV.js";import{a as qn,b as dt}from"./chunk-HC5KLPHD.js";import{a as ei,b as ti,c as ni}from"./chunk-DENFXXOY.js";import{a as ii,b as ri,c as oi,e as ct}from"./chunk-7QR6RHLA.js";import{a as wn,b as En,c as Tn}from"./chunk-6J6G7JEP.js";import{a as Pe,b as ce}from"./chunk-MPLGMTLT.js";import{a as Wn,b as Qn,c as mt}from"./chunk-7AKVG375.js";import"./chunk-2VJVGBXG.js";import{a as Jn,b as Kn}from"./chunk-WCHN62X6.js";import{a as K,b as H}from"./chunk-CO3CQHKV.js";import"./chunk-NNOWADVM.js";import"./chunk-RMIYLAEM.js";import{a as Dn,b as ze}from"./chunk-MBPB43C6.js";import{a as $n,c as ot,d as at,e as st,f as Re}from"./chunk-CPJTSA6E.js";import{b as Nn,c as On,e as Ln,g as Hn}from"./chunk-TXAXE73U.js";import{a as Un,b as lt}from"./chunk-SD2HFD54.js";import{h as ve,i as Je,j as Ke,k as Ce,l as be}from"./chunk-U2YWR3HF.js";import"./chunk-PB2LGZNW.js";import{k as it,m as rt,n as Se}from"./chunk-K6C5ZIV2.js";import{$b as jn,Ab as An,Db as Ie,Ea as he,Fa as Y,Fb as me,Gb as Xe,Ib as kn,Jb as pe,Kb as Ze,L as ke,Na as de,Nb as Fn,Oa as ye,Ob as Bn,Qa as _e,Ra as B,Sb as et,T as Mn,Tb as L,Ub as tt,V as xn,Xb as Vn,Y as Ye,Zb as Me,a as zn,aa as Xt,ac as J,ba as Sn,c as In,dc as xe,ea as Rn,fa as Pn,fc as nt,ga as Fe}from"./chunk-VZYJ3MSW.js";import"./chunk-HFZLJHYR.js";import{c as Cn,e as bn,h as Kt}from"./chunk-WUA5JFDD.js";import{g as vn,h as Ge,m as W,n as N}from"./chunk-KRYMOHYF.js";import{$b as D,Ac as Ue,B as Ne,Da as dn,Ec as U,Fb as z,Fc as se,Gb as re,Gc as ee,Ha as I,Hc as Oe,I as Ve,Jc as d,Kc as v,L as je,Lb as A,Lc as b,M as Wt,Mc as gn,Oa as fe,Oc as qe,Pc as We,Q as an,Qc as Qe,Ra as mn,V as Qt,Wb as M,Xc as fn,Yb as x,Yc as hn,Zc as Ae,_c as yn,a as V,ac as w,ad as k,b as ge,bc as p,cc as a,cd as F,dc as o,dd as q,ec as g,fa as sn,ha as Gt,hc as Le,ic as oe,id as y,jb as pn,jc as ae,jd as le,kb as Yt,lc as E,ma as ln,mc as un,na as ne,nb as s,nd as R,oa as ie,od as c,rc as _,sa as S,sb as cn,sd as _n,t as qt,uc as u,ud as Jt,ya as f,yc as He,yd as O,za as h,zc as $e,zd as te}from"./chunk-4BRW6LCZ.js";var hi=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=re({type:i});static \u0275inj=ie({})}return i})();var wi=(i,t)=>t.id;function Ei(i,t){if(i&1&&g(0,"nz-option",4),i&2){let e=t.$implicit;p("nzLabel",e.name)("nzValue",e.id)}}function Ti(i,t){i&1&&(a(0,"p",5),d(1,"\u63D0\u793A\uFF1A\u5F53\u524D\u9879\u76EE\u6CA1\u6709\u53EF\u63A8\u8FDB\u7684\u540E\u7EED\u9636\u6BB5\u3002"),o())}function Ni(i,t){if(i&1){let e=E();a(0,"p",2),d(1," \u5F53\u524D\u7814\u53D1\u9879\uFF1A"),a(2,"strong"),d(3),o()(),a(4,"nz-select",3),_("ngModelChange",function(r){f(e);let l=u(2);return h(l.selectedStageId.set(r||""))}),D(5,Ei,1,2,"nz-option",4,wi),o(),M(7,Ti,2,0,"p",5)}if(i&2){let e=u(2);s(3),v(t.title),s(),p("ngModel",e.selectedStageId()),s(),w(e.candidateStages()),s(2),x(e.candidateStages().length===0?7:-1)}}function Oi(i,t){if(i&1&&(oe(0),M(1,Ni,8,3),ae()),i&2){let e,n=u();s(),x((e=n.item())?1:-1,e)}}var zt=class i{open=c(!1);busy=c(!1);item=c(null);stages=c([]);confirm=R();cancel=R();selectedStageId=I("");candidateStages=y(()=>{let t=this.item(),e=[...this.stages()].sort((r,l)=>r.sort-l.sort);if(!t)return[];if(!t.stageId)return e;let n=e.find(r=>r.id===t.stageId);return n?e.filter(r=>r.sort>n.sort):e});constructor(){le(()=>{if(!this.open()){this.selectedStageId.set("");return}let t=this.candidateStages()[0];this.selectedStageId.set(t?.id??"")})}confirmSelection(){let t=this.selectedStageId().trim();t&&this.confirm.emit({stageId:t})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-advance-stage-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],item:[1,"item"],stages:[1,"stages"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:2,vars:6,consts:[[3,"nzOnCancel","nzOnOk","nzVisible","nzTitle","nzOkText","nzCancelText","nzOkLoading","nzOkDisabled"],[4,"nzModalContent"],[1,"hint"],["nzShowSearch","","nzPlaceHolder","\u9009\u62E9\u4E0B\u4E00\u9636\u6BB5",1,"stage-select",3,"ngModelChange","ngModel"],[3,"nzLabel","nzValue"],[1,"empty"]],template:function(e,n){e&1&&(a(0,"nz-modal",0),_("nzOnCancel",function(){return n.cancel.emit()})("nzOnOk",function(){return n.confirmSelection()}),A(1,Oi,2,1,"ng-container",1),o()),e&2&&p("nzVisible",n.open())("nzTitle","\u8FDB\u5165\u4E0B\u4E00\u9636\u6BB5")("nzOkText","\u786E\u8BA4\u63A8\u8FDB")("nzCancelText","\u53D6\u6D88")("nzOkLoading",n.busy())("nzOkDisabled",n.busy()||!n.selectedStageId())},dependencies:[be,Ce,ve,Re,at,st,B,L,me,pe],styles:[".stage-select[_ngcontent-%COMP%]{width:100%}.empty[_ngcontent-%COMP%]{font-size:.8rem;color:gray;text-align:right}"]})};function Ai(i,t){if(i&1&&(a(0,"div")(1,"div",4)(2,"span"),d(3,"\u6807\u8BB0\u4E3A\u963B\u585E"),o(),a(4,"div",5),d(5),o()()()),i&2){let e=u();s(5),b(" ",e.item()?e.item().title:"\u8BB0\u5F55\u5F53\u524D\u7814\u53D1\u9879\u7684\u963B\u585E\u539F\u56E0\u3002"," ")}}function ki(i,t){if(i&1){let e=E();oe(0),a(1,"form",6),_("ngSubmit",function(){f(e);let r=u();return h(r.submitForm())}),a(2,"textarea",7),_("ngModelChange",function(r){f(e);let l=u();return h(l.reason.set(r))}),o()(),ae()}if(i&2){let e=u();s(2),p("ngModel",e.reason())}}function Fi(i,t){if(i&1){let e=E();oe(0),a(1,"button",8),_("click",function(){f(e);let r=u();return h(r.cancel.emit())}),d(2,"\u53D6\u6D88"),o(),a(3,"button",9),_("click",function(){f(e);let r=u();return h(r.submitForm())}),d(4," \u786E\u8BA4\u963B\u585E "),o(),ae()}if(i&2){let e=u();s(3),p("disabled",!e.reason().trim())("nzLoading",e.busy())}}var It=class i{open=c(!0);busy=c(!1);item=c(null);confirm=R();cancel=R();reason=I("");constructor(){le(()=>{this.open()&&this.reason.set(this.item()?.blockerReason??"")})}submitForm(){let t=this.reason().trim();t&&this.confirm.emit({blockerReason:t})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-block-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],item:[1,"item"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:4,vars:5,consts:[["nzTitle","\u6807\u8BB0\u4E3A\u963B\u585E",3,"nzOnCancel","nzOnOk","nzVisible","nzWidth","nzClosable","nzMaskClosable","nzOkLoading"],[4,"nzModalTitle"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-title"],[1,"modal-subtitle"],[1,"block-form",3,"ngSubmit"],["nz-input","","rows","6","placeholder","\u8BF7\u8F93\u5165\u963B\u585E\u539F\u56E0\u3002\u4F8B\u5982\uFF1A\u4F9D\u8D56\u7684\u63A5\u53E3\u5B9A\u4E49\u5C1A\u672A\u51BB\u7ED3\uFF0C\u65E0\u6CD5\u7EE7\u7EED\u8054\u8C03\u3002","name","reason",1,"block-input",3,"ngModelChange","ngModel"],["nz-button","","type","button",3,"click"],["nz-button","","nzType","primary",3,"click","disabled","nzLoading"]],template:function(e,n){e&1&&(a(0,"nz-modal",0),_("nzOnCancel",function(){return n.cancel.emit()})("nzOnOk",function(){return n.submitForm()}),A(1,Ai,6,1,"div",1)(2,ki,3,1,"ng-container",2)(3,Fi,5,2,"ng-container",3),o()),e&2&&p("nzVisible",n.open())("nzWidth",640)("nzClosable",!0)("nzMaskClosable",!1)("nzOkLoading",n.busy())},dependencies:[be,Ce,Je,ve,Ke,L,Ze,Ie,me,Xe,pe,kn,B,_e,de,ye,J,Me],styles:[".modal-title[_ngcontent-%COMP%]{display:flex;flex-direction:column}.modal-subtitle[_ngcontent-%COMP%]{color:#999;font-size:14px;line-height:20px}.block-input[_ngcontent-%COMP%]{border-radius:8px}"]})};var Ee=class i{canEditProgress(t,e){return!!t&&!!e&&!!t.assigneeId&&t.assigneeId===e}canStart(t,e){return this.canEditProgress(t,e)}canComplete(t,e){return this.canEditProgress(t,e)}canEditBasic(t,e,n){return!t||!e?!1:t.creatorId===e||t.assigneeId===e?!0:this.isProjectAdmin(e,n)}canDelete(t,e,n){return!t||!e?!1:t.creatorId===e?!0:this.isProjectAdmin(e,n)}canBlock(t,e,n){return!t||!e?!1:t.assigneeId===e?!0:this.isProjectAdmin(e,n)}canResume(t,e,n){return this.canBlock(t,e,n)}canAdvance(t,e,n){return!t||t.status!=="done"&&t.status!=="accepted"?!1:this.canEditBasic(t,e,n)}hasPermissionToRead(t){return!!t&&(t.scopes?.includes("rd:read")??!1)}hasPermissionToTransition(t){return!!t&&(t.scopes?.includes("rd:transition:write")??!1)}hasPermissionToEdit(t){return!!t&&(t.scopes?.includes("rd:edit:write")??!1)}hasPermissionToDelete(t){return!!t&&(t.scopes?.includes("rd:delete:write")??!1)}isProjectAdmin(t,e){let n=e.find(r=>r.userId===t);return!!n&&(n.roleCode==="project_admin"||n.isOwner)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})};var Vi=["handle"],ji=i=>({$implicit:i}),nn=(i,t)=>t.value;function Li(i,t){if(i&1&&Le(0,"span",1),i&2){let e=t.$implicit;Oe(e.style),ee("ant-slider-mark-active",e.active),un("innerHTML",e.label,pn)}}function Hi(i,t){if(i&1&&Le(0,"span",1),i&2){let e=t.$implicit;Oe(e.style),ee("ant-slider-dot-active",e.active)}}function $i(i,t){if(i&1&&g(0,"nz-slider-step",2),i&2){let e=u();p("vertical",e.nzVertical)("min",e.nzMin)("max",e.nzMax)("lowerBound",e.bounds.lower)("upperBound",e.bounds.upper)("marksArray",e.marksArray)("included",e.nzIncluded)("reverse",e.nzReverse)}}function Ui(i,t){if(i&1){let e=E();a(0,"nz-slider-handle",4),_("focusin",function(){let r=f(e).$index,l=u();return h(l.onHandleFocusIn(r))}),o()}if(i&2){let e=t.$implicit,n=u();p("vertical",n.nzVertical)("reverse",n.nzReverse)("offset",e.offset)("value",e.value)("active",e.active)("tooltipFormatter",n.nzTipFormatter)("tooltipVisible",n.nzTooltipVisible)("tooltipPlacement",n.nzTooltipPlacement)("dragging",n.dragging())("dir",n.dir)}}function qi(i,t){if(i&1&&g(0,"nz-slider-marks",2),i&2){let e=u();p("vertical",e.nzVertical)("min",e.nzMin)("max",e.nzMax)("lowerBound",e.bounds.lower)("upperBound",e.bounds.upper)("marksArray",e.marksArray)("included",e.nzIncluded)("reverse",e.nzReverse)}}var tn=(()=>{class i{cdr=S(Jt);handleEl;tooltip;vertical;reverse;offset;value;tooltipVisible="default";tooltipPlacement;tooltipFormatter;active=!1;dir="ltr";dragging;tooltipTitle;style={};ngOnChanges(e){let{offset:n,value:r,active:l,tooltipVisible:m,reverse:C,dir:P}=e;(n||C||P)&&this.updateStyle(),r&&(this.updateTooltipTitle(),this.updateTooltipPosition()),l&&(l.currentValue?this.toggleTooltip(!0):this.toggleTooltip(!1)),m?.currentValue==="always"&&Promise.resolve().then(()=>this.toggleTooltip(!0,!0))}enterHandle=()=>{this.dragging||(this.toggleTooltip(!0),this.updateTooltipPosition(),this.cdr.detectChanges())};leaveHandle=()=>{this.dragging||(this.toggleTooltip(!1),this.cdr.detectChanges())};focus(){this.handleEl?.nativeElement.focus()}toggleTooltip(e,n=!1){!n&&(this.tooltipVisible!=="default"||!this.tooltip)||(e?this.tooltip?.show():this.tooltip?.hide())}updateTooltipTitle(){this.tooltipFormatter?this.tooltipTitle=typeof this.tooltipFormatter=="function"?this.tooltipFormatter(this.value):this.tooltipFormatter:this.tooltipTitle=`${this.value}`}updateTooltipPosition(){this.tooltip&&Promise.resolve().then(()=>this.tooltip?.updatePosition())}updateStyle(){this.vertical?this.style={[this.reverse?"top":"bottom"]:`${this.offset}%`,[this.reverse?"bottom":"top"]:"auto",transform:this.reverse?null:"translateY(+50%)"}:this.style=ge(V({},this.getHorizontalStylePosition()),{transform:`translateX(${this.reverse?this.dir==="rtl"?"-":"+":this.dir==="rtl"?"+":"-"}50%)`}),this.cdr.markForCheck()}getHorizontalStylePosition(){let e=this.reverse?"auto":`${this.offset}%`,n=this.reverse?`${this.offset}%`:"auto";return this.dir==="rtl"&&([e,n]=[n,e]),{left:e,right:n}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider-handle"]],viewQuery:function(n,r){if(n&1&&(He(Vi,5),He(xe,5)),n&2){let l;$e(l=Ue())&&(r.handleEl=l.first),$e(l=Ue())&&(r.tooltip=l.first)}},hostBindings:function(n,r){n&1&&_("mouseenter",function(){return r.enterHandle()})("mouseleave",function(){return r.leaveHandle()})},inputs:{vertical:[2,"vertical","vertical",O],reverse:[2,"reverse","reverse",O],offset:[2,"offset","offset",Ye],value:[2,"value","value",Ye],tooltipVisible:"tooltipVisible",tooltipPlacement:"tooltipPlacement",tooltipFormatter:"tooltipFormatter",active:[2,"active","active",O],dir:"dir",dragging:"dragging"},exportAs:["nzSliderHandle"],features:[fe],decls:2,vars:8,consts:[["handle",""],["tabindex","0","nz-tooltip","",1,"ant-slider-handle",3,"nzTooltipTitle","nzTooltipTitleContext","nzTooltipTrigger","nzTooltipPlacement"]],template:function(n,r){n&1&&g(0,"div",1,0),n&2&&(Oe(r.style),p("nzTooltipTitle",r.tooltipFormatter===null||r.tooltipVisible==="never"?null:r.tooltipTitle)("nzTooltipTitleContext",Ae(6,ji,r.value))("nzTooltipTrigger",null)("nzTooltipPlacement",r.tooltipPlacement))},dependencies:[nt,xe],encapsulation:2,changeDetection:0})}return i})(),Wi=(()=>{class i{lowerBound=null;upperBound=null;marksArray=[];min;max;vertical=!1;included=!1;reverse;marks=[];ngOnChanges(e){let{marksArray:n,lowerBound:r,upperBound:l,reverse:m}=e;(n||m)&&this.buildMarks(),(n||r||l||m)&&this.togglePointActive()}buildMarks(){let e=this.max-this.min;this.marks=this.marksArray.map(n=>{let{value:r,offset:l,config:m}=n,C=this.getMarkStyles(r,e,m);return{label:bi(m)?m.label:m,offset:l,style:C,value:r,config:m,active:!1}})}getMarkStyles(e,n,r){let l,m=this.reverse?this.max+this.min-e:e;return this.vertical?l={marginBottom:"-50%",bottom:`${(m-this.min)/n*100}%`}:l={transform:"translate3d(-50%, 0, 0)",left:`${(m-this.min)/n*100}%`},bi(r)&&r.style&&(l=V(V({},l),r.style)),l}togglePointActive(){this.marks&&this.lowerBound!==null&&this.upperBound!==null&&this.marks.forEach(e=>{let n=e.value;e.active=this.included?n<=this.upperBound&&n>=this.lowerBound:n===this.upperBound})}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider-marks"]],hostAttrs:[1,"ant-slider-mark"],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",min:[2,"min","min",te],max:[2,"max","max",te],vertical:[2,"vertical","vertical",O],included:[2,"included","included",O],reverse:[2,"reverse","reverse",O]},exportAs:["nzSliderMarks"],features:[fe],decls:2,vars:0,consts:[[1,"ant-slider-mark-text",3,"ant-slider-mark-active","style","innerHTML"],[1,"ant-slider-mark-text",3,"innerHTML"]],template:function(n,r){n&1&&D(0,Li,1,5,"span",0,nn),n&2&&w(r.marks)},encapsulation:2,changeDetection:0})}return i})();function bi(i){return typeof i!="string"}var Qi=(()=>{class i{lowerBound=null;upperBound=null;marksArray=[];min;max;vertical=!1;included=!1;reverse;steps=[];ngOnChanges(e){let{marksArray:n,lowerBound:r,upperBound:l,reverse:m}=e;(n||m)&&this.buildSteps(),(n||r||l||m)&&this.togglePointActive()}buildSteps(){let e=this.vertical?"bottom":"left";this.steps=this.marksArray.map(n=>{let{value:r,config:l}=n,m=n.offset,C=this.max-this.min;return this.reverse&&(m=(this.max-r)/C*100),{value:r,offset:m,config:l,active:!1,style:{[e]:`${m}%`,transform:this.vertical?"translateY(50%)":"translateX(-50%)"}}})}togglePointActive(){this.steps&&this.lowerBound!==null&&this.upperBound!==null&&this.steps.forEach(e=>{let n=e.value;e.active=this.included?n<=this.upperBound&&n>=this.lowerBound:n===this.upperBound})}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider-step"]],hostAttrs:[1,"ant-slider-step"],inputs:{lowerBound:"lowerBound",upperBound:"upperBound",marksArray:"marksArray",min:[2,"min","min",te],max:[2,"max","max",te],vertical:[2,"vertical","vertical",O],included:[2,"included","included",O],reverse:[2,"reverse","reverse",O]},exportAs:["nzSliderStep"],features:[fe],decls:2,vars:0,consts:[[1,"ant-slider-dot",3,"ant-slider-dot-active","style"],[1,"ant-slider-dot"]],template:function(n,r){n&1&&D(0,Hi,1,4,"span",0,nn),n&2&&w(r.steps)},encapsulation:2,changeDetection:0})}return i})(),Gi=(()=>{class i{offset=0;reverse=!1;dir="ltr";length=0;vertical=!1;included=!1;style={};ngOnChanges(){let e=this.included?"visible":"hidden";this.vertical?this.style={[this.reverse?"top":"bottom"]:`${this.offset}%`,[this.reverse?"bottom":"top"]:"auto",height:`${this.length}%`,visibility:e}:this.style=ge(V({},this.getHorizontalStylePosition()),{width:`${this.length}%`,visibility:e})}getHorizontalStylePosition(){let e=this.reverse?"auto":`${this.offset}%`,n=this.reverse?`${this.offset}%`:"auto";return this.dir==="rtl"&&([e,n]=[n,e]),{left:e,right:n}}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider-track"]],inputs:{offset:[2,"offset","offset",te],reverse:[2,"reverse","reverse",O],dir:"dir",length:[2,"length","length",te],vertical:[2,"vertical","vertical",O],included:[2,"included","included",O]},exportAs:["nzSliderTrack"],features:[fe],decls:1,vars:2,consts:[[1,"ant-slider-track"]],template:function(n,r){n&1&&Le(0,"div",0),n&2&&Oe(r.style)},encapsulation:2,changeDetection:0})}return i})(),rn=(()=>{class i{slider=S(mn);destroyRef=S(dn);cdr=S(Jt);platform=S(In);directionality=S(zn);handlerComponents;nzDisabled=!1;nzDots=!1;nzIncluded=!0;nzRange=!1;nzVertical=!1;nzReverse=!1;nzDefaultValue;nzMarks=null;nzMax=100;nzMin=0;nzStep=1;nzTooltipVisible="default";nzTooltipPlacement="top";nzTipFormatter;nzOnAfterChange=new cn;value=null;cacheSliderStart=null;cacheSliderLength=null;activeValueIndex=void 0;track={offset:null,length:null};handles=[];marksArray=null;bounds={lower:null,upper:null};dir="ltr";dragging=I(!1);dragStart$;dragMove$;dragEnd$;dragStart_;dragMove_;dragEnd_;isNzDisableFirstChange=!0;ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(ke(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges(),this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0))}),this.handles=zi(this.nzRange?2:1),this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null,this.bindDraggingHandlers(),this.toggleDragDisabled(this.nzDisabled),this.getValue()===null&&this.setValue(this.formatValue(null))}ngOnChanges(e){let{nzDisabled:n,nzMarks:r,nzRange:l}=e;n&&!n.firstChange?this.toggleDragDisabled(n.currentValue):r&&!r.firstChange?this.marksArray=this.nzMarks?this.generateMarkItems(this.nzMarks):null:l&&!l.firstChange&&(this.handles=zi(l.currentValue?2:1),this.setValue(this.formatValue(null)))}writeValue(e){this.setValue(e,!0)}onValueChange(e){}onTouched(){}registerOnChange(e){this.onValueChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.nzDisabled=this.isNzDisableFirstChange&&this.nzDisabled||e,this.isNzDisableFirstChange=!1,this.toggleDragDisabled(this.nzDisabled),this.cdr.markForCheck()}onKeyDown(e){if(this.nzDisabled)return;let n=e.keyCode,r=n===39||n===38,l=n===37||n===40;if(!(r||l))return;e.preventDefault();let m=(l?-this.nzStep:this.nzStep)*(this.nzReverse?-1:1)*(this.dir==="rtl"?-1:1),C=this.nzRange?this.value[this.activeValueIndex]+m:this.value+m;this.setActiveValue(Fe(C,this.nzMin,this.nzMax)),this.nzOnAfterChange.emit(this.getValue(!0))}onHandleFocusIn(e){this.activeValueIndex=e}setValue(e,n=!1){n?(this.value=this.formatValue(e),this.updateTrackAndHandles()):Xi(this.value,e)||(this.value=e,this.updateTrackAndHandles(),this.onValueChange(this.getValue(!0)))}getValue(e=!1){return e&&this.value&&$(this.value)?[...this.value].sort((n,r)=>n-r):this.value}getValueToOffset(e){let n=e;return typeof n>"u"&&(n=this.getValue(!0)),$(n)?n.map(r=>this.valueToOffset(r)):this.valueToOffset(n)}setActiveValueIndex(e){let n=this.getValue();if($(n)){let r=null,l,m=-1;n.forEach((C,P)=>{l=Math.abs(e-C),(r===null||l<r)&&(r=l,m=P)}),this.activeValueIndex=m,this.handlerComponents.toArray()[m].focus()}else this.handlerComponents.toArray()[0].focus()}setActiveValue(e){if($(this.value)){let n=[...this.value];n[this.activeValueIndex]=e,this.setValue(n)}else this.setValue(e)}updateTrackAndHandles(){let e=this.getValue(),n=this.getValueToOffset(e),r=this.getValue(!0),l=this.getValueToOffset(r),m=$(r)?r:[0,r],C=$(l)?[l[0],l[1]-l[0]]:[0,l];this.handles.forEach((P,G)=>{P.offset=$(n)?n[G]:n,P.value=$(e)?e[G]:e||0}),[this.bounds.lower,this.bounds.upper]=m,[this.track.offset,this.track.length]=C,this.cdr.markForCheck()}onDragStart(e){this.toggleDragMoving(!0),this.cacheSliderProperty(),this.setActiveValueIndex(this.getLogicalValue(e)),this.setActiveValue(this.getLogicalValue(e)),this.showHandleTooltip(this.nzRange?this.activeValueIndex:0)}onDragMove(e){this.setActiveValue(this.getLogicalValue(e)),this.cdr.markForCheck()}getLogicalValue(e){return this.nzReverse?!this.nzVertical&&this.dir==="rtl"?e:this.nzMax-e+this.nzMin:!this.nzVertical&&this.dir==="rtl"?this.nzMax-e+this.nzMin:e}onDragEnd(){this.nzOnAfterChange.emit(this.getValue(!0)),this.toggleDragMoving(!1),this.cacheSliderProperty(!0),this.hideAllHandleTooltip(),this.cdr.markForCheck()}bindDraggingHandlers(){if(!this.platform.isBrowser)return;let e=C=>P=>C.reduce((G,Z)=>G[Z]||G,P),n=this.slider.nativeElement,r=this.nzVertical?"pageY":"pageX",l={start:"mousedown",move:"mousemove",end:"mouseup",pluckKey:[r]},m={start:"touchstart",move:"touchmove",end:"touchend",pluckKey:["touches","0",r],filter:C=>C instanceof TouchEvent};[l,m].forEach(C=>{let{start:P,move:G,end:Z,pluckKey:Be,filter:on=()=>!0}=C;C.startPlucked$=Ve(n,P).pipe(Wt(on),Gt(Xt),Ne(e(Be)),Ne(Ut=>this.findClosestValue(Ut))),C.end$=Ve(document,Z),C.moveResolved$=Ve(document,G).pipe(Wt(on),Gt(Xt),Ne(e(Be)),Qt(),Ne(Ut=>this.findClosestValue(Ut)),Qt(),sn(C.end$))}),this.dragStart$=je(l.startPlucked$,m.startPlucked$),this.dragMove$=je(l.moveResolved$,m.moveResolved$),this.dragEnd$=je(l.end$,m.end$)}subscribeDrag(e=["start","move","end"]){e.indexOf("start")!==-1&&this.dragStart$&&!this.dragStart_&&(this.dragStart_=this.dragStart$.pipe(ke(this.destroyRef)).subscribe(this.onDragStart.bind(this))),e.indexOf("move")!==-1&&this.dragMove$&&!this.dragMove_&&(this.dragMove_=this.dragMove$.pipe(ke(this.destroyRef)).subscribe(this.onDragMove.bind(this))),e.indexOf("end")!==-1&&this.dragEnd$&&!this.dragEnd_&&(this.dragEnd_=this.dragEnd$.pipe(ke(this.destroyRef)).subscribe(this.onDragEnd.bind(this)))}unsubscribeDrag(e=["start","move","end"]){e.includes("start")&&(this.dragStart_?.unsubscribe(),this.dragStart_=null),e.includes("move")&&(this.dragMove_?.unsubscribe(),this.dragMove_=null),e.includes("end")&&(this.dragEnd_?.unsubscribe(),this.dragEnd_=null)}toggleDragMoving(e){let n=["move","end"];e?(this.dragging.set(!0),this.subscribeDrag(n)):(this.dragging.set(!1),this.unsubscribeDrag(n))}toggleDragDisabled(e){e?this.unsubscribeDrag():this.subscribeDrag(["start"])}findClosestValue(e){let n=this.getSliderStartPosition(),r=this.getSliderLength(),l=Fe((e-n)/r,0,1),m=(this.nzMax-this.nzMin)*(this.nzVertical?1-l:l)+this.nzMin,C=this.nzMarks===null?[]:Object.keys(this.nzMarks).map(parseFloat).sort((Z,Be)=>Z-Be);if(this.nzStep!==0&&!this.nzDots){let Z=Math.round(m/this.nzStep)*this.nzStep;C.push(Z)}let P=C.map(Z=>Math.abs(m-Z)),G=C[P.indexOf(Math.min(...P))];return this.nzStep===0?G:parseFloat(G.toFixed(Pn(this.nzStep)))}valueToOffset(e){return Rn(this.nzMin,this.nzMax,e)}getSliderStartPosition(){if(this.cacheSliderStart!==null)return this.cacheSliderStart;let e=Sn(this.slider.nativeElement);return this.nzVertical?e.top:e.left}getSliderLength(){if(this.cacheSliderLength!==null)return this.cacheSliderLength;let e=this.slider.nativeElement;return this.nzVertical?e.clientHeight:e.clientWidth}cacheSliderProperty(e=!1){this.cacheSliderStart=e?null:this.getSliderStartPosition(),this.cacheSliderLength=e?null:this.getSliderLength()}formatValue(e){return xn(e)?this.nzRange?[this.nzMin,this.nzMax]:this.nzMin:Ji(e,this.nzRange)?$(e)?e.map(n=>Fe(n,this.nzMin,this.nzMax)):Fe(e,this.nzMin,this.nzMax):this.nzDefaultValue?this.nzDefaultValue:this.nzRange?[this.nzMin,this.nzMax]:this.nzMin}showHandleTooltip(e=0){this.handles.forEach((n,r)=>n.active=r===e)}hideAllHandleTooltip(){this.handles.forEach(e=>e.active=!1)}generateMarkItems(e){let n=[];for(let r in e)if(e.hasOwnProperty(r)){let l=e[r],m=typeof r=="number"?r:parseFloat(r);m>=this.nzMin&&m<=this.nzMax&&n.push({value:m,offset:this.valueToOffset(m),config:l})}return n.length?n:null}static \u0275fac=function(n){return new(n||i)};static \u0275cmp=z({type:i,selectors:[["nz-slider"]],viewQuery:function(n,r){if(n&1&&He(tn,5),n&2){let l;$e(l=Ue())&&(r.handlerComponents=l)}},hostAttrs:[1,"ant-slider"],hostVars:8,hostBindings:function(n,r){n&1&&_("keydown",function(m){return r.onKeyDown(m)}),n&2&&ee("ant-slider-rtl",r.dir==="rtl")("ant-slider-disabled",r.nzDisabled)("ant-slider-vertical",r.nzVertical)("ant-slider-with-marks",r.marksArray)},inputs:{nzDisabled:[2,"nzDisabled","nzDisabled",O],nzDots:[2,"nzDots","nzDots",O],nzIncluded:[2,"nzIncluded","nzIncluded",O],nzRange:[2,"nzRange","nzRange",O],nzVertical:[2,"nzVertical","nzVertical",O],nzReverse:[2,"nzReverse","nzReverse",O],nzDefaultValue:"nzDefaultValue",nzMarks:"nzMarks",nzMax:[2,"nzMax","nzMax",te],nzMin:[2,"nzMin","nzMin",te],nzStep:[2,"nzStep","nzStep",Ye],nzTooltipVisible:"nzTooltipVisible",nzTooltipPlacement:"nzTooltipPlacement",nzTipFormatter:"nzTipFormatter"},outputs:{nzOnAfterChange:"nzOnAfterChange"},exportAs:["nzSlider"],features:[fn([{provide:An,useExisting:ln(()=>i),multi:!0}]),fe],decls:6,vars:8,consts:[[1,"ant-slider-rail"],[3,"vertical","included","offset","length","reverse","dir"],[3,"vertical","min","max","lowerBound","upperBound","marksArray","included","reverse"],[3,"vertical","reverse","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement","dragging","dir"],[3,"focusin","vertical","reverse","offset","value","active","tooltipFormatter","tooltipVisible","tooltipPlacement","dragging","dir"]],template:function(n,r){n&1&&(g(0,"div",0)(1,"nz-slider-track",1),M(2,$i,1,8,"nz-slider-step",2),D(3,Ui,1,10,"nz-slider-handle",3,nn),M(5,qi,1,8,"nz-slider-marks",2)),n&2&&(s(),p("vertical",r.nzVertical)("included",r.nzIncluded)("offset",r.track.offset)("length",r.track.length)("reverse",r.nzReverse)("dir",r.dir),s(),x(r.marksArray?2:-1),s(),w(r.handles),s(2),x(r.marksArray?5:-1))},dependencies:[Gi,Qi,tn,Wi],encapsulation:2,changeDetection:0})}return i})();function Yi(){return new Error(`The "nzRange" can't match the "ngModel"'s type, please check these properties: "nzRange", "ngModel", "nzDefaultValue".`)}function $(i){return i instanceof Array?i.length===2:!1}function zi(i){return Array(i).fill(0).map(()=>({offset:null,value:null,active:!1}))}function Ji(i,t){return!$(i)&&isNaN(i)||$(i)&&i.some(e=>isNaN(e))?!1:Ki(i,t)}function Ki(i,t=!1){if($(i)!==t)throw Yi();return!0}function Xi(i,t){return typeof i!=typeof t?!1:$(i)&&$(t)?Mn(i,t):i===t}var Mt=(()=>{class i{static \u0275fac=function(n){return new(n||i)};static \u0275mod=re({type:i});static \u0275inj=ie({imports:[rn,tn]})}return i})();var er=(i,t)=>t.value;function tr(i,t){if(i&1&&g(0,"nz-step",5),i&2){let e=u().$implicit,n=u();p("nzTitle",e.label)("nzStatus",n.excutedStatus().has(e.value)?"finish":"wait")}}function nr(i,t){if(i&1&&g(0,"nz-step",6),i&2){let e=u().$implicit;p("nzTitle",e.label)}}function ir(i,t){if(i&1&&M(0,tr,1,2,"nz-step",5)(1,nr,1,1,"nz-step",6),i&2){let e=u();x(e.item().status==="closed"?0:1)}}var xt=class i{rdPermission=S(Ee);userStore=S(Se);item=c.required();stages=c([]);busy=c();actionClick=R();deleteClick=R();progressChange=R();members=c([]);currentUser=y(()=>this.userStore.currentUser());currentUserId=y(()=>this.userStore.currentUserId());currentStageName=y(()=>{let t=this.item();return t?this.stages().find(e=>e.id===t.stageId)?.name??"-":"-"});currentStatusName=y(()=>{let t=this.item()?.status;return t==="blocked"?"\u5904\u7406\u4E2D\uFF08\u963B\u585E\u4E2D\uFF09":X[t]??"_ _"});excutedStatus=y(()=>{let t=new Set;return this.item().status!=="closed"||(t.add("todo"),t.add("closed"),this.item().progress>0&&t.add("doing"),this.item().progress>=100&&t.add("done")),t});progressDraft=I(0);constructor(){le(()=>{this.item()?.progress&&this.progressDraft.set(this.item()?.progress)})}stepsOptions=yt.filter(t=>!(t.value==="blocked"||t.value===""));getStepIndex(t){return t==="blocked"?1:t==="done"?2:t==="closed"||t==="accepted"?3:t==="reopened"?1:mi.findIndex(n=>n===t)??-1}getRdStatusColor(t){return ue[t]??"default"}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-flow-area"]],inputs:{item:[1,"item"],stages:[1,"stages"],busy:[1,"busy"],members:[1,"members"]},outputs:{actionClick:"actionClick",deleteClick:"deleteClick",progressChange:"progressChange"},decls:10,vars:4,consts:[[1,"steps"],[1,"flow-card__meta"],[1,"stage"],[3,"nzColor"],["nzSize","small",3,"nzCurrent"],[3,"nzTitle","nzStatus"],[3,"nzTitle"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card")(1,"div",0)(2,"div",1)(3,"span",2),d(4),o(),a(5,"nz-tag",3),d(6),o()(),a(7,"nz-steps",4),D(8,ir,2,1,null,null,er),o()()()),e&2&&(s(4),b("\u5F53\u524D\u9636\u6BB5\uFF1A",n.currentStageName()),s(),p("nzColor",n.getRdStatusColor(n.item().status)),s(),v(n.currentStatusName()),s(),p("nzCurrent",n.getStepIndex(n.item().status)),s(),w(n.stepsOptions))},dependencies:[B,dt,Mt,ni,ti,ei,H,K,L,Q],styles:[".flow-card__meta[_ngcontent-%COMP%]{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:.875rem;margin-bottom:1rem;font-weight:600}.flow-card__meta[_ngcontent-%COMP%] .stage[_ngcontent-%COMP%]{margin-right:auto}.action-empty[_ngcontent-%COMP%]{color:gray;font-size:.9rem}.delete-btn[_ngcontent-%COMP%]{margin-left:auto}.progress-wrap[_ngcontent-%COMP%]{width:100%;margin-top:8px;padding:1rem;border:1px solid #f0f0f0;border-radius:10px}.progress-wrap[_ngcontent-%COMP%] .progress-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between}.progress-wrap[_ngcontent-%COMP%] .progress-actions[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center;justify-content:end;gap:1rem}[_nghost-%COMP%] .ant-steps-item-title:after{background-color:#d3d3d3!important}"]})};var or=()=>({"0%":"#108ee9","100%":"#87d068"}),ar=(i,t)=>t.id;function sr(i,t){i&1&&d(0," (\u6211) ")}function lr(i,t){if(i&1&&(a(0,"div",18)(1,"span",20),d(2,"\u8FDB\u5EA6\u8BF4\u660E\uFF1A"),o(),a(3,"span",21),d(4),o()()),i&2){let e=u().$implicit;s(4),v(e.note)}}function dr(i,t){if(i&1){let e=E();a(0,"button",24),_("nzOnConfirm",function(){f(e);let r=u(2).$implicit,l=u();return h(l.onStartProgress(r))}),d(1," \u5F00\u59CB "),o()}}function mr(i,t){if(i&1){let e=E();a(0,"button",25),_("click",function(){f(e);let r=u(2).$implicit,l=u();return h(l.onUpdateProgress(r))}),d(1," \u66F4\u65B0 "),o()}}function pr(i,t){if(i&1&&M(0,dr,2,0,"button",22)(1,mr,2,0,"button",23),i&2){let e=u().$implicit;x(e.progress<=0?0:1)}}function cr(i,t){if(i&1&&(a(0,"div",9)(1,"div",11),g(2,"nz-avatar",12),a(3,"div",13)(4,"span",14),d(5),M(6,sr,1,0),o(),a(7,"span",15),d(8),k(9,"date"),o()(),g(10,"nz-progress",16),o(),a(11,"div",17),M(12,lr,5,1,"div",18),a(13,"div",19),M(14,pr,2,1),o()()()),i&2){let e=t.$implicit,n=u();s(2),se("background-color","#1890ff"),p("nzSize","small")("nzText",e.userName==null?null:e.userName.charAt(0)),s(3),b(" ",e.userName," "),s(),x(e.userId===n.currentUserId()?6:-1),s(2),b(" \u6700\u540E\u66F4\u65B0\uFF1A",F(9,10,e.updatedAt,"MM:dd hh:mm")," "),s(2),p("nzPercent",e.progress),s(2),x(e.note?12:-1),s(2),x(n.canUpdateProgress(e)&&!n.isProgressLocked()?14:-1)}}function ur(i,t){i&1&&(a(0,"div",10),d(1,"\u6682\u65E0\u6210\u5458\u8FDB\u5EA6\u6570\u636E"),o())}var Rt=class i{rdPermission=S(Ee);userStore=S(Se);item=c(null);progressList=c([]);members=c([]);updateProgressClick=R();currentUserId=y(()=>this.userStore.currentUserId());normalizedProgressList=y(()=>{let t=this.item();if(!t)return[];let e=t.memberIds??[],n=new Map(this.members().map(C=>[C.userId,C.displayName])),r=new Map(this.progressList().map(C=>[C.userId,C])),l=[];if(e.length){let C=e.map(P=>({id:P,itemId:r.get(P)?.itemId??t.id,userId:P,userName:r.get(P)?.userName??n.get(P)??P,progress:r.get(P)?.progress??0,note:r.get(P)?.note??"",updatedAt:t.updatedAt}));l.push(...C)}else{if(!t.assigneeId)return[];l.push({id:"",itemId:t.id,userId:t.assigneeId,userName:t.assigneeName??n.get(t.assigneeId)??t.assigneeId,progress:t.progress,note:"",updatedAt:t.updatedAt})}let m=this.currentUserId();return l.sort((C,P)=>C.userId===m?-1:P.userId===m?1:0)});mainProgress=y(()=>this.item()?.progress??0);isClosed(){return this.item()?.status==="closed"}getAvatarLetter(t){return t?t.charAt(0).toUpperCase():"?"}isProgressLocked(){let t=this.item()?.status;return t==="accepted"||t==="closed"}onUpdateProgress(t){this.updateProgressClick.emit(t)}onStartProgress(t){this.updateProgressClick.emit(t)}canUpdateProgress(t){return t.userId===this.currentUserId()&&this.rdPermission.hasPermissionToTransition(this.userStore.currentUser())}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-progress-area"]],inputs:{item:[1,"item"],progressList:[1,"progressList"],members:[1,"members"]},outputs:{updateProgressClick:"updateProgressClick"},decls:15,vars:6,consts:[["title","\u6210\u5458\u8FDB\u5EA6"],[1,"main-progress-header"],[1,"main-progress-info"],[1,"main-progress-label"],[1,"main-progress-hint"],[1,"main-progress-data"],[1,"progress-bar"],[3,"nzPercent","nzShowInfo","nzStrokeColor"],[1,"progress-list"],[1,"progress-item"],[1,"empty"],[1,"progress-item-header"],[3,"nzSize","nzText"],[1,"member-info"],[1,"member-name"],[1,"member-hint"],[3,"nzPercent"],[1,"progress-item-footer"],[1,"note-row"],[1,"progress-item-actions"],[1,"note-label"],[1,"note"],["nz-button","","nzType","default","nzSize","small","nz-popconfirm","","nzPopconfirmTitle","\u786E\u8BA4\u5F00\u59CB\u5904\u7406\u5417\uFF1F","nzPopconfirmPlacement","topRight"],["nz-button","","nzType","default","nzSize","small"],["nz-button","","nzType","default","nzSize","small","nz-popconfirm","","nzPopconfirmTitle","\u786E\u8BA4\u5F00\u59CB\u5904\u7406\u5417\uFF1F","nzPopconfirmPlacement","topRight",3,"nzOnConfirm"],["nz-button","","nzType","default","nzSize","small",3,"click"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card",0)(1,"div",1)(2,"div",2)(3,"span",3),d(4,"\u6574\u4F53\u8FDB\u5EA6"),o(),a(5,"span",4),d(6,"\u81EA\u52A8\u53D6\u6210\u5458\u5E73\u5747\u503C"),o()(),a(7,"div",5),d(8),o()(),a(9,"div",6),g(10,"nz-progress",7),o(),a(11,"div",8),D(12,cr,15,13,"div",9,ar,!1,ur,2,0,"div",10),o()()),e&2&&(s(8),b("",n.mainProgress(),"%"),s(2),p("nzPercent",n.mainProgress())("nzShowInfo",!1)("nzStrokeColor",hn(5,or)),s(2),w(n.normalizedProgressList()))},dependencies:[vt,_t,B,_e,de,ye,ce,Pe,Hn,dt,qn,Q,N,W],styles:["[_nghost-%COMP%]{display:block}.main-progress-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.main-progress-header[_ngcontent-%COMP%] .main-progress-info[_ngcontent-%COMP%]{margin-left:4px;display:flex;flex-direction:column}.main-progress-header[_ngcontent-%COMP%] .main-progress-info[_ngcontent-%COMP%] .main-progress-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#262626}.main-progress-header[_ngcontent-%COMP%] .main-progress-info[_ngcontent-%COMP%] .main-progress-hint[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c}.main-progress-header[_ngcontent-%COMP%] .main-progress-data[_ngcontent-%COMP%]{font-size:28px;font-weight:600;color:#262626}.progress-bar[_ngcontent-%COMP%]{margin-bottom:16px}.progress-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.progress-item[_ngcontent-%COMP%]{background:#fafafa;border-radius:8px;padding:12px 16px;transition:all .2s ease;border:1px solid transparent}.progress-item[_ngcontent-%COMP%]:hover{background:#f5faff;border-color:#d6e4ff}.progress-item-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.member-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:120px;margin-right:50px}.member-name[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#262626}.member-hint[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c}.progress-item-header[_ngcontent-%COMP%] nz-progress[_ngcontent-%COMP%]{flex:1;margin-left:12px}.progress-item-footer[_ngcontent-%COMP%]{margin-top:8px;display:flex;justify-content:space-between;align-items:center}.progress-item-footer[_ngcontent-%COMP%] .note-row[_ngcontent-%COMP%]{font-size:12px;color:#595959}.progress-item-footer[_ngcontent-%COMP%] .note-label[_ngcontent-%COMP%]{color:#8c8c8c}.progress-item-footer[_ngcontent-%COMP%] .note[_ngcontent-%COMP%]{margin-left:4px}.progress-item-actions[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center;gap:8px}.progress-item-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:6px}.empty[_ngcontent-%COMP%]{text-align:center;color:#bfbfbf;padding:24px 0}"]})};var fr=(i,t)=>t.id;function hr(i,t){if(i&1&&g(0,"nz-alert",14),i&2){let e=u().$implicit;p("nzMessage","\u963B\u585E\u539F\u56E0\uFF1A"+e.snapshot.blockerReason)}}function yr(i,t){if(i&1&&(a(0,"div",2)(1,"div",3)(2,"div")(3,"div",4),d(4),o(),a(5,"div",5),d(6),k(7,"date"),o()(),a(8,"div",6)(9,"nz-tag",7),d(10),o(),a(11,"nz-tag",8),d(12),o()()(),a(13,"div",9)(14,"div",10)(15,"div",11),d(16,"\u64CD\u4F5C\u4EBA"),o(),a(17,"div",12),d(18),o()(),a(19,"div",10)(20,"div",11),d(21,"\u9A8C\u8BC1\u4EBA"),o(),a(22,"div",12),d(23),o()(),a(24,"div",13)(25,"div",11),d(26,"\u6267\u884C\u4EBA"),o(),a(27,"div",12),d(28),o()(),a(29,"div",10)(30,"div",11),d(31,"\u8BA1\u5212\u5468\u671F"),o(),a(32,"div",12),d(33),o()(),a(34,"div",10)(35,"div",11),d(36,"\u5B9E\u9645\u5468\u671F"),o(),a(37,"div",12),d(38),o()()(),M(39,hr,1,1,"nz-alert",14),o()),i&2){let e=t.$implicit,n=u();s(4),v(e.fromStageName),s(2),v(F(7,11,e.createdAt,"MM:dd HH:mm")),s(3),p("nzColor",n.statusColor(e.snapshot.status)),s(),b(" ",n.statusLabel(e.snapshot.status)," "),s(2),b(" \u8FDB\u5EA6 ",n.clampProgress(e.snapshot.progress),"% "),s(6),b(" ",e.operatorName||e.operatorId||"\u7CFB\u7EDF"," "),s(5),b(" ",e.snapshot.verifierName||"\u672A\u6307\u5B9A"," "),s(5),b(" ",e.snapshot.memberNames.length?e.snapshot.memberNames.join("\u3001"):"\u672A\u6307\u5B9A"," "),s(5),b(" ",n.formatDateRange(e.snapshot.planStartAt,e.snapshot.planEndAt)," "),s(5),b(" ",n.formatDateRange(e.snapshot.actualStartAt,e.snapshot.actualEndAt)," "),s(),x(e.snapshot.blockerReason?39:-1)}}var Pt=class i{entries=c([]);parsedEntries=y(()=>this.entries().map(t=>ge(V({},t),{snapshot:this.parseSnapshot(t.snapshotJson)})));statusLabel(t){return X[t]??t}statusColor(t){return ue[t]??t}clampProgress(t){let e=Number.isFinite(t)?t:0;return Math.max(0,Math.min(100,Math.round(e)))}formatDateRange(t,e){return`${this.formatDate(t)} ~ ${this.formatDate(e)}`}formatDate(t){return t?new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit"}).format(new Date(t)):"-"}parseSnapshot(t){try{let e=JSON.parse(t);return{stageId:e.stageId??null,stageName:e.stageName??"-",status:e.status??"todo",progress:e.progress??0,assigneeId:e.assigneeId??null,assigneeName:e.assigneeName??null,verifierId:e.verifierId??null,verifierName:e.verifierName??null,memberIds:e.memberIds??[],memberNames:e.memberNames??[],planStartAt:e.planStartAt??null,planEndAt:e.planEndAt??null,actualStartAt:e.actualStartAt??null,actualEndAt:e.actualEndAt??null,blockerReason:e.blockerReason??null}}catch{return{stageId:null,stageName:"-",status:"todo",progress:0,assigneeId:null,assigneeName:null,verifierId:null,verifierName:null,memberIds:[],memberNames:[],planStartAt:null,planEndAt:null,actualStartAt:null,actualEndAt:null,blockerReason:null}}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-stage-history"]],inputs:{entries:[1,"entries"]},decls:4,vars:1,consts:[["title","\u7814\u53D1\u9636\u6BB5\u5386\u53F2","emptyText","\u6682\u65E0\u7814\u53D1\u9636\u6BB5\u5386\u53F2",3,"emptyStatus"],[1,"history-list"],[1,"history-item"],[1,"history-header"],[1,"title"],[1,"time"],[1,"tags"],[3,"nzColor"],["nzColor","blue"],[1,"meta-grid"],[1,"meta-item"],[1,"label"],[1,"value"],[1,"meta-item","full"],["nzType","warning","nzShowIcon","",1,"mt",3,"nzMessage"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card",0)(1,"div",1),D(2,yr,40,14,"div",2,fr),o()()),e&2&&(p("emptyStatus",n.parsedEntries().length===0),s(2),w(n.parsedEntries()))},dependencies:[Q,H,K,gt,ut,N,W],styles:['.history-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.history-item[_ngcontent-%COMP%]{position:relative;border:1px solid #f0f0f0;border-radius:10px;padding:12px;background:#fff}.history-item[_ngcontent-%COMP%]:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:3px;background:#1890ff}.history-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}.title[_ngcontent-%COMP%]{font-size:14px;font-weight:600;color:#262626}.time[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c;margin-top:2px}.tags[_ngcontent-%COMP%]{display:flex;gap:8px}.meta-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.meta-item[_ngcontent-%COMP%]{background:#fafafa;border-radius:8px;padding:8px 10px}.meta-item.full[_ngcontent-%COMP%]{grid-column:1 / -1}.label[_ngcontent-%COMP%]{font-size:11px;color:#8c8c8c}.value[_ngcontent-%COMP%]{font-size:13px;color:#262626;font-weight:500;margin-top:2px}.mt[_ngcontent-%COMP%]{margin-top:10px}@media (max-width: 768px){.meta-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}']})};function _r(i,t){if(i&1&&(a(0,"nz-descriptions",2)(1,"nz-descriptions-item",4),d(2),o(),a(3,"nz-descriptions-item",5),d(4),o(),a(5,"nz-descriptions-item",6),d(6),o(),a(7,"nz-descriptions-item",7)(8,"nz-tag",8),d(9),o()(),a(10,"nz-descriptions-item",9)(11,"nz-tag",8),d(12),o()(),a(13,"nz-descriptions-item",10),d(14),o(),a(15,"nz-descriptions-item",11),d(16),o()()),i&2){let e=t,n=u();p("nzColumn",1),s(2),b(" ",e.creatorName," "),s(2),b(" ",n.memberNames()," "),s(2),b(" ",e.creatorName," "),s(2),p("nzColor",n.getStatusColor(e.status)),s(),b(" ",n.getStatusLabel(e.status)," "),s(2),p("nzColor",n.getPriorityColor(e.priority)),s(),b(" ",n.getPriorityLabel(e.priority)," "),s(2),b(" ",n.getStagesName(e.stageId)," "),s(2),b(" ",e.progress," % ")}}function vr(i,t){if(i&1&&(a(0,"div",12)(1,"div",13)(2,"div",14),d(3,"\u8BA1\u5212\u5F00\u59CB"),o(),a(4,"div",15),d(5),k(6,"date"),o()(),a(7,"div",13)(8,"div",14),d(9,"\u8BA1\u5212\u7ED3\u675F"),o(),a(10,"div",15),d(11),k(12,"date"),o()(),a(13,"div",13)(14,"div",14),d(15,"\u5B9E\u9645\u5F00\u59CB"),o(),a(16,"div",15),d(17),k(18,"date"),o()(),a(19,"div",13)(20,"div",14),d(21,"\u5B9E\u9645\u7ED3\u675F"),o(),a(22,"div",15),d(23),k(24,"date"),o()(),a(25,"div",13)(26,"div",14),d(27,"\u8BA1\u5212\u5DE5\u671F"),o(),a(28,"div",15),d(29),o()(),a(30,"div",13)(31,"div",14),d(32,"\u5B9E\u9645\u5DE5\u671F"),o(),a(33,"div",15),d(34),o()(),a(35,"div",13)(36,"div",14),d(37,"\u5F53\u524D\u9636\u6BB5\u5DE5\u671F"),o(),a(38,"div",15),d(39),o()(),a(40,"div",16)(41,"div",14),d(42,"\u521B\u5EFA\u65F6\u95F4"),o(),a(43,"div",15),d(44),k(45,"date"),o()()(),a(46,"div",17),d(47),o()),i&2){let e=t,n=u();s(5),v(F(6,10,e.planStartAt,"yyyy-MM-dd")||"\u672A\u8BBE\u7F6E"),s(6),v(F(12,13,e.planEndAt,"yyyy-MM-dd")||"\u672A\u8BBE\u7F6E"),s(6),v(F(18,16,e.actualStartAt,"yyyy-MM-dd")||"-"),s(6),v(F(24,19,e.actualEndAt,"yyyy-MM-dd")||"-"),s(6),v(n.getPlannedDuration()),s(5),v(n.getActualDuration()),s(5),v(n.getCurrentStageDuration()),s(5),v(F(45,22,e.createdAt,"yyyy-MM-dd HH:mm")),s(3),gn("\u65F6\u95F4\u72B6\u6001\uFF1A",n.getTimeStatus(),"\u3002",n.getTimeStatusHint())}}var Dt=class i{rdItem=c.required();stages=c([]);stageHistory=c([]);members=c([]);memberNames=y(()=>this.rdItem().memberIds.length<=0||this.members().length<=0?this.rdItem().assigneeName:this.rdItem().memberIds.map(t=>this.members().find(n=>n.userId===t)?.displayName).join("\uFF0C"));getStatusLabel(t){return X[t]}getStatusColor(t){return ue[t]}getPriorityLabel(t){return De[t]}getPriorityColor(t){return we[t]}getStagesName(t){return t?this.stages().find(n=>n.id===t)?.name??"":""}getPlannedDuration(){let t=this.rdItem().planStartAt,e=this.rdItem().planEndAt;return!t||!e?"-":this.formatDuration(this.diffDurationDays(t,e))}getActualDuration(){let t=this.rdItem(),e=this.stageHistory().map(l=>this.parseSnapshot(l.snapshotJson)).reduce((l,m)=>!m?.actualStartAt||!m.actualEndAt?l:l+this.diffDurationDays(m.actualStartAt,m.actualEndAt),0),n=this.getCurrentStageDurationDays(t),r=e+n;return r<=0?"-":this.formatDuration(r)}getCurrentStageDuration(){let t=this.getCurrentStageDurationDays(this.rdItem());return t<=0?"-":this.formatDuration(t)}getTimeStatus(){let t=this.rdItem();if(!t.actualStartAt)return"\u672A\u5F00\u59CB";if(t.status!=="done"&&t.status!=="accepted"&&t.status!=="closed")return"\u8FDB\u884C\u4E2D";if(!t.actualEndAt||!t.planEndAt)return"\u5DF2\u5B8C\u6210";let e=new Date(t.actualEndAt),n=new Date(t.planEndAt),r=Math.round((n.getTime()-e.getTime())/(1e3*60*60*24)*2)/2;return r>0?`\u63D0\u524D ${this.formatDuration(r)}`:r===0?"\u6309\u65F6\u5B8C\u6210":`\u5EF6\u671F ${this.formatDuration(Math.abs(r))}`}getTimeStatusHint(){let t=this.getTimeStatus();return t==="\u672A\u5F00\u59CB"?"\u5F00\u59CB\u540E\u5C06\u81EA\u52A8\u7EDF\u8BA1\u5B9E\u9645\u5DE5\u671F\u3002":t==="\u8FDB\u884C\u4E2D"?"\u5B8C\u6210\u540E\u81EA\u52A8\u8BA1\u7B97\u201C\u63D0\u524D / \u6309\u65F6 / \u5EF6\u671F\u201D\u3002":"\u65F6\u95F4\u7EDF\u8BA1\u5DF2\u6309\u8BA1\u5212\u4E0E\u5B9E\u9645\u7ED3\u675F\u65F6\u95F4\u81EA\u52A8\u8BA1\u7B97\u3002"}parseSnapshot(t){if(!t)return null;try{return JSON.parse(t)}catch{return null}}getCurrentStageDurationDays(t){if(!t.actualStartAt)return 0;let e=t.actualEndAt??(t.status==="done"||t.status==="accepted"||t.status==="closed"?t.updatedAt:new Date().toISOString());return this.diffDurationDays(t.actualStartAt,e)}formatDuration(t){let e=Math.round(Math.max(0,t)*2)/2;return e<=0?"-":`${Number.isInteger(e)?e.toFixed(0):e.toFixed(1)} \u5929`}parseDateTime(t,e){if(/^\d{4}-\d{2}-\d{2}$/.test(t)){let n=e==="start"?"T00:00:00.000":"T23:59:59.999";return new Date(`${t}${n}`)}return new Date(t)}diffDurationDays(t,e){let n=this.parseDateTime(t,"start"),r=this.parseDateTime(e,"end");if(Number.isNaN(n.getTime())||Number.isNaN(r.getTime()))return 0;let l=Math.max(0,r.getTime()-n.getTime()),m=l/(1e3*60*60*24),C=Math.round(m*2)/2;return l>0&&C===0||l===0?.5:C}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-base-info"]],inputs:{rdItem:[1,"rdItem"],stages:[1,"stages"],stageHistory:[1,"stageHistory"],members:[1,"members"]},decls:5,vars:2,consts:[[1,"base-info-container"],["title","\u57FA\u7840\u4FE1\u606F"],["nzBordered","","nzSize","small",3,"nzColumn"],["title","\u65F6\u95F4\u4FE1\u606F"],["nzTitle","\u521B\u5EFA\u4EBA"],["nzTitle","\u6267\u884C\u4EBA"],["nzTitle","\u9A8C\u6536\u4EBA"],["nzTitle","\u72B6\u6001"],[3,"nzColor"],["nzTitle","\u4F18\u5148\u7EA7"],["nzTitle","\u9636\u6BB5"],["nzTitle","\u8FDB\u5EA6"],[1,"time-grid"],[1,"time-item"],[1,"label"],[1,"value"],[1,"time-item","full"],[1,"time-status"]],template:function(e,n){if(e&1&&(a(0,"div",0)(1,"app-detail-item-card",1),M(2,_r,17,10,"nz-descriptions",2),o(),a(3,"app-detail-item-card",3),M(4,vr,48,25),o()()),e&2){let r,l;s(2),x((r=n.rdItem())?2:-1,r),s(2),x((l=n.rdItem())?4:-1,l)}},dependencies:[ft,si,ai,Q,H,K,N,W],styles:[".base-info-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.time-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.time-item[_ngcontent-%COMP%]{background:#f5f7fa;border-radius:8px;padding:12px}.time-item[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c;margin-bottom:4px}.time-item[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#262626}.time-item.full[_ngcontent-%COMP%]{grid-column:span 2}.time-status[_ngcontent-%COMP%]{margin-top:12px;padding:10px 12px;border-radius:6px;background:#fff7e6;color:#d46b08;border:1px solid #ffd591;font-size:13px}"]})};var Cr=(i,t)=>t.id;function br(i,t){if(i&1&&(a(0,"nz-timeline-item")(1,"div",1)(2,"div",2)(3,"span",3),d(4),o(),a(5,"span",4),d(6),o(),a(7,"span",5),d(8),k(9,"date"),o()()()()),i&2){let e=t.$implicit;s(4),v(e.operatorName||"\u7CFB\u7EDF"),s(2),v(e.content||e.actionType),s(2),v(F(9,3,e.createdAt,"MM/dd HH:mm"))}}var wt=class i{logs=c([]);static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-logs-area"]],inputs:{logs:[1,"logs"]},decls:4,vars:2,consts:[["title","\u7814\u53D1\u52A8\u6001","maxHeight","600px",3,"emptyStatus","emptyText"],[1,"rd-log-item"],[1,"meta"],[1,"operator"],[1,"content"],[1,"time"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card",0)(1,"nz-timeline"),D(2,br,10,6,"nz-timeline-item",null,Cr),o()()),e&2&&(p("emptyStatus",n.logs().length===0)("emptyText","\u6682\u65E0\u52A8\u6001"),s(2),w(n.logs()))},dependencies:[Q,ht,li,di,N,W],styles:[".rd-log-item[_ngcontent-%COMP%]{padding:4px 0 0}.rd-log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.875rem;color:#000000a6;font-size:1rem;margin-bottom:4px}.rd-log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .operator[_ngcontent-%COMP%]{font-weight:700;white-space:nowrap;flex-shrink:0}.rd-log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{color:#000000d9;font-size:.875rem}.rd-log-item[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .time[_ngcontent-%COMP%]{margin-right:15px;font-size:.875rem;font-weight:300;color:#bbb;margin-left:auto;white-space:nowrap;flex-shrink:0}"]})};var zr=(i,t)=>t.id;function Ir(i,t){i&1&&(a(0,"div",3),d(1,"\u6682\u65E0\u7814\u53D1\u9879\u63CF\u8FF0"),o())}function Mr(i,t){if(i&1&&(a(0,"div",4)(1,"div",5),d(2),o(),a(3,"div",6),d(4),o()()),i&2){let e=t.$implicit;s(2),v(e.label),s(2),v(e.content)}}var Et=class i{rdItem=c.required();projectId=c.required();logs=c([]);mdContent=y(()=>{let t=this.rdItem();return t?gi(t.description||"",this.projectId(),t.id,"rd-items"):""});detailNotes=y(()=>{let t=[...this.logs()].reverse(),e=[];for(let n of t){let r=n.content?.trim()||"";if(r){if(n.actionType==="advance_stage"){let m=r.match(/(?:^|;)\s*说明[::]\s*(.+)$/)?.[1]?.trim();if(!m)continue;let P=r.match(/推进阶段[::]\s*.+?\s*->\s*([^;]+)/)?.[1]?.trim()||"\u8BE5";e.push({id:`advance-${n.id}`,label:`${P}\u9636\u6BB5\u63CF\u8FF0`,content:m});continue}if(n.actionType==="close"){let m=r.match(/关闭研发项[::]\s*(.+)$/)?.[1]?.trim();if(!m)continue;e.push({id:`close-${n.id}`,label:"\u5173\u95ED\u539F\u56E0",content:m})}}}return e});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-description-area"]],inputs:{rdItem:[1,"rdItem"],projectId:[1,"projectId"],logs:[1,"logs"]},decls:6,vars:6,consts:[[3,"title"],[1,"description-container"],[3,"content","showToc","tocVariant","tocCollapsedByDefault"],[1,"empty"],[1,"note"],[1,"note-label"],[1,"note-content"]],template:function(e,n){e&1&&(a(0,"app-detail-item-card",0)(1,"div",1),g(2,"app-markdown-viewer",2),M(3,Ir,2,0,"div",3),o(),D(4,Mr,5,2,"div",4,zr),o()),e&2&&(p("title","\u7814\u53D1\u9879\u63CF\u8FF0"),s(2),p("content",n.mdContent())("showToc",!0)("tocVariant","floating")("tocCollapsedByDefault",!0),s(),x(n.mdContent()?-1:3),s(),w(n.detailNotes()))},dependencies:[ui,Q],styles:[".description-container[_ngcontent-%COMP%]{margin-bottom:10px;max-height:500px;overflow-y:auto}.description-container[_ngcontent-%COMP%] .empty[_ngcontent-%COMP%]{width:100%;text-align:center;font-size:.875rem;color:gray}.note[_ngcontent-%COMP%]{padding:1rem 0;border-top:1px solid #ebedf0}.note[_ngcontent-%COMP%] .note-label[_ngcontent-%COMP%]{margin-bottom:4px;font-size:.8rem;font-weight:700;color:gray}.note[_ngcontent-%COMP%] .note-content[_ngcontent-%COMP%]{font-size:.8rem;text-indent:.8rem}"]})};function xr(i,t){i&1&&(a(0,"span",5),d(1),o()),i&2&&(s(),v(t))}function Sr(i,t){if(i&1&&(a(0,"div",3)(1,"div",4),M(2,xr,2,1,"span",5),a(3,"strong"),d(4),o()()()),i&2){let e,n=u();s(2),x((e=n.subtitleText())?2:-1,e),s(2),v(n.titleText())}}function Rr(i,t){i&1&&g(0,"nz-spin",6)}function Pr(i,t){if(i&1){let e=E();a(0,"div",7)(1,"div",8)(2,"app-rd-flow-area",9),_("actionClick",function(r){f(e);let l=u(2);return h(l.actionClick.emit(r))})("deleteClick",function(){f(e);let r=u(2);return h(r.deleteClick.emit())}),o(),a(3,"app-rd-progress-area",10),_("updateProgressClick",function(r){f(e);let l=u(2);return h(l.updateProgressClick.emit(r))}),o(),g(4,"app-rd-description-area",11)(5,"app-rd-logs-area",12)(6,"app-rd-stage-history",13),o(),a(7,"div",14),g(8,"app-rd-base-info",15),o()()}if(i&2){let e=t,n=u(2);s(2),p("item",e)("members",n.members())("stages",n.stages())("busy",n.busy()),s(),p("item",e)("progressList",n.progressList())("members",n.members()),s(),p("projectId",n.projectId())("rdItem",e)("logs",n.logs()),s(),p("logs",n.logs()),s(),p("entries",n.stageHistory()),s(2),p("rdItem",e)("stages",n.stages())("stageHistory",n.stageHistory())("members",n.members())}}function Dr(i,t){if(i&1&&M(0,Rr,1,0,"nz-spin",6)(1,Pr,9,16,"div",7),i&2){let e,n=u();x(n.loading()&&!n.rdItem()?0:(e=n.rdItem())?1:-1,e)}}var Tt=class i{rdItem=c();loading=c(!1);open=c(!1);busy=c(!1);logs=c([]);members=c([]);stages=c([]);progressList=c([]);stageHistory=c([]);projectId=c("");close=R();actionClick=R();updateProgressClick=R();deleteClick=R();subtitleText=y(()=>this.rdItem()?.rdNo||"");titleText=y(()=>this.rdItem()?.title||"\u7814\u53D1\u9879\u8BE6\u60C5");closeDetaile(){this.close.emit()}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-detail"]],inputs:{rdItem:[1,"rdItem"],loading:[1,"loading"],open:[1,"open"],busy:[1,"busy"],logs:[1,"logs"],members:[1,"members"],stages:[1,"stages"],progressList:[1,"progressList"],stageHistory:[1,"stageHistory"],projectId:[1,"projectId"]},outputs:{close:"close",actionClick:"actionClick",updateProgressClick:"updateProgressClick",deleteClick:"deleteClick"},decls:4,vars:7,consts:[["drawerTitleTpl",""],[3,"nzOnClose","nzVisible","nzClosable","nzMaskClosable","nzWidth","nzWrapClassName","nzMask","nzTitle"],["nzDrawerContent",""],[1,"title-wrap"],[1,"title-main"],[1,"subtitle"],["nzSize","large","nzTip","\u6B63\u5728\u52A0\u8F7D\u7814\u53D1\u9879....",1,"loading"],[1,"detail-wrap"],[1,"left-column"],[3,"actionClick","deleteClick","item","members","stages","busy"],[3,"updateProgressClick","item","progressList","members"],[3,"projectId","rdItem","logs"],[3,"logs"],[3,"entries"],[1,"right-column"],[3,"rdItem","stages","stageHistory","members"]],template:function(e,n){if(e&1){let r=E();a(0,"nz-drawer",1),_("nzOnClose",function(){return f(r),h(n.closeDetaile())}),A(1,Sr,5,2,"ng-template",null,0,q)(3,Dr,2,1,"ng-template",2),o()}if(e&2){let r=U(2);p("nzVisible",n.open())("nzClosable",!0)("nzMaskClosable",!0)("nzWidth",900)("nzWrapClassName","rd-detail-drawer")("nzMask",!1)("nzTitle",r)}},dependencies:[Tn,En,wn,Y,ze,ft,ht,N,J,ot,L,xt,Et,wt,Dt,Rt,Kn,Jn,Pt],styles:[".ant-descriptions-bordered.ant-descriptions-small .ant-descriptions-item-label{min-width:75px}.loading[_ngcontent-%COMP%]{margin-top:40%}.title-wrap[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.title-wrap[_ngcontent-%COMP%] .subtitle[_ngcontent-%COMP%]{margin-right:1rem;font-size:12px;line-height:1.4;padding:3px 8px;border-radius:4px;white-space:nowrap;background:#fafafa;color:#64748b}.wrap-title[_ngcontent-%COMP%]{width:100%;margin-bottom:12px;font-size:18px;font-weight:700;border-bottom:1px solid #bbbbbb}.detail-wrap[_ngcontent-%COMP%]{display:flex;align-items:start;gap:1rem}.detail-wrap[_ngcontent-%COMP%] .left-column[_ngcontent-%COMP%]{width:65%;display:flex;flex-direction:column;gap:1rem}.detail-wrap[_ngcontent-%COMP%] .right-column[_ngcontent-%COMP%]{width:35%;display:flex;flex-direction:column;gap:1rem}.detail-wrap[_ngcontent-%COMP%] .edit-bar[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:end}.detail-wrap[_ngcontent-%COMP%] .edit-bar[_ngcontent-%COMP%] .edit-btn[_ngcontent-%COMP%]{margin-top:10px}.detail-wrap[_ngcontent-%COMP%] .edit-area[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px} .ant-descriptions-item-content, .ant-descriptions-item-label{font-size:.875rem}"]})};var wr=(i,t)=>t.id,Mi=(i,t)=>t.value;function Er(i,t){if(i&1&&g(0,"nz-option",11),i&2){let e=t.$implicit;p("nzLabel",e.name)("nzValue",e.id)("nzDisabled",!e.enabled)}}function Tr(i,t){i&1&&g(0,"nz-icon",20)}function Nr(i,t){if(i&1&&g(0,"nz-option",21),i&2){let e=u().$implicit;p("nzLabel",e.label)("nzValue",e.value)}}function Or(i,t){if(i&1&&M(0,Nr,1,2,"nz-option",21),i&2){let e=t.$implicit;x(e.value!==""?0:-1)}}function Ar(i,t){i&1&&g(0,"nz-icon",22)}function kr(i,t){if(i&1&&g(0,"nz-option",21),i&2){let e=u().$implicit;p("nzLabel",e.label)("nzValue",e.value)}}function Fr(i,t){if(i&1&&M(0,kr,1,2,"nz-option",21),i&2){let e=t.$implicit;x(e.value!==""?0:-1)}}function Br(i,t){i&1&&g(0,"nz-icon",23)}var Nt=class i{fb=S(et);statusOptions=yt;priorityOptions=ci;query=c.required();stages=c([]);viewType=_n();valueChange=R();openCreateDialog=R();constructor(){this.form.valueChanges.pipe(an(500)).subscribe(t=>{this.valueChange.emit(t)})}ngOnInit(){this.form.patchValue(this.query(),{emitEvent:!1})}form=this.fb.group({keyword:this.fb.control(""),stageIds:this.fb.control([]),status:this.fb.control([]),priority:this.fb.control([])});static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-filter-bar"]],inputs:{query:[1,"query"],stages:[1,"stages"],viewType:[1,"viewType"]},outputs:{viewType:"viewTypeChange",valueChange:"valueChange",openCreateDialog:"openCreateDialog"},decls:35,vars:8,consts:[["stageIconTpl",""],["statusIconTpl",""],["priorityIconTpl",""],[1,"toolbar"],["nz-form","",1,"search-form",3,"formGroup"],[1,"search-row"],[1,"search-box"],["nzInputPrefix","","nzType","search","nzTheme","outline"],["nz-input","","type","text","formControlName","keyword","placeholder","\u641C\u7D22 RD \u7F16\u53F7\u3001\u6807\u9898\u6216\u63CF\u8FF0"],[1,"form-item"],["formControlName","stageIds","nzPlaceHolder","\u9009\u62E9\u9636\u6BB5","nzMode","multiple","nzAllowClear","",3,"nzPrefix","nzMaxTagCount"],[3,"nzLabel","nzValue","nzDisabled"],["formControlName","status","nzPlaceHolder","\u9009\u62E9\u72B6\u6001","nzMode","multiple","nzAllowClear","",3,"nzPrefix","nzMaxTagCount"],["formControlName","priority","nzPlaceHolder","\u9009\u62E9\u4F18\u5148\u7EA7","nzMode","multiple","nzAllowClear","",3,"nzPrefix","nzMaxTagCount"],[1,"right-col"],[1,"view-type",3,"ngModelChange","ngModel"],["nz-radio-button","","nzValue","list"],["nzType","unordered-list","nzTheme","outline"],["nz-radio-button","","nzValue","board"],["nzType","book","nzTheme","outline"],["nzType","stock","nzTheme","outline"],[3,"nzLabel","nzValue"],["nzType","thunderbolt","nzTheme","outline"],["nzType","tags","nzTheme","outline"]],template:function(e,n){if(e&1){let r=E();a(0,"div",3)(1,"form",4)(2,"div",5)(3,"nz-form-item",6)(4,"nz-form-control")(5,"nz-input-wrapper"),g(6,"nz-icon",7)(7,"input",8),o()()()(),a(8,"nz-form-item",9)(9,"nz-form-control")(10,"nz-select",10),D(11,Er,1,3,"nz-option",11,wr),o()(),A(13,Tr,1,0,"ng-template",null,0,q),o(),a(15,"nz-form-item",9)(16,"nz-form-control")(17,"nz-select",12),D(18,Or,1,1,null,null,Mi),o()(),A(20,Ar,1,0,"ng-template",null,1,q),o(),a(22,"nz-form-item",9)(23,"nz-form-control")(24,"nz-select",13),D(25,Fr,1,1,null,null,Mi),o()(),A(27,Br,1,0,"ng-template",null,2,q),o()(),a(29,"div",14)(30,"nz-radio-group",15),Qe("ngModelChange",function(m){return f(r),We(n.viewType,m)||(n.viewType=m),h(m)}),a(31,"label",16),g(32,"nz-icon",17),o(),a(33,"label",18),g(34,"nz-icon",19),o()()()()}if(e&2){let r=U(14),l=U(21),m=U(28);s(),p("formGroup",n.form),s(9),p("nzPrefix",r)("nzMaxTagCount",2),s(),w(n.stages()),s(6),p("nzPrefix",l)("nzMaxTagCount",2),s(),w(n.statusOptions),s(6),p("nzPrefix",m)("nzMaxTagCount",2),s(),w(n.priorityOptions),s(5),qe("ngModel",n.viewType)}},dependencies:[ct,On,Nn,ri,ii,oi,B,de,Re,at,st,J,Me,jn,Vn,L,Ze,Ie,me,Xe,pe,tt,Fn,Bn,mt,Qn,Wn,Y,he],styles:[".toolbar[_ngcontent-%COMP%]{border:1px solid #f0f0f0;border-radius:8px;display:flex;justify-content:space-between;padding:16px}.toolbar[_ngcontent-%COMP%] .search-form[_ngcontent-%COMP%]{flex:1;margin-right:50px;display:flex;flex-wrap:wrap;gap:10px}.toolbar[_ngcontent-%COMP%] .search-form[_ngcontent-%COMP%] .form-item[_ngcontent-%COMP%]{width:285px;min-width:285px;margin-bottom:0}.toolbar[_ngcontent-%COMP%] .search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%]{width:100%}.toolbar[_ngcontent-%COMP%] .search-form[_ngcontent-%COMP%] .search-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:380px}.toolbar[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:end;justify-content:end}.toolbar[_ngcontent-%COMP%] .right-col[_ngcontent-%COMP%] .view-type[_ngcontent-%COMP%]{margin-top:auto;display:flex;justify-content:end} .ant-table-thead.ng-star-inserted{position:sticky;top:0;z-index:100}"]})};var Vr=i=>({"task-card-active":i}),jr=i=>({"background-color":i}),Lr=(i,t)=>t.name;function Hr(i,t){if(i&1&&g(0,"nz-avatar",14),i&2){let e=t.$implicit;p("nzText",e.text)("ngStyle",Ae(2,jr,e.color))}}var Ot=class i{rdItem=c.required();stages=c([]);projectMembers=c([]);selected=c(!1);projectId=c(null);selectItem=R();rdItemPreview=y(()=>Ct(this.rdItem().description,this.projectId(),this.rdItem().id,"rd-items")||"\u6682\u65E0\u8BE6\u7EC6\u63CF\u8FF0");itemMembersMap=y(()=>{let t=this.rdItem().memberIds||[];return t.length===0&&this.rdItem().assigneeName?new Map([[this.rdItem().assigneeName,this.rdItem().assigneeName]]):t.length===0&&!this.rdItem().assigneeName?new Map:new Map(this.projectMembers().filter(e=>t.includes(e.userId)).map(e=>[e.userId,e.displayName]))});memberAvatarList=y(()=>{let t=this.itemMembersMap(),e=Array.from(t.values());return e.map((n,r)=>({name:n,text:n?.charAt(0)?.toUpperCase()||"?",color:this.generateBlue(r,e.length)}))});generateBlue(t,e){if(e<=1)return"hsl(210, 70%, 55%)";let n=65;return`hsl(210, 70%, ${n-t/(e-1)*(n-35)}%)`}getPriorityColor(t){return we[t]}getPriorityLabel(t){return De[t]}getStatusLabel(t){return X[t]}getStageName(t){let e=this.stages().find(n=>n.id===t);return e?e.name:"-"}getStagesName(t){return t?this.stages().find(n=>n.id===t)?.name??"":""}memberNamesText(t){let e=this.itemMembersMap();return e.size===0?"":Array.from(e.values()).join("\u3001")}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-item-card"]],inputs:{rdItem:[1,"rdItem"],stages:[1,"stages"],projectMembers:[1,"projectMembers"],selected:[1,"selected"],projectId:[1,"projectId"]},outputs:{selectItem:"selectItem"},decls:30,vars:24,consts:[[1,"task-card",3,"click","ngClass"],[1,"priority-left-bar"],[1,"card-content"],[1,"card-header"],[1,"task-id"],[1,"badge-row"],[1,"tag",3,"nzColor"],[1,"task-title"],[1,"des-text"],[3,"lines","enableToggle"],[1,"progress-section"],["nzSize","small",3,"nzPercent"],[1,"meta-row"],[1,"assignee"],[3,"nzText","ngStyle"],[1,"assignee-name"],[1,"due-date"],["nzType","calendar","nzTheme","outline"]],template:function(e,n){e&1&&(a(0,"div",0),_("click",function(){return n.selectItem.emit(n.rdItem())}),g(1,"div",1),a(2,"div",2)(3,"div",3)(4,"span",4),d(5),o(),a(6,"div",5)(7,"nz-tag",6),d(8),o(),a(9,"nz-tag",6),d(10),o()()(),a(11,"div",7),d(12),o(),a(13,"div",8)(14,"app-ellipsis-text",9),d(15),o()(),a(16,"div",10),g(17,"nz-progress",11),o(),a(18,"div",12)(19,"div",13)(20,"nz-avatar-group"),D(21,Hr,1,4,"nz-avatar",14,Lr),o(),a(23,"span",15)(24,"app-ellipsis-text",9),d(25),o()()(),a(26,"div",16),g(27,"nz-icon",17),d(28),k(29,"date"),o()()()()),e&2&&(p("ngClass",Ae(22,Vr,n.selected())),s(),se("background","#1890ff"),ee("priority-left-bar",n.selected()),s(4),v(n.rdItem().rdNo),s(2),p("nzColor","blue"),s(),v(n.getStageName(n.rdItem().stageId)),s(),p("nzColor",n.getPriorityColor(n.rdItem().priority)),s(),v(n.getPriorityLabel(n.rdItem().priority)),s(2),v(n.rdItem().title),s(2),p("lines",2)("enableToggle",!1),s(),b(" ",n.rdItemPreview().summary," "),s(2),p("nzPercent",n.rdItem().progress),s(4),w(n.memberAvatarList()),s(3),p("lines",1)("enableToggle",!1),s(),b(" ",n.memberNamesText(n.rdItem())," "),s(3),b(" ",F(29,19,n.rdItem().planEndAt,"yyyy-MM-dd")," "))},dependencies:[ce,Pe,H,K,vt,_t,pi,Y,he,bt,N,vn,Ge,W],styles:[".task-card[_ngcontent-%COMP%]{width:100%;background:#fff;border-radius:8px;box-shadow:0 2px 18px #41414107,0 0 0 1px #3f3f3f05,0 4px 6px #00000008;transition:all .25s ease;overflow:hidden;-webkit-backdrop-filter:blur(0px);backdrop-filter:blur(0px);cursor:pointer}.task-card[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 12px 32px -12px #00000026,0 0 0 1px #00000008}.task-card-active[_ngcontent-%COMP%]{transform:translateY(2px);box-shadow:0 4px 12px -4px #00000026,0 0 0 1px #00000008;border:1px solid #188fff75}.priority-left-bar[_ngcontent-%COMP%]{position:absolute;left:0;top:0;bottom:0;width:4px}.card-content[_ngcontent-%COMP%]{padding:10px}.card-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}.task-id[_ngcontent-%COMP%]{font-size:12px;font-weight:500;letter-spacing:.3px;background:#f3f4f8;padding:2px 10px;border-radius:40px;color:#94a3b8;font-family:SF Mono,Fira Code,monospace;background:#f1f5f9;display:inline-block}.task-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600;line-height:1.4;color:#0f172a;letter-spacing:-.2px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word}.des-text[_ngcontent-%COMP%]{font-size:12px;color:#999;margin-top:2px}.progress-section[_ngcontent-%COMP%]{margin-bottom:0}.meta-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px}.assignee[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px}.assignee-name[_ngcontent-%COMP%]{font-size:12px;font-weight:500;color:#1e293b}.due-date[_ngcontent-%COMP%]{margin-left:auto;display:flex;align-items:center;gap:6px;background:#f8fafc;padding:4px 10px;border-radius:40px;font-size:12px;color:#334155;font-weight:500}.footer-note[_ngcontent-%COMP%]{font-size:11px;color:#94a3b8;display:flex;justify-content:flex-end;margin-top:8px}@media (max-width: 480px){.demo-grid[_ngcontent-%COMP%]{gap:16px}.task-card[_ngcontent-%COMP%]{width:100%;max-width:380px}}[_nghost-%COMP%] .progress-section{margin:0}"]})};var Ri=(i,t)=>t.id;function $r(i,t){if(i&1){let e=E();a(0,"app-rd-item-card",4),_("selectItem",function(r){f(e);let l=u(3);return h(l.select(r))}),o()}if(i&2){let e,n=t.$implicit,r=u(3);p("rdItem",n)("stages",r.stages())("selected",((e=r.selectedItem())==null?null:e.id)===n.id)("projectId",r.projectId())("projectMembers",r.members())}}function Ur(i,t){i&1&&g(0,"nz-empty")}function qr(i,t){if(i&1&&(a(0,"div",5)(1,"span"),d(2),o(),g(3,"nz-badge",6),o()),i&2){let e,n=u().$implicit,r=u(2);s(2),v(r.getStagesName(n.id)),s(),p("nzColor","#eee")("nzCount",((e=r.itemGroupByStages().get(n.id))==null?null:e.length)??0)}}function Wr(i,t){if(i&1&&(a(0,"nz-card",2),D(1,$r,1,5,"app-rd-item-card",3,Ri,!1,Ur,1,0,"nz-empty"),o(),A(4,qr,4,3,"ng-template",null,0,q)),i&2){let e=t.$implicit,n=U(5),r=u(2);p("nzTitle",n),s(),w(r.itemGroupByStages().get(e.id))}}function Qr(i,t){if(i&1&&D(0,Wr,6,2,null,null,Ri),i&2){let e=u();w(e.stages())}}var Si={critical:4,high:3,medium:2,low:1},At=class i{rdItems=c([]);stages=c([]);selectedItem=c(null);projectId=c(null);members=c([]);selectItem=R();itemGroupByStages=y(()=>{let t=new Map;for(let e of this.rdItems()){let n=e.stageId;n&&(t.has(n)||t.set(n,[]),t.get(n).push(e))}for(let e of t.values())e.sort((n,r)=>Si[r.priority]-Si[n.priority]);return t});select(t){this.selectItem.emit(t)}getStagesName(t){return t?this.stages().find(n=>n.id===t)?.name??"":""}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-list-board"]],inputs:{rdItems:[1,"rdItems"],stages:[1,"stages"],selectedItem:[1,"selectedItem"],projectId:[1,"projectId"],members:[1,"members"]},outputs:{selectItem:"selectItem"},decls:2,vars:1,consts:[["cardTitleTpl",""],[1,"cards-list"],[1,"items-card",3,"nzTitle"],[3,"rdItem","stages","selected","projectId","projectMembers"],[3,"selectItem","rdItem","stages","selected","projectId","projectMembers"],[1,"card-title"],["nzStandalone","","nzShowZero","",3,"nzColor","nzCount"]],template:function(e,n){e&1&&(a(0,"div",1),M(1,Qr,2,0),o()),e&2&&(s(),x(n.rdItems().length>0?1:-1))},dependencies:[ze,Dn,lt,Un,H,Ot,ot,$n],styles:[".cards-list[_ngcontent-%COMP%]{width:100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.cards-list[_ngcontent-%COMP%] .items-card[_ngcontent-%COMP%]{flex-grow:1;overflow:hidden}.cards-list[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%]{width:100%;display:flex;align-items:center}.cards-list[_ngcontent-%COMP%] .card-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-right:auto}.rd-title[_ngcontent-%COMP%]{color:#1677ff;font-weight:500;cursor:pointer}[_nghost-%COMP%] .ant-card-head{height:48px;padding:0 12px}[_nghost-%COMP%] .ant-card-head-title{padding:10px 0}[_nghost-%COMP%] .ant-card-body{display:flex;flex-direction:column;gap:10px;overflow:auto;padding:0 12px}[_nghost-%COMP%] .ant-card-bordered{border:1px solid #e7e7e7;border-radius:8px}"]})};var Gr=(i,t)=>({width:i,height:t});function Yr(i,t){if(i&1&&(a(0,"div",3),g(1,"img",4),o()),i&2){let e=u();se("left",e.hoveredPreview().left,"px")("top",e.hoveredPreview().top,"px"),s(),p("src",e.hoveredPreview().src,Yt)("alt",e.hoveredPreview().alt)}}var kt=class i{width=c("60px");height=c("60px");src=c(null);alt=c("");previewSrc=c(null);previewAlt=c("");hasError=I(!1);hoveredPreview=I(null);showPreview(t){if(!this.previewSrc()||this.hasError()){this.hoveredPreview.set(null);return}let e=this.calcPosition(t);this.hoveredPreview.set(V({src:this.previewSrc(),alt:this.previewAlt()||this.alt()},e))}movePreview(t){this.hoveredPreview()&&this.showPreview(t)}hidePreview(){this.hoveredPreview.set(null)}markError(){this.hasError.set(!0),this.hoveredPreview.set(null)}calcPosition(t){let l=t.clientX+16,m=t.clientY+16;return l+320>window.innerWidth&&(l=t.clientX-320-16),m+200>window.innerHeight&&(m=window.innerHeight-200-12),{left:l,top:m}}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-image-hover-preview"]],inputs:{width:[1,"width"],height:[1,"height"],src:[1,"src"],alt:[1,"alt"],previewSrc:[1,"previewSrc"],previewAlt:[1,"previewAlt"]},decls:3,vars:9,consts:[[1,"item-img",3,"ngStyle"],[3,"error","mouseenter","mousemove","mouseleave","src","alt"],[1,"preview-float",3,"left","top"],[1,"preview-float"],[3,"src","alt"]],template:function(e,n){e&1&&(a(0,"div",0)(1,"img",1),_("error",function(){return n.markError()})("mouseenter",function(l){return n.showPreview(l)})("mousemove",function(l){return n.movePreview(l)})("mouseleave",function(){return n.hidePreview()})("error",function(){return n.markError()}),o()(),M(2,Yr,2,6,"div",2)),e&2&&(se("display",!n.src()||n.hasError()?"none":"block"),p("ngStyle",yn(6,Gr,n.width(),n.height())),s(),p("src",n.src(),Yt)("alt",n.alt()),s(),x(n.hoveredPreview()?2:-1))},dependencies:[N,Ge],styles:[".item-img[_ngcontent-%COMP%]{flex-shrink:0;margin-left:auto;overflow:hidden;border-radius:8px;border:1px solid #f0f0f0}.item-img[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;object-position:center}.preview-float[_ngcontent-%COMP%]{padding:6px;position:fixed;z-index:1000;pointer-events:none;width:320px;height:200px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:6px;overflow:hidden;box-shadow:0 4px 16px #0003}.preview-float[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;max-width:100%;max-height:100%;object-fit:contain}"]})};var Jr=(i,t)=>t.id;function Kr(i,t){if(i&1&&(a(0,"app-ellipsis-text",6)(1,"span",14),d(2),o()()),i&2){let e=t;p("lines",1)("enableToggle",!1),s(),p("nz-tooltip",e),s(),v(e)}}function Xr(i,t){i&1&&(a(0,"span",12),d(1,"\u672A\u6307\u6D3E"),o())}function Zr(i,t){if(i&1){let e=E();a(0,"tr",2),_("click",function(){let r=f(e).$implicit,l=u();return h(l.selectItem.emit(r))}),a(1,"td"),d(2),o(),a(3,"td",3)(4,"div",4)(5,"div",5)(6,"app-ellipsis-text",6)(7,"span",7),d(8),o(),a(9,"span",8),d(10),o()(),a(11,"nz-tag",9),d(12),o(),a(13,"nz-tag",9),d(14),o()(),a(15,"div",10)(16,"app-ellipsis-text",6),d(17),o()()(),g(18,"app-image-hover-preview",11),o(),a(19,"td"),d(20),o(),a(21,"td"),d(22),o(),a(23,"td"),M(24,Kr,3,4,"app-ellipsis-text",6)(25,Xr,2,0,"span",12),o(),a(26,"td"),g(27,"nz-progress",13),o(),a(28,"td"),d(29),k(30,"date"),o()()}if(i&2){let e,n,r=t.$implicit,l=t.$index,m=u();ee("selected",r.id===((e=m.selectedItem())==null?null:e.id)),s(2),v(l+1+m.query().pageSize*(m.query().page-1)),s(4),p("lines",1)("enableToggle",!1),s(2),b("[",r.rdNo,"]"),s(2),b(" ",r.title," "),s(),p("nzColor",m.getStatusColor(r.status)),s(),b(" ",m.getStatusLabel(r.status)," "),s(),p("nzColor",m.getPriorityColor(r.priority)),s(),b(" ",m.getPriorityLabel(r.priority)," "),s(2),p("lines",2)("enableToggle",!1),s(),b(" ",m.previewSummary(r)," "),s(),p("src",m.previewImageUrl(r))("previewSrc",m.previewImageUrl(r)),s(2),v(m.getStagesName(r.stageId)||"-"),s(2),v(r.creatorName||"-"),s(2),x((n=m.memberNamesText(r))?24:25,n),s(3),p("nzPercent",r.progress),s(2),v(F(30,21,r.updatedAt,"MM-dd HH:mm"))}}var Ft=class i{rdItems=c.required();query=c.required();projectId=c(null);selectedItem=c(null);stages=c([]);members=c([]);loading=c(!1);selectItem=R();columns=[{title:"\u5E8F\u53F7",width:"66px"},{title:"\u7814\u53D1\u9879",ellipsis:!0},{title:"\u9636\u6BB5",width:"100px"},{title:"\u521B\u5EFA\u4EBA",width:"100px"},{title:"\u6267\u884C\u4EBA",width:"140px"},{title:"\u8FDB\u5EA6",width:"150px"},{title:"\u66F4\u65B0\u65F6\u95F4",width:"140px"}];previewMap=y(()=>{let t=new Map;for(let e of this.rdItems())t.set(e.id,Ct(e.description,this.projectId(),e.id,"rd-items"));return t});getPriorityColor(t){return we[t]}getPriorityLabel(t){return De[t]}getStatusLabel(t){return X[t]}getStatusColor(t){return ue[t]}getStagesName(t){return t?this.stages().find(n=>n.id===t)?.name??"":""}previewSummary(t){return this.previewMap().get(t.id)?.summary||"\u6682\u65E0\u8BE6\u7EC6\u63CF\u8FF0"}previewImageUrl(t){return this.previewMap().get(t.id)?.imageUrl??null}memberNamesText(t){let e=t.memberIds||[];if(e.length===0&&!t.assigneeName)return"";if(e.length===0&&t.assigneeName)return t.assigneeName;let n=new Map(this.members().map(r=>[r.userId,r.displayName]));return e.map(r=>n.get(r)||r).join("\u3001")}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-list-table"]],inputs:{rdItems:[1,"rdItems"],query:[1,"query"],projectId:[1,"projectId"],selectedItem:[1,"selectedItem"],stages:[1,"stages"],members:[1,"members"],loading:[1,"loading"]},outputs:{selectItem:"selectItem"},decls:3,vars:3,consts:[[3,"columns","loading","data"],[3,"selected"],[3,"click"],[1,"title-col"],[1,"rd-title-wrap"],[1,"title-text"],[3,"lines","enableToggle"],[1,"rd-no"],[1,"rd-title"],[3,"nzColor"],[1,"des-text"],[3,"src","previewSrc"],[1,"no-member"],["nzSize","small",3,"nzPercent"],[1,"rd-member-text",3,"nz-tooltip"]],template:function(e,n){e&1&&(a(0,"app-scrollable-table-list",0),D(1,Zr,31,24,"tr",1,Jr),o()),e&2&&(p("columns",n.columns)("loading",n.loading())("data",n.rdItems()),s(),w(n.rdItems()))},dependencies:[pt,Xn,Zn,B,ce,Pe,H,K,nt,xe,N,bt,kt,fi,W],styles:[".title-col[_ngcontent-%COMP%]{display:flex}.title-col[_ngcontent-%COMP%] .rd-title-wrap[_ngcontent-%COMP%]{margin-right:auto}.title-col[_ngcontent-%COMP%] .title-text[_ngcontent-%COMP%]{display:flex;align-items:center}.title-col[_ngcontent-%COMP%] .rd-title[_ngcontent-%COMP%]{margin-right:8px;font-weight:600;font-size:1rem;cursor:pointer}.title-col[_ngcontent-%COMP%] .rd-no[_ngcontent-%COMP%]{font-weight:600;color:#1890ff}.title-col[_ngcontent-%COMP%] .des-text[_ngcontent-%COMP%]{font-size:12px;color:#999;margin-top:2px}.title-col[_ngcontent-%COMP%] .rd-img-wrap[_ngcontent-%COMP%]{width:100px;margin-left:auto}"]})};var Bt=class i{apiClient=S(it);projectContext=S(rt);async rdPostReqWithPK(t){let e=this.projectContext.currentProjectId();return this.apiClient.hubRequestWithPersonalToken({projectId:e,method:"POST",path:`/rd-items/${t.rdId}/${t.action}`,payload:t.payload})}async rdDeleteReqWithPK(t){let e=this.projectContext.currentProjectId();return this.apiClient.hubRequestWithPersonalToken({projectId:e,method:"DELETE",path:`/rd-items/${t.rdId}`,payload:t.payload})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})};var Vt=class i{apiClient=S(it);rdTokenApi=S(Bt);async delete(t,e){return await this.rdTokenApi.rdDeleteReqWithPK({rdId:e,payload:{}})}async close(t,e,n){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"close",payload:{summary:n}})}async accept(t,e){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"accept",payload:{}})}async resolve(t,e,n){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"complete",payload:{summary:n}})}async resume(t,e){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"resume",payload:{}})}async block(t,e,n){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"block",payload:n})}async start(t,e){return await this.rdTokenApi.rdPostReqWithPK({action:"start",rdId:e,payload:{}})}async updateProgress(t,e){return await this.rdTokenApi.rdPostReqWithPK({rdId:t,action:"progress",payload:e})}async advanceStage(t,e){}async update(t,e,n){return await this.rdTokenApi.rdPostReqWithPK({rdId:e,action:"update",payload:V({},n)})}async getRdItemsList(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:"/rd-items",query:V({},e)})}async getRdItem(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:`/rd-items/${e}`})}async getRdStages(t){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:"/rd-stages"})}async getRdItemLogs(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:`/rd-items/${e}/logs`})}async getRdProgress(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:`/rd-items/${e}/progress`})}async getRdStageHistory(t,e){return await this.apiClient.hubRequestWithPrjId({projectId:t,path:`/rd-items/${e}/stage-history`})}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})};var jt=class i{rdApi=S(Vt);projectContextStore=S(rt);projectId=y(()=>this.projectContextStore.currentProjectId());rdItemsPageListState=I([]);rdItemsCountState=I(0);currentRdItemState=I(null);currentRdLogsState=I([]);currentRdProgressState=I([]);currentRdStageHistoryState=I([]);stagesState=I([]);projectMembersState=this.projectContextStore.currentProjectMembers;queryState=I({page:1,pageSize:20,stageId:"",status:[],type:[],priority:[],assigneeId:"",keyword:""});busyState=I(!1);loadingState=I(!1);currentRdLoadingState=I(!1);query=y(()=>this.queryState());currentRdItem=y(()=>this.currentRdItemState());currentRdLogs=y(()=>this.currentRdLogsState());currentRdProgress=y(()=>this.currentRdProgressState());currentRdStageHistory=y(()=>this.currentRdStageHistoryState());stages=y(()=>this.stagesState());rdItemsCount=y(()=>this.rdItemsCountState());rdItemsPageList=y(()=>this.rdItemsPageListState());projectMembers=y(()=>this.projectMembersState());busy=y(()=>this.busyState());rdItemsLoading=y(()=>this.loadingState());currentRdLoading=y(()=>this.currentRdLoadingState());initialize(){try{let t=this.projectId();if(!t)return;Promise.all([this.loadStages(),this.loadRdItems(),this.projectContextStore.loadProjectMembers(t)])}catch{}}async loadRdItems(){try{let t=this.projectId();if(!t)return;this.loadingState.set(!0);let e=await this.rdApi.getRdItemsList(t,this.query());this.rdItemsPageListState.set(e.items),this.rdItemsCountState.set(e.total),this.loadingState.set(!1)}catch{this.loadingState.set(!1)}}async loadStages(){let t=this.projectId();if(t)try{let e=(await this.rdApi.getRdStages(t)).items;this.stagesState.set(e)}catch{this.stagesState.set([])}}async loadCurrentRdItem(t){let e=this.projectId();if(e){this.currentRdLoadingState.set(!0);try{let n=await this.rdApi.getRdItem(e,t);this.currentRdItemState.set(n);let r=await this.rdApi.getRdItemLogs(e,t);this.currentRdLogsState.set(r.items);let l=await this.rdApi.getRdProgress(e,t),m=await this.rdApi.getRdStageHistory(e,t);this.currentRdProgressState.set(l.items),this.currentRdStageHistoryState.set(m.items),this.currentRdLoadingState.set(!1)}catch{throw this.currentRdLoadingState.set(!1),new Error("load current rd item error")}}}setCurrentRdItem(t){this.currentRdItemState.set(t)}updateQuery(t){this.queryState.update(e=>ge(V(V({},e),t),{page:t.page??e.page??1}))}update(t,e){let n=this.projectId();n&&this.runAction(()=>this.rdApi.update(n,t,e))}start(t){let e=this.projectId();this.runAction(()=>this.rdApi.start(e,t))}block(t,e){this.runAction(()=>this.rdApi.block(this.projectId(),t,e))}resume(t){this.runAction(()=>this.rdApi.resume(this.projectId(),t))}resolve(t){let e=this.projectId();e&&this.runAction(()=>this.rdApi.resolve(e,t))}advanceStage(t,e){}updateProgress(t){let e=this.currentRdItem();e&&this.runAction(()=>this.rdApi.updateProgress(e.id,t))}accept(t){let e=this.projectId();e&&this.runAction(()=>this.rdApi.accept(e,t))}close(t,e){let n=this.projectId();n&&this.runAction(()=>this.rdApi.close(n,t,e))}delete(t){let e=this.projectId();this.busyState.set(!0),qt(this.rdApi.delete(e,t)).subscribe({next:()=>{this.busyState.set(!1);let n=this.rdItemsPageListState();if(!n){this.loadRdItems();return}let r=n.filter(l=>l.id!==t);if(r.length===n.length){this.loadRdItems();return}this.rdItemsCountState.update(l=>l-1),this.rdItemsPageListState.update(l=>r)},error:()=>{this.busyState.set(!1)}})}runAction(t){this.busyState.set(!0),qt(t()).subscribe({next:e=>{this.busyState.set(!1),this.patchOrRefresh(e)},error:()=>{this.busyState.set(!1)}})}patchOrRefresh(t){let e=this.rdItemsPageListState();if(!e){this.loadRdItems();return}let n=e.findIndex(l=>l.id===t.id);if(n<0)return;this.loadCurrentRdItem(t.id);let r=[...e];r[n]=t,this.rdItemsPageListState.set(r)}static \u0275fac=function(e){return new(e||i)};static \u0275prov=ne({token:i,factory:i.\u0275fac,providedIn:"root"})};function eo(i,t){if(i&1&&(a(0,"div")(1,"div",5)(2,"span"),d(3,"\u66F4\u65B0\u6211\u7684\u8FDB\u5EA6"),o(),a(4,"div",6),d(5),o()()()),i&2){let e=u();s(5),b(" ",e.rdItem()?e.rdItem().title:""," ")}}function to(i,t){i&1&&(a(0,"div",15),g(1,"nz-icon",16),d(2," \u4EC5\u5141\u8BB8\u66F4\u65B0\u81EA\u5DF1\u7684\u8FDB\u5EA6"),o())}function no(i,t){if(i&1){let e=E();oe(0),a(1,"div",7)(2,"div",8)(3,"div",9),d(4,"\u6210\u5458"),o(),a(5,"div",10),d(6),o()(),a(7,"div",8)(8,"div",9),d(9,"\u8FDB\u5EA6\u503C"),o(),a(10,"nz-slider",11),_("ngModelChange",function(r){f(e);let l=u();return h(l.progressDraft.set(r))}),o(),a(11,"div",12),d(12),o()(),a(13,"div",8)(14,"div",9),d(15,"\u8FDB\u5EA6\u8BF4\u660E\uFF08\u53EF\u9009\uFF09"),o(),a(16,"textarea",13),_("ngModelChange",function(r){f(e);let l=u();return h(l.note.set(r))}),o()(),g(17,"nz-alert",14),A(18,to,3,0,"ng-template",null,0,q),o(),ae()}if(i&2){let e,n=U(19),r=u();s(6),v(((e=r.progress())==null?null:e.userName)??"_ _"),s(4),p("ngModel",r.progressDraft())("nzMin",0)("nzMax",100),s(2),b("",r.progressDraft(),"%"),s(4),p("ngModel",r.note()),s(),p("nzMessage",n)}}function io(i,t){if(i&1){let e=E();oe(0),a(1,"button",17),_("click",function(){f(e);let r=u();return h(r.cancel.emit())}),d(2,"\u53D6\u6D88"),o(),a(3,"button",18),_("click",function(){f(e);let r=u();return h(r.submitForm())}),d(4," \u4FDD\u5B58\u8FDB\u5EA6 "),o(),ae()}if(i&2){let e=u();s(3),p("nzLoading",e.busy())}}var Lt=class i{open=c(!1);busy=c(!1);progress=c(null);rdItem=c(null);confirm=R();cancel=R();progressDraft=I(0);note=I("");constructor(){le(()=>{this.open()&&(this.progressDraft.set(this.progress()?.progress||0),this.note.set(""))})}submitForm(){this.confirm.emit({progress:this.progressDraft(),note:this.note().trim()})}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd-progress-dialog"]],inputs:{open:[1,"open"],busy:[1,"busy"],progress:[1,"progress"],rdItem:[1,"rdItem"]},outputs:{confirm:"confirm",cancel:"cancel"},decls:4,vars:4,consts:[["alertInfoTemplate",""],[3,"nzOnCancel","nzVisible","nzWidth","nzClosable","nzMaskClosable"],[4,"nzModalTitle"],[4,"nzModalContent"],[4,"nzModalFooter"],[1,"modal-title"],[1,"modal-subtitle"],[1,"progress-form"],[1,"field"],[1,"label"],[1,"value"],[3,"ngModelChange","ngModel","nzMin","nzMax"],[1,"progress-value"],["nz-input","","rows","4","placeholder","\u4F8B\u5982\uFF1A\u5B8C\u6210\u4E86\u6838\u5FC3\u6A21\u5757\u5F00\u53D1\uFF0C\u5F85\u8054\u8C03\u6D4B\u8BD5...",3,"ngModelChange","ngModel"],["nzType","info",3,"nzMessage"],[1,"hint"],["nzType","bulb","nzTheme","fill"],["nz-button","",3,"click"],["nz-button","","nzType","primary",3,"click","nzLoading"]],template:function(e,n){e&1&&(a(0,"nz-modal",1),_("nzOnCancel",function(){return n.cancel.emit()}),A(1,eo,6,1,"div",2)(2,no,20,7,"ng-container",3)(3,io,5,1,"ng-container",4),o()),e&2&&p("nzVisible",n.open())("nzWidth",600)("nzClosable",!0)("nzMaskClosable",!1)},dependencies:[be,Ce,Je,ve,Ke,L,Ie,me,pe,B,_e,de,ye,J,Me,Mt,rn,gt,ut,Y,he],styles:[".modal-title[_ngcontent-%COMP%]{font-size:16px;font-weight:600}.modal-subtitle[_ngcontent-%COMP%]{color:#999;font-size:14px;line-height:20px}.progress-form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}.label[_ngcontent-%COMP%]{font-size:.875rem;color:#8c8c8c}.value[_ngcontent-%COMP%]{font-size:1rem;font-weight:500;color:#262626}.progress-value[_ngcontent-%COMP%]{text-align:center;font-size:28px;font-weight:600;color:#262626;margin-top:8px}textarea[_ngcontent-%COMP%]{border-radius:8px}.hint[_ngcontent-%COMP%]{font-size:12px;color:#8c8c8c} .ant-alert-info{border-radius:8px}"]})};var ro=["class","component"];function oo(i,t){if(i&1){let e=E();a(0,"app-rd-list-table",14),_("selectItem",function(r){f(e);let l=u();return h(l.selectItem(r))}),o()}if(i&2){let e=u();p("rdItems",e.pageRdItems())("query",e.query())("selectedItem",e.currentRdItem())("members",e.members())("stages",e.stages())("projectId",e.currentProjectId())("loading",e.loading())}}function ao(i,t){if(i&1){let e=E();a(0,"app-rd-list-board",15),_("selectItem",function(r){f(e);let l=u();return h(l.selectItem(r))}),o()}if(i&2){let e=u();p("rdItems",e.pageRdItems())("projectId",e.currentProjectId())("selectedItem",e.currentRdItem())("stages",e.stages())("members",e.members())}}function so(i,t){if(i&1&&d(0),i&2){let e=t.$implicit;b("\u5171 ",e," \u6761\u8BB0\u5F55")}}var Ht=class i{rdStore=S(jt);fb=S(et);router=S(bn);route=S(Cn);userStore=S(Se);viewType=I("list");createDialogOpen=I(!1);detailDrawerOpen=I(!1);blockingItem=I(null);blockOpen=I(!1);drawerPlacement=I("right");advanceStageOpen=I(!1);progressUpdateItem=I(null);progressUpdateOpen=I(!1);currentProjectId=y(()=>this.rdStore.projectId()||"");members=this.rdStore.projectMembers;priorities=["\u4F4E","\u4E2D","\u9AD8"];loading=this.rdStore.rdItemsLoading;currentRdLoading=this.rdStore.currentRdLoading;pageRdItems=this.rdStore.rdItemsPageList;currentRdItem=this.rdStore.currentRdItem;currentRdLogs=this.rdStore.currentRdLogs;currentRdProgress=this.rdStore.currentRdProgress;currentRdStageHistory=this.rdStore.currentRdStageHistory;stages=this.rdStore.stages;total=this.rdStore.rdItemsCount;busy=this.rdStore.busy;query=this.rdStore.query;constructor(){this.rdStore.initialize(),this.route.queryParamMap.subscribe(t=>{let e=t.get("detail");if(e){if(this.currentRdItem()?.id===e||this.currentRdLoading()){this.detailDrawerOpen.set(!0);return}this.rdStore.loadCurrentRdItem(e),this.detailDrawerOpen.set(!0)}}),this.userStore.ensureUserLoaded()}onPageChange(t){this.rdStore.updateQuery({page:t}),this.rdStore.loadRdItems()}onPageSizeChange(t){this.rdStore.updateQuery({pageSize:t}),this.rdStore.loadRdItems()}updateQueryByFilter(t){this.rdStore.updateQuery(t),this.rdStore.loadRdItems()}createRd(t){}openCreateDialog(){this.createDialogOpen.set(!0)}async selectItem(t){this.openDetail(t),this.detailDrawerOpen.set(!0);try{await this.rdStore.loadCurrentRdItem(t.id),this.rdStore.setCurrentRdItem(this.rdStore.currentRdItem()??t)}catch{this.rdStore.setCurrentRdItem(t)}}closeDetail(){this.detailDrawerOpen.set(!1),this.rdStore.setCurrentRdItem(null),this.router.navigate([],{queryParams:{}})}handleSelectedAction(t){let e=this.currentRdItem();e&&this.handleAction(e,t)}deleteSelectedItem(){let t=this.currentRdItem();t&&(this.rdStore.delete(t.id),this.closeDetail())}handleAction(t,e){switch(this.openDetail(t),e){case"start":this.rdStore.start(t.id);break;case"block":this.blockingItem.set(t),this.blockOpen.set(!0);break;case"resume":this.rdStore.resume(t.id);break;case"complete":this.rdStore.resolve(t.id);break;case"advance":this.advanceStageOpen.set(!0);break}}openDetail(t){this.router.navigate([],{relativeTo:this.route,queryParams:{detail:t.id},queryParamsHandling:"merge"})}openProgressUpdate(t){if(this.currentRdItem()?.status!=="closed"){if(t.progress===0){this.confirmProgressUpdate({progress:1,note:""});return}this.progressUpdateItem.set(t),this.progressUpdateOpen.set(!0)}}confirmProgressUpdate(t){this.rdStore.updateProgress(t),this.progressUpdateOpen.set(!1),this.progressUpdateItem.set(null)}confirmBlock(t){let e=this.blockingItem();e&&(this.rdStore.block(e.id,{blockerReason:t}),this.closeBlockDialog())}closeBlockDialog(){this.blockOpen.set(!1),this.blockingItem.set(null)}confirmAdvanceStage(t){let e=this.currentRdItem();!e||!t.trim()||(this.rdStore.advanceStage(e.id,{stageId:t.trim()}),this.advanceStageOpen.set(!1))}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=z({type:i,selectors:[["app-rd",8,"component"]],attrs:ro,decls:15,vars:33,consts:[["totalTemplate",""],[3,"title","loading","isFullscreen","isOverflowYAuto"],[1,"rd-content"],[1,"filter-container"],[3,"viewTypeChange","openCreateDialog","valueChange","query","stages","viewType"],[1,"list-content"],[3,"rdItems","query","selectedItem","members","stages","projectId","loading"],[3,"rdItems","projectId","selectedItem","stages","members"],[1,"pagination-bar"],["nzShowSizeChanger","","nzShowQuickJumper","",3,"nzPageIndexChange","nzPageSizeChange","nzPageIndex","nzTotal","nzShowTotal","nzPageSize"],[3,"actionClick","close","updateProgressClick","deleteClick","open","rdItem","progressList","stageHistory","members","projectId","busy","logs","stages","loading"],[3,"cancel","confirm","open","busy","item"],[3,"cancel","confirm","open","busy","item","stages"],[3,"cancel","confirm","open","busy","rdItem","progress"],[3,"selectItem","rdItems","query","selectedItem","members","stages","projectId","loading"],[3,"selectItem","rdItems","projectId","selectedItem","stages","members"]],template:function(e,n){if(e&1){let r=E();a(0,"app-page-layout",1)(1,"div",2)(2,"div",3)(3,"app-rd-filter-bar",4),Qe("viewTypeChange",function(m){return f(r),We(n.viewType,m)||(n.viewType=m),h(m)}),_("openCreateDialog",function(){return f(r),h(n.openCreateDialog())})("valueChange",function(m){return f(r),h(n.updateQueryByFilter(m))}),o()(),a(4,"div",5),M(5,oo,1,7,"app-rd-list-table",6)(6,ao,1,5,"app-rd-list-board",7),o(),a(7,"div",8)(8,"nz-pagination",9),_("nzPageIndexChange",function(m){return f(r),h(n.onPageChange(m))})("nzPageSizeChange",function(m){return f(r),h(n.onPageSizeChange(m))}),o(),A(9,so,1,1,"ng-template",null,0,q),o()(),a(11,"app-rd-detail",10),_("actionClick",function(m){return f(r),h(n.handleSelectedAction(m))})("close",function(){return f(r),h(n.closeDetail())})("updateProgressClick",function(m){return f(r),h(n.openProgressUpdate(m))})("deleteClick",function(){return f(r),h(n.deleteSelectedItem())}),o(),a(12,"app-rd-block-dialog",11),_("cancel",function(){return f(r),h(n.closeBlockDialog())})("confirm",function(m){return f(r),h(n.confirmBlock(m.blockerReason))}),o(),a(13,"app-rd-advance-stage-dialog",12),_("cancel",function(){return f(r),h(n.advanceStageOpen.set(!1))})("confirm",function(m){return f(r),h(n.confirmAdvanceStage(m.stageId))}),o(),a(14,"app-rd-progress-dialog",13),_("cancel",function(){return f(r),h(n.progressUpdateOpen.set(!1))})("confirm",function(m){return f(r),h(n.confirmProgressUpdate(m))}),o()()}if(e&2){let r=U(10);p("title","\u7814\u53D1\u9879")("loading",n.loading())("isFullscreen",!0)("isOverflowYAuto",!1),s(3),p("query",n.query())("stages",n.stages()),qe("viewType",n.viewType),s(2),x(n.viewType()==="list"?5:6),s(3),p("nzPageIndex",n.query().page)("nzTotal",n.total())("nzShowTotal",r)("nzPageSize",n.query().pageSize),s(3),p("open",n.detailDrawerOpen())("rdItem",n.currentRdItem())("progressList",n.currentRdProgress())("stageHistory",n.currentRdStageHistory())("members",n.members())("projectId",n.currentProjectId())("busy",n.busy())("logs",n.currentRdLogs())("stages",n.stages())("loading",n.currentRdLoading()),s(),p("open",n.blockOpen())("busy",n.busy())("item",n.blockingItem()),s(),p("open",n.advanceStageOpen())("busy",n.busy())("item",n.currentRdItem())("stages",n.stages()),s(),p("open",n.progressUpdateOpen())("busy",n.busy())("rdItem",n.currentRdItem())("progress",n.progressUpdateItem())}},dependencies:[Ln,Re,pt,B,J,Y,mt,ct,ze,ce,lt,tt,L,hi,H,Yn,Gn,At,Ft,Tt,It,Lt,zt,Nt],styles:[".rd-content[_ngcontent-%COMP%]{width:100%;min-width:630px;height:100%;padding:16px 48px 0;display:flex;flex-direction:column;align-items:center;gap:8px}.rd-content[_ngcontent-%COMP%] .filter-container[_ngcontent-%COMP%]{width:100%}.rd-content[_ngcontent-%COMP%] .list-content[_ngcontent-%COMP%]{width:100%;min-height:0;flex-grow:1}.rd-content[_ngcontent-%COMP%] .pagination-bar[_ngcontent-%COMP%]{width:100%;padding:12px;display:flex;justify-content:end}"]})};var lo=[{path:"",component:Ht}],$t=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=re({type:i});static \u0275inj=ie({imports:[N,Kt.forChild(lo),Kt]})};var Pi=class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=re({type:i});static \u0275inj=ie({imports:[N,$t]})};export{Pi as RdModule};
|