1import{_ as L}from"./DZIRYOYE.js";import{_ as S}from"./CZh0O6Ny.js";import{d as T,al as V,e as _,aE as k,c as s,o as t,b as e,a as f,z as o,j as i,i as C,X as N,W as u,_ as $,F as j,x as z,h as w,m as I,a3 as E}from"./CYk2M48Q.js";const F={class:"relative overflow-hidden"},P={key:0,class:"absolute inset-0 z-0"},U={key:1,class:"absolute inset-0 z-0 bg-linear-to-br from-neutral-800 to-neutral-900"},W={key:2,class:"relative z-10 block-section"},H={class:"max-w-4xl mx-auto px-4"},O={key:0,class:"text-body text-white/80 mt-2 text-center"},X={class:"mt-6 flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-8"},q=["href"],A={class:"w-12 h-12 rounded-full bg-white/10 flex items-center justify-center group-hover:bg-white/20 transition-colors"},G={class:"text-left"},J={class:"text-lg font-semibold text-white group-hover:text-primary-400 transition-colors"},K={key:1,class:"hidden sm:block w-px h-12 bg-white/20"},M={key:2,class:"flex flex-col items-center sm:items-start"},Q={key:3,class:"relative z-10 block-section"},R={class:"max-w-4xl mx-auto px-4"},Y={key:1,class:"text-body text-white/80 mt-2 text-center"},Z={class:"mt-6 flex flex-col sm:flex-row items-center justify-center gap-4 sm:gap-8"},ee=["href"],te={class:"w-12 h-12 rounded-full bg-white/10 flex items-center justify-center group-hover:bg-white/20 transition-colors"},se={class:"text-left"},oe={class:"text-lg font-semibold text-white group-hover:text-primary-400 transition-colors"},ne={key:1,class:"hidden sm:block w-px h-12 bg-white/20"},le={key:2,class:"flex flex-col items-center sm:items-start"},ae=T({__name:"BlockCtaBanner",props:{block:{},cityName:{},stateName:{},headingLevel:{default:2}},setup(h){const c=h,{data:l}=V(),g=_(()=>({city:c.cityName,state:c.stateName})),x=_(()=>c.block.title?k(c.block.title,g.value):""),p=_(()=>c.block.subtitle?k(c.block.subtitle,g.value):""),D=_(()=>!!c.block.backgroundImage?.url),r=_(()=>{const a=c.block.ctaButton;if(!a?.label||!a?.url)return[];const n=a.url?.startsWith("http")||a.openNewTab;let m="solid",d="primary";return a.style==="secondary"?(m="soft",d="neutral"):a.style==="outline"&&(m="outline",d="neutral"),[{label:k(a.label,g.value),to:a.url,variant:m,color:d,size:"xl",target:n?"_blank":void 0,external:n,trailingIcon:a.icon}]});return(a,n)=>{const m=L,d=S,y=$,B=E;return t(),s("div",F,[e(D)?(t(),s("div",P,[f(m,{media:h.block.backgroundImage,alt:"",variant:"wide-cover",fill:"",class:"w-full h-full object-cover"},null,8,["media"]),n[0]||(n[0]=o("div",{class:"absolute inset-0 bg-neutral-900/80"},null,-1))])):(t(),s("div",U)),h.headingLevel===1&&e(x)?(t(),s("div",W,[o("div",H,[f(d,{level:h.headingLevel,class:"heading-page text-white text-center"},{default:C(()=>[N(u(e(x)),1)]),_:1},8,["level"]),e(p)?(t(),s("p",O,u(e(p)),1)):i("",!0),o("div",X,[e(l)?.contact?.phone?(t(),s("a",{key:0,href:`tel:${e(l).contact.phone}`,class:"flex items-center gap-3 group"},[o("div",A,[f(y,{name:"i-lucide-phone",class:"w-5 h-5 text-white"})]),o("div",G,[o("div",J,u(e(l).contact.phoneDisplay||e(l).contact.phone),1),n[1]||(n[1]=o("div",{class:"text-sm text-white/60"},"Call us now",-1))])],8,q)):i("",!0),e(l)?.contact?.phone&&e(r).length?(t(),s("div",K)):i("",!0),e(r).length?(t(),s("div",M,[(t(!0),s(j,null,z(e(r),(v,b)=>(t(),w(B,I({key:b},{ref_for:!0},v),null,16))),128)),n[2]||(n[2]=o("span",{class:"text-sm text-white/60 mt-1"},"Takes 2 minutes",-1))])):i("",!0)])])])):(t(),s("div",Q,[o("div",R,[e(x)?(t(),w(d,{key:0,level:h.headingLevel,class:"heading-section text-white text-center"},{default:C(()=>[N(u(e(x)),1)]),_:1},8,["level"])):i("",!0),e(p)?(t(),s("p",Y,u(e(p)),1)):i("",!0),o("div",Z,[e(l)?.contact?.phone?(t(),s("a",{key:0,href:`tel:${e(l).contact.phone}`,class:"flex items-center gap-3 group"},[o("div",te,[f(y,{name:"i-lucide-phone",class:"w-5 h-5 text-white"})]),o("div",se,[o("div",oe,u(e(l).contact.phoneDisplay||e(l).contact.phone),1),n[3]||(n[3]=o("div",{class:"text-sm text-white/60"},"Call us now",-1))])],8,ee)):i("",!0),e(l)?.contact?.phone&&e(r).length?(t(),s("div",ne)):i("",!0),e(r).length?(t(),s("div",le,[(t(!0),s(j,null,z(e(r),(v,b)=>(t(),w(B,I({key:b},{ref_for:!0},v),null,16))),128)),n[4]||(n[4]=o("span",{class:"text-sm text-white/60 mt-1"},"Takes 2 minutes",-1))])):i("",!0)])])]))])}}}),de=Object.assign(ae,{__name:"BlockCtaBanner"});export{de 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.