1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[435],{9580:function(e,r,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/info/downloads",function(){return n(9708)}])},1064:function(e,r,n){"use strict";n.d(r,{Ol:function(){return o},Zb:function(){return l},aY:function(){return c},eW:function(){return i},ll:function(){return d}});var t=n(5893),a=n(7294),s=n(7596);let l=a.forwardRef((e,r)=>{let{className:n,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,s.cn)("rounded-xl border bg-card text-card-foreground shadow",n),...a})});l.displayName="Card";let o=a.forwardRef((e,r)=>{let{className:n,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,s.cn)("flex flex-col space-y-1.5 p-6",n),...a})});o.displayName="CardHeader";let d=a.forwardRef((e,r)=>{let{className:n,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,s.cn)("font-semibold leading-none tracking-tight",n),...a})});d.displayName="CardTitle",a.forwardRef((e,r)=>{let{className:n,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,s.cn)("text-sm text-muted-foreground",n),...a})}).displayName="CardDescription";let c=a.forwardRef((e,r)=>{let{className:n,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,s.cn)("p-6 pt-0",n),...a})});c.displayName="CardContent";let i=a.forwardRef((e,r)=>{let{className:n,...a}=e;return(0,t.jsx)("div",{ref:r,className:(0,s.cn)("flex items-center p-6 pt-0",n),...a})});i.displayName="CardFooter"},9708:function(e,r,n){"use strict";n.r(r),n.d(r,{default:function(){return x}});var t=n(5893),a=n(9008),s=n.n(a),l=n(4401),o=n(7294),d=n(1664),c=n.n(d),i=n(1064),u=n(618);let f=(0,n(483).Z)("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);function m(){let{downloadsByCategory:e,loading:r,error:n}=function(){let[e,r]=(0,o.useState)([]),[n,t]=(0,o.useState)(!0),[a,s]=(0,o.useState)(null);(0,o.useEffect)(()=>{(async()=>{try{t(!0);let e=await fetch("https://npwp.kailua.ch/wp-json/wp/v2/download?acf_format=standard");if(!e.ok)throw Error("Failed to fetch downloads");let n=await e.json();r(n)}catch(e){s(e instanceof Error?e.message:"An unknown error occurred")}finally{t(!1)}})()},[]);let l=e=>e.trim().toUpperCase(),d=Object.entries(e.reduce((e,r)=>{let n=r.acf.kategorie,t=l(n);return e[t]||(e[t]={displayName:n,items:[]}),e[t].items.push(r),e},{})).reduce((e,r)=>
1{let[n,t]=r;return e[t.displayName]=t.items,e},{});return{downloads:e,downloadsByCategory:d,loading:n,error:a}}(),a=e=>encodeURIComponent(e.replace(/\s+/g,"-"));return r?(0,t.jsx)("div",{className:"container mx-auto py-8",children:(0,t.jsx)("div",{className:"text-center",children:"L\xe4dt Downloads..."})}):n?(0,t.jsx)("div",{className:"container mx-auto py-8",children:(0,t.jsxs)("div",{className:"text-center text-red-500",children:["Fehler beim Laden der Downloads: ",n]})}):(0,t.jsxs)("div",{className:"container mx-auto py-8 px-4",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold mb-8 text-center",children:"Downloads"}),Object.entries(e).map(e=>{let[r,n]=e;return(0,t.jsxs)(i.Zb,{className:"mb-8",children:[(0,t.jsx)(i.Ol,{children:(0,t.jsx)(i.ll,{children:r})}),(0,t.jsx)(i.aY,{children:(0,t.jsx)("ul",{className:"space-y-2",children:n.map(e=>(0,t.jsxs)("li",{className:"group",children:[(0,t.jsxs)(c(),{href:"/info/downloads/".concat(a(e.acf.name)),className:"flex items-center gap-2 p-2 hover:bg-gray-100 dark:hover:bg-gray-800 rounded-md transition-colors",children:[(0,t.jsx)(f,{size:18,className:"text-gray-500 group-hover:text-primary"}),(0,t.jsx)("span",{className:"group-hover:text-primary",children:e.acf.name})]}),(0,t.jsx)(u.Z,{className:"mt-2"})]},e.id))})})]},r)})]})}function x(){return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(s(),{children:[(0,t.jsx)("title",{children:"Downloads - Nordportal Baden"}),(0,t.jsx)("meta",{name:"description",content:"Laden Sie Dokumente, Logos und Informationen zum Nordportal Baden herunter."})]}),(0,t.jsx)(l.w,{}),(0,t.jsx)("main",{className:"pt-20",children:(0,t.jsx)(m,{})})]})}},9008:function(e,r,n){e.exports=n(7828)}},function(e){e.O(0,[888,774,179],function(){return e(e.s=9580)}),_N_E=e.O()}]);
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.