1import{j as x}from"./ui-B_-FSLAE.js";import{r as o}from"./vendor-1kqR4etN.js";const j=({children:y,className:v="",tiltIntensity:r=15})=>{const e=o.useRef(null),[n,s]=o.useState({x:0,y:0}),[a,i]=o.useState({x:50,y:50}),f=c=>{if(!e.current)return;const t=e.current.getBoundingClientRect(),d=c.clientX-t.left,l=c.clientY-t.top,u=t.width/2,p=t.height/2,m=(l-p)/p*-r,g=(d-u)/u*r;s({x:m,y:g}),i({x:d/t.width*100,y:l/t.height*100})},h=()=>{s({x:0,y:0}),i({x:50,y:50})};return x.jsxs("div",{ref:e,className:`relative transition-transform duration-200 ease-out ${v}`,style:{transform:`perspective(1000px) rotateX(${n.x}deg) rotateY(${n.y}deg)`,transformStyle:"preserve-3d"},onMouseMove:f,onMouseLeave:h,children:[x.jsx("div",{className:"absolute inset-0 opacity-0 hover:opacity-30 transition-opacity duration-300 rounded-lg pointer-events-none",style:{background:`radial-gradient(circle at ${a.x}% ${a.y}%, hsl(var(--primary) / 0.5), transparent 50%)`}}),y]})};export{j 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.