PageSourceSearch

https://www.aipictors.com/assets/app-animated-tabs.js

js aipictors.com collected 2026-09-24 09:42:02 UTC 1,108 bytes, 1 lines download raw bytes

1import{r as f,j as o}from"./jsx-runtime.js";function v({tabs:i,value:a,onChange:d,className:l=""}){const s=i.findIndex(e=>e.value===a),r=f.useRef([]),[c,n]=f.useState({left:0,width:0});f.useEffect(()=>{const e=r.current[s];e&&n({left:e.offsetLeft,width:e.offsetWidth})},[s]);const u=e=>{const t=r.current[e];t&&n({left:t.offsetLeft,width:t.offsetWidth})},x=()=>{const e=r.current[s];e&&n({left:e.offsetLeft,width:e.offsetWidth})};return o.jsx("div",{className:`relative w-full cursor-pointer overflow-x-auto border-border border-b ${l}`,children:o.jsxs("div",{className:"relative flex space-x-6",children:[i.map((e,t)=>{const h=m=>{r.current[t]=m};return o.jsx("button",{ref:h,type:"button",onClick:()=>d(e.value),onMouseEnter:()=>u(t),onMouseLeave:x,className:`cursor-pointer whitespace-nowrap pb-3 font-medium text-sm transition-colors duration-300 ${a===e.value?"text-foreground":"text-muted-foreground hover:text-foreground"}`,children:e.label},e.value)}),o.jsx("div",{className:"absolute bottom-0 h-0.5 bg-foreground transition-all duration-300",style:{left:c.left,width:c.width}})]})})}export{v as A};

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.