PageSourceSearch

https://app.whatsable.com/build/assets/Sessions-CAM8FD0i.js

js whatsable.com collected 2026-10-05 02:42:57 UTC 3,646 bytes, 6 lines download raw bytes

1import{u as n,a as d,j as e,H as m}from"./app-JqkQZVIN.js";import{C as p}from"./ClientLayout-DWNvp5-y.js";import{B as c}from"./Button-CHtPmOzg.js";import{C as i}from"./Tabs-CiMIPf0s.js";import{I as x}from"./Input-Ow02MoU_.js";import{u}from"./useTranslation-CC9YJjOt.js";import{c as b}from"./createLucideIcon-Czgutyob.js";import{G as f}from"./globe-lHh7Sru4.js";import"./useClientNav-x9E-3qQa.js";import"./BrandIcons-BCOiPJrS.js";import"./Sidebar-6eadgIJq.js";import"./ApplicationLogo--hUvSb0B.js";import"./plus-DcMxgEln.js";import"./x-Xjez3RjT.js";import"./chevron-down-BBg5fR1h.js";import"./layers-Bz-FcsEf.js";import"./users-B_b_fWS2.js";import"./file-text-DQIUnHmO.js";import"./book-open-B1oBEsp5.js";import"./image-D5Slqv8P.js";import"./message-square-DDekpcrr.js";import"./mail-DWl3Cvu3.js";import"./bot-B0R2Q_3w.js";import"./database-DzSlrBKX.js";import"./map-pin-Dp_h-MiL.js";import"./calendar-clock-Bmy9BOLB.js";import"./zap-D2xwQbHR.js";import"./Topbar-B1hfr8AF.js";import"./useLocale-vnABZqrL.js";import"./search-D76L6Ums.js";import"./transition-QUi7Lekh.js";/**
2 * @license lucide-react v0.575.0 - ISC
3 *
4 * This source code is licensed under the ISC license.
5 * See the LICENSE file in the root directory of this source tree.
6 */const h=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],g=b("monitor",h);function W({sessions:o=[]}){const{t}=u(),{flash:a}=n().props,s=d({password:""}),l=r=>{r.preventDefault(),s.delete(route("client.profile.sessions.destroy"),{preserveScroll:!0})};return e.jsxs(p,{title:t("profile.active_sessions"),children:[e.jsx(m,{title:t("profile.active_sessions")}),e.jsxs("div",{className:"space-y-6 max-w-2xl",children:[(a==null?void 0:a.success)&&e.jsx("div",{className:"rounded-lg bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 px-4 py-3 text-sm text-green-800 dark:text-green-300",children:a.success}),e.jsx(i,{children:e.jsxs(i.Body,{children:[e.jsx("h2",{className:"text-base font-semibold text-neutral-900 dark:text-neutral-100 mb-4",children:t("profile.active_sessions")}),e.jsx("div",{className:"space-y-3",children:o.map(r=>e.jsxs("div",{className:`flex items-start gap-3 rounded-lg px-4 py-3 border ${r.is_current?"border-blue-200 dark:border-blue-700 bg-blue-50 dark:bg-blue-900/20":"border-neutral-200 dark:border-neutral-700 bg-neutral-50 dark:bg-neutral-800/50"}`,children:[e.jsx(g,{className:"h-5 w-5 mt-0.5 text-neutral-400 shrink-0"}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-neutral-800 dark:text-neutral-200 truncate",children:r.user_agent||t("profile.unknown_device")}),e.jsxs("div",{className:"flex items-center gap-2 mt-0.5 text-xs text-neutral-500 dark:text-neutral-400",children:[e.jsx(f,{className:"h-3 w-3"}),e.jsx("span",{children:r.ip_address||t("profile.unknown_ip")}),e.jsx("span",{children:"·"}),e.jsx("span",{children:r.last_active_at}),r.is_current&&e.jsx("span",{className:"text-blue-600 dark:text-blue-400 font-medium",children:t("profile.this_device")})]})]})]},r.id))}),o.length>1&&e.jsxs("form",{onSubmit:l,className:"mt-6 flex gap-3 items-end pt-4 border-t border-neutral-200 dark:border-neutral-700",children:[e.jsx(x,{label:t("profile.revoke_password_label"),type:"password",value:s.data.password,onChange:r=>s.setData("password",r.target.value),className:"flex-1 max-w-xs",error:s.errors.password}),e.jsx(c,{type:"submit",variant:"destructive",disabled:s.processing,children:t("profile.revoke_other_sessions")})]})]})})]})]})}export{W 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.