1import{a as Q,d as V}from"./chunk-PMDFIPZC.js";import{a as W,b as X}from"./chunk-TYQB6DAR.js";import{a as q}from"./chunk-CABTRMED.js";import{g as J}from"./chunk-7EDV3FYO.js";import{a as A}from"./chunk-CIDLE6M4.js";import"./chunk-SD2GF6LN.js";import{a as R}from"./chunk-VCI6DQU6.js";import"./chunk-3OSB33KW.js";import"./chunk-XERX3YYW.js";import"./chunk-AUTQTPL7.js";import"./chunk-4Z5MUJO3.js";import"./chunk-A3QLZGQA.js";import{Y as K}from"./chunk-LJH5OBMW.js";import{Cb as k,Eb as c,Ec as O,Gb as p,Ge as N,Jb as S,Jc as l,Kb as $,Kc as m,Lb as r,Mb as g,Mh as U,Nb as d,Nc as D,Nh as G,Ob as C,Ub as x,Xa as h,Zb as a,ca as w,cb as o,ga as T,hc as z,kc as B,lc as I,md as F,nd as E,ob as L,pb as H,ra as b,tb as u,u as P,ua as f,vc as v,wc as M,xc as s,xe as j}from"./chunk-PMSJWPYZ.js";import"./chunk-NIF3MU5U.js";var tt=()=>({visibility:"visible-lg"}),et=()=>({visibility:"visible-xs"}),nt=(t,i)=>i.id;function it(t,i){if(t&1&&(g(0,"div",8),C(1,"trn-button",9),l(2,"cxTranslate"),d()),t&2){let e=a().visibility;a(2);let n=s(0);I(e),o(),B("outlined"),r("label",n.externalLink.linkName)("url",n.externalLink.url)("appearance","link")("size","medium")("type","light")("color","primary")("icon","arrow_forward")("iconPlacement","icon-right")("targetBlank",n.externalLink.target==="true"),k("aria-label",`${m(2,14,"common.link_to")} ${n.externalLink.name.toLowerCase()}`)}}function ot(t,i){if(t&1&&c(0,it,3,16,"div",7),t&2){a(2);let e=s(0);p(e.externalLink!=null&&e.externalLink.url?0:-1)}}function at(t,i){if(t&1&&(C(0,"h2",4),l(1,"safeHtml")),t&2){a(2);let e=s(0);r("innerHTML",m(1,1,e.title),h)}}function rt(t,i){t&1&&x(0)}function ct(t,i){if(t&1&&(C(0,"p",12),l(1,"safeHtml")),t&2){let e=a(2).$implicit;r("innerHTML",m(1,1,e.name),h)}}function pt(t,i){if(t&1&&(g(0,"div",10)(1,"a",11),l(2,"trnDecodeUrl"),c(3,ct,2,3,"p",12),C(4,"trn-media",13),d()()),t&2){let e=a().$implicit,n=a(3);o(),r("routerLink",m(2,3,e.url)),o(2),p(e.name?3:-1),o(),r("container",n.getImageGroup(e))}}function lt(t,i){if(t&1&&c(0,pt,5,5,"div",10),t&2){let e=i.$implicit;p(e?0:-1)}}function mt(t,i){if(t&1&&(g(0,"div",6),S(1,lt,1,1,null,null,nt),d()),t&2){a();let e=s(7);o(),$(e)}}function gt(t,i){t&1&&x(0)}function dt(t,i){if(t&1&&(g(0,"section",1),u(1,ot,1,1,"ng-template",null,0,D),g(3,"div",2)(4,"div",3),c(5,at,2,3,"h2",4),u(6,rt,1,0,"ng-container",5),d(),v(7),l(8,"async"),c(9,mt,3,0,"div",6),u(10,gt,1,0,"ng-container",5),d()()),t&2){let e=z(2),n=a(),y=s(0);o(5),p(y.title?5:-1),o(),r("ngTemplateOutlet",e)("ngTemplateOutletContext",O(9,tt)),o();let _=M(m(8,6,n.categories$));o(2),p(_!=null&&_.length?9:-1),o(),r("ngTemplateOutlet",e)("ngTemplateOutletContext",O(10,et))}}var Y=(()=>{class t{categoryService=f(V);mediaService=f(W);component=f(K);componentData$=this.component.data$;categories$=this.componentData$.pipe(P(e=>e?.categories?.trim().split(" ")??[]),T(e=>this.categoryService.getCategories$(e,Q.LIST)),w({bufferSize:1,refCount:!0}));getImageGroup(e){return this.mediaService.withFallbackImage(this.mediaService.trnImageToImageGroup(this.mediaService.thumbnailToTrnImage(e?.thumbnail)),J.BLACK)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=L({type:t,selectors:[["trn-homepage-category"]],decls:3,vars:4,consts:[["allCategories",""],[1,"homepage-category","trn-showcase-layout"],[1,"container-primary","trn-showcase-layout-body"],[1,"trn-showcase-layout-header"],[1,"heading-2",3,"innerHTML"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"categories"],[1,"trn-showcase-layout-actions",3,"class"],[1,"trn-showcase-layout-actions"],[3,"label","url","appearance","size","type","color","icon","iconPlacement","targetBlank"],[1,"category"],[3,"routerLink"],[3,"innerHTML"],[1,"image-container",3,"container"]],template:function(n,y){if(n&1&&(v(0),l(1,"async"),c(2,dt,11,11,"section",1)),n&2){let _=M(m(1,1,y.componentData$));o(2),p(_?2:-1)}},dependencies:[F,A,G,X,j,E,U,q,R],styles:[".homepage-category[_ngcontent-%COMP%]{background:#000}.homepage-category[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{color:#fff}.categories[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(7,auto);gap:8px}@media all and (min-width:992px){.categories[_ngcontent-%COMP%]{grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(4,auto);gap:16px}}.category[_ngcontent-%COMP%]{position:relative;width:100%;border-radius:6px;aspect-ratio:1;padding:16px;overflow:hidden}@media(hover:hover){.category[_ngcontent-%COMP%]:hover img{opacity:.75}}.category[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:block;width:100%;height:100%}.category[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-size:20px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}@media all and (min-width:576px){.category[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:40px;line-height:48px;letter-spacing:normal;padding-top:0;padding-bottom:0}}.category[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;position:relative;color:#fff;z-index:1}
1.category[_ngcontent-%COMP%] img{position:absolute;width:100%;height:100%;opacity:.25;top:0;left:0;object-fit:cover;z-index:0}.category[_ngcontent-%COMP%]:nth-child(n+7){aspect-ratio:70/39;padding:8px}.category[_ngcontent-%COMP%]:nth-child(n+7) p[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-size:16px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}@media all and (min-width:576px){.category[_ngcontent-%COMP%]:nth-child(n+7) p[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.category[_ngcontent-%COMP%]:nth-child(n+7) p[_ngcontent-%COMP%]{font-size:22px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}@media all and (min-width:992px){.category[_ngcontent-%COMP%]{padding:24px}.category[_ngcontent-%COMP%]:nth-child(n+7){aspect-ratio:1;padding:16px}.category[_ngcontent-%COMP%]:nth-child(1){grid-column:1/3;grid-row:1/3}.category[_ngcontent-%COMP%]:nth-child(2){grid-column:3/5;grid-row:1/3}.category[_ngcontent-%COMP%]:nth-child(3){grid-column:5/7;grid-row:1/3}.category[_ngcontent-%COMP%]:nth-child(4){grid-column:7/9;grid-row:1/3}.category[_ngcontent-%COMP%]:nth-child(5){grid-column:1/3;grid-row:3/5}.category[_ngcontent-%COMP%]:nth-child(6){grid-column:3/5;grid-row:3/5}}"]})}return t})();var $t=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=H({type:t});static \u0275inj=b({providers:[N({cmsComponents:{TrnCategoryCarouselComponent:{component:Y}}})]})}return t})();export{$t as HomepageCategoryModule};
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.