The only tool you need to know what is happening and how to fix it.
Go alertingexception-trackerissue-trackinglogsmetricsmonitoringobservability-platformopen-telemetryotelsession-replaytelemetrytraces
import"./DsnmJJEf.js";import{p as de,c as I,f as l,d as a,a as ve,e as h,h as i,r as o,m as s,n as D,t as E,o as k,q as u,g as r,u as c}from"./BKFspo1J.js";import{i as ge}from"./COK9M2N0.js";import{e as me}from"./DpeZtIXD.js";import{c as _}from"./CWm9VMfX.js";import{p as O}from"./CARHnQ8P.js";import{B as F}from"./DY5VVhnr.js";import{a as fe,b as ue,c as _e,S as he}from"./XUo-32-X.js";import{C as Pe}from"./Dat-TToD.js";import{C as xe}from"./B8BHg_SX.js";var pe=h("<!> <!>",1),Se=h('<span class="sr-only">Go to previous page</span> <!>',1),we=h('<span class="sr-only">Go to next page</span> <!>',1),be=h('<div class="flex flex-wrap items-center justify-between gap-x-6 gap-y-2 px-2"><div class="text-sm whitespace-nowrap text-muted-foreground"> </div> <div class="flex flex-wrap items-center gap-x-6 gap-y-2"><div class="flex items-center space-x-2"><p class="text-sm font-medium whitespace-nowrap">Rows per page</p> <!></div> <div class="text-sm font-medium whitespace-nowrap"> </div> <div class="flex items-center space-x-2"><!> <!></div></div></div>');function Ne(H,e){de(e,!0);let B=O(e,"loading",3,!1),J=O(e,"pageSizeOptions",19,()=>[10,20,50,100]),K=O(e,"itemLabel",3,"item");const M=c(()=>[...new Set([...J(),e.pageSize])].sort((t,d)=>t-d).map(t=>({value:t.toString(),label:t.toString()})));function Q(){e.currentPage>1&&e.onPageChange(e.currentPage-1)}function T(){e.currentPage<e.totalPages&&e.onPageChange(e.currentPage+1)}function U(t){t&&e.onPageSizeChange(parseInt(t))}const W=c(()=>e.totalPages||1),X=c(()=>e.totalItems===1?"":"s");var G=I(),Y=l(G);{var Z=t=>{var d=be(),P=i(d),$=i(P);o(P);var L=s(P,2),x=i(L),ee=s(i(x),2);{let v=c(()=>e.pageSize.toString());_(ee,()=>he,(g,S)=>{S(g,{type:"single",get value(){return r(v)},onValueChange:U,children:(n,f)=>{var N=pe(),R=l(N);_(R,()=>fe,(w,b)=>{b(w,{class:"h-8 w-[70px]",children:(z,se)=>{D();var m=E();k(()=>u(m,e.pageSize)),a(z,m)},$$slots:{default:!0}})});var re=s(R,2);_(re,()=>ue,(w,b)=>{b(w,{side:"top",children:(z,se)=>{var m=I(),ne=l(m);me(ne,17,()=>r(M),C=>C.value,(C,y)=>{var V=I(),le=l(V);_(le,()=>_e,(ie,oe)=>{oe(ie,{get value(){return r(y).value},get label(){return r(y).label},children:(ce,ze)=>{D();var A=E();k(()=>u(A,r(y).label)),a(ce,A)},$$slots:{default:!0}})}),a(C,V)}),a(z,m)},$$slots:{default:!0}})}),a(n,N)},$$slots:{default:!0}})})}o(x);var p=s(x,2),te=i(p);o(p);var j=s(p,2),q=i(j);{let v=c(()=>e.currentPage<=1||B());F(q,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:Q,get disabled(){return r(v)},children:(g,S)=>{var n=Se(),f=s(l(n),2);Pe(f,{class:"h-4 w-4"}),a(g,n)},$$slots:{default:!0}})}var ae=s(q,2);{let v=c(()=>e.currentPage>=e.totalPages||B());F(ae,{variant:"outline",size:"sm",class:"h-8 w-8 p-0",onclick:T,get disabled(){return r(v)},children:(g,S)=>{var n=we(),f=s(l(n),2);xe(f,{class:"h-4 w-4"}),a(g,n)},$$slots:{default:!0}})}o(j),o(L),o(d),k(()=>{u($,`${e.totalItems??""}
${K()??""}${r(X)??""} total`),u(te,`Page ${e.currentPage??""} of ${r(W)??""}`)}),a(t,d)};ge(Y,t=>{e.totalItems>0&&t(Z)})}a(H,G),ve()}export{Ne as P};