PageSourceSearch

https://static.linear.app/web/_next/static/chunks/6cG7dJFx.js

js linear.app collected 2026-09-24 07:29:11 UTC 2,599 bytes, 1 lines download raw bytes

1var t,e,i,n,r,s;import{o}from"./C_JJxWoe.js";import{Dr as a,Vr as l,Zn as c}from"./CGcjPoY7.js";import{n as d,t as h}from"./Bgf8Vax9.js";import{t as m}from"./dYs2jWNK.js";import{t as p}from"./BqKkmhlk.js";import{t as f}from"./Csb6CUso.js";import{t as u}from"./Kp46WEbV.js";import{t as w}from"./CBum0_9Q.js";t=o(l(),1),e=o(c(),1),i=a(),n=t.forwardRef((e,n)=>{const{children:s,gutter:o=24,...a}=e,[l,c]=w({prop:e.open,defaultProp:e.defaultOpen??!1,onChange:t=>{t||(j(!0),setTimeout(()=>{j(!1)},300)),e.onOpenChange?.(t)}}),[v,g]=t.useState({top:0,left:0,transform:"scale(1)"}),[x,j]=t.useState(!1),b=t.useRef(null);d(t=>f.isEscape(t)||"ArrowDown"===t.key||"ArrowUp"===t.key,()=>c(!1));const C=(0,t.useCallback)(()=>{const t=b.current;if(!t)return;const e=t.getBoundingClientRect(),i={width:window.innerWidth,height:window.innerHeight},n=function(t,e,i){const n=e.height-2*i,r=(e.width-2*i)/t.width,s=n/t.height;return Math.min(r,s)}(e,i,o),{translateX:r,translateY:s}=function({itemRect:t,viewportRect:e,scale:i}){const n=e.width/2,r=e.height/2;return{translateX:(n-(t.left+t.width/2))/i,translateY:(r-(t.top+t.height/2))/i}}({itemRect:e,viewportRect:i,scale:n});g({top:e.top,left:e.left,width:e.width,height:e.height,transform:`scale(${n}) translate(${r}px, ${s}px)`})},[o]);return u(()=>{if(l)return C(),window.addEventListener("resize",C,{passive:!0}),()=>window.removeEventListener("resize",C)},[l,C]),t.useEffect(()=>{if(x)return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t);function t(){C()}},[x,C]),t.useEffect(()=>{function t(){l&&c(!1)}return window.addEventListener("scroll",t,{passive:!0}),()=>window.removeEventListener("scroll",t)},[c,l]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{"aria-label":"Zoom image",...a,ref:h([b,n]),className:"o2aWCW_wrapper","data-hidden":x||l,onClick:()=>{c(t=>!t)},children:s}),(0,i.jsx)(p,{custom:v,children:l?(0,i.jsxs)(r,{children:[(0,i.jsx)(m.div,{initial:{opacity:0}
1,animate:{opacity:1},exit:{opacity:0},className:"o2aWCW_overlay"}),(0,i.jsx)("div",{className:"o2aWCW_lightbox",onClick:()=>c(!1),children:(0,i.jsx)(m.div,{variants:{invisible:t=>({...t??v,transform:"scale(1) translate(0px, 0px)",transition:{top:{duration:0}}}),visible:{...v,transform:v.transform}},initial:"invisible",animate:"visible",exit:"invisible",onClick:()=>c(!1),transition:{type:"spring",bounce:0,duration:.4},children:s})})]},"lightbox"):null})]})}),r=({children:i})=>{const[n,r]=t.useState(!1);return u(()=>{r(!0)},[]),n?(0,e.createPortal)(i,document.body):null},s=t=>(0,i.jsx)(n,{children:t.children});export{n,s 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.