1import{a as z}from"./chunk-CQWPRNTM.js";import{A as D,pa as T}from"./chunk-VIWILXPG.js";import{d as w}from"./chunk-R7KFMJRS.js";import{F as S}from"./chunk-D7FIXK7G.js";import{Bb as u,Db as g,Gb as A,Hb as y,Ib as s,Jb as a,Kb as l,Lb as k,Mc as b,Nc as O,Sa as v,Sb as C,Va as n,Wb as L,Yb as x,aa as h,fa as f,ga as d,jb as _,kc as m,lc as p,r as P,xc as M}from"./chunk-F7QRDTC2.js";import"./chunk-YNC7RVHT.js";var F=(t,r)=>r.id;function I(t,r){if(t&1){let e=C();a(0,"li"),k(1,"img",2),a(2,"a",3),L("click",function(){let c=f(e).$implicit,o=x(2);return d(o.onLinkClick(c))}),m(3),l()()}if(t&2){let e=r.$implicit;n(),s("src",e.logo,v),n(),s("href",e.url,v),n(),p(e.text)}}function U(t,r){t&1&&(a(0,"ul",0),A(1,I,4,3,"li",null,F),l()),t&2&&(n(),y(r))}function $(t,r){t&1&&(a(0,"div",1)(1,"p"),m(2,"No Links Available"),l()())}var E=(()=>{class t{partnerAffiliateLinks=O.required();selectLink=b();onLinkClick(e){this.selectLink.emit(e)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=_({type:t,selectors:[["es-partner-affiliate-links"]],inputs:{partnerAffiliateLinks:[1,"partnerAffiliateLinks"]},outputs:{selectLink:"selectLink"},decls:2,vars:1,consts:[[1,"container"],[1,"container","empty"],["alt","Logo",3,"src"],["es-button","","size","small","theme","subtle","target","_blank",3,"click","href"]],template:function(i,c){if(i&1&&u(0,U,3,0,"ul",0)(1,$,3,0,"div",1),i&2){let o;g((o=c.partnerAffiliateLinks().links)?0:1,o)}},dependencies:[T],styles:["ul[_ngcontent-%COMP%]{width:400px;border:1px solid var(--theme-divider);border-radius:8px}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:1rem}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:not(:first-child){border-top:1px solid var(--theme-divider)}ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:125px;height:40px}.empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:var(--font-size-medium);text-align:center}"],changeDetection:0})}return t})();var j=t=>({w:t});function q(t,r){if(t&1){let e=C();a(0,"div",0),k(1,"img",1),a(2,"div",2)(3,"h2"),m(4),l(),a(5,"p"),m(6),l()()(),a(7,"es-partner-affiliate-links",3),L("selectLink",function(c){f(e);let o=x();return d(o.onLinkClick(c))}),l()}if(t&2){let e=r;n(),s("key",e.image.key)("imgixParams",M(7,j,e.image.width||240))("height",e.image.height)("width",e.image.width),n(3),p(e.title),n(2),p(e.description),n(),s("partnerAffiliateLinks",e)}}var ie=(()=>{class t{route=h(S);mixpanel=h(D);partnerAffiliateLinks=w(this.route.data.pipe(P(e=>e.partnerAffiliateLinks)),{requireSync:!0});onLinkClick(e){this.mixpanel.track("Affiliate Link Clicked",{"Affiliate Link URL":e.url,"Affiliate Link Type":e.name,"Affiliate Link Label":e.text})}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=_({type:t,selectors:[["es-affiliate-links-page"]],decls:1,vars:1,consts:[[1,"album"],["esImage","","alt","Album",3,"key","imgixParams","height","width"],[1,"album__text"],[3,"selectLink","partnerAffiliateLinks"]],template:function(i,c){if(i&1&&u(0,q,8,9),i&2){let o;g((o=c.partnerAffiliateLinks())?0:-1,o)}},dependencies:[z,E],styles:["[_nghost-%COMP%]{padding:2rem 0}.album[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.album__text[_ngcontent-%COMP%]{padding:1rem 0 2rem;text-align:center}.album__text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:var(--font-size-large);font-weight:700}.album__text[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:var(--theme-color-dim)}.album[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:8px;max-width:240px}"],changeDetection:0})}return t})();export{ie as PartnerAffiliateLinksLayoutComponent};
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.