1import{a as Y}from"./chunk-XWEWCTWM.js";import{a as v}from"./chunk-JTOMTUIW.js";import{d as K}from"./chunk-PHVUKLU6.js";import"./chunk-KS5XUOQW.js";import{a as W}from"./chunk-AHQDUCN4.js";import{a as G}from"./chunk-UTWXKVAX.js";import"./chunk-7IK32ZZC.js";import"./chunk-RHM35AG4.js";import"./chunk-5CKXU4YP.js";import{a as N}from"./chunk-OP7SSSVI.js";import"./chunk-JP5O6MLZ.js";import"./chunk-AFRWUUKG.js";import{a as $}from"./chunk-LJS4N3J2.js";import"./chunk-M42CR5P3.js";import"./chunk-PLVBWAHW.js";import"./chunk-LG4GO4GI.js";import"./chunk-6D3XJSE5.js";import"./chunk-QR722L3V.js";import{a as H}from"./chunk-OYJ3EW7T.js";import"./chunk-HD2FZGOR.js";import"./chunk-VCPOKOZX.js";import"./chunk-WMUPXAPN.js";import"./chunk-JBRXXFOC.js";import"./chunk-GHI3BADO.js";import{ab as L,db as U}from"./chunk-W5RYLE24.js";import"./chunk-SD4E7GE5.js";import{Ca as x,Dc as D,Eb as _,Gb as f,Gc as F,Kb as l,Nb as T,Ob as z,Pb as o,Qb as a,Qc as R,Rb as u,Vb as E,Xb as k,Yb as s,Za as w,ca as h,cb as c,jb as A,jc as p,lc as g,m as P,oa as b,od as B,pa as y,pb as S,r as M,tb as V,ua as O,uc as I,vc as C,wb as d,xc as j}from"./chunk-CEB27IDP.js";import"./chunk-ZGVHDELW.js";var q=(t,n)=>n.id,J=()=>({label:"HOME",link:"/"}),Q=t=>({label:"AUTHORS",link:t}),X=t=>({label:t}),Z=(t,n,e)=>[t,n,e];function tt(t,n){if(t&1&&p(0),t&2){let e=s();g(", ",e.organization.name,"")}}function et(t,n){if(t&1){let e=E();o(0,"button",8),k("click",function(){b(e);let r=s(3);return y(r.readMore.set(!r.readMore()))}),p(1),o(2,"span",9),p(3,"\u2193"),a()()}if(t&2){let e=s(3);f("rotated",!e.readMore()),c(),g(" ",e.readMore()?"MORE":"LESS"," ")}}function nt(t,n){if(t&1&&(u(0,"div",6),d(1,et,4,3,"button",7)),t&2){let e=n,i=s(2);f("clip",i.readMore()),_("innerHTML",e,w),c(),l(e.length>200?1:-1)}}function it(t,n){t&1&&(o(0,"p",4),p(1,"Description is not available."),a())}function ot(t,n){if(t&1&&u(0,"app-video-item",12),t&2){let e=n.$implicit;_("video",e)("part",e.parts[0])}}function at(t,n){if(t&1&&(o(0,"app-card-grid",10),T(1,ot,1,2,"app-video-item",12,q),D(3,"slice"),a()),t&2){let e=s();_("listView",!1)("maxCards",5),c(),z(F(3,2,e,0,10))}}function rt(t,n){t&1&&(o(0,"div",11)(1,"p",13),p(2,"No videos found."),a(),o(3,"p",14),p(4,"This author has not uploaded any videos yet."),a()())}function ct(t,n){t&1&&d(0,at,4,6,"app-card-grid",10)(1,rt,5,0,"div",11),t&2&&l(n.length?0:1)}function pt(t,n){if(t&1&&(o(0,"div",0),u(1,"app-breadcrumb",1),a(),o(2,"div",2)(3,"h1",3),p(4),d(5,tt,1,1),a(),d(6,nt,2,4)(7,it,2,0,"p",4),a(),o(8,"section",5),d(9,ct,2,1),a()),t&2){let e,i,r=n,m=s();c(),_("breadcrumbItems",j(10,Z,I(5,J),C(6,Q,"/"+m.AppRoute.Authors),C(8,X,r.name))),c(3),g(" ",r.name,""),c(),l(r.organization?5:-1),c(),l((e=r.description)?6:7,e),c(3),l((i=m.videos())?9:-1,i)}}function dt(t,n){t&1&&u(0,"app-spinner")}var Ot=(()=>{class t extends Y{constructor(){super(),this.authorService=h(N),this.injector=h(O),this.slug=x(),this.id=x(),this.readMore=A(!1),this.AppRoute=H,R(()=>{let e=this.author();e&&this.setMeta({title:e.name,description:e.description,image:void 0,index:!0})})}ngOnInit(){this.author=v(()=>this.id()?this.authorService.getAuthorById(+this.id()):this.authorService.getAuthorBySlug(this.slug()),{injector:this.injector}),this.videos=v(()=>{let e=this.id()??this.author()?.id;return e?this.authorService.getAuthorVideos(e,1,10,L.Descending,U.Date,void 0).pipe(M(i=>i?.results??[])):P(void 0)},{injector:this.injector})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-author-page-v2"]],inputs:{slug:[1,"slug"],id:[1,"id"]},features:[V],decls:2,vars:1,consts:[[1,"container","breadcrumb-container"],[3,"breadcrumbItems"],[1,"container"],[1,"author-name"],[1,"no-description"],[1,"container","videos-section"],[1,"author-description",3,"innerHTML"],[1,"read-more",3,"rotated"],[1,"read-more",3,"click"],[1,"download-icon"],[3,"listView","maxCards"],[1,"empty-state"],[3,"video","part"],[1,"empty-state-title"],[1,"empty-state-subtitle"]],template:function(i,r){if(i&1&&d(0,pt,10,14)(1,dt,1,0,"app-spinner"),i&2){let m;l((m=r.author())?0:1,m)}},dependencies:[B,W,$,G,K],styles:[`[_nghost-%COMP%]{width:100%;display:flex;flex-direction:column;flex:1}.breadcrumb-container[_ngcontent-%COMP%]{margin-top:25px}@media only screen and (max-width: 768px){.breadcrumb-container[_ngcontent-%COMP%]{margin-top:45px}}
1.author-name[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:700;color:#0c0c3a;margin:45px 0 0;line-height:1.3}@media only screen and (max-width: 768px){.author-name[_ngcontent-%COMP%]{font-size:1.35rem;margin-top:25px}}.author-description[_ngcontent-%COMP%]{margin-top:25px;color:#0c0c3a;font-size:15px;line-height:1.65}@media only screen and (max-width: 768px){.author-description[_ngcontent-%COMP%]{font-size:14px;margin-top:18px}}.clip[_ngcontent-%COMP%]{overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical}.read-more[_ngcontent-%COMP%]{background:none;border:none;color:#0c0c3a;font-size:16px;font-weight:600;padding:0;cursor:pointer;display:flex;align-items:center;gap:6px;margin-top:15px;float:right}@media only screen and (max-width: 768px){.read-more[_ngcontent-%COMP%]{font-size:14px}}.read-more[_ngcontent-%COMP%] .download-icon[_ngcontent-%COMP%]{display:inline-block;transition:transform .3s ease}.read-more.rotated[_ngcontent-%COMP%] .download-icon[_ngcontent-%COMP%]{transform:rotate(180deg)}.no-description[_ngcontent-%COMP%]{margin-top:25px;color:#4b5563;font-size:15px}.videos-section[_ngcontent-%COMP%]{margin-top:30px}@media only screen and (max-width: 768px){.videos-section[_ngcontent-%COMP%]{margin-top:25px;margin-bottom:25px}}app-card-grid[_ngcontent-%COMP%]{margin-top:0;margin-bottom:45px}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;flex:1;min-height:400px;gap:12px}.empty-state-title[_ngcontent-%COMP%]{font-size:24px;font-weight:700;color:#0c0c3a;text-transform:uppercase;margin:0}@media screen and (max-width: 768px){.empty-state-title[_ngcontent-%COMP%]{font-size:16px}}.empty-state-subtitle[_ngcontent-%COMP%]{font-size:16px;color:#0c0c3a;margin:0} 2/*# sourceMappingURL=author-v2.page-CUMWY3KN.css.map */`],changeDetection:0})}}return t})();export{Ot as default}; 3//# sourceMappingURL=chunk-4SP2YWJV.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.