PageSourceSearch

https://www.valueverde.de/assets/PressLogos-DUcBxEs8.js

js valueverde.de collected 2026-10-08 08:26:28 UTC 3,054 bytes, 1 lines download raw bytes

1import{c as N,r as m,j as a,a as R}from"./index-B_kafX6d.js";import{a as l}from"./press-logos-BeOq8Bpj.js";const P=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],C=N("check",P),T=2500,p=600,v=5,_=3,y="(max-width: 639px)";function Y({eyebrow:n="Bekannt aus",className:S,footer:d}){const r=m.useRef(null),[t,I]=m.useState(()=>typeof window>"u"?v:window.matchMedia(y).matches?_:v);m.useEffect(()=>{const e=window.matchMedia(y),s=()=>I(e.matches?_:v);return e.addEventListener("change",s),()=>e.removeEventListener("change",s)},[]);const[M,b]=m.useState(()=>Array.from({length:v},(e,s)=>({current:s%l.length,previous:null,swapping:!1})));return m.useEffect(()=>{b(e=>{if(e.length===t)return e;if(t<e.length)return e.slice(0,t);const s=new Set(e.map(c=>c.current)),f=[];for(let c=e.length;c<t;c++){const h=l.findIndex((x,g)=>!s.has(g)),E=h===-1?c%l.length:h;s.add(E),f.push({current:E,previous:null,swapping:!1})}return[...e,...f]})},[t]),m.useEffect(()=>{if(window.matchMedia("(prefers-reduced-motion: reduce)").matches||l.length<=t)return;let s=!0;const f=new IntersectionObserver(([x])=>{s=x.isIntersecting});r.current&&f.observe(r.current);let c=-1;const h=[],E=setInterval(()=>{if(!s||document.hidden)return;const x=Array.from({length:t},(i,u)=>u).filter(i=>i!==c),g=x[Math.floor(Math.random()*x.length)];c=g,b(i=>{const u=new Set(i.map(o=>o.current)),w=l.map((o,j)=>j).filter(o=>!u.has(o));if(w.length===0)return i;const L=w[Math.floor(Math.random()*w.length)];return i.map((o,j)=>j===g?{current:L,previous:o.current,swapping:!0}:o)});const $=setTimeout(()=>{b(i=>i.map((u,w)=>w===g?{...u,previous:null,swapping:!1}:u))},p);h.push($)},T);return()=>{clearInterval(E),h.forEach(clearTimeout),f.disconnect()}},[t]),a.jsx("div",{ref:r,className:R("w-full",S),children:a.jsxs("div",{className:"mx-auto max-w-[1200px] px-5 text-center sm:px-6",children:[a.jsx("p",{className:"text-[12px] font-medium uppercase tracking-[0.22em] text-periwinkle",children:n}),a.jsx("div",{className:"mt-10 flex flex-nowrap items-center justify-between gap-4 sm:mt-12 sm:gap-8 md:gap-12 lg:gap-16",children:M.slice(0,t).map((e,s)=>a.jsx(k,{slot:e},s))}),d&&a.jsx("div",{className:"mt-8",children:d})]})})}function k({slot:n}){const S=l[n.current],d=n.previous!=null?l[n.previous]:null,r="cubic-bezier(0.4, 0, 0.2, 1)",t="absolute inset-0 m-auto max-h-7 w-full max-w-[112px] object-contain opacity-90 [filter:brightness(0)] sm:max-h-10 sm:max-w-[180px] md:max-h-12";return a.jsxs("div",{className:"relative flex h-10 min-w-0 flex-1 basis-[40%] items-center justify-center sm:h-14 sm:basis-0 md:h-16",children:[d&&a.jsx("img",{src:d.src,alt:"","aria-hidden":!0,className:t,style:{opacity:n.swapping?0:1,transform:n.swapping?"translateY(-10px)":"translateY(0)",transition:`opacity ${p}ms ${r}, transform ${p}ms ${r}`}},`prev-${n.previous}`),a.jsx("img",{src:S.src,alt:S.alt,className:t,style:{opacity:1,transform:"translateY(0)",transition:`opacity ${p}ms ${r}, transform ${p}ms ${r}`,animation:n.swapping?`pressSlotIn ${p}ms ${r}`:void 0}},`cur-${n.current}`)]})}export{C,Y as P};

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.