import{s as d,r as k,g as C,a as m,o as r,c as h,b as s,F as b,z as w,k as v,d as n,y as g,l as S,_ as U,aa as y,H as M,I as R,p as E,S as F,O as V,D as B,aq as H,C as G,E as I,G as N}from"./entry.2cbbcc91.js";import{_ as W}from"./CardDeal.4935d67a.js";import{_ as P}from"./GoogleReviews.7a04d7c3.js";import{_ as z}from"./ProductBrandFeatures.0e12f4c9.js";import{_ as q}from"./AwardCard.ee524d51.js";import{u as J}from"./useSocialMeta.d88d9756.js";import"./client-only.ddcd4db4.js";import"./CardBrandFeature.8d701d03.js";import"./Accordion.9b3b7eff.js";const O={key:0,class:"home-deals"},j={class:"deal-cards"},K=s("dd",null,"All deals and promos",-1),Q={__name:"SectionDeals",props:{cards:Array},setup(t){const a=t,c=d(()=>{let o=a.cards.filter(i=>i.isFeatured),f=a.cards.filter(i=>!i.isFeatured);if(o.length>3)return o.slice(0,3);let u=3-o.length;return[...o,...f.slice(0,u)]}),e=k(!1),l=()=>{window&&(e.value=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)<=600)};return C(()=>{setTimeout(()=>{window&&(l(),window.onresize=()=>{l()})},1)}),(o,f)=>{const u=U,i=y;return m(c).length?(r(),h("section",O,[s("div",j,[(r(!0),h(b,null,w(m(c),p=>(r(),v(m(W),{deal:p},null,8,["deal"]))),256)),n(i,{to:"/deals",class:"deal-card empty"},{default:g(()=>[s("dl",null,[s("dt",null,[n(u,{name:"flame"})]),K])]),_:1})])])):S("",!0)}}},X=""+globalThis.__publicAssetsURL("images/partners/echo.svg"),Y=""+globalThis.__publicAssetsURL("images/partners/standard-bank.svg"),Z=""+globalThis.__publicAssetsURL("images/partners/mellanox.svg"),tt=""+globalThis.__publicAssetsURL("images/partners/vuma.svg"),st=""+globalThis.__publicAssetsURL("images/partners/virgin-active.svg"),et=""+globalThis.__publicAssetsURL("images/partners/openserve.svg"),at=""+globalThis.__publicAssetsURL("images/partners/harcourts.svg"),ot=""+globalThis.__publicAssetsURL("images/partners/mtn.svg"),nt=""+globalThis.__publicAssetsURL("images/partners/samsung.svg"),rt=""+globalThis.__publicAssetsURL("images/partners/fnb.svg");const it={},ct={class:"brand-bar"},lt=R('<div class="wrapper"><p>Brands who trust us</p><div class="logos"><img src="'+X+'" width="46" height="25" alt=""><img src="'+Y+'" width="121" height="25" alt=""><img src="'+Z+'" width="106" height="25" alt=""><img src="'+tt+'" width="72" height="12" alt=""><img src="'+st+'" width="53" height="25" alt=""><img src="'+et+'" width="64" height="34" alt=""><img src="'+at+'" width="56" height="12" alt=""><img src="'+ot+'" width="50" height="25" alt=""><img src="'+nt+'" width="82" height="12" alt=""><img src="'+rt+'" width="72" height="25" alt=""></div></div>',1),_t=[lt];function dt(t,a){return r(),h("section",ct,_t)}const mt=M(it,[["render",dt]]);const ht={class:"awards"},ut={class:"wrapper"},pt=s("h2",{class:"section-title"},"And our products are pretty innovative.",-1),gt=s("h3",null,"That’s because of the passionate people that call Afrihost home. This passion is why we can offer you great value at almost no risk. As an Afrihost client you can expect only the best, because we go to extraordinary lengths to put you first.",-1),ft=s("p",{class:"hand"},"We cannot wait to welcome you to our family.",-1),bt={class:"award-cards"},wt=s("a",{href:"/awards",class:"section-link"},"View all Afrihost awards »",-1),vt={__name:"SectionAwards",props:{cards:Array},setup(t){return(a,c)=>{const e=y,l=q;return r(),h("section",ht,[s("div",ut,[pt,gt,ft,n(e,{to:"/page/afrihost-story",class:"section-link"},{default:g(()=>[E("More about the Afrihost story »")]),_:1}),s("div",bt,[(r(!0),h(b,null,w(t.cards,o=>(r(),v(l,{class:"--size-compact",award:o},null,8,["award"]))),256))]),wt])])}}},yt=F("home",{state:()=>({_homeData:!1,_deals:!1}),getters:{homeData:t=>t._homeData,deals:t=>t._deals},actions:{async getHomeData(){const{data:t,errors:a}=await V("home",()=>H());if(a||!t.value)throw B({statusCode:500,statusMessage:"Failed to load data for page",fatal:!0});this._homeData=t.value.homeEntries[0],this._deals=t.value.deals}}}),At=s("div",{class:"header-content-center"},null,-1),Mt={__name:"index",async setup(t){let a,c;const e=yt();[a,c]=G(()=>e.getHomeData()),await a,c(),d(()=>e.homeData.headerCards),d(()=>e.homeData.promoCards);const l=d(()=>{let p=[];return e.homeData.aboutCards.forEach(_=>{p.push({icon:_.cardIcon,label:_.cardTitle,description:_.cardContent,linkLabel:_.cardLinkLabel,url:_.cardUrl})}),p}),o=d(()=>e.homeData.awardCards),f=d(()=>e.deals),{buildMeta:u}=J(),i=u("Pure Internet Joy | Fibre, LTE, 5G, Mobile, DSL, VoIP and Web Hosting","Get DSL, LTE, 5G, cellular, mobile data, Fibre, web hosting and domains, from Afrihost, South Africa's award-winning broadband and telecoms service provider.","/images/social-default.png");return I({title:"Pure Internet Joy | Fibre, LTE, 5G, Mobile, DSL, VoIP and Web Hosting",meta:i,bodyAttrs:{class:"--theme-home"}}),(p,_)=>{const A=N,x=Q,L=mt,T=P,D=z,$=vt;return r(),h("main",null,[n(A,{theme:"home",wide:!0},{content:g(()=>[At]),cards:g(()=>[]),_:1}),n(x,{cards:m(f)},null,8,["cards"]),n(L),n(D,{cutoutTop:!1,"cutout-bottom":!0,cards:m(l)},{content:g(()=>[n(T,{orientation:"vertical",theme:"home"})]),_:1},8,["cards"]),n($,{cards:m(o)},null,8,["cards"])])}}};export{Mt as default};
