1import{a as X}from"./chunk-QMUYHL4Q.js";import{a as Q}from"./chunk-BPP3E2TO.js";import{a as K,b as W}from"./chunk-TYQB6DAR.js";import{a as J}from"./chunk-FVZKEHFL.js";import{a as Y}from"./chunk-CABTRMED.js";import{a as G}from"./chunk-7OWGJP2F.js";import{a as F}from"./chunk-XFNOPY4D.js";import{a as U}from"./chunk-VCI6DQU6.js";import{a as E}from"./chunk-A3QLZGQA.js";import{Cb as k,Eb as m,Fc as D,Gb as g,Jc as r,Kc as p,Ke as $,Lb as c,Lc as S,Mb as _,Mh as R,Nb as s,Nh as q,Ob as u,Od as x,Pc as T,Sc as N,Tc as l,Vb as M,Xa as O,Xb as b,Zb as o,cb as a,ga as P,jc as w,mc as L,nd as V,o as y,ob as A,oc as H,u as I,ua as C,v,xe as j,ya as h,ye as B,za as f}from"./chunk-PMSJWPYZ.js";var Z=t=>({count:t}),ee=t=>({article:t});function te(t,d){if(t&1&&(_(0,"span",4),L(1),r(2,"cxTranslate"),s()),t&2){let e=o(2);a(),H(" ",S(2,1,"article.minute_read",D(4,Z,e.articleData().readingTime))," ")}}function ie(t,d){if(t&1&&u(0,"h3",7),t&2){let e=o();c("innerHTML",e,O)}}function ne(t,d){if(t&1&&u(0,"p",7),t&2){let e=o();c("innerHTML",e,O)}}function oe(t,d){if(t&1){let e=M();_(0,"a",1),r(1,"trnDecodeUrl"),r(2,"stripHtml"),b("click",function(){h(e);let i=o(2);return f(i.clickHandler())}),m(3,ie,1,1,"h3",7)(4,ne,1,1,"p",7),s()}if(t&2){let e=o(2);c("routerLink",p(1,3,e.articleData().url)),k("aria-label",p(2,5,d)),a(3),g(e.headingTag()?3:4)}}function ae(t,d){if(t&1){let e=M();_(0,"a",1),r(1,"trnDecodeUrl"),b("click",function(){h(e);let i=o(2);return f(i.clickHandler())}),u(2,"p",8),r(3,"safeHtml"),s()}if(t&2){let e=o(2);c("routerLink",p(1,2,e.articleData().url)),a(2),c("innerHTML",p(3,4,d),O)}}function re(t,d){if(t&1){let e=M();_(0,"div",6)(1,"trn-link",9),r(2,"cxTranslate"),r(3,"cxTranslate"),b("onClick",function(){h(e);let i=o(2);return f(i.clickHandler())}),s()()}if(t&2){let e=o(2);a(),c("ariaLabel",S(2,4,"link_labels.read_article",D(9,ee,e.articleData().title)))("label",p(3,7,"article.read_article"))("size",e.linkLabelSize())("url",e.articleData().url)}}function le(t,d){if(t&1){let e=M();_(0,"article")(1,"a",1),r(2,"trnDecodeUrl"),b("click",function(){h(e);let i=o();return f(i.clickHandler())}),u(3,"trn-media",2),s(),_(4,"div")(5,"div",3),m(6,te,3,6,"span",4),s(),m(7,oe,5,7,"a",5),r(8,"async"),m(9,ae,4,6,"a",5),r(10,"async"),m(11,re,4,11,"div",6),s()()}if(t&2){let e,n,i=o();w("primary",i.type()==="primary")("secondary",i.type()==="secondary")("compact",i.type()==="compact"),a(),c("routerLink",p(2,14,i.articleData().url)),k("aria-label",i.articleData().title)("title",i.articleData().title),a(2),c("container",i.articleMedia()),a(3),g(i.type()!=="secondary"&&i.articleData().readingTime?6:-1),a(),g((e=p(8,16,i.title$))?7:-1,e),a(2),g((n=p(10,18,i.content$))?9:-1,n),a(2),g(i.articleData().url?11:-1)}}var De=(()=>{class t{mediaService=C(K);articleDataMapperService=C(X);siteContextService=C(G);searchInsightService=C(Q);article=l();type=l("primary");titleSize=l("default");linkLabelSize=l("small");displayCategory=l(!0);search=l(!1);headingTag=l(!0);index=l(E.algoliaConfig.index.brands.relevance);queryID=l();position=l(0);onClick=N();articleData=T(()=>this.article()?this.articleDataMapperService.map(this.article()):null);articleMedia=T(()=>{let e=this.articleData();if(!e)return null;let n=e.image??e.descriptionImage;return this.mediaService.withFallbackImage(n?this.mediaService.bannerMediaToImageGroup(n):e.images?.[$.PRIMARY])});article$=x(this.article);content$=v({articleData:x(this.articleData),search:x(this.search)}).pipe(P(({articleData:e,search:n})=>n?this.highlightResult$("content",e?.description):y(e?.description)));title$=v({articleData:x(this.articleData),search:x(this.search)}).pipe(P(({articleData:e,search:n})=>n?this.highlightResult$("title",e?.title):y(e?.title)));clickHandler(){this.articleData().algoliaObjectId&&(this.queryID()?this.searchInsightService.clickedObjectIDsAfterSearch({eventName:"Article click",index:this.index(),objectIDs:[this.articleData().algoliaObjectId],queryID:this.queryID(),positions:[this.position()]}):this.searchInsightService.clickedObjectIDs({eventName:"Article click",index:this.index(),objectIDs:[this.articleData().algoliaObjectId]}),this.onClick.emit())}highlightResult$(e,n){return this.article$.pipe(P(i=>this.articleDataMapperService.isHit(i)?this.siteContextService.locale$.pipe(I(z=>i?._snippetResult?.[e]?.[z]?.value||i?._highlightResult?.[e]?.[z]?.value)):y(n)))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=A({type:t,selectors:[["trn-article"]],hostVars:2,hostBindings:function(n,i){n&2&&w("title-small",i.titleSize()==="small")},inputs:{article:[1,"article"],type:[1,"type"],titleSize:[1,"titleSize"],linkLabelSize:[1,"linkLabelSize"],displayCategory:[1,"displayCategory"],search:[1,"search"],headingTag:[1,"headingTag"],index:[1,"index"],queryID:[1,"queryID"],position:[1,"position"]},outputs:{onClick:"onClick"},decls:1,vars:1,consts:[[3,"primary","secondary","compact"],["tabindex","-1",3,"click","routerLink"],[1,"article-image",3,"container"],[1,"tag-wrapper"],[1,"reading-time"],["tabindex","-1",3,"routerLink"],[1,"article-link"],[1,"title",3,"innerHTML"],[1,"description",3,"innerHTML"],["
1icon","arrow_forward","iconPlacement","icon-right",3,"onClick","ariaLabel","label","size","url"]],template:function(n,i){n&1&&m(0,le,12,20,"article",0),n&2&&g(i.articleData()?0:-1)},dependencies:[B,j,q,F,W,V,U,R,J,Y],styles:["[_nghost-%COMP%]{display:flex}article[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:100%;height:100%}.primary[_ngcontent-%COMP%]{background:none}.primary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}@media all and (min-width:576px){.primary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:24px;line-height:32px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.primary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:28px;line-height:34px;letter-spacing:normal;padding-top:3px;padding-bottom:3px}}.primary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:8px}.primary[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{flex:1 0 auto}.compact[_ngcontent-%COMP%], .secondary[_ngcontent-%COMP%]{border-radius:12px;background:#f2f1f0;color:#000}.secondary[_ngcontent-%COMP%]{padding:16px;flex-direction:row-reverse;align-items:flex-start;gap:16px}.secondary[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex-shrink:0;align-self:flex-start;width:72px;height:72px;overflow:hidden;border-radius:12px}.secondary[_ngcontent-%COMP%] .article-image img{width:100%;height:100%;margin:0;display:block;object-fit:cover;max-width:none;border-radius:0}.secondary[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column}.secondary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-family:Ubuntu,sans-serif;font-weight:400;-webkit-font-smoothing:antialiased;font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0}@media all and (min-width:576px){.secondary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:24px;line-height:32px;letter-spacing:normal;padding-top:0;padding-bottom:0}}@media all and (min-width:992px){.secondary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:28px;line-height:34px;letter-spacing:normal;padding-top:3px;padding-bottom:3px}}.secondary[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:8px}.secondary[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{margin-bottom:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}@media all and (max-width:575px){.secondary[_ngcontent-%COMP%]{display:block}.secondary[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{float:right;margin-left:16px;width:72px;height:72px}.secondary[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:block}.secondary[_ngcontent-%COMP%] .description[_ngcontent-%COMP%], .secondary[_ngcontent-%COMP%] .article-link[_ngcontent-%COMP%]{clear:both}}[_nghost-%COMP%] .article-image img{display:flex;margin-bottom:16px;border-radius:12px;width:100%;height:188px;object-fit:cover}.tag-wrapper[_ngcontent-%COMP%]{display:flex;column-gap:8px}.article-category-link[_ngcontent-%COMP%]{display:flex}.reading-time[_ngcontent-%COMP%]{font-size:14px;line-height:16px;letter-spacing:.02em;padding-top:0;padding-bottom:0;text-transform:uppercase}.reading-time[_ngcontent-%COMP%]{color:#5d5c5b}.description[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.link[_ngcontent-%COMP%]{margin-top:16px;justify-self:flex-end}.compact[_ngcontent-%COMP%]{padding:8px;flex-direction:row;align-items:flex-start;gap:8px}.compact[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{flex-shrink:0;width:72px;height:72px;overflow:hidden;border-radius:6px}.compact[_ngcontent-%COMP%] .article-image img{width:100%;height:100%;margin:0;display:block;object-fit:cover;max-width:none;border-radius:0}.compact[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-direction:column;min-width:0}.compact[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;line-height:22px;letter-spacing:normal;padding-top:1px;padding-bottom:1px}@media all and (min-width:992px){.compact[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:16px;line-height:28px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}}.compact[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:4px}.compact[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{font-size:14px;line-height:20px;letter-spacing:normal;padding-top:2px;padding-bottom:2px}.compact[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-bottom:4px;margin-right:0}.compact[_ngcontent-%COMP%] .tag-wrapper[_ngcontent-%COMP%]{display:none}.title-small[_nghost-%COMP%] .title[_ngcontent-%COMP%]{font-size:18px;line-height:24px;letter-spacing:normal;padding-top:0;padding-bottom:0} .description em, .title em{font-weight:bolder;font-style:normal;background:#e7e5e5}"]})}return t})();export{De 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.