1import{a as le,b as se}from"./chunk-LMX4CKKK.js";import{a as re}from"./chunk-LVTB6RQD.js";import"./chunk-JEL6HJ7P.js";import{Cc as ae,Ea as X,Yb as ne,ac as oe,bb as Y,cb as Z,f as $,ta as K,tb as ee,ua as G,va as q,vb as te,xa as J,yb as ie,za as Q}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import"./chunk-76O7YCWW.js";import{c as U,e as W}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A as z,j as H,q as N}from"./chunk-PO2RDVKE.js";import{Ac as M,Bc as B,Ec as I,Fc as O,Gc as j,Oc as S,Pb as g,Qc as R,Rb as _,Tb as w,Tc as v,Ub as y,Uc as P,Vb as k,Vc as E,Wb as h,Xb as s,Yb as a,Za as D,Zb as u,_a as F,db as r,ec as A,jc as C,lc as p,n as L,oa as m,pa as f,pb as x,ub as V,zc as b}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var ce=t=>({"icon-active":t}),de=(t,l,e)=>({id:"server",itemsPerPage:t,currentPage:l,totalItems:e}),pe=t=>({centered:t});function ue(t,l){if(t&1&&(s(0,"div",5),u(1,"fab-author-card",20)(2,"br"),a()),t&2){let e=p(2);r(),h("content",e.authorCard)}}function he(t,l){if(t&1&&(s(0,"div",22),u(1,"a",23),a()),t&2){let e=l.$implicit;r(),h("href",e.url,F)("innerHTML",e.title,D)}}function ge(t,l){if(t&1&&(s(0,"div",15)(1,"div",21)(2,"div",22),b(3,"SELECTED FILTERS :"),a(),y(4,he,2,2,"div",22,w),a()()),t&2){let e=p(2);r(4),k(e.linkList)}}function _e(t,l){if(t&1&&(s(0,"div",16),b(1),a()),t&2){let e=p(2);r(),B(" Resources by ",e.authorDetails.firstName," ")}}function me(t,l){if(t&1&&(s(0,"div",24)(1,"div",25),u(2,"fab-results-card",20),a()()),t&2){let e=l.$implicit;r(2),h("content",e)}}function fe(t,l){if(t&1&&(s(0,"div",17)(1,"div",15),y(2,me,3,1,"div",24,w),v(4,"async"),v(5,"paginate"),a()()),t&2){let e=p(2);r(2),k(E(5,2,P(4,0,e.searchResults),R(5,de,e.perPage,e.page,e.total)))}}function Ce(t,l){if(t&1&&(s(0,"div",27),u(1,"fab-secondary-card",20),a()),t&2){let e=l.$implicit;r(),h("content",e)}}function be(t,l){if(t&1&&(s(0,"div",18)(1,"div",26),y(2,Ce,2,1,"div",27,w),v(4,"async"),v(5,"paginate"),a()()),t&2){let e=p(2);r(),h("ngClass",S(6,pe,3>e.total)),r(),k(E(5,3,P(4,1,e.searchResults),R(8,de,e.perPage,e.page,e.total)))}}function ve(t,l){if(t&1){let e=A();s(0,"div",19)(1,"fab-pagination-controls",28),C("pageChange",function(i){m(e);let d=p(2);return f(d.pageChanged(i,null))}),a()()}}function xe(t,l){if(t&1){let e=A();s(0,"div",2)(1,"div",3)(2,"h2",4),b(3),a(),g(4,ue,3,1,"div",5),a(),s(5,"div",6)(6,"div",7)(7,"div",8)(8,"div")(9,"div",4),b(10,"Resource Types"),a(),s(11,"fab-dropdown",9),C("outputReturnSelectedOptions",function(i){m(e);let d=p();return f(d.getSelectedResourceTypeFilters(i))}),j("contentChange",function(i){m(e);let d=p();return O(d.dropdownResourceTypesContent,i)||(d.dropdownResourceTypesContent=i),f(i)}),a()(),s(12,"div")(13,"div",4),b(14,"Categories"),a(),s(15,"fab-dropdown",10),C("outputReturnSelectedOptions",function(i){m(e);let d=p();return f(d.getSelectedCategoryFilters(i))}),a()()(),s(16,"div",11)(17,"div",12),C("click",function(){m(e);let i=p();return f(i.changeArticlesView(1))}),u(18,"i",13),a(),s(19,"div",12),C("click",function(){m(e);let i=p();return f(i.changeArticlesView(0))}),u(20,"i",14),a()()(),g(21,ge,6,0,"div",15),s(22,"div",15),g(23,_e,2,1,"div",16),a(),u(24,"br"),g(25,fe,6,9,"div",17),g(26,be,6,12,"div",18),s(27,"div",15),g(28,ve,2,0,"div",19),a(),u(29,"br"),a()()}if(t&2){let e=p();r(3),M(e.authorDetails.title),r(),_(e.authorCard?4:-1),r(7),I("content",e.dropdownResourceTypesContent),r(4),h("content",e.dropdownCategoriesContent),r(3),h("ngClass",S(11,ce,e.grid_view)),r(2),h("ngClass",S(13,ce,!e.grid_view)),r(),_(e.linkList.length>0?21:-1),r(2),_(e.searchResults?23:-1),r(2),_(e.grid_view===0?25:-1),r(),_(e.grid_view===1?26:-1),r(2),_(e.total>e.perPage?28:-1)}}var Fe=(()=>{let l=class l{constructor(n,i,d){this.route=n,this.searchService=i,this.router=d,this.perPage=12,this.page=1,this.total=0,this.grid_view=1,this.linkList=[],this.route.params.subscribe(c=>{this.pathAlias=c.id}),this.searchService.newSearchConfirmed$.subscribe(c=>
1{c&&(this.total=c.totalHits,c.hits.forEach(o=>{o.pathAlias.indexOf("knowledge-hub/")!==-1?o.link=o.pathAlias:o.link="knowledge-hub/content/"+o.technicalResourceType[0].name.toLowerCase()+"/"+o.pathAlias,o.mainImage||(o.mainImage={url:"/assets/images/knowledge-hub/aat-news-general.png"}),o.author&&o.author[0].image&&o.author[0].image.length>1&&(o.author[0].image=o.author[0].image[o.author[0].image.length-1]),o.author&&o.author[0].uuid?o.authorLink=this.buildLinkToAuthor(o.author[0].uuid):o.authorLink=o.link,o.useRouterLink=!0}),this.searchResults=L(c.hits),this.linkList=[],this.searchService.appliedResourceTypeFilters.forEach(o=>{this.linkList.push({title:o.label,url:"content/nowledge-hub/resources/"+o.label.replace(/\s+/g,"-").toLowerCase()})}),this.searchService.appliedCategoryFilters.forEach(o=>{this.linkList.push({title:o.label,url:"knowledge-hub/categories/"+o.label.replace(/\s+/g,"-").toLowerCase()})}),this.loading=!1)}),i.newSingleSelectionConfirmed$.subscribe(c=>{c&&c.hits&&c.totalHits>0&&this.router.navigate([this.buildLinkToResource(c.hits[0])])})}ngOnInit(){this.loading=!0,this.searchService.getAuthorResource(this.pathAlias).subscribe(n=>{n.hits[0]&&(this.authorDetails=n.hits[0],this.authorDetails.image&&this.authorDetails.image.length>1&&(this.authorDetails.image=this.authorDetails.image[this.authorDetails.image.length-1]),this.setUpAuthorCard(),this.searchService.getTechnicalResourceByAuthor(this.perPage,this.page,this.authorDetails.uuid))}),this.route.data.subscribe(n=>{let i=[];n.categories.hits.forEach((c,o)=>{let T={label:c.name,value:c.vid,id:c.id};i.push(T)});let d={placeholder:"All",allSelected:"All",options:i};this.dropdownCategoriesContent=d}),this.route.data.subscribe(n=>{let i=[];n.resourceTypes.hits.forEach((c,o)=>{let T={label:c.name,value:c.vid,id:c.id};i.push(T)});let d={placeholder:"All",allSelected:"All",options:i};this.dropdownResourceTypesContent=d}),window.scrollTo(0,0)}setUpAuthorCard(){this.authorCard={name:this.authorDetails.title,image:this.authorDetails.image,socialLinks:[{icon:"twitter",link:this.authorDetails.twitter},{icon:"linkedin",link:this.authorDetails.linkedin},{icon:"website",link:this.authorDetails.website},{icon:"facebook",link:this.authorDetails.facebook}],body:this.authorDetails.biography,type:"author-page-content",authorLink:this.buildLinkToAuthor(this.authorDetails.uuid),useRouterLink:!0}}pageChanged(n,i){i?window.scrollTo(0,0):window.scrollTo({top:340,behavior:"smooth"}),this.page=typeof n=="number"?n:n.pageNumber,this.searchService.getTechnicalResourceByAuthor(this.perPage,this.page,this.pathAlias)}getSelectedResourceTypeFilters(n){this.page=1,this.searchService.appliedResourceTypeFilters=n.filter(i=>i.selected===!0),this.loading||this.searchService.getFilteredTechnicalResourceByAuthor(this.perPage,this.page,this.authorDetails.uuid)}getSelectedCategoryFilters(n){this.page=1,this.searchService.appliedCategoryFilters=n.filter(i=>i.selected===!0),this.loading||this.searchService.getFilteredTechnicalResourceByAuthor(this.perPage,this.page,this.authorDetails.uuid)}buildLinkToResource(n){return n.pathAlias.toLowerCase()}buildLinkToAuthor(n){return"/knowledge-hub/author/"+n.toLowerCase()}changeArticlesView(n){this.grid_view=n}};l.\u0275fac=function(i){return new(i||l)(x(U),x(re),x(W))},l.\u0275cmp=V({type:l,selectors:[["app-author"]],decls:5,vars:1,consts:[[1,"author-page-container"],[1,"author-page-container__breadcrumb"],[1,"author-page-container--centering"],[1,"author-page-container__hero"],[1,"author-page-container__heading"],[1,"author-page-container__author"],[1,"author-page-container__main-content"],[1,"row","space-between"],[1,"author-page-container__filter"],[3,"outputReturnSelectedOptions","contentChange","content"],[3,"outputReturnSelectedOptions","content"],[1,"author-page-container__format"],[1,"author-page-container__format--button",3,"click"],[1,"icon","icon-tile",3,"ngClass"],[1,"icon","icon-list",3,"ngClass"],[1,"row"],[1,"author-page-container__gentle-message"],[1,"author-page-container__articles-list"],[1,"author-page-container__articles-grid"],[1,"author-page-container__pagination"],[3,"content"],[1,"author-page-container__selected-filters"],[1,"author-page-container__selected-filters--tag"],[3,"href","innerHTML"],[1,"col-xs-12"],[1,"author-page-container__articles-list--element"],[1,"row",3,"ngClass"],[1,"col-sm-4","col-xs-12","author-page-container__articles-grid--margins"],["id","server",3,"pageChange"]],template:function(i,d){i&1&&(s(0,"section",0)(1,"section",1),u(2,"breadcrumb-kh"),a(),g(3,xe,30,15,"div",2),u(4,"br"),a()),i&2&&(r(3),_(d.authorDetails?3:-1))},dependencies:[se,le,ie,ae,Y,Q,K,G,te,ee,X,ne,oe,Z,q,$,z,H,J,N],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.author-page-container{width:100%;display:flex;flex-direction:column}.author-page-container__breadcrumb{margin-top:10px;float:left;margin-left:10px}@media (min-width: 768px){.author-page-container__breadcrumb{margin-left:20px}}.author-page-container__breadcrumb--divider{color:#8d8d8d}.author-page-container--centering{padding:0 10px}.author-page-container__hero{margin-left:10px;margin-top:10px}.author-page-container__home-link{display:block;margin-bottom:20px}@media (min-width: 1200px){.author-page-container__home-link{display:none}}.author-page-container__main-content{width:100%;margin:0 auto;max-width:1050px}.author-page-container__heading{margin-bottom:1em;overflow:hidden}.author-page-container__filter{display:flex;flex-direction:column;width:100%}.author-page-container__filter div{margin-bottom:1em;margin-right:5px}@media (min-width: 992px){.author-page-container__filter>
1div{min-width:200px;max-width:300px}}.author-page-container__format{margin:0 auto 1em;display:flex;flex-direction:row}.author-page-container__format--button{font-size:20px;padding:0 1em}.author-page-container__format--button .icon{cursor:pointer;opacity:.3}.author-page-container__format--button .icon-active{opacity:1}.author-page-container__format--button:first-child{padding-right:0}.author-page-container__selected-filters{display:flex;flex-flow:wrap;margin:15px 0 0 -10px;border-bottom-style:solid;border-bottom-color:#e6e5e5;border-bottom-width:1px}.author-page-container__selected-filters--tag{padding-bottom:20px;padding-left:10px}.author-page-container__selected-filters--tag a{display:block;background:#f9f9f9;padding:3px 10px;color:#000;text-decoration:none}.author-page-container__articles-list--element{border-bottom-style:solid;border-bottom-color:#e6e5e5;border-bottom-width:1px;width:100%;padding-top:5px;padding-bottom:5px}.author-page-container__articles-grid{width:100%}.author-page-container__articles-grid--margins{margin-bottom:20px}.author-page-container__gentle-message{display:block;margin:0 auto;align-self:center;color:#999;overflow:hidden;white-space:nowrap}.author-page-container__pagination{display:block;margin:1em auto 0;align-self:center}@media (min-width: 992px){.author-page-container{display:flex}.author-page-container__filter{display:flex;flex-direction:row;width:auto;margin-right:20%}.author-page-container__format{margin-top:30px}.author-page-container__articles-list--element{width:85%;margin:0 auto}}@media (min-width: 1200px){.author-page-container__filter{margin-right:25%}.author-page-container__format{margin:0;padding-top:45px}}.centered{justify-content:center}.space-between{justify-content:space-between} 2`],encapsulation:2});let t=l;return t})();export{Fe as AuthorPageComponent};
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.