@yinuo-ngm/server 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/lib/app.js +2 -0
  2. package/lib/plugins/api-client.plugin.d.ts +3 -0
  3. package/lib/plugins/api-client.plugin.js +56 -0
  4. package/lib/plugins/core.plugin.d.ts +0 -6
  5. package/lib/plugins/error-handler.plugin.js +1 -0
  6. package/lib/plugins/routes.plugin.js +2 -10
  7. package/lib/routes/api-client/collection.routes.d.ts +2 -0
  8. package/lib/routes/api-client/collection.routes.js +78 -0
  9. package/lib/routes/api-client/env.routes.d.ts +2 -0
  10. package/lib/routes/api-client/env.routes.js +44 -0
  11. package/lib/routes/api-client/history.routes.d.ts +2 -0
  12. package/lib/routes/api-client/history.routes.js +36 -0
  13. package/lib/routes/api-client/index.d.ts +5 -0
  14. package/lib/routes/api-client/index.js +21 -0
  15. package/lib/routes/api-client/request.routes.d.ts +2 -0
  16. package/lib/routes/api-client/request.routes.js +62 -0
  17. package/lib/routes/api-client/send.routes.d.ts +2 -0
  18. package/lib/routes/api-client/send.routes.js +22 -0
  19. package/lib/routes/index.d.ts +2 -10
  20. package/lib/routes/index.js +18 -10
  21. package/package.json +38 -37
  22. package/www/browser/{chunk-X7DKZB43.js → chunk-2PBA7FNM.js} +2 -2
  23. package/www/browser/chunk-35COW2FA.js +1 -0
  24. package/www/browser/{chunk-IGJYBE5M.js → chunk-3N7T4ZJF.js} +1 -1
  25. package/www/browser/{chunk-6ZXMOHQD.js → chunk-5IUYSJVD.js} +1 -1
  26. package/www/browser/{chunk-CF64VPDQ.js → chunk-5MHC25IS.js} +1 -1
  27. package/www/browser/chunk-7U5ZOE34.js +1 -0
  28. package/www/browser/{chunk-GKOCPXFS.js → chunk-A2SBXP7A.js} +1 -1
  29. package/www/browser/chunk-CJISJEP3.js +1 -0
  30. package/www/browser/chunk-CPA2B3DD.js +1 -0
  31. package/www/browser/{chunk-TN5O5PXP.js → chunk-DUC7XBYN.js} +1 -1
  32. package/www/browser/{chunk-UIDFNBD4.js → chunk-DV7BEQJD.js} +1 -1
  33. package/www/browser/{chunk-ZGEEPU7F.js → chunk-EAYGWAZB.js} +1 -1
  34. package/www/browser/{chunk-GNFBCMLE.js → chunk-EC33AXSR.js} +1 -1
  35. package/www/browser/{chunk-K6ZRTM2Q.js → chunk-FL6BUQ4M.js} +1 -1
  36. package/www/browser/{chunk-A6CKMRBS.js → chunk-FPDGZ3ZC.js} +1 -1
  37. package/www/browser/{chunk-ECWYTW7Q.js → chunk-IXHH6ENJ.js} +1 -1
  38. package/www/browser/chunk-KKLLU6U7.js +3 -0
  39. package/www/browser/chunk-MN4WB67T.js +1 -0
  40. package/www/browser/{chunk-ZJKBRM7K.js → chunk-POZS3PD3.js} +1 -1
  41. package/www/browser/{chunk-J43J3F2V.js → chunk-PTMJ422K.js} +6 -6
  42. package/www/browser/{chunk-HT3VTKOZ.js → chunk-PYGKDDJK.js} +1 -1
  43. package/www/browser/{chunk-34QRY4VA.js → chunk-ROB7EMN5.js} +13 -13
  44. package/www/browser/chunk-TLFV3T3W.js +1 -0
  45. package/www/browser/chunk-U7FBNFSB.js +1 -0
  46. package/www/browser/chunk-UWKUE7CZ.js +11 -0
  47. package/www/browser/{chunk-R7E5ZK2M.js → chunk-V6LX42JA.js} +1 -1
  48. package/www/browser/dark.css +1 -1
  49. package/www/browser/default.css +1 -1
  50. package/www/browser/index.html +1 -1
  51. package/www/browser/main-IIW5QQA5.js +29 -0
  52. package/www/browser/chunk-5RKAWOOJ.js +0 -1
  53. package/www/browser/chunk-ACZLOZZH.js +0 -1
  54. package/www/browser/chunk-C3KAVW4L.js +0 -1
  55. package/www/browser/chunk-CKWTUTVS.js +0 -1
  56. package/www/browser/chunk-QC33YQSO.js +0 -11
  57. package/www/browser/chunk-U76AMP2X.js +0 -3
  58. package/www/browser/main-F763G7F7.js +0 -29
