import{_ as p,a as _,b as f}from"./WebLeadingCompaniesFlyout-U1HLTkec.mjs";import{_ as g,o as s,c as a,a as l,d as u,F as v,r as x,b as c,i as C,w as F,a8 as b,N as k}from"./entry.DPwc-EV0.js";import"./WebHTML-UohjwGfe.mjs";import"./WebImage-BBQZzdK6.mjs";import"./index-CngUKuta.mjs";import"./WebContentList-W4TiV2An.mjs";import"./WebContentItem-DFVYreAc.mjs";import"./useImageUrl-1XbeiwSF.mjs";const T={props:{companies:{type:Array,required:!0},hoverBackgroundColor:{type:String,required:!0},hoverTextColor:{type:String,required:!0},subText:{type:[Object,String]},headingBackgroundColor:{type:String,required:!0},headingText:{type:[Object,String]},headingTextColor:{type:String,required:!0},allCompaniesLink:{type:String}},data(){return{flyout:{pos:{x:0,y:0},company:{},hoverStatus:"off"},isFlyoutHovered:!1}},computed:{showFlyout(){return this.flyout.hoverStatus==="on"||this.isFlyoutHovered},numColumns(){return 3}},methods:{columnContents(t){return this.companies.slice(t*(this.companies.length/this.numColumns),this.companies.length/this.numColumns+t*(this.companies.length/this.numColumns))},handleFlyoutHoverOn(){this.currentTimeout&&clearTimeout(this.currentTimeout),this.isFlyoutHovered=!0},handleFlyoutHoverOff(){this.currentTimeout=setTimeout(()=>{this.isFlyoutHovered=!1},300)},updateFlyoutData(t,n){this.currentTimeout=n,!(t.hoverStatus==="off"&&t.company.name!==this.flyout.company.name)&&(this.flyout={...this.flyout,...t})}}},H={class:"web-leading-companies-flat"},S={class:"columns-wrapper"},w={class:"columns"},B={key:0,class:"all-companies-link"},L=["href"];function O(t,n,e,q,r,i){const d=p,m=_,h=f,y=k;return s(),a("div",H,[l("div",null,[u(d,{"heading-background-color":e.headingBackgroundColor,"heading-text":e.headingText,"heading-text-color":e.headingTextColor,"sub-text":e.subText},null,8,["heading-background-color","heading-text","heading-text-color","sub-text"]),l("div",S,[l("div",w,[(s(!0),a(v,null,x(e.companies,o=>(s(),a("div",{key:o.href},[(s(),c(m,{key:o.href,company:o,"hover-background-color":e.hoverBackgroundColor,"hover-text-color":e.hoverTextColor,"flyout-direction":"left","is-flyout-hovered":o.name===r.flyout.company.name?r.isFlyoutHovered:!1,onHoverChange:i.updateFlyoutData},null,8,["company","hover-background-color","hover-text-color","is-flyout-hovered","onHoverChange"]))]))),128))])]),e.allCompaniesLink?(s(),a("div",B,[l("a",{href:e.allCompaniesLink},"View All Companies >",8,L)])):C("",!0)]),u(y,null,{default:F(()=>[(s(),c(b,{to:"body"},[l("div",{onMouseover:n[0]||(n[0]=(...o)=>i.handleFlyoutHoverOn&&i.handleFlyoutHoverOn(...o)),onMouseleave:n[1]||(n[1]=(...o)=>i.handleFlyoutHoverOff&&i.handleFlyoutHoverOff(...o))},[u(h,{company:r.flyout.company,"pos-x":r.flyout.pos.x,"pos-y":r.flyout.pos.y,direction:r.flyout.direction,show:i.showFlyout},null,8,["company","pos-x","pos-y","direction","show"])],32)]))]),_:1})])}const I=g(T,[["render",O],["__scopeId","data-v-c8fe4c99"]]);export{I as default};