1import{a as G}from"./chunk-SMF44L7A.js";import{a as W}from"./chunk-DZCCGFW7.js";import"./chunk-Z6DIW7TH.js";import"./chunk-5FNCQYVJ.js";import"./chunk-JXMTAIBB.js";import{b as V}from"./chunk-LWUUEIQO.js";import"./chunk-ZFUIHNPN.js";import"./chunk-KJIUKXJ4.js";import{ej as $,kj as F}from"./chunk-JWTTV2TH.js";import"./chunk-HKNOB5YZ.js";import{v as U,wa as P,za as Y}from"./chunk-NGZBGJL5.js";import"./chunk-UBDARBLF.js";import{fa as j,s as N}from"./chunk-DM3NC7AB.js";import{$b as v,$c as T,Ad as A,Bb as p,Bc as b,Cc as m,Cd as E,Ce as w,Dc as i,De as R,Ec as M,Ee as z,Fa as _,Hd as I,Id as L,Jb as t,Kc as B,Ld as O,Oe as D,Rc as a,Wb as x,a as g,ac as H,dd as y,ed as l,fc as S,gd as d,uc as s,ve as k,wc as c,zd as h}from"./chunk-WVBH4ZDA.js";import"./chunk-YDOXD4O3.js";var J=e=>({"bmsm-legal-link-modal":e}),Q=(e,r,n)=>({buttonStyle:e,buttonUrl:r,buttonText:n}),f=()=>[];function X(e,r){if(e&1&&(m(0,"h1",4),l(1),i()),e&2){let n=a(),o=a();b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.headerText),p),t(),d(" ",n.headerText," ")}}function Z(e,r){if(e&1&&(m(0,"div",5),l(1),i()),e&2){let n=a(),o=a();b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.subHeader),p),t(),d(" ",n.subHeader," ")}}function nn(e,r){if(e&1&&(m(0,"p",11),l(1),i()),e&2){let n=a(2),o=a();b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.bodySmall1),p),t(),d(" ",n.bodySmall1," ")}}function en(e,r){if(e&1&&(m(0,"div",7)(1,"p",10),l(2),i(),s(3,nn,2,2,"p",11),i()),e&2){let n=a(),o=a();t(),b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.body1),p),t(),d(" ",n.body1," "),t(),c(n.bodySmall1?3:-1)}}function on(e,r){if(e&1&&(m(0,"p",11),l(1),i()),e&2){let n=a(2),o=a();b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.bodySmall2),p),t(),d(" ",n.bodySmall2," ")}}function tn(e,r){if(e&1&&(m(0,"div",7)(1,"p",10),l(2),i(),s(3,on,2,2,"p",11),i()),e&2){let n=a(),o=a();t(),b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.body2),p),t(),d(" ",n.body2," "),t(),c(n.bodySmall2?3:-1)}}function rn(e,r){if(e&1&&(m(0,"p",11),l(1),i()),e&2){let n=a(2),o=a();b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.bodySmall3),p),t(),d(" ",n.bodySmall3," ")}}function an(e,r){if(e&1&&(m(0,"div",7)(1,"p",10),l(2),i(),s(3,rn,2,2,"p",11),i()),e&2){let n=a(),o=a();t(),b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.body3),p),t(),d(" ",n.body3," "),t(),c(n.bodySmall3?3:-1)}}function mn(e,r){if(e&1&&(m(0,"p",11),l(1),i()),e&2){let n=a(2),o=a();b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.bodySmall4),p),t(),d(" ",n.bodySmall4," ")}}function bn(e,r){if(e&1&&(m(0,"div",7)(1,"p",10),l(2),i(),s(3,mn,2,2,"p",11),i()),e&2){let n=a(),o=a();t(),b("innerHTML",o.sanitizer.bypassSecurityTrustHtml(n.body4),p),t(),d(" ",n.body4," "),t(),c(n.bodySmall4?3:-1)}}function ln(e,r){e&1&&B(0)}function sn(e,r){if(e&1&&(m(0,"cx-generic-link",13),l(1),i(),m(2,"cx-generic-link",14),l(3),i(),m(4,"cx-generic-link",15),l(5),i()),e&2){let n=r.buttonStyle,o=a(2);y("btn-amor btn-lg "+(n==="PRIMARY"?"btn-primary-amor":"")+" "+(n==="PRIMARYINVERSE"?"btn-primary-amor btn-inversed":"")+" "+(n==="SECONDARY"?"btn-secondary-amor":"")+" "+(n==="SECONDARYINVERSE"?"btn-secondary-amor btn-inversed":"")+" "+((o==null?null:o.bannerColor)==="DARK"?"btn-inversed":"")),b("url",o.button1Url??h(12,f)),t(),d(" ",o.button1Text," "),t(),y("btn-amor "+(n==="PRIMARY"?"btn-primary-amor":"")+" "+(n==="PRIMARYINVERSE"?"btn-primary-amor btn-inversed":"")+" "+(n==="SECONDARY"?"btn-secondary-amor":"")+" "+(n==="SECONDARYINVERSE"?"btn-secondary-amor btn-inversed":"")+" "+((o==null?null:o.bannerColor)==="DARK"?"btn-inversed":"")),b("url",o.button1Url??h(13,f)),t(),d(" ",o.button1Text," "),t(),y("btn-amor btn-sm "+(n==="PRIMARY"?"btn-primary-amor":"")+" "+(n==="PRIMARYINVERSE"?"btn-primary-amor btn-inversed":"")+" "+(n==="SECONDARY"?"btn-secondary-amor":"")+" "+(n==="SECONDARYINVERSE"?"btn-secondary-amor btn-inversed":"")+" "+((o==null?null:o.bannerColor)==="DARK"?"btn-inversed":"")),b("url",o.button1Url??h(14,f)),t(),d(" ",o.button1Text," ")}}function cn(e,r){if(e&1&&(m(0,"div",8),S(1,ln,1,0,"ng-container",12)(2,sn,6,15,"ng-template",null,0,O),i()),e&2){let n=T(3),o=a();t(),b("ngTemplateOutlet",o.button1Text&&o.button1Url?n:null)("ngTemplateOutletContext",E(2,Q,o.button1Style,o.button1Url,o.button1Text))}}function dn(e,r){if(e&1&&(m(0,"p",16),l(1),i(),l(2,"\xA0")),e&2){let n=a();t(),d(" ",n.legalText)}}function pn(e,r){if(e&1&&M(0,"app-amor-modal-trigger",17),e&2){let n=a(2);b("modalLabel",n.legalLinkLabel)("modalUrl",n.legalTextUrl)}}function yn(e,r){if(e&1&&(m(0,"cx-generic-link",19),l(1),i()),e&2){let n=a(2);y("tertiary-text-decoration amor-hero-banner-legal-link"),b("url",n.legalTextUrl),t(),d(" ",n.legalLinkLabel," ")}}function hn(e,r){if(e&1&&s(0,pn,1,2,"app-amor-modal-trigger",17)(1,yn,2,4,"cx-generic-link",18),e&2){let n=a(2);c(n.openLegalLinkAsModal?0:1)}}function un(e,r){if(e&1&&(m(0,"div",1)(1,"div",2)(2,"div",3),s(3,X,2,2,"h1",4),s(4,Z,2,2,"div",5),m(5,"div",6),s(6,en,4,3,"div",7),s(7,tn,4,3,"div",7),s(8,an,4,3,"div",7),s(9,bn,4,3,"div",7),i(),s(10,cn,4,6,"div",8),m(11,"div",9),s(12,dn,3,1),s(13,hn,2,1),i()()()()),e&2){let n=r,o=a();t(),b("ngClass",o.getBannerBgClass(n.bannerColor)+" "+(n.bannerMargin===o.bottomMarginLabel?"banner-margin-bottom":""))("ngStyle",o.getComponentStyles()),t(2),c(n.headerText?3:-1),t(),c(n.subHeader?4:-1),t(2),c(n.body1?6:-1),t(),c(n.body2?7:-1),t(),c(n.body3?8:-1),t(),c(n.body4?9:-1),t(),c(n.button1Text?10:-1),t(),b("ngClass",A(12,J,o.openLegalLinkAsModal)),t(),c(n.legalText?12:-1),t(),c(n.legalTextUrl&&n.legalLinkLabel?13:-1)}}var u=class e{constructor(r,n){this.component=r;this.sanitizer=n;this.openLegalLinkAsModal=!1;this.styleObj={};this.subscriptions$=new g;this.bottomMarginLabel=F.BOTTOM}ngOnInit(){let r=this.component.data$.subscribe(n=>{this.bmsmHeroBanner=n,this.bmsmHeroBanner&&this.setProperties()});this.subscriptions$.add(r),this.openLegalLinkAsModal=this.bmsmHeroBanner?.isLegalLinkModal==="true"}getComponentStyles(){return Object.keys(this.styleObj).length>0?this.styleObj:(this.styleObj["--background-img-mobile-url"]=`url(${this.bmsmHeroBanner.mobileImageUrl})`,this.styleObj["--background-img-url"]=`url(${this.bmsmHeroBanner.imageUrl})`,this.styleObj["--gradient-hex-color"]=this.gradientHexColor,this.styleObj["--gradient-color-opacity"]=this.colorWithOpacity,this.styleObj)}setProperties(){if(this.bmsmHeroBanner.gradientHexColor?.startsWith("#")&&this.bmsmHeroBanner.gradientHexColor.length===7&&(this.gradientHexColor=this.bmsmHeroBanner.gradientHexColor),this.bmsmHeroBanner.gradientOpacity){let r=this.bmsmHeroBanner.gradientOpacity.substring(1,3);this.colorWithOpacity=`${this.bmsmHeroBanner.gradientHexColor}${r}`}}getBannerBgClass(r){return r?.length>0&&$[r.toUpperCase()]||""}ngOnDestroy(){this.subscriptions$.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)(x(U),x(N))}}static{this.\u0275cmp=v({type:e,selectors:[["app-amor-bmsm-hero-banner"]],standalone:!1,decls:2,vars:3,consts:[["buttonTemplate",""],[1,"amor-container","se-component"],[1,"amor-hero-banner","amor-bmsm-banner",3,"ngClass","ngStyle"],[1,"amor-hero-banner-info"],[1,"amor-hero-banner-header","header-display-2",3,"innerHTML"],[1,"amor-hero-banner-subheader","heading-five",3,"innerHTML"],[1,"bmsm-content-info"],[1,"bmsm-body-content","bmsm-body-one"],[1,"amor-hero-banner-buttons"],[1,"legal-text-container",3,"ngClass"],[1,"amor-hero-banner-body","heading-three",3,"innerHTML"],[1,"amor-hero-banner-body","body-two",3,"innerHTML"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"btn-items","btn-large",3,"url"],[1,"btn-items",3,"url"],[1,"btn-items","btn-small",3,"url"],[1,"amor-hero-banner-legal-text","body-two"],[3,"modalLabel","modalUrl"],["target","_blank",3,"url","class"],["target","_blank",3,"url"]],template:function(n,o){if(n&1&&(s(0,un,14,14,"div",1),I(1,"async")),n&2){let C;c((C=L(1,1,o.component.data$))?0:-1,C)}},dependencies:[k,R,w,P,G,z],styles:[`.amor-container .amor-hero-banner.amor-bmsm-banner{justify-content:space-evenly;height:650px;padding:0 16px}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info{text-align:center;padding:0;width:auto}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-header{-webkit-line-clamp:1;white-space:unset}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-subheader:not(:last-child){margin-bottom:56px;-webkit-line-clamp:1}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-body:not(:last-child){margin-bottom:22px}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-buttons{margin-top:56px;justify-content:center;gap:0}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info{display:flex;flex-wrap:wrap}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content{padding:0 16px;flex:1 1 calc(25% - 16px);text-align:center;box-sizing:border-box;max-width:225px}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-one,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-two,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-three,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-four{border-right:2px solid #000000}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-one .amor-hero-banner-body.heading-three,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-one .amor-hero-banner-body.body-two,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-two .amor-hero-banner-body.heading-three,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-two .amor-hero-banner-body.body-two,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-three .amor-hero-banner-body.heading-three,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-three .amor-hero-banner-body.body-two,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-four .amor-hero-banner-body.heading-three,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-four .amor-hero-banner-body.body-two{-webkit-line-clamp:2;line-clamp:2}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-one .amor-hero-banner-body.heading-three,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-two .amor-hero-banner-body.heading-three,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-three .amor-hero-banner-body.heading-three,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-four .amor-hero-banner-body.heading-three{padding:0 13px;
1max-width:200px}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content:last-child{border-right:none}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-legal-text{-webkit-line-clamp:2;line-clamp:2}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-legal-link{display:inline;white-space:unset;margin:0}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-legal-text,.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .tertiary-text-decoration.amor-hero-banner-legal-link{font-size:14px;line-height:21px}.amor-container .amor-hero-banner.amor-bmsm-banner.no-background-color{background-color:transparent}.amor-container .amor-hero-banner.amor-bmsm-banner.banner-full-image{justify-content:center}@media(max-width:767px){.amor-container .amor-hero-banner{flex-direction:column;max-height:667px;text-align:center;font-size:12px}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-header{margin-bottom:16px;-webkit-line-clamp:2;line-clamp:2}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-body:not(:last-child){margin-bottom:18px}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-buttons{margin:32px 0;justify-content:center}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info{gap:16px}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content{position:relative;padding:0;flex:1 1 calc(50% - 16px)}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content .amor-hero-banner-body.heading-three{padding:0 14px}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content:after{content:"";position:absolute;right:-9px;bottom:0;width:2px;height:100%}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content:nth-child(2n):after{content:none}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .bmsm-content-info .bmsm-body-content.bmsm-body-one{border-right:none}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .amor-hero-banner-legal-text{-webkit-line-clamp:2;line-clamp:2}}@media(min-width:320px){.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .legal-text-container{display:flex;align-items:center;justify-content:center}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .legal-text-container .tertiary-text-decoration{display:flex}.amor-container .amor-hero-banner.amor-bmsm-banner .amor-hero-banner-info .legal-text-container .btn-primary-amor.btn-amor{background:none;padding:0;margin:0;text-transform:none;min-height:unset;min-width:unset;font-size:14px;line-height:21px;text-decoration:underline;color:#000;font-weight:400;text-align:left}} 2`],encapsulation:2})}};var K=class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=H({type:e})}static{this.\u0275inj=_({providers:[j({cmsComponents:{AmorBuyMoreSaveMoreHeroBannerComponent:{component:u}}})],imports:[D,V,Y,W]})}};export{K as AmorBmsmHeroBannerModule};
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.