import{d as F,u as M,e as i,J as f,o as t,l as c,a7 as $,w as l,z as d,j as _,h as s,r as k,F as w,t as h,m as a,i as b,n as z,k as I,A as N,B as V,_ as R}from"./rUorOYE2.js";import{_ as j}from"./aLjEM_JM.js";import{_ as D}from"./BA7kQfno.js";import{_ as G}from"./Bjo_uTnR.js";import{_ as q}from"./8vyD78F_.js";const A={key:0,class:"h-features-reviews-section__overline t-body-uppercase"},E={key:1},J=["innerHTML"],O={class:"h-features-reviews-section__feature-text"},K=["innerHTML"],P={key:3,class:"h-features-reviews-section__link-wrapper"},Q={class:"h-features-reviews-section__reviews-wrapper h-grid h-grid--cols-m-1 h-grid--cols-d-3"},U=F({__name:"HFeaturesReviewsSection",props:{data:{type:Object,required:!0},backgroundColor:{type:String,default:"light"},cardBackgroundColor:{type:String,default:"ghost-white"},isShort:{type:Boolean,default:!1}},setup(e){const m=["light","dark","black","ghost-white","primary","white-blue","meteorite-dark","meteorite-dark-2"],{isReverseHelpIcon:y}=M(),r=e,x=i(()=>({...f("h-features-reviews-section--bg",r.backgroundColor,m),"h-features-reviews-section--short":r.isShort})),C=i(()=>({...f("h-features-reviews-section__description--bg",r.backgroundColor,m)})),g=i(()=>r.backgroundColor==="primary"),p=i(()=>r.data.reviewCards||[]),H=n=>n.badgeText?"ui-icons/ic-check-meteorite":g.value?"ui-icons/ic-check-light":"ui-icons/ic-check";return(n,W)=>{const v=V,S=j,B=D,T=G,L=q;return t(),c(L,{data:[e.data],"background-color":e.backgroundColor,class:d(["h-features-reviews-section",x.value]),"is-short":e.isShort},$({"left-column":l(()=>[e.data.overline?(t(),s("span",A,h(e.data.overline),1)):a("",!0),e.data.heading?(t(),s("h2",E,h(e.data.heading),1)):a("",!0),e.data.description?(t(),s("p",{key:2,class:d(["h-features-reviews-section__description",C.value]),innerHTML:e.data.description},null,10,J)):a("",!0),(t(!0),s(w,null,k(e.data.featuresList,(o,u)=>(t(),s("div",{key:`feature-${u}`,class:"h-features-reviews-section__features-wrapper"},[b(v,{icon:H(o),size:{height:24,width:12},class:"h-features-reviews-section__feature-check-icon"},null,8,["icon"]),_("div",O,[_("span",{innerHTML:o.text},null,8,K),o.badgeText?(t(),c(S,{key:0,class:"h-features-reviews-section__feature-badge"},{default:l(()=>[z(h(o.badgeText),1)]),_:2},1024)):a("",!0),o.tooltip?(t(),c(B,{key:1,placement:"bottom-start",content:o.tooltip},{default:l(()=>[b(v,{class:d([{"u-mirror-x":I(y)},"h-features-reviews-section__feature-tooltip-icon"]),icon:g.value?"ui-icons/ic-help-light":"ui-icons/ic-help-gray","view-box":"0 0 24 24",size:{height:24,width:20}},null,8,["class","icon"])]),_:2},1032,["content"])):a("",!0)])]))),128)),n.$slots.button?(t(),s("div",P,[N(n.$slots,"button",{},void 0,!0)])):a("",!0)]),_:2},[p.value.length?{name:"bottom-row",fn:l(()=>[_("div",Q,[(t(!0),s(w,null,k(p.value,(o,u)=>(t(),c(T,{key:`review_card-${u}`,data:o,"background-color":e.cardBackgroundColor,class:"h-grid-item"},null,8,["data","background-color"]))),128))])]),key:"0"}:void 0]),1032,["data","background-color","class","is-short"])}}}),oe=R(U,[["__scopeId","data-v-0eff98fd"]]);export{oe as _};
