1import _ from"./D8mH7zHZ.js";import f from"./C9E_eTDi.js";import y from"./CwCvJ9JX.js";import"./3uWVMof2.js";import"./CwgS_g90.js";import"./DGsdDrBf.js";import"./DUt0kzYd.js";import w from"./Cqzs4zKn.js";import{u as C}from"./bvwQrLgr.js";import{e as x,a as T,w as S,o as m,d as e,u as n,b as v,t as i,C as L,j as d,r as u,c as k}from"./Cq1rSXih.js";import"./B68eOB9V.js";import"./CxubzhZP.js";import"./BPtgrWLA.js";import"./CUzCvIsG.js";import"./DlKykd6e.js";const M={class:"brand-hero__container"},B={class:"brand-hero__image-container"},N=["srcset"],P=["srcset"],I=["srcset"],V=["srcset"],U=["alt","src"],j={class:"brand-hero__content-background"},H={class:"brand-hero__content"},O={key:0,class:"brand-hero__superTitle copy"},F={class:"brand-hero__copy copy"},G=["action"],W={for:"brand-hero-location",class:"brand-hero__label copy spacing--is-mb-xxsmall"},A={class:"brand-hero__form-input-container"},D={type:"submit",class:"brand-hero__form-submit brand-hero__submit-button button button--is-utility button--is-dark"},E=x({__name:"BrandHero",props:{...y,location:{type:String,default:""},actionUrl:{type:String,default:"/retirement-communities"},image:{type:Object,default:()=>({source:"",alt:""})},mobileImage:{type:Object,default:()=>({source:"",alt:""})},mainTitle:{type:String,default:""},mainTitleTag:{type:String,default:"h2"},mainTitleStyleLevel:{type:String,default:"2"},superTitle:{type:String,default:"-"},copy:{type:String,default:""},label:{type:String,default:""},ctaText:{type:String,default:""}},setup(t){const r=t,c=u(null),s=u(""),l=k(()=>r.mobileImage?.source===""?r.image:r.mobileImage),b=()=>{const o=C();o.init({container:"brand-hero-location",width:"200px",limit:3,minCharacters:2,showMarkers:!1,countryCode:o.getCountryCode(),onSelection:a=>{s.value=a.addressLabel,c.value?.submit()}})};return(o,a)=>{const p=_,h=f;return m(),T(h,{bottomMargin:o.bottomMargin,bottomPadding:o.bottomPadding,topPadding:o.topPadding,className:"brand-hero",extraContainerClassName:o.extraContainerClassName,componentId:o.componentId,allowMaxWidth:o.allowMaxWidth,topLine:o.topLine,bottomLine:o.bottomLine},{default:S(()=>[e("div",M,[e("div",B,[e("picture",null,[e("source",{srcset:t.image.source+"?tr=w-1000,f-webp",media:"(min-width: 1400px)"},null,8,N),e("source",{srcset:t.image.source+"?tr=w-800,f-webp",media:"(min-width: 1200px)"},null,8,P),e("source",{srcset:t.image.source+"?tr=w-700,f-webp",media:"(min-width: 992px)"},null,8,I),e("source",{srcset:n(l).source+"?tr=w-1000,f-webp",media:"(min-width: 576px)"},null,8,V),e("img",{alt:n(l).alt,src:n(l).source+"?tr=w-535,f-webp",loading:"eager",width:"1000",height:"563",class:"brand-hero__image"},null,8,U)])]),e("div",j,[e("div",H,[t.superTitle?(m(),v("p",O,i(t.superTitle),1)):L("",!0),d(p,{extraClass:"brand-hero__main-title spacing--is-mb-xxsmall",text:t.mainTitle,tag:t.mainTitleTag,styleLevel:t.mainTitleStyleLevel},null,8,["text","tag","styleLevel"]),e("p",F,i(t.copy),1),e("form",{ref_key:"formRef",ref:c,class:"brand-hero__form form",action:t.actionUrl,method:"GET",onFocusinOnce:b},[e("label",W,i(t.label),1),e("div",A,[d(n(w),{id:"brand-hero-location",modelValue:s.value,"onUpdate:modelValue":a[0]||(a[0]=g=>s.value=g),label:"search",icon:"magnifyingGlass",name:"location",isMaterialStyle:!0},null,8,["modelValue"]),e("button",D,i(t.ctaText),1)])],40,G)])])])]),_:1},8,["bottomMargin","bottomPadding","topPadding","extraContainerClassName","componentId","allowMaxWidth","topLine","bottomLine"])}}}),ie=Object.assign(E,{__name:"BrandHero"});export{ie as default};
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.