1import{C as N,D as c,u as U,c as b,o as a,k as l,j as i,d as v,w as n,G as e,x as g,t as d,n as y,a as V,A as $}from"./vue.n0_XhDsB.js";import{m}from"./api.BmDntcUS.js";import{_ as G,m as W,o as j}from"./AppNavigationMobile.vue_vue_type_style_index_0_scoped_5273702e_lang.CbgTup_E.js";import{D as E}from"./DynamicImageTag.BpnVN101.js";import"./gmaps.POY31H5s.js";import"./vue-router.DcAi--qK.js";import"./debounce.DIkFhc6G.js";import"./icons.DLkAP7UY.js";import"./Search.C8Ith0ty.js";const F={class:"sharedcalltoactioncenteredblock"},at=N({__name:"SharedCallToActionCenteredBlock",props:{model:{}},setup(C){const B=C,{image:t,anchorId:A,title:D,leadParagraph:T,preserveAspectRatio:w,readMoreLink:o,buttonStyle:s}=B.model,x=c(()=>({imageUrl:t==null?void 0:t.urlWithPreset,localizedAlt:t==null?void 0:t.localizedAlt,aspectRatio:t==null?void 0:t.aspectRatio,width:t==null?void 0:t.width,height:t==null?void 0:t.height,focalPoint:t==null?void 0:t.focalPoint})),{imageUrl:I,localizedAlt:P,aspectRatio:z,width:R,height:S,focalPoint:L}=x.value,p=c(()=>({imageUrl:I,imageTitle:P,wideImage:!1,resizeToFit:!1,isBackgroundImage:!1,imageClasses:"cta-block__image",editAttribute:"Image",aspectRatio:z,width:R,height:S,focalPoint:L})),M=c(()=>({"btn--primary":s===m.Black,"btn--secondary":s===m.Green,"btn--primary btn--on-dark-hero":s===m.White}));return(q,H)=>{var _,u,h;const r=U("opti-edit");return a(),b("div",F,[(a(),l($((_=e(o))!=null&&_.url?j:"div"),{class:y(["cta-block",{"cta-block--preserve-ration":e(w)}]),href:(u=e(o))==null?void 0:u.url,target:(h=e(o))==null?void 0:h.target},{default:i(()=>{var f,k;return[p.value.imageUrl?(a(),l(E,{key:0,model:p.value},null,8,["model"])):v("",!0),n((a(),l(G,{level:4,class:"cta-block__title",id:e(A)},{default:i(()=>[g(d(e(D)),1)]),_:1},8,["id"])),[[r,"Title"]]),n((a(),l(W,{class:"cta-block__text"},{default:i(()=>[g(d(e(T)),1)]),_:1})),[[r,"LeadParagraph"]]),(f=e(o))!=null&&f.url?n((a(),b("div",{key:1,class:y(["btn cta-block__btn",M.value])},[V("span",null,d((k=e(o))==null?void 0:k.text),1)],2)),[[r,"ReadMoreLink"]]):v("",!0)]}),_:1},8,["class","href","target"]))])}}});export{at 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.