1import{j as r,b as p}from"./vendor-react-gl_RECdO.js";import{e as b,L as j}from"./entry.client-C8MizHBJ.js";const x=({to:t,children:e,onClick:l,...o})=>{const w=b(),a=s=>{s.preventDefault(),l&&l(s),w(t)};return r.jsx(j,{to:t,onClick:a,...o,children:e})},S=({end:t,clickedPage:e,pathname:l,type:o="path",searchParams:w})=>{const[a,s]=p.useState(()=>u(t,e,1024));p.useEffect(()=>{s(u(t,e,window.innerWidth))},[t,e]),p.useEffect(()=>{if(typeof window<"u"){const i=()=>{s(u(t,e,window.innerWidth))};return window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}},[]);const h=(i,f,v)=>{if(i==="...")return"";const m=l.replace(/(\/page\d+\/?$|\?page=\d+)$/,"");let n;if(f==="path"?n=m.endsWith("/")?m:`${m}/`:n=m,i===1){if(f==="query"){const d=new URLSearchParams(v);d.delete("page");const y=d.toString();return y?`${n}?${y}`:n}return n}if(f==="query"){const d=new URLSearchParams(v);return d.set("page",i),`${n}?${d.toString()}`}return`${n}page${i}/`},c=()=>{window.scrollTo({top:0,behavior:"smooth"})};return a.length>0&&r.jsxs("div",{className:"tw-flex tw-justify-center tw-items-center",children:[r.jsx(x,{to:h(1,o,w),"aria-label":"Erste Seite",className:`tw-rotate-180 tw-flex tw-w-8 tw-h-8 tw-border tw-rounded-full tw-mr-2 tw-cursor-pointer tw-text-base tw-text-neutral-10 tw-items-center [&>svg>path]:hover:tw-fill-primary-100 tw-justify-center hover:tw-bg-primary-40 hover:tw-text-primary-100 2 tw-transition tw-ease-in-out tw-duration-300 ${e===1?"tw-hidden":""}`,onClick:c,children:g()}),r.jsx(x,{to:h(e-1,o,w),"aria-label":"Vorherige Seit",className:`tw-rotate-180 tw-flex tw-w-8 tw-h-8 tw-border tw-rounded-full tw-mr-2 tw-cursor-pointer tw-text-base tw-text-neutral-10 tw-items-center [&>svg>path]:hover:tw-fill-primary-100 tw-justify-center hover:tw-bg-primary-40 !hover:tw-text-primary-100 3 tw-transition tw-ease-in-out tw-duration-300 ${e===1?"tw-hidden":""}`,onClick:c,children:L()}),r.jsx("div",{className:"tw-py-2 tw-flex tw-flex-wrap",children:a.map((i,f)=>r.jsx("div",{className:"tw-py-1.5 tw-top-[11px] tw-pr-2 tw-flex",children:i==="..."?r.jsx("span",{"aria-hidden":"true",className:"tw-flex tw-w-8 tw-h-8 tw-cursor-pointer tw-rounded-full tw-border-solid tw-text-base tw-text-tertiary-10 tw-items-center tw-justify-center hover:tw-bg-primary-40 hover:tw-text-primary-100",children:i}):r.jsx(x,{to:h(i,o,w),"aria-label":`Seite ${i}`,className:`tw-flex tw-w-8 tw-h-8 tw-cursor-pointer tw-rounded-full tw-border-solid tw-text-base tw-items-center tw-justify-center hover:tw-bg-primary-40 hover:tw-text-primary-100 4 ${i===e?"tw-bg-primary-95 tw-border-primary-95 tw-text-primary-40":"tw-text-tertiary-10"}`,onClick:c,children:i})},`${i}-${f}`))}),r.jsx(x,{to:h(e+1,o,w),"aria-label":"Nächste Seite",className:`tw-flex tw-w-8 tw-h-8 tw-border tw-rounded-full tw-cursor-pointer tw-text-base tw-text-neutral-10 tw-items-center tw-mr-2 tw-justify-center [&>svg>path]:hover:tw-fill-primary-100 hover:tw-bg-primary-40 hover:tw-text-primary-100 5 tw-transition tw-ease-in-out tw-duration-300 ${e===t?"tw-hidden":""}`,onClick:c,children:L()}),r.jsx(x,{to:h(t,o,w),"aria-label":"Letzte Seite",className:`tw-flex tw-w-8 tw-h-8 tw-border tw-rounded-full tw-cursor-pointer tw-text-base tw-text-neutral-10 tw-items-center tw-mr-2 tw-justify-center [&>svg>path]:hover:tw-fill-primary-100 hover:tw-bg-primary-40 hover:tw-text-primary-100 6 tw-transition tw-ease-in-out tw-duration-300 ${e===t?"tw-hidden":""}`,onClick:c,children:g()})]})},L=()=>r.jsx("svg",{width:"8",height:"13",viewBox:"0 0 8 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.1 6.60742L0.5 2.00742L1.9 0.607422L7.9 6.60742L1.9 12.6074L0.5 11.2074L5.1 6.60742Z",fill:"#57585C"})}),g=()=>r.jsx("svg",{width:"15",height:"13",viewBox:"0 0 15 13",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:r.jsx("path",{d:"M5.075 6.60742L0.5 2.00742L1.9 0.607422L7.9 6.60742L1.9 12.6074L0.5 11.2074L5.075 6.60742ZM11.675 6.60742L7.1 2.00742L8.5 0.607422L14.5 6.60742L8.5 12.6074L7.1 11.2074L11.675 6.60742Z",fill:"#57585C"})}),u=(t,e,l)=>{if(l<768){if(e===1){const w=Math.min(3,t);return Array.from({length:w},(a,s)=>s+1)}if(e===t){const w=Math.min(3,t);return Array.from({length:w},(a,s)=>t-w+1+s)}return[e-1,e,e+1]}if(t<=8)return[...Array(t)].map((a,s)=>1+s);if(e<5)return[1,2,3,4,5,"...",t-1,t];if(e>=5)return e>=t-3?[1,2,"...",t-4,t-3,t-2,t-1,t]:[1,2,"...",e-1,e,e+1,"...",t-1,t]};export{S as P,x as T};
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.