1import{_ as $}from"./B44RviAf.js";import{_ as M,u as W,m as z,s as H,l as R,r as b,b as E,a as P,h as j,x as n,e as t,w as e,V as g,F as c,o,D as T,an as d,y as u,c as _,f as p,K as x,g as w,W as K,z as O,d as q,E as G}from"./CqkWQRVg.js";import{u as J}from"./UKLHFCrG.js";import{V as I}from"./_gSpnYqS.js";import{V as Q}from"./CtF0w3jz.js";import{V as U,a as X}from"./BmDZzmVy.js";import{V as Y}from"./HFLfl0Dr.js";import{c as A,a as Z,b as ee}from"./Bk6gAZfC.js";import{a as te}from"./qWklQMKp.js";import"./CYR28IFh.js";import"./DHfBH8QY.js";import"./pF3aENBN.js";import"./DfqzgljZ.js";import"./DkJYMv0n.js";const ae={class:"flex-column align-center text-center"},se=16/9,oe={__name:"index",async setup(le){let C,V;const v=W(),m=z(),{companies:h,sectors:L}=H(m),{isDesktop:B}=R(),l=b(""),f=b([]);E({title:"Companies",ogTitle:"Companies on ITWeb Africa",description:"Companies on ITWeb Africa",ogDescription:"Companies on ITWeb Africa"}),P({link:[{rel:"canonical",href:`${v.domain}/office`}],script:[{type:"application/ld+json"}]}),m.setIndicator({name:"Companies",id:null,kind:"term"}),[C,V]=j(()=>J("companies",()=>m.setCompanies(!0))),await C,V();const D=a=>({url:a==null?void 0:a.logo}),k=a=>a!=null&&a.url?{name:"office-name",params:{name:a.url.split("/").filter(Boolean).pop()}}:{};f.value=h.value;const y=async()=>{if(l.value){const a=`${v.cdn}/1.1/contributors/companies?publication=africa&profile=true&category=${l.value}`;f.value=await $fetch(a)}else f.value=h.value},S=a=>{l.value=a,y()},F=()=>{l.value="",y()};return(a,i)=>{const N=$;return o(),n(c,null,[t(g,{"no-gutters":""},{default:e(()=>[t(T,{cols:"12",class:"d-flex pa-2"},{default:e(()=>[t(I,{width:"250","max-height":"500"},{activator:e(({props:s})=>[t(w,K({color:"primary"},s),{default:e(()=>i[0]||(i[0]=[p("Filter by Sector")])),_:2,__:[0]},1040)]),default:e(()=>[t(Q,null,{default:e(()=>[(o(!0),n(c,null,d(u(L),s=>(o(),_(U,{key:s.id,onClick:r=>S(s.term)},{default:e(()=>[t(X,null,{default:e(()=>[p(x(s.term),1)]),_:2},1024)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1}),u(l)?(o(),_(Y,{key:0,closable:"",size:"large",color:"primary",variant:"flat",class:"ml-2","onClick:close":F},{default:e(()=>[p(x(u(l)),1)]),_:1})):O("",!0)]),_:1})]),_:1}),t(g,{"no-gutters":""},{default:e(()=>[(o(!0),n(c,null,d(u(f),s=>(o(),n(c,{key:s.id},[(o(!0),n(c,null,d(s.agreements,r=>(o(),_(T,{key:r.code,cols:"12",sm:"6",md:"4",lg:"3",class:"pa-2"},{default:e(()=>[t(A,{tonal:"","border-radius":"1",class:"fill-height",hover:""},{default:e(()=>[t(I,{activator:"parent","open-on-hover":"",location:"center center","close-on-content-click":!1},{default:e(()=>[t(A,{width:"400","max-height":"500",class:"pa-2"},{default:e(()=>[q("div",ae,[t(Z,{class:"text-wrap"},{default:e(()=>[p(x(s.name),1)]),_:2},1024),t(w,{to:k(r),class:G(["text-body-2 text-white text-uppercase",u(B)&&"mb-2"]),style:{background:"#cc2c0e"},density:"comfortable"},{default:e(()=>i[1]||(i[1]=[p("Visit our Press Office ")])),_:2,__:[1]},1032,["to","class"])]),t(ee,{class:"px-2",innerHTML:r.profile},null,8,["innerHTML"])]),_:2},1024)]),_:2},1024),t(N,{to:k(r)},{default:e(()=>[t(te,{src:D(r).url,"aspect-ratio":se,contain:"",class:"company-logo",height:"150"},null,8,["src"])]),_:2},1032,["to"])]),_:2},1024)]),_:2},1024))),128))],64))),128))]),_:1})],64)}}},he=M(oe,[["__scopeId","data-v-f77ffc29"]]);export{he as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.