1import"./chunk-S6DUGUKA.js";import{$ as l,$a as v,$e as te,A as O,Bc as k,Ca as d,Cb as j,E as h,Fa as L,Ga as c,Ha as M,Ia as R,L as f,Nb as J,Q as F,R as w,Ra as U,Sa as A,Ta as $,Xa as E,Xe as oe,Zb as D,_ as N,_a as S,aa as g,bd as H,cb as y,db as C,dd as q,fb as x,ia as p,je as ee,ka as a,l as I,md as K,nc as Y,nd as Q,oc as z,od as Z,qb as b,qc as B,rb as G,rc as X,sa as s,sb as W,ta as _,ua as u,ya as T,yb as V}from"./chunk-6ULPYS7P.js";import"./chunk-NF2EONNU.js";var ae=["*"],se=e=>({"flex-align-center":e}),_e=e=>[e],ie=(()=>{let o=class o{};o.ɵfac=function(i){return new(i||o)();},o.ɵcmp=f({type:o,selectors:[["joymo-profile-following-card"]],inputs:{imageUrl:"imageUrl",name:"name",useCenteredLayout:"useCenteredLayout"},standalone:!0,features:[E],ngContentSelectors:ae,decls:8,vars:9,consts:()=>{let t;return t="Unfollow",[t,[1,"flex","flex-column","h-100","gap-12",3,"ngClass"],["alt","WIP",1,"w-100",2,"object-fit","cover",3,"src","ngClass"],[1,"text-md","text-primary","m-b-4"],["role","tertiary","size","small","role","tertiary",1,"w-100",3,"fullWidth"]];},template:function(i,r){i&1&&(M(),s(0,"yo-card",1),u(1,"img",2),s(2,"h4",3)(3,"strong"),A(4),_()(),R(5),s(6,"yo-button",4),d(7,0),_()()),i&2&&(a("ngClass",S(5,se,r.useCenteredLayout)),l(),a("src",r.imageUrl,N)("ngClass",S(7,_e,r.useCenteredLayout?"rounded-max":"rounded-sm")),l(3),$(r.name),l(2),a("fullWidth",!0));},dependencies:[b,k,X,B],encapsulation:2});let e=o;return e;})();var me=(e,o)=>[e,"events",o],pe=(e,o)=>[e,"tags",o];function ce(e,o){if(e&1){let n=T();s(0,"li",12)(1,"a",13)(2,"joymo-profile-following-card",14),L("onUnfollow",function(){let i=F(n).$implicit,r=c(3);return w(r.unfollow("EVENT",i.docId));}),_()()();}if(e&2){let n=o.$implicit,t=c(2).ngIf,i=c();l(),a("routerLink",v(3,me,t,n.docId)),l(),a("name",n.title)("imageUrl",i.imagePerEventId[n.docId]);}}function de(e,o){if(e&1&&(s(0,"yo-grid",10),p(1,ce,3,6,"li",11),_()),e&2){let n=o.ngIf;l(),a("ngForOf",n);}}function fe(e,o){if(e&1){let n=T();s(0,"li",12)(1,"a",13)(2,"joymo-profile-following-card",15),L("onUnfollow",function(){F(n);let i=c(3);return w(i.unfollow("TEAM","team.docId"));}),_()()();}if(e&2){let n=o.$implicit,t=c(2).ngIf;l(),a("routerLink",v(4,pe,t,n.name)),l(),a("name",n.displayName||n.name)("useCenteredLayout",!0)("imageUrl",n.logo);}}function ge(e,o){if(e&1&&(s(0,"yo-grid",10),p(1,fe,3,7,"li",11),_()),e&2){let n=o.ngIf;l(),a("ngForOf",n);}}function ue(e,o){if(e&1&&(s(0,"yo-tabs")(1,"yo-tab",7),p(2,de,2,1,"yo-gri
1d",8),y(3,"async"),_(),s(4,"yo-tab",9),p(5,ge,2,1,"yo-grid",8),y(6,"async"),_()()),e&2){let n=c(),t=U(9);l(2),a("ngIf",C(3,4,n.events$))("ngIfElse",t),l(3),a("ngIf",C(6,6,n.teams$))("ngIfElse",t);}}function Ee(e,o){e&1&&u(0,"yo-icon",16);}var Me=(()=>{let o=class o{constructor(t,i,r){this.fs=t,this.eventsService=i,this.scopeService=r,this.imagePerEventId={},this.channel$=this.scopeService.listenToChannel(),this.homepageUrl$=this.channel$.pipe(I(m=>this.scopeService.getChannelUrlFromChannel(m))),this.teams$=this.channel$.pipe(O(m=>ee(this.fs,{type:"TEAM"},{scope:"CHANNEL",scopeId:m.docId,limit:10}))),this.events$=this.channel$.pipe(O(m=>this.eventsService.getEvents$({onlyState:"ACTIVE_AND_UPCOMING"},{scope:"CHANNEL",scopeId:m.docId})),h(this.channel$),I(([m,ne])=>(m.forEach(P=>{this.imagePerEventId[P.docId]=this.getEventImage(ne,P);}),m)));}unfollow(t,i){throw new Error("NotImplemented");}getEventImage(t,i){let r=this.eventsService.getEventBranding(t,i);return r.bannerImages?r.bannerImages["3/4"]:t.branding.bannerImages["3/4"];}};o.ɵfac=function(i){return new(i||o)(g(J),g(oe),g(te));},o.ɵcmp=f({type:o,selectors:[["joymo-profile-following"]],standalone:!0,features:[E],decls:10,vars:3,consts:()=>{let t;t=" Following ";let i;return i=" You will be notified about new videos from the sources you follow. ",[["loader",""],t,i,[1,"md:w-1/2","m-b-24"],[1,"heading-sm","md:heading-md","m-b-16"],[1,"text-md-spacious"],[4,"ngIf"],["id","following_events","title","Events"],["density","dense",4,"ngIf","ngIfElse"],["id","following_teams","title","Teams"],["density","dense"],["yo-grid-item","",4,"ngFor","ngForOf"],["yo-grid-item",""],[3,"routerLink"],[3,"onUnfollow","name","imageUrl"],[3,"onUnfollow","name","useCenteredLayout","imageUrl"],["icon","loader","size","xxl"]];},template:function(i,r){i&1&&(s(0,"section")(1,"header",3)(2,"h2",4),d(3,1),_(),s(4,"p",5),d(5,2),_()()(),p(6,ue,7,8,"yo-tabs",6),y(7,"async"),p(8,Ee,1,0,"ng-template",null,0,x)),i&2&&(l(6),a("ngIf",C(7,1,r.homepageUrl$)));},dependencies:[j,G,W,V,q,H,z,Y,ie,Z,Q,K,D],encapsulation:2});let e=o;return e;})();export{Me as ProfileFollowing};/**i18n:97d16af80b9e941913080ec17ee9bbcf9996ba7c137660b21174b8d4b6f2b4aa*/ //# sourceMappingURL=chunk-QA3WWVZZ.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.