@@ -0,0 +1,3 @@
1
+ import{a as fi,b as gi,c as Ci,d as _i,e as zi}from"./chunk-IXHH6ENJ.js";import{a as ci,b as mi,c as di,d as ui}from"./chunk-MN4WB67T.js";import{a as $n,b as Un,c as qn}from"./chunk-EC33AXSR.js";import{a as Mt,b as xt,c as Le}from"./chunk-CJISJEP3.js";import{b as ai,d as pi}from"./chunk-35COW2FA.js";import"./chunk-SIVPP74B.js";import{a as si,b as li}from"./chunk-POZS3PD3.js";import{a as yt,b as $e}from"./chunk-3N7T4ZJF.js";import"./chunk-HZ73CM45.js";import{a as se,b as G,c as ei,d as ti}from"./chunk-5MHC25IS.js";import{a as Pt,c as St,d as ni,e as ii,f as vt}from"./chunk-DUC7XBYN.js";import{a as tn,b as le,c as Q,d as pe,f as Yn,g as Jn}from"./chunk-ROB7EMN5.js";import{b as Kn,c as oi,d as ri}from"./chunk-A2SBXP7A.js";import"./chunk-SNCDDYQR.js";import{B as Me,C as _t,D as Re,E as zt,F as ht,H as Ge,I as xe,h as Xn,k as ft,v as gt,w as Ct,x as We}from"./chunk-FPDGZ3ZC.js";import{Ab as me,Bb as Ae,Cb as Y,Fb as Se,G as Rn,H as Pe,Hb as ve,M as w,N as y,O as mt,P as dt,T as Gn,U as Ln,V as F,W as ae,Y as W,Z as j,f as en,h as An,i as pt,jb as ce,lb as Z,mb as Qn,ob as Zn,pb as H,qb as Hn,vb as I,w as Wn,x as ct,yb as ut,z as be}from"./chunk-PTMJ422K.js";import"./chunk-HFZLJHYR.js";import{B as Ke,d as Ve,f as Vn,i as x,y as lt}from"./chunk-53YRDYLS.js";import{$b as oe,A as Ht,Ca as He,Dc as O,Eb as S,Ec as Be,Fb as ze,Fc as he,Gc as st,Ha as L,Hc as Tn,Ic as p,Jc as N,Kb as T,Kc as re,L as gn,M as Qe,Mc as b,Nc as D,Oa as _e,Oc as E,Pc as wn,Q as Cn,Qc as bn,Rc as Dn,Tb as Ie,U as _n,Vb as h,Vc as En,W as zn,Wc as Je,Xb as P,Yb as at,Yc as Nn,Zb as Mn,Zc as jn,_b as ie,_c as In,a as K,ac as u,ad as A,b as Qt,bc as r,c as un,ca as hn,cc as a,da as Pn,dc as c,ea as Yt,f as Zt,fd as $,g as ot,gd as On,hc as de,ic as ue,jc as Xt,kc as M,l as je,ma as Sn,mb as s,na as Ce,pd as Fn,qc as g,r as ge,ra as f,rb as V,rd as Xe,s as R,sb as vn,tc as m,u as fn,uc as xn,vb as Jt,vc as yn,vd as Bn,wc as kn,wd as Kt,xa as C,xc as Ye,ya as _,yb as rt,yc as Oe,z as qe,za as Ze,zc as Fe}from"./chunk-SJG2JCPL.js";var bi=t=>({$implicit:t});function Di(t,i){if(t&1&&c(0,"nz-icon",3),t&2){let e=m(3);u("nzType",e.icon)}}function Ei(t,i){if(t&1&&(de(0),p(1),ue()),t&2){let e=i.$implicit,n=m(4);s(),re(" ",e(n.nzPercent)," ")}}function Ni(t,i){if(t&1&&T(0,Ei,2,1,"ng-container",4),t&2){let e=m(3);u("nzStringTemplateOutlet",e.formatter)("nzStringTemplateOutletContext",Je(2,bi,e.nzPercent))}}function ji(t,i){if(t&1&&(r(0,"span",2),h(1,Di,1,1,"nz-icon",3)(2,Ni,1,4,"ng-container"),a()),t&2){let e=m(2);s(),P((e.status==="exception"||e.status==="success")&&!e.nzFormat?1:2)}}function Ii(t,i){if(t&1&&h(0,ji,3,1,"span",2),t&2){let e=m();P(e.nzShowInfo?0:-1)}}function Oi(t,i){if(t&1&&c(0,"div",8),t&2){let e=i.$implicit;st(e)}}function Fi(t,i){}function Bi(t,i){if(t&1&&(r(0,"div",5),ie(1,Oi,1,2,"div",6,at),T(3,Fi,0,0,"ng-template",7),a()),t&2){let e=m(2),n=O(1);s(),oe(e.steps),s(2),u("ngTemplateOutlet",n)}}function Vi(t,i){if(t&1&&c(0,"div",13),t&2){let e=m(3);Be("width",e.nzSuccessPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("height",e.strokeWidth,"px")}}function Ai(t,i){}function Wi(t,i){if(t&1&&(r(0,"div",9)(1,"div",10),c(2,"div",11),h(3,Vi,1,6,"div",12),a()(),T(4,Ai,0,0,"ng-template",7)),t&2){let e=m(2),n=O(1);s(2),Be("width",e.nzPercent,"%")("border-radius",e.nzStrokeLinecap==="round"?"100px":"0")("background",e.isGradient?null:e.nzStrokeColor)("background-image",e.isGradient?e.lineGradient:null)("height",e.strokeWidth,"px"),s(),P(e.nzSuccessPercent||e.nzSuccessPercent===0?3:-1),s(),u("ngTemplateOutlet",n)}}function Ri(t,i){if(t&1&&(r(0,"div"),h(1,Bi,4,1,"div",5)(2,Wi,5,12),a()),t&2){let e=m();s(),P(e.isSteps?1:2)}}function Gi(t,i){if(t&1&&(Ze(),c(0,"stop")),t&2){let e=i.$implicit;Ie("offset",e.offset)("stop-color",e.color)}}function Li(t,i){if(t&1&&(Ze(),r(0,"defs")(1,"linearGradient",17),ie(2,Gi,1,2,":svg:stop",null,at),a()()),t&2){let e=m(2);s(),u("id","gradient-"+e.gradientId),s(),oe(e.circleGradient)}}function $i(t,i){if(t&1&&(Ze(),c(0,"path",18)),t&2){let e=i.$implicit,n=m(2);st(e.strokePathStyle),Ie("d",n.pathString)("stroke-linecap",n.nzStrokeLinecap)("stroke",e.stroke)("stroke-width",n.nzPercent?n.strokeWidth:0)}}function Ui(t,i){}function qi(t,i){if(t&1&&(r(0,"div",10),Ze(),r(1,"svg",14),h(2,Li,4,1,":svg:defs"),c(3,"path",15),ie(4,$i,1,6,":svg:path",16,at),a(),T(6,Ui,0,0,"ng-template",7),a()),t&2){let e=m(),n=O(1);Be("width",e.nzWidth,"px")("height",e.nzWidth,"px")("font-size",e.nzWidth*.15+6,"px"),he("ant-progress-circle-gradient",e.isGradient),s(2),P(e.isGradient?2:-1),s(),st(e.trailPathStyle),Ie("stroke-width",e.strokeWidth)("d",e.pathString),s(),oe(e.progressCirclePath),s(2),u("ngTemplateOutlet",n)}}function Qi(t){return+t.replace("%","")}var Pi=t=>{let i=[];return Object.keys(t).forEach(e=>{let n=t[e],o=Qi(e);isNaN(o)||i.push({key:o,value:n})}),i=i.sort((e,n)=>e.key-n.key),i},Zi=t=>Pi(t).map(({key:i,value:e})=>({offset:`${i}%`,color:e})),Hi=t=>{let l=t,{from:i="#1890ff",to:e="#1890ff",direction:n="to right"}=l,o=un(l,["from","to","direction"]);if(Object.keys(o).length!==0){let z=Pi(o).map(({key:X,value:ke})=>`${ke} ${X}%`).join(", ");return`linear-gradient(${n}, ${z})`}return`linear-gradient(${n}, ${i}, ${e})`},Yi=0,hi="progress",Ji=new Map([["success","check"],["exception","close"]]),Xi=new Map([["normal","#108ee9"],["exception","#ff5500"],["success","#87d068"]]),Ki=t=>`${t}%`,nn=(()=>{var ee;let t,i=[],e=[],n,o=[],l=[],z,X=[],ke=[],Ee,fe=[],nt=[],on,rn=[],an=[],sn,ln=[],pn=[],cn,mn=[],dn=[];return ee=class{_nzModuleName=hi;cdr=f(Xe);directionality=f(ct);destroyRef=f(He);nzShowInfo=R(this,i,!0);nzWidth=(R(this,e),132);nzStrokeColor=R(this,o,void 0);nzSize=(R(this,l),R(this,X,"default"));nzFormat=R(this,ke);nzSuccessPercent;nzPercent=0;nzStrokeWidth=R(this,fe,void 0);nzGapDegree=(R(this,nt),R(this,rn,void 0));nzStatus=R(this,an);nzType="line";nzGapPosition=R(this,ln,"top");nzStrokeLinecap=(R(this,pn),R(this,mn,"round"));nzSteps=(R(this,dn),0);steps=[];lineGradient=null;isGradient=!1;isSteps=!1;gradientId=Yi++;progressCirclePath=[];circleGradient;trailPathStyle=null;pathString;icon;dir="ltr";get formatter(){return this.nzFormat||Ki}get status(){return this.nzStatus||this.inferredStatus}get strokeWidth(){return this.nzStrokeWidth||(this.nzType==="line"&&this.nzSize!=="small"?8:6)}get isCircleStyle(){return this.nzType==="circle"||this.nzType==="dashboard"}cachedStatus="normal";inferredStatus="normal";constructor(){Rn(hi,()=>{this.updateIcon(),this.setStrokeColor(),this.getCirclePaths()})}ngOnChanges(k){let{nzSteps:d,nzGapPosition:v,nzStrokeLinecap:te,nzStrokeColor:q,nzGapDegree:Te,nzType:Ne,nzStatus:we,nzPercent:ne,nzSuccessPercent:it,nzStrokeWidth:Ut}=k;we&&(this.cachedStatus=this.nzStatus||this.cachedStatus),(ne||it)&&(parseInt(this.nzPercent.toString(),10)>=100?(en(this.nzSuccessPercent)&&this.nzSuccessPercent>=100||this.nzSuccessPercent===void 0)&&(this.inferredStatus="success"):this.inferredStatus=this.cachedStatus),(we||ne||it||q)&&this.updateIcon(),q&&this.setStrokeColor(),(v||te||Te||Ne||ne||q||q)&&this.getCirclePaths(),(ne||d||Ut)&&(this.isSteps=this.nzSteps>0,this.isSteps&&this.getSteps())}ngOnInit(){this.directionality.change?.pipe(be(this.destroyRef)).subscribe(k=>{this.dir=k,this.cdr.detectChanges()}),this.dir=this.directionality.value}updateIcon(){let k=Ji.get(this.status);this.icon=k?k+(this.isCircleStyle?"-o":"-circle-fill"):""}getSteps(){let k=Math.floor(this.nzSteps*(this.nzPercent/100)),d=this.nzSize==="small"?2:14,v=[];for(let te=0;te<this.nzSteps;te++){let q;te<=k-1&&(q=this.nzStrokeColor);let Te={backgroundColor:`${q}`,width:`${d}px`,height:`${this.strokeWidth}px`};v.push(Te)}this.steps=v}getCirclePaths(){if(!this.isCircleStyle)return;let k=en(this.nzSuccessPercent)?[this.nzSuccessPercent,this.nzPercent]:[this.nzPercent],d=50-this.strokeWidth/2,v=this.nzGapPosition||(this.nzType==="circle"?"top":"bottom"),te=Math.PI*2*d,q=this.nzGapDegree||(this.nzType==="circle"?0:75),Te=0,Ne=-d,we=0,ne=d*-2;switch(v){case"left":Te=-d,Ne=0,we=d*2,ne=0;break;case"right":Te=d,Ne=0,we=d*-2,ne=0;break;case"bottom":Ne=d,ne=d*2;break;default:}this.pathString=`M 50,50 m ${Te},${Ne}
2
+ a ${d},${d} 0 1 1 ${we},${-ne}
3
+ a ${d},${d} 0 1 1 ${-we},${ne}`,this.trailPathStyle={strokeDasharray:`${te-q}px ${te}px`,strokeDashoffset:`-${q/2}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s"},this.progressCirclePath=k.map((it,Ut)=>{let qt=k.length===2&&Ut===0;return{stroke:this.isGradient&&!qt?`url(#gradient-${this.gradientId})`:null,strokePathStyle:{stroke:this.isGradient?null:qt?Xi.get("success"):this.nzStrokeColor,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s",strokeDasharray:`${(it||0)/100*(te-q)}px ${te}px`,strokeDashoffset:`-${q/2}px`}}}).reverse()}setStrokeColor(){let k=this.nzStrokeColor,d=this.isGradient=!!k&&typeof k!="string";d&&!this.isCircleStyle?this.lineGradient=Hi(k):d&&this.isCircleStyle?this.circleGradient=Zi(this.nzStrokeColor):(this.lineGradient=null,this.circleGradient=[])}},(()=>{let k=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;t=[Pe()],n=[Pe()],z=[Pe()],Ee=[Pe()],on=[Pe()],sn=[Pe()],cn=[Pe()],ge(null,null,t,{kind:"field",name:"nzShowInfo",static:!1,private:!1,access:{has:d=>"nzShowInfo"in d,get:d=>d.nzShowInfo,set:(d,v)=>{d.nzShowInfo=v}},metadata:k},i,e),ge(null,null,n,{kind:"field",name:"nzStrokeColor",static:!1,private:!1,access:{has:d=>"nzStrokeColor"in d,get:d=>d.nzStrokeColor,set:(d,v)=>{d.nzStrokeColor=v}},metadata:k},o,l),ge(null,null,z,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:d=>"nzSize"in d,get:d=>d.nzSize,set:(d,v)=>{d.nzSize=v}},metadata:k},X,ke),ge(null,null,Ee,{kind:"field",name:"nzStrokeWidth",static:!1,private:!1,access:{has:d=>"nzStrokeWidth"in d,get:d=>d.nzStrokeWidth,set:(d,v)=>{d.nzStrokeWidth=v}},metadata:k},fe,nt),ge(null,null,on,{kind:"field",name:"nzGapDegree",static:!1,private:!1,access:{has:d=>"nzGapDegree"in d,get:d=>d.nzGapDegree,set:(d,v)=>{d.nzGapDegree=v}},metadata:k},rn,an),ge(null,null,sn,{kind:"field",name:"nzGapPosition",static:!1,private:!1,access:{has:d=>"nzGapPosition"in d,get:d=>d.nzGapPosition,set:(d,v)=>{d.nzGapPosition=v}},metadata:k},ln,pn),ge(null,null,cn,{kind:"field",name:"nzStrokeLinecap",static:!1,private:!1,access:{has:d=>"nzStrokeLinecap"in d,get:d=>d.nzStrokeLinecap,set:(d,v)=>{d.nzStrokeLinecap=v}},metadata:k},mn,dn),k&&Object.defineProperty(ee,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:k})})(),Zt(ee,"\u0275fac",function(d){return new(d||ee)}),Zt(ee,"\u0275cmp",S({type:ee,selectors:[["nz-progress"]],inputs:{nzShowInfo:"nzShowInfo",nzWidth:"nzWidth",nzStrokeColor:"nzStrokeColor",nzSize:"nzSize",nzFormat:"nzFormat",nzSuccessPercent:[2,"nzSuccessPercent","nzSuccessPercent",pt],nzPercent:[2,"nzPercent","nzPercent",Kt],nzStrokeWidth:[2,"nzStrokeWidth","nzStrokeWidth",pt],nzGapDegree:[2,"nzGapDegree","nzGapDegree",pt],nzStatus:"nzStatus",nzType:"nzType",nzGapPosition:"nzGapPosition",nzStrokeLinecap:"nzStrokeLinecap",nzSteps:[2,"nzSteps","nzSteps",Kt]},exportAs:["nzProgress"],features:[_e],decls:5,vars:18,consts:[["progressInfoTemplate",""],[1,"ant-progress-inner",3,"width","height","fontSize","ant-progress-circle-gradient"],[1,"ant-progress-text"],[3,"nzType"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],[1,"ant-progress-steps-outer"],[1,"ant-progress-steps-item",3,"style"],[3,"ngTemplateOutlet"],[1,"ant-progress-steps-item"],[1,"ant-progress-outer"],[1,"ant-progress-inner"],[1,"ant-progress-bg"],[1,"ant-progress-success-bg",3,"width","border-radius","height"],[1,"ant-progress-success-bg"],["viewBox","0 0 100 100",1,"ant-progress-circle"],["stroke","#f3f3f3","fill-opacity","0",1,"ant-progress-circle-trail"],["fill-opacity","0",1,"ant-progress-circle-path",3,"style"],["x1","100%","y1","0%","x2","0%","y2","0%",3,"id"],["fill-opacity","0",1,"ant-progress-circle-path"]],template:function(d,v){d&1&&(T(0,Ii,1,1,"ng-template",null,0,A),r(2,"div"),h(3,Ri,3,1,"div"),h(4,qi,7,14,"div",1),a()),d&2&&(s(2),Tn("ant-progress ant-progress-status-"+v.status),he("ant-progress-line",v.nzType==="line")("ant-progress-small",v.nzSize==="small")("ant-progress-default",v.nzSize==="default")("ant-progress-show-info",v.nzShowInfo)("ant-progress-circle",v.isCircleStyle)("ant-progress-steps",v.isSteps)("ant-progress-rtl",v.dir==="rtl"),s(),P(v.nzType==="line"?3:-1),s(),P(v.isCircleStyle?4:-1))},dependencies:[y,w,dt,mt,Ve],encapsulation:2,changeDetection:0})),ee})(),Si=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ze({type:t});static \u0275inj=Ce({imports:[nn]})}return t})();var to=["processDotTemplate"],no=["itemContainer"],io=(t,i,e)=>({$implicit:t,status:i,index:e});function oo(t,i){t&1&&c(0,"div",3)}function ro(t,i){if(t&1&&(r(0,"div",11),c(1,"nz-progress",12),a()),t&2){let e=m(2);s(),u("nzPercent",e.nzPercentage)("nzWidth",e.nzSize==="small"?32:40)("nzFormat",e.nullProcessFormat)("nzStrokeWidth",4)}}function ao(t,i){t&1&&(r(0,"span",5),c(1,"nz-icon",13),a())}function so(t,i){t&1&&(r(0,"span",5),c(1,"nz-icon",14),a())}function lo(t,i){if(t&1&&(r(0,"span",5),p(1),a()),t&2){let e=m(2);s(),re(" ",e.index+1," ")}}function po(t,i){if(t&1&&(de(0),c(1,"nz-icon",15),ue()),t&2){let e=i.$implicit;s(),u("nzType",e)}}function co(t,i){if(t&1&&(r(0,"span",5),T(1,po,2,1,"ng-container",8),a()),t&2){let e=m(2);s(),u("nzStringTemplateOutlet",e.nzIcon)}}function mo(t,i){if(t&1&&(h(0,ro,2,4,"div",11),h(1,ao,2,0,"span",5),h(2,so,2,0,"span",5),h(3,lo,2,1,"span",5),h(4,co,2,1,"span",5)),t&2){let e=m();P(e.showProgress?0:-1),s(),P(e.nzStatus==="finish"&&!e.nzIcon?1:-1),s(),P(e.nzStatus==="error"?2:-1),s(),P((e.nzStatus==="process"||e.nzStatus==="wait")&&!e.nzIcon?3:-1),s(),P(e.nzIcon?4:-1)}}function uo(t,i){t&1&&c(0,"span",17)}function fo(t,i){}function go(t,i){if(t&1&&(r(0,"span",5),T(1,uo,1,0,"ng-template",null,1,A)(3,fo,0,0,"ng-template",16),a()),t&2){let e=O(2),n=m();s(3),u("ngTemplateOutlet",n.customProcessTemplate||e)("ngTemplateOutletContext",Nn(2,io,e,n.nzStatus,n.index))}}function Co(t,i){if(t&1&&(de(0),p(1),ue()),t&2){let e=m();s(),N(e.nzTitle)}}function _o(t,i){if(t&1&&(de(0),p(1),ue()),t&2){let e=m(2);s(),N(e.nzSubtitle)}}function zo(t,i){if(t&1&&(r(0,"div",9),T(1,_o,2,1,"ng-container",8),a()),t&2){let e=m();s(),u("nzStringTemplateOutlet",e.nzSubtitle)}}function ho(t,i){if(t&1&&(de(0),p(1),ue()),t&2){let e=m();s(),N(e.nzDescription)}}var Po=["*"],kt=(()=>{class t{cdr=f(Xe);destroyRef=f(He);processDotTemplate;itemContainer;nzTitle;nzSubtitle;nzDescription;nzDisabled=!1;nzPercentage=null;nzSize="default";get nzStatus(){return this._status}set nzStatus(e){this._status=e,this.isCustomStatus=!0}isCustomStatus=!1;_status="wait";get nzIcon(){return this._icon}set nzIcon(e){e instanceof Jt||(this.oldAPIIcon=typeof e=="string"&&e.indexOf("anticon")>-1),this._icon=e}oldAPIIcon=!0;_icon;customProcessTemplate;direction="horizontal";index=0;last=!1;outStatus="process";showProcessDot=!1;clickable=!1;clickOutsideAngular$=new je;nullProcessFormat=()=>null;get showProgress(){return this.nzPercentage!==null&&!this.nzIcon&&this.nzStatus==="process"&&this.nzPercentage>=0&&this.nzPercentage<=100}get currentIndex(){return this._currentIndex}set currentIndex(e){this._currentIndex=e,this.isCustomStatus||(this._status=e>this.index?"finish":e===this.index?this.outStatus||"":"wait")}_currentIndex=0;ngOnInit(){Wn(this.itemContainer.nativeElement,"click").pipe(Qe(()=>this.clickable&&this.currentIndex!==this.index&&!this.nzDisabled),be(this.destroyRef)).subscribe(()=>{this.clickOutsideAngular$.next(this.index)})}enable(){this.nzDisabled=!1,this.cdr.markForCheck()}disable(){this.nzDisabled=!0,this.cdr.markForCheck()}markForCheck(){this.cdr.markForCheck()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["nz-step"]],viewQuery:function(n,o){if(n&1&&(Ye(to,5),Ye(no,7)),n&2){let l;Oe(l=Fe())&&(o.processDotTemplate=l.first),Oe(l=Fe())&&(o.itemContainer=l.first)}},hostAttrs:[1,"ant-steps-item"],hostVars:16,hostBindings:function(n,o){n&2&&he("ant-steps-item-wait",o.nzStatus==="wait")("ant-steps-item-process",o.nzStatus==="process")("ant-steps-item-finish",o.nzStatus==="finish")("ant-steps-item-error",o.nzStatus==="error")("ant-steps-item-active",o.currentIndex===o.index)("ant-steps-item-disabled",o.nzDisabled)("ant-steps-item-custom",!!o.nzIcon)("ant-steps-next-error",o.outStatus==="error"&&o.currentIndex===o.index+1)},inputs:{nzTitle:"nzTitle",nzSubtitle:"nzSubtitle",nzDescription:"nzDescription",nzDisabled:[2,"nzDisabled","nzDisabled",Bn],nzPercentage:"nzPercentage",nzSize:"nzSize",nzStatus:"nzStatus",nzIcon:"nzIcon"},exportAs:["nzStep"],decls:12,vars:8,consts:[["itemContainer",""],["processDotTemplate",""],[1,"ant-steps-item-container",3,"tabindex"],[1,"ant-steps-item-tail"],[1,"ant-steps-item-icon"],[1,"ant-steps-icon"],[1,"ant-steps-item-content"],[1,"ant-steps-item-title"],[4,"nzStringTemplateOutlet"],[1,"ant-steps-item-subtitle"],[1,"ant-steps-item-description"],[1,"ant-steps-progress-icon"],["nzType","circle",3,"nzPercent","nzWidth","nzFormat","nzStrokeWidth"],["nzType","check"],["nzType","close"],[3,"nzType"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"ant-steps-icon-dot"]],template:function(n,o){n&1&&(r(0,"div",2,0),h(2,oo,1,0,"div",3),r(3,"div",4),h(4,mo,5,5),h(5,go,4,6,"span",5),a(),r(6,"div",6)(7,"div",7),T(8,Co,2,1,"ng-container",8),h(9,zo,2,1,"div",9),a(),r(10,"div",10),T(11,ho,2,1,"ng-container",8),a()()()),n&2&&(u("tabindex",o.clickable&&!o.nzDisabled?0:null),Ie("role",o.clickable&&!o.nzDisabled?"button":null),s(2),P(o.last?-1:2),s(2),P(o.showProcessDot?-1:4),s(),P(o.showProcessDot?5:-1),s(3),u("nzStringTemplateOutlet",o.nzTitle),s(),P(o.nzSubtitle?9:-1),s(2),u("nzStringTemplateOutlet",o.nzDescription))},dependencies:[Si,nn,y,w,dt,mt,Ve],encapsulation:2,changeDetection:0})}return t})(),vi=(()=>{class t{static ngAcceptInputType_nzProgressDot;cdr=f(Xe);ngZone=f(vn);directionality=f(ct);destroyRef=f(He);steps;nzCurrent=0;nzDirection="horizontal";nzLabelPlacement="horizontal";nzType="default";nzSize="default";nzStartIndex=0;nzStatus="process";set nzProgressDot(e){e instanceof Jt?(this.showProcessDot=!0,this.customProcessDotTemplate=e):this.showProcessDot=An(e),this.updateChildrenSteps()}nzIndexChange=new V;indexChangeSubscription=ot.EMPTY;showProcessDot=!1;showProgress=!1;customProcessDotTemplate;dir="ltr";ngOnChanges(e){let{nzStartIndex:n,nzDirection:o,nzStatus:l,nzCurrent:z,nzSize:X}=e;(n||o||l||z||X)&&this.updateChildrenSteps()}ngOnInit(){this.directionality.change?.pipe(be(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value,this.updateChildrenSteps()}ngAfterContentInit(){this.steps&&this.steps.changes.pipe(hn(null),be(this.destroyRef)).subscribe(()=>{this.updateHostProgressClass(),this.updateChildrenSteps()})}updateHostProgressClass(){this.steps&&!this.showProcessDot&&(this.showProgress=!!this.steps.toArray().find(e=>e.nzPercentage!==null))}updateChildrenSteps(){if(this.steps){let e=this.steps.length;this.steps.toArray().forEach((n,o)=>{Promise.resolve().then(()=>{n.nzSize=this.nzSize,n.outStatus=this.nzStatus,n.showProcessDot=this.showProcessDot,this.customProcessDotTemplate&&(n.customProcessTemplate=this.customProcessDotTemplate),n.clickable=this.nzIndexChange.observers.length>0,n.direction=this.nzDirection,n.index=o+this.nzStartIndex,n.currentIndex=this.nzCurrent,n.last=e===o+1,n.markForCheck()})}),this.indexChangeSubscription.unsubscribe(),this.indexChangeSubscription=gn(...this.steps.map(n=>n.clickOutsideAngular$)).pipe(be(this.destroyRef)).subscribe(n=>{this.nzIndexChange.observers.length&&this.ngZone.run(()=>this.nzIndexChange.emit(n))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["nz-steps"]],contentQueries:function(n,o,l){if(n&1&&kn(l,kt,4),n&2){let z;Oe(z=Fe())&&(o.steps=z)}},hostAttrs:[1,"ant-steps"],hostVars:18,hostBindings:function(n,o){n&2&&he("ant-steps-horizontal",o.nzDirection==="horizontal")("ant-steps-vertical",o.nzDirection==="vertical")("ant-steps-label-horizontal",o.nzDirection==="horizontal")("ant-steps-label-vertical",(o.showProcessDot||o.nzLabelPlacement==="vertical")&&o.nzDirection==="horizontal")("ant-steps-dot",o.showProcessDot)("ant-steps-small",o.nzSize==="small")("ant-steps-navigation",o.nzType==="navigation")("ant-steps-rtl",o.dir==="rtl")("ant-steps-with-progress",o.showProgress)},inputs:{nzCurrent:"nzCurrent",nzDirection:"nzDirection",nzLabelPlacement:"nzLabelPlacement",nzType:"nzType",nzSize:"nzSize",nzStartIndex:"nzStartIndex",nzStatus:"nzStatus",nzProgressDot:"nzProgressDot"},outputs:{nzIndexChange:"nzIndexChange"},exportAs:["nzSteps"],features:[_e],ngContentSelectors:Po,decls:1,vars:0,template:function(n,o){n&1&&(xn(),yn(0))},encapsulation:2,changeDetection:0})}return t})(),Mi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ze({type:t});static \u0275inj=Ce({imports:[kt]})}return t})();var Mo=()=>({padding:"8px"});function xo(t,i){if(t&1){let e=M();r(0,"button",13),g("click",function(){C(e);let o=m();return _(o.copy())}),c(1,"nz-icon",14),a()}if(t&2){let e=m();u("nz-tooltip",e.copyied?"\u5DF2\u590D\u5236":"\u590D\u5236")}}function yo(t,i){if(t&1&&(r(0,"div",9)(1,"nz-tag",15),p(2),a()()),t&2){let e=m();s(2),re("\u63A8\u8350\uFF1A",e.draft.detected==null?null:e.draft.detected.recommendedScript)}}function ko(t,i){t&1&&(r(0,"div",10),p(1," \u26A0\uFE0F \u8986\u76D6\u5DF2\u5B58\u5728\u76EE\u5F55 "),a())}function To(t,i){if(t&1){let e=M();r(0,"button",16),g("click",function(){C(e);let o=m();return _(o.isDrawerOpen=!o.isDrawerOpen)}),c(1,"nz-icon",17),p(2," \u65E5\u5FD7\u8F93\u51FA "),a()}}function wo(t,i){t&1&&(de(0),c(1,"app-terminal-view"),ue()),t&2&&(s(),Be("height",100,"%"))}var Tt=class t{draft;chunk="";clipboard=f(pi);term;isDrawerOpen=!1;isCreating=Fn(!1);copyied=!1;ngOnChanges(i){i.chunk&&i.chunk.currentValue&&this.term&&this.term.write(this.chunk),i.isCreating&&i.isCreating.currentValue===!0&&(this.isDrawerOpen=!0)}copy(){let i=this.draft.repoUrl||"";this.clipboard.copy(i),this.copyied=!0,setTimeout(()=>{this.copyied=!1},2e3)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-create-summary-aside"]],viewQuery:function(e,n){if(e&1&&Ye(tn,5),e&2){let o;Oe(o=Fe())&&(n.term=o.first)}},inputs:{draft:"draft",chunk:"chunk",isCreating:[1,"isCreating"]},outputs:{isCreating:"isCreatingChange"},features:[_e],decls:44,vars:16,consts:[["logActions",""],["nzTitle","\u6458\u8981","nzSize","small",3,"nzExtra"],[1,"item"],[1,"k"],[1,"v"],[1,"v","mono"],[1,"v",3,"nz-tooltip"],["nz-button","","nzType","text","nzSize","small",3,"nz-tooltip"],[1,"sep"],[1,"tag"],[1,"warn"],["nzTitle","\u65E5\u5FD7","nzPlacement","right",3,"nzOnClose","nzVisible","nzWidth","nzBodyStyle"],[4,"nzDrawerContent"],["nz-button","","nzType","text","nzSize","small",3,"click","nz-tooltip"],["nzType","copy","nzTheme","outline"],["nzColor","blue"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nzType","desktop","nzTheme","outline"]],template:function(e,n){if(e&1){let o=M();r(0,"nz-card",1)(1,"div",2)(2,"span",3),p(3,"\u540D\u79F0"),a(),r(4,"span",4),p(5),a()(),r(6,"div",2)(7,"span",3),p(8,"\u8DEF\u5F84"),a(),r(9,"span",5),p(10),a()(),r(11,"div",2)(12,"span",3),p(13,"\u5305\u7BA1\u7406\u5668"),a(),r(14,"span",4),p(15),a()(),r(16,"div",2)(17,"span",3),p(18,"Git \u8FDC\u7A0B\u4ED3\u5E93"),a(),r(19,"span",6),p(20),a(),h(21,xo,2,1,"button",7),a(),c(22,"div",8),r(23,"div",2)(24,"span",3),p(25,"\u6846\u67B6"),a(),r(26,"span",4),p(27),a()(),r(28,"div",2)(29,"span",3),p(30,"\u811A\u672C\u547D\u4EE4"),a(),r(31,"span",4),p(32),a()(),r(33,"div",2)(34,"span",3),p(35,"Git"),a(),r(36,"span",4),p(37),a()(),h(38,yo,3,1,"div",9),h(39,ko,2,0,"div",10),a(),T(40,To,3,0,"ng-template",null,0,A),r(42,"nz-drawer",11),g("nzOnClose",function(){return C(o),_(n.isDrawerOpen=!1)}),T(43,wo,2,2,"ng-container",12),a()}if(e&2){let o=O(41);u("nzExtra",o),s(5),N(n.draft.name||"-"),s(5),N(n.draft.rootPath||"-"),s(5),N(n.draft.packageManager),s(4),u("nz-tooltip",n.draft.repoUrl||""),s(),N(n.draft.repoUrl||"-"),s(),P(n.draft.repoUrl?21:-1),s(6),N((n.draft.detected==null?null:n.draft.detected.framework)||"-"),s(5),N((n.draft.detected==null?null:n.draft.detected.scriptsCount)??"-"),s(5),N(n.draft.detected!=null&&n.draft.detected.hasGit?"Yes":"No"),s(),P(n.draft.detected!=null&&n.draft.detected.recommendedScript?38:-1),s(),P(n.draft.overwriteIfExists?39:-1),s(3),u("nzVisible",n.isDrawerOpen)("nzWidth",720)("nzBodyStyle",En(15,Mo))}},dependencies:[x,G,se,$e,yt,ve,Se,y,w,j,W,F,tn,qn,Un,$n],styles:[".item[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:10px;padding:6px 0;align-items:center}.k[_ngcontent-%COMP%]{opacity:.7;width:90px;font-size:14px}.v[_ngcontent-%COMP%]{text-align:right;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mono[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;word-break:break-all}.sep[_ngcontent-%COMP%]{height:1px;background:#0000000f;margin:10px 0}.tag[_ngcontent-%COMP%]{margin-top:8px;text-align:right}.warn[_ngcontent-%COMP%]{margin-top:10px;font-size:12px;color:#d46b08}"],changeDetection:0})};function jo(t,i){t&1&&c(0,"nz-empty",6)}function Io(t,i){if(t&1&&(r(0,"nz-tag",17),p(1),jn(2,"titlecase"),a()),t&2){let e=m().$implicit,n=Dn(4);u("nzColor",n==="angular"?"#dd0031":n==="vue"?"#42b883":"#108ee9"),s(),re(" ",In(2,2,e.kind)," ")}}function Oo(t,i){if(t&1&&(r(0,"div",14)(1,"div",15)(2,"div",16),p(3),a(),wn(4),h(5,Io,3,4,"nz-tag",17),a()()),t&2){let e=i.$implicit;u("nzValue",e.path),s(2),u("nz-tooltip",e.path),s(),N(e.path),s();let n=bn(e.kind);s(),P(n?5:-1)}}function Fo(t,i){if(t&1){let e=M();r(0,"nz-radio-group",13),E("ngModelChange",function(o){C(e);let l=m();return D(l.selectedPath,o)||(l.selectedPath=o),_(o)}),ie(1,Oo,6,5,"div",14,Mn),a()}if(t&2){let e=m();b("ngModel",e.selectedPath),s(),oe(e.filtered())}}var bt=class t{constructor(i){this.modalRef=i}data=f(gt);keyword=L("");selectedPath=L(null);ngOnInit(){let{candidates:i,defaultPicked:e}=this.data,n=e&&i.includes(e)?e:i[0]??"";this.selectedPath.set(n?.path??null)}filtered=$(()=>{let i=(this.keyword()||"").trim().toLowerCase(),e=this.data.candidates??[];return i?e.filter(n=>n.path.toLowerCase().includes(i)):e});cancel(){this.modalRef.close(null)}ok(){let i=this.selectedPath();i&&this.modalRef.close({pickedRoot:i})}static \u0275fac=function(e){return new(e||t)(rt(Ct))};static \u0275cmp=S({type:t,selectors:[["app-pick-workspace-modal"]],decls:17,vars:3,consts:[[1,"wrap"],[1,"hint"],[1,"toolbar"],["nz-input","","placeholder","\u8FC7\u6EE4\u8DEF\u5F84\uFF08\u5173\u952E\u5B57\uFF09",3,"ngModelChange","ngModel"],["nzType","search","nzTheme","outline","nzSuffix",""],[1,"list"],["nzNotFoundContent","\u6CA1\u6709\u5339\u914D\u7684\u76EE\u5F55"],["nzSize","large",3,"ngModel"],[1,"actions"],["nz-button","",3,"click"],["nzType","close","nzTheme","outline"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","check","nzTheme","outline"],["nzSize","large",3,"ngModelChange","ngModel"],["nz-radio","",1,"item",3,"nzValue"],[1,"path"],["nzTooltipPlacement","top",1,"value",3,"nz-tooltip"],["nzMode","default",3,"nzColor"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1),p(2," \u68C0\u6D4B\u5230\u8BE5\u4ED3\u5E93\u53EF\u80FD\u5305\u542B\u591A\u4E2A\u524D\u7AEF\u5DE5\u4F5C\u533A\uFF08Angular / Vue \u7B49\uFF09\u3002\u8BF7\u9009\u62E9\u4E00\u4E2A\u76EE\u5F55\u7EE7\u7EED\u5BFC\u5165\uFF1A "),a(),r(3,"div",2)(4,"nz-input-wrapper")(5,"input",3),E("ngModelChange",function(l){return D(n.keyword,l)||(n.keyword=l),l}),a(),c(6,"nz-icon",4),a()(),r(7,"div",5),h(8,jo,1,0,"nz-empty",6)(9,Fo,3,1,"nz-radio-group",7),a(),r(10,"div",8)(11,"button",9),g("click",function(){return n.cancel()}),c(12,"nz-icon",10),p(13," \u53D6\u6D88 "),a(),r(14,"button",11),g("click",function(){return n.ok()}),c(15,"nz-icon",12),p(16," \u9009\u4E2D\u5E76\u7EE7\u7EED "),a()()()),e&2&&(s(5),b("ngModel",n.keyword),s(3),P(n.filtered().length===0?8:9),s(6),u("disabled",!n.selectedPath()))},dependencies:[x,I,ce,Z,H,Me,Y,me,Ae,Le,xt,Mt,j,W,F,ae,y,w,St,Pt,$e,yt,ve,Se,Vn],styles:[".wrap[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.hint[_ngcontent-%COMP%]{opacity:.85}.toolbar[_ngcontent-%COMP%]{margin-top:4px}nz-radio-group[_ngcontent-%COMP%]{width:100%}.list[_ngcontent-%COMP%]{height:240px;overflow:auto;padding:8px;border:var(--app-border-color);border-radius:8px}.item[_ngcontent-%COMP%]{display:flex;gap:8px;padding:12px;border-radius:8px;margin:0;width:100%}.item[_ngcontent-%COMP%]:hover{background-color:var(--app-primary-3)}.item[_ngcontent-%COMP%] .ant-radio+span{display:flex;gap:12px;align-items:center;flex:1 1 auto;width:0;padding:0}.path[_ngcontent-%COMP%]{display:flex;gap:12px;flex:1 1 auto;text-overflow:ellipsis;white-space:nowrap;width:0;overflow:hidden}.path[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;text-overflow:ellipsis;white-space:nowrap;flex:1 1 auto;width:0;overflow:hidden}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}"]})};function Vo(t,i){t&1&&(r(0,"span",4),p(1,"\u8BE5\u8DEF\u5F84\u5DF2\u5B58\u5728"),a())}function Ao(t,i){if(t&1){let e=M();r(0,"input",15),E("ngModelChange",function(o){C(e);let l=m();return D(l.draft.initialCommitMessage,o)||(l.draft.initialCommitMessage=o),_(o)}),a()}if(t&2){let e=m();b("ngModel",e.draft.initialCommitMessage)}}var Nt=class t{draft;draftChange=new V;pathCheck$=new je;pathExists=!1;fsApi=f(Xn);ngOnInit(){this.computeRootPath(),this.pathCheck$.pipe(Cn(200),_n(),Pn(i=>i?this.fsApi.pathExists(i):fn(!1))).subscribe(i=>{this.emit(),this.pathExists=i})}recalcRoot(){this.computeRootPath(),this.pathCheck$.next(this.draft.rootPath)}computeRootPath(){let i=(this.draft.parentDir??"").replace(/[\\/]+$/,""),e=(this.draft.name??"").trim();this.draft.rootPath=i&&e?`${i}/${e}`.replaceAll("\\","/"):i}emit(){this.draftChange.emit(K({},this.draft))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-step-basic"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange"},decls:40,vars:8,consts:[["nzTitle","\u57FA\u7840\u8BBE\u7F6E"],["nz-form","","nzLayout","vertical"],["nz-input","","name","name","placeholder","\u8F93\u5165\u9879\u76EE\u540D",3,"ngModelChange","ngModel"],[1,"hint"],[2,"margin-left","8px","color","#ff4d4f"],["name","pm",3,"ngModelChange","ngModel"],["nzValue","auto","nzLabel","\u9ED8\u8BA4"],["nzValue","npm","nzLabel","npm"],["nzValue","pnpm","nzLabel","pnpm"],["nzValue","yarn","nzLabel","yarn"],[1,"switch-row"],["name","overwrite",3,"ngModelChange","ngModel"],["name","skip",3,"ngModelChange","ngModel"],["name","initGit",3,"ngModelChange","ngModel"],["nz-input","","name","msg","placeholder","\u8986\u76D6\u63D0\u4EA4\u4FE1\u606F(\u9009\u586B)",3,"ngModel"],["nz-input","","name","msg","placeholder","\u8986\u76D6\u63D0\u4EA4\u4FE1\u606F(\u9009\u586B)",3,"ngModelChange","ngModel"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"form",1)(2,"nz-form-item")(3,"nz-form-label"),p(4,"\u9879\u76EE\u6587\u4EF6\u5939"),a(),r(5,"nz-form-control")(6,"input",2),E("ngModelChange",function(l){return D(n.draft.name,l)||(n.draft.name=l),l}),g("ngModelChange",function(){return n.recalcRoot()}),a(),r(7,"div",3),p(8),h(9,Vo,2,0,"span",4),a()()(),r(10,"nz-form-item")(11,"nz-form-label"),p(12,"\u5305\u7BA1\u7406\u5668"),a(),r(13,"nz-form-control")(14,"nz-select",5),E("ngModelChange",function(l){return D(n.draft.packageManager,l)||(n.draft.packageManager=l),l}),c(15,"nz-option",6)(16,"nz-option",7)(17,"nz-option",8)(18,"nz-option",9),a()()(),r(19,"nz-form-item")(20,"nz-form-label"),p(21,"\u66F4\u591A\u9009\u9879"),a(),r(22,"nz-form-control")(23,"div",10)(24,"span"),p(25,"\u82E5\u76EE\u6807\u6587\u4EF6\u5939\u5DF2\u5B58\u5728\u5219\u8986\u76D6"),a(),r(26,"nz-switch",11),E("ngModelChange",function(l){return D(n.draft.overwriteIfExists,l)||(n.draft.overwriteIfExists=l),l}),g("ngModelChange",function(){return n.emit()}),a()(),r(27,"div",10)(28,"span"),p(29,"\u65E0\u65B0\u624B\u6307\u5F15\u7684\u811A\u624B\u67B6\u9879\u76EE"),a(),r(30,"nz-switch",12),E("ngModelChange",function(l){return D(n.draft.skipOnboarding,l)||(n.draft.skipOnboarding=l),l}),a()()()(),r(31,"nz-form-item")(32,"nz-form-label"),p(33,"Git"),a(),r(34,"nz-form-control")(35,"div",10)(36,"span"),p(37,"\u521D\u59CB\u5316 git \u4ED3\u5E93\uFF08\u5EFA\u8BAE\uFF09"),a(),r(38,"nz-switch",13),E("ngModelChange",function(l){return D(n.draft.initGit,l)||(n.draft.initGit=l),l}),a()(),h(39,Ao,1,1,"input",14),a()()()()),e&2&&(s(6),b("ngModel",n.draft.name),s(2),re(" ",n.draft.rootPath," "),s(),P(n.pathExists?9:-1),s(5),b("ngModel",n.draft.packageManager),s(12),b("ngModel",n.draft.overwriteIfExists),s(4),b("ngModel",n.draft.skipOnboarding),s(8),b("ngModel",n.draft.initGit),s(),P(n.draft.initGit?39:-1))},dependencies:[x,I,Hn,ce,Z,Qn,H,Zn,zi,Q,le,gi,fi,_i,Ci,Y,me,j,vt,ni,ii,Re,_t,G,se,ve,y,Me],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}.switch-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-bottom:4px}.switch-row[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}.emit[_ngcontent-%COMP%]{margin-top:8px}"]})};var jt=class t{draft;draftChange=new V;emit(){this.draftChange.emit(K({},this.draft))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-step-config"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange"},decls:12,vars:2,consts:[["nzTitle","\u521B\u5EFA\u540E\u9ED8\u8BA4\u884C\u4E3A"],[1,"row"],[1,"label"],[3,"ngModelChange","ngModel"],[1,"row","col"],["nz-input","","placeholder","\u4F8B\u5982\uFF1Adev / start",3,"ngModelChange","ngModel"],[1,"hint"]],template:function(e,n){e&1&&(r(0,"nz-card",0)(1,"div",1)(2,"div",2),p(3,"\u7F6E\u9876\u6536\u85CF"),a(),r(4,"nz-switch",3),E("ngModelChange",function(l){return D(n.draft.pinFavorite,l)||(n.draft.pinFavorite=l),l}),g("ngModelChange",function(){return n.emit()}),a()(),c(5,"div",4),r(6,"div",4)(7,"div",2),p(8,"\u9ED8\u8BA4\u4EFB\u52A1\uFF08\u53EF\u9009\uFF09"),a(),r(9,"input",5),E("ngModelChange",function(l){return D(n.draft.defaultTaskName,l)||(n.draft.defaultTaskName=l),l}),g("ngModelChange",function(){return n.emit()}),a(),r(10,"div",6),p(11,"\u5EFA\u8BAE\u586B\u8BC6\u522B\u5230\u7684 dev \u6216 start"),a()()()),e&2&&(s(4),b("ngModel",n.draft.pinFavorite),s(5),b("ngModel",n.draft.defaultTaskName))},dependencies:[x,I,ce,Z,H,G,se,Le,Re,_t,Y,me],styles:[".row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:10px 0}.row.col[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:8px}.label[_ngcontent-%COMP%]{font-weight:500}.hint[_ngcontent-%COMP%]{font-size:12px;opacity:.7}"]})};var It=class t{draft;draftChange=new V;emit(){this.draftChange.emit(K({},this.draft))}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-step-features"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange"},decls:1,vars:0,consts:[["nzTitle","\u529F\u80FD\u5F00\u5173\uFF08Project Scope\uFF09"]],template:function(e,n){e&1&&c(0,"nz-card",0)},dependencies:[x,I,G,se,Re],styles:[".row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:10px 0}.label[_ngcontent-%COMP%]{font-weight:500}"]})};var Ot=class t{nzModalData=f(gt);isModalVisible=!1;isSaving=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-git-import-modal-component"]],decls:8,vars:1,consts:[[1,"modal-body"],[1,"label"],["nz-input","","placeholder","\u8BF7\u8F93\u5165Git\u4ED3\u5E93\u5730\u5740","autofocus","",3,"ngModelChange","ngModel"],["nzInputPrefix","","nzType","github","nzTheme","outline"],[1,"hint"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"label",1),p(2,"URL"),a(),r(3,"nz-input-wrapper")(4,"input",2),E("ngModelChange",function(l){return D(n.nzModalData.cloneUrl,l)||(n.nzModalData.cloneUrl=l),l}),a(),c(5,"nz-icon",3),a(),r(6,"div",4),p(7," Git \u4ED3\u5E93\u5730\u5740, \u5982 'username/repo'. \u53EF\u4EE5\u4F7F\u7528\u524D\u7F00\u5982 'gitlab:' \u6216 'bitbucket:'. "),a()()),e&2&&(s(4),b("ngModel",n.nzModalData.cloneUrl))},dependencies:[x,I,ce,Z,H,y,w,Me,Y,me,Ae,ut,vt,j,F],styles:[".hint[_ngcontent-%COMP%]{margin-top:6px;font-size:12px;opacity:.7}"]})};function Wo(t,i){if(t&1){let e=M();r(0,"button",10),g("click",function(){C(e);let o=m();return _(o.requestDetect.emit())}),c(1,"nz-icon",11),a()}}var Ft=class t{draft;draftChange=new V;requestDetect=new V;modal=f(We);emit(){this.draftChange.emit(K({},this.draft))}presetChange(i){if(this.draft.preset=i,i==="git"){this.openImportGitModal();return}else this.draft.repoUrl=void 0,this.emit()}openImportGitModal(){let i=this.modal.create({nzTitle:"\u4ECE Git \u4ED3\u5E93\u5BFC\u5165\u9879\u76EE",nzMaskClosable:!1,nzContent:Ot,nzCentered:!0,nzWidth:"580px",nzClosable:!1,nzData:{cloneUrl:"",isSaving:!1},nzFooter:[{label:"\u53D6\u6D88",type:"default",onClick:()=>{i.close(),this.draft.repoUrl=void 0,this.draft.preset="angular",this.emit()}},{label:"\u5BFC\u5165",type:"primary",onClick:e=>{let n=e.nzModalData.cloneUrl,o=e.nzModalData.isSaving;!n||!n.trim()||o||(e.nzModalData.isSaving=!0,this.draft.repoUrl=n.trim(),e.nzModalData.isSaving=!1,this.emit(),i.close())},disabled:e=>{let n=e?.nzModalData.cloneUrl;return!n||!n.trim()},loading:e=>e?.nzModalData.isSaving===!0}]})}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-step-preset"]],inputs:{draft:"draft"},outputs:{draftChange:"draftChange",requestDetect:"requestDetect"},decls:19,vars:2,consts:[["reloadExtraTpl",""],["nzTitle","\u9009\u62E9\u4E00\u5957\u9884\u8BBE",3,"nzExtra"],["nzSize","large",3,"ngModelChange","ngModel"],["nz-radio","","nzValue","angular"],["for","angular"],[1,"hint"],["nz-radio","","nzValue","vue3"],["for","vue3"],["nz-radio","","nzValue","git"],["for","git"],["nz-button","","nzType","text","nzSize","small",3,"click"],["nzType","reload","nzTheme","outline"]],template:function(e,n){if(e&1){let o=M();r(0,"nz-card",1),T(1,Wo,2,0,"ng-template",null,0,A),r(3,"nz-radio-group",2),E("ngModelChange",function(z){return C(o),D(n.draft.preset,z)||(n.draft.preset=z),_(z)}),g("ngModelChange",function(z){return C(o),_(n.presetChange(z))}),r(4,"div",3)(5,"label",4),p(6,"Angular"),a(),r(7,"div",5),p(8," \u9002\u7528\u4E8E\u4F7F\u7528 Angular \u6846\u67B6\u5F00\u53D1\u7684\u9879\u76EE\uFF0C\u652F\u6301 Angular CLI \u76F8\u5173\u4EFB\u52A1\u548C\u914D\u7F6E\u3002 "),a()(),r(9,"div",6)(10,"label",7),p(11,"Vue 3"),a(),r(12,"div",5),p(13," \u9002\u7528\u4E8E\u4F7F\u7528 Vue 3 \u6846\u67B6\u5F00\u53D1\u7684\u9879\u76EE\uFF0C\u652F\u6301 Vite \u548C Vue CLI \u76F8\u5173\u4EFB\u52A1\u548C\u914D\u7F6E\u3002 "),a()(),r(14,"div",8)(15,"label",9),p(16,"Git\u5BFC\u5165"),a(),r(17,"div",5),p(18," \u4ECE\u73B0\u6709\u7684 Git \u4ED3\u5E93\u5BFC\u5165\u9879\u76EE\uFF0C\u81EA\u52A8\u8BC6\u522B\u9879\u76EE\u7ED3\u6784\u548C\u914D\u7F6E\u3002 "),a()()()()}if(e&2){let o=O(2);u("nzExtra",o),s(3),b("ngModel",n.draft.preset)}},dependencies:[x,I,Z,H,G,se,ai,j,W,F,$e,y,w,Le,xt,Mt],styles:[".kv[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}.k[_ngcontent-%COMP%]{opacity:.7;display:inline-block;width:120px}.opt[_ngcontent-%COMP%]{margin-top:10px}nz-radio-group[_ngcontent-%COMP%]{width:100%}[nz-radio][_ngcontent-%COMP%]{display:block;padding:12px;border-radius:8px;width:100%;margin:0}[nz-radio][_ngcontent-%COMP%]:hover{background-color:var(--app-primary-3)}.hint[_ngcontent-%COMP%]{margin-left:24px;font-size:12px;opacity:.75}"]})};function yi(){return{preset:"angular",name:"",parentDir:"",rootPath:"",packageManager:"auto",overwriteIfExists:!1,skipOnboarding:!0,initGit:!0,initialCommitMessage:"",importScriptsAsTasks:!0,importMakefileTasks:!1,importDockerComposeTasks:!1,generateCommonTasks:!0,pinFavorite:!1,defaultTaskName:"",cliFramework:"angular",cliTool:"@angular/cli",cliArgs:[]}}function Ro(t,i){if(t&1){let e=M();r(0,"app-step-basic",15),g("draftChange",function(o){C(e);let l=m();return _(l.setDraft(o))}),a()}if(t&2){let e=m();u("draft",e.draft())}}function Go(t,i){if(t&1){let e=M();r(0,"app-step-preset",16),g("draftChange",function(o){C(e);let l=m();return _(l.setDraft(o))})("requestDetect",function(){C(e);let o=m();return _(o.detectNow())}),a()}if(t&2){let e=m();u("draft",e.draft())}}function Lo(t,i){if(t&1){let e=M();r(0,"app-step-features",15),g("draftChange",function(o){C(e);let l=m();return _(l.setDraft(o))}),a()}if(t&2){let e=m();u("draft",e.draft())}}function $o(t,i){if(t&1){let e=M();r(0,"app-step-config",15),g("draftChange",function(o){C(e);let l=m();return _(l.setDraft(o))}),a()}if(t&2){let e=m();u("draft",e.draft())}}function Uo(t,i){if(t&1){let e=M();r(0,"button",17),g("click",function(){C(e);let o=m();return _(o.cancel())}),c(1,"nz-icon",18),p(2," \u53D6\u6D88 "),a()}}function qo(t,i){if(t&1){let e=M();r(0,"button",17),g("click",function(){C(e);let o=m();return _(o.prev())}),c(1,"nz-icon",19),p(2," \u4E0A\u4E00\u6B65 "),a()}}function Qo(t,i){if(t&1){let e=M();r(0,"button",20),g("click",function(){C(e);let o=m();return _(o.create())}),c(1,"nz-icon",21),p(2," \u521B\u5EFA\u9879\u76EE "),a()}if(t&2){let e=m();u("disabled",e.creating())}}function Zo(t,i){if(t&1){let e=M();r(0,"button",20),g("click",function(){C(e);let o=m();return _(o.next())}),p(1," \u4E0B\u4E00\u6B65 "),c(2,"nz-icon",22),a()}if(t&2){let e=m();u("disabled",!e.canNext()||!e.canGoNext())}}var Bt=class t{step=L(0);draft=L(yi());creating=L(!1);output=L("");isDrawerOpen=L(!1);fs=f(ft);parentDir=this.fs.currentPath();modalRef=f(Ct);api=f(ht);modal=f(We);notify=f(Ge);taskStream=f(ei);projectState=f(xe);router=f(lt);sub=new ot;ngOnInit(){let i=this.draft(),e=this.parentDir;this.draft.set(Qt(K({},i),{rootPath:"",parentDir:e,name:""}))}detectNow(){let i=this.draft();i.rootPath?.trim()&&this.api.detect(i.rootPath).subscribe(e=>{let n=e.scripts??[],o={framework:e.framework??"unknown",hasPackageJson:!!e.hasPackageJson,scriptsCount:n.length,hasGit:!!e.hasGit,lockFile:e.lockFile??"unknown",recommendedScript:n.includes("dev")?"dev":n.includes("start")?"start":"",hasMakefile:!!e.hasMakefile,hasDockerCompose:!!e.hasDockerCompose},l=n.length>0,z=!!e.hasMakefile,X=!!e.hasDockerCompose;this.draft.set(Qt(K({},i),{detected:o,importScriptsAsTasks:l,importMakefileTasks:z&&i.importMakefileTasks,importDockerComposeTasks:X&&i.importDockerComposeTasks,defaultTaskName:o.recommendedScript||i.defaultTaskName}))})}async create(){let i=this.draft();if(!i.rootPath?.trim()||!i.name?.trim()){this.notify.error("\u8BF7\u5148\u5B8C\u5584\u9879\u76EE\u4FE1\u606F");return}if(this.creating())return;let e="\u786E\u8BA4\u521B\u5EFA\u9879\u76EE\uFF1F",n=`\u8BF7\u786E\u8BA4\u76EE\u6807\u8DEF\u5F84 ${i.rootPath}\uFF0C\u786E\u5B9A\u8981\u521B\u5EFA\u8BE5\u9879\u76EE\u5417\uFF1F`,o="\u786E\u8BA4\u521B\u5EFA",l=!1;i.overwriteIfExists&&(e="\u786E\u8BA4\u8986\u76D6\u5DF2\u5B58\u5728\u7684\u9879\u76EE\uFF1F",n=`\u8BF7\u786E\u8BA4\u76EE\u6807\u8DEF\u5F84 ${i.rootPath}\uFF0C\u521B\u5EFA\u65F6\u4F1A\u8986\u76D6\u539F\u6709\u6570\u636E\uFF0C\u4E14\u4E0D\u53EF\u6062\u590D\uFF0C\u786E\u5B9A\u8981\u7EE7\u7EED\u5417\uFF1F`,o="\u786E\u8BA4\u8986\u76D6",l=!0);let z=this.modal.confirm({nzTitle:e,nzContent:n,nzOkText:o,nzCancelText:"\u53D6\u6D88",nzOkDanger:l,nzCentered:!0,nzOnOk:async()=>{this.doCreate(i),z.close()}})}async doCreate(i){this.creating.set(!0),this.taskStream.ensureConnected();let e=new je;try{let n=i.preset==="git"?this.api.bootstrapByGit(i):this.api.bootstrapByCli(i),{taskId:o}=await qe(n);this.taskStream.subscribeTask(o,3e3),this.sub.add(this.taskStream.output$(o).subscribe(fe=>{let nt=fe.payload.text??"";this.output.set(nt)}));let l=await this.waitForTaskEvent(o,["bootstrapDone","bootstrapFailed","bootstrapNeedPickRoot"],600*1e3,e);if(l.type==="bootstrapDone"){let fe=l.payload;this.notify.success("\u9879\u76EE\u521B\u5EFA\u5B8C\u6210"),this.projectState.getProjects(fe.projectId),this.modalRef.close({ok:!0}),this.router.navigate(["/dashboard"]);return}if(l.type==="bootstrapFailed"){let fe=l.payload;this.notify.error(`\u9879\u76EE\u521B\u5EFA\u5931\u8D25\uFF1A${fe?.reason??"unknown error"}`);return}let X=l.payload?.candidates??[];if(!X.length){this.notify.error("\u9879\u76EE\u5BFC\u5165\u5931\u8D25\uFF1A\u672A\u627E\u5230\u53EF\u5BFC\u5165\u7684\u5DE5\u4F5C\u533A\u76EE\u5F55");return}let ke=await this.pickWorkspaceRootByModal(X);if(!ke){this.modal.info({nzTitle:"\u63D0\u793A",nzContent:"\u60A8\u672A\u9009\u62E9\u4EFB\u4F55\u76EE\u5F55\uFF0C\u9879\u76EE\u5BFC\u5165\u5DF2\u53D6\u6D88\u3002\u53EF\u901A\u8FC7\u201C\u5BFC\u5165\u201D\u529F\u80FD\u91CD\u65B0\u624B\u52A8\u5BFC\u5165\u3002",nzCancelText:null,nzOkText:"\u6211\u77E5\u9053\u4E86",nzOnOk:()=>{this.modalRef.close()}});return}let Ee=await qe(this.api.bootstrapPickRoot({taskId:o,pickedRoot:ke}).pipe(Ht(60*1e3),Yt(e)));if(!Ee.ok){this.notify.error(Ee.reason??"\u9879\u76EE\u5BFC\u5165\u5931\u8D25");return}this.notify.success("\u9879\u76EE\u5BFC\u5165\u5B8C\u6210"),this.projectState.getProjects(Ee.projectId),this.modalRef.close({ok:!0}),this.router.navigate(["/dashboard"])}catch(n){let o=n?.name==="TimeoutError"?"\u521B\u5EFA\u8D85\u65F6\uFF1A\u811A\u624B\u67B6/\u514B\u9686\u53EF\u80FD\u5361\u4F4F\u4E86\uFF0C\u8BF7\u67E5\u770B\u4EFB\u52A1\u65E5\u5FD7":n?.error?.message||n?.message||"\u521B\u5EFA\u5931\u8D25";console.error("\u521B\u5EFA\u9879\u76EE\u5931\u8D25",n),this.notify.error(o)}finally{e.next(),e.complete(),this.creating.set(!1)}}async waitForTaskEvent(i,e,n,o){let l=new Set(e);return await qe(this.taskStream.events$().pipe(Qe(z=>z?.payload?.taskId===i),Qe(z=>l.has(z.type)),zn(),Ht(n),Yt(o)))}setDraft(i){this.draft.set(i)}canNext(){let i=this.step(),e=this.draft();return i===0?!(!e.name?.trim()||!e.parentDir?.trim()||!e.rootPath?.trim()):i===1?!!e.rootPath?.trim():!0}async next(){let i=this.step();if(i===0&&await this.api.checkPathExists(this.draft().rootPath)&&!this.draft().overwriteIfExists){this.notify.error("\u8BE5\u8DEF\u5F84\u4E0D\u53EF\u7528\u6216\u5DF2\u5B58\u5728\u91CD\u590D\u9879\u76EE");return}let e=Math.min(3,i+1);this.step.set(e)}prev(){this.step.set(Math.max(0,this.step()-1))}canGoNext(){let i=this.step();return i===0?!0:i===1?this.isManual():i===2}isManual(){return this.draft().preset==="manual"}canCreateHere(){let i=this.step();return this.isManual()&&i===3||!this.isManual()&&i===1}cancel(){this.modal.confirm({nzTitle:"\u53D6\u6D88\u521B\u5EFA\u9879\u76EE",nzContent:"\u786E\u5B9A\u8981\u53D6\u6D88\u521B\u5EFA\u5417",nzOkDanger:!0,nzOkText:"\u53D6\u6D88\u521B\u5EFA",nzCancelText:"\u4E0D",nzCentered:!0,nzOnOk:()=>{this.modalRef.close()}})}async pickWorkspaceRootByModal(i){let e=this.modal.create({nzTitle:"\u9009\u62E9\u8981\u5BFC\u5165\u7684\u5DE5\u4F5C\u533A\u76EE\u5F55",nzContent:bt,nzData:{candidates:i,defaultPicked:i[0]},nzFooter:null,nzCentered:!0,nzMaskClosable:!1,nzClosable:!0,nzWidth:720});return(await qe(e.afterClose))?.pickedRoot??null}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-create-modal"]],decls:20,vars:9,consts:[["nz-col","","nzSpan","24",1,"modal-container"],[3,"nzCurrent"],["nzTitle","\u8BE6\u60C5"],["nzTitle","\u9884\u8BBE"],["nzTitle","\u529F\u80FD"],["nzTitle","\u914D\u7F6E"],[1,"content"],["nzTip","\u6B63\u5728\u521B\u5EFA\u9879\u76EE...",3,"nzSpinning"],[1,"main"],[3,"draft"],[1,"actions"],["nz-button",""],["nz-button","","nzType","primary",3,"disabled"],[1,"aside"],[3,"isCreatingChange","draft","isCreating","chunk"],[3,"draftChange","draft"],[3,"draftChange","requestDetect","draft"],["nz-button","",3,"click"],["nzType","close","nzTheme","outline"],["nzType","arrow-left","nzTheme","outline"],["nz-button","","nzType","primary",3,"click","disabled"],["nzType","check","nzTheme","outline"],["nzType","arrow-right","nzTheme","outline"]],template:function(e,n){if(e&1&&(r(0,"div",0)(1,"nz-steps",1),c(2,"nz-step",2)(3,"nz-step",3)(4,"nz-step",4)(5,"nz-step",5),a(),r(6,"div",6)(7,"nz-spin",7)(8,"div",8),h(9,Ro,1,1,"app-step-basic",9)(10,Go,1,1,"app-step-preset",9)(11,Lo,1,1,"app-step-features",9)(12,$o,1,1,"app-step-config",9),r(13,"div",10),h(14,Uo,3,0,"button",11),h(15,qo,3,0,"button",11),h(16,Qo,3,1,"button",12)(17,Zo,3,1,"button",12),a()()(),r(18,"div",13)(19,"app-create-summary-aside",14),E("isCreatingChange",function(l){return D(n.creating,l)||(n.creating=l),l}),a()()()()),e&2){let o;s(),u("nzCurrent",n.step()),s(6),u("nzSpinning",n.creating()),s(2),P((o=n.step())===0?9:o===1?10:o===2?11:o===3?12:-1),s(5),P(n.step()===0?14:-1),s(),P(n.step()>0?15:-1),s(),P(n.canCreateHere()?16:17),s(3),u("draft",n.draft()),b("isCreating",n.creating),u("chunk",n.output())}},dependencies:[x,I,Me,G,pe,Q,Mi,vi,kt,j,W,F,ae,Y,y,w,li,si,Nt,Ft,It,jt,Tt],styles:[".content[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 360px;gap:16px;margin-top:16px}.main[_ngcontent-%COMP%]{min-height:420px}.actions[_ngcontent-%COMP%]{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}.aside[_ngcontent-%COMP%]{position:sticky;top:16px;height:fit-content}"]})};var Vt=class t{constructor(i){this.modal=i}goCreate(){let i=this.modal.create({nzTitle:"\u521B\u5EFA\u65B0\u9879\u76EE",nzFooter:null,nzMaskClosable:!1,nzClosable:!1,nzContent:Bt,nzWidth:"1020px",nzCentered:!0}),e=i.getContentComponent();i.afterClose.subscribe(n=>{n?.ok})}static \u0275fac=function(e){return new(e||t)(rt(We))};static \u0275cmp=S({type:t,selectors:[["app-project-create"]],decls:7,vars:0,consts:[["nz-row","",1,"page"],["nz-col","","nzSpan","16","nzOffset","4",1,"explorer-container"],[1,"actions-bar"],["nz-button","","nzType","primary","nzSize","large",3,"click"],["nzType","plus","nzTheme","outline"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1),c(2,"app-fs-explorer"),a(),r(3,"div",2)(4,"button",3),g("click",function(){return n.goCreate()}),c(5,"nz-icon",4),p(6," \u5728\u6B64\u521B\u5EFA\u65B0\u9879\u76EE "),a()()())},dependencies:[x,j,W,F,ae,pe,Q,le,zt,y,w],styles:[".page[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.page[_ngcontent-%COMP%] .explorer-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0}.page[_ngcontent-%COMP%] .actions-bar[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px;display:flex;justify-content:center;align-items:center}"]})};var Ue=class t{fs=f(ft);projectApi=f(ht);projectState=f(xe);active=L(!1);checking=L(!1);result=L(null);canImport=$(()=>this.result()?.ok===!0);warnings=$(()=>this.result()?.warnings??[]);reason=$(()=>this.result()?.reason??"");currentPath=$(()=>this.fs.currentPath()||this.fs.path());_seq=0;notify=f(Ge);constructor(){On(()=>{if(!this.active())return;let i=this.currentPath();i&&this.check(i)})}enter(){this.active.set(!0)}leave(){this.active.set(!1),this.result.set(null)}check(i){let e=++this._seq;this.checking.set(!0),this.result.set(null),this.projectApi.checkImport(i).subscribe({next:n=>{e===this._seq&&this.result.set(n)},error:n=>{e===this._seq&&this.result.set({ok:!1,root:i,reason:n?.message||"check failed"})},complete:()=>{e===this._seq&&this.checking.set(!1)}})}import(i){let e=this.currentPath();if(!e||!this.canImport())return;let n=e.replace(/[\\\/]+$/,"").split(/[\\\/]/).pop()||"New Project";this.projectApi.importByPath({root:e,name:i||n,syncTasks:!0}).subscribe({next:o=>{this.projectState.getProjects(),this.projectState.setCurrentProjectById(o.id),this.check(e),this.notify.success("\u9879\u76EE\u5BFC\u5165\u6210\u529F")}})}static \u0275fac=function(e){return new(e||t)};static \u0275prov=Sn({token:t,factory:t.\u0275fac,providedIn:"root"})};var At=class t{importState=f(Ue);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-import"]],decls:7,vars:1,consts:[["nz-row","",1,"page"],["nz-col","","nzSpan","16","nzOffset","4",1,"explorer-container"],[1,"actions-bar","center"],["nz-button","","nzSize","large","nzType","primary",3,"click","disabled"],["nzType","import","nzTheme","outline"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1),c(2,"app-fs-explorer"),a(),r(3,"div",2)(4,"button",3),g("click",function(){return n.importState.import()}),c(5,"nz-icon",4),p(6," \u5BFC\u5165\u8FD9\u4E2A\u6587\u4EF6\u5939 "),a()()()),e&2&&(s(4),u("disabled",n.importState.checking()||!n.importState.canImport()))},dependencies:[x,I,pe,Q,le,j,W,F,ae,y,w,zt],styles:[".page[_ngcontent-%COMP%]{width:100%;height:100%;display:flex;flex-direction:column}.page[_ngcontent-%COMP%] .explorer-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0}.page[_ngcontent-%COMP%] .actions-bar[_ngcontent-%COMP%]{flex:0 0 auto;padding:16px;display:flex;justify-content:center;align-items:center}"]})};var Ho=(t,i)=>i.spec.id;function Yo(t,i){if(t&1){let e=M();r(0,"div",8)(1,"div",9),g("click",function(){let o=C(e).$implicit,l=m();return _(l.openTask(o))}),r(2,"div",10),c(3,"nz-icon",11),a(),r(4,"div",12)(5,"div",13)(6,"span"),p(7),a()(),r(8,"div",14)(9,"span"),p(10),a()()()(),r(11,"button",15),g("click",function(o){let l=C(e).$implicit,z=m();return o.stopPropagation(),_(z.toggleTask(l))}),c(12,"nz-icon",16),a()()}if(t&2){let e=i.$implicit,n=m();u("nzTooltipTitle",n.getTaskDescription(e)),s(7),N(e.spec.name),s(3),N(n.getTaskDescription(e)),s(2),u("nzType",n.getTaskActionIcon(e))}}var Wt=class t{projectId;projectState=f(xe);router=f(lt);state=f(ti);tasks=$(()=>this.projectId?this.state.rowsViewOf(this.projectId)():[]);async ngOnChanges(){this.projectId&&await this.state.ensureProjectLoaded(this.projectId)}toggleTask(i){i.runtime?.status==="running"?this.state.stopSelected():this.state.startSelected(),this.openTask(i)}async openTask(i){this.state.select(i.spec.id),await this.router.navigate(["/tasks"]),this.projectState.setCurrentProjectById(i.spec.projectId)}getTaskName(i){return i.spec.name||i.spec.id}getTaskDescription(i){let e=i.runtime?.status;return i.runtime?this.computedStatusText(e):i.spec.description||""}getTaskActionIcon(i){let e=i.runtime?.status;return e==="running"||e==="stopping"?"pause-circle":"play-circle"}computedStatusText(i){switch(i){case"running":return"\u8FD0\u884C\u4E2D";case"stopping":return"\u505C\u6B62\u4E2D";case"success":return"\u6210\u529F";case"failed":return"\u9519\u8BEF";case"stopped":return"\u5DF2\u505C\u6B62";default:return"\u7A7A\u95F2"}}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-item-popover"]],inputs:{projectId:"projectId"},features:[_e],decls:11,vars:0,consts:[[1,"dropdown-content"],[1,"pane-toolbar"],[1,"icon"],["nzType","inbox","nzTheme","outline"],[1,"title"],["nz-button","","type","button","nzType","text"],["nzType","close","nzTheme","outline"],[1,"tasks"],["nz-tooltip","","nzTooltipPlacement","right",1,"task-item",3,"nzTooltipTitle"],[1,"item-content",3,"click"],[1,"item-logo"],["nzType","code","nzTheme","outline"],[1,"list-item-info"],[1,"name"],[1,"description"],["nz-button","","nzType","text","type","button",3,"click"],["nzTheme","outline",3,"nzType"]],template:function(e,n){e&1&&(r(0,"div",0)(1,"div",1)(2,"div",2),c(3,"nz-icon",3),a(),r(4,"div",4),p(5,"\u4EFB\u52A1"),a(),r(6,"button",5),c(7,"nz-icon",6),a()(),r(8,"div",7),ie(9,Yo,13,4,"div",8,Ho),a()()),e&2&&(s(9),oe(n.tasks()))},dependencies:[x,y,w,j,W,F,ve,Se,Ke],styles:[".dropdown-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:6px 6px 6px 16px}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:auto 0 0}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{font-size:18px;margin-right:6px}.dropdown-content[_ngcontent-%COMP%] .pane-toolbar[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{flex:100% 1 1;width:0;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%]{width:320px;max-height:360px;overflow:hidden auto}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%]{padding:16px;display:flex;flex-direction:row;align-items:center}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%]:hover{background:#f5f5f5}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex:100% 1 1;width:0;gap:16px;cursor:pointer}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .item-logo[_ngcontent-%COMP%]{font-size:42px;margin-right:16px;flex:auto 0 0;display:inline-flex;align-items:center}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%]{flex:100% 1 1;width:0;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:center}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:auto 0 0}.dropdown-content[_ngcontent-%COMP%] .tasks[_ngcontent-%COMP%] .task-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%] nz-icon[_ngcontent-%COMP%]{font-size:24px}"]})};function Jo(t,i){if(t&1){let e=M();r(0,"button",20),g("click",function(){C(e);let o=m();return _(o.openPageUrl(o.project==null?null:o.project.repoPageUrl))}),c(1,"nz-icon",21),a()}}function Xo(t,i){if(t&1&&c(0,"app-project-item-popover",22),t&2){let e=m();u("projectId",e.project==null?null:e.project.id)}}var Rt=class t{taskRuntime=f(Kn);notify=f(Ge);project=null;open=!1;selectProject=new V;toggleFavorite=new V;editProject=new V;openInEditor=new V;deleteProject=new V;tasksRunningCount=$(()=>{let i=this.project?.id?.trim();return i?this.taskRuntime.runningCountSignal(i)():0});hasTasksRunning=$(()=>this.tasksRunningCount()>0);taskBadgeTip=$(()=>{let i=this.tasksRunningCount();return i>0?`${i} \u4E2A\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C`:"\u4EFB\u52A1"});del(){if(this.hasTasksRunning()){this.notify.warn("\u5F53\u524D\u9879\u76EE\u6709\u4EFB\u52A1\u6B63\u5728\u8FD0\u884C\uFF0C\u8BF7\u5148\u505C\u6B62\u8FD9\u4E9B\u4EFB\u52A1\u540E\u518D\u5220\u9664\u9879\u76EE\u3002");return}this.deleteProject.emit()}openPageUrl(i){i&&window.open(i,"_blank")}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-item"]],inputs:{project:"project",open:"open"},outputs:{selectProject:"selectProject",toggleFavorite:"toggleFavorite",editProject:"editProject",openInEditor:"openInEditor",deleteProject:"deleteProject"},decls:28,vars:10,consts:[["contentTemplate",""],["nz-row","",1,"project-item"],["nz-col","","nzSpan","24",1,"content"],[1,"favorite"],["nz-button","","nzType","primary",3,"click"],["nzType","star",3,"nzTheme"],[1,"info",3,"click"],[1,"list-item-info"],[1,"name"],["nz-popover","","nzPopoverTrigger","click","nzPopoverPlacement","right",1,"task-popover-trigger",3,"click","nzPopoverContent","nzPopoverOverlayClassName"],[3,"nzStatus","nz-tooltip"],[1,"root-path"],[1,"actions"],["nzSize","large"],["nzType","code","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","\u7F16\u8F91",3,"click"],["nzType","edit","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","\u6253\u5F00\u4ED3\u5E93\u5730\u5740"],["nz-button","","nzType","primary","nz-tooltip","\u5220\u9664",3,"click"],["nzType","delete","nzTheme","outline"],["nz-button","","nzType","primary","nz-tooltip","\u6253\u5F00\u4ED3\u5E93\u5730\u5740",3,"click"],["nzType","global","nzTheme","outline"],[3,"projectId"]],template:function(e,n){if(e&1){let o=M();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),g("click",function(z){return C(o),z.stopPropagation(),_(n.toggleFavorite.emit())}),c(4,"nz-icon",5),a()(),r(5,"div",6),g("click",function(){return C(o),_(n.selectProject.emit())}),r(6,"div",7)(7,"div",8)(8,"span"),p(9),a(),r(10,"span",9),g("click",function(z){return C(o),_(z.stopPropagation())}),c(11,"nz-badge",10),a()(),r(12,"div",11)(13,"span"),p(14),a()()()(),r(15,"div",12)(16,"nz-space",13)(17,"button",4),g("click",function(){return C(o),_(n.openInEditor.emit())}),c(18,"nz-icon",14),r(19,"span"),p(20,"\u5728\u7F16\u8F91\u5668\u4E2D\u6253\u5F00"),a()(),r(21,"button",15),g("click",function(){return C(o),_(n.editProject.emit())}),c(22,"nz-icon",16),a(),h(23,Jo,2,0,"button",17),r(24,"button",18),g("click",function(){return C(o),_(n.del())}),c(25,"nz-icon",19),a()()()()(),T(26,Xo,1,1,"ng-template",null,0,A)}if(e&2){let o=O(27);he("open",n.open),s(4),u("nzTheme",n.project!=null&&n.project.isFavorite?"fill":"outline"),s(5),N(n.project==null?null:n.project.name),s(),u("nzPopoverContent",o)("nzPopoverOverlayClassName","project-item-popover"),s(),u("nzStatus",n.hasTasksRunning()?"processing":"default")("nz-tooltip",n.taskBadgeTip()),s(3),N(n.project==null?null:n.project.root),s(9),P(n.project!=null&&n.project.repoPageUrl?23:-1)}},dependencies:[x,I,pe,Q,le,j,W,F,ae,y,w,Jn,Yn,ri,oi,Ln,Gn,Wt,Se],styles:['.project-item[_ngcontent-%COMP%]{border-radius:4px;padding:0;margin:8px 0;transition:all .3s;cursor:pointer}.project-item.open[_ngcontent-%COMP%], .project-item[_ngcontent-%COMP%]:hover{box-shadow:0 4px 12px #0000001a;background:var(--app-primary-3)}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{padding:16px;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto;grid-template-areas:"icon info actions";grid-gap:16px;align-items:center}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .favorite[_ngcontent-%COMP%]{grid-area:icon;display:flex;align-items:center;justify-content:center}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{grid-area:info;-webkit-user-select:none;user-select:none}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:4px}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{flex:auto 0 0}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .task-popover-trigger[_ngcontent-%COMP%]{display:inline-block;margin-left:8px;cursor:pointer}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .name[_ngcontent-%COMP%] .task-popover-trigger[_ngcontent-%COMP%] nz-badge[_ngcontent-%COMP%]{font-size:18px}.project-item[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .list-item-info[_ngcontent-%COMP%] .root-path[_ngcontent-%COMP%]{flex:auto 0 0;opacity:.7;font-size:14px}']})};var ki=t=>({$implicit:t}),Ko=(t,i)=>i.id;function er(t,i){t&1&&Xt(0)}function tr(t,i){if(t&1&&(r(0,"div",6)(1,"h2"),p(2,"\u6536\u85CF\u7684\u9879\u76EE"),a()(),T(3,er,1,0,"ng-container",7)),t&2){let e=m(),n=O(11);s(3),u("ngTemplateOutlet",n)("ngTemplateOutletContext",Je(2,ki,e.projectState.favoriteProjects()))}}function nr(t,i){t&1&&(r(0,"div",6)(1,"h2"),p(2,"\u66F4\u591A\u9879\u76EE"),a()())}function ir(t,i){t&1&&Xt(0)}function or(t,i){t&1&&(r(0,"div",8),c(1,"nz-empty",9),a())}function rr(t,i){if(t&1){let e=M();r(0,"app-project-item",12),g("selectProject",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.selectProject(o))})("toggleFavorite",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.toggleFavorite(o.id))})("openInEditor",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.openInEditor(o.id))})("editProject",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.openEditModal(o))})("deleteProject",function(){let o=C(e).$implicit,l=m(2);return _(l.projectState.deleteProject(o.id))}),a()}if(t&2){let e=i.$implicit,n=m(2);u("project",e)("project",e)("open",n.projectState.isOpen(e))}}function ar(t,i){if(t&1&&(r(0,"div",10),ie(1,rr,1,3,"app-project-item",11,Ko),a()),t&2){let e=i.$implicit;s(),oe(e)}}var Gt=class t{projectState=f(xe);static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-project-list"]],decls:12,vars:8,consts:[["itemsTpl",""],["nz-row","",1,"page"],["nz-col","","nzSpan","16","nzOffset","4",1,"col"],["nz-col","",1,"topbar"],["nzInputPrefix","","nzType","search",1,"search-icon"],["nz-input","","placeholder","\u641C\u7D22\u9879\u76EE",3,"ngModelChange","ngModel"],[1,"header"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"no-projects"],["nzNotFoundImage","simple","nzNotFoundContent","\u6682\u65E0\u9879\u76EE\uFF0C\u5FEB\u53BB\u521B\u5EFA\u6216\u5BFC\u5165\u7B2C\u4E00\u4E2A\u9879\u76EE\u5427\uFF01"],[1,"content"],[3,"project","open"],[3,"selectProject","toggleFavorite","openInEditor","editProject","deleteProject","project","open"]],template:function(e,n){if(e&1){let o=M();r(0,"div",1)(1,"div",2)(2,"div",3)(3,"nz-input-wrapper"),c(4,"nz-icon",4),r(5,"input",5),g("ngModelChange",function(z){return C(o),_(n.projectState.keyword.set(z))}),a()()(),h(6,tr,4,4),h(7,nr,3,0,"div",6),T(8,ir,1,0,"ng-container",7),h(9,or,2,0,"div",8),a(),T(10,ar,3,0,"ng-template",null,0,A),a()}if(e&2){let o=O(11);s(5),u("ngModel",n.projectState.keyword()),s(),P(n.projectState.favoriteProjects().length>0?6:-1),s(),P(n.projectState.favoriteProjects().length>0?7:-1),s(),u("ngTemplateOutlet",o)("ngTemplateOutletContext",Je(6,ki,n.projectState.moreProjects())),s(),P(n.projectState.projects().length===0?9:-1)}},dependencies:[x,Ve,I,ce,Z,H,G,pe,Q,le,Rt,St,Pt,Y,me,Ae,ut,y,w],styles:["[_nghost-%COMP%]{display:block;height:100%;overflow:hidden}.page[_ngcontent-%COMP%]{height:100%;overflow-y:auto}.page[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:center;margin-bottom:12px}.page[_ngcontent-%COMP%] .topbar[_ngcontent-%COMP%] nz-input-wrapper[_ngcontent-%COMP%]{width:25%;min-width:200px}.page[_ngcontent-%COMP%] .col[_ngcontent-%COMP%]{display:flex;flex-direction:column}.header[_ngcontent-%COMP%]{padding:12px 0}.header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-weight:600}"]})};function sr(t,i){t&1&&(c(0,"nz-icon",8),p(1," \u9879\u76EE "))}function lr(t,i){t&1&&c(0,"app-project-list")}function pr(t,i){t&1&&(c(0,"nz-icon",9),p(1," \u521B\u5EFA "))}function cr(t,i){t&1&&c(0,"app-project-create")}function mr(t,i){t&1&&(c(0,"nz-icon",10),p(1," \u5BFC\u5165 "))}function dr(t,i){t&1&&c(0,"app-project-import")}var Lt=class t{importState=f(Ue);selectedIndex=0;tabIndexChange(i){i===2?this.importState.active.set(!0):this.importState.active.set(!1)}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=S({type:t,selectors:[["app-projects"]],decls:17,vars:4,consts:[["projectTitleTemplate",""],["addTitleTemplate",""],["importTitleTemplate",""],[1,"page"],[1,"header"],["nzCentered","",1,"tabs-container",3,"nzSelectedIndexChange","nzSelectedIndex"],[3,"nzTitle"],["nz-tab",""],["nzType","unordered-list","nzTheme","outline"],["nzType","plus-square","nzTheme","outline"],["nzType","import","nzTheme","outline"]],template:function(e,n){if(e&1){let o=M();r(0,"div",3)(1,"div",4)(2,"h2"),p(3,"\u9879\u76EE\u7BA1\u7406"),a()(),r(4,"nz-tabs",5),E("nzSelectedIndexChange",function(z){return C(o),D(n.selectedIndex,z)||(n.selectedIndex=z),_(z)}),g("nzSelectedIndexChange",function(z){return C(o),_(n.tabIndexChange(z))}),r(5,"nz-tab",6),T(6,sr,2,0,"ng-template",null,0,A)(8,lr,1,0,"ng-template",7),a(),r(9,"nz-tab",6),T(10,pr,2,0,"ng-template",null,1,A)(12,cr,1,0,"ng-template",7),a(),r(13,"nz-tab",6),T(14,mr,2,0,"ng-template",null,2,A)(16,dr,1,0,"ng-template",7),a()()()}if(e&2){let o=O(7),l=O(11),z=O(15);s(4),b("nzSelectedIndex",n.selectedIndex),s(),u("nzTitle",o),s(4),u("nzTitle",l),s(4),u("nzTitle",z)}},dependencies:[x,ui,di,mi,ci,y,w,Gt,Vt,At],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;flex:0 0 auto;padding:16px 0}.header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0}nz-tabs.tabs-container[_ngcontent-%COMP%]{flex:1 1 auto;height:0}nz-tabs.tabs-container[_ngcontent-%COMP%] .ant-tabs-content{height:100%}nz-tabs.tabs-container[_ngcontent-%COMP%] .ant-tabs-content .ant-tabs-tabpane{height:100%}.toolbar[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{flex:1}.current[_ngcontent-%COMP%]{margin:10px 0;opacity:.75}"]})};var ur=[{path:"",component:Lt}],$t=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=ze({type:t});static \u0275inj=Ce({imports:[Ke.forChild(ur),Ke]})};var Ti=class t{static \u0275fac=function(e){return new(e||t)};static \u0275mod=ze({type:t});static \u0275inj=Ce({imports:[x,$t]})};export{Ti as ProjectsModule};
@@ -0,0 +1 @@
1
+ import{c as Te}from"./chunk-35COW2FA.js";import{l as ue,n as fe,q as be,r as ze,t as _e}from"./chunk-FPDGZ3ZC.js";import{F as re,H as K,M as mt,Ma as pe,N as pt,O as J,P as tt,Xa as ut,a as kt,b as oe,ba as le,c as Dt,ga as de,ha as ce,ia as he,la as me,u as se,w as U,x as At,z as L}from"./chunk-PTMJ422K.js";import{d as ht,v as ne,y as ie,z as ae}from"./chunk-53YRDYLS.js";import{$b as st,Ac as Zt,Ca as et,Cc as Ut,Dc as Z,Eb as O,Ec as xt,Fb as qt,Fc as M,Gb as W,Gc as Kt,Ic as It,Kb as S,Kc as St,L as X,Lb as Gt,M as Ft,N as Pt,Oa as vt,Ra as P,Sa as nt,T as Ht,Tb as q,Uc as Jt,Vb as N,Vc as lt,W as Vt,Xa as Yt,Xb as k,Zb as at,_b as ot,ac as u,ad as dt,bc as g,ca as Ct,cc as C,dc as V,f as _t,fd as wt,g as Tt,hc as G,ic as j,jd as te,kc as B,l as Lt,la as $t,ld as Nt,mb as f,mc as jt,na as Qt,o as Ot,od as ee,p as Wt,pa as Xt,qc as A,r as Q,ra as h,rb as z,rd as ct,s as R,sb as Y,tc as c,u as gt,uc as yt,vb as it,vc as rt,vd as y,wc as H,xa as _,xc as F,ya as T,yc as x,zc as I}from"./chunk-SJG2JCPL.js";function Me(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Le=["nz-tab-body",""];function Oe(e,d){}function We(e,d){if(e&1&&(G(0),V(1,"nz-icon",1),j()),e&2){let t=d.$implicit;f(),u("nzType",t)}}var Fe=()=>({minWidth:"46px"}),Pe=()=>({visible:!1});function He(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.tab.label," ")}}function Ve(e,d){if(e&1){let t=B();g(0,"li",7),A("click",function(){let i=_(t).$implicit,a=c(2);return T(a.onSelect(i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.onContextmenu(a,i))}),S(1,He,2,1,"ng-container",8),C()}if(e&2){let t=d.$implicit;M("ant-tabs-dropdown-menu-item-disabled",t.disabled),u("nzSelected",t.active)("nzDisabled",t.disabled),f(),u("nzStringTemplateOutlet",t.tab.label)("nzStringTemplateOutletContext",lt(6,Pe))}}function $e(e,d){if(e&1&&(g(0,"ul",4),ot(1,Ve,2,7,"li",6,at),C()),e&2){let t=c();f(),st(t.items)}}function Qe(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon)}}var Xe=["navWrap"],Ye=["navList"],qe=["*"];function Ge(e,d){}function je(e,d){if(e&1&&(g(0,"div",2),S(1,Ge,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.startExtraContent().templateRef)}}function Ze(e,d){if(e&1){let t=B();g(0,"button",9),A("click",function(){_(t);let i=c();return T(i.addClicked.emit())}),C()}if(e&2){let t=c();u("addIcon",t.addIcon),q("tabindex",-1)}}function Ue(e,d){}function Ke(e,d){if(e&1&&(g(0,"div",2),S(1,Ue,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.endExtraContent().templateRef)}}function Je(e,d){}function tn(e,d){if(e&1&&(g(0,"div",2),S(1,Je,0,0,"ng-template",8),C()),e&2){let t=c();f(),u("ngTemplateOutlet",t.extraTemplate)}}var en=["contentTemplate"],nn=[[["","nz-tab-link",""]],"*"],an=["[nz-tab-link]","*"];function on(e,d){e&1&&rt(0)}function sn(e,d){e&1&&rt(0,1)}var rn=()=>({visible:!0});function ln(e,d){if(e&1&&(G(0),It(1),j()),e&2){let t=c().$implicit;f(),St(" ",t.label," ")}}function dn(e,d){if(e&1){let t=B();g(0,"button",10),A("click",function(i){_(t);let a=c().$index,l=c(2);return T(l.onClose(a,i))}),C()}if(e&2){let t=c().$implicit;u("closeIcon",t.nzCloseIcon)}}function cn(e,d){if(e&1){let t=B();g(0,"div",6),A("click",function(i){let a=_(t),l=a.$implicit,p=a.$index,b=c(2);return T(b.clickNavItem(l,p,i))})("contextmenu",function(i){let a=_(t).$implicit,l=c(2);return T(l.contextmenuNavItem(a,i))}),g(1,"button",7),S(2,ln,2,1,"ng-container",8),N(3,dn,1,1,"button",9),C()()}if(e&2){let t=d.$implicit,n=d.$index,i=c(2);xt("margin-right",i.position==="horizontal"?i.nzTabBarGutter:null,"px")("margin-bottom",i.position==="vertical"?i.nzTabBarGutter:null,"px"),M("ant-tabs-tab-active",i.nzSelectedIndex===n)("ant-tabs-tab-disabled",t.nzDisabled),f(),u("id",i.getTabContentId(n))("disabled",t.nzDisabled)("tab",t)("active",i.nzSelectedIndex===n),q("tabIndex",i.getTabIndex(t,n))("aria-disabled",t.nzDisabled)("aria-selected",i.nzSelectedIndex===n&&!i.nzHideAll)("aria-controls",i.getTabContentId(n)),f(),u("nzStringTemplateOutlet",t.label)("nzStringTemplateOutletContext",lt(19,rn)),f(),k(t.nzClosable&&i.closable&&!t.nzDisabled?3:-1)}}function hn(e,d){if(e&1){let t=B();g(0,"nz-tabs-nav",4),A("tabScroll",function(i){_(t);let a=c();return T(a.nzTabListScroll.emit(i))})("selectFocusedIndex",function(i){_(t);let a=c();return T(a.setSelectedIndex(i))})("addClicked",function(){_(t);let i=c();return T(i.onAdd())}),ot(1,cn,4,20,"div",5,at),C()}if(e&2){let t=c();Kt(t.nzTabBarStyle),u("selectedIndex",t.nzSelectedIndex||0)("inkBarAnimated",t.inkBarAnimated)("addable",t.addable)("addIcon",t.nzAddIcon)("hideBar",t.nzHideAll)("position",t.position)("extraTemplate",t.nzTabBarExtraContent)("extraContents",t.extraContents()),f(),st(t.tabs)}}function mn(e,d){}function pn(e,d){if(e&1&&S(0,mn,0,0,"ng-template",11),e&2){c();let t=Z(4);u("ngTemplateOutlet",t)}}function un(e,d){}function fn(e,d){if(e&1&&S(0,un,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function bn(e,d){if(e&1&&N(0,fn,1,1,null,11),e&2){let t=c().$index,n=c(2);k(n.nzSelectedIndex===t?0:-1)}}function zn(e,d){}function _n(e,d){if(e&1&&S(0,zn,0,0,"ng-template",11),e&2){c(2);let t=Z(4);u("ngTemplateOutlet",t)}}function Tn(e,d){if(e&1&&N(0,_n,1,1,null,11),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);k(a.nzSelectedIndex===i||n.hasBeenActive?0:-1)}}function gn(e,d){if(e&1&&V(0,"div",12),e&2){let t=c(),n=t.$implicit,i=t.$index,a=c(2);u("id",a.getTabContentId(i))("active",a.nzSelectedIndex===i)("content",n.content)("animated",a.tabPaneAnimated),q("aria-labelledby",a.getTabContentId(i))}}function Cn(e,d){if(e&1&&(N(0,pn,1,1,null,11)(1,bn,1,1)(2,Tn,1,1),S(3,gn,1,5,"ng-template",null,0,dt)),e&2){let t=d.$implicit,n=c(2);k(t.nzForceRender?0:n.nzDestroyInactiveTabPane?1:2)}}function vn(e,d){if(e&1&&ot(0,Cn,5,1,null,null,at),e&2){let t=c();st(t.tabs)}}var Et=class{index;tab},bt=(()=>{class e{addIcon="plus";element=h(P).nativeElement;getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-add-button"],["button","nz-tab-add-button",""]],hostAttrs:["aria-label","Add tab","type","button",1,"ant-tabs-nav-add"],inputs:{addIcon:"addIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,Me,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.addIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),ge=(()=>{class e{position=Nt("end",{alias:"nzTabBarExtraContent"});templateRef=h(it);static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabBarExtraContent","",5,"nz-tabset",5,"nz-tabs"]],inputs:{position:[1,"nzTabBarExtraContent","position"]}})}return e})(),yn=(()=>{class e{content=null;active=!1;animated=!0;static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["","nz-tab-body",""]],hostAttrs:[1,"ant-tabs-tabpane"],hostVars:10,hostBindings:function(n,i){n&2&&(jt("@tabSwitchMotion",i.active?"enter":"leave")("@.disabled",!i.animated),q("tabindex",i.active?0:-1)("aria-hidden",!i.active),xt("overflow-y",i.animated?i.active?null:"none":null),M("ant-tabs-tabpane-active",i.active)("ant-tabs-tabpane-hidden",i.animated?null:!i.active))},inputs:{content:"content",active:"active",animated:"animated"},exportAs:["nzTabBody"],attrs:Le,decls:1,vars:1,consts:[[3,"ngTemplateOutlet"]],template:function(n,i){n&1&&S(0,Oe,0,0,"ng-template",0),n&2&&u("ngTemplateOutlet",i.content)},dependencies:[ht],encapsulation:2,data:{animation:[pe]},changeDetection:0})}return e})(),Ie=(()=>{class e{closeIcon="close";static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-close-button"],["button","nz-tab-close-button",""]],hostAttrs:["aria-label","Close tab","type","button",1,"ant-tabs-tab-remove"],inputs:{closeIcon:"closeIcon"},decls:1,vars:1,consts:[[4,"nzStringTemplateOutlet"],["nzTheme","outline",3,"nzType"]],template:function(n,i){n&1&&S(0,We,2,1,"ng-container",0),n&2&&u("nzStringTemplateOutlet",i.closeIcon)},dependencies:[tt,J,pt,mt],encapsulation:2})}return e})(),xn=(()=>{class e{templateRef=h(it,{host:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["ng-template","nzTabLink",""]],exportAs:["nzTabLinkTemplate"]})}return e})(),Se=(()=>{class e{elementRef=h(P);routerLink=h(ae,{self:!0,optional:!0});static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["a","nz-tab-link",""]],exportAs:["nzTabLink"]})}return e})(),we=(()=>{class e{disabled=!1;tab;active=!1;elementRef=h(P);el=this.elementRef.nativeElement;parentElement=this.el.parentElement;focus(){this.el.focus({preventScroll:!0})}get width(){return this.parentElement.offsetWidth}get height(){return this.parentElement.offsetHeight}get left(){return this.parentElement.offsetLeft}get top(){return this.parentElement.offsetTop}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabNavItem",""]],inputs:{disabled:[2,"disabled","disabled",y],tab:"tab",active:[2,"active","active",y]}})}return e})(),Rt=(()=>{class e{items=[];addable=!1;addIcon="plus";addClicked=new z;selected=new z;closeAnimationWaitTimeoutId;menuOpened=!1;cdr=h(ct);element=h(P).nativeElement;onSelect(t){t.disabled||(t.tab.nzClick.emit(),this.selected.emit(t))}onContextmenu(t,n){t.disabled||t.tab.nzContextmenu.emit(n)}showItems(){clearTimeout(this.closeAnimationWaitTimeoutId),this.menuOpened=!0,this.cdr.markForCheck()}menuVisChange(t){t||(this.closeAnimationWaitTimeoutId=setTimeout(()=>{this.menuOpened=!1,this.cdr.markForCheck()},150))}getElementWidth(){return this.element?.offsetWidth||0}getElementHeight(){return this.element?.offsetHeight||0}ngOnDestroy(){clearTimeout(this.closeAnimationWaitTimeoutId)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab-nav-operation"]],hostAttrs:[1,"ant-tabs-nav-operations"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-nav-operations-hidden",i.items.length===0)},inputs:{items:"items",addable:[2,"addable","addable",y],addIcon:"addIcon"},outputs:{addClicked:"addClicked",selected:"selected"},exportAs:["nzTabNavOperation"],decls:7,vars:6,consts:[["dropdownTrigger","nzDropdown"],["menu","nzDropdownMenu"],["nz-dropdown","","type","button","tabindex","-1","aria-hidden","true","nzOverlayClassName","nz-tabs-dropdown",1,"ant-tabs-nav-more",3,"nzVisibleChange","mouseenter","nzDropdownMenu","nzOverlayStyle","nzMatchWidthElement"],["nzType","ellipsis"],["nz-menu",""],["nz-tab-add-button","",3,"addIcon"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"ant-tabs-dropdown-menu-item-disabled","nzSelected","nzDisabled"],["nz-menu-item","",1,"ant-tabs-dropdown-menu-item",3,"click","contextmenu","nzSelected","nzDisabled"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();g(0,"button",2,0),A("nzVisibleChange",function(p){return _(a),T(i.menuVisChange(p))})("mouseenter",function(){return _(a),T(i.showItems())}),V(2,"nz-icon",3),C(),g(3,"nz-dropdown-menu",null,1),N(5,$e,3,0,"ul",4),C(),N(6,Qe,1,1,"button",5)}if(n&2){let a=Z(4);u("nzDropdownMenu",a)("nzOverlayStyle",lt(5,Fe))("nzMatchWidthElement",null),f(5),k(i.menuOpened?5:-1),f(),k(i.addable?6:-1)}},dependencies:[pt,mt,tt,J,bt,_e,be,fe,ue,ze],encapsulation:2,changeDetection:0})}return e})(),In=.1,Ce=.01,ft=20,ve=.995**ft,Sn=(()=>{class e{ngZone=h(Y);destroyRef=h(et);el=h(P).nativeElement;lastWheelDirection=null;lastWheelTimestamp=0;lastTimestamp=0;lastTimeDiff=0;lastMixedWheel=0;lastWheelPrevent=!1;touchPosition=null;lastOffset=null;motion=-1;offsetChange=new z;tabScroll=new z;ngOnInit(){let t=U(this.el,"wheel"),n=U(this.el,"touchstart"),i=U(this.el,"touchmove"),a=U(this.el,"touchend");this.subscribeWrap("wheel",t,this.onWheel),this.subscribeWrap("touchstart",n,this.onTouchStart),this.subscribeWrap("touchmove",i,this.onTouchMove),this.subscribeWrap("touchend",a,this.onTouchEnd)}subscribeWrap(t,n,i){return n.pipe(L(this.destroyRef)).subscribe(a=>{this.tabScroll.emit({type:t,event:a}),a.defaultPrevented||i(a)})}onTouchEnd=t=>{if(!this.touchPosition)return;let n=this.lastOffset,i=this.lastTimeDiff;if(this.lastOffset=this.touchPosition=null,n){let a=n.x/i,l=n.y/i,p=Math.abs(a),b=Math.abs(l);if(Math.max(p,b)<In)return;let w=a,E=l;this.motion=window.setInterval(()=>{if(Math.abs(w)<Ce&&Math.abs(E)<Ce){window.clearInterval(this.motion);return}w*=ve,E*=ve,this.onOffset(w*ft,E*ft,t)},ft)}};onTouchMove=t=>{if(!this.touchPosition)return;t.preventDefault();let{screenX:n,screenY:i}=t.touches[0],a=n-this.touchPosition.x,l=i-this.touchPosition.y;this.onOffset(a,l,t);let p=Date.now();this.lastTimeDiff=p-this.lastTimestamp,this.lastTimestamp=p,this.lastOffset={x:a,y:l},this.touchPosition={x:n,y:i}};onTouchStart=t=>{let{screenX:n,screenY:i}=t.touches[0];this.touchPosition={x:n,y:i},window.clearInterval(this.motion)};onWheel=t=>{let{deltaX:n,deltaY:i}=t,a,l=Math.abs(n),p=Math.abs(i);l===p?a=this.lastWheelDirection==="x"?n:i:l>p?(a=n,this.lastWheelDirection="x"):(a=i,this.lastWheelDirection="y");let b=Date.now(),w=Math.abs(a);(b-this.lastWheelTimestamp>100||w-this.lastMixedWheel>10)&&(this.lastWheelPrevent=!1),this.onOffset(-a,-a,t),(t.defaultPrevented||this.lastWheelPrevent)&&(this.lastWheelPrevent=!0),this.lastWheelTimestamp=b,this.lastMixedWheel=w};onOffset(t,n,i){this.offsetChange.observers.length&&this.ngZone.run(()=>{this.offsetChange.emit({x:t,y:n,event:i})})}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nzTabScrollList",""]],outputs:{offsetChange:"offsetChange",tabScroll:"tabScroll"}})}return e})(),ye=(()=>{class e{ngZone=h(Y);el=h(P).nativeElement;position="horizontal";animated=!0;animationMode=h(Yt,{optional:!0});get _animated(){return this.animationMode!=="NoopAnimations"&&this.animated}alignToElement(t){this.ngZone.runOutsideAngular(()=>{ut(()=>this.setStyles(t))})}setStyles(t){this.position==="horizontal"?(this.el.style.top="",this.el.style.height="",this.el.style.left=this.getLeftPosition(t),this.el.style.width=this.getElementWidth(t)):(this.el.style.left="",this.el.style.width="",this.el.style.top=this.getTopPosition(t),this.el.style.height=this.getElementHeight(t))}getLeftPosition(t){return t?`${t.offsetLeft||0}px`:"0"}getElementWidth(t){return t?`${t.offsetWidth||0}px`:"0"}getTopPosition(t){return t?`${t.offsetTop||0}px`:"0"}getElementHeight(t){return t?`${t.offsetHeight||0}px`:"0"}static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["nz-tabs-ink-bar"],["","nz-tabs-ink-bar",""]],hostAttrs:[1,"ant-tabs-ink-bar"],hostVars:2,hostBindings:function(n,i){n&2&&M("ant-tabs-ink-bar-animated",i._animated)},inputs:{position:"position",animated:"animated"}})}return e})(),wn=typeof ut<"u"?Wt:Ot,xe=150,Bt=(()=>{class e{cdr=h(ct);ngZone=h(Y);viewportRuler=h(me);nzResizeObserver=h(Te);dir=h(At);destroyRef=h(et);indexFocused=new z;selectFocusedIndex=new z;addClicked=new z;tabScroll=new z;position="horizontal";addable=!1;hideBar=!1;addIcon="plus";inkBarAnimated=!0;extraTemplate;extraContents=Nt.required();startExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="start"));endExtraContent=wt(()=>this.extraContents().find(t=>t.position()==="end"));get selectedIndex(){return this._selectedIndex}set selectedIndex(t){let n=Dt(t);this._selectedIndex!==n&&(this._selectedIndex=t,this.selectedIndexChanged=!0,this.keyManager&&this.keyManager.updateActiveItem(t))}navWrapRef;navListRef;operationRef;addBtnRef;inkBar;items;get focusIndex(){return this.keyManager?this.keyManager.activeItemIndex:0}set focusIndex(t){!this.isValidIndex(t)||this.focusIndex===t||!this.keyManager||this.keyManager.setActiveItem(t)}get showAddButton(){return this.hiddenItems.length===0&&this.addable}translate=null;transformX=0;transformY=0;pingLeft=!1;pingRight=!1;pingTop=!1;pingBottom=!1;hiddenItems=[];keyManager;_selectedIndex=0;wrapperWidth=0;wrapperHeight=0;scrollListWidth=0;scrollListHeight=0;operationWidth=0;operationHeight=0;addButtonWidth=0;addButtonHeight=0;selectedIndexChanged=!1;lockAnimationTimeoutId;cssTransformTimeWaitingId;constructor(){this.destroyRef.onDestroy(()=>{clearTimeout(this.lockAnimationTimeoutId),clearTimeout(this.cssTransformTimeWaitingId)})}ngAfterViewInit(){let t=this.dir?this.dir.change.asObservable():gt(null),n=this.viewportRuler.change(150),i=()=>{this.updateScrollListPosition(),this.alignInkBarToSelectedTab()};this.keyManager=new he(this.items).withHorizontalOrientation(this.getLayoutDirection()).withWrap(),this.keyManager.updateActiveItem(this.selectedIndex),ut(i),X(this.nzResizeObserver.observe(this.navWrapRef),this.nzResizeObserver.observe(this.navListRef)).pipe(L(this.destroyRef),Pt(16,wn)).subscribe(()=>{i()}),X(t,n,this.items.changes).pipe(L(this.destroyRef)).subscribe(()=>{Promise.resolve().then(i),this.keyManager.withHorizontalOrientation(this.getLayoutDirection())}),this.keyManager.change.pipe(L(this.destroyRef)).subscribe(a=>{this.indexFocused.emit(a),this.scrollToTab(this.keyManager.activeItem)})}ngAfterContentChecked(){this.selectedIndexChanged&&(this.updateScrollListPosition(),this.alignInkBarToSelectedTab(),this.selectedIndexChanged=!1,this.cdr.markForCheck())}onSelectedFromMenu(t){let n=this.items.toArray().findIndex(i=>i===t);n!==-1&&(this.keyManager.updateActiveItem(n),this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this.scrollToTab(t)))}onOffsetChange(t){if(this.position==="horizontal"){if(!this.lockAnimationTimeoutId&&(this.transformX>=0&&t.x>0||this.transformX<=this.wrapperWidth-this.scrollListWidth&&t.x<0))return;t.event.preventDefault(),this.transformX=this.clampTransformX(this.transformX+t.x),this.setTransform(this.transformX,0)}else{if(!this.lockAnimationTimeoutId&&(this.transformY>=0&&t.y>0||this.transformY<=this.wrapperHeight-this.scrollListHeight&&t.y<0))return;t.event.preventDefault(),this.transformY=this.clampTransformY(this.transformY+t.y),this.setTransform(0,this.transformY)}this.lockAnimation(),this.setVisibleRange(),this.setPingStatus()}handleKeydown(t){let n=this.navWrapRef.nativeElement.contains(t.target);if(!(ce(t)||!n))switch(t.keyCode){case 37:case 38:case 39:case 40:this.lockAnimation(),this.keyManager.onKeydown(t);break;case 13:case 32:this.focusIndex!==this.selectedIndex&&this.selectFocusedIndex.emit(this.focusIndex);break;default:this.keyManager.onKeydown(t)}}isValidIndex(t){if(!this.items)return!0;let n=this.items?this.items.toArray()[t]:null;return!!n&&!n.disabled}scrollToTab(t){if(!this.items.find(i=>i===t))return;let n=this.items.toArray();if(this.position==="horizontal"){let i=this.transformX;if(this.getLayoutDirection()==="rtl"){let a=n[0].left+n[0].width-t.left-t.width;a<this.transformX?i=a:a+t.width>this.transformX+this.wrapperWidth&&(i=a+t.width-this.wrapperWidth)}else t.left<-this.transformX?i=-t.left:t.left+t.width>-this.transformX+this.wrapperWidth&&(i=-(t.left+t.width-this.wrapperWidth));this.transformX=i,this.transformY=0,this.setTransform(i,0)}else{let i=this.transformY;t.top<-this.transformY?i=-t.top:t.top+t.height>-this.transformY+this.wrapperHeight&&(i=-(t.top+t.height-this.wrapperHeight)),this.transformY=i,this.transformX=0,this.setTransform(0,i)}clearTimeout(this.cssTransformTimeWaitingId),this.cssTransformTimeWaitingId=setTimeout(()=>{this.setVisibleRange()},xe)}lockAnimation(){this.lockAnimationTimeoutId||this.ngZone.runOutsideAngular(()=>{this.navListRef.nativeElement.style.transition="none",this.lockAnimationTimeoutId=setTimeout(()=>{this.navListRef.nativeElement.style.transition="",this.lockAnimationTimeoutId=void 0},xe)})}setTransform(t,n){this.navListRef.nativeElement.style.transform=`translate(${t}px, ${n}px)`}clampTransformX(t){let n=this.wrapperWidth-this.scrollListWidth;return this.getLayoutDirection()==="rtl"?Math.max(Math.min(n,t),0):Math.min(Math.max(n,t),0)}clampTransformY(t){return Math.min(Math.max(this.wrapperHeight-this.scrollListHeight,t),0)}updateScrollListPosition(){this.resetSizes(),this.transformX=this.clampTransformX(this.transformX),this.transformY=this.clampTransformY(this.transformY),this.setVisibleRange(),this.setPingStatus(),this.keyManager&&(this.keyManager.updateActiveItem(this.keyManager.activeItemIndex),this.keyManager.activeItem&&this.scrollToTab(this.keyManager.activeItem))}resetSizes(){this.addButtonWidth=this.addBtnRef?this.addBtnRef.getElementWidth():0,this.addButtonHeight=this.addBtnRef?this.addBtnRef.getElementHeight():0,this.operationWidth=this.operationRef.getElementWidth(),this.operationHeight=this.operationRef.getElementHeight(),this.wrapperWidth=this.navWrapRef.nativeElement.offsetWidth||0,this.wrapperHeight=this.navWrapRef.nativeElement.offsetHeight||0,this.scrollListHeight=this.navListRef.nativeElement.offsetHeight||0,this.scrollListWidth=this.navListRef.nativeElement.offsetWidth||0}alignInkBarToSelectedTab(){let t=this.items&&this.items.length?this.items.toArray()[this.selectedIndex]:null,n=t?t.elementRef.nativeElement:null;n&&this.inkBar.alignToElement(n.parentElement)}setPingStatus(){let t={top:!1,right:!1,bottom:!1,left:!1},n=this.navWrapRef.nativeElement;this.position==="horizontal"?this.getLayoutDirection()==="rtl"?(t.right=this.transformX>0,t.left=this.transformX+this.wrapperWidth<this.scrollListWidth):(t.left=this.transformX<0,t.right=-this.transformX+this.wrapperWidth<this.scrollListWidth):(t.top=this.transformY<0,t.bottom=-this.transformY+this.wrapperHeight<this.scrollListHeight),Object.keys(t).forEach(i=>{let a=`ant-tabs-nav-wrap-ping-${i}`;t[i]?n.classList.add(a):n.classList.remove(a)})}setVisibleRange(){let t,n,i,a,l,p,b=this.items.toArray(),w={width:0,height:0,left:0,top:0,right:0},E=m=>{let D,zt=b[m]||w;return n==="right"?D=b[0].left+b[0].width-b[m].left-b[m].width:D=zt[n],D};this.position==="horizontal"?(t="width",a=this.wrapperWidth,l=this.scrollListWidth-(this.hiddenItems.length?this.operationWidth:0),p=this.addButtonWidth,i=Math.abs(this.transformX),this.getLayoutDirection()==="rtl"?(n="right",this.pingRight=this.transformX>0,this.pingLeft=this.transformX+this.wrapperWidth<this.scrollListWidth):(this.pingLeft=this.transformX<0,this.pingRight=-this.transformX+this.wrapperWidth<this.scrollListWidth,n="left")):(t="height",a=this.wrapperHeight,l=this.scrollListHeight-(this.hiddenItems.length?this.operationHeight:0),p=this.addButtonHeight,n="top",i=-this.transformY,this.pingTop=this.transformY<0,this.pingBottom=-this.transformY+this.wrapperHeight<this.scrollListHeight);let $=a;if(l+p>a&&($=a-p),!b.length){this.hiddenItems=[],this.cdr.markForCheck();return}let v=b.length,Mt=v;for(let m=0;m<v;m+=1){let D=E(m),zt=b[m]||w;if(D+zt[t]>i+$){Mt=m-1;break}}let s=0;for(let m=v-1;m>=0;m-=1)if(E(m)<i){s=m+1;break}let o=b.slice(0,s),r=b.slice(Mt+1);this.hiddenItems=[...o,...r],this.cdr.markForCheck()}getLayoutDirection(){return this.dir&&this.dir.value==="rtl"?"rtl":"ltr"}ngOnChanges(t){let{position:n}=t;n&&!n.isFirstChange()&&(this.alignInkBarToSelectedTab(),this.lockAnimation(),this.updateScrollListPosition())}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tabs-nav"]],contentQueries:function(n,i,a){if(n&1&&H(a,we,5),n&2){let l;x(l=I())&&(i.items=l)}},viewQuery:function(n,i){if(n&1&&(F(Xe,7),F(Ye,7),F(Rt,7),F(bt,5),F(ye,7)),n&2){let a;x(a=I())&&(i.navWrapRef=a.first),x(a=I())&&(i.navListRef=a.first),x(a=I())&&(i.operationRef=a.first),x(a=I())&&(i.addBtnRef=a.first),x(a=I())&&(i.inkBar=a.first)}},hostAttrs:[1,"ant-tabs-nav"],hostBindings:function(n,i){n&1&&A("keydown",function(l){return i.handleKeydown(l)})},inputs:{position:"position",addable:[2,"addable","addable",y],hideBar:[2,"hideBar","hideBar",y],addIcon:"addIcon",inkBarAnimated:"inkBarAnimated",extraTemplate:"extraTemplate",extraContents:[1,"extraContents"],selectedIndex:"selectedIndex"},outputs:{indexFocused:"indexFocused",selectFocusedIndex:"selectFocusedIndex",addClicked:"addClicked",tabScroll:"tabScroll"},exportAs:["nzTabsNav"],features:[vt],ngContentSelectors:qe,decls:11,vars:17,consts:[["navWrap",""],["navList",""],[1,"ant-tabs-extra-content"],[1,"ant-tabs-nav-wrap"],["nzTabScrollList","","role","tablist",1,"ant-tabs-nav-list",3,"offsetChange","tabScroll"],["role","tab","nz-tab-add-button","",3,"addIcon"],["nz-tabs-ink-bar","",3,"hidden","position","animated"],[3,"addClicked","selected","addIcon","addable","items"],[3,"ngTemplateOutlet"],["role","tab","nz-tab-add-button","",3,"click","addIcon"]],template:function(n,i){if(n&1){let a=B();yt(),N(0,je,2,1,"div",2),g(1,"div",3,0)(3,"div",4,1),A("offsetChange",function(p){return _(a),T(i.onOffsetChange(p))})("tabScroll",function(p){return _(a),T(i.tabScroll.emit(p))}),rt(5),N(6,Ze,1,2,"button",5),V(7,"div",6),C()(),g(8,"nz-tab-nav-operation",7),A("addClicked",function(){return _(a),T(i.addClicked.emit())})("selected",function(p){return _(a),T(i.onSelectedFromMenu(p))}),C(),N(9,Ke,2,1,"div",2)(10,tn,2,1,"div",2)}n&2&&(k(i.startExtraContent()?0:-1),f(),M("ant-tabs-nav-wrap-ping-left",i.pingLeft)("ant-tabs-nav-wrap-ping-right",i.pingRight)("ant-tabs-nav-wrap-ping-top",i.pingTop)("ant-tabs-nav-wrap-ping-bottom",i.pingBottom),f(5),k(i.showAddButton?6:-1),f(),u("hidden",i.hideBar)("position",i.position)("animated",i.inkBarAnimated),f(),u("addIcon",i.addIcon)("addable",i.addable)("items",i.hiddenItems),f(),k(i.endExtraContent()?9:i.extraTemplate?10:-1))},dependencies:[Sn,bt,ye,Rt,ht],encapsulation:2,changeDetection:0})}return e})(),Nn=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275dir=W({type:e,selectors:[["","nz-tab",""]],exportAs:["nzTab"]})}return e})(),Ne=new Xt(""),kn=(()=>{class e{nzTitle="";nzClosable=!1;nzCloseIcon="close";nzDisabled=!1;nzForceRender=!1;nzSelect=new z;nzDeselect=new z;nzClick=new z;nzContextmenu=new z;nzTabLinkTemplateDirective;template=null;linkDirective;contentTemplate;isActive=!1;hasBeenActive=!1;position=null;origin=null;closestTabSet=h(Ne);stateChanges=new Lt;get content(){return this.template||this.contentTemplate}get label(){return this.nzTitle||this.nzTabLinkTemplateDirective?.templateRef}ngOnChanges(t){let{nzTitle:n,nzDisabled:i,nzForceRender:a}=t;(n||i||a)&&this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete()}setActive(t){this.isActive=t,t&&(this.hasBeenActive=!0)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=O({type:e,selectors:[["nz-tab"]],contentQueries:function(n,i,a){if(n&1&&(H(a,xn,5),H(a,Nn,5,it),H(a,Se,5)),n&2){let l;x(l=I())&&(i.nzTabLinkTemplateDirective=l.first),x(l=I())&&(i.template=l.first),x(l=I())&&(i.linkDirective=l.first)}},viewQuery:function(n,i){if(n&1&&F(en,7),n&2){let a;x(a=I())&&(i.contentTemplate=a.first)}},inputs:{nzTitle:"nzTitle",nzClosable:[2,"nzClosable","nzClosable",y],nzCloseIcon:"nzCloseIcon",nzDisabled:[2,"nzDisabled","nzDisabled",y],nzForceRender:[2,"nzForceRender","nzForceRender",y]},outputs:{nzSelect:"nzSelect",nzDeselect:"nzDeselect",nzClick:"nzClick",nzContextmenu:"nzContextmenu"},exportAs:["nzTab"],features:[vt],ngContentSelectors:an,decls:4,vars:0,consts:[["tabLinkTemplate",""],["contentTemplate",""]],template:function(n,i){n&1&&(yt(nn),Gt(0,on,1,0,"ng-template",null,0,dt)(2,sn,1,0,"ng-template",null,1,dt))},encapsulation:2,changeDetection:0})}return e})(),Dn="tabs",An=0,En=(()=>{var v;let e,d=[],t=[],n,i=[],a=[],l,p=[],b=[],w,E=[],$=[];return v=class{_nzModuleName=Dn;nzConfigService=h(re);ngZone=h(Y);cdr=h(ct);directionality=h(At);destroyRef=h(et);get nzSelectedIndex(){return this.selectedIndex}set nzSelectedIndex(s){this.indexToSelect=Dt(s,null)}nzTabPosition="top";nzTabBarExtraContent;nzCanDeactivate=null;nzAddIcon="plus";nzTabBarStyle=null;nzType=R(this,d,"line");nzSize=(R(this,t),R(this,i,"default"));nzAnimated=(R(this,a),R(this,p,!0));nzTabBarGutter=(R(this,b),R(this,E,void 0));nzHideAdd=(R(this,$),!1);nzCentered=!1;nzHideAll=!1;nzLinkRouter=!1;nzLinkExact=!0;nzDestroyInactiveTabPane=!1;nzSelectChange=new z(!0);nzSelectedIndexChange=new z;nzTabListScroll=new z;nzClose=new z;nzAdd=new z;get position(){return["top","bottom"].indexOf(this.nzTabPosition)===-1?"vertical":"horizontal"}get addable(){return this.nzType==="editable-card"&&!this.nzHideAdd}get closable(){return this.nzType==="editable-card"}get line(){return this.nzType==="line"}get inkBarAnimated(){return this.line&&(typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.inkBar)}get tabPaneAnimated(){return typeof this.nzAnimated=="boolean"?this.nzAnimated:this.nzAnimated.tabPane}allTabs=new nt;tabLinks=new nt;tabNavBarRef;tabs=new nt;extraContents=ee(ge);dir="ltr";tabSetId;indexToSelect=0;selectedIndex=null;tabLabelSubscription=Tt.EMPTY;canDeactivateSubscription=Tt.EMPTY;router=h(ie,{optional:!0});constructor(){this.tabSetId=An++,h(te)==="nz-tabset"&&oe(`${kt} <nz-tabset> is deprecated, please use <nz-tabs> instead.`),this.destroyRef.onDestroy(()=>{this.tabs.destroy(),this.tabLabelSubscription.unsubscribe(),this.canDeactivateSubscription.unsubscribe()})}ngOnInit(){this.dir=this.directionality.value,this.directionality.change?.pipe(L(this.destroyRef)).subscribe(s=>{this.dir=s,this.cdr.detectChanges()})}ngAfterContentInit(){this.ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>this.setUpRouter())}),this.subscribeToTabLabels(),this.subscribeToAllTabChanges(),this.tabs.changes.pipe(L(this.destroyRef)).subscribe(()=>{if(this.clampTabIndex(this.indexToSelect)===this.selectedIndex){let o=this.tabs.toArray();for(let r=0;r<o.length;r++)if(o[r].isActive){this.indexToSelect=this.selectedIndex=r;break}}this.subscribeToTabLabels(),this.cdr.markForCheck()})}ngAfterContentChecked(){let s=this.indexToSelect=this.clampTabIndex(this.indexToSelect);if(this.selectedIndex!==s){let o=this.selectedIndex==null;o||this.nzSelectChange.emit(this.createChangeEvent(s)),Promise.resolve().then(()=>{this.tabs.forEach((r,m)=>r.setActive(m===s)),o||this.nzSelectedIndexChange.emit(s)})}this.tabs.forEach((o,r)=>{o.position=r-s,this.selectedIndex!=null&&o.position===0&&!o.origin&&(o.origin=s-this.selectedIndex)}),this.selectedIndex!==s&&(this.selectedIndex=s,this.cdr.markForCheck())}onClose(s,o){o.preventDefault(),o.stopPropagation(),this.nzClose.emit({index:s})}onAdd(){this.nzAdd.emit()}clampTabIndex(s){return Math.min(this.tabs.length-1,Math.max(s||0,0))}createChangeEvent(s){let o=new Et;return o.index=s,this.tabs&&this.tabs.length&&(o.tab=this.tabs.toArray()[s],this.tabs.forEach((r,m)=>{m!==s&&r.nzDeselect.emit()}),o.tab.nzSelect.emit()),o}subscribeToTabLabels(){this.tabLabelSubscription&&this.tabLabelSubscription.unsubscribe(),this.tabLabelSubscription=X(...this.tabs.map(s=>s.stateChanges)).subscribe(()=>this.cdr.markForCheck())}subscribeToAllTabChanges(){this.allTabs.changes.pipe(Ct(this.allTabs)).subscribe(s=>{this.tabs.reset(s.filter(o=>o.closestTabSet===this)),this.tabs.notifyOnChanges()})}canDeactivateFun(s,o){return typeof this.nzCanDeactivate=="function"?se(this.nzCanDeactivate(s,o)).pipe(Vt(),L(this.destroyRef)):gt(!0)}clickNavItem(s,o,r){s.nzDisabled||(s.nzClick.emit(),this.isRouterLinkClickEvent(o,r)||this.setSelectedIndex(o))}isRouterLinkClickEvent(s,o){let r=o.target;return this.nzLinkRouter?!!this.tabs.toArray()[s]?.linkDirective?.elementRef.nativeElement.contains(r):!1}contextmenuNavItem(s,o){s.nzDisabled||s.nzContextmenu.emit(o)}setSelectedIndex(s){this.canDeactivateSubscription.unsubscribe(),this.canDeactivateSubscription=this.canDeactivateFun(this.selectedIndex,s).subscribe(o=>{o&&(this.nzSelectedIndex=s,this.tabNavBarRef.focusIndex=s,this.cdr.markForCheck())})}getTabIndex(s,o){return s.nzDisabled?null:this.selectedIndex===o?0:-1}getTabContentId(s){return`nz-tabs-${this.tabSetId}-tab-${s}`}setUpRouter(){if(this.nzLinkRouter){if(!this.router)throw new Error(`${kt} you should import 'RouterModule' if you want to use 'nzLinkRouter'!`);X(this.router.events.pipe(Ft(s=>s instanceof ne)),this.tabLinks.changes).pipe(Ct(!0),Ht(0),L(this.destroyRef)).subscribe(()=>{this.updateRouterActive(),this.cdr.markForCheck()})}}updateRouterActive(){if(this.router?.navigated){let s=this.findShouldActiveTabIndex();s!==this.selectedIndex&&this.setSelectedIndex(s),Promise.resolve().then(()=>this.nzHideAll=s===-1)}}findShouldActiveTabIndex(){let s=this.tabs.toArray(),o=this.isLinkActive(this.router);return s.findIndex(r=>{let m=r.linkDirective;return m?o(m.routerLink):!1})}isLinkActive(s){return o=>o?!!s?.isActive(o.urlTree||"",{paths:this.nzLinkExact?"exact":"subset",queryParams:this.nzLinkExact?"exact":"subset",fragment:"ignored",matrixParams:"ignored"}):!1}},(()=>{let s=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;e=[K()],n=[K()],l=[K()],w=[K()],Q(null,null,e,{kind:"field",name:"nzType",static:!1,private:!1,access:{has:o=>"nzType"in o,get:o=>o.nzType,set:(o,r)=>{o.nzType=r}},metadata:s},d,t),Q(null,null,n,{kind:"field",name:"nzSize",static:!1,private:!1,access:{has:o=>"nzSize"in o,get:o=>o.nzSize,set:(o,r)=>{o.nzSize=r}},metadata:s},i,a),Q(null,null,l,{kind:"field",name:"nzAnimated",static:!1,private:!1,access:{has:o=>"nzAnimated"in o,get:o=>o.nzAnimated,set:(o,r)=>{o.nzAnimated=r}},metadata:s},p,b),Q(null,null,w,{kind:"field",name:"nzTabBarGutter",static:!1,private:!1,access:{has:o=>"nzTabBarGutter"in o,get:o=>o.nzTabBarGutter,set:(o,r)=>{o.nzTabBarGutter=r}},metadata:s},E,$),s&&Object.defineProperty(v,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:s})})(),_t(v,"\u0275fac",function(o){return new(o||v)}),_t(v,"\u0275cmp",O({type:v,selectors:[["nz-tabs"],["nz-tabset"]],contentQueries:function(o,r,m){if(o&1&&(Zt(m,r.extraContents,ge,4),H(m,kn,5),H(m,Se,5)),o&2){Ut();let D;x(D=I())&&(r.allTabs=D),x(D=I())&&(r.tabLinks=D)}},viewQuery:function(o,r){if(o&1&&F(Bt,5),o&2){let m;x(m=I())&&(r.tabNavBarRef=m.first)}},hostAttrs:[1,"ant-tabs"],hostVars:24,hostBindings:function(o,r){o&2&&M("ant-tabs-card",r.nzType==="card"||r.nzType==="editable-card")("ant-tabs-editable",r.nzType==="editable-card")("ant-tabs-editable-card",r.nzType==="editable-card")("ant-tabs-centered",r.nzCentered)("ant-tabs-rtl",r.dir==="rtl")("ant-tabs-top",r.nzTabPosition==="top")("ant-tabs-bottom",r.nzTabPosition==="bottom")("ant-tabs-left",r.nzTabPosition==="left")("ant-tabs-right",r.nzTabPosition==="right")("ant-tabs-default",r.nzSize==="default")("ant-tabs-small",r.nzSize==="small")("ant-tabs-large",r.nzSize==="large")},inputs:{nzSelectedIndex:"nzSelectedIndex",nzTabPosition:"nzTabPosition",nzTabBarExtraContent:"nzTabBarExtraContent",nzCanDeactivate:"nzCanDeactivate",nzAddIcon:"nzAddIcon",nzTabBarStyle:"nzTabBarStyle",nzType:"nzType",nzSize:"nzSize",nzAnimated:"nzAnimated",nzTabBarGutter:"nzTabBarGutter",nzHideAdd:[2,"nzHideAdd","nzHideAdd",y],nzCentered:[2,"nzCentered","nzCentered",y],nzHideAll:[2,"nzHideAll","nzHideAll",y],nzLinkRouter:[2,"nzLinkRouter","nzLinkRouter",y],nzLinkExact:[2,"nzLinkExact","nzLinkExact",y],nzDestroyInactiveTabPane:[2,"nzDestroyInactiveTabPane","nzDestroyInactiveTabPane",y]},outputs:{nzSelectChange:"nzSelectChange",nzSelectedIndexChange:"nzSelectedIndexChange",nzTabListScroll:"nzTabListScroll",nzClose:"nzClose",nzAdd:"nzAdd"},exportAs:["nzTabs"],features:[Jt([{provide:Ne,useExisting:$t(()=>v)}])],decls:4,vars:12,consts:[["tabpaneTmpl",""],[3,"style","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-content-holder"],[1,"ant-tabs-content"],[3,"tabScroll","selectFocusedIndex","addClicked","selectedIndex","inkBarAnimated","addable","addIcon","hideBar","position","extraTemplate","extraContents"],[1,"ant-tabs-tab",3,"margin-right","margin-bottom","ant-tabs-tab-active","ant-tabs-tab-disabled"],[1,"ant-tabs-tab",3,"click","contextmenu"],["type","button","role","tab","nzTabNavItem","","cdkMonitorElementFocus","",1,"ant-tabs-tab-btn",3,"id","disabled","tab","active"],[4,"nzStringTemplateOutlet","nzStringTemplateOutletContext"],["type","button","nz-tab-close-button","",3,"closeIcon"],["type","button","nz-tab-close-button","",3,"click","closeIcon"],[3,"ngTemplateOutlet"],["role","tabpanel","nz-tab-body","",3,"id","active","content","animated"]],template:function(o,r){o&1&&(N(0,hn,3,10,"nz-tabs-nav",1),g(1,"div",2)(2,"div",3),N(3,vn,2,0),C()()),o&2&&(k(r.tabs.length||r.addable?0:-1),f(2),M("ant-tabs-content-top",r.nzTabPosition==="top")("ant-tabs-content-bottom",r.nzTabPosition==="bottom")("ant-tabs-content-left",r.nzTabPosition==="left")("ant-tabs-content-right",r.nzTabPosition==="right")("ant-tabs-content-animated",r.tabPaneAnimated),f(),k(r.nzHideAll?-1:3))},dependencies:[Bt,ht,we,de,le,tt,J,Ie,yn],encapsulation:2})),v})();var bi=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=qt({type:e});static \u0275inj=Qt({imports:[En,Bt,Rt,bt,Ie]})}return e})();export{Nn as a,kn as b,En as c,bi as d};
@@ -1 +1 @@
1
- import{G as H,H as Z,x as G,z as C}from"./chunk-J43J3F2V.js";import{d as W}from"./chunk-53YRDYLS.js";import{Ca as M,Dc as k,Eb as w,Fb as E,Fc as z,Ha as O,Ic as A,Jc as P,Kb as S,Oa as j,U as I,Vb as d,Xb as m,ac as R,ad as B,bc as s,ca as N,cc as p,da as _,dc as F,f,i as y,m as v,mb as l,n as x,na as T,r as b,ra as c,rd as U,s as g,tc as u,u as D,uc as L,vc as $,vd as h,wd as V}from"./chunk-SJG2JCPL.js";var K=["*"];function Q(n,r){n&1&&(s(0,"span",2),F(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),p())}function X(n,r){}function Y(n,r){if(n&1&&(s(0,"div",6),A(1),p()),n&2){let i=u(2);l(),P(i.nzTip)}}function nn(n,r){if(n&1&&(s(0,"div")(1,"div",4),S(2,X,0,0,"ng-template",5),d(3,Y,2,1,"div",6),p()()),n&2){let i=u(),o=k(1);l(),z("ant-spin-rtl",i.dir==="rtl")("ant-spin-lg",i.nzSize==="large")("ant-spin-sm",i.nzSize==="small")("ant-spin-show-text",i.nzTip),l(),R("ngTemplateOutlet",i.nzIndicator||o),l(),m(i.nzTip?3:-1)}}function tn(n,r){if(n&1&&(s(0,"div",7),$(1),p()),n&2){let i=u();z("ant-spin-blur",i.isLoading())}}var q="spin",gn=(()=>{var o;let n,r=[],i=[];return o=class{_nzModuleName=q;cdr=c(U);directionality=c(G);destroyRef=c(M);nzIndicator=g(this,r,null);nzSize=(g(this,i),"default");nzTip=null;nzDelay=0;nzSimple=!1;nzSpinning=!0;spinning$=new v(this.nzSpinning);delay$=new x(1);isLoading=O(!1);dir="ltr";constructor(){H(q,()=>this.cdr.markForCheck())}ngOnInit(){this.delay$.pipe(N(this.nzDelay),I(),_(e=>this.spinning$.pipe(_(t=>e===0||!t?D(t):new y(a=>{let J=setTimeout(()=>a.next(t),e);return()=>clearTimeout(J)})))),C(this.destroyRef)).subscribe(e=>{this.isLoading.set(e)}),this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzSpinning:t,nzDelay:a}=e;t&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},(()=>{let e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Z()],b(null,null,n,{kind:"field",name:"nzIndicator",static:!1,private:!1,access:{has:t=>"nzIndicator"in t,get:t=>t.nzIndicator,set:(t,a)=>{t.nzIndicator=a}},metadata:e},r,i),e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),f(o,"\u0275fac",function(t){return new(t||o)}),f(o,"\u0275cmp",w({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,a){t&2&&z("ant-spin-nested-loading",!a.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",V],nzSimple:[2,"nzSimple","nzSimple",h],nzSpinning:[2,"nzSpinning","nzSpinning",h]},exportAs:["nzSpin"],features:[j],ngContentSelectors:K,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,a){t&1&&(L(),S(0,Q,5,0,"ng-template",null,0,B),d(2,nn,4,10,"div"),d(3,tn,2,2,"div",1)),t&2&&(l(2),m(a.isLoading()?2:-1),l(),m(a.nzSimple?-1:3))},dependencies:[W],encapsulation:2})),o})(),_n=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=E({type:n});static \u0275inj=T({})}return n})();export{gn as a,_n as b};
1
+ import{G as H,H as Z,x as G,z as C}from"./chunk-PTMJ422K.js";import{d as W}from"./chunk-53YRDYLS.js";import{Ca as M,Dc as k,Eb as w,Fb as E,Fc as z,Ha as O,Ic as A,Jc as P,Kb as S,Oa as j,U as I,Vb as d,Xb as m,ac as R,ad as B,bc as s,ca as N,cc as p,da as _,dc as F,f,i as y,m as v,mb as l,n as x,na as T,r as b,ra as c,rd as U,s as g,tc as u,u as D,uc as L,vc as $,vd as h,wd as V}from"./chunk-SJG2JCPL.js";var K=["*"];function Q(n,r){n&1&&(s(0,"span",2),F(1,"i",3)(2,"i",3)(3,"i",3)(4,"i",3),p())}function X(n,r){}function Y(n,r){if(n&1&&(s(0,"div",6),A(1),p()),n&2){let i=u(2);l(),P(i.nzTip)}}function nn(n,r){if(n&1&&(s(0,"div")(1,"div",4),S(2,X,0,0,"ng-template",5),d(3,Y,2,1,"div",6),p()()),n&2){let i=u(),o=k(1);l(),z("ant-spin-rtl",i.dir==="rtl")("ant-spin-lg",i.nzSize==="large")("ant-spin-sm",i.nzSize==="small")("ant-spin-show-text",i.nzTip),l(),R("ngTemplateOutlet",i.nzIndicator||o),l(),m(i.nzTip?3:-1)}}function tn(n,r){if(n&1&&(s(0,"div",7),$(1),p()),n&2){let i=u();z("ant-spin-blur",i.isLoading())}}var q="spin",gn=(()=>{var o;let n,r=[],i=[];return o=class{_nzModuleName=q;cdr=c(U);directionality=c(G);destroyRef=c(M);nzIndicator=g(this,r,null);nzSize=(g(this,i),"default");nzTip=null;nzDelay=0;nzSimple=!1;nzSpinning=!0;spinning$=new v(this.nzSpinning);delay$=new x(1);isLoading=O(!1);dir="ltr";constructor(){H(q,()=>this.cdr.markForCheck())}ngOnInit(){this.delay$.pipe(N(this.nzDelay),I(),_(e=>this.spinning$.pipe(_(t=>e===0||!t?D(t):new y(a=>{let J=setTimeout(()=>a.next(t),e);return()=>clearTimeout(J)})))),C(this.destroyRef)).subscribe(e=>{this.isLoading.set(e)}),this.directionality.change?.pipe(C(this.destroyRef)).subscribe(e=>{this.dir=e,this.cdr.detectChanges()}),this.dir=this.directionality.value}ngOnChanges(e){let{nzSpinning:t,nzDelay:a}=e;t&&this.spinning$.next(this.nzSpinning),a&&this.delay$.next(this.nzDelay)}},(()=>{let e=typeof Symbol=="function"&&Symbol.metadata?Object.create(null):void 0;n=[Z()],b(null,null,n,{kind:"field",name:"nzIndicator",static:!1,private:!1,access:{has:t=>"nzIndicator"in t,get:t=>t.nzIndicator,set:(t,a)=>{t.nzIndicator=a}},metadata:e},r,i),e&&Object.defineProperty(o,Symbol.metadata,{enumerable:!0,configurable:!0,writable:!0,value:e})})(),f(o,"\u0275fac",function(t){return new(t||o)}),f(o,"\u0275cmp",w({type:o,selectors:[["nz-spin"]],hostVars:2,hostBindings:function(t,a){t&2&&z("ant-spin-nested-loading",!a.nzSimple)},inputs:{nzIndicator:"nzIndicator",nzSize:"nzSize",nzTip:"nzTip",nzDelay:[2,"nzDelay","nzDelay",V],nzSimple:[2,"nzSimple","nzSimple",h],nzSpinning:[2,"nzSpinning","nzSpinning",h]},exportAs:["nzSpin"],features:[j],ngContentSelectors:K,decls:4,vars:2,consts:[["defaultTemplate",""],[1,"ant-spin-container",3,"ant-spin-blur"],[1,"ant-spin-dot","ant-spin-dot-spin"],[1,"ant-spin-dot-item"],[1,"ant-spin","ant-spin-spinning"],[3,"ngTemplateOutlet"],[1,"ant-spin-text"],[1,"ant-spin-container"]],template:function(t,a){t&1&&(L(),S(0,Q,5,0,"ng-template",null,0,B),d(2,nn,4,10,"div"),d(3,tn,2,2,"div",1)),t&2&&(l(2),m(a.isLoading()?2:-1),l(),m(a.nzSimple?-1:3))},dependencies:[W],encapsulation:2})),o})(),_n=(()=>{class n{static \u0275fac=function(o){return new(o||n)};static \u0275mod=E({type:n});static \u0275inj=T({})}return n})();export{gn as a,_n as b};