import{a as h}from"./chunk-V5ZUUTTD.js";import{a as f}from"./chunk-A62DV3ZS.js";import{Cb as d,Eb as E,Fc as T,Ha as g,Sa as m,Za as u,ba as _,eg as N,gb as s,pb as o,pd as A,qb as i,rb as l,ta as S,xb as c,yb as p,zb as D}from"./chunk-OX24XL2F.js";import{i as r}from"./chunk-FQ4ILEWG.js";function y(n,t){n&1&&(o(0,"a",6),D(1,1),i());}function M(n,t){if(n&1&&(o(0,"my-alert",3),l(1,"my-global-icon",4),o(2,"div"),c(3,0),l(4,"strong")(5,"strong")(6,"strong"),p(),i(),u(7,y,2,0,"a",5),i()),n&2){let C=E();g(7),s("ngIf",!C.hideLink());}}var H=(()=>{let t=class t{authService=_(N);hideLink=S(!1);user=null;hasChannelNotConfigured(){return this.user.videoChannels?this.user.videoChannels.filter(e=>e.avatars.length===0||!e.description).length>0:!1;}ngOnInit(){this.user=this.authService.getUser();}};r(t,"\u0275fac",function(F){return new(F||t)();}),r(t,"\u0275cmp",m({type:t,selectors:[["my-channels-setup-message"]],inputs:{hideLink:[1,"hideLink"]},decls:1,vars:1,consts:()=>{let e;e="\u4F60\u7684\u4E00\u4E9B\u9891\u9053\u8FD8\u672A\u5B8C\u5168\u8BBE\u7F6E\u597D\u3002\u6DFB\u52A0"+"[\uFFFD#4\uFFFD|\uFFFD#5\uFFFD|\uFFFD#6\uFFFD]"+"\u6A2A\u5E45"+"[\uFFFD/#4\uFFFD|\uFFFD/#5\uFFFD|\uFFFD/#6\uFFFD]"+"\u3001"+"[\uFFFD#4\uFFFD|\uFFFD#5\uFFFD|\uFFFD#6\uFFFD]"+"\u5934\u50CF"+"[\uFFFD/#4\uFFFD|\uFFFD/#5\uFFFD|\uFFFD/#6\uFFFD]"+"\u548C"+"[\uFFFD#4\uFFFD|\uFFFD#5\uFFFD|\uFFFD#6\uFFFD]"+"\u63CF\u8FF0"+"[\uFFFD/#4\uFFFD|\uFFFD/#5\uFFFD|\uFFFD/#6\uFFFD]"+"\u660E\u786E\u4F60\u53D1\u5E03\u7684\u5185\u5BB9\u8BA9\u8FD9\u4E9B\u9891\u9053\u66F4\u53D7\u6B22\u8FCE\u3002",e=d(e);let F;return F="\u5EFA\u7ACB\u6211\u7684\u9891\u9053",[e,F,["type","primary","class","text-center",4,"ngIf"],["type","primary",1,"text-center"],["iconName","tip"],["class","peertube-button-link secondary-button mt-2","routerLink","/my-library/video-channels",4,"ngIf"],["routerLink","/my-library/video-channels",1,"peertube-button-link","secondary-button","mt-2"]];},template:function(F,a){F&1&&u(0,M,8,1,"my-alert",2),F&2&&s("ngIf",a.hasChannelNotConfigured());},dependencies:[T,f,A,h],styles:[`my-global-icon[_ngcontent-%COMP%]{margin-bottom:.75rem;display:inline-block;width:32px;height:32px;line-height:32px}
/*# sourceMappingURL=channels-setup-message.component-VPNQWTYE.css.map */`]}));let n=t;return n;})();export{H as a};/**i18n:93ef1b86561141301263c1f349fa8abb749523958c3a6dfaf46ed36d22b0a506*///# sourceMappingURL=chunk-OEICXNOD.js.map