1import{a as se}from"./chunk-SMF44L7A.js";import{a as ce}from"./chunk-DZCCGFW7.js";import{a as ie}from"./chunk-RITIPC2N.js";import"./chunk-Z6DIW7TH.js";import"./chunk-5FNCQYVJ.js";import"./chunk-JXMTAIBB.js";import"./chunk-LWUUEIQO.js";import"./chunk-ZFUIHNPN.js";import"./chunk-KJIUKXJ4.js";import{g as le}from"./chunk-BCT6AZ4D.js";import{b as oe,c as re,d as ae}from"./chunk-GBA5HQ3D.js";import"./chunk-L2XAKF7E.js";import"./chunk-ARHQJIEW.js";import"./chunk-J4G6UZTT.js";import{a as me}from"./chunk-HWMTSDLJ.js";import"./chunk-SCJMMS4R.js";import"./chunk-GLB6FXVW.js";import"./chunk-7YDYSXNF.js";import"./chunk-PLWO6N5B.js";import"./chunk-NYVODJB2.js";import{Xb as B,aj as te,ej as T}from"./chunk-JWTTV2TH.js";import"./chunk-HKNOB5YZ.js";import{C as Z,p as q,v as Q,wa as ee,za as ne}from"./chunk-NGZBGJL5.js";import"./chunk-UBDARBLF.js";import{Aa as W,Pa as J,Za as X,fa as K,s as z}from"./chunk-DM3NC7AB.js";import{$b as O,Bb as R,Bc as c,Cc as m,Ce as V,Db as M,Dc as s,Ec as g,Ee as F,Fa as I,Hd as w,Id as P,Jb as o,Mc as H,Oe as $,Pc as G,Qa as y,Ra as N,Rc as r,Wb as C,X as h,a as f,ac as D,bd as U,dd as _,ed as b,fd as Y,gd as u,hb as L,o as x,sc as k,uc as a,ve as j,wc as l}from"./chunk-WVBH4ZDA.js";import"./chunk-YDOXD4O3.js";var de={NOIMAGE:"NOIMAGE",IMAGE:"IMAGE",FULLIMAGE:"FULLIMAGE",YES:"YES",NO:"NO",CENTER:"CENTER",LEFT:"LEFT",LEFTCENTER:"LEFTCENTER",RIGHT:"RIGHT",RIGHTCENTER:"RIGHTCENTER",PRIMARY:"PRIMARY",SECONDARY:"SECONDARY",BANNERCOLOR:"BANNERCOLOR",PRIMARYINVERSE:"PRIMARYINVERSE",SECONDARYINVERSE:"SECONDARYINVERSE",DARK:"DARK",LIGHT:"LIGHT",TRANSPARENT:"TRANSPARENT",LOGO:"LOGO",EYEBROW:"EYEBROW"};function be(t,i){if(t&1&&(m(0,"div",3),g(1,"img",14),s()),t&2){let e=r();o(),c("src",e.logoImageURL,M)("alt",e.logoAltText||"")}}function ue(t,i){if(t&1&&(m(0,"p",4),b(1),s()),t&2){let e=r();o(),Y(e.eyebrow)}}function Ee(t,i){if(t&1&&(m(0,"h2",5),b(1),s()),t&2){let e=r(),n=r();c("ngClass",n.getHeaderClass())("innerHtml",n.sanitizer.bypassSecurityTrustHtml(e.header),R),o(),u(" ",e.header," ")}}function ge(t,i){if(t&1&&(m(0,"div",6),b(1),s()),t&2){let e=r(),n=r();c("ngClass",n.isUKSite?"title-banner-uk":"")("innerHtml",n.sanitizer.bypassSecurityTrustHtml(e.subHeader),R),o(),u(" ",e.subHeader," ")}}function _e(t,i){if(t&1&&g(0,"div",7),t&2){let e=r(),n=r();c("ngClass",e.buttonText?"":" title-banner-no-btn")("innerHtml",n.sanitizer.bypassSecurityTrustHtml(e.body),R)}}function Re(t,i){if(t&1){let e=H();m(0,"cx-generic-link",15),G("click",function(d){y(e);let E=r(3);return N(E.applynow(d))})("keypress",function(d){y(e);let E=r(3);return N(E.applynow(d))}),b(1),s(),m(2,"cx-generic-link",16),b(3),s(),m(4,"cx-generic-link",17),b(5),s()}if(t&2){let e=r(2),n=r();_("btn-amor btn-lg "+(e.buttonStyle===n.BANNER.PRIMARY?"btn-primary-amor":"")+" "+(e.buttonStyle===n.BANNER.SECONDARY?"btn-secondary-amor":"")+" "+(e.buttonStyle===n.BANNER.PRIMARYINVERSE?"btn-primary-amor btn-inversed":"")+" "+(e.buttonStyle===n.BANNER.SECONDARYINVERSE?"btn-secondary-amor btn-inversed":"")+" "+((e==null?null:e.bannerColor)===n.BANNER.DARK?"btn-inversed":" ")),c("url",e.buttonUrl),o(),u("",e.buttonText," "),o(),_("btn-amor "+(e.buttonStyle===n.BANNER.PRIMARY?"btn-primary-amor":"")+" "+(e.buttonStyle===n.BANNER.SECONDARY?"btn-secondary-amor":"")+" "+(e.buttonStyle===n.BANNER.PRIMARYINVERSE?"btn-primary-amor btn-inversed":"")+" "+(e.buttonStyle===n.BANNER.SECONDARYINVERSE?"btn-secondary-amor btn-inversed":"")+" "+((e==null?null:e.bannerColor)===n.BANNER.DARK?"btn-inversed":" ")),c("url",e.buttonUrl),o(),u("",e.buttonText," "),o(),_("btn-amor btn-sm "+(e.buttonStyle===n.BANNER.PRIMARY?"btn-primary-amor":"")+" "+(e.buttonStyle===n.BANNER.SECONDARY?"btn-secondary-amor":"")+" "+(e.buttonStyle===n.BANNER.PRIMARYINVERSE?"btn-primary-amor btn-inversed":"")+" "+(e.buttonStyle===n.BANNER.SECONDARYINVERSE?"btn-secondary-amor btn-inversed":"")+" "+((e==null?null:e.bannerColor)===n.BANNER.DARK?"btn-inversed":" ")),c("url",e.buttonUrl),o(),u("",e.buttonText," ")}}function Ae(t,i){if(t&1&&(m(0,"div",8),a(1,Re,6,12),s()),t&2){let e=r();o(),l(e.buttonText&&e.buttonUrl?1:-1)}}function ye(t,i){if(t&1&&(m(0,"p",10),b(1),s()),t&2){let e=r();o(),u(" ",e.legalText," ")}}function Ne(t,i){if(t&1&&g(0,"app-amor-modal-trigger",18),t&2){let e=r(2);c("modalLabel",e.legalLinkLabel)("modalUrl",e.legalTextUrl)}}function Be(t,i){if(t&1&&(m(0,"cx-generic-link",20),b(1),s()),t&2){let e=r(2);_("tertiary-text-decoration amor-hero-banner-legal-link"),c("url",e.legalTextUrl),o(),u(" ",e.legalLinkLabel," ")}}function Te(t,i){if(t&1&&(m(0,"p",11),a(1,Ne,1,2,"app-amor-modal-trigger",18)(2,Be,2,4,"cx-generic-link",19),s()),t&2){let e=r(2);o(),l(e.openLegalLinkAsModal?1:2)}}function Se(t,i){t&1&&g(0,"div",12)}function ve(t,i){if(t&1&&g(0,"div",13),t&2){let e=r(),n=r();c("ngClass",e.gradient===n.BANNER.YES?" image-gradient":" ")("ngStyle",n.getComponentStyles()),k("aria-label",e.imageAltText)("role","img")}}function fe(t,i){if(t&1&&(m(0,"div",0)(1,"div",1)(2,"div",2),a(3,be,2,2,"div",3),a(4,ue,2,1,"p",4),a(5,Ee,2,3,"h2",5),a(6,ge,2,3,"div",6),a(7,_e,1,2,"div",7),a(8,Ae,2,1,"div",8),m(9,"div",9),a(10,ye,2,1,"p",10),a(11,Te,3,1,"p",11),s()(),a(12,Se,1,0,"div",12),a(13,ve,1,4,"div",13),s()()),t&2){let e=i,n=r();o(),c("ngClass",n.getBannerColor()+" "+(n.currentBannerType===n.BANNER.NOIMAGE?" without-image-title-banner":" ")+" "+(e.bannerMargin==="BOTTOM"?" banner-margin-bottom":" ")+" "+((e==null?null:e.contentAlignment)===n.BANNER.RIGHT?" right":"")+(n.
1currentBannerType===n.BANNER.FULLIMAGE?" full-image-banner":""))("ngStyle",n.currentBannerType===n.BANNER.FULLIMAGE?n.getComponentStyles():null),o(),c("ngClass",(e==null?null:e.contentAlignment)===n.BANNER.CENTER?" center":((e==null?null:e.contentAlignment)===n.BANNER.LEFTCENTER?" left-center":"")+((e==null?null:e.contentAlignment)===n.BANNER.RIGHTCENTER?" right-center":"")),o(),l(e.eyebrowOrLogo===n.BANNER.LOGO&&e.logoImageURL?3:-1),o(),l(e.eyebrowOrLogo===n.BANNER.EYEBROW&&e.eyebrow?4:-1),o(),l(e.header?5:-1),o(),l(e.subHeader?6:-1),o(),l(e.body?7:-1),o(),l(e.buttonText?8:-1),o(),U("legal-link-modal",n.openLegalLinkAsModal),o(),l(e.legalText?10:-1),o(),l(e.legalTextUrl&&e.legalLinkLabel?11:-1),o(),l((e==null?null:e.contentAlignment)!==n.BANNER.CENTER&&n.currentBannerType===n.BANNER.NOIMAGE?12:-1),o(),l(n.currentBannerType===n.BANNER.IMAGE&&(e.mobileImageUrl||e.imageUrl)?13:-1)}}var A=class t{constructor(i,e,n,d,E,S,v,p,xe){this.component=i;this.sanitizer=e;this.elementRef=n;this.siteService=d;this.minHeightService=E;this.breakpointService=S;this.windowRef=v;this.eventService=p;this.taggingEventRegistrationService=xe;this.BANNER=de;this.bannerBgColor="";this.isUKSite=!1;this.subscription$=new f;this.currentBannerType="";this.isMobile=!1;this.openLegalLinkAsModal=!1;this.isBanterSite=!1}ngOnInit(){this.injectedComponentData&&(this.component.data$=x(this.injectedComponentData));let i=this.component.data$.subscribe(p=>{this.minHeightService?.setMinHeightFromCMS(p,this.elementRef),this.titleBanner=p,this.setBannerType()});this.subscription$.add(i),this.openLegalLinkAsModal=this.titleBanner?.isLegalLinkModal==="true";let{BANNERCOLOR:e}=te;this.titleBanner&&this.titleBanner.bannerColor&&this.titleBanner.bannerColor==e&&(this.bannerBgColor=T[this.titleBanner.bannerColor]);let{HS:n,EJ:d}=B,E=this.siteService.get().subscribe(p=>{this.isUKSite=p?.uid===n||p?.uid===d});this.subscription$.add(E);let S=this.breakpointService.isDown(q.md).subscribe(p=>{this.isMobile=p,this.titleBanner&&this.setBannerType()});this.subscription$.add(S);let v=this.siteService.getActive().pipe(h(1)).subscribe(p=>{this.isBanterSite=p===B.BANTER});this.subscription$.add(v)}getBannerColor(){let i=this.titleBanner?.bannerColor;return i?.length>0&&T[i]||""}getComponentStyles(){let i={};return i["--background-title-img-url"]=`url(${this.titleBanner?.imageUrl||""})`,i["--background-img-mobile-url"]=`url(${this.titleBanner?.mobileImageUrl||this.titleBanner?.imageUrl||""})`,i}setBannerType(){this.isMobile?this.currentBannerType=this.titleBanner?.mobileBannerType??this.titleBanner?.bannerType??"":this.currentBannerType=this.titleBanner?.bannerType??""}applynow(i){let e=i.target,n=this.windowRef.location.href;(n?.includes(re)||n?.includes(ae))&&e.getAttribute("href")?.includes(oe)&&this.eventService.dispatch(this.taggingEventRegistrationService.creditApplicationStart(),ie)}getHeaderClass(){return this.isBanterSite?"header-display-3":"header-display-4"}ngOnDestroy(){this.subscription$.unsubscribe()}static{this.\u0275fac=function(e){return new(e||t)(C(Q),C(z),C(L),C(J),C(me),C(Z),C(W),C(X),C(le))}}static{this.\u0275cmp=O({type:t,selectors:[["app-amor-title-banner"]],inputs:{injectedComponentData:"injectedComponentData"},standalone:!1,decls:2,vars:3,consts:[[1,"amor-container","se-component"],[1,"amor-title-banner","amor-hero-banner",3,"ngClass","ngStyle"],[1,"amor-hero-banner-info",3,"ngClass"],[1,"amor-hero-banner-logo"],[1,"amor-hero-banner-eyebrow","body-one"],[1,"amor-hero-banner-header",3,"ngClass","innerHtml"],[1,"amor-hero-banner-subheader","heading-five",3,"ngClass","innerHtml"],[1,"amor-hero-banner-body","body-one",3,"ngClass","innerHtml"],[1,"amor-hero-banner-buttons"],[1,"legal-text-container"],[1,"amor-hero-banner-legal-text","body-three"],[1,"amor-hero-banner-legal-link-container"],[1,"title-space"],[1,"amor-hero-banner-image",3,"ngClass","ngStyle"],[1,"logo",3,"src","alt"],[1,"btn-items","btn-large",3,"click","keypress","url"],[1,"btn-items",3,"url"],[1,"btn-items","btn-small",3,"url"],[3,"modalLabel","modalUrl"],["target","_blank",3,"class","url"],["target","_blank",3,"url"]],template:function(e,n){if(e&1&&(a(0,fe,14,15,"div",0),w(1,"async")),e&2){let d;l((d=P(1,1,n.component.data$))?0:-1,d)}},dependencies:[j,V,ee,se,F],encapsulation:2})}};var pe=class t{static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=I({providers:[K({cmsComponents:{AmorTitleBannerComponent:{component:A}}})],imports:[$,ne,ce]})}};export{pe as AmorTitleBannerModule};
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.