import{_ as V}from"./CcIvZUZ5.js";import{d as y,u as H,q as I,m as p,P as r,o as n,b as c,a as m,F as x,n as h,c as F,w as C,t as S,h as b,e as w,j as B}from"./Deq5r4HQ.js";const M=["dir"],L={class:"h-plan-feature__content"},T={key:0,xmlns:"http://www.w3.org/2000/svg",height:"24",width:"16",viewBox:"0 0 16 2"},E={key:1,xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:"0 0 16 16"},P=["innerHTML"],j=["innerHTML"],q={key:2,class:"h-plan-feature__content--beta-badge"},z=y({__name:"HPricingCardFeature",props:{featureInfo:{type:Object,required:!0},specificationValue:{type:Object,default:null},productSlug:{type:String,default:void 0},isFeatureComparisonExperimentLive:{type:Boolean,default:!1}},setup(l){const{direction:k}=H(),{t}=I(),e=l,g=p(()=>{var o,a,u,s;if(e.isFeatureComparisonExperimentLive&&((o=e.featureInfo.name)!=null&&o.includes("email"))&&e.productSlug){const f=(u={[r.HostingerStarter]:{"feature-list.feature.email-account-amount":t("feature-list.tooltip.free-email-short")},[r.HostingerPremium]:{"feature-list.feature.free-email":t("feature-list.tooltip.free-email-short")},[r.HostingerBusiness]:{"feature-list.feature.free-email":t("feature-list.tooltip.free-email-short")},[r.CloudEconomy]:{"feature-list.feature.free-email":t("feature-list.tooltip.free-email-short")}}[e.productSlug])==null?void 0:u[((a=e.featureInfo)==null?void 0:a.feature)||""];if(f)return f}return t(((s=e.featureInfo)==null?void 0:s.tooltip)||"",_.value)}),v=p(()=>{var o,a,u,s;if(e.isFeatureComparisonExperimentLive&&((o=e.featureInfo.name)!=null&&o.includes("email"))&&e.productSlug){const f=(u={[r.HostingerStarter]:{"feature-list.feature.free-email":t("feature-list.feature.one-email-address"),"feature-list.feature.email-account-amount":t("feature-list.feature.one-email-address")},[r.HostingerPremium]:{"feature-list.feature.free-email":t("feature-list.feature.email-addresses",{value:10})},[r.HostingerBusiness]:{"feature-list.feature.free-email":t("feature-list.feature.email-addresses",{value:50})},[r.CloudEconomy]:{"feature-list.feature.free-email":t("feature-list.feature.email-addresses",{value:100})}}[e.productSlug])==null?void 0:u[((a=e.featureInfo)==null?void 0:a.feature)||""];if(f)return f}return t(((s=e.featureInfo)==null?void 0:s.feature)||"",_.value)}),_=p(()=>{var u,s,i;if(!e.specificationValue)return{};const o=["feature-list.feature.websites-amount","feature-list.feature.nvme-storage-amount","feature-list.feature.ssd-storage-amount"];if(e.isFeatureComparisonExperimentLive&&o.includes(((u=e.featureInfo)==null?void 0:u.feature)||"")&&e.productSlug){const d=(i={[r.HostingerStarter]:{"feature-list.feature.website-amount":"1","feature-list.feature.ssd-storage-amount":"10"},[r.HostingerPremium]:{"feature-list.feature.websites-amount":"10","feature-list.feature.ssd-storage-amount":"25"},[r.HostingerBusiness]:{"feature-list.feature.websites-amount":"50","feature-list.feature.nvme-storage-amount":"50"},[r.CloudEconomy]:{"feature-list.feature.websites-amount":"100","feature-list.feature.nvme-storage-amount":"200"}}[e.productSlug])==null?void 0:i[((s=e.featureInfo)==null?void 0:s.feature)||""];if(d)return{price:d,value:d}}const a=e.specificationValue.isTranslatable?t(e.specificationValue.value):e.specificationValue.value;return{price:a,value:a}});return(o,a)=>{var s,i;const u=V;return n(),c("div",{class:"h-plan-feature",dir:b(k)},[m("div",L,[l.featureInfo.checkmark==="disabled"?(n(),c("svg",T,a[0]||(a[0]=[m("path",{d:"M1 1H13",stroke:"#6D7081","stroke-width":"2.5","stroke-linecap":"round"},null,-1)]))):(n(),c("svg",E,a[1]||(a[1]=[m("g",null,[m("path",{fill:"#00b090",d:"M12 8.758a.694.694 0 0 1-.217.515l-5.605 5.485-1.053 1.03A.725.725 0 0 1 4.6 16a.724.724 0 0 1-.527-.212l-1.053-1.03-2.803-2.743A.694.694 0 0 1 0 11.5c0-.202.072-.374.217-.515l1.053-1.03a.725.725 0 0 1 .526-.213c.207 0 .382.071.527.213L4.6 12.19l5.078-4.977c.14-.14.33-.216.527-.212.206 0 .382.07.526.212l1.053 1.03c.142.134.22.321.217.516Z"})],-1)]))),(s=l.featureInfo)!=null&&s.feature?(n(),c(x,{key:2},[g.value?(n(),F(u,{key:1,placement:"bottom-start",content:g.value},{default:C(()=>[m("div",{class:h(["t-body-4 h-plan-feature__content--tooltip-text",{"h-plan-feature__content--disabled":l.featureInfo.checkmark==="disabled"}]),innerHTML:v.value},null,10,j)]),_:1},8,["content"])):(n(),c("div",{key:0,class:h(["t-body-4",{"h-plan-feature__content--disabled":l.featureInfo.checkmark==="disabled"}]),innerHTML:v.value},null,10,P)),(i=l.featureInfo)!=null&&i.isBetaFeature?(n(),c("div",q,S(b(t)("global.betaBadge")),1)):w("",!0)],64)):w("",!0)])],8,M)}}}),N=B(z,[["__scopeId","data-v-0c15df19"]]);export{N as _};