import{u as l,aF as m,p as u,aG as p,s as v,ao as w,aH as x,j as s}from"./main-Bn3jZxQW.js";import{c as f}from"./Heading-BPu-MP59.js";import{F as _,B as b,E as h}from"./Filter-CQaawBwk.js";import{B as d}from"./ButtonLink-DaMceLGU.js";import"./_commonjsHelpers-DaWZu8wl.js";/* empty css               */import"./LastActive-CcqY2swy.js";import"./EndBrowserSessionButton-Dh2DNyLt.js";import"./computer-BhmLSpYt.js";function N(){const{t:e}=l(),{inactive:r,pagination:i}=m.useLoaderDeps(),{data:{viewerSession:o}}=u(p(i,r));if(o.__typename!=="BrowserSession")throw v();const[n,a]=w(i,o.user.browserSessions.pageInfo,x),c=[...o.user.browserSessions.edges].reverse();return s.jsxs("div",{className:"flex flex-col gap-6",children:[s.jsx(f,{children:e("frontend.browser_sessions_overview.heading")}),s.jsx("div",{className:"flex gap-2 items-start",children:s.jsx(_,{to:"/sessions/browsers",enabled:r,search:{inactive:r?void 0:!0},children:e("frontend.last_active.inactive_90_days")})}),c.map(t=>s.jsx(b,{session:t.node,isCurrent:o.id===t.node.id},t.cursor)),o.user.browserSessions.totalCount===0&&s.jsx(h,{children:e(r?"frontend.browser_sessions_overview.no_active_sessions.inactive_90_days":"frontend.browser_sessions_overview.no_active_sessions.default")}),(a||n)&&s.jsxs("div",{className:"flex *:flex-1",children:[s.jsx(d,{kind:"secondary",size:"sm",disabled:!a,to:"/sessions/browsers",search:a||i,resetScroll:!0,children:e("common.previous")}),s.jsx("div",{}),s.jsx(d,{kind:"secondary",size:"sm",disabled:!n,to:"/sessions/browsers",search:n||i,resetScroll:!0,children:e("common.next")})]})]})}export{N as component};
//# sourceMappingURL=_account.sessions.browsers-BmTtVniy.js.map
