import{_ as v}from"./WebImage-C1Tp4muM.mjs";import{_ as h,o as n,c as i,a as s,d as f,l as r,b as _,y as S,t as m,q as k,F as B,x as C,p,b8 as z,f as N}from"./CmnEfQIC.js";import"./nuxt-link-BEs8tQ-R.mjs";const I={class:"web-company-banner"},T={class:"title-box"},W={key:0,class:"image"},F={class:"left"},V=["innerHTML"],H={key:0,class:"teaser-text"},M=["innerHTML"],O={__name:"WebCompanyBannerNew",props:{logo:{type:Object},name:{type:String},teaser:{type:String},socialLinks:{type:Array},website:{type:String}},setup(e){return(a,t)=>{var c,l,d;const o=v;return n(),i("div",I,[s("div",T,[(c=e.logo)!=null&&c.src?(n(),i("div",W,[f(o,{image:(l=e.logo)==null?void 0:l.src,alt:(d=e.logo)==null?void 0:d.alt},null,8,["image","alt"])])):r("",!0),s("div",F,[s("h1",{class:"title-text",innerHTML:e.name},null,8,V),e.teaser?(n(),i("div",H,[s("div",{innerHTML:e.teaser},null,8,M)])):r("",!0)])])])}}},j=h(O,[["__scopeId","data-v-984d1b4a"]]),E={props:{logo:{type:Object},name:{type:String},city:{type:String},state:{type:String},zip:{type:String},socialLinks:{type:Array},website:{type:String}},methods:{navigateTo(e){window.open(e)},getIcon(e){var a,t,o;return((a=e.provider)==null?void 0:a.toLowerCase())==="other"?(t=e.url)!=null&&t.includes("rss.xml")?"mdi:rss":"mdi:link-variant":e.provider==="twitter"?"fa6-brands:x-twitter":`mdi:${(o=e.provider)==null?void 0:o.toLowerCase()}`}}},q={class:"ebm-company-banner"},A={class:"name"},D={key:0},$={class:"links"},G={class:"social"},J=["href"];function K(e,a,t,o,c,l){var u,g,b,w;const d=v,x=z,L=N;return n(),i("div",{class:"ebm-company-banner-wrapper",style:p({fontFamily:e.$ss.primaryFontFamily})},[s("div",q,[(u=t.logo)!=null&&u.src?(n(),_(d,{key:0,image:(g=t.logo)==null?void 0:g.src,alt:(b=t.logo)==null?void 0:b.alt,class:"logo"},null,8,["image","alt"])):r("",!0),s("div",{class:S(["details",(w=t.logo)!=null&&w.src?"detail-border":""])},[s("h1",A,m(t.name),1),k(" "+m(t.city),1),t.city&&t.state?(n(),i("span",D,",")):r("",!0),k(" "+m(t.state)+" "+m(t.zip),1),a[1]||(a[1]=s("br",null,null,-1))],2),s("div",$,[t.website?(n(),_(x,{key:0,class:"visit-site",label:"Visit Site",onOnClick:a[0]||(a[0]=()=>{l.navigateTo(t.website)})})):r("",!0),s("div",G,[(n(!0),i(B,null,C(t.socialLinks,y=>(n(),i("a",{key:y.url,href:y.url,target:"_blank",rel:"noopener"},[f(L,{"icon-color":"black",icon:l.getIcon(y),width:30},null,8,["icon","width"])],8,J))),128))])])])],4)}const P=h(E,[["render",K],["__scopeId","data-v-3a50fb5e"]]),X={__name:"CompanyBannerBlock",props:{data:{type:Object,required:!0,validator(e){return["logo","name","city","state","zip","socialLinks","website"].every(a=>a in e)}}},setup(e){return(a,t)=>{const o=j,c=P;return a.$ss.useNewDesign?(n(),_(o,{key:0,name:e.data.name,logo:e.data.logo,teaser:e.data.teaser,"social-links":e.data.socialLinks,website:e.data.website},null,8,["name","logo","teaser","social-links","website"])):(n(),_(c,{key:1,logo:e.data.logo,name:e.data.name,city:e.data.city,state:e.data.state,zip:e.data.zip,"social-links":e.data.socialLinks,website:e.data.website},null,8,["logo","name","city","state","zip","social-links","website"]))}}};export{X as default};