1import{_ as et}from"./nuxt-link.d57b6c76.js";import{u as at}from"./useStrapi.169f1093.js";import{u as st}from"./vue.f36acd1f.ac966345.js";import{d as nt,a as m,X as ot,x as it,D as i,P as r,Q as L,Y as w,Z as b,u as g,G as y,F as h,R as v,U as Q,_ as rt}from"./swiper-vue.f07cf495.js";import"./entry.48f353af.js";const lt={class:"flex justify-center items-center"},ut={class:"w-full max-w-[1000px] pb-20"},ct=L("h1",{class:"text-[24px] md:text-[34px] leading-[34px] md:leading-[20px] w-full max-w-[100%] mt-6 font-bold"},"GoKonnect Sitemap",-1),pt={class:"text-[20px] md:text-[24px] leading-[20px] md:leading-[24px] w-full max-w-[100%] mt-6 font-bold"},dt={key:0,class:"pl-6 list-disc"},mt={key:1,class:"pl-6 list-disc"},k="Sitemap | GoKonnect",P="",gt="",_t="index",ft="summary_large_image",kt=nt({__name:"sitemap",async setup(xt){var S,$,N,U,B,V,F,G,K,M,j,A,E,H;let p,C;const{find:_}=at(),c=m([]),f=m([]),x=m([]),d=m({}),I=n=>{var t,u,l;let o=(l=(u=(t=n.attributes.parentPage)==null?void 0:t.data)==null?void 0:u.attributes)==null?void 0:l.slug,e=n.attributes.slug,a=n.attributes.urlLink;if(!o&&!e&&!a)return"/#";if(o&&e)return`/${o}/${e}`;if(e)return`/${e}`;if(a)return a},X=async()=>{let n=1,o=!0;for(;o;){const e=await _(`blogs?populate=*&pagination[page]=${n}`);f.value.push(...e.data),o=n<e.meta.pagination.pageCount,n++}},Y=async()=>{let n=1,o=!0;for(;o;){const t=await _(`pages?populate=*&populate=parentPage&sort[0]=id&pagination[page]=${n}`),u=t.data.filter(l=>l.attributes.slug!=="404");c.value.push(...u),o=n<t.meta.pagination.pageCount,n++}const e=c.value.findIndex(t=>t.attributes.slug==="blog"),a=e>-1?c.value.splice(e,1)[0]:null;x.value=c.value.filter(t=>!t.attributes.parentPage.data),d.value=c.value.filter(t=>t.attributes.parentPage.data).reduce((t,u)=>{const l=u.attributes.parentPage.data.id;return t[l]||(t[l]=[]),t[l].push(u),t},{}),a&&(d.value[a.id]=f.value,x.value.push(a))},s=([p,C]=ot(()=>_("global-setting?populate=*")),p=await p,C(),p),T=(B=(U=(N=($=(S=s==null?void 0:s.data)==null?void 0:S.attributes)==null?void 0:$.DefaultShareImage)==null?void 0:N.data)==null?void 0:U.attributes)==null?void 0:B.url,Z=P,q=k,R=`${(F=(V=s==null?void 0:s.data)==null?void 0:V.attributes)==null?void 0:F.SiteURL}/login`,z=s.data.attributes.TwitterName,J=k,O=P,W=T,D=(A=(j=(M=(K=(G=s==null?void 0:s.data)==null?void 0:G.attributes)==null?void 0:K.FavIcon)==null?void 0:M.data)==null?void 0:j.attributes)==null?void 0:A.url,tt=(H=(E=s==null?void 0:s.data)==null?void 0:E.attributes)==null?void 0:H.SiteURL;return st({title:k,meta:[{name:"description",content:P},{name:"keywords",content:gt},{name:"robots",content:_t},{property:"og:description",content:Z},{property:"og:title",content:q},{property:"og:image",content:T},{property:"og:url",content:R},{name:"twitter:card",content:ft},{name:"twitter:creator",content:z},{name:"twitter:title",content:J},{name:"twitter:description",content:O},{name:"twitter:image",content:W},{name:"twitter:site",content:tt}],link:[{rel:"canonical",href:R},{rel:"icon",type:"image/x-icon",href:D}],script:[{type:"application/ld+json"}]}),it(async()=>{await X(),Y()}),(n,o)=>{const e=et;return i(),r("div",lt,[L("div",ut,[ct,(i(!0),r(w,null,b(g(x),a=>(i(),r("div",{key:a.id,class:"parent-page"},[y(e,{to:I(a),class:"parent-page-link"},{default:h(()=>[L("h2",pt,v(a.attributes.PageTitle),1)]),_:2},1032,["to"]),a.attributes.slug==="blog"?(i(),r("ul",dt,[(i(!0),r(w,null,b(g(f),t=>(i(),r("li",{key:t.id},[y(e,{to:`/blog/${t.attributes.slug}`,class:"underline"},{default:h(()=>[Q(v(t.attributes.Title),1)]),_:2},1032,["to"])]))),128))])):g(d)[a.id]?(i(),r("ul",mt,[(i(!0),r(w,null,b(g(d)[a.id],t=>(i(),r("li",{key:t.id},[y(e,{to:I(t),class:"underline"},{default:h(()=>[Q(v(t.attributes.PageTitle),1)]),_:2},1032,["to"])]))),128))])):rt("",!0)]))),128))])])}}});export{kt 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.