1import{f as c}from"./chunk-YMDDGZ5U.js";import{a as $}from"./chunk-7OWGJP2F.js";import{k as p,l as d}from"./chunk-XERX3YYW.js";import{Da as B}from"./chunk-LJH5OBMW.js";import{Ca as y,Fd as g,V as o,ca as m,ga as h,lf as l,qa as u,ua as r}from"./chunk-PMSJWPYZ.js";import{a as f}from"./chunk-NIF3MU5U.js";var U=(()=>{class i{http=r(g);occEndPointService=r(l);mediaService=r(B);siteContextService=r($);injector=r(y);getBrand$(e){return this.siteContextService.locale$.pipe(o(),h(t=>this.fetchBrand$(t,e)),m({bufferSize:1,refCount:!0}))}getPremiumBrands(){return this.getBrands$("PREMIUM")}getFavoriteBrands(){return this.getBrands$("FAVORITE")}getBrands$(e){return this.siteContextService.locale$.pipe(o(),h(t=>this.fetchBrands$(t,e)),m({bufferSize:1,refCount:!0}))}getBrandsMedia(e,t,n){let a={altText:e?.name};switch(t){case c.BANNER:a.url=this.getImageEntryPathByKey(n,e?.banner?.formats?.entry||[]);break;case c.THUMBNAIL:a.url=this.getImageEntryPathByKey(n,e?.image?.formats?.entry||[]);break;case c.LOGO:a.url=this.getImageEntryPathByKey(n,e?.additionalImage?.formats?.entry||[]);break}return this.mediaService.getMedia(a)}getImageEntryPathByKey(e,t){let n=e+"_webp";return t.find(s=>s.key===n)?.value||t.find(s=>s.key===e)?.value}fetchBrands$(e,t){return this.http.get(this.occEndPointService.buildUrl("brands",{queryParams:f({lang:e},t?{label:t}:{})})).pipe(d({key:`cms:brands:${e}:${t}`,injector:this.injector}),p({key:`cms:brands:${e}:${t}`,ttl:1e3*60*60,injector:this.injector}))}fetchBrand$(e,t){return this.http.get(this.occEndPointService.buildUrl("brand",{urlParams:{brandCode:t},queryParams:{lang:e}})).pipe(d({key:`cms:brand:${e}:${t}`,injector:this.injector}),p({key:`cms:brand:${e}:${t}`,ttl:1e3*60*60,injector:this.injector}))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=u({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();export{U as a};
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.