PageSourceSearch

http://parisobs.com/_next/static/chunks/pages/project/[projectId]/dashboards-c697683201144c6c.js

js parisobs.com collected 2026-10-04 01:40:26 UTC 51,035 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4468],{7543:(e,t,a)=>{"use strict";a.d(t,{Q:()=>r});var s=a(6300),n=a(48201);let r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=(0,n.q)(),[a,r]=(0,s.useQueryParam)("orderBy",(0,s.withDefault)(s.ObjectParam,e));return t?[t.tableState.sorting,e=>{t.setTableState({...t.tableState,sorting:e})}]:[a,r]}},11058:(e,t,a)=>{"use strict";a.d(t,{K:()=>n,t:()=>r});var s=a(73154);let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2?arguments[2]:void 0,s=e=>String(e).padStart(2,"0"),n=t?e.getUTCFullYear():e.getFullYear(),r=t?e.getUTCMonth()+1:e.getMonth()+1,l=t?e.getUTCDate():e.getDate(),o=t?e.getUTCHours():e.getHours(),i=t?e.getUTCMinutes():e.getMinutes(),d=t?e.getUTCSeconds():e.getSeconds(),c=t?e.getUTCMilliseconds():e.getMilliseconds(),u="".concat(n,"-").concat(s(r),"-").concat(s(l));return["hour","minute","second","millisecond"].includes(a)&&(u+=" ".concat(s(o))),["minute","second","millisecond"].includes(a)&&(u+=":".concat(s(i))),["second","millisecond"].includes(a)&&(u+=":".concat(s(d))),"millisecond"===a&&(u+=".".concat(String(c).padStart(3,"0"))),u},r=e=>{let{date:t,accuracy:a="second",className:r}=e;if(!(t instanceof Date)||isNaN(t.getTime()))return null;let l=n(t,!1,a),o=n(t,!0,"millisecond");return(0,s.jsx)("span",{title:"UTC: ".concat(o),className:r,"data-sentry-component":"LocalIsoDate","data-sentry-source-file":"LocalIsoDate.tsx",children:l})}},13431:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]])},17663:(e,t,a)=>{"use strict";a.d(t,{b:()=>P});var s=a(73154),n=a(96810),r=a(35157),l=a(13431),o=a(95840),i=a(59757),d=a(22312),c=a(86843),u=a(93323),h=a(92125),m=a(51883),p=a(90270);function f(e){let{table:t,isLoading:a,paginationOptions:r=[10,20,30,40,50],hideTotalCount:f=!1,canJumpPages:g=!0}=e,x=(0,h.B)(),b=t.getState().pagination.pageIndex+1,[y,v]=(0,n.use
1State)(b);(0,n.useEffect)(()=>{v(b)},[b]);let j=t.getPageCount(),w=t.setPageIndex;(0,n.useEffect)(()=>{b>j&&j>0&&w(0)},[b,j,w]);let N=e=>{if(""===e){t.setPageIndex(0),v(1);return}if(isNaN(Number(e)))return void v(b);let a=Number(e)-1;if(a<0||a>=j)return void v(b);t.setPageIndex(a),v(a+1)};return(0,s.jsxs)("div",{className:"flex items-center justify-between","data-sentry-component":"DataTablePagination","data-sentry-source-file":"data-table-pagination.tsx",children:[(0,s.jsx)("div",{className:"flex-1 text-sm text-muted-foreground"}),(0,s.jsxs)("div",{className:"flex flex-wrap items-center space-x-6 lg:space-x-8",children:[(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)("p",{className:"whitespace-nowrap text-sm font-medium md:hidden",children:"Rows"}),(0,s.jsx)("p",{className:"hidden whitespace-nowrap text-sm font-medium md:block",children:"Rows per page"}),(0,s.jsxs)(u.l6,{value:"".concat(t.getState().pagination.pageSize),onValueChange:e=>{x("table:pagination_page_size_select",{pageSize:e}),t.setPageSize(Number(e))},"data-sentry-element":"Select","data-sentry-source-file":"data-table-pagination.tsx",children:[(0,s.jsx)(u.bq,{className:"h-8 w-[70px]","data-sentry-element":"SelectTrigger","data-sentry-source-file":"data-table-pagination.tsx",children:(0,s.jsx)(u.yv,{placeholder:t.getState().pagination.pageSize,"data-sentry-element":"SelectValue","data-sentry-source-file":"data-table-pagination.tsx"})}),(0,s.jsx)(u.gC,{side:"top","data-sentry-element":"SelectContent","data-sentry-source-file":"data-table-pagination.tsx",children:r.map(e=>(0,s.jsx)(u.eb,{value:"".concat(e),children:e},e))})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-center gap-1 whitespace-nowrap text-sm font-medium",children:[-1!==t.getPageCount()?(0,s.jsxs)(s.Fragment,{children:["Page",g&&(0,s.jsx)(p.p,{type:"number",min:1,max:j,value:y,onChange:e=>{v(e.target.value)},onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),N(e.currentTarget.value))},onBlur:e=>{N(e.target.value)},className:"h-8 appearance-none",style:{width:"".concat(3+Math.max(1,j.toString().length),"ch")}}),!g&&(0,s.jsx)("span",{children:b})]}):"Page ".concat(b),!f&&(0,s.jsx)(s.Fragment,{children:-1!==j?(0,s.jsxs)("span",{children:["of ",j]}):(0,s.jsxs)("span",{children:["of"," ",a?(0,s.jsx)(m.A,{className:"ml-1 inline-block h-3 w-3 animate-spin text-muted-foreground"}):1]})})]}),(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[g&&(0,s.jsxs)(c.$,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>{t.setPageIndex(0),x("table:pagination_button_click",{type:"firstPage"})},disabled:!t.getCanPreviousPage(),children:[(0,s.jsx)("span",{className:"sr-only",children:"Go to first page"}),(0,s.jsx)(l.A,{className:"h-4 w-4"})]}),(0,s.jsxs)(c.$,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>{t.previousPage(),x("table:pagination_button_click",{type:"previousPage"})},disabled:!t.getCanPreviousPage(),"data-sentry-element":"Button","data-sentry-source-file":"data-table-pagination.tsx",children:[(0,s.jsx)("span",{className:"sr-only",children:"Go to previous page"}),(0,s.jsx)(o.A,{className:"h-4 w-4","data-sentry-element":"ChevronLeft","data-sentry-source-file":"data-table-pagination.tsx"})]}),(0,s.jsxs)(c.$,{variant:"outline",className:"h-8 w-8 p-0",onClick:()=>{t.nextPage(),x("table:pagination_button_click",{type:"nextPage"})},disabled:!t.getCanNextPage()||-1===j,"data-sentry-element":"Button","data-sentry-source-file":"data-table-pagination.tsx",children:[(0,s.jsx)("span",{className:"sr-only",children:"Go to next page"}),(0,s.jsx)(i.A,{className:"h-4 w-4","data-sentry-element":"ChevronRight","data-sentry-source-file":"data-table-pagination.tsx"})]}),g&&(0,s.jsxs)(c.$,{variant:"outline",className:"hidden h-8 w-8 p-0 lg:flex",onClick:()=>{t.setPageIndex(j-1),x("table:pagination_button_click",{type:"lastPage"})},disabled:!t.getCanNextPage()||-1===j,children:[(0,s.jsx)("span",{className:"sr-only",children:"Go to last page"}),(0,s.jsx)(d.A,{className:"h-4 w-4"})]})]})]})]})}var g=a(69448),x=a(25525),b=a(81509),y=a(9825),v=a(60678),j=a(16254),w=a.n(j),N=a(39156),D=a(80539),C=a(92953),k=a.n(C);let A=e=>{let t=e.getIsPinned();return{left:"left"===t?"".concat(e.getStart("left"),"px"):void 0,right:"right"===t?"".concat(e.getAfter("right"),"px"):void 0,position:t?"sticky":"relative",width:e.getSize(),zIndex:10*!!t,backgroundColor:t?"hsl(var(--background))":void 0}},S=e=>{let t=e.getIsPinned(),a="left"===t&&e.getIsLastColumn("left"),s="right"===t&&e.getIsFirstColumn("right");return(0,b.cn)(a&&"border-r border-border",s&&"border-l border-border")};function P(e){var t;let{columns:a,data:l,pagination:o,rowSelection:i,setRowSelection:d,columnVisibility:c,onColumnVisibilityChange:u,columnOrder:m,onColumnOrderChange:p,help:j,noResultsMessage:w,orderBy:N,setOrderBy:C,rowHeight:P,customRowHeights:R,className:M,shouldRenderGroupHeaders:E=!1,onRowClick:z,peekView:F,hidePagination:B=!1,tableName:I,getRowClassName:H}
1=e,[L,O]=(0,n.useState)([]),U=(0,g.Yk)(P,R),G=(0,h.B)(),V=(0,n.useMemo)(()=>{let e=new Map;return a.forEach(t=>{if(t.columns&&t.columns.length){let a=t.columns.map(e=>e.accessorKey);e.set(t.accessorKey,a)}}),e},[a]),{columnSizing:K,setColumnSizing:$}=(e=>{let[t,a]=(0,D.A)("table-columns-".concat(e),{}),[s,r]=(0,n.useState)(t),l=(0,n.useMemo)(()=>k()(t=>{e&&Object.keys(t).length>0&&a(t)},500),[e,a]);return(0,n.useEffect)(()=>{l(s)},[s,l]),{columnSizing:s,setColumnSizing:r}})(I),q=(0,n.useMemo)(()=>({left:a.filter(e=>e.isPinnedLeft).map(e=>e.id||e.accessorKey),right:[]}),[a]),J=(0,y.N4)({data:null!=(t=l.data)?t:[],columns:a,onColumnFiltersChange:O,onColumnOrderChange:p,getFilteredRowModel:(0,v.hM)(),getCoreRowModel:(0,v.HT)(),manualPagination:void 0!==o,pageCount:(null==o?void 0:o.totalCount)===null||(null==o?void 0:o.state.pageSize)===void 0?-1:Math.ceil(Number(null==o?void 0:o.totalCount)/(null==o?void 0:o.state.pageSize)),onPaginationChange:null==o?void 0:o.onChange,onRowSelectionChange:d,onColumnVisibilityChange:u,getRowId:(e,t)=>"id"in e&&"string"==typeof e.id?e.id:t.toString(),state:{columnFilters:L,pagination:null==o?void 0:o.state,columnVisibility:c,columnOrder:m?m.reduce((e,t)=>(V.has(t)?e.push(...V.get(t)):e.push(t),e),[]):void 0,rowSelection:i,columnSizing:K,columnPinning:q},onColumnSizingChange:$,manualFiltering:!0,defaultColumn:{minSize:20,size:150,maxSize:Number.MAX_SAFE_INTEGER},columnResizeMode:"onChange",autoResetPageIndex:!1}),W=(0,n.useCallback)((e,t)=>{if(null==z||z(e,t),F&&!(null==t?void 0:t.defaultPrevented)){var a;let t="id"in e&&"string"==typeof e.id?e.id:void 0;null==(a=F.openPeek)||a.call(F,t,e)}},[z,F]),Q=!!z||!!(null==F?void 0:F.openPeek),Z=(0,n.useMemo)(()=>{let e=J.getFlatHeaders(),t={};for(let a=0;a<e.length;a++){let s=e[a];t["--header-".concat(s.id,"-size")]=s.getSize(),t["--col-".concat(s.column.id,"-size")]=s.column.getSize()}return t},[J.getState().columnSizingInfo,J.getState().columnSizing,J.getFlatHeaders(),c]),Y=E?J.getHeaderGroups():[J.getHeaderGroups().slice(-1)[0]];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:(0,b.cn)("flex w-full max-w-full flex-1 flex-col overflow-auto",M),children:(0,s.jsx)("div",{className:(0,b.cn)("relative min-h-full w-full overflow-auto border-t"),style:{...Z},children:(0,s.jsxs)(x.XI,{"data-sentry-element":"Table","data-sentry-source-file":"data-table.tsx",children:[(0,s.jsx)(x.A0,{className:"sticky top-0 z-20","data-sentry-element":"TableHeader","data-sentry-source-file":"data-table.tsx",children:Y.map(e=>(0,s.jsx)(x.Hj,{children:e.headers.map(e=>{var t;let a=e.column.columnDef,n=a.enableSorting,l=!function(e){let{name:t,includesHyphens:a=!0}=e;return(a?/^--(?![0-9])([a-zA-Z][a-zA-Z0-9-_]*)$/:/^(?![0-9])([a-zA-Z][a-zA-Z0-9-_]*)$/).test(t)}({name:e.id,includesHyphens:!1})?150:"calc(var(--header-".concat(e.id,"-size) * 1px)");return e.column.getIsVisible()?(0,s.jsx)(x.nd,{className:(0,b.cn)("group p-1 first:pl-2",n&&"cursor-pointer",S(e.column)),style:{width:l,...A(e.column)},onClick:e=>{e.preventDefault(),C&&a.id&&n&&((null==N?void 0:N.column)===a.id?"DESC"===N.order?(G("table:column_sorting_header_click",{column:a.id,order:"ASC"}),C({column:a.id,order:"ASC"})):(G("table:column_sorting_header_click",{column:a.id,order:"Disabled"}),C(null)):(G("table:column_sorting_header_click",{column:a.id,order:"DESC"}),C({column:a.id,order:"DESC"})))},children:e.isPlaceholder?null:(0,s.jsxs)("div",{className:"flex select-none items-center",children:[(0,s.jsx)("span",{className:"truncate",children:(0,y.Kv)(e.column.columnDef.header,e.getContext())}),a.headerTooltip&&(0,s.jsx)(r.A,{description:a.headerTooltip.description,href:a.headerTooltip.href}),(null==N?void 0:N.column)===a.id&&(t=N)?"ASC"===t.order?(0,s.jsx)("span",{className:"ml-1",children:"▲"}):(0,s.jsx)("span",{className:"ml-1",title:"Sort by this column",children:"▼"}):null,(0,s.jsx)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation()},onDoubleClick:()=>e.column.resetSize(),onMouseDown:e.getResizeHandler(),onTouchStart:e.getResizeHandler(),className:(0,b.cn)("absolute right-0 top-0 h-full w-1.5 cursor-col-resize touch-none select-none bg-secondary opacity-0 group-hover:opacity-100",e.column.getIsResizing()&&"bg-primary-accent opacity-100")})]})},e.id):null})},e.id))}),J.getState().columnSizingInfo.isResizingColumn||F?(0,s.jsx)(_,{table:J,rowheighttw:U,rowHeight:P,columns:a,data:l,help:j,noResultsMessage:w,onRowClick:Q?W:void 0,getRowClassName:H,tableSnapshot:{columnVisibility:c,columnOrder:m,rowSelection:i}}):(0,s.jsx)(T,{table:J,rowheighttw:U,rowHeight:P,columns:a,data:l,help:j,noResultsMessage:w,onRowClick:Q?W:void 0,getRowClassName:H})]})})}),B||void 0===o?null:(0,s.jsx)("div",{className:(0,b.cn)("sticky bottom-0 z-10 flex w-full justify-end border-t bg-background py-2 pr-2 font-medium"),children:(0,s.jsx)(f,{table:J,isLoading:l.isLoading,paginationOptions:o.options,hideTotalCount:o.hideTotalCount,canJumpPages:o.canJumpPages})})]})}function R(e){let{row:t,onRowClick:a,getRowClassName:n,children:r}=e,l=(0,N.useRouter)().query.peek;return(0,s.jsx)(x.Hj,{"data-row-index":t.index,onClick:e=>null==a?void 0:a(t.original,e),onKeyDown:e=>{"Enter"===e.key&&(null==a||a(t.original))},className:(0,b.cn)("hover:bg-accent",a?"cursor-pointer":"cursor-default",l&&l===t.id?"bg-accent":void 0,null==n?void 0:n(t.original)),"data-sentry-element":"TableRow","data-sentry-component":"TableRowComponent","data-sentry-source-file":"data-table.tsx",children:r})}
1function T(e){let{table:t,rowheighttw:a,rowHeight:n,columns:l,data:o,help:i,noResultsMessage:d,onRowClick:c,getRowClassName:u}=e;return(0,s.jsx)(x.BF,{"data-sentry-element":"TableBody","data-sentry-component":"TableBodyComponent","data-sentry-source-file":"data-table.tsx",children:o.isLoading||!o.data?(0,s.jsx)(x.Hj,{className:"h-svh",children:(0,s.jsx)(x.nA,{colSpan:l.length,className:"content-start border-b text-center",children:"Loading..."})}):t.getRowModel().rows.length?t.getRowModel().rows.map(e=>(0,s.jsx)(R,{row:e,onRowClick:c,getRowClassName:u,children:e.getVisibleCells().map(e=>{let t="string"==typeof e.getValue(),r=(null!=n?n:"s")==="s";return(0,s.jsx)(x.nA,{className:(0,b.cn)("overflow-hidden border-b px-1 text-xs first:pl-2",r&&"whitespace-nowrap",S(e.column)),style:{width:"calc(var(--col-".concat(e.column.id,"-size) * 1px)"),...A(e.column)},children:(0,s.jsx)("div",{className:(0,b.cn)("flex",r?"items-center":"items-start",!r&&"py-1",a),children:t&&r?(0,s.jsx)("div",{className:"min-w-0 truncate leading-none",children:(0,y.Kv)(e.column.columnDef.cell,e.getContext())}):t&&!r?(0,s.jsx)("div",{className:"flex h-full min-h-0 w-full min-w-0 flex-col overflow-hidden text-ellipsis",children:(0,y.Kv)(e.column.columnDef.cell,e.getContext())}):(0,y.Kv)(e.column.columnDef.cell,e.getContext())})},e.id)})},e.id)):(0,s.jsx)(x.Hj,{className:"hover:bg-transparent",children:(0,s.jsx)(x.nA,{colSpan:l.length,className:"h-24",children:(0,s.jsx)("div",{className:"pointer-events-none absolute left-[50%] flex -translate-x-1/2 -translate-y-1/2 items-center justify-center text-center",children:null!=d?d:(0,s.jsxs)(s.Fragment,{children:["No results."," ",i&&(0,s.jsx)(r.A,{description:i.description,href:i.href})]})})})})})}let _=n.memo(T,(e,t)=>e.tableSnapshot&&t.tableSnapshot?(e.data.isLoading||e.data.isError?void 0:e.data.data)===(t.data.isLoading||t.data.isError?void 0:t.data.data)&&e.data.isLoading===t.data.isLoading&&e.rowheighttw===t.rowheighttw&&e.rowHeight===t.rowHeight&&!!w()(e.tableSnapshot.rowSelection,t.tableSnapshot.rowSelection)&&!!w()(e.tableSnapshot.columnVisibility,t.tableSnapshot.columnVisibility)&&!!w()(e.tableSnapshot.columnOrder,t.tableSnapshot.columnOrder)&&!0:!e.tableSnapshot&&!t.tableSnapshot)},18328:(e,t,a)=>{"use strict";a.d(t,{A:()=>n});var s=a(39156);function n(){return(0,s.useRouter)().query.projectId}},19561:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("rows-2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 12h18",key:"1i2n21"}]])},22312:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]])},25525:(e,t,a)=>{"use strict";a.d(t,{A0:()=>o,BF:()=>i,Hj:()=>d,XI:()=>l,nA:()=>u,nd:()=>c});var s=a(73154),n=a(96810),r=a(81509);let l=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("table",{ref:t,className:(0,r.cn)("w-full table-fixed caption-bottom border-separate border-spacing-0 space-y-4 overflow-auto text-sm",a),...n})});l.displayName="Table";let o=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("thead",{ref:t,className:(0,r.cn)("[&_tr]:border-b",a),...n})});o.displayName="TableHeader";let i=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("tbody",{ref:t,className:(0,r.cn)("text-xs [&_tr:last-child]:border-0",a),...n})});i.displayName="TableBody",n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("tfoot",{ref:t,className:(0,r.cn)("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",a),...n})}).displayName="TableFooter";let d=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("tr",{ref:t,className:(0,r.cn)("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...n})});d.displayName="TableRow";let c=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("th",{ref:t,className:(0,r.cn)("relative h-10 border-b bg-background px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...n})});c.displayName="TableHead";let u=n.forwardRef((e,t)=>
1{let{className:a,...n}=e;return(0,s.jsx)("td",{ref:t,className:(0,r.cn)("h-full px-2 py-0 align-middle [&:has([role=checkbox])]:pr-0","border-b [:last-child_>_&]:border-b-0",a),...n})});u.displayName="TableCell",n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)("caption",{ref:t,className:(0,r.cn)("mt-4 text-sm text-muted-foreground",a),...n})}).displayName="TableCaption"},26159:(e,t,a)=>{"use strict";a.d(t,{A:()=>l});var s=a(73154),n=a(49757),r=a(81509);let l=e=>{let{children:t,headerProps:a,scrollable:l=!1,withPadding:o=!1}=e;return(0,s.jsxs)("div",{className:(0,r.cn)("flex flex-col",l?"relative flex min-h-screen-with-banner flex-1":"h-full"),id:"page","data-sentry-component":"Page","data-sentry-source-file":"page.tsx",children:[(0,s.jsx)("header",{className:"sticky top-0 z-50 w-full",children:(0,s.jsx)(n.A,{...a,container:!1,className:"top-0","data-sentry-element":"PageHeader","data-sentry-source-file":"page.tsx"})}),(0,s.jsx)("main",{className:(0,r.cn)("flex flex-1 flex-col",l?"relative flex min-h-screen-with-banner":"h-full overflow-hidden",o&&"p-3"),children:t})]})}},26680:(e,t,a)=>{"use strict";a.d(t,{A:()=>o});var s=a(73154),n=a(81509),r=a(68389),l=a.n(r);function o(e){let{path:t,value:a,icon:r,className:o,onClick:i,title:d}=e;return(0,s.jsx)(l(),{className:(0,n.cn)("inline-block max-w-full text-xs font-semibold text-accent-dark-blue hover:text-primary-accent/60",o,r&&"max-h-4"),href:t,title:d||a,prefetch:!1,onClick:e=>{i&&(e.preventDefault(),i(e))},"data-sentry-element":"Link","data-sentry-component":"TableLink","data-sentry-source-file":"table-link.tsx",children:(0,s.jsx)("span",{className:"inline-block max-w-full overflow-hidden text-ellipsis text-nowrap",children:r?(0,s.jsx)("span",{className:"inline-block",children:r}):a})})}},30993:(e,t,a)=>{"use strict";a.d(t,{M:()=>s,p:()=>n});let s={DASHBOARDS:"dashboards",WIDGETS:"widgets"},n=e=>[{value:s.DASHBOARDS,label:"Dashboards",href:"/project/".concat(e,"/dashboards")},{value:s.WIDGETS,label:"Widgets",href:"/project/".concat(e,"/widgets")}]},38638:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("rows-3",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 9H3",key:"1338ky"}],["path",{d:"M21 15H3",key:"9uk58r"}]])},48038:(e,t,a)=>{"use strict";a.d(t,{UC:()=>$,ZL:()=>K,bL:()=>G,bm:()=>q,l9:()=>V});var s=a(96810),n=a(29950),r=a(92905),l=a(80111),o=a(29887),i=a(23048),d=a(90451),c=a(12566),u=a(60385),h=a(23851),m=a(7737),p=a(99297),f=a(76657),g=a(11810),x=a(89838),b=a(28818),y=a(73154),v="Popover",[j,w]=(0,l.A)(v,[u.Bk]),N=(0,u.Bk)(),[D,C]=j(v),k=e=>{let{__scopePopover:t,children:a,open:n,defaultOpen:r,onOpenChange:l,modal:o=!1}=e,i=N(t),d=s.useRef(null),[h,m]=s.useState(!1),[p,f]=(0,g.i)({prop:n,defaultProp:r??!1,onChange:l,caller:v});return(0,y.jsx)(u.bL,{...i,children:(0,y.jsx)(D,{scope:t,contentId:(0,c.B)(),triggerRef:d,open:p,onOpenChange:f,onOpenToggle:s.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:h,onCustomAnchorAdd:s.useCallback(()=>m(!0),[]),onCustomAnchorRemove:s.useCallback(()=>m(!1),[]),modal:o,children:a})})};k.displayName=v;var A="PopoverAnchor";s.forwardRef((e,t)=>{let{__scopePopover:a,...n}=e,r=C(A,a),l=N(a),{onCustomAnchorAdd:o,onCustomAnchorRemove:i}=r;return s.useEffect(()=>(o(),()=>i()),[o,i]),(0,y.jsx)(u.Mz,{...l,...n,ref:t})}).displayName=A;var S="PopoverTrigger",P=s.forwardRef((e,t)=>{let{__scopePopover:a,...s}=e,l=C(S,a),o=N(a),i=(0,r.s)(t,l.triggerRef),d=(0,y.jsx)(p.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":l.open,"aria-controls":l.contentId,"data-state":U(l.open),...s,ref:i,onClick:(0,n.mK)(e.onClick,l.onOpenToggle)});return l.hasCustomAnchor?d:(0,y.jsx)(u.Mz,{asChild:!0,...o,children:d})});P.displayName=S;var R="PopoverPortal",[T,_]=j(R,{forceMount:void 0}),M=e=>{let{__scopePopover:t,forceMount:a,children:s,container:n}=e,r=C(R,t);return(0,y.jsx)(T,{scope:t,forceMount:a,children:(0,y.jsx)(m.C,{present:a||r.open,children:(0,y.jsx)(h.Z,{asChild:!0,container:n,children:s})})})};M.displayName=R;var E="PopoverContent",z=s.forwardRef((e,t)=>{let a=_(E,e.__scopePopover),{forceMount:s=a.forceMount,...n}=e,r=C(E,e.__scopePopover);return(0,y.jsx)(m.C,{present:s||r.open,children:r.modal?(0,y.jsx)(B,{...n,ref:t}):(0,y.jsx)(I,{...n,ref:t})})});z.displayName=E;var F=(0,f.TL)("PopoverContent.RemoveScroll"),B=s.forwardRef((e,t)=>
1{let a=C(E,e.__scopePopover),l=s.useRef(null),o=(0,r.s)(t,l),i=s.useRef(!1);return s.useEffect(()=>{let e=l.current;if(e)return(0,x.Eq)(e)},[]),(0,y.jsx)(b.A,{as:F,allowPinchZoom:!0,children:(0,y.jsx)(H,{...e,ref:o,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,n.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),i.current||a.triggerRef.current?.focus()}),onPointerDownOutside:(0,n.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,a=0===t.button&&!0===t.ctrlKey;i.current=2===t.button||a},{checkForDefaultPrevented:!1}),onFocusOutside:(0,n.mK)(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})}),I=s.forwardRef((e,t)=>{let a=C(E,e.__scopePopover),n=s.useRef(!1),r=s.useRef(!1);return(0,y.jsx)(H,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(n.current||a.triggerRef.current?.focus(),t.preventDefault()),n.current=!1,r.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(n.current=!0,"pointerdown"===t.detail.originalEvent.type&&(r.current=!0));let s=t.target;a.triggerRef.current?.contains(s)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&r.current&&t.preventDefault()}})}),H=s.forwardRef((e,t)=>{let{__scopePopover:a,trapFocus:s,onOpenAutoFocus:n,onCloseAutoFocus:r,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:m,onInteractOutside:p,...f}=e,g=C(E,a),x=N(a);return(0,i.Oh)(),(0,y.jsx)(d.n,{asChild:!0,loop:!0,trapped:s,onMountAutoFocus:n,onUnmountAutoFocus:r,children:(0,y.jsx)(o.qW,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:p,onEscapeKeyDown:c,onPointerDownOutside:h,onFocusOutside:m,onDismiss:()=>g.onOpenChange(!1),children:(0,y.jsx)(u.UC,{"data-state":U(g.open),role:"dialog",id:g.contentId,...x,...f,ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),L="PopoverClose",O=s.forwardRef((e,t)=>{let{__scopePopover:a,...s}=e,r=C(L,a);return(0,y.jsx)(p.sG.button,{type:"button",...s,ref:t,onClick:(0,n.mK)(e.onClick,()=>r.onOpenChange(!1))})});function U(e){return e?"open":"closed"}O.displayName=L,s.forwardRef((e,t)=>{let{__scopePopover:a,...s}=e,n=N(a);return(0,y.jsx)(u.i3,{...n,...s,ref:t})}).displayName="PopoverArrow";var G=k,V=P,K=M,$=z,q=O},48201:(e,t,a)=>{"use strict";a.d(t,{k:()=>l,q:()=>o});var s=a(73154),n=a(96810);let r=(0,n.createContext)(void 0);function l(e){let{children:t}
1=e,[a,l]=(0,n.useState)({filters:[],sorting:null,pagination:{pageIndex:0,pageSize:50},search:{query:null,type:["id"]}}),o=(0,n.useMemo)(()=>({tableState:a,setTableState:l}),[a]);return(0,s.jsx)(r.Provider,{value:o,"data-sentry-element":"PeekTableStateContext.Provider","data-sentry-component":"PeekTableStateProvider","data-sentry-source-file":"PeekTableStateContext.tsx",children:t})}function o(){return(0,n.useContext)(r)}},49319:(e,t,a)=>{"use strict";a.d(t,{F2:()=>w,_V:()=>j,cw:()=>v,et:()=>x,sM:()=>y,z6:()=>b});var s=a(73154),n=a(96810),r=a(39156),l=a(97638),o=a(86843),i=a(55247),d=a(72764),c=a(18799),u=a(93367),h=a(92125),m=a(90270),p=a(70883),f=a(62583),g=a(41659);function x(e){let{variant:t,itemId:a,projectId:u,isTableAction:f=!1,scope:g,invalidateFunc:x,redirectUrl:b,deleteConfirmation:y,icon:v=!1,enabled:j=!0,captureDeleteOpen:w,captureDeleteSuccess:N,entityToDeleteName:D,executeDeleteMutation:C,isDeleteMutationLoading:k,customDeletePrompt:A}=e,[S,P]=(0,n.useState)(!1),R=(0,r.useRouter)(),T=(0,h.B)(),[_,M]=(0,n.useState)(""),E=(0,c.lp)({projectId:u,scope:g}),z=(0,n.useMemo)(()=>()=>{P(!0),N(T,f),!f&&b?R.push(b):x()},[f,b,x,R,N,T]);return(0,s.jsxs)(l.AM,{"data-sentry-element":"Popover","data-sentry-component":"DeleteButton","data-sentry-source-file":"deleteButton.tsx",children:[(0,s.jsx)(l.Wv,{asChild:!0,"data-sentry-element":"PopoverTrigger","data-sentry-source-file":"deleteButton.tsx",children:(0,s.jsx)(o.$,{variant:null!=t?t:v?"outline":"ghost",size:v?"icon":"default",disabled:!E||!j,onClick:e=>{e.stopPropagation(),w(T,f)},"data-sentry-element":"Button","data-sentry-source-file":"deleteButton.tsx",children:v?(0,s.jsx)(i.A,{className:"h-4 w-4"}):(0,s.jsxs)(s.Fragment,{children:[E?(0,s.jsx)(i.A,{className:"mr-2 h-4 w-4"}):(0,s.jsx)(d.A,{className:"mr-2 h-4 w-4"}),"Delete"]})})}),(0,s.jsxs)(l.hl,{onClick:e=>e.stopPropagation(),"data-sentry-element":"PopoverContent","data-sentry-source-file":"deleteButton.tsx",children:[(0,s.jsx)("h2",{className:"text-md mb-3 font-semibold",children:"Please confirm"}),(0,s.jsx)("p",{className:"mb-3 max-w-72 text-sm",children:null!=A?A:"This action cannot be undone. It removes all the data associated with\n            this ".concat(D,". If this is the project default, it will be deleted for all users.")}),y&&(0,s.jsxs)("div",{className:"mb-4 grid w-full gap-1.5",children:[(0,s.jsxs)(p.J,{htmlFor:"delete-confirmation",children:['Type "',y,'" to confirm']}),(0,s.jsx)(m.p,{id:"delete-confirmation",value:_,onChange:e=>M(e.target.value)})]}),(0,s.jsx)("div",{className:"flex justify-end space-x-4",children:(0,s.jsxs)(o.$,{type:"button",variant:"destructive",loading:k||S,onClick:()=>{if(y&&_!==y)return void alert("Please type the correct confirmation");C(z)},"data-sentry-element":"Button","data-sentry-source-file":"deleteButton.tsx",children:["Delete ",D]})})]})]},null!=a?a:"delete-action")}function b(e){let t=u.FH.useUtils(),{itemId:a,projectId:n,scope:r="traces:delete",invalidateFunc:l=()=>void t.traces.all.invalidate()}=e,o=u.FH.traces.deleteMany.useMutation(),i=async e=>{try{await o.mutateAsync({traceIds:[a],projectId:n})}catch(e){return Promise.reject(e)}(0,f.G)({title:"Trace deleted",description:"Selected trace will be deleted. Traces are removed asynchronously and may continue to be visible for up to 24 hours."}),e()},d=(0,g.Jz)("trace-deletion");return(0,s.jsx)(x,{...e,scope:r,invalidateFunc:l,captureDeleteOpen:(e,t)=>e("trace:delete_form_open",{source:t?"table-single-row":"trace detail"}),captureDeleteSuccess:(e,t)=>e("trace:delete",{source:t?"table-single-row":"trace"}),entityToDeleteName:"trace",executeDeleteMutation:i,isDeleteMutationLoading:o.isPending,enabled:d,"data-sentry-element":"DeleteButton","data-sentry-component":"DeleteTraceButton","data-sentry-source-file":"deleteButton.tsx"})}function y(e){let t=u.FH.useUtils(),{itemId:a,projectId:n,scope:r="datasets:CUD",invali
1dateFunc:l=()=>void t.datasets.invalidate()}=e,o=u.FH.datasets.deleteDataset.useMutation(),i=async e=>{try{await o.mutateAsync({datasetId:a,projectId:n})}catch(e){return Promise.reject(e)}e()};return(0,s.jsx)(x,{...e,scope:r,invalidateFunc:l,captureDeleteOpen:(e,t)=>e("datasets:delete_form_open",{source:t?"table-single-row":"dataset"}),captureDeleteSuccess:(e,t)=>e("datasets:delete_dataset_button_click",{source:t?"table-single-row":"dataset"}),entityToDeleteName:"dataset",executeDeleteMutation:i,isDeleteMutationLoading:o.isPending,"data-sentry-element":"DeleteButton","data-sentry-component":"DeleteDatasetButton","data-sentry-source-file":"deleteButton.tsx"})}function v(e){let t=u.FH.useUtils(),{itemId:a,projectId:n,scope:r="dashboards:CUD",invalidateFunc:l=()=>void t.dashboard.invalidate()}=e,o=u.FH.dashboard.delete.useMutation(),i=async e=>{try{await o.mutateAsync({dashboardId:a,projectId:n})}catch(e){return Promise.reject(e)}(0,f.G)({title:"Dashboard deleted",description:"The dashboard has been deleted successfully"}),e()};return(0,s.jsx)(x,{...e,scope:r,invalidateFunc:l,captureDeleteOpen:e=>e("dashboard:delete_dashboard_form_open"),captureDeleteSuccess:e=>e("dashboard:delete_dashboard_button_click"),entityToDeleteName:"dashboard",executeDeleteMutation:i,isDeleteMutationLoading:o.isPending,"data-sentry-element":"DeleteButton","data-sentry-component":"DeleteDashboardButton","data-sentry-source-file":"deleteButton.tsx"})}function j(e){let t=u.FH.useUtils(),{itemId:a,projectId:n,scope:r="evalJob:CUD",invalidateFunc:l=()=>void t.evals.invalidate()}=e,o=u.FH.evals.deleteEvalJob.useMutation({onSuccess:()=>{(0,f.G)({title:"Running evaluator deleted",description:"The running evaluator has been deleted successfully"}),t.evals.invalidate()}}),i=async e=>{try{await o.mutateAsync({evalConfigId:a,projectId:n}),e()}catch(e){return Promise.reject(e)}};return(0,s.jsx)(x,{...e,scope:r,invalidateFunc:l,captureDeleteOpen:(e,t)=>e("eval_config:delete_form_open",{source:t?"table-single-row":"eval config detail"}),captureDeleteSuccess:(e,t)=>e("eval_config:delete_evaluator_button_click",{source:t?"table-single-row":"eval config detail"}),customDeletePrompt:"This action cannot be undone and removes all logs associated with this running evaluator. Scores produced by this evaluator will not be deleted.",entityToDeleteName:"running evaluator",executeDeleteMutation:i,isDeleteMutationLoading:o.isPending,"data-sentry-element":"DeleteButton","data-sentry-component":"DeleteEvalConfigButton","data-sentry-source-file":"deleteButton.tsx"})}function w(e){let t=u.FH.useUtils(),{projectId:a,scope:n="evalDefaultModel:CUD",invalidateFunc:r=()=>void t.defaultLlmModel.invalidate()}=e,{mutateAsync:l,isPending:o}=u.FH.defaultLlmModel.deleteDefaultModel.useMutation({onSuccess:()=>{(0,f.G)({title:"Default evaluation model deleted",description:"The default evaluation model has been deleted. Any running evaluations relying on the default model will be inactivated. Queued jobs will fail."}),t.defaultLlmModel.fetchDefaultModel.invalidate({projectId:a})}}),i=async e=>{try{await l({projectId:a})}catch(e){return Promise.reject(e)}e()};return(0,s.jsx)(x,{...e,variant:"outline",scope:n,invalidateFunc:r,captureDeleteOpen:(e,t)=>e("eval_config:delete_form_open",{source:t?"table-single-row":"evaluator"}),captureDeleteSuccess:(e,t)=>e("eval_config:delete_evaluator_button_click",{source:t?"table-single-row":"evaluator"}),entityToDeleteName:"default evaluation model",customDeletePrompt:"Deleting this model might cause running evaluators to fail. Please make sure you have no running evaluators relying on this model.",deleteConfirmation:"delete",executeDeleteMutation:i,isDeleteMutationLoading:o,"data-sentry-element":"DeleteButton","data-sentry-component":"DeleteEvaluationModelButton","data-sentry-source-file":"deleteButton.tsx"})}},55247:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("trash",[["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]])},60684:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/project/[projectId]/dashboards",function(){return a(86063)}])},61653:(e,t,a)=>{"use strict";a.d(t,{T:()=>l});var s=a(73154),n=a(96810),r=a(81509);let l=n.forwardRef((e,t)=>
1{let{className:a,...n}=e;return(0,s.jsx)("textarea",{className:(0,r.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:bg-muted/50 disabled:opacity-50",a),ref:t,...n})});l.displayName="Textarea"},62583:(e,t,a)=>{"use strict";a.d(t,{G:()=>d});var s=a(73154),n=a(54433),r=a(68048),l=a(43035),o=a(41641);let i=e=>{let{title:t,description:a,onDismiss:n,link:i}=e;return(0,s.jsxs)("div",{className:"flex justify-between","data-sentry-component":"SuccessNotification","data-sentry-source-file":"SuccessNotification.tsx",children:[(0,s.jsxs)("div",{className:"flex min-w-[300px] flex-1 flex-col gap-2",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(l.A,{size:20,className:"text-primary-foreground","data-sentry-element":"BadgeCheck","data-sentry-source-file":"SuccessNotification.tsx"}),(0,s.jsx)("div",{className:"m-0 text-sm font-medium leading-tight text-primary-foreground",children:t})]}),a&&(0,s.jsx)("div",{className:"text-sm leading-tight text-primary-foreground",children:a}),i&&(0,s.jsx)(r.r,{href:i.href,size:"sm",variant:"secondary",className:"self-start",children:i.text})]}),(0,s.jsx)("button",{className:"flex h-6 w-6 cursor-pointer items-start justify-end border-none bg-transparent p-0 text-primary-foreground transition-colors duration-200",onClick:n,"aria-label":"Close",children:(0,s.jsx)(o.A,{size:14,"data-sentry-element":"X","data-sentry-source-file":"SuccessNotification.tsx"})})]})},d=e=>{let{duration:t=5e3,...a}=e;n.oR.custom(e=>(0,s.jsx)(i,{...a,onDismiss:()=>n.oR.dismiss(e)}),{duration:t,style:{padding:"1rem",border:"1px solid hsl(var(--dark-green))",borderRadius:"0.5rem",backgroundColor:"hsl(var(--dark-green))"}})}},66798:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]])},68048:(e,t,a)=>{"use strict";a.d(t,{r:()=>f});var s=a(73154),n=a(96810),r=a(72764),l=a(36932),o=a(12407),i=a(86843),d=a(97898),c=a(45103),u=a(68389),h=a.n(u),m=a(92125);let p={limitReached:(e,t)=>"You have reached the limit (".concat(e,"/").concat(t,") for this resource at your current plan. Upgrade your plan to increase the limit."),noAccess:"You do not have access to this resource, please ask your admin to grant you access.",entitlement:"This feature is not available in your current plan."},f=n.forwardRef(function(e,t){let{loading:a=!1,hasAccess:n=!0,hasEntitlement:r=!0,limitValue:l,limit:o=!1,disabled:i=!1,children:u,icon:h,className:f,href:b,trackingEventName:y,trackingProps:v,...j}=e,w=(0,m.B)(),N="number"==typeof o&&void 0!==l&&l>=o,D=i||!n||!r||N,C=n?r?N&&"number"==typeof o&&void 0!==l?p.limitReached(l,o):null:p.entitlement:p.noAccess,k=(0,s.jsx)(x,{ref:t,icon:h,isDisabled:D,loading:a,hasAccess:n,hasEntitlement:r,hasReachedLimit:N,className:f,buttonProps:j,href:b,onLinkClick:()=>{y&&b&&g(b)&&w(y,null!=v?v:null)},children:u});return D&&C?(0,s.jsxs)(d.jc,{openDelay:200,children:[(0,s.jsx)(d.d0,{asChild:!0,children:(0,s.jsx)("span",{children:k})}),(0,s.jsx)(c.HP,{children:(0,s.jsx)(d.Et,{className:"w-80 text-sm",children:C})})]}):k}),g=e=>e.startsWith("http://")||e.startsWith("https://")||e.startsWith("//"),x=n.forwardRef(function(e,t){let{icon:a,isDisabled:n,loading:d,hasAccess:c,hasEntitlement:u,hasReachedLimit:m,className:p,buttonProps:f,children:x,href:b,onLinkClick:y}=e,v=(0,s.jsxs)(s.Fragment,{children:[c?u?m?(0,s.jsx)(o.A,{className:"mr-1 h-4 w-4"}):a?(0,s.jsx)("div",{className:"mr-1",children:a}):null:(0,s.jsx)(l.A,{className:"mr-1 h-4 w-4"}):(0,s.jsx)(r.A,{className:"mr-1 h-4 w-4"}),x]}),j=b&&!n,w=b&&g(b);return(0,s.jsx)(i.$,{ref:t,disabled:n,loading:d,className:p,...f,asChild:!!j||void 0,children:j?(0,s.jsx)(h(),{href:b,target:w?"_blank":void 0,rel:w?"noopener noreferrer":void 0,onClick:y,children:v}):v})})},69448:(e,t,a)=>{"use strict";a.d(t,{EK:()=>f,Fn:()=>p,Yk:()=>m});var s=a(73154),n=a(86843),r=a(88377),l=a(80539),o=a(92125),i=a(87067),d=a(38638),c=a(19561);let u=[{id:"s",label:"Small",icon:(0,s.jsx)(i.A,{})},{id:"m",label:"Medium",icon:(0,s.jsx)(d.A,{})},{id:"l",label:"Large",icon:(0,s.jsx)(c.A,{})}],h={s:"h-7",m:"h-24",l:"h-64"},m=(e,t)=>
1{if(e)return(null==t?void 0:t[e])||h[e]};function p(e,t){let[a,s,n]=(0,l.A)("".concat(e,"Height"),t);return[a,s,n]}let f=e=>{let{rowHeight:t,setRowHeight:a}=e,l=(0,o.B)();return(0,s.jsxs)(r.rI,{"data-sentry-element":"DropdownMenu","data-sentry-component":"DataTableRowHeightSwitch","data-sentry-source-file":"data-table-row-height-switch.tsx",children:[(0,s.jsx)(r.ty,{asChild:!0,"data-sentry-element":"DropdownMenuTrigger","data-sentry-source-file":"data-table-row-height-switch.tsx",children:(0,s.jsx)(n.$,{variant:"outline",size:"icon",title:"Row height","data-sentry-element":"Button","data-sentry-source-file":"data-table-row-height-switch.tsx",children:(0,s.jsx)(d.A,{className:"h-4 w-4","data-sentry-element":"Rows3","data-sentry-source-file":"data-table-row-height-switch.tsx"})})}),(0,s.jsx)(r.dc,{"data-sentry-element":"DropdownMenuPortal","data-sentry-source-file":"data-table-row-height-switch.tsx",children:(0,s.jsxs)(r.SQ,{"data-sentry-element":"DropdownMenuContent","data-sentry-source-file":"data-table-row-height-switch.tsx",children:[(0,s.jsx)(r.lp,{"data-sentry-element":"DropdownMenuLabel","data-sentry-source-file":"data-table-row-height-switch.tsx",children:"Row height"}),(0,s.jsx)(r.mB,{"data-sentry-element":"DropdownMenuSeparator","data-sentry-source-file":"data-table-row-height-switch.tsx"}),u.map(e=>{let{id:n,label:o}=e;return(0,s.jsx)(r.hO,{checked:t===n,onClick:e=>{e.preventDefault(),l("table:row_height_switch_select",{rowHeight:n}),a(n)},children:o},n)})]})})]})}},72764:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]])},86053:(e,t,a)=>{"use strict";function s(e,t){if(e)return e instanceof Map?e.get(t):e[t]}function n(e){if(e)return e instanceof Map?e:new Map(Object.entries(e).map(e=>{let[t,a]=e;return[t,Number(a)]}))}function r(e,t){var a;let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return null!=(a=null==e?void 0:e[t])?a:s}a.d(t,{$P:()=>r,NO:()=>s,e:()=>n})},86063:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>H});var s=a(73154),n=a(39156),r=a(26159),l=a(96810),o=a(18328),i=a(7543),d=a(6300),c=a(93367),u=a(86053),h=a(17663),m=a(60678),p=a(26680),f=a(11058),g=a(76649),x=a(86843),b=a(18799),y=a(66798),v=a(89822),j=a(92125),w=a(8163),N=a(62583),D=a(88997),C=a(88377),k=a(49319),A=a(14183),S=a(90270),P=a(70883),R=a(61653);function T(e){let{open:t,onOpenChange:a,projectId:n,dashboardId:r,initialName:o,initialDescription:i}=e,[d,u]=(0,l.useState)(o),[h,m]=(0,l.useState)(i),p=c.FH.useUtils(),f=c.FH.dashboard.updateDashboardMetadata.useMutation({onSuccess:()=>{p.dashboard.invalidate(),(0,N.G)({title:"Dashboard updated",description:"The dashboard has been updated successfully"}),a(!1)},onError:e=>{(0,w.N)("Failed to update dashboard",e.message)}});return(0,s.jsx)(A.lG,{open:t,onOpenChange:a,"data-sentry-element":"Dialog","data-sentry-component":"EditDashboardDialog","data-sentry-source-file":"EditDashboardDialog.tsx",children:(0,s.jsxs)(A.Cf,{className:"sm:max-w-[500px]","data-sentry-element":"DialogContent","data-sentry-source-file":"EditDashboardDialog.tsx",children:[(0,s.jsx)(A.c7,{"data-sentry-element":"DialogHeader","data-sentry-source-file":"EditDashboardDialog.tsx",children:(0,s.jsx)(A.L3,{"data-sentry-element":"DialogTitle","data-sentry-source-file":"EditDashboardDialog.tsx",children:"Edit Dashboard"})}),(0,s.jsx)(A.R4,{"data-sentry-element":"DialogBody","data-sentry-source-file":"EditDashboardDialog.tsx",children:(0,s.jsxs)("div",{className:"grid gap-4 py-4",children:[(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsx)(P.J,{htmlFor:"name","data-sentry-element":"Label","data-sentry-source-file":"EditDashboardDialog.tsx",children:"Name"}),(0,s.jsx)(S.p,{id:"name",value:d,onChange:e=>u(e.target.value),placeholder:"Dashboard name","data-sentry-element":"Input","data-sentry-source-file":"EditDashboardDialog.tsx"})]}),(0,s.jsxs)("div",{className:"grid gap-2",children:[(0,s.jsx)(P.J,{htmlFor:"description","data-sentry-element":"Label","data-sentry-source-file":"EditDashboardDialog.tsx",children:"Description"}),(0,s.jsx)(R.T,{id:"description",value:h,onChange:e=>m(e.target.value),placeholder:"Dashboard description",rows:3,"data-sentry-element":"Textarea","data-sentry-source-file":"EditDashboardDialog.tsx"})]})]})}),(0,s.jsx)(A.Es,{"data-sentry-element":"DialogFooter","data-sentry-source-file":"EditDashboardDialog.tsx",children:(0,s.jsxs)("div",{className:"flex gap-2",children:[(0,s.jsx)(x.$,{onClick:()=>a(!1),variant:"outline",type:"button","data-sentry-element":"Button","data-sentry-source-file":"EditDashboardDialog.tsx",children:"Cancel"}),(0,s.jsx)(x.$,{onClick:()=>
1{if(!d.trim())return void(0,w.N)("Validation error","Dashboard name is required");f.mutate({projectId:n,dashboardId:r,name:d.trim(),description:h.trim()})},type:"button",loading:f.isPending,"data-sentry-element":"Button","data-sentry-source-file":"EditDashboardDialog.tsx",children:"Save Changes"})]})})]})})}var _=a(30572);function M(e){let{dashboardId:t,projectId:a}=e,n=c.FH.useUtils(),r=(0,b.lp)({projectId:a,scope:"dashboards:CUD"}),l=(0,j.B)(),o=c.FH.dashboard.cloneDashboard.useMutation({onSuccess:()=>{n.dashboard.invalidate(),l("dashboard:clone_dashboard"),(0,N.G)({title:"Dashboard cloned",description:"The dashboard has been cloned successfully"})},onError:e=>{(0,w.N)("Failed to clone dashboard",e.message)}});return(0,s.jsxs)(x.$,{variant:"ghost",size:"default",disabled:!r,onClick:()=>{if(!a)return void console.error("Project ID is missing");o.mutateAsync({projectId:a,dashboardId:t})},"data-sentry-element":"Button","data-sentry-component":"CloneDashboardButton","data-sentry-source-file":"DashboardTable.tsx",children:[(0,s.jsx)(y.A,{className:"mr-2 h-4 w-4","data-sentry-element":"Copy","data-sentry-source-file":"DashboardTable.tsx"}),"Clone"]})}function E(e){let{dashboardId:t,projectId:a,dashboardName:n,dashboardDescription:r}=e,[o,i]=(0,l.useState)(!1),d=(0,b.lp)({projectId:a,scope:"dashboards:CUD"});return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(x.$,{variant:"ghost",size:"default",disabled:!d,onClick:()=>i(!0),"data-sentry-element":"Button","data-sentry-source-file":"DashboardTable.tsx",children:[(0,s.jsx)(v.A,{className:"mr-2 h-4 w-4","data-sentry-element":"Edit","data-sentry-source-file":"DashboardTable.tsx"}),"Edit"]}),(0,s.jsx)(T,{open:o,onOpenChange:i,projectId:a,dashboardId:t,initialName:n,initialDescription:r,"data-sentry-element":"EditDashboardDialog","data-sentry-source-file":"DashboardTable.tsx"})]})}function z(){var e,t;let a=(0,o.A)(),{setDetailPageList:r}=(0,g.h)(),b=(0,n.useRouter)(),[y,v]=(0,i.Q)({column:"updatedAt",order:"DESC"}),[j,w]=(0,d.useQueryParams)({pageIndex:(0,d.withDefault)(d.NumberParam,0),pageSize:(0,d.withDefault)(d.NumberParam,50)}),N=c.FH.dashboard.allDashboards.useQuery({page:j.pageIndex,limit:j.pageSize,projectId:a,orderBy:y},{enabled:!!a,trpc:{context:{skipBatch:!0}}});(0,l.useEffect)(()=>{if(N.isSuccess){var e;r("dashboards",null==(e=N.data)?void 0:e.dashboards.map(e=>({id:e.id})))}},[N.isSuccess,N.data]);let A=(0,m.FB)(),S=[A.accessor("name",{header:"Name",id:"name",enableSorting:!0,size:200,cell:e=>{let t=e.getValue();return t?(0,s.jsx)(p.A,{path:"/project/".concat(a,"/dashboards/").concat(encodeURIComponent(e.row.original.id)),value:t}):void 0}}),A.accessor("description",{header:"Description",id:"description",size:300,cell:e=>e.getValue()}),A.display({id:"ownerTag",header:"Owner",size:80,cell:e=>"LANGFUSE"===e.row.original.owner?(0,s.jsxs)("span",{className:"flex gap-1 px-2 py-0.5 text-xs",children:[(0,s.jsx)("span",{role:"img","aria-label":"Langfuse",children:"\uD83E\uDEA2"}),"Langfuse"]}):(0,s.jsxs)("span",{className:"flex gap-1 px-2 py-0.5 text-xs",children:[(0,s.jsx)(_.A,{className:"h-3 w-3"})," Project"]})}),A.accessor("createdAt",{header:"Created At",id:"createdAt",enableSorting:!0,size:150,cell:e=>{let t=e.getValue();return(0,s.jsx)(f.t,{date:t})}}),A.accessor("updatedAt",{header:"Updated At",id:"updatedAt",enableSorting:!0,size:150,cell:e=>{let t=e.getValue();return(0,s.jsx)(f.t,{date:t})}}),A.display({id:"actions",header:"Actions",size:70,cell:e=>{let t=e.row.original.id,n=e.row.original.name,r=e.row.original.description,l=e.row.original.owner;return(0,s.jsx)("div",{onClick:e=>e.stopPropagation(),children:(0,s.jsxs)(C.rI,{children:[(0,s.jsx)(C.ty,{asChild:!0,children:(0,s.jsx)(x.$,{variant:"ghost",children:(0,s.jsx)(D.A,{className:"h-4 w-4"})})}),(0,s.jsxs)(C.SQ,{className:"flex flex-col [&>*]:w-full [&>*]:justify-start",children:["PROJECT"===l&&(0,s.jsx)(C._2,{asChild:!0,children:(0,s.jsx)(E,{dashboardId:t,projectId:a,dashboardName:n,dashboardDescription:r})}),(0,s.jsx)(C._2,{asChild:!0,children:(0,s.jsx)(M,{dashboardId:t,projectId:a})}),"PROJECT"===l&&(0,s.jsx)(C._2,{asChild:!0,children:(0,s.jsx)(k.cw,{itemId:t,projectId:a,isTableAction:!0}
1)})]})]})})}})];return(0,s.jsx)(h.b,{tableName:"dashboards",columns:S,data:N.isPending?{isLoading:!0,isError:!1}:N.isError?{isLoading:!1,isError:!0,error:N.error.message}:{isLoading:!1,isError:!1,data:(0,u.$P)(N.data,"dashboards",[])},orderBy:y,setOrderBy:v,pagination:{totalCount:null!=(t=null==(e=N.data)?void 0:e.totalCount)?t:null,onChange:w,state:j},onRowClick:e=>{b.push("/project/".concat(a,"/dashboards/").concat(encodeURIComponent(e.id)))},"data-sentry-element":"DataTable","data-sentry-component":"DashboardTable","data-sentry-source-file":"DashboardTable.tsx"})}var F=a(68048),B=a(65295),I=a(30993);function H(){let{projectId:e}=(0,n.useRouter)().query,t=(0,j.B)(),a=(0,b.lp)({projectId:e,scope:"dashboards:CUD"});return(0,s.jsx)(r.A,{headerProps:{title:"Dashboards",help:{description:"Manage and create dashboards for your project.",href:"https://langfuse.com/docs/metrics/features/custom-dashboards"},tabsProps:{tabs:(0,I.p)(e),activeTab:I.M.DASHBOARDS},actionButtonsRight:(0,s.jsx)(F.r,{icon:(0,s.jsx)(B.A,{className:"h-4 w-4","aria-hidden":"true"}),hasAccess:a,href:"/project/".concat(e,"/dashboards/new"),variant:"default",onClick:()=>{t("dashboard:new_dashboard_form_open")},children:"New dashboard"})},"data-sentry-element":"Page","data-sentry-component":"Dashboards","data-sentry-source-file":"index.tsx",children:(0,s.jsx)(z,{"data-sentry-element":"DashboardTable","data-sentry-source-file":"index.tsx"})})}},87067:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("rows-4",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M21 7.5H3",key:"1hm9pq"}],["path",{d:"M21 12H3",key:"2avoz0"}],["path",{d:"M21 16.5H3",key:"n7jzkj"}]])},88997:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("ellipsis-vertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]])},89822:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("square-pen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]])},93323:(e,t,a)=>{"use strict";a.d(t,{TR:()=>x,bq:()=>m,eb:()=>b,gC:()=>g,l6:()=>c,mi:()=>y,s3:()=>u,yv:()=>h});var s=a(73154),n=a(96810),r=a(39688),l=a(21),o=a(66428),i=a(92273),d=a(81509);let c=r.bL,u=r.YJ,h=r.WT,m=n.forwardRef((e,t)=>{let{className:a,children:n,...o}=e;return(0,s.jsxs)(r.l9,{ref:t,className:(0,d.cn)("flex h-8 w-full items-center justify-between gap-1 rounded-md border border-input bg-background px-3 py-2 text-sm r
1ing-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:bg-muted/50 disabled:opacity-50 [&>span]:line-clamp-1",a),...o,children:[n,o.hideDownIcon?null:(0,s.jsx)(r.In,{asChild:!0,children:(0,s.jsx)(l.A,{className:"h-4 w-4 opacity-50"})})]})});m.displayName=r.l9.displayName;let p=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.PP,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,s.jsx)(o.A,{className:"h-4 w-4"})})});p.displayName=r.PP.displayName;let f=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.wn,{ref:t,className:(0,d.cn)("flex cursor-default items-center justify-center py-1",a),...n,children:(0,s.jsx)(l.A,{className:"h-4 w-4"})})});f.displayName=r.wn.displayName;let g=n.forwardRef((e,t)=>{let{className:a,children:n,position:l="popper",...o}=e;return(0,s.jsx)(r.ZL,{children:(0,s.jsxs)(r.UC,{ref:t,className:(0,d.cn)("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===l&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:l,...o,children:[(0,s.jsx)(p,{}),(0,s.jsx)(r.LM,{className:(0,d.cn)("p-1","popper"===l&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:n}),(0,s.jsx)(f,{})]})})});g.displayName=r.UC.displayName;let x=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.JU,{ref:t,className:(0,d.cn)("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...n})});x.displayName=r.JU.displayName;let b=n.forwardRef((e,t)=>{let{className:a,children:n,...l}=e;return(0,s.jsxs)(r.q7,{ref:t,className:(0,d.cn)("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",a),...l,children:[(0,s.jsx)("span",{"data-checkmark":!0,className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:(0,s.jsx)(r.VF,{children:(0,s.jsx)(i.A,{className:"h-4 w-4"})})}),(0,s.jsx)(r.p4,{children:n})]})});b.displayName=r.q7.displayName;let y=n.forwardRef((e,t)=>{let{className:a,...n}=e;return(0,s.jsx)(r.wv,{ref:t,className:(0,d.cn)("-mx-1 my-1 h-px bg-muted",a),...n})});y.displayName=r.wv.displayName},95840:(e,t,a)=>{"use strict";a.d(t,{A:()=>s});let s=(0,a(22222).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])}},e=>{e.O(0,[9110,531,9825,6694,540,636,6593,8792],()=>e(e.s=60684)),_N_E=e.O()}]);

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.