PageSourceSearch

https://www.dspretoria.co.za/_nuxt/6o5x8dRw.js

js dspretoria.co.za collected 2026-10-02 17:02:32 UTC 30,799 bytes, 1 lines download raw bytes

1import{_ as Ie}from"./CdFB_jjC.js";import se from"./BbipLnSv.js";import{_ as Me}from"./BwiysMzR.js";import{_ as Ve}from"./DxD0rnt7.js";import{_ as ne,e as Y,T as Oe,N as y,y as Z,k as xe,h as H,o as s,b as c,w as A,c as a,z as g,K as q,a as t,U as J,t as n,g as e,F as z,C as E,d as U,V as ye,S as Re,M as je,W as Pe,X as Fe,Q as Ke,R as Be,m as I,j as qe,u as We,A as b,f as Qe,E as Ue,D as Ge}from"./DhCVHKPP.js";import{g as X,a as Ye,b as Ze,c as G,D as ve,d as He,e as Je,f as me,h as te,i as be,j as Xe,k as ge,l as Q,m as K,s as pe,n as et,o as tt,p as st}from"./DlW2CeE1.js";import{o as nt}from"./C06uxaZy.js";import{u as at}from"./BT-e6JxE.js";function fe(d){const f=d;f.__i18n=f.__i18n||[],f.__i18n.push({locale:"",resource:{en:{downloads:{english:{t:0,b:{t:2,i:[{t:3}],s:"English Version"}},german:{t:0,b:{t:2,i:[{t:3}],s:"German Version"}},combined:{t:0,b:{t:2,i:[{t:3}],s:"Combined Version"}}},general:{a4:{t:0,b:{t:2,i:[{t:3}],s:"Created"}},a5:{t:0,b:{t:2,i:[{t:3}],s:"Last Modified"}},a6:{t:0,b:{t:2,i:[{t:3}],s:"days ago"}}}},de:{downloads:{english:{t:0,b:{t:2,i:[{t:3}],s:"Englische Version"}},german:{t:0,b:{t:2,i:[{t:3}],s:"Deutsche Version"}},combined:{t:0,b:{t:2,i:[{t:3}],s:"Kombinierte Version"}}},general:{a4:{t:0,b:{t:2,i:[{t:3}],s:"Erstellt"}},a5:{t:0,b:{t:2,i:[{t:3}],s:"Zuletzt geändert"}},a6:{t:0,b:{t:2,i:[{t:3}],s:"Tage"}}}}}})}const ot={key:0,class:"relative z-10 flex max-h-[92vh] w-full max-w-xl flex-col overflow-hidden rounded-t-3xl bg-white shadow-2xl ring-1 ring-black/10 sm:h-full sm:max-h-none sm:rounded-none sm:rounded-l-3xl"},lt={class:"flex gap-4 justify-between items-start px-5 py-4 border-b border-gray-100 sm:px-6"},it={class:"flex-1 min-w-0"},rt={class:"text-xs font-semibold uppercase tracking-[0.18em] text-cca"},ct={key:0,class:"mt-1 text-sm text-gray-500"},dt=["aria-label"],ut={class:"overflow-y-auto flex-1 px-5 py-5 sm:px-6"},mt={class:"flex flex-wrap gap-2"},bt={key:0,class:"px-2.5 py-1 text-xs font-semibold rounded-full bg-ccb/20 text-cca"},gt={class:"grid gap-3 mt-5 text-sm text-gray-600 sm:grid-cols-2"},pt={class:"font-medium text-gray-900"},ft={class:"font-medium text-gray-900"},ht={key:0,class:"text-gray-400"},xt={class:"mt-8 space-y-6"},yt={key:0},vt={class:"text-sm font-bold text-gray-900"},_t={class:"mt-2 space-y-2"},wt=["href"],kt={class:"break-all"},Dt={key:1},St={class:"text-sm font-bold text-gray-900"},$t={class:"mt-2 space-y-2"},Ct=["href"],zt={class:"break-all"},Et={key:2},Lt={class:"text-sm font-bold text-gray-900"},Nt={class:"mt-2 space-y-2"},At=["href"],Tt={class:"break-all"},_e={__name:"DownloadsDetailPanel",props:{item:{type:Object,default:null},sectionLabel:{type:String,default:""}},emits:["close"],setup(d,{emit:f}){const v=d,_=f,{locale:x,t:o}=Y({useScope:"local"}),M=`downloads-detail-title-${Oe()}`,F=y(()=>v.item?X(v.item,x.value):""),w=y(()=>v.item?Ye(v.item,x.value):""),$=y(()=>v.item?Ze(v.item):[]),u=y(()=>({close:x.value==="de"?"Schließen":"Close",newBadge:x.value==="de"?"Neu":"New",created:o("general.a4"),modified:o("general.a5"),daysAgo:o("general.a6"),german:o("downloads.german"),english:o("downloads.english"),combined:o("downloads.combined")})),V=y(()=>({german:o("downloads.german"),english:o("downloads.english"),combined:o("downloads.combined")}));function C(D){return D?new Date(D).toLocaleDateString(x.value==="de"?"de-DE":"en-ZA"):"—"}function L(D){D.key==="Escape"&&v.item&&k()}Z(()=>v.item,D=>{document.documentElement.style.overflow=D?"hidden":"",D?window.addEventListener("keydown",L):window.removeEventListener("keydown",L)}),xe(()=>{document.documentElement.style.overflow="",window.removeEventListener("keydown",L)});function k(){_("close")}return(D,T)=>{const P=se;return s(),H(ye,{to:"body"},[c(J,{name:"downloads-detail-backdrop"},{default:A(()=>[d.item?(s(),a("div",{key:0,class:"fixed inset-0 z-[110] flex items-end justify-center sm:items-stretch sm:justify-end","aria-modal":"true",role:"dialog","aria-labelledby":M,onClick:q(k,["self"])},[T[0]||(T[0]=t("div",{class:"absolute inset-0 bg-black/40 backdrop-blur-[2px]","aria-hidden":"true"},null,-1)),c(J,{name:"downloads-detail-panel",appear:""},{default:A(()=>{var N,O,R;return[d.item?(s(),a("aside",ot,[t("div",lt,[t("div",it,[t("p",rt,n(d.sectionLabel),1),t("h2",{id:M,class:"mt-1 text-xl font-bold leading-snug text-gray-900 sm:text-2xl"},n(e(F)),1),e(w)?(s(),a("p",ct,n(e(w)),1)):g("",!0)]),t("button",{type:"button",class:"flex justify-center items-center text-gray-700 bg-gray-100 rounded-full transition size-10 shrink-0 hover:bg-cca hover:text-white focus:outline-none focus-visible:ring-2 focus-visible:ring-ccb","aria-label":e(u).close,onClick:k}
1,[c(P,{name:"material-symbols:close-rounded",class:"size-5"})],8,dt)]),t("div",ut,[t("div",mt,[d.item.fields.NewStatus===1?(s(),a("span",bt,n(e(u).newBadge),1)):g("",!0),(s(!0),a(z,null,E(e($),h=>(s(),a("span",{key:h,class:"px-2.5 py-1 text-xs font-medium text-gray-700 bg-gray-100 rounded-full"},n(e(V)[h]),1))),128))]),t("dl",gt,[t("div",null,[t("dt",pt,n(e(u).created),1),t("dd",null,n(C(d.item.fields.Created)),1)]),t("div",null,[t("dt",ft,n(e(u).modified),1),t("dd",null,[U(n(C(d.item.fields.Last_Modified_OnlyDocuments))+" ",1),d.item.fields.DaysSinceLastModified!==void 0?(s(),a("span",ht," · "+n(d.item.fields.DaysSinceLastModified)+" "+n(e(u).daysAgo),1)):g("",!0)])])]),t("div",xt,[(N=d.item.fields.Document_DE)!=null&&N.length?(s(),a("section",yt,[t("h3",vt,n(e(u).german),1),t("ul",_t,[(s(!0),a(z,null,E(d.item.fields.Document_DE,h=>(s(),a("li",{key:h.url},[t("a",{href:e(G)(h),target:"_blank",rel:"noopener noreferrer",class:"flex gap-3 items-center px-4 py-3 text-sm text-gray-800 rounded-xl border border-gray-200 transition hover:border-cca hover:bg-cca/5"},[c(P,{name:"heroicons:document-arrow-down",class:"size-5 shrink-0 text-cca"}),t("span",kt,n(h.filename),1)],8,wt)]))),128))])])):g("",!0),(O=d.item.fields.Document_EN)!=null&&O.length?(s(),a("section",Dt,[t("h3",St,n(e(u).english),1),t("ul",$t,[(s(!0),a(z,null,E(d.item.fields.Document_EN,h=>(s(),a("li",{key:h.url},[t("a",{href:e(G)(h),target:"_blank",rel:"noopener noreferrer",class:"flex gap-3 items-center px-4 py-3 text-sm text-gray-800 rounded-xl border border-gray-200 transition hover:border-cca hover:bg-cca/5"},[c(P,{name:"heroicons:document-arrow-down",class:"size-5 shrink-0 text-cca"}),t("span",zt,n(h.filename),1)],8,Ct)]))),128))])])):g("",!0),(R=d.item.fields.Document_DualLang)!=null&&R.length?(s(),a("section",Et,[t("h3",Lt,n(e(u).combined),1),t("ul",Nt,[(s(!0),a(z,null,E(d.item.fields.Document_DualLang,h=>(s(),a("li",{key:h.url},[t("a",{href:e(G)(h),target:"_blank",rel:"noopener noreferrer",class:"flex gap-3 items-center px-4 py-3 text-sm text-gray-800 rounded-xl border border-gray-200 transition hover:border-cca hover:bg-cca/5"},[c(P,{name:"heroicons:document-arrow-down",class:"size-5 shrink-0 text-cca"}),t("span",Tt,n(h.filename),1)],8,At)]))),128))])])):g("",!0)])])])):g("",!0)]}),_:1})])):g("",!0)]),_:1})])}}};typeof fe=="function"&&fe(_e);const It=ne(_e,[["__scopeId","data-v-ad5af3f9"]]),Mt={key:0,class:"relative z-10 flex max-h-[90vh] w-full max-w-lg flex-col overflow-hidden rounded-2xl bg-white shadow-[0_25px_80px_-12px_rgba(0,0,0,0.35)] ring-1 ring-black/10"},Vt=["aria-label"],Ot={class:"shrink-0 bg-gradient-to-br from-cca to-[#b81e16] px-6 pb-6 pt-10 text-white"},Rt={class:"flex size-14 items-center justify-center rounded-2xl bg-white/15 ring-1 ring-white/20"},jt={id:"downloads-new-modal-title",class:"mt-5 text-2xl font-bold leading-tight"},Pt={class:"mt-2 text-sm text-white/85"},Ft={class:"min-h-0 flex-1 overflow-y-auto px-4 py-3 sm:px-6"},Kt=["onClick"],Bt={class:"min-w-0 flex-1 text-sm font-medium text-gray-900 sm:text-base"},qt={class:"shrink-0 border-t border-gray-100 px-6 py-4"},Wt={__name:"DownloadsNewModal",props:{open:{type:Boolean,default:!1},items:{type:Array,default:()=>[]}},emits:["close","select-item"],setup(d,{emit:f}){const v=d,_=f,{locale:x}=Y(),o=y(()=>{const u=v.items.length;return x.value==="de"?{title:u===1?"1 neuer Download":`${u} neue Downloads`,summary:"Wählen Sie ein Dokument aus, um es anzuzeigen.",later:"Später",close:"Schließen"}:{title:u===1?"1 new download":`${u} new downloads`,summary:"Select a document to view it.",later:"Maybe later",close:"Close"}});function M(u){u.key==="Escape"&&v.open&&w()}Z(()=>v.open,u=>{document.documentElement.style.overflow=u?"hidden":"",u?window.addEventListener("keydown",M):window.removeEventListener("keydown",M)}),xe(()=>{document.documentElement.style.overflow="",window.removeEventListener("keydown",M)});function F(){sessionStorage.setItem(ve,"true")}function w(){F(),_("close")}function $(u){F(),_("select-item",u)}return(u,V)=>{const C=se;return s(),H(ye,{to:"body"},[c(J,{name:"downloads-modal-backdrop"},{default:A(()=>[d.open?(s(),a("div",{key:0,class:"fixed inset-0 z-[120] flex items-center justify-center p-4 sm:p-6","aria-modal":"true",role:"dialog","aria-labelledby":"downloads-new-modal-title",onClick:q(w,["self"])},[V[0]||(V[0]=t("div",{class:"absolute inset-0 bg-black/45 backdrop-blur-[4px]","aria-hidden":"true"},null,-1)),c(J,{name:"downloads-modal-panel",appear:""},{default:A(()=>[d.open?(s(),a("div",Mt,[t("button",{type:"button",class:"absolute top-3 right-3 z-20 flex size-9 items-center justify-center rounded-full bg-white/90 text-gray-700 shadow-sm ring-1 ring-black/10 transition hover:bg-cca hover:text-white hover:ring-cca focus:outline-none focus-visible:ring-2 focus-visible:ring-ccb","aria-label":e(o).close,onClick:w}
1,[c(C,{name:"material-symbols:close-rounded",class:"size-5"})],8,Vt),t("div",Ot,[t("div",Rt,[c(C,{name:"heroicons:arrow-down-tray",class:"size-7"})]),t("p",jt,n(e(o).title),1),t("p",Pt,n(e(o).summary),1)]),t("ul",Ft,[(s(!0),a(z,null,E(d.items,L=>(s(),a("li",{key:L.id},[t("button",{type:"button",class:"flex w-full items-center gap-3 rounded-xl px-3 py-3 text-left transition hover:bg-cca/5 focus:outline-none focus-visible:ring-2 focus-visible:ring-ccb",onClick:k=>$(L)},[c(C,{name:"heroicons:document-text",class:"size-5 shrink-0 text-cca"}),t("span",Bt,n(e(X)(L,e(x))),1),c(C,{name:"heroicons:chevron-right",class:"size-4 shrink-0 text-gray-400"})],8,Kt)]))),128))]),t("div",qt,[t("button",{type:"button",class:"w-full px-4 py-2 text-sm text-gray-500 transition hover:text-gray-900",onClick:w},n(e(o).later),1)])])):g("",!0)]),_:1})])):g("",!0)]),_:1})])}}},Qt=ne(Wt,[["__scopeId","data-v-8b35c719"]]),Ut={},Gt={class:"fixed top-0 left-0 z-50 w-screen h-screen bg-white"};function Yt(d,f){return s(),a("div",Gt,f[0]||(f[0]=[Re('<div class="absolute flex-col gap-4 mx-auto text-black -translate-x-1/2 -translate-y-1/2 left-1/2 top-1/2"><div class="flex flex-col"><div class="text-xl font-bold text-center animate-jump animate-infinite animate-duration-1000 animate-ease-out">Deutsche</div><div class="text-xl font-bold text-center animate-jump animate-infinite animate-duration-1000 animate-delay-100 animate-ease-out text-cca">Schule</div><div class="text-xl font-bold text-center animate-jump animate-infinite animate-duration-1000 animate-delay-200 animate-ease-out text-ccb">Pretoria</div></div></div>',1)]))}const Zt=ne(Ut,[["render",Yt]]);function he(d){const f=d;f.__i18n=f.__i18n||[],f.__i18n.push({locale:"",resource:{en:{subsections:{agm:{t:0,b:{t:2,i:[{t:3}],s:"Annual General Meeting 2025"}},general:{t:0,b:{t:2,i:[{t:3}],s:"General"}},extramuralActivities:{t:0,b:{t:2,i:[{t:3}],s:"Extramural Activities"}},schoolYear2026:{t:0,b:{t:2,i:[{t:3}],s:"School Year 2026"}},calendar:{t:0,b:{t:2,i:[{t:3}],s:"Calendar"}},testTimetables:{t:0,b:{t:2,i:[{t:3}],s:"Test Time Tables"}},regulations:{t:0,b:{t:2,i:[{t:3}],s:"Regulations"}},legal:{t:0,b:{t:2,i:[{t:3}],s:"Legal"}},archives:{t:0,b:{t:2,i:[{t:3}],s:"Archives"}},publications:{t:0,b:{t:2,i:[{t:3}],s:"Publications"}}},downloads:{english:{t:0,b:{t:2,i:[{t:3}],s:"English Version"}},german:{t:0,b:{t:2,i:[{t:3}],s:"German Version"}},combined:{t:0,b:{t:2,i:[{t:3}],s:"Combined Version"}}},general:{a2:{t:0,b:{t:2,i:[{t:3}],s:"Nothing to Show"}},a4:{t:0,b:{t:2,i:[{t:3}],s:"Created"}},a5:{t:0,b:{t:2,i:[{t:3}],s:"Last Modified"}},a6:{t:0,b:{t:2,i:[{t:3}],s:"days ago"}}},search:{label:{t:0,b:{t:2,i:[{t:3}],s:"Search downloads"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"Search by title in English or German, or filename..."}},hint:{t:0,b:{t:2,i:[{t:3}],s:"Search works in both English and German, including attachment filenames."}}},filters:{all:{t:0,b:{t:2,i:[{t:3}],s:"All"}},new:{t:0,b:{t:2,i:[{t:3}],s:"New"}},language:{t:0,b:{t:2,i:[{t:3}],s:"Language"}},clear:{t:0,b:{t:2,i:[{t:3}],s:"Clear filters"}}},results:{count:{t:0,b:{t:2,i:[{t:3,v:"Showing "},{t:4,k:"count"},{t:3,v:" documents"}]}}},empty:{title:{t:0,b:{t:2,i:[{t:3}],s:"No downloads found"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Try a different search term or reset your filters."}}},badges:{new:{t:0,b:{t:2,i:[{t:3}],s:"New"}}},viewSettings:{label:{t:0,b:{t:2,i:[{t:3}],s:"View settings"}},table:{t:0,b:{t:2,i:[{t:3}],s:"Table view"}},compact:{t:0,b:{t:2,i:[{t:3}],s:"Compact table"}},cards:{t:0,b:{t:2,i:[{t:3}],s:"Card view"}},compactLabel:{t:0,b:{t:2,i:[{t:3}],s:"Compact"}},normalLabel:{t:0,b:{t:2,i:[{t:3}],s:"Normal"}}},table:{document:{t:0,b:{t:2,i:[{t:3}],s:"Document"}},updated:{t:0,b:{t:2,i:[{t:3}],s:"Updated"}},files:{t:0,b:{t:2,i:[{t:3}],s:"Files"}},fileCount:{t:0,b:{t:2,i:[{t:4,k:"count"},{t:3,v:" files"}]}}},languageShort:{german:{t:0,b:{t:2,i:[{t:3}],s:"DE"}},english:{t:0,b:{t:2,i:[{t:3}],s:"EN"}},combined:{t:0,b:{t:2,i:[{t:3}],s:"DE/EN"}}}},de:{subsections:{agm:{t:0,b:{t:2,i:[{t:3}],s:"Jahreshauptversammlung 2025"}},general:{t:0,b:{t:2,i:[{t:3}],s:"Allgemeine"}},extramuralActivities:{t:0,b:{t:2,i:[{t:3}],s:"Außerschulische Aktivitäten"}},schoolYear2026:{t:0,b:{t:2,i:[{t:3}],s:"Schuljahr 2026"}},calendar:{t:0,b:{t:2,i:[{t:3}],s:"Kalender"}},testTimetables:{t:0,b:{t:2,i:[{t:3}],s:"Klassenarbeiten Studenplan"}},regulations:{t:0,b:{t:2,i:[{t:3}],s:"Schulordnung"}},legal:{t:0,b:{t:2,i:[{t:3}],s:"Regularien"}},archives:{t:0,b:{t:2,i:[{t:3}],s:"Archiv"}},publications:{t:0,b:{t:2,i:[{t:3}],s:"Publikationen"}}},downloads:{english:{t:0,b:{t:2,i:[{t:3}],s:"Englische Version"}},german:{t:0,b:{t:2,i:[{t:3}],s:"Deutsche Version"}}
1,combined:{t:0,b:{t:2,i:[{t:3}],s:"Kombinierte Version"}}},general:{a2:{t:0,b:{t:2,i:[{t:3}],s:"Nichts zu Zeigen"}},a4:{t:0,b:{t:2,i:[{t:3}],s:"Erstellt"}},a5:{t:0,b:{t:2,i:[{t:3}],s:"Zuletzt geändert"}},a6:{t:0,b:{t:2,i:[{t:3}],s:"Tage"}}},search:{label:{t:0,b:{t:2,i:[{t:3}],s:"Downloads durchsuchen"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"Nach Titel auf Englisch oder Deutsch oder Dateiname suchen..."}},hint:{t:0,b:{t:2,i:[{t:3}],s:"Die Suche funktioniert in Englisch und Deutsch, einschließlich Dateinamen."}}},filters:{all:{t:0,b:{t:2,i:[{t:3}],s:"Alle"}},new:{t:0,b:{t:2,i:[{t:3}],s:"Neu"}},language:{t:0,b:{t:2,i:[{t:3}],s:"Sprache"}},clear:{t:0,b:{t:2,i:[{t:3}],s:"Filter zurücksetzen"}}},results:{count:{t:0,b:{t:2,i:[{t:4,k:"count"},{t:3,v:" Dokumente angezeigt"}]}}},empty:{title:{t:0,b:{t:2,i:[{t:3}],s:"Keine Downloads gefunden"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Versuchen Sie einen anderen Suchbegriff oder setzen Sie die Filter zurück."}}},badges:{new:{t:0,b:{t:2,i:[{t:3}],s:"Neu"}}},viewSettings:{label:{t:0,b:{t:2,i:[{t:3}],s:"Ansichtseinstellungen"}},table:{t:0,b:{t:2,i:[{t:3}],s:"Tabellenansicht"}},compact:{t:0,b:{t:2,i:[{t:3}],s:"Kompakte Tabelle"}},cards:{t:0,b:{t:2,i:[{t:3}],s:"Kartenansicht"}},compactLabel:{t:0,b:{t:2,i:[{t:3}],s:"Kompakt"}},normalLabel:{t:0,b:{t:2,i:[{t:3}],s:"Normal"}}},table:{document:{t:0,b:{t:2,i:[{t:3}],s:"Dokument"}},updated:{t:0,b:{t:2,i:[{t:3}],s:"Aktualisiert"}},files:{t:0,b:{t:2,i:[{t:3}],s:"Dateien"}},fileCount:{t:0,b:{t:2,i:[{t:4,k:"count"},{t:3,v:" Dateien"}]}}},languageShort:{german:{t:0,b:{t:2,i:[{t:3}],s:"DE"}},english:{t:0,b:{t:2,i:[{t:3}],s:"EN"}},combined:{t:0,b:{t:2,i:[{t:3}],s:"DE/EN"}}}}}})}const Ht={class:"relative p-3 bg-white rounded-2xl border border-gray-200 shadow-sm sm:p-4"},Jt=["aria-label","aria-expanded"],Xt={key:0,class:"overflow-hidden absolute right-0 z-20 mt-1 w-56 bg-white rounded-xl border border-gray-200 shadow-lg"},es={class:"px-3 py-2 text-xs font-semibold tracking-wide text-gray-500 uppercase border-b border-gray-100"},ts=["onClick"],ss={class:"pr-9"},ns={for:"downloads-search",class:"sr-only"},as={class:"relative"},os=["placeholder","aria-label","title"],ls={class:"flex flex-wrap gap-1.5 mt-2.5"},is=["onClick"],rs={class:"ml-0.5 opacity-80"},cs={class:"flex flex-wrap gap-2 justify-between items-center pt-2 mt-2.5 border-t border-gray-100"},ds={class:"text-xs text-gray-600"},us={key:0,class:"px-6 py-12 mt-8 text-center bg-gray-50 rounded-2xl border border-gray-300 border-dashed"},ms={class:"mt-4 text-lg font-semibold text-gray-900"},bs={class:"mt-2 text-sm text-gray-500"},gs={class:"overflow-x-auto"},ps={class:"flex gap-2 items-center"},fs=["aria-label","title"],hs={class:"bg-cca/5"},xs={class:"flex gap-2 items-center"},ys={key:0,class:"border-t border-gray-100"},vs={key:1,class:"border-t border-gray-100"},_s=["onClick"],ws={class:"flex flex-wrap gap-2 items-center"},ks={class:"inline-flex gap-2 justify-end items-center"},Ds={key:1,class:"text-gray-400"},Ss=["href","title","aria-label"],$s=["onClick"],Cs={key:2,class:"border-t border-gray-100"},zs={colspan:"2",class:"px-4 py-3 text-gray-500"},Es={key:2,class:"mt-8 space-y-10"},Ls=["id"],Ns={class:"flex gap-3 items-center"},As={class:"px-4 py-2 text-sm font-bold tracking-wider text-white uppercase rounded-xl bg-cca sm:text-base"},Ts={class:"text-sm text-gray-500"},Is={key:0,class:"mt-4"},Ms={key:1,class:"mt-4"},Vs={class:"grid gap-3 mt-4 sm:grid-cols-2 xl:grid-cols-3"},Os=["onClick"],Rs={class:"flex gap-3 justify-between items-start"},js={class:"flex-1 min-w-0"},Ps={class:"font-semibold text-gray-900 group-hover:text-cca"},Fs={key:0,class:"shrink-0 rounded-full bg-ccb/20 px-2 py-0.5 text-[11px] font-semibold uppercase tracking-wide text-cca"},Ks={class:"pt-4 mt-auto text-xs text-gray-400"},Bs={key:2,class:"mt-4 text-sm text-gray-500"},qs={__name:"downloads",setup(d){const f=je(),v=Pe(),_=Fe(),{locale:x}=Y(),{t:o}=Y({useScope:"local"}),M=Ke(),{activeDocuments:F,success:w}=Be(M),$=I(""),u=I(null),V=I(""),C=I(!1),L=I(!1),k=I(tt),D=I(st),T=I(!1),P=I(null),N=y(()=>f.query.filter||null),O=y(()=>f.query.f?Number.parseInt(String(f.query.f),10):null),R=y(()=>F.value.filter(Xe)),h=y(()=>te(R.value,{categoryFilter:N.value,searchQuery:$.value})),ae=y(()=>{const l=N.value==="archives";return ge(h.value,{includeArchives:l})}),oe=y(()=>N.value||"all"),we=y(()=>{const l=[{key:"all",label:o("filters.all"),count:te(R.value,{searchQuery:$.value}).length},{key:"new",label:o("filters.new"),count:be(R.value).length}];for(const r of Q)l.push({key:r.key,label:o(`subsections.${r.key}`),count:te(R.value,{categoryFilter:r.key,searchQuery:$.value}).length});return l.filter(r=>r.count>0||r.key===oe.value||r.key==="all")}),le=y(()=>
1{if(N.value==="new"){const l=h.value,r=ge(l,{includeArchives:!0});return Q.map(j=>({key:j.key,items:r[j.key]||[]})).filter(j=>j.items.length>0)}if(N.value){const l=Q.find(({key:r})=>r===N.value);return l?[{key:l.key,items:ae.value[l.key]||[]}]:[]}return Q.filter(l=>l.showInDefault).map(l=>({key:l.key,items:ae.value[l.key]||[]})).filter(l=>l.items.length>0||l.key==="calendar"||l.key==="publications")}),ie=y(()=>!!($.value.trim()||N.value)),re=y(()=>be(R.value)),ke=y(()=>re.value.length),De=y(()=>[{value:"table",label:o("viewSettings.table"),icon:"heroicons:table-cells"},{value:"cards",label:o("viewSettings.cards"),icon:"heroicons:squares-2x2"}]),m=y(()=>k.value==="table"&&D.value==="compact");function Se(l){k.value=pe(l),T.value=!1}function $e(){const l=D.value==="compact"?"normal":"compact";D.value=et(l),k.value!=="table"&&(k.value=pe("table"))}nt(P,()=>{T.value=!1});function Ce(l){const r={...f.query};l==="all"?delete r.filter:r.filter=l,v.push({path:_("downloads"),query:r})}function ce(){$.value="",v.push({path:_("downloads")})}function B(l,r){u.value=l,V.value=o(`subsections.${r}`)}function ze(){if(u.value=null,V.value="",!f.query.f)return;const l={...f.query};delete l.f,v.replace({path:_("downloads"),query:l})}function Ee(l){C.value=!1;const r=me(l.fields.Section);r&&(v.push({path:_("downloads"),query:{filter:"new",f:String(l.fields.ID)}}),B(l,r))}function de(){L.value||!w.value||(L.value=!0,sessionStorage.getItem(ve)!=="true"&&(ke.value<=0||(C.value=!0)))}function ee(){if(!w.value||!O.value)return;const l=h.value.find(j=>j.fields.ID===O.value);if(!l)return;const r=me(l.fields.Section);r&&B(l,r)}return Z(w,l=>{l&&(de(),ee())}),Z([h,O],()=>{ee()}),qe(()=>{k.value=He(),D.value=Je(),de(),ee()}),at({title:()=>(x.value==="de","Downloads"),description:()=>x.value==="de"?"DSP Downloads und Dokumente":"DSP downloads and documents",ogTitle:()=>(x.value==="de","Downloads"),ogDescription:()=>x.value==="de"?"DSP Downloads und Dokumente":"DSP downloads and documents",ogImage:"/favicon.ico",twitterTitle:()=>(x.value==="de","Downloads"),twitterDescription:()=>x.value==="de"?"DSP Downloads und Dokumente":"DSP downloads and documents",twitterImage:"/favicon.ico",twitterCard:"summary"}),We({htmlAttrs:{lang:()=>x.value==="de"?"de-DE":"en-ZA"},link:[{rel:"icon",type:"image/x-icon",href:"/favicon.ico"}]}),(l,r)=>{const j=Ie,S=se,W=Me,Le=Ve,Ne=It,Ae=Qt,Te=Zt;return s(),a("div",null,[c(j,{bannerHeight:"200px"},{default:A(()=>[U(n(l.$t("downloads")),1)]),_:1}),c(Le,{class:"pb-16 mt-8 font-dspFont sm:mt-12"},{default:A(()=>[t("section",Ht,[t("div",{ref_key:"viewSettingsRoot",ref:P,class:"absolute top-2.5 right-2.5 z-20 sm:top-3 sm:right-3"},[t("button",{type:"button",class:"inline-flex justify-center items-center text-gray-500 transition size-8 hover:text-cca focus:outline-none focus-visible:ring-2 focus-visible:ring-ccb rounded-lg","aria-label":e(o)("viewSettings.label"),"aria-expanded":e(T),onClick:r[0]||(r[0]=i=>T.value=!e(T))},[c(S,{name:"heroicons:cog-6-tooth",class:"size-4"})],8,Jt),e(T)?(s(),a("div",Xt,[t("p",es,n(e(o)("viewSettings.label")),1),(s(!0),a(z,null,E(e(De),i=>(s(),a("button",{key:i.value,type:"button",class:b(["flex gap-2 items-center px-3 py-2.5 w-full text-sm text-left transition hover:bg-gray-50",e(k)===i.value?"font-semibold text-cca":"text-gray-700"]),onClick:p=>Se(i.value)},[c(S,{name:i.icon,class:"size-4 shrink-0"},null,8,["name"]),t("span",null,n(i.label),1),e(k)===i.value?(s(),H(S,{key:0,name:"heroicons:check",class:"ml-auto size-4 text-cca"})):g("",!0)],10,ts))),128))])):g("",!0)],512),t("div",ss,[t("label",ns,n(e(o)("search.label")),1),t("div",as,[c(S,{name:"heroicons:magnifying-glass",class:"absolute left-3 top-1/2 text-gray-400 -translate-y-1/2 pointer-events-none size-4"}),Qe(t("input",{id:"downloads-search","onUpdate:modelValue":r[1]||(r[1]=i=>Ue($)?$.value=i:null),type:"search",class:"py-2 pr-3 pl-9 w-full text-sm text-gray-900 bg-gray-50 rounded-lg border border-gray-200 transition outline-none focus:border-cca focus:bg-white",placeholder:e(o)("search.placeholder"),"aria-label":e(o)("search.placeholder"),title:e(o)("search.hint")},null,8,os),[[Ge,e($)]])])]),t("div",ls,[(s(!0),a(z,null,E(e(we),i=>(s(),a("button",{key:i.key,type:"button",class:b(["px-2.5 py-1 text-xs font-medium rounded-full transition focus:outline-none focus-visible:ring-2 focus-visible:ring-ccb",[e(oe)===i.key?"bg-cca text-white":"bg-gray-100 text-gray-700 hover:bg-gray-200",i.key==="new"?"border border-cca":""]]),onClick:p=>Ce(i.key)},[U(n(i.label)+" ",1),t("span",rs,"("+n(i.count)+")",1)],10,is))),128))]),t("div",cs,[t("p",ds,n(e(o)("results.count",{count:e(h).length}
1)),1),e(ie)?(s(),a("button",{key:0,type:"button",class:"inline-flex gap-1 items-center text-xs font-medium transition text-cca hover:underline",onClick:ce},[c(S,{name:"heroicons:x-mark",class:"size-3.5"}),U(" "+n(e(o)("filters.clear")),1)])):g("",!0)])]),e(w)&&e(h).length===0?(s(),a("div",us,[c(S,{name:"heroicons:document-magnifying-glass",class:"mx-auto text-gray-400 size-10"}),t("p",ms,n(e(o)("empty.title")),1),t("p",bs,n(e(o)("empty.description")),1),e(ie)?(s(),a("button",{key:0,type:"button",class:"px-4 py-2 mt-5 text-sm font-semibold text-white rounded-xl transition bg-cca hover:brightness-110",onClick:ce},n(e(o)("filters.clear")),1)):g("",!0)])):e(k)==="table"?(s(),a("div",{key:1,class:b(["overflow-hidden mt-8 bg-white rounded-2xl border border-gray-200 shadow-sm",e(m)?"downloads-table-compact":""])},[t("div",gs,[t("table",{class:b(["min-w-full text-left",e(m)?"text-xs":"text-sm"])},[t("thead",{class:b(["font-semibold tracking-wide text-gray-500 uppercase bg-gray-50 border-b border-gray-200",e(m)?"text-[10px]":"text-xs"])},[t("tr",null,[t("th",{class:b(e(m)?"px-3 py-1.5":"px-4 py-3")},[t("div",ps,[t("span",null,n(e(o)("table.document")),1),t("button",{type:"button",class:b(["inline-flex items-center gap-1 rounded-md px-1 py-0.5 text-[10px] font-semibold normal-case tracking-normal text-gray-400 transition hover:text-cca focus:outline-none focus-visible:ring-2 focus-visible:ring-ccb",e(m)?"text-cca":""]),"aria-label":e(m)?e(o)("viewSettings.table"):e(o)("viewSettings.compact"),title:e(m)?e(o)("viewSettings.table"):e(o)("viewSettings.compact"),onClick:q($e,["stop"])},[c(S,{name:e(m)?"heroicons:table-cells":"heroicons:bars-3-bottom-left",class:b(e(m)?"size-3.5":"size-4")},null,8,["name","class"]),t("span",null,n(e(m)?e(o)("viewSettings.normalLabel"):e(o)("viewSettings.compactLabel")),1)],10,fs)])],2),t("th",{class:b(e(m)?"px-3 py-1.5 text-right":"px-4 py-3 text-right")},n(e(o)("table.files")),3)])],2),t("tbody",null,[(s(!0),a(z,null,E(e(le),i=>(s(),a(z,{key:i.key},[t("tr",hs,[t("td",{colspan:"2",class:b(e(m)?"px-3 py-1":"px-4 py-2.5")},[t("div",xs,[t("span",{class:b(["font-bold tracking-wide uppercase text-cca",e(m)?"text-xs":"text-sm"])},n(e(o)(`subsections.${i.key}
1`)),3),t("span",{class:b(["text-gray-500",e(m)?"text-[10px]":"text-xs"])},"("+n(i.items.length)+")",3)])],2)]),i.key==="calendar"?(s(),a("tr",ys,[t("td",{colspan:"2",class:b(e(m)?"px-3 py-1.5":"px-4 py-3")},[c(W,{to:e(_)("calendar"),class:"inline-flex gap-2 items-center font-medium text-gray-800 transition hover:text-cca"},{default:A(()=>[c(S,{name:"heroicons:calendar-days",class:b(e(m)?"size-3.5 text-cca":"size-4 text-cca")},null,8,["class"]),t("span",null,n(l.$t("calendar")),1),r[4]||(r[4]=t("span",{class:"rounded-full bg-cca px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white"},"live",-1))]),_:1},8,["to"])],2)])):g("",!0),i.key==="publications"?(s(),a("tr",vs,[t("td",{colspan:"2",class:b(e(m)?"px-3 py-1.5":"px-4 py-3")},[c(W,{to:e(_)("press_reviews"),class:"inline-flex gap-2 items-center font-medium text-gray-800 transition hover:text-cca"},{default:A(()=>[c(S,{name:"heroicons:newspaper",class:b(e(m)?"size-3.5 text-cca":"size-4 text-cca")},null,8,["class"]),t("span",null,n(e(x)==="en"?"Press Review":"Pressespiegel"),1)]),_:1},8,["to"])],2)])):g("",!0),(s(!0),a(z,null,E(i.items,p=>(s(),a("tr",{key:p.id,class:b(["border-t border-gray-100 transition cursor-pointer group hover:bg-gray-100",{"bg-ccb/10":e(O)===p.fields.ID}]),onClick:ue=>B(p,i.key)},[t("td",{class:b(["font-medium text-gray-900",e(m)?"px-3 py-1":"px-4 py-3"])},[t("div",ws,[t("span",null,n(e(X)(p,e(x))),1),p.fields.NewStatus===1?(s(),a("span",{key:0,class:b(["inline-flex rounded-full bg-ccb/20 font-semibold uppercase tracking-wide text-cca",e(m)?"px-1.5 py-0 text-[10px]":"px-2 py-0.5 text-[11px]"])},n(e(o)("badges.new")),3)):g("",!0)])],2),t("td",{class:b(["text-right",e(m)?"px-3 py-1":"px-4 py-3"])},[t("div",ks,[p.fields.DaysSinceLastModified!==void 0?(s(),a("span",{key:0,class:b(["text-gray-400 opacity-0 transition-opacity duration-200 delay-0 group-hover:opacity-100 group-hover:delay-[700ms]",e(m)?"text-[10px]":"text-xs"])},n(p.fields.DaysSinceLastModified)+" "+n(e(o)("general.a6")),3)):g("",!0),e(K)(p).length===0?(s(),a("span",Ds,"—")):e(K)(p).length===1?(s(),a("a",{key:2,href:e(G)(e(K)(p)[0]),target:"_blank",rel:"noopener noreferrer",class:"inline-flex justify-end items-center transition text-cca hover:text-cca-600",title:e(K)(p)[0].filename,"aria-label":e(K)(p)[0].filename,onClick:r[2]||(r[2]=q(()=>{},["stop"]))},[c(S,{name:"mdi:file-pdf",class:b(e(m)?"size-4":"size-6")},null,8,["class"])],8,Ss)):(s(),a("button",{key:3,type:"button",class:"inline-flex gap-1 items-center transition text-cca hover:underline",onClick:q(ue=>B(p,i.key),["stop"])},[c(S,{name:"heroicons:document-duplicate",class:b(e(m)?"size-3.5 shrink-0":"size-4 shrink-0")},null,8,["class"]),t("span",null,n(e(o)("table.fileCount",{count:e(K)(p).length})),1)],8,$s))])],2)],10,_s))),128)),i.items.length===0&&i.key!=="calendar"&&i.key!=="publications"?(s(),a("tr",Cs,[t("td",zs,n(e(o)("general.a2")),1)])):g("",!0)],64))),128))])],2)])],2)):(s(),a("div",Es,[(s(!0),a(z,null,E(e(le),i=>(s(),a("section",{key:i.key,id:`${i.key}subsection`,class:"scroll-mt-28"},[t("div",Ns,[t("h2",As,n(e(o)(`subsections.${i.key}`)),1),t("span",Ts,n(i.items.length),1)]),i.key==="calendar"?(s(),a("ul",Is,[t("li",null,[c(W,{to:e(_)("calendar"),class:"inline-flex gap-2 items-center px-4 py-3 text-sm font-medium text-gray-800 rounded-xl border border-gray-200 transition hover:border-cca hover:bg-cca/5"},{default:A(()=>[c(S,{name:"heroicons:calendar-days",class:"size-5 text-cca"}),t("span",null,n(l.$t("calendar")),1),r[5]||(r[5]=t("span",{class:"rounded-full bg-cca px-2 py-0.5 text-[10px] font-bold uppercase tracking-wide text-white"},"live",-1))]),_:1},8,["to"])])])):g("",!0),i.key==="publications"?(s(),a("ul",Ms,[t("li",null,[c(W,{to:e(_)("press_reviews"),class:"inline-flex gap-2 items-center px-4 py-3 text-sm font-medium text-gray-800 rounded-xl border border-gray-200 transition hover:border-cca hover:bg-cca/5"},{default:A(()=>[c(S,{name:"heroicons:newspaper",class:"size-5 text-cca"}),t("span",null,n(e(x)==="en"?"Press Review":"Pressespiegel"),1)]),_:1},8,["to"])])])):g("",!0),t("div",Vs,[(s(!0),a(z,null,E(i.items,p=>(s(),a("button",{key:p.id,type:"button",class:b(["flex flex-col p-4 h-full text-left bg-white rounded-2xl border border-gray-200 shadow-sm transition group hover:-translate-y-0.5 hover:border-cca hover:shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ccb",{"ring-2 ring-ccb ring-offset-2":e(O)===p.fields.ID}]),onClick:ue=>B(p,i.key)},[t("div",Rs,[t("div",js,[t("p",Ps,n(e(X)(p,e(x))),1)]),p.fields.NewStatus===1?(s(),a("span",Fs,n(e(o)("badges.new")),1)):g("",!0)]),t("p",Ks,n(p.fields.DaysSinceLastModified)+" "+n(e(o)("general.a6")),1)],10,Os))),128))]),i.items.length===0?(s(),a("p",Bs,n(e(o)("general.a2")),1)):g("",!0)],8,Ls))),128))]))]),_:1}),c(Ne,{item:e(u),"section-label":e(V),onClose:ze},null,8,["item","section-label"]),c(Ae,{open:e(C),items:e(re),onClose:r[3]||(r[3]=i=>C.value=!1),onSelectItem:Ee},null,8,["open","items"]),e(w)?g("",!0):(s(),H(Te,{key:0}))])}}};typeof he=="function"&&he(qs);export{qs 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.