PageSourceSearch

https://analyticsindiamag.com/assets/ProfileSessions-Dkj1nNut.js

js analyticsindiamag.com collected 2026-09-24 08:26:52 UTC 4,836 bytes, 1 lines download raw bytes

1import{u as c,e as x,a as u,r as g,j as e,G as t,H as h,m as a,B as p,at as j,b7 as f}from"./index-KSWbwNeY.js";import{P as b}from"./ProfileSidebar-RSiubeOO.js";import v from"./Footer-DPSMpmUX.js";import{M as n}from"./monitor-DWTsCiB7.js";import{C as N}from"./clock-CzRotAbS.js";import"./alert-dialog-DFWe8irl.js";import"./index-BpbyRUKB.js";import"./trash-2-CwcwS_bf.js";import"./lock-DNHSxtLD.js";import"./twitter-yEUqfNJX.js";import"./linkedin-B1bA0DJP.js";import"./youtube-CwivUiPT.js";import"./facebook-DahhNxAJ.js";const I=()=>{const{user:i,loading:s,signOut:d}=c(),r=x(),{toast:l}=u();g.useEffect(()=>{!s&&!i&&r("/auth?redirect=/profile/sessions")},[i,s,r]);const m=async()=>{try{await d(),l({title:"Success",description:"You have been signed out from all sessions"}),r("/auth")}catch{l({title:"Error",description:"Failed to sign out",variant:"destructive"})}};if(s)return e.jsx("div",{className:"min-h-screen bg-muted/30",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[e.jsx(t,{className:"h-8 w-48 mb-8"}),e.jsxs("div",{className:"grid lg:grid-cols-[280px_1fr] gap-8",children:[e.jsx(t,{className:"h-64 w-full"}),e.jsx(t,{className:"h-96 w-full"})]})]})});const o={device:"Current Browser",browser:navigator.userAgent.includes("Chrome")?"Chrome":navigator.userAgent.includes("Firefox")?"Firefox":navigator.userAgent.includes("Safari")?"Safari":"Unknown Browser",os:navigator.platform,lastActive:new Date,isCurrent:!0};return e.jsxs(e.Fragment,{children:[e.jsxs(h,{children:[e.jsx("title",{children:"Sessions | AIM"}),e.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),e.jsx("div",{className:"min-h-screen bg-muted/30",children:e.jsxs("div",{className:"max-w-6xl mx-auto px-4 md:px-6 py-8",children:[e.jsx(a.h1,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"text-2xl font-bold text-foreground mb-8",children:"Account Settings"}),e.jsxs("div",{className:"grid lg:grid-cols-[280px_1fr] gap-8",children:[e.jsx(b,{}),e.jsxs(a.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.1},className:"space-y-6",children:[e.jsxs("div",{className:"bg-background border border-border p-6",children:[e.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[e.jsx("div",{className:"p-2 bg-primary/10 rounded-lg",children:e.jsx(n,{className:"h-5 w-5 text-primary"})}),e.jsxs("div",{children:[e.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"Active Sessions"}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"Manage your active login sessions"})]})]}),e.jsx(a.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"p-4 border border-emerald-200 dark:border-emerald-800 bg-emerald-50 dark:bg-emerald-950/20 rounded-lg",children:e.jsx("div",{className:"flex items-start justify-between",children:e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"p-2 bg-emerald-100 dark:bg-emerald-900/50 rounded-lg",children:e.jsx(n,{className:"h-5 w-5 text-emerald-600 dark:text-emerald-400"})}),e.jsxs("div",{children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:o.browser}),e.jsx("span",{className:"px-2 py-0.5 text-xs font-medium bg-emerald-100 dark:bg-emerald-900/50 text-emerald-700 dark:text-emerald-300 rounded-full",children:"Current"})]}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:o.os}),e.jsx("div",{className:"flex items-center gap-4 mt-2 text-xs text-muted-foreground",children:e.jsxs("span",{className:"flex items-center gap-1",children:[e.jsx(N,{className:"h-3 w-3"}),"Active now"]})})]})]})})}),e.jsx("div",{className:"mt-6 pt-6 border-t border-border",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-foreground",children:"Sign out of all sessions"}),e.jsx("p",{className:"text-xs text-muted-foreground mt-1",children:"This will sign you out from all devices"})]}),e.jsxs(p,{variant:"destructive",size:"sm",onClick:m,className:"gap-2",children:[e.jsx(j,{className:"h-4 w-4"}),"Sign Out All"]})]})})]}),e.jsx("div",{className:"bg-amber-50 dark:bg-amber-950/20 border border-amber-200 dark:border-amber-800 p-4 rounded-lg",children:e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(f,{className:"h-5 w-5 text-amber-600 dar
1k:text-amber-400 mt-0.5 shrink-0"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-sm font-medium text-amber-900 dark:text-amber-100",children:"Security Notice"}),e.jsx("p",{className:"mt-1 text-sm text-amber-700 dark:text-amber-300",children:"If you notice any suspicious activity or sessions you don't recognize, sign out of all sessions immediately and change your password."})]})]})})]})]})]})}),e.jsx(v,{})]})};export{I as default};

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.