import{r as e}from"./Heading-B3YO_p87.js";import{Et as t,P as n,S as r,jt as i,kt as a,n as o,t as s}from"./main-ChC-SNZa.js";import{t as c}from"./ButtonLink-CvJOjYPg.js";import{n as l,r as u,t as d}from"./Filter-DGIc1Ww2.js";var f=i();function p(){let{t:i}=n(),{inactive:p,pagination:m}=s.useLoaderDeps(),{data:{viewerSession:h}}=a(o(m,p));if(h.__typename!==`BrowserSession`)throw t();let[g,_]=r(m,h.user.browserSessions.pageInfo,6),v=[...h.user.browserSessions.edges].reverse();return(0,f.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,f.jsx)(e,{children:i(`frontend.browser_sessions_overview.heading`)}),(0,f.jsx)(`div`,{className:`flex gap-2 items-start`,children:(0,f.jsx)(d,{to:`/sessions/browsers`,enabled:p,search:{inactive:p?void 0:!0},children:i(`frontend.last_active.inactive_90_days`)})}),v.map(e=>(0,f.jsx)(u,{session:e.node,isCurrent:h.id===e.node.id},e.cursor)),h.user.browserSessions.totalCount===0&&(0,f.jsx)(l,{children:i(p?`frontend.browser_sessions_overview.no_active_sessions.inactive_90_days`:`frontend.browser_sessions_overview.no_active_sessions.default`)}),(_||g)&&(0,f.jsxs)(`div`,{className:`flex *:flex-1`,children:[(0,f.jsx)(c,{kind:`secondary`,size:`md`,disabled:!_,to:`/sessions/browsers`,search:_||m,resetScroll:!0,children:i(`common.previous`)}),(0,f.jsx)(`div`,{}),(0,f.jsx)(c,{kind:`secondary`,size:`md`,disabled:!g,to:`/sessions/browsers`,search:g||m,resetScroll:!0,children:i(`common.next`)})]})]})}export{p as component};
//# sourceMappingURL=_account.sessions.browsers-CilsXrLJ.js.map