1import{a as et}from"./chunk-DKLQYXYI.js";import{a as tt}from"./chunk-F4JHROYZ.js";import{a as nt}from"./chunk-AIFC7VMD.js";import"./chunk-ZE2PQFM2.js";import{a as Ue}from"./chunk-2NUHZIE4.js";import{c as Ze}from"./chunk-KJM33COJ.js";import"./chunk-AJVH4JSO.js";import{a as Xe}from"./chunk-GGT5KUYE.js";import{a as ce}from"./chunk-BPP3E2TO.js";import{a as se}from"./chunk-3SDC52M5.js";import{g as Je}from"./chunk-4KNFSRE5.js";import"./chunk-PMDFIPZC.js";import"./chunk-NUJSW3VU.js";import"./chunk-6NEIA7KQ.js";import{a as Ne,b as He}from"./chunk-YMDDGZ5U.js";import"./chunk-3OL3GXBR.js";import"./chunk-4DAUCYCB.js";import"./chunk-XUPYV42H.js";import{a as Ge}from"./chunk-GW6I55VC.js";import{a as Ke}from"./chunk-4ZJHJNLB.js";import"./chunk-3IRW6MAO.js";import"./chunk-FVZKEHFL.js";import"./chunk-CABTRMED.js";import"./chunk-7EDV3FYO.js";import"./chunk-OBUWOHWX.js";import"./chunk-AWTSZHSK.js";import"./chunk-KUHFH43V.js";import"./chunk-UNHUUWFF.js";import"./chunk-N4SAKXVX.js";import"./chunk-GJK2E2S6.js";import"./chunk-QIWZL5RQ.js";import{f as We,j as Ye}from"./chunk-MOINSKK7.js";import{a as K}from"./chunk-7OWGJP2F.js";import"./chunk-OT5BIL5I.js";import{a as je}from"./chunk-LCAEI3KW.js";import{d as Qe}from"./chunk-NOYQY4IF.js";import"./chunk-RPX352E4.js";import{a as Ve}from"./chunk-CIDLE6M4.js";import{a as G}from"./chunk-XFNOPY4D.js";import"./chunk-SD2GF6LN.js";import"./chunk-VCI6DQU6.js";import"./chunk-ELFTTI6P.js";import"./chunk-DFKOY57W.js";import{g as Q}from"./chunk-3OSB33KW.js";import"./chunk-DL3JVWPO.js";import"./chunk-XERX3YYW.js";import"./chunk-AUTQTPL7.js";import{a as ae}from"./chunk-4Z5MUJO3.js";import{a as Re}from"./chunk-A3QLZGQA.js";import{U as Y,da as le,g as qe,j as ze}from"./chunk-LJH5OBMW.js";import{Ca as Se,Cb as U,Dc as ke,Eb as d,Ec as Ie,F as xe,Fc as ne,Gb as m,Ge as Ee,Hb as j,J as ge,Ja as Z,Jb as O,Jc as r,Kb as F,Kc as a,Lb as C,Lc as ie,Mb as c,Md as Ae,Mh as w,Nb as l,Nh as k,Ob as x,Od as oe,Pa as $e,Pb as me,Pc as Oe,Qa as de,Qb as ue,Sb as _e,Sc as Fe,Tb as fe,Tc as D,V as B,Vb as V,Vc as De,Xb as $,Z as N,Zb as p,a as he,ca as H,cb as i,d as X,eb as Me,fa as be,fc as Te,g as z,ga as P,gc as Le,jc as W,kc as ee,m as Ce,ma as ve,mc as v,nc as M,nd as T,o as A,ob as S,oc as te,pb as Pe,qa as ye,qc as we,ra as Be,rh as re,u,ua as f,v as y,vc as g,wc as b,xc as h,ya as E,za as R}from"./chunk-PMSJWPYZ.js";import{h as J}from"./chunk-NIF3MU5U.js";var it=J(ae());var L=(()=>{class t extends se{siteContext=f(K);hitsPerPage=1e3;indexKey="brands";facetType(){return Ne.SEARCH}analyticsTag$(){return A(He.BRAND_LIST)}filtersInterceptor$(e){return A(e)}facetsInterceptor$(e){return this.siteContext.locale$.pipe(u(n=>e.concat((0,it.range)(5).map(o=>({id:`categoriesLevel${o}.${n}`,name:"category",type:"hierarchical"}))).concat({id:`firstLetter.${n}`,name:"firstLetter"})),H(1))}refinementsInterceptor$(e){return y({queryParams:this.queryParams$,locale:this.siteContext.locale$}).pipe(u(({queryParams:n,locale:o})=>e.concat(n.category?[Je("categoriesLevel",n.category,o)]:[])),H({bufferSize:1,refCount:!0}))}linkInterceptor$(e){return A(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=$e(t)))(o||t)}})();static \u0275prov=ye({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ot=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["trn-brand-product-category-menu"]],features:[ke([{provide:se,useExisting:L}])],decls:1,vars:0,template:function(n,o){n&1&&x(0,"trn-algolia-category-menu")},dependencies:[et],encapsulation:2})}return t})();var ft=()=>["close"];function ht(t,s){if(t&1&&(c(0,"li",1),x(1,"trn-chip",3),l()),t&2){let e=s.$implicit;i(),ee("round"),C("label",e.label)("url",e.link.url)("queryParams",e.link.query)("icons",Ie(9,ft))("size","medium")("iconPlacement","icon-right")("appearance","link")}}function Ct(t,s){if(t&1&&(x(0,"trn-link",2),r(1,"cxTranslate"),r(2,"cxTranslate")),t&2){p();let e=h(4);C("url",e.url)("queryParams",e.query)("ariaLabel",a(1,4,"link_labels.clear_all_filters"))("label",a(2,6,"refinement.clear_all"))}}function xt(t,s){if(t&1&&(c(0,"ul",0),O(1,ht,2,10,"li",1,j),c(3,"li"),g(4),r(5,"async"),d(6,Ct,3,8,"trn-link",2),l()()),t&2){let e=p(),n=h(0);i(),F(n),i(3);let o=b(a(5,1,e.clearFilterLink$));i(2),m(o?6:-1)}}var rt=(()=>{class t{brandAlgoliaService=f(L);facets$=this.brandAlgoliaService.facets$;refinements$=this.brandAlgoliaService.facetRefinements$;clearFilterLink$=this.brandAlgoliaService.clearFilterLink$;chips$=this.refinements$.pipe(P(e=>y(e.map(n=>y({label:this.getLabel$(n),link:this.getLink$(n)}))).pipe(be([]))));getLink$(e){return this.facets$.pipe(P(n=>{let o=n?.find(_=>_.id===e.attributeName);return o.type,this.brandAlgoliaService.getFilterLink$(o?.type==="hierarchical"?o.name:e.attributeName,[e.operator,e.value].filter(
1Boolean).join(","),"remove")}))}getLabel$(e){return A(e.value)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["trn-brand-current-refinements"]],decls:3,vars:4,consts:[[1,"list"],[1,"item"],[3,"url","queryParams","ariaLabel","label"],[3,"label","url","queryParams","icons","size","iconPlacement","appearance"]],template:function(n,o){if(n&1&&(g(0),r(1,"async"),d(2,xt,7,4,"ul",0)),n&2){let _=b(a(1,1,o.chips$));i(2),m(_!=null&&_.length?2:-1)}},dependencies:[Xe,G,k,T,w],styles:["[_nghost-%COMP%]:empty{display:none}.list[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:8px;align-items:center}"]})}return t})();var at=J(ae());var gt=["checkbox"],bt=t=>({name:t});function vt(t,s){if(t&1&&(c(0,"span",4),v(1),l()),t&2){p();let e=h(4);i(),M(e)}}function yt(t,s){if(t&1&&(c(0,"div",8),x(1,"trn-input-text",11),r(2,"cxTranslate"),l()),t&2){let e=p(4),n=h(0);i(),C("placeholder",ie(2,2,"common.search_filters",ne(5,bt,n.name)))("form",e.searchForm)}}function Bt(t,s){if(t&1){let e=V();c(0,"div",9)(1,"trn-checkbox",12,0),$("change",function(){let o=E(e).$implicit,_=p(4);return R(_.refine(o))}),l(),c(3,"span",13),v(4),l()()}if(t&2){let e=s.$implicit;i(),C("label",e.name)("checked",e.isRefined)("disabled",e.count===0),i(3),M(e.count)}}function St(t,s){t&1&&(v(0),r(1,"cxTranslate")),t&2&&te(" ",a(1,1,s)," ")}function $t(t,s){if(t&1){let e=V();c(0,"button",14),$("click",function(){E(e);let o=p(4);return R(o.toggleShowAllFacets())}),d(1,St,2,3),r(2,"async"),l()}if(t&2){let e,n=p(4);i(),m((e=a(2,1,n.showFacetsText$))?1:-1,e)}}function Mt(t,s){if(t&1&&(c(0,"div",7),d(1,yt,3,7,"div",8),r(2,"async"),O(3,Bt,5,4,"div",9,j),r(5,"async"),d(6,$t,3,3,"button",10),r(7,"async"),l()),t&2){let e=p(3);W("expanded",e.expanded()),i(),m(a(2,4,e.showSearch$)?1:-1),i(2),F(a(5,6,e.slicedFacetValues$)),i(3),m(a(7,8,e.showMoreButton$)?6:-1)}}function Pt(t,s){if(t&1){let e=V();c(0,"div",1)(1,"button",2),$("click",function(){E(e);let o=p(2);return R(o.toggleItems())}),c(2,"h3",3),v(3),l(),g(4),r(5,"async"),d(6,vt,2,1,"span",4),x(7,"trn-icon",5),l(),d(8,Mt,8,10,"div",6),l()}if(t&2){let e=p(2),n=h(0);i(3),M(n.name),i();let o=b(a(5,5,e.refinedItemsCount$));i(2),m(o?6:-1),i(),W("expanded",e.expanded()),i(),m(e.expanded()&&n.id!=="price"?8:-1)}}function Tt(t,s){if(t&1&&(g(0),r(1,"async"),d(2,Pt,9,8,"div",1)),t&2){let e=a(1,1,p().facetValues$);i(2),m(e!=null&&e.length?2:-1)}}var lt=(()=>{class t{translationService=f(re);focusMonitor=f(We);liveAnnouncer=f(Ye);injector=f(Se);checkboxComponents=De("checkbox",{read:de});brandAlgoliaService=f(L);facet=D();facet$=oe(this.facet).pipe(B((e,n)=>(0,at.isEqual)(e,n)),xe(Boolean));facetValues$=this.facet$.pipe(P(e=>this.brandAlgoliaService.getFacetValues$(e.id,"name:asc")),H({bufferSize:1,refCount:!0}));allFacetsCount$=this.facetValues$.pipe(u(e=>e.length),B());refinedItemsCount$=this.facetValues$.pipe(u(e=>e.filter(n=>n.isRefined).length),B());showSearchCount=15;limitFacetsCount=10;showAllFacets$=new X(!1);showFacetsCount$=this.showAllFacets$.pipe(P(e=>e?this.allFacetsCount$:A(this.limitFacetsCount)),B());expanded=Z(!1);showFacetsText$=this.showAllFacets$.pipe(u(e=>e?"refinement.show_less":"refinement.show_more"),B());searchForm=new qe({search:new ze("")});filteredFacetValues$=tt(this.facetValues$,this.searchForm.controls.search);slicedFacetValues$=y({facetValues:this.filteredFacetValues$,showFacetsCount:this.showFacetsCount$}).pipe(u(({facetValues:e,showFacetsCount:n})=>e.slice(0,n)),H({bufferSize:1,refCount:!0}));showMoreButton$=this.filteredFacetValues$.pipe(u(e=>e.length>this.limitFacetsCount),B());showSearch$=this.allFacetsCount$.pipe(u(e=>e>this.showSearchCount),B());constructor(){this.searchForm.valueChanges.pipe(P(()=>this.slicedFacetValues$.pipe(N(),u(e=>e.length))),P(e=>this.translationService.translate("common.search_filters",{count:e,name:this.facet()?.name}).pipe(N())),Ae(),ge(500)).subscribe(e=>this.liveAnnouncer.announce(e))}toggleItems(){z.schedule(()=>{this.expanded.update(e=>!e)})}refine(e){this.facet$.pipe(P(n=>this.brandAlgoliaService.changeFilter$(n.id,e.escapedValue)),N(),Ce(z)).subscribe()}toggleShowAllFacets(e=!this.showAllFacets$.getValue()){this.showAllFacets$.next(e),e&&Me(()=>{let n=this.checkboxComponents()?.[this.limitFacetsCount]?.nativeElement?.querySelector('input[type="checkbox"]');n&&this.focusMonitor.focusVia(n,"program")},{injector:this.injector})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["trn-brand-refinement-list"]],viewQuery:function(n,o){n&1&&Te(o.checkboxComponents,gt,5,de),n&2&&Le()},inputs:{facet:[1,"facet"]},decls:3,vars:4,consts:[["checkbox",""],[1,"refinement-list"],[1,"attribute",3,"click"],[1,"title"],[1,"refined-count"],["icon","expand_more",1,"icon"],[1,"items",3,"expanded"],[1,"items"],[1,"wrapper","search"],[1,"wrapper"],["type","button",1,"wrapper","show-more"],["name","search","icon","search",1,"refinement-search",3,"placeholder","form"],["size","medium",3,"change","label","checked","disabled"],[1,"count"],["type","button",1,"wrapper","show-more",3,"click"]],template:function(n,o){if(n&1&&(g(0),r(1,"async"),d(2,Tt,3,3)),n&2){let _=b(a(1,1,o.facet$));i(2),m(_?2:-1)}},dependencies:[Q,Ke,Ge,k,T,w],styles:[".refinement-list[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.1);padding:16px 16px 15px}@media all and (min-width:992px){.refinement-list[_ngcontent-%COMP%]{padding:12px 0 11px}}
1.attribute[_ngcontent-%COMP%]{width:100%;text-align:left;display:flex;justify-content:space-between;align-items:center;cursor:pointer;appearance:none;line-height:inherit}@media(hover:hover){.attribute[_ngcontent-%COMP%]:hover{color:#004a28}}.title[_ngcontent-%COMP%]{font-size:16px;line-height:18px;letter-spacing:normal;padding-top:3px;padding-bottom:3px;font-family:Source Sans Pro,sans-serif;font-weight:600;-webkit-font-smoothing:antialiased;flex:1 0 auto}.icon[_ngcontent-%COMP%]{height:20px;width:auto;font-size:20px}.icon[_ngcontent-%COMP%] img{height:20px;width:auto}.icon[_ngcontent-%COMP%]{transition:all .15s cubic-bezier(.35,0,0,1)}.icon.expanded[_ngcontent-%COMP%]{transform:rotate(180deg)}.items[_ngcontent-%COMP%]{display:none;padding-top:8px}.items.expanded[_ngcontent-%COMP%]{display:block}@media(hover:hover){.items.expanded[_ngcontent-%COMP%] .wrapper[_ngcontent-%COMP%] :hover{color:#004a28}}.wrapper[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.wrapper[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}.wrapper.search[_ngcontent-%COMP%]{display:block}.count[_ngcontent-%COMP%]{font-size:12px;line-height:14px;letter-spacing:normal;padding-top:1px;padding-bottom:1px;color:#0000008c}.refined-count[_ngcontent-%COMP%]{font-size:14px;line-height:16px;letter-spacing:normal;font-family:Source Sans Pro,sans-serif;font-weight:600;-webkit-font-smoothing:antialiased;padding:0 4px;margin-right:8px;display:inline-block;border-radius:2px;background-color:#000;color:#fff}.show-more[_ngcontent-%COMP%]{font-size:14px;line-height:16px;letter-spacing:normal;padding-top:0;padding-bottom:0;color:#007a48;cursor:pointer}"]})}return t})();var st=J(ae());function Lt(t,s){if(t&1){let e=V();c(0,"button",6),r(1,"cxTranslate"),$("click",function(){E(e);let o=p();return R(o.clearQuery())}),x(2,"trn-icon",7),l()}t&2&&U("aria-label",a(1,1,"icon_labels.close"))}var ct=(()=>{class t{brandAlgoliaService=f(L);query$=this.brandAlgoliaService.queryParamsSearchQuery$;searchValue=Z(null);constructor(){this.search=(0,st.debounce)(this.search,750)}search(e){z.schedule(()=>{let n=e.target.value?.trim();this.brandAlgoliaService.setSearchQueryParam(n)})}clearQuery(){z.schedule(()=>{this.brandAlgoliaService.setSearchQueryParam(null),this.searchValue.set(null)})}onValueChange(e){z.schedule(()=>{this.searchValue.set(e.target.value)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["trn-brand-search-box"]],decls:8,vars:7,consts:[["input",""],[1,"search-box"],[1,"wrapper"],["icon","search",1,"icon","search"],["type","text",1,"input",3,"input","keyup","value","placeholder"],["type","button",1,"close-button"],["type","button",1,"close-button",3,"click"],["icon","close",1,"icon"]],template:function(n,o){n&1&&(c(0,"div",1)(1,"div",2),x(2,"trn-icon",3),c(3,"input",4,0),r(5,"async"),r(6,"cxTranslate"),$("input",function(I){return o.search(I)})("keyup",function(I){return o.onValueChange(I)}),l(),d(7,Lt,3,3,"button",5),l()()),n&2&&(i(3),C("value",a(5,3,o.query$))("placeholder",a(6,5,"common.search_placeholder")),i(4),m(o.searchValue()?7:-1))},dependencies:[Q,k,T,w],styles:["[_nghost-%COMP%]{display:flex}.search-box[_ngcontent-%COMP%]{width:100%}.wrapper[_ngcontent-%COMP%]{position:relative}.input[_ngcontent-%COMP%]{transition:all .15s cubic-bezier(.35,0,0,1);width:100%;height:48px;border:1px solid #5d5c5b;border-radius:6px;padding:0 39px;font-size:16px}.input[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#0000008c}.input[_ngcontent-%COMP%]::-moz-placeholder{color:#0000008c}.input[_ngcontent-%COMP%]:-moz-placeholder{color:#0000008c}.input[_ngcontent-%COMP%]:-ms-input-placeholder{color:#0000008c}.icon[_ngcontent-%COMP%]{height:20px;width:auto;font-size:20px}.icon[_ngcontent-%COMP%] img{height:20px;width:auto}.icon.search[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);left:15px;color:#0000008c}.close-button[_ngcontent-%COMP%]{position:absolute;top:50%;transform:translateY(-50%);width:24px;height:24px;right:15px;font-size:0}"]})}return t})();var wt=t=>({count:t});function kt(t,s){if(t&1&&(me(0,"p",1),v(1),r(2,"async"),r(3,"cxTranslate"),ue()),t&2){let e=p(3),n=h(0);i(),we(" 0 - ",a(2,3,e.hitsLength$)," ",a(3,5,"refinement.of")," ",n.nbHits," ")}}function It(t,s){if(t&1&&d(0,kt,4,7,"p",1),t&2){p(2);let e=h(0);m(e.page>=1?0:-1)}}function Ot(t,s){if(t&1&&(me(0,"p",0),v(1),r(2,"cxTranslate"),ue()),t&2){p(2);let e=h(0);i(),te(" ",ie(2,1,"refinement.brand",ne(4,wt,e.nbHits))," ")}}function Ft(t,s){if(t&1&&d(0,It,1,1)(1,Ot,3,6,"p",0),t&2){let e,n=p();m((e=n.appearanceFor())==="infinite-hits"?0:1)}}var pt=(()=>{class t{brandAlgoliaService=f(L);appearanceFor=D("default");searchResults$=this.brandAlgoliaService.searchResults$;hitsPerPage=this.brandAlgoliaService.hitsPerPage;hitsLength$=this.brandAlgoliaService.hits$.pipe(u(e=>e.length));static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["trn-brand-stats"]],inputs:{appearanceFor:[1,"appearanceFor"]},decls:3,vars:4,consts:[[1,"stats"],[1,"stats","infinite-hits"]],template:function(n,o){if(n&1&&(g(0),r(1,"async"),d(2,Ft,2,1)),n&2){let _=b(a(1,1,o.searchResults$));i(2),m(_?2:-1)}},dependencies:[k,T,w],styles:[".stats[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px;text-align:center}@media all and (min-width:992px){.stats[_ngcontent-%COMP%]{text-align:left}}.stats.infinite-hits[_ngcontent-%COMP%]{color:#0000008c}"]})}return t})();var mt=J(ae());var dt=(()=>{class t{breakpointService=f(le);siteContextService=f(K);searchInsightService=f(ce);brand=D();index=D(Re.algoliaConfig.index.brands.relevance);queryID=D();position=D(0);onClick=Fe();BREAKPOINT=Y;url=Oe(()=>this.brand()?.url);isTablet$=this.breakpointService.isUp(Y.lg);brand$=oe(this.brand);label$=y([this.brand$,this.siteContextService.locale$]).pipe(u(([e,n])=>e?.name?.[n]),B());clickHandler(){this.brand()?.objectID&&(this.queryID()?this.searchInsightService.clickedObjectIDsAfterSearch({eventName:"Brand click",index:this.index(),objectIDs:[this.brand().objectID],queryID:this.queryID(),positions:[this.position()]}):this.searchInsightService.clickedObjectIDs({eventName:"Brand click",index:this.index(),objectIDs:[this.brand().objectID]}),this.onClick.emit())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["trn-brand-item"]],inputs:{brand:[1,"brand"],index:[1,"index"],queryID:[1,"queryID"],position:[1,"position"]},outputs:{onClick:"onClick"},decls:3,vars:7,consts:[["color","tertiary",3,"onClick","label","url","size"]],template:function(n,o){n&1&&(c(0,"trn-link",0),r(1,"async"),r(2,"async"),$("onClick",function(){return o.clickHandler()}),l()),n&2&&C("label",a(1,3,o.label$))("url",o.url())("size",a(2,5,o.isTablet$)?"medium":"small")},dependencies:[G,T],styles:["[_nghost-%COMP%]{display:flex}"]}
1)}return t})();var ut=(t,s)=>s.code;function Dt(t,s){if(t&1&&x(0,"trn-brand-refinement-list",5),t&2){p();let e=h(0);C("facet",e)}}function At(t,s){if(t&1&&x(0,"trn-brand-thumbnail",17),t&2){let e=s.$implicit;p(4);let n=h(2);C("brand",e)("premium",!0)("queryID",n)}}function Et(t,s){if(t&1&&(c(0,"div",14)(1,"h3",15),v(2),r(3,"cxTranslate"),l(),c(4,"trn-carousel",16),r(5,"cxTranslate"),O(6,At,1,3,"trn-brand-thumbnail",17,ut),l()()),t&2){p();let e=h(0);i(2),M(a(3,2,"common.premium_brands")),i(2),U("aria-label",a(5,4,"common.premium_brands")),i(2),F(e)}}function Rt(t,s){if(t&1&&(g(0),r(1,"async"),d(2,Et,8,6,"div",14)),t&2){let e=b(a(1,1,p(2).premiumBrands$));i(2),m(e!=null&&e.length?2:-1)}}function Vt(t,s){if(t&1&&x(0,"trn-brand-thumbnail",20),t&2){let e=s.$implicit;p(4);let n=h(2);C("brand",e)("queryID",n)}}function qt(t,s){if(t&1&&(c(0,"div",18)(1,"h3",15),v(2),r(3,"cxTranslate"),l(),c(4,"trn-carousel",19),r(5,"cxTranslate"),O(6,Vt,1,2,"trn-brand-thumbnail",20,ut),l()()),t&2){p();let e=h(0);i(2),M(a(3,2,"common.popular_brands")),i(2),U("aria-label",a(5,4,"common.popular_brands")),i(2),F(e)}}function zt(t,s){if(t&1&&(g(0),r(1,"async"),d(2,qt,8,6,"div",18)),t&2){let e=b(a(1,1,p(2).favoriteBrands$));i(2),m(e!=null&&e.length?2:-1)}}function jt(t,s){if(t&1&&(d(0,Rt,3,4),r(1,"async"),d(2,zt,3,4),r(3,"async")),t&2){let e=p();m(a(1,2,e.showPremiumBrands$)?0:-1),i(2),m(a(3,4,e.showFavoriteBrands$)?2:-1)}}function Nt(t,s){if(t&1&&(c(0,"li"),x(1,"trn-brand-item",28),l()),t&2){let e=s.$implicit,n=s.$index;p(5);let o=h(2),_=h(4);i(),C("brand",e)("index",_)("position",n+1)("queryID",o)}}function Ht(t,s){if(t&1){let e=V();c(0,"trn-link",29),r(1,"cxTranslate"),r(2,"cxTranslate"),$("onClick",function(){E(e);let o=p().$implicit,_=p(4);return R(_.toggleSortedList(o.letter))}),l()}if(t&2){p();let e=h(1),n=h(8);C("label",e?a(1,3,"common.show_less"):a(2,5,"common.show_more"))("icon",e?"remove":"add")("size",n?"medium":"small")}}function Qt(t,s){if(t&1&&(c(0,"li",24),g(1),r(2,"async"),c(3,"h4",25),v(4),l(),c(5,"ul",26),O(6,Nt,2,4,"li",null,j),l(),g(8),r(9,"async"),d(10,Ht,3,7,"trn-link",27),l()),t&2){let e=s.$implicit,n=p(4);i();let o=b(a(2,4,n.isExpanded$(e.letter)));i(3),M(e.letter),i(),W("collapsed",!o),i(),F(e.hits),i(2);let I=b(a(9,7,n.breakpointService.isUp(n.BREAKPOINT.lg)))?25:10;i(2),m(e.count>I?10:-1)}}function Gt(t,s){if(t&1&&(c(0,"ul",23),O(1,Qt,11,10,"li",24,j),l()),t&2){p();let e=h(4);i(),F(e)}}function Kt(t,s){if(t&1&&(c(0,"div",21)(1,"h3",15),v(2),r(3,"cxTranslate"),l(),g(4),r(5,"async"),d(6,Gt,3,0,"ul",23),l()),t&2){i(2),M(a(3,2,"common.all_brands")),i(2);let e=b(a(5,4,p(2).hitsGroups$));i(2),m(e?6:-1)}}function Ut(t,s){t&1&&(c(0,"div",22),x(1,"trn-icon",30),c(2,"h3",15),v(3),r(4,"cxTranslate"),l(),c(5,"p"),v(6),r(7,"cxTranslate"),l()()),t&2&&(i(3),M(a(4,2,"refinement.no_brand_results_found")),i(3),M(a(7,4,"common.try_rephrasing_search")))}function Wt(t,s){if(t&1&&d(0,Kt,7,7,"div",21)(1,Ut,8,6,"div",22),t&2){p();let e=h(26);m(e.nbHits?0:1)}}function Yt(t,s){if(t&1&&x(0,"trn-brand-refinement-list",5),t&2){p();let e=h(0);C("facet",e)}}var _t=(()=>{class t{brandService=f(Ue);trans=f(re);brandAlgoliaService=f(L);modalService=f(Qe);siteContextService=f(K);breakpointService=f(le);searchInsightService=f(ce);BREAKPOINT=Y;subs=new he;premiumBrands$=this.brandService.getPremiumBrands().pipe(u(e=>e.brands));showPremiumBrands$=this.premiumBrands$.pipe(u(e=>e&&e.length>0));favoriteBrands$=this.brandService.getFavoriteBrands().pipe(u(e=>e.brands));showFavoriteBrands$=this.favoriteBrands$.pipe(u(e=>e&&e.length>0));facetName$=this.trans.translate("refinement.name");facet$=y([this.facetName$,this.siteContextService.locale$]).pipe(u(([e,n])=>({id:`firstLetter.${n}`,name:e})));searchResults$=this.brandAlgoliaService.searchResults$;index$=this.searchResults$.pipe(u(e=>e.index),B());queryID$=this.searchResults$.pipe(u(e=>e.queryID),B());highlightedBrandsVisible$=y({searchResults:this.searchResults$,refinements:this.brandAlgoliaService.facetRefinements$}).pipe(u(({searchResults:e,refinements:n})=>n.length===0&&e.query===""||e.nbHits===0),B());expandedHits$=new X([]);hits$=this.brandAlgoliaService.hits$;hitsGroups$=y({hits:this.hits$,facets:this.facet$.pipe(P(e=>this.brandAlgoliaService.getFacetValues$(e.id,"name:asc")))}).pipe(u(({hits:e,facets:n})=>n.map(o=>{let _=e.filter(I=>I.firstLetter?.en===o.escapedValue);return{letter:o.escapedValue,count:_.length,hits:_}}).filter(o=>o.count)));modalId="brandsRefinementsModal";constructor(){this.subs.add(y([this.premiumBrands$,this.favoriteBrands$,this.hits$]).pipe(u(e=>e.flat().map(n=>
1n.objectID||n.algoliaObjectId).filter(Boolean)),ve(this.searchResults$)).subscribe(([e,n])=>{this.searchInsightService.viewedObjectIDs({eventName:"Viewed brands",index:n.index,queryID:n.queryID,objectIDs:e})})),this.subs.add(this.brandAlgoliaService.refinements$.pipe(P(e=>this.searchResults$.pipe(N(),u(n=>[e,n])))).subscribe(([e,n])=>{this.searchInsightService.viewedFilters({index:n.index},e)}))}openModal(){this.modalService.open(this.modalId)}closeModal(){this.modalService.close(this.modalId)}ngOnDestroy(){this.subs.unsubscribe()}toggleSortedList(e){this.expandedHits$.next((0,mt.xor)(this.expandedHits$.getValue(),[e]))}isExpanded$(e){return this.expandedHits$.pipe(u(n=>n.some(o=>o===e)))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=S({type:t,selectors:[["trn-brand-list"]],decls:39,vars:50,consts:[[1,"brand-list"],[1,"container-primary"],[1,"filters"],[1,"sr-only"],[1,"menu"],[3,"facet"],[1,"results"],[1,"brand-results-controls"],[1,"refinements-modal-trigger",3,"onClick","size","iconPlacement","icon","label","color","fill"],[3,"identifier","closable","title"],["content",""],["footer",""],[3,"onClick","size","color","label","fill"],[3,"onClick","size","label","fill"],[1,"highlighted-brands","premium"],[1,"heading-3"],[1,"premium-brands-carousel"],["size","large",3,"brand","premium","queryID"],[1,"highlighted-brands","popular"],[1,"popular-brands-carousel"],[1,"popular-thumbnail",3,"brand","queryID"],[1,"all-brands"],[1,"no-results-info-box"],[1,"sorted-results-list"],[1,"sorted-results-item"],[1,"heading-4"],[1,"hits-list"],["iconPlacement","icon-right","appearance","button",1,"read-more-button",3,"label","icon","size"],[3,"brand","index","position","queryID"],["iconPlacement","icon-right","appearance","button",1,"read-more-button",3,"onClick","label","icon","size"],["icon","search_off",1,"icon"]],template:function(n,o){if(n&1&&(g(0),r(1,"async"),g(2),r(3,"async"),g(4),r(5,"async"),c(6,"section",0)(7,"div",1)(8,"aside",2)(9,"h2",3),v(10),r(11,"cxTranslate"),l(),x(12,"trn-brand-product-category-menu",4),d(13,Dt,1,1,"trn-brand-refinement-list",5),l(),c(14,"div",6)(15,"h2",3),v(16),r(17,"cxTranslate"),l(),c(18,"div",7)(19,"trn-button",8),r(20,"cxTranslate"),$("onClick",function(){return o.openModal()}),l(),x(21,"trn-brand-stats")(22,"trn-brand-search-box")(23,"trn-brand-current-refinements"),l(),d(24,jt,4,6),r(25,"async"),g(26),r(27,"async"),d(28,Wt,2,1),l()()(),c(29,"trn-modal",9),r(30,"cxTranslate"),_e(31,10),x(32,"trn-brand-product-category-menu",4),d(33,Yt,1,1,"trn-brand-refinement-list",5),fe(),_e(34,11),c(35,"trn-button",12),r(36,"cxTranslate"),$("onClick",function(){return o.closeModal()}),l(),c(37,"trn-button",13),r(38,"cxTranslate"),$("onClick",function(){return o.closeModal()}),l(),fe(),l()),n&2){let _=b(a(1,24,o.facet$));i(2),b(a(3,27,o.queryID$)),i(2),b(a(5,30,o.index$)),i(6),M(a(11,33,"refinement.filter_and_sort")),i(3),m(_?13:-1),i(3),M(a(17,35,"common.brands")),i(3),ee("outlined"),C("size","medium")("iconPlacement","icon-right")("icon","tune")("label",a(20,37,"refinement.filter_and_sort"))("color","primary")("fill",!0),i(5),m(a(25,39,o.highlightedBrandsVisible$)?24:-1),i(2);let I=b(a(27,41,o.searchResults$));i(2),m(I?28:-1),i(),C("identifier",o.modalId)("closable",!1)("title",a(30,44,"refinement.filter_and_sort")),i(4),m(_?33:-1),i(2),C("size","medium")("color","secondary")("label",a(36,46,"common.close"))("fill",!0),i(2),C("size","medium")("label",a(38,48,"common.show_all"))("fill",!0)}},dependencies:[k,Ve,nt,dt,G,Q,je,ot,lt,pt,ct,rt,Ze,T,w],styles:[".results[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:32px}@media all and (min-width:992px){.results[_ngcontent-%COMP%]{gap:48px}}.brand-results-controls[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:8px}@media all and (min-width:992px){.brand-results-controls[_ngcontent-%COMP%]{gap:16px}}@media all and (max-width:991px){trn-brand-stats[_ngcontent-%COMP%]{order:1}}@media all and (max-width:991px){trn-brand-current-refinements[_ngcontent-%COMP%]{order:2}}.no-results-info-box[_ngcontent-%COMP%]{border:1px solid #e7e5e5;border-radius:12px;padding:15px 31px;text-align:center}@media all and (min-width:992px){.no-results-info-box[_ngcontent-%COMP%]{padding:47px}}.no-results-info-box[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{height:24px;width:auto;font-size:24px}.no-results-info-box[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img{height:24px;width:auto}.no-results-info-box[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{margin-bottom:16px;color:#0000008c}@media all and (min-width:992px){.no-results-info-box[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%]{height:32px;width:auto;font-size:32px}.no-results-info-box[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img{height:32px;width:auto}}.brand-list[_ngcontent-%COMP%]{padding-top:32px;padding-bottom:32px}@media all and (min-width:992px){.brand-list[_ngcontent-%COMP%]{padding-top:48px;padding-bottom:48px}}@media all and (min-width:992px){.container-primary[_ngcontent-%COMP%]{display:grid;grid-gap:16px;grid-template-columns:216px minmax(0,1fr)}}@media all and (max-width:991px){.filters[_ngcontent-%COMP%]{display:none}}@media all and (min-width:992px){.refinements-modal-trigger[_ngcontent-%COMP%]{display:none}}.highlighted-brands[_ngcontent-%COMP%], .all-brands[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}@media all and (min-width:992px){.highlighted-brands[_ngcontent-%COMP%], .all-brands[_ngcontent-%COMP%]{gap:24px}}
1.premium-brands-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 2}@media all and (min-width:992px){.premium-brands-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 4;--trn-carousel-gap: 16px}}.popular-brands-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 3}@media all and (min-width:992px){.popular-brands-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 5;--trn-carousel-gap: 16px}}.sorted-results-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}@media all and (min-width:992px){.sorted-results-list[_ngcontent-%COMP%]{gap:24px}}.sorted-results-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;padding-bottom:16px;border-bottom:1px solid rgba(0,0,0,.1)}.hits-list[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.hits-list.collapsed[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:none}.hits-list.collapsed[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(-n+10){display:block}@media all and (min-width:992px){.hits-list.collapsed[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:nth-child(-n+25){display:block}}.hits-list[_ngcontent-%COMP%] trn-brand-item[_ngcontent-%COMP%] .link{height:auto}.hits-list[_ngcontent-%COMP%] trn-brand-item[_ngcontent-%COMP%] .link-label{white-space:unset}@media all and (min-width:992px){.hits-list[_ngcontent-%COMP%]{grid-template-columns:repeat(5,1fr)}}"]})}return t})();var Oi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Pe({type:t});static \u0275inj=Be({providers:[Ee({cmsComponents:{TrnBrandListComponent:{component:_t}}})]})}return t})();export{Oi as TrnBrandListModule};
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.