PageSourceSearch

https://www.aat.org.uk/csr/chunk-X34JZ3VC.js

js aat.org.uk collected 2026-10-03 21:39:33 UTC 11,976 bytes, 2 lines download raw bytes

1import{a as ne}from"./chunk-LVTB6RQD.js";import"./chunk-JEL6HJ7P.js";import{Mb as ee,Nb as te,Xb as ie,Yb as ae,bb as Q,cb as X,ta as $,tb as Y,ua as K,va as q,vb as Z,xa as J}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import"./chunk-76O7YCWW.js";import{a as U,c as W,e as G}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A as z,j,q as N}from"./chunk-PO2RDVKE.js";import{Cc as B,Ec as I,Fc as V,Gc as O,Oc as k,Pb as h,Qc as P,Rb as u,Tb as b,Tc as C,Ub as T,Uc as E,Vb as L,Vc as D,Wb as c,Xb as d,Yb as s,Za as H,Zb as m,_a as A,db as l,ec as R,jc as f,lc as p,n as F,oa as v,pa as w,pb as x,ub as M,zc as _}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var oe=e=>({"icon-active":e}),re=(e,r,t)=>({id:"server",itemsPerPage:e,currentPage:r,totalItems:t}),le=e=>({centered:e});function se(e,r){if(e&1){let t=R();d(0,"div",5)(1,"div",18),_(2,"Resource Types"),s(),d(3,"fab-dropdown",19),f("outputReturnSelectedOptions",function(i){v(t);let a=p();return w(a.getSelectedResourceTypeFilters(i))}),O("contentChange",function(i){v(t);let a=p();return V(a.dropdownResourceTypesContent,i)||(a.dropdownResourceTypesContent=i),w(i)}),s()()}if(e&2){let t=p();l(3),I("content",t.dropdownResourceTypesContent)}}function de(e,r){if(e&1&&(d(0,"div",21),m(1,"a",22),s()),e&2){let t=r.$implicit;l(),c("href",t.url,A)("innerHTML",t.title,H)}}function ge(e,r){if(e&1&&(d(0,"div",10)(1,"div",20)(2,"div",21),_(3,"SELECTED FILTERS :"),s(),T(4,de,2,2,"div",21,b),s()()),e&2){let t=p();l(4),L(t.linkList)}}function ce(e,r){if(e&1&&(d(0,"div",12),_(1),s()),e&2){let t=p();l(),B(" ",t.total,' resources found for "',t.categoryDetails.name,'" ')}}function pe(e,r){if(e&1&&(d(0,"div",23)(1,"div",24),m(2,"fab-results-card",1),s()()),e&2){let t=r.$implicit;l(2),c("content",t)}}function me(e,r){if(e&1&&(d(0,"div",13)(1,"div",10),T(2,pe,3,1,"div",23,b),C(4,"async"),C(5,"paginate"),s()()),e&2){let t=p();l(2),L(D(5,2,E(4,0,t.searchResults),P(5,re,t.perPage,t.page,t.total)))}}function he(e,r){if(e&1&&(d(0,"div",26),m(1,"fab-secondary-card",1),s()),e&2){let t=r.$implicit;l(),c("content",t)}}function ue(e,r){if(e&1&&(d(0,"div",14)(1,"div",25),T(2,he,2,1,"div",26,b),C(4,"async"),C(5,"paginate"),s()()),e&2){let t=p();l(),c("ngClass",k(6,le,3>t.total)),l(),L(D(5,3,E(4,1,t.searchResults),P(8,re,t.perPage,t.page,t.total)))}}function ye(e,r){if(e&1){let t=R();d(0,"div",15)(1,"fab-pagination-controls",27),f("pageChange",function(i){v(t);let a=p();return w(a.pageChanged(i,null))}),s()()}}var ke=(()=>{let r=class r{constructor(o,i,a){this.route=o,this.searchService=i,this.router=a,this.perPage=12,this.page=1,this.total=0,this.grid_view=1,this.readMore=[],this.linkList=[],this.standardHeroData={title:"",topline:"Knowledge Hub",expanded:!1,toplineLink:"knowledge-hub",useRouterLink:!0},this.dropdownSortData={placeholder:"Refine your search...",allSelected:"All",options:[{label:"Latest",value:"dateNewest"},{label:"Relevance",value:"relevance"},{label:"Oldest First",value:"dateOldest"},{label:"Price Low to High",value:"priceLow"},{label:"Price High to Low",value:"priceHigh"},{label:"Popularity",value:"popularity"}]},this.route.params.subscribe(g=>{if(this.pathAlias=g.name,this.taxonomyDetails=this.searchService.categories.hits.filter(y=>y.name.replace(/\s+/g,"-").toLowerCase()===this.pathAlias.toLowerCase())[0],!this.taxonomyDetails){this.router.navigate(["/error/403"]);return}window.scrollTo(0,0)}),a.events.subscribe(g=>{g instanceof U&&this.route.data.subscribe(y=>{this.readMore=[],this.route.params.subscribe(n=>{y.categories.hits.forEach(S=>{n.name!==S.name.replace(/\s+/g,"-").toLowerCase()&&this.readMore.push({title:S.name,url:"knowledge-hub/categories/"+S.name.replace(/\s+/g,"-").toLowerCase()})})})})}),i.newSearchConfirmed$.subscribe(g=>{if(g){this.total=g.totalHits;let y=this.pathAlias;g.hits.forEach(n=>{n.pathAlias.indexOf("knowledge-hub/")!==-1?n.link=n.pathAlias.toLowerCase():n.link="knowledge-hub/content/"+n.technicalResourceType[0].name.toLowerCase()+"/"+n.pathAlias,n.mainImage||(n.mainImage={url:"/assets/images/knowledge-hub/aat-news-general.png"}),n.author&&n.author[0].image&&n.author[0].image.length>1&&(n.author[0].image=n.author[0].image[n.author[0].image.length-1]),n.author&&n.author[0].uuid?n.authorLink=this.buildLinkToAuthor(n.author[0].uuid):n.authorLink=n.link,n.useRouterLink=!0}
1),this.fullSearchResults=g.hits,this.searchResults=F(g.hits),this.linkList=[],this.searchService.appliedResourceTypeFilters.forEach(n=>{this.linkList.push({title:n.label,url:"knowledge-hub/resources/"+n.label.replace(/\s+/g,"-").toLowerCase()})})}this.loading=!1})}ngOnInit(){this.loading=!0,this.route.data.subscribe(o=>{this.route.params.subscribe(i=>{for(let a of o.categories.hits)if(a.name.replace(/\s+/g,"-").toLowerCase()===i.name.toLowerCase()){this.categoryDetails=a,this.pageChanged(1,!0),this.setUpStandardHero();return}})}),this.route.data.subscribe(o=>{let i=[];o.resourceTypes.hits.forEach((g,y)=>{let n={label:g.name,value:g.vid,id:g.id};i.push(n)});let a={placeholder:"Refine your search...",allSelected:"All",options:i};this.dropdownResourceTypesContent=a})}pageChanged(o,i){this.page=typeof o=="number"?o:o.pageNumber,i?window.scrollTo(0,0):window.scrollTo({top:340,behavior:"smooth"}),this.filteringTaxonomyTerms&&this.filteringTaxonomyTerms!==""?this.searchService.getFilteredTechnicalResourceByTaxonomy(this.perPage,this.page,this.taxonomyDetails.id,this.filteringTaxonomyTerms):this.searchService.getTechnicalResourceByTaxonomy(this.perPage,this.page,this.taxonomyDetails.id)}setUpStandardHero(){this.standardHeroData.title=this.categoryDetails.name?this.categoryDetails.name:"",this.standardHeroData.sponsorshipDetails=this.categoryDetails.partnerOrganisation?{image:this.categoryDetails.partnerOrganisation[0].logo.url,link:this.categoryDetails.partnerOrganisation[0].website.uri,text:"Brought to you by"}:null}getSelectedResourceTypeFilters(o){this.page=1,this.searchService.appliedResourceTypeFilters=o.filter(i=>i.selected===!0),this.loading||(o.some(i=>i.selected===!0)?(this.filteringTaxonomyTerms=o.map(i=>{if(i.selected)return i.id}).join(","),this.searchService.getFilteredTechnicalResourceByTaxonomy(this.perPage,this.page,this.taxonomyDetails.id,this.filteringTaxonomyTerms)):(this.filteringTaxonomyTerms="",this.searchService.getTechnicalResourceByTaxonomy(this.perPage,this.page,this.taxonomyDetails.id)))}changeArticlesView(o){this.grid_view=o}buildLinkToAuthor(o){return"/knowledge-hub/author/"+o.toLowerCase()}};r.\u0275fac=function(i){return new(i||r)(x(W),x(ne),x(G))},r.\u0275cmp=M({type:r,selectors:[["category-landing-page"]],decls:24,vars:15,consts:[[1,"category-landing-page"],[3,"content"],[1,"category-landing-page__container"],[1,"row","space-between"],[1,"category-landing-page--filter"],[1,"category-landing-page--filter__dropdown"],[1,"category-landing-page--format"],[1,"category-landing-page--format__buttom",3,"click"],[1,"icon","icon-tile",3,"ngClass"],[1,"icon","icon-list",3,"ngClass"],[1,"row"],[1,"category-landing-page__main-content"],[1,"category-landing-page--gentle-message"],[1,"category-landing-page--articles-list"],[1,"category-landing-page__articles-grid"],[1,"category-landing-page--pagination"],[1,"category-landing-page--search-other"],[3,"useRouterLink","linkList"],[1,"category-landing-page--heading"],[3,"outputReturnSelectedOptions","contentChange","content"],[1,"category-landing-page--selected-filters"],[1,"category-landing-page--selected-filters__tag"],[3,"href","innerHTML"],[1,"col-md-12","col-sm-12","col-xs-12"],[1,"category-landing-page--articles-list__element"],[1,"row",3,"ngClass"],[1,"category-landing-page__articles-grid--margins","col-sm-4","col-xs-12","margin-top-bottom"],["id","server",3,"pageChange"]],template:function(i,a){i&1&&(d(0,"section",0),m(1,"fab-standard-hero",1),d(2,"div",2)(3,"div",3)(4,"div",4),h(5,se,4,1,"div",5),s(),d(6,"div",6)(7,"div",7),f("click",function(){return a.changeArticlesView(1)}),m(8,"i",8),s(),d(9,"div",7),f("click",function(){return a.changeArticlesView(0)}),m(10,"i",9),s()()(),h(11,ge,6,0,"div",10),d(12,"div",11)(13,"div",10),h(14,ce,2,2,"div",12),s(),h(15,me,6,9,"div",13),h(16,ue,6,12,"div",14),d(17,"div",10),h(18,ye,2,0,"div",15),s()(),d(19,"div",10)(20,"section",16)(21,"h3"),_(22,"Search other categories"),s(),m(23,"fab-link-group",17),s()()()()),i&2&&(l(),c("content",a.standardHeroData),l(4),u(a.dropdownResourceTypesContent?5:-1),l(3),c("ngClass",k(11,oe,a.grid_view)),l(2),c("ngClass",k(13,oe,!a.grid_view)),l(),u(a.linkList.length>0?11:-1),l(3),u(a.searchResults?14:-1),l(),u(a.grid_view===0?15:-1),l(),u(a.grid_view===1?16:-1),l(2),u(a.total>a.perPage?18:-1),l(5),c("useRouterLink",!0)("linkList",a.readMore))},dependencies:[z,j,ae,ie,te,ee,Q,$,K,Z,Y,X,q,N,J],styles:[`:root{--aat-ui-grey-25: #bfbfbf;--aat-ui-grey-55: #737373;--aat-slate: #3a5066;--aat-ui-grey-05: #f2f2f2}.margin-top-bottom{margin:10px 0}
1.category-landing-page .dropdown__input{width:200px}.category-landing-page .card.secondary-card{margin:0 10px}.category-landing-page__container{width:100%;max-width:1050px;margin:0 auto 30px;display:flex;flex-direction:column}.category-landing-page__main-content{width:100%;margin:0 auto 3em;align-items:center}.category-landing-page--heading{margin-bottom:1em}.category-landing-page--filter{display:flex;display:-webkit-box;flex-direction:column;width:100%;padding-left:10px}.category-landing-page--filter .col-1.px-0.form_icon{padding-top:12px}@media only screen and (max-width: 768px){.category-landing-page--filter div{margin-bottom:1em;margin-right:8px}}@media only screen and (min-width: 769px){.category-landing-page--filter div{margin-bottom:1em;margin-right:20px}}.category-landing-page--format{margin:0 auto 1em;display:flex;flex-direction:row}.category-landing-page--format__buttom{font-size:20px;padding:0 1em}.category-landing-page--format__buttom .icon{cursor:pointer;opacity:.3}.category-landing-page--format__buttom .icon-active{opacity:1}.category-landing-page--format__buttom:first-child{padding-right:0}.category-landing-page--selected-filters{display:flex;flex-flow:wrap;margin:15px 0 1em -10px;border-bottom-style:solid;border-bottom-color:#e6e6e6;border-bottom-width:1px;padding-left:10px}.category-landing-page--selected-filters__tag{padding-bottom:20px;padding-left:10px}.category-landing-page--selected-filters__tag a{display:block;background:#f9f9f9;padding:3px 10px;color:#000;text-decoration:none}.category-landing-page--articles-list{padding:0 2%;width:97%}.category-landing-page--articles-list__element{border-bottom-style:solid;border-bottom-color:#e6e6e6;border-bottom-width:1px;padding-top:5px;padding-bottom:5px}.category-landing-page__articles-grid{width:98.5%}.category-landing-page__articles-grid--margins{margin-bottom:20px}.category-landing-page--gentle-message{display:block;color:#000;margin:0 auto;padding:0 10px;align-self:center}.category-landing-page--pagination{display:block;margin:1em auto 0;align-self:center}.category-landing-page--search-other{width:100%;margin-left:10px}@media (min-width: 992px){.category-landing-page--filter{display:flex;flex-direction:row;width:auto}.category-landing-page--format{margin:40px 0 0}.category-landing-page--articles-list{padding:0}.category-landing-page--articles-list__element{width:85%;margin:0 auto}}@media (min-width: 1200px){.category-landing-page__main-content{min-width:720px}.category-landing-page--filter{margin-right:50%}.category-landing-page--search-other{margin-left:20px}.category-landing-page--format{margin-top:45px}}.centered{justify-content:center}.space-between{justify-content:space-between}.advert-middle-block{text-align:center;margin:10px 0 3px}.advert-middle-block a{margin:0 10px;display:inline-block}@media (min-width: 1200px){.advert-middle-block a img{width:auto}}.advert-middle-block a img{width:100%}
2`],encapsulation:2});let e=r;return e})();export{ke as CategoryLandingPageComponent};

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.