PageSourceSearch

https://l2beat.com/static/assets/ColumnsControls-Byf83nbC.js

js l2beat.com collected 2026-10-02 03:03:30 UTC 3,622 bytes, 1 lines download raw bytes

1import{t as e}from"./index-9nNjHsL8.js";import{Ut as t,qn as n,un as r}from"./SideNavLayout-CQx-PAqO.js";import{c as i,i as a,o,r as s,s as c,t as l}from"./Drawer-BTh1vMPq.js";import{i as u,r as d,t as f}from"./Popover-DcUJvHzO.js";var p=e();function m(e){return(0,p.jsx)(r,{width:`16`,height:`16`,viewBox:`0 0 16 16`,fill:`currentColor`,...e,children:(0,p.jsx)(`path`,{d:`M11.132 15a1.66 1.66 0 01-1.658-1.658v-.184h-8.29a.553.553 0 110-1.105h8.29v-.185a1.66 1.66 0 011.658-1.658 1.66 1.66 0 011.658 1.658v.185h2.026a.554.554 0 110 1.105H12.79v.184A1.66 1.66 0 0111.132 15m-6.263-4.605A1.66 1.66 0 013.21 8.737v-.184H1.185a.553.553 0 110-1.106H3.21v-.184a1.66 1.66 0 011.658-1.658 1.66 1.66 0 011.658 1.658v.184h8.29a.553.553 0 110 1.106h-8.29v.184a1.66 1.66 0 01-1.658 1.658m5.526-4.605a1.66 1.66 0 01-1.658-1.658v-.185H1.185a.553.553 0 110-1.105h7.552v-.184A1.66 1.66 0 0110.395 1a1.66 1.66 0 011.658 1.658v.184h2.763a.553.553 0 110 1.105h-2.763v.185a1.66 1.66 0 01-1.658 1.658`})})}function h({columns:e}){let t=e.flatMap(e=>e.getLeafColumns()).filter(e=>e.getCanHide()),n=t.filter(e=>!e.getIsVisible()),r=(0,p.jsxs)(`div`,{className:`mb-1 flex h-8 w-fit items-center rounded-lg bg-surface-secondary font-semibold text-base`,children:[(0,p.jsxs)(`div`,{className:`flex h-full items-center gap-1.5 px-2`,children:[(0,p.jsx)(m,{className:`size-4 fill-secondary`}),(0,p.jsx)(`span`,{className:`text-label-value-14 md:text-label-value-15`,children:`Columns`})]}),n.length>0&&(0,p.jsx)(g,{hiddenColumns:n})]});return(0,p.jsxs)(p.Fragment,{children:[(0,p.jsxs)(f,{children:[(0,p.jsx)(u,{className:`gap-0 p-0 max-md:hidden`,asChild:!0,children:r}),(0,p.jsxs)(d,{className:`!bg-surface-primary max-w-66 px-3.5 pb-3.5`,align:`start`,side:`bottom`,children:[(0,p.jsx)(`span`,{className:`text-secondary text-subtitle-11 uppercase`,children:`Columns`}),(0,p.jsx)(`div`,{className:`flex flex-wrap gap-1`,children:t.map(e=>(0,p.jsx)(_,{column:e},e.id))})]})]}),(0,p.jsxs)(l,{children:[(0,p.jsx)(i,{className:`bg-surface-secondary md:hidden`,asChild:!0,children:r}),(0,p.jsxs)(s,{children:[(0,p.jsxs)(o,{className:`mb-3 gap-0`,children:[(0,p.jsx)(c,{className:`mb-0 text-lg text-primary`,children:`Columns`}),(0,p.jsx)(a,{className:`font-semibold text-secondary text-xs`,children:`Select chips to display columns.`})]}),(0,p.jsx)(`div`,{className:`mb-5 flex flex-wrap gap-1`,children:t.map(e=>(0,p.jsx)(_,{column:e},e.id))})]})]})]})}function g({hiddenColumns:e}){return(0,p.jsx)(`div`,{className:`h-full overflow-hidden`,children:(0,p.jsxs)(`div`,{className:`fade-in-0 slide-in-from-left-4 flex h-full animate-in items-center gap-1 whitespace-nowrap border-divider border-l pr-1 pl-2 font-medium text-label-value-13 text-secondary`,children:[(0,p.jsxs)(`span`,{children:[e.length,` hidden`]}),(0,p.jsx)(`button`,{type:`button`,"aria-label":`Show all columns`,className:`flex size-4 items-center justify-center rounded-sm transition-colors duration-150 ease-out hover:bg-surface-tertiary hover:text-primary`,onPointerDown:e=>e.stopPropagation(),onClick:t=>{t.stopPropagation(),e.forEach(e=>e.toggleVisibility(!0))},children:(0,p.jsx)(t,{className:`size-2`})})]})})}function _({column:e}){let t=e.getIsVisible();return(0,p.jsx)(`div`,{className:n(`flex h-8 cursor-pointer select-none items-center rounded-sm border border-divider bg-surface-secondary px-2.5 py-2 font-medium text-label-value-16 capitalize transition-all md:h-6 md:px-2 md:py-1.5 md:text-label-value-13`,t&&`border-brand bg-brand/15`),onClick:()=>e.toggleVisibility(!t),children:typeof e.columnDef.header==`string`?e.columnDef.header:e.id},e.id)}export{m as n,h 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.