1import{a as N}from"./chunk-2NUHZIE4.js";import{a as G,c as V}from"./chunk-KJM33COJ.js";import{a as W}from"./chunk-NUJSW3VU.js";import{f as O,g as R}from"./chunk-YMDDGZ5U.js";import"./chunk-3OL3GXBR.js";import"./chunk-4DAUCYCB.js";import"./chunk-XUPYV42H.js";import{a as j}from"./chunk-CABTRMED.js";import"./chunk-7EDV3FYO.js";import"./chunk-OBUWOHWX.js";import"./chunk-KUHFH43V.js";import"./chunk-GJK2E2S6.js";import"./chunk-QIWZL5RQ.js";import"./chunk-MOINSKK7.js";import"./chunk-7OWGJP2F.js";import"./chunk-OT5BIL5I.js";import{a as U}from"./chunk-CIDLE6M4.js";import"./chunk-SD2GF6LN.js";import{a as z}from"./chunk-VCI6DQU6.js";import"./chunk-ELFTTI6P.js";import"./chunk-DFKOY57W.js";import"./chunk-3OSB33KW.js";import"./chunk-DL3JVWPO.js";import"./chunk-XERX3YYW.js";import"./chunk-AUTQTPL7.js";import"./chunk-4Z5MUJO3.js";import"./chunk-A3QLZGQA.js";import{Y as B}from"./chunk-LJH5OBMW.js";import{Cb as b,Eb as s,Gb as u,Ge as Q,Jb as M,Jc as l,Kb as P,Kc as m,Lb as C,Mb as a,Mh as A,Nb as d,Nh as I,Ob as p,Ub as k,Xa as T,Za as H,Zb as r,cb as i,kc as S,mc as D,nc as F,nd as y,ob as x,pb as K,ra as J,u as w,ua as g,vc as f,wc as _,xc as c,xe as $,ye as E}from"./chunk-PMSJWPYZ.js";import"./chunk-NIF3MU5U.js";var ne=(e,o)=>o.code;function ie(e,o){if(e&1&&(p(0,"h2",2),l(1,"safeHtml")),e&2){r(2);let t=c(0);C("innerHTML",m(1,1,t.title),T)}}function oe(e,o){if(e&1&&p(0,"img",10),e&2){r();let t=c(2);C("src",t.src,H)("alt",t.alt)}}function ae(e,o){if(e&1&&(a(0,"span",11),D(1),d()),e&2){let t=r().$implicit;i(),F(t.name)}}function re(e,o){if(e&1&&(a(0,"a",7),l(1,"trnDecodeUrl"),f(2),a(3,"div",9),s(4,oe,1,2,"img",10)(5,ae,2,1,"span",11),d()()),e&2){let t=o.$implicit;C("routerLink",m(1,2,t.url)),i(2);let n=_(r(2).getBrandMedia(t));i(2),u(n!=null&&n.src?4:5)}}function le(e,o){if(e&1&&(a(0,"div",8),p(1,"trn-button",12),l(2,"cxTranslate"),d()),e&2){r(2);let t=c(0);i(),S("outlined"),C("appearance","link")("size","medium")("iconPlacement","icon-right")("icon","arrow_forward")("fill",!0)("url",t.externalLink.url)("label",t.externalLink.linkName)("targetBlank",t.externalLink.target==="true"),b("aria-label",`${m(2,11,"common.link_to")} ${t.externalLink.name.toLowerCase()}`)}}function me(e,o){if(e&1&&(a(0,"section",0)(1,"div",1),s(2,ie,2,3,"h2",2),a(3,"trn-carousel",3),p(4,"trn-carousel-arrow",4)(5,"trn-carousel-arrow",5),k(6,6),M(7,re,6,5,"a",7,ne),d(),s(9,le,3,13,"div",8),d()()),e&2){r();let t=c(0),n=c(2);i(2),u(t.title?2:-1),i(),b("aria-label",t.title),i(4),P(n),i(2),u(t.externalLink!=null&&t.externalLink.url?9:-1)}}var X=(()=>{class e{brandService=g(N);component=g(B);componentData$=this.component.data$;brands$=this.brandService.getFavoriteBrands().pipe(w(t=>t.brands));getBrandMedia(t){return this.brandService.getBrandsMedia(t,O.THUMBNAIL,R.LARGE)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=x({type:e,selectors:[["trn-homepage-favorite-brands"]],decls:5,vars:7,consts:[[1,"homepage-favorite-brands","trn-showcase-layout","trn-brand-showcase-layout"],[1,"container-secondary","trn-showcase-layout-body"],[1,"heading-2",3,"innerHTML"],[1,"trn-brand-showcase-layout-carousel"],["slot","before","direction","prev",1,"visible-lg"],["slot","after","direction","next",1,"visible-lg"],["ngProjectAs","[trn-carousel-controls]",5,["","trn-carousel-controls",""]],[1,"trn-brand-showcase-layout-slide",3,"routerLink"],[1,"trn-showcase-layout-actions","visible-xs"],[1,"trn-brand-showcase-layout-logo-box"],[1,"trn-brand-showcase-layout-logo",3,"src","alt"],[1,"trn-brand-showcase-layout-name"],[3,"appearance","size","iconPlacement","icon","fill","url","label","targetBlank"]],template:function(n,v){if(n&1&&(f(0),l(1,"async"),f(2),l(3,"async"),s(4,me,10,3,"section",0)),n&2){let h=_(m(1,1,v.componentData$));i(2);let L=_(m(3,4,v.brands$));i(2),u(h&&(L!=null&&L.length)?4:-1)}},dependencies:[U,I,V,G,E,$,y,j,A,z],styles:[".homepage-favorite-brands[_ngcontent-%COMP%]{--trn-showcase-layout-padding-top: 0}@media all and (min-width:992px){.homepage-favorite-brands[_ngcontent-%COMP%] .trn-brand-showcase-layout-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 7}}"],changeDetection:0})}return e})();var de=(e,o)=>o.code;function pe(e,o){if(e&1&&(p(0,"h2",3),l(1,"safeHtml")),e&2){r(2);let t=c(0);C("innerHTML",m(1,1,t.title),T)}}function ce(e,o){if(e&1&&(a(0,"div",4),p(1,"trn-button",10),l(2,"cxTranslate"),d()),e&2){r(2);let t=c(0);i(),S("outlined"),C("appearance","link")("size","medium")("iconPlacement","icon-right")("icon","arrow_forward")("url",t.externalLink.url)("label",t.externalLink.linkName)("targetBlank",t.externalLink.target==="true"),b("aria-label",`${m(2,10,"common.link_to")} ${t.externalLink.name.toLowerCase()}`)}}function se(e,o){if(e&1&&p(0,"img",13),e&2){r();let t=c(4);C("src",t.src,H)("alt",t.alt)}}function ue(e,o){if(e&1&&(a(0,"span",14),D(1),d()),e&2){let t=r().$implicit;i(),F(t.name)}}function Ce(e,o){if(e&1&&(a(0,"a",9),l(1,"trnDecodeUrl"),p(2,"trn-badge",11),l(3,"cxTranslate"),f(4),a(5,"div",12),s(6,se,1,2,"img",13)(7,ue,2,1,"span",14),d()()),e&2){let t=o.$implicit;C("routerLink",m(1,3,t.url)),i(2),C("label",m(3,5,"common.premium")),i(2);let n=_(r(2).getBrandMedia(t));i(2),u(n!=null&&n.src?6:7)}}function fe(e,o){if(e&1&&(a(0,"section",0)(1,"div",1)(2,"div",2),s(3,pe,2,3,"h2",3),s(4,ce,3,12,"div",4),d(),a(5,"trn-carousel",5),p(6,"trn-carousel-arrow",6)(7,"trn-carousel-arrow",7),k(8,8),M(9,Ce,8,8,"a",9,de),d()()()),e&2){r();let t=c(0),n=c(2);i(3),u(t.title?3:-1),i(),u(t.externalLink!=null&&t.externalLink.url?4:-1),i(),b("aria-label",t.title),i(4),P(n)}}var Y=(()=>{class e{brandService=g(N);component=g(B);componentData$=this.component.data$;brands$=this.brandService.getPremiumBrands().pipe(w(t=>t.brands));getBrandMedia(t){return this.brandService.getBrandsMedia(t,O.THUMBNAIL,R.LARGE)}static \u0275fac=function(n){return new(n||e)};static \u0275cmp=x({type:e,selectors:[["trn-homepage-premium-brands"]],decls:5,vars:7,consts:[[1,"homepage-premium-brands","trn-showcase-layout","trn-brand-showcase-layout"],[1,"container-secondary","trn-showcase-layout-body"],[1,"trn-showcase-layout-header"],[1,"heading-2",3,"innerHTML"],[1,"trn-showcase-layout-actions","visible-lg"],[1,"trn-brand-showcase-layout-carousel"],["slot","before","direction","prev",1,"visible-lg"],["slot","after","direction","next",1,"visible-lg"],["ngProjectAs","[trn-carousel-control
1s]",5,["","trn-carousel-controls",""]],[1,"trn-brand-showcase-layout-slide",3,"routerLink"],[3,"appearance","size","iconPlacement","icon","url","label","targetBlank"],["type","new",3,"label"],[1,"trn-brand-showcase-layout-logo-box"],[1,"trn-brand-showcase-layout-logo",3,"src","alt"],[1,"trn-brand-showcase-layout-name"]],template:function(n,v){if(n&1&&(f(0),l(1,"async"),f(2),l(3,"async"),s(4,fe,11,3,"section",0)),n&2){let h=_(m(1,1,v.componentData$));i(2);let L=_(m(3,4,v.brands$));i(2),u(h&&(L!=null&&L.length)?4:-1)}},dependencies:[W,U,I,V,G,E,$,y,j,A,z],styles:[".homepage-premium-brands[_ngcontent-%COMP%]{--trn-showcase-layout-padding-bottom: 0}@media all and (min-width:992px){.homepage-premium-brands[_ngcontent-%COMP%] .trn-brand-showcase-layout-carousel[_ngcontent-%COMP%]{--trn-carousel-slides: 6}}"],changeDetection:0})}return e})();function _e(e,o){e&1&&p(0,"trn-homepage-favorite-brands")}function ge(e,o){e&1&&p(0,"trn-homepage-premium-brands")}function ve(e,o){if(e&1&&(a(0,"div"),s(1,_e,1,0,"trn-homepage-favorite-brands")(2,ge,1,0,"trn-homepage-premium-brands"),d()),e&2){r();let t=c(0);i(),u((t==null?null:t.carouselType)==="FAVORITE"?1:2)}}var Z=(()=>{class e{component=g(B);componentData$=this.component.data$.pipe();static \u0275fac=function(n){return new(n||e)};static \u0275cmp=x({type:e,selectors:[["trn-homepage-brands"]],decls:3,vars:4,template:function(n,v){if(n&1&&(f(0),l(1,"async"),s(2,ve,3,1,"div")),n&2){let h=_(m(1,1,v.componentData$));i(2),u(h?2:-1)}},dependencies:[X,Y,y],encapsulation:2})}return e})();var lt=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=K({type:e});static \u0275inj=J({providers:[Q({cmsComponents:{TrnBrandCarouselComponent:{component:Z}}})]})}return e})();export{lt as HomepageBrandsModule};
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.