import{a as A,b as D}from"./chunk-HDNG236Q.js";import{Ga as T,Ha as b,Na as y,Oa as k,Pa as x,Qa as S,Sa as E,Ta as v}from"./chunk-3CM4SKDO.js";import{Fb as _,Jc as a,Wb as d,Yb as g,cc as i,dc as o,ec as s,lc as z,nb as C,rc as c,sb as f,uc as l,ya as m,za as u}from"./chunk-4BRW6LCZ.js";function F(n,p){if(n&1){let t=z();i(0,"button",2),c("click",function(){m(t);let r=l();return u(r.toggle.emit())}),s(1,"span",3),a(2," \u8FD0\u884C "),o()}}function N(n,p){n&1&&(i(0,"button",1),s(1,"span",4),a(2," \u505C\u6B62\u4E2D... "),o())}function B(n,p){if(n&1){let t=z();i(0,"button",5),c("nzOnConfirm",function(){m(t);let r=l();return u(r.stopTask())}),s(1,"span",6),a(2," \u505C\u6B62 "),o(),i(3,"button",7),c("nzOnConfirm",function(){m(t);let r=l();return u(r.restart.emit())}),s(4,"span",8),a(5," \u91CD\u542F "),o()}}var w=class n{isRunning=!1;isStopping=!1;isStartable=!1;toggle=new f;restart=new f;stopTask(){this.toggle.emit()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=_({type:n,selectors:[["app-task-actions"]],inputs:{isRunning:"isRunning",isStopping:"isStopping",isStartable:"isStartable"},outputs:{toggle:"toggle",restart:"restart"},decls:4,vars:1,consts:[["nz-button","","nzType","primary"],["nz-button","","nzType","primary","nzDanger",""],["nz-button","","nzType","primary",3,"click"],["nz-icon","","nzType","play-circle"],["nz-icon","","nzType","loading"],["nz-button","","nzType","primary","nzDanger","","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u505C\u6B62\u8BE5\u4EFB\u52A1\u5417\uFF1F",3,"nzOnConfirm"],["nz-icon","","nzType","pause"],["nz-button","","nzType","default","nz-popconfirm","","nzPopconfirmTitle","\u786E\u5B9A\u8981\u91CD\u542F\u8BE5\u4EFB\u52A1\u5417\uFF1F",3,"nzOnConfirm"],["nz-icon","","nzType","sync"]],template:function(t,e){t&1&&(i(0,"nz-space"),d(1,F,3,0,"button",0)(2,N,3,0,"button",1)(3,B,6,0),o()),t&2&&(C(),g(e.isStartable?1:e.isStopping?2:e.isRunning?3:-1))},dependencies:[k,y,v,E,x,S,b,T,D,A],styles:["[_nghost-%COMP%]{padding:0 16px;display:flex;flex-direction:row;align-items:center;position:relative}"]})};export{w as a};
