PageSourceSearch

https://app.foxglove.dev/.assets/3683.c2325aeccfd2646cfbd5.js

js foxglove.dev collected 2026-10-02 02:30:20 UTC 8,818 bytes, 1 lines download raw bytes

1(()=>{(function(){try{var y=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};y.SENTRY_RELEASE={id:"e0d20bc708a648d7df43e5ff24a9ec73bee81882"}}catch{}})();(self.webpackChunk=self.webpackChunk||[]).push([[3683],{67832(y,u,e){e.d(u,{z:()=>f});var t=e(36870),_=e(55458),o=e(6253),i=e(49023),x=e(70479),p=e(60991),d=e(23387),l=e(86326),r=e(964),E=e(95590),O=e(11538),A=e(92864);const K=(0,r.n9)()({root:{alignItems:"center",justifyContent:"center",height:"100%"}});function M({children:s}){const{classes:c}=K();return(0,t.jsx)(O.A,{className:c.root,children:(0,t.jsx)(A.A,{variant:"subtitle2",color:"secondary",children:s})})}var U=e(7740),j=e(86916),N=e(16600);const G=(0,r.n9)()(s=>({root:{display:"flex",alignItems:"center",justifyContent:"center",height:56,width:56,padding:0,"&:hover":{backgroundColor:(0,U.X4)(s.palette.primary.main,s.palette.action.focusOpacity)}}}));function Y({gridApiRef:s,setAnchorEl:c}){const{classes:T}=G();return(0,t.jsx)("div",{onClick:()=>{s.current.showPreferences(j.y.columns)},ref:c,title:"Manage columns",className:T.root,children:(0,t.jsx)(N.Gf,{color:"primary"})})}var J=e(78122);const $="__dataGridActions",X=96,Q=28,Z=(0,r.n9)()(s=>({hideSelectAll:{[`.${o.x.columnHeaderCheckbox} .${_.A.root}`]:{display:"none"}},root:{border:"none",[`.${o.x.columnHeader}, .${o.x.cell}`]:{":focus, :focus-within":{outline:"none"}},[`.${o.x.columnHeader}:nth-child(1 of .${o.x.columnHeader}):not(.${o.x["columnHeader--alignCenter"]}, .${o.x["columnHeader--alignRight"]}) /* ${E.v} */`]:{paddingLeft:s.spacing(2)},[`.${o.x.cell}:nth-child(1 of .${o.x.cell}):not(.${o.x["cell--textCenter"]}, .${o.x["cell--textRight"]}) /* ${E.v} */`]:{paddingLeft:s.spacing(2)}},clickableRows:{[`.${o.x.row}`]:{cursor:"pointer"}},treeDataWithGroups:{[`.${o.x.columnHeader}[data-field="${i.it}"]:not(.${o.x["columnHeader--alignCenter"]}, .${o.x["columnHeader--alignRight"]}) .${o.x.columnHeaderTitleContainerContent}`]:{marginLeft:`calc(${Q}px + ${s.spacing(2)})`}},treeDataWithoutGroups:{[`.${o.x.treeDataGroupingCellToggle}`]:{flexBasis:0,marginRight:0}},actionHeader:{padding:0},actionCell:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:s.spacing(1),padding:0,width:"100%"}}));function f({noRowsText:s,noResultsText:c,slots:T,slotProps:v,className:w,columns:g,apiRef:L,rowActions:S,enableColumnManagement:P=!1,hideManageColumnsButton:H=!1,columnsPanelAnchorEl:m,actionColumnWidth:R=X,hideSelectAllCheckbox:k=!1,columnVisibilityStorageKey:W,defaultColumnVisibilityModel:q,columnVisibilityModel:b,onColumnVisibilityModelChange:ee,alignTreeDataGroupingHeader:ne,...D}){const{classes:n,cx:a}=Z(),C=(0,x.b)(),B=L??C,[F,V]=(0,l.useState)(null),[z,ie]=(0,J.l)(W,q),oe=W!=null,te=P&&!H,se=S!=null||te,le=D.groupingColDef,ae=D.treeData===!0&&typeof le!="function"&&le?.renderCell==null||ne===!0,re=(0,l.useMemo)(()=>{const h=D.getTreeDataPath,I=D.rows;if(!(!ae||h==null||I==null))return I.some(fe=>h(fe).length>1)},[D.getTreeDataPath,D.rows,ae]),de=(0,l.useMemo)(()=>{if(!se)return g;const h={field:$,headerName:"",sortable:!1,filterable:!1,hideable:!1,resizable:!1,disableColumnMenu:!0,disableExport:!0,disableReorder:!0,align:"right",headerAlign:"right",width:R,headerClassName:n.actionHeader,cellClassName:n.actionCell,renderHeader:te?()=>(0,t.jsx)(Y,{gridApiRef:B,setAnchorEl:V}):void 0,renderCell:S};return[...g,h]},[g,se,te,S,R,n.actionHeader,n.actionCell,B]),ce=(0,l.useMemo)(()=>{const h={};return s!=null&&(h.noRowsOverlay=()=>(0,t.jsx)(M,{children:s})),c!=null&&(h.noResultsOverlay=()=>(0,t.jsx)(M,{children:c})),{...h,...T}},[s,c,T]),ue=(0,l.useMemo)(()=>P?{...v,panel:{anchorEl:m??F,...v?.panel},columnsManagement:{getTogglableColumns:h=>h.filter(I=>I.field!==$&&I.field!==p.f.field).map(I=>I.field),...v?.columnsManagement}}:v,[P,v,F,m]);return(0,t.jsx)(d.C,{disableColumnMenu:!0,disableColumnReorder:!0,disableColumnPinning:!0,...D,apiRef:B,columns:de,columnVisibilityModel:oe?z:b,onColumnVisibilityModelChange:oe?ie:ee,className:a(n.root,k&&n.hideSelectAll,D.onRowClick!=null&&n.clickableRows,re===!0&&n.treeDataWithGroups,re===!1&&n.treeDataWithoutGroups,w),slots:ce,slotProps:ue})}},70479(y,u,e){e.d(u,{b:()=>o});var t=e(86326);const o=()=>t.useRef({})},73683(y,u,e){e.d(u,{ProjectSelectDialog:()=>Z});var t=e(36870),_=e(24497),o=e(97813),i=e(86326),x=e(85981),p=e(3310),d=e(17181),l=e(32433),r=e(31459),E=e(71143),O=e(84527),A=e(11538),K=e(2550),M=e(92508),U=e(964),j=e(70479),N=e(82322),G=e(6253),Y=e(67832),J=e(20139),$=e(73173);const X=(0,U.n9)()(f=>({dataGrid:{[`& .${G.x.main}
1`]:{height:"min(16rem, 50vh)",overflow:"auto"},[`&& .${G.x.row}:has(.${G.x.cell}:focus-visible)`]:{outline:`2px solid ${f.palette.primary.main}`,outlineOffset:-2}},highlightedRow:{backgroundColor:(0,o.B3)(f.palette.primary.main,.1),"&:hover":{backgroundColor:(0,o.B3)(f.palette.primary.main,.2)}},row:{alignItems:"center",gap:f.spacing(1)}})),Q=[{field:"name",sort:"asc"}];function Z(){const{classes:f}=X(),{_:s}=(0,_.uB)(),{authState:c}=(0,p.As)(),T=c?.type==="user"?c.projectId:void 0,v=c?.type==="user"?c.user.org.id:void 0,w=(0,l.n)(),g=(0,j.b)(),L=(0,d.I)(n=>n.isOpen),S=(0,d.I)(n=>n.closeProjectSelectDialog),[P,H]=(0,i.useState)(""),{data:m}=(0,r.II)({orgId:v},{enabled:L&&v!=null}),{data:R,isLoading:k}=(0,E.YK)({enabled:L&&m!=null&&(0,O.supportsProjects)(m.planName)}),W=(0,i.useCallback)(()=>{H(""),S()},[S]),q=(0,i.useMemo)(()=>[{field:"name",headerName:s({id:"6YtxFj"}),sortable:!0,flex:1,valueGetter:(n,a)=>a.name??m?.displayName,renderCell:n=>(0,t.jsxs)(A.A,{direction:"row",className:f.row,children:[(0,t.jsx)($.zg,{size:16}),n.value]})},{field:"orgMemberCount",headerName:s({id:"wlQNTg"}),sortable:!0,maxWidth:100,valueGetter:(n,a)=>a.orgMemberCount,renderCell:n=>(0,t.jsxs)(A.A,{direction:"row",className:f.row,children:[(0,t.jsx)(J.YJ,{size:16}),n.value]})}],[f,m?.displayName,s]),b=(0,i.useCallback)(n=>{const a=R?.find(C=>C.id===n);w({id:n,name:a?.name??m?.displayName}),W()},[W,m?.displayName,R,w]),ee=(0,i.useCallback)(n=>{H(n.target.value)},[]),ne=(0,i.useCallback)(n=>{if(n.key!=="ArrowDown"&&n.key!=="ArrowUp")return;const a=(0,N.qA)(g),C=n.key==="ArrowDown"?a[0]:a[a.length-1];C!=null&&(n.preventDefault(),g.current.setCellFocus(C,"name"))},[g]),D=(0,i.useMemo)(()=>R?.filter(n=>(n.name??m?.displayName??"").toLowerCase().includes(P.toLowerCase())),[R,P,m?.displayName]);return!L||c?.type!=="user"?null:(0,t.jsx)(K.n,{open:L,onClose:W,fullWidth:!0,maxWidth:"sm",title:s({id:"A5QX29"}),cancelAction:{label:(0,t.jsx)(_.x6,{id:"dEgA5A"})},children:(0,t.jsxs)(A.A,{children:[(0,t.jsx)(M.F,{autoFocus:!0,value:P,placeholder:s({id:"s3YMc9"}),onChange:ee,onKeyDown:ne}),(0,t.jsx)(Y.z,{apiRef:g,disableColumnSelector:!0,disableColumnFilter:!0,disableRowSelectionOnClick:!0,columns:q,hideFooter:!0,rows:D??[],initialState:{sorting:{sortModel:Q}},className:f.dataGrid,density:"compact",loading:k,getRowClassName:n=>n.row.id===T?f.highlightedRow:"",slots:{noRowsOverlay:()=>(0,t.jsx)(x.i,{message:s(P!==""?{id:"C34LCl"}:{id:"i30J2U"})}),noResultsOverlay:()=>(0,t.jsx)(x.i,{message:s({id:"bP7Ipb"})})},onRowClick:n=>{b(n.row.id)},onCellKeyDown:(n,a)=>
1{if(a.key==="ArrowDown"||a.key==="ArrowUp"){const C=(0,N.qA)(g),B=C.indexOf(n.id);if(B<0)return;const F=a.key==="ArrowDown"?1:-1,V=(B+F+C.length)%C.length,z=C[V];if(z==null)return;a.defaultMuiPrevented=!0,a.preventDefault(),g.current.scrollToIndexes({rowIndex:V}),g.current.setCellFocus(z,n.field);return}a.key==="Enter"&&(a.defaultMuiPrevented=!0,a.preventDefault(),b(n.row.id))}})]})})}},78122(y,u,e){e.d(u,{l:()=>p});var t=e(86326);const _="fox.datagrid-column-visibility-model",o={};function i(d){if(!(typeof localStorage>"u"))try{const l=localStorage.getItem(d);return l!=null?JSON.parse(l):void 0}catch{return}}function x(d,l){if(!(typeof localStorage>"u"))try{const r=JSON.stringify(l);r!=null&&localStorage.setItem(d,r)}catch{}}function p(d,l=o){const r=d!=null?`${_}.${d}`:void 0,[E,O]=(0,t.useState)(()=>r!=null?i(r):void 0),A=(0,t.useMemo)(()=>({...l,...E}),[l,E]),K=(0,t.useCallback)(M=>{O(U=>{const j=typeof M=="function"?M({...l,...U}):M;return r!=null&&x(r,j),j})},[l,r]);return[A,K]}},85981(y,u,e){e.d(u,{i:()=>d});var t=e(36870),_=e(24497),o=e(97813),i=e(92864),x=e(964);const p=(0,x.n9)()((l,{disablePadding:r})=>({root:{padding:r?void 0:l.spacing(2)},primaryHighlight:{backgroundColor:(0,o.B3)(l.palette.primary.main,.1),padding:l.spacing(2)}}));function d({message:l,disablePadding:r=!1}){const{classes:E}=p({disablePadding:r}),{_:O}=(0,_.uB)();return(0,t.jsx)("div",{className:E.root,children:(0,t.jsx)("div",{className:E.primaryHighlight,children:(0,t.jsx)(i.A,{children:l??O({id:"AxPAXW"})})})})}},95590(y,u,e){e.d(u,{v:()=>t});const t="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason"}}]);})();

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.