PageSourceSearch

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

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

1import{a as X}from"./chunk-LVTB6RQD.js";import"./chunk-JEL6HJ7P.js";import{Bc as Q,Cc as W,Mb as K,Nb as q,Yb as J,bb as $,cb as z,ta as V,tb as U,ua as N,va as O,vb as G,xa as j}from"./chunk-YQOD7X2Z.js";import"./chunk-563YFTIG.js";import"./chunk-36JN3LZY.js";import"./chunk-WPHW6CRH.js";import"./chunk-76O7YCWW.js";import{c as I}from"./chunk-YYIIKC2W.js";import"./chunk-3WYGUSDH.js";import"./chunk-LU7SZU5X.js";import{A as B,j as A,q as M}from"./chunk-PO2RDVKE.js";import{Cc as H,Oc as w,Pb as u,Qc as S,Rb as m,Tb as _,Tc as f,Ub as v,Uc as k,Vb as C,Vc as R,Wb as c,Xb as l,Yb as d,Za as E,Zb as p,_a as D,db as s,ec as L,jc as h,lc as g,n as P,oa as y,pa as x,pb as T,ub as F,zc as b}from"./chunk-3URBZWPM.js";import"./chunk-ODN5LVDJ.js";var Y=i=>({"icon-active":i}),Z=(i,r,t)=>({id:"server",itemsPerPage:i,currentPage:r,totalItems:t}),ie=i=>({centered:i});function te(i,r){if(i&1){let t=L();l(0,"div",5)(1,"div",17),b(2,"Categories"),d(),l(3,"fab-dropdown",18),h("outputReturnSelectedOptions",function(n){y(t);let a=g();return x(a.getSelectedCategoryFilters(n))}),d()()}if(i&2){let t=g();s(3),c("content",t.dropdownCategoriesContent)}}function ae(i,r){if(i&1&&(l(0,"div",20),p(1,"a",21),d()),i&2){let t=r.$implicit;s(),c("href",t.url,D)("innerHTML",t.title,E)}}function ne(i,r){if(i&1&&(l(0,"div",10)(1,"div",19)(2,"div",20),b(3,"SELECTED FILTERS :"),d(),v(4,ae,2,2,"div",20,_),d()()),i&2){let t=g();s(4),C(t.linkList)}}function oe(i,r){if(i&1&&(l(0,"div",12),b(1),d()),i&2){let t=g();s(),H(" ",t.total,' resources found for "',t.resourceTypeDetails.name,'" ')}}function re(i,r){if(i&1&&(l(0,"div",22)(1,"div",23),p(2,"fab-results-card",1),d()()),i&2){let t=r.$implicit;s(2),c("content",t)}}function se(i,r){if(i&1&&(l(0,"div",13)(1,"div",10),v(2,re,3,1,"div",22,_),f(4,"async"),f(5,"paginate"),d()()),i&2){let t=g();s(2),C(R(5,2,k(4,0,t.searchResults),S(5,Z,t.perPage,t.page,t.total)))}}function le(i,r){if(i&1&&(l(0,"div",25),p(1,"fab-secondary-card",1),d()),i&2){let t=r.$implicit;s(),c("content",t)}}function de(i,r){if(i&1&&(l(0,"div",14)(1,"div",24),v(2,le,2,1,"div",25,_),f(4,"async"),f(5,"paginate"),d()()),i&2){let t=g();s(),c("ngClass",w(6,ie,3>t.total)),s(),C(R(5,3,k(4,1,t.searchResults),S(8,Z,t.perPage,t.page,t.total)))}}function ce(i,r){if(i&1){let t=L();l(0,"div",15)(1,"fab-pagination-controls",26),h("pageChange",function(n){y(t);let a=g();return x(a.pageChanged(n,null))}),d()()}}var be=(()=>{let r=class r{constructor(o,n){this.route=o,this.searchService=n,this.perPage=12,this.page=1,this.total=0,this.grid_view=1,this.readMore=[],this.linkList=[],this.tabNavData={},this.resourceTypes=[],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(a=>{this.pathAlias=a.name,this.taxonomyDetails=this.searchService.resourceTypes.hits.filter(e=>e.name.replace(/\s+/g,"-").toLowerCase()===this.pathAlias.toLowerCase())[0],window.scrollTo(0,0)}),n.newSearchConfirmed$.subscribe(a=>{a&&(this.total=a.totalHits,a.hits.forEach(e=>{e.pathAlias.indexOf("knowledge-hub/")!==-1?e.link=e.pathAlias.toLowerCase():e.link="knowledge-hub/content/"+e.technicalResourceType[0].name.toLowerCase()+"/"+e.pathAlias,e.mainImage||(e.mainImage={url:"/assets/images/knowledge-hub/aat-news-general.png"}),e.author&&e.author[0].image&&e.author[0].image.length>1&&(e.author[0].image=e.author[0].image[e.author[0].image.length-1]),e.author&&e.author[0].uuid?e.authorLink=this.buildLinkToAuthor(e.author[0].uuid):e.authorLink=e.link,e.useRouterLink=!0}),this.fullSearchResults=a.hits,this.searchResults=P(a.hits),this.linkList=[],this.searchService.appliedCategoryFilters.forEach(e=>{this.linkList.push({title:e.label,url:"knowledge-hub/categories/"+e.label.replace(/\s+/g,"-").toLowerCase()})})),this.loading=!1})}ngOnInit(){this.loading=!0,this.route.data.subscribe(o=>{this.route.params.subscribe(n=>{for(let a of o.resourceTypes.hits)if(a.name.replace(/\s+/g,"-").toLowerCase()===n.name.toLowerCase()){this.resourceTypeDetails=a,this.resourceTypes=[],this.resourceTypeDetails?(o.resourceTypes.hits.forEac
1h(e=>{e.name.toLowerCase()!==this.resourceTypeDetails.name.toLowerCase()&&this.resourceTypes.push({link:"/knowledge-hub/resources/"+e.name.replace(/\s+/g,"-").toLowerCase(),label:e.name,active:!0,useRouterLink:!0})}),this.tabNavData={title:"Search by resource",items:this.resourceTypes},this.pageChanged(1,!0),this.setUpStandardHero()):console.log("did not find matching resourceTypes details");return}})}),this.route.data.subscribe(o=>{let n=[];o.categories.hits.forEach((e,pe)=>{let ee={label:e.name,value:e.vid,id:e.id};n.push(ee)});let a={placeholder:"Refine your search...",allSelected:"All",options:n};this.dropdownCategoriesContent=a})}pageChanged(o,n){this.page=typeof o=="number"?o:o.pageNumber,n?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.resourceTypeDetails.name?this.resourceTypeDetails.name:""}getSelectedCategoryFilters(o){this.page=1,this.searchService.appliedCategoryFilters=o.filter(n=>n.selected===!0),this.loading||(o.some(n=>n.selected===!0)?(this.filteringTaxonomyTerms=o.map(n=>{if(n.selected)return n.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(n){return new(n||r)(T(I),T(X))},r.\u0275cmp=F({type:r,selectors:[["resource-landing-page"]],decls:22,vars:14,consts:[[1,"resource-landing-page"],[3,"content"],[1,"resource-landing-page__container"],[1,"row","space-between"],[1,"resource-landing-page--filter"],[1,"resource-landing-page-container--filter__dropdown"],[1,"resource-landing-page--format"],[1,"resource-landing-page--format__buttom",3,"click"],[1,"icon","icon-tile",3,"ngClass"],[1,"icon","icon-list",3,"ngClass"],[1,"row"],[1,"resource-landing-page__main-content"],[1,"resource-landing-page--gentle-message"],[1,"resource-landing-page--articles-list"],[1,"resource-landing-page__articles-grid"],[1,"resource-landing-page--pagination"],[1,"resource-landing-page--search-other"],[1,"resource-landing-page--heading"],[3,"outputReturnSelectedOptions","content"],[1,"resource-landing-page--selected-filters"],[1,"resource-landing-page--selected-filters__tag"],[3,"href","innerHTML"],[1,"col-xs-12"],[1,"resource-landing-page--articles-list__element"],[1,"row",3,"ngClass"],[1,"resource-landing-page__articles-grid--margins","col-sm-4","col-xs-12","margin-top-bottom"],["id","server",3,"pageChange"]],template:function(n,a){n&1&&(l(0,"section",0),p(1,"fab-standard-hero",1),l(2,"div",2)(3,"div",3)(4,"div",4),u(5,te,4,1,"div",5),d(),l(6,"div",6)(7,"div",7),h("click",function(){return a.changeArticlesView(1)}),p(8,"i",8),d(),l(9,"div",7),h("click",function(){return a.changeArticlesView(0)}),p(10,"i",9),d()()(),u(11,ne,6,0,"div",10),l(12,"div",11)(13,"div",10),u(14,oe,2,2,"div",12),d(),u(15,se,6,9,"div",13),u(16,de,6,12,"div",14),l(17,"div",10),u(18,ce,2,0,"div",15),d()(),l(19,"div",10)(20,"section",16),p(21,"fab-tab-nav",1),d()()()()),n&2&&(s(),c("content",a.standardHeroData),s(4),m(a.dropdownCategoriesContent?5:-1),s(3),c("ngClass",w(10,Y,a.grid_view)),s(2),c("ngClass",w(12,Y,!a.grid_view)),s(),m(a.linkList.length>0?11:-1),s(3),m(a.searchResults?14:-1),s(),m(a.grid_view===0?15:-1),s(),m(a.grid_view===1?16:-1),s(2),m(a.total>a.perPage?18:-1),s(3),c("content",a.tabNavData))},dependencies:[B,A,q,K,z,O,J,$,V,N,G,U,W,Q,M,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}.resource-landing-page .card.secondary-card{margin:0 10px}.resource-landing-page__container{width:100%;max-width:1050px;margin:0 auto 30px;
1display:flex;flex-direction:column}.resource-landing-page__main-content{width:100%;margin:0 auto 3em;align-items:center}.resource-landing-page--heading{margin-bottom:1em}.resource-landing-page--filter{display:flex;display:-webkit-box;flex-direction:column;width:100%;padding-left:10px}.resource-landing-page--filter div{margin-bottom:1em;margin-right:5px}.resource-landing-page--format{margin:0 auto 1em;display:flex;flex-direction:row}.resource-landing-page--format__buttom{font-size:20px;padding:0 1em}.resource-landing-page--format__buttom .icon{cursor:pointer;opacity:.3}.resource-landing-page--format__buttom .icon-active{opacity:1}.resource-landing-page--format__buttom:first-child{padding-right:0}.resource-landing-page--selected-filters{display:flex;flex-flow:wrap;margin:15px 0 1em -10px;border-bottom-style:solid;border-bottom-color:#e6e5e5;border-bottom-width:1px;padding-left:10px}.resource-landing-page--selected-filters__tag{padding-bottom:20px;padding-left:10px}.resource-landing-page--selected-filters__tag a{display:block;background:#f9f9f9;padding:3px 10px;color:#000;text-decoration:none}.resource-landing-page--articles-list{padding:0 2%;width:97%}.resource-landing-page--articles-list__element{border-bottom-style:solid;border-bottom-color:#e6e6e6;border-bottom-width:1px;padding-top:5px;padding-bottom:5px}.resource-landing-page__articles-grid{width:98.5%}.resource-landing-page__articles-grid--margins{margin-bottom:20px}.resource-landing-page--gentle-message{display:block;color:#000;margin:0 auto;align-self:center}.resource-landing-page--pagination{display:block;margin:1em auto 0;align-self:center}.resource-landing-page--search-other{width:100%;margin-left:10px}@media (min-width: 992px){.resource-landing-page--filter{display:flex;flex-direction:row;width:auto}.resource-landing-page--format{margin:40px 0 0}.resource-landing-page--articles-list{padding:0}.resource-landing-page--articles-list__element{width:85%;margin:0 auto}}@media (min-width: 1200px){.resource-landing-page__main-content{min-width:720px}.resource-landing-page--filter{margin-right:50%}.resource-landing-page--search-other{margin-left:20px}.resource-landing-page--format{margin-top:45px}}.resource-landing-page .dropdown__input{width:200px}.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 i=r;return i})();
2export{be as ResourceLandingPageComponent};

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.