PageSourceSearch

https://cdn4.schoolism.com/build/assets/LogoutOtherBrowserSessionsForm-BIqDhl1s.js

js schoolism.com collected 2026-09-25 21:30:38 UTC 4,217 bytes, 1 lines download raw bytes

1import{r as _,T as k,c as $,o as l,w as t,a as r,d as i,e as V,b as d,t as s,F as b,g as B,f as n,u,n as S,I as C}from"./app-DDSQZi8b.js";import{_ as L}from"./ActionMessage-CIJlOAlq.js";import{_ as A}from"./ActionSection-vEMHjY8Q.js";import{_ as O}from"./DialogModal-Cz8jHdat.js";import{_ as x}from"./InputError-D8hO71hd.js";import{_ as g}from"./PrimaryButton-BZDb06ez.js";import{_ as H}from"./SecondaryButton-DivYDEmO.js";import{_ as I}from"./TextInput-DBP7fcbj.js";import"./SectionTitle-CplT-p85.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./Modal-3NAjzsI8.js";const F={class:"max-w-xl text-sm"},M={key:0,class:"mt-5 space-y-6"},N={key:0,class:"w-8 h-8 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},T={key:1,class:"w-8 h-8 text-gray-500",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},U={class:"ms-3"},j={class:"text-sm"},D={class:"text-xs text-gray-500"},E={key:0,class:"text-green-500 font-semibold"},K={key:1},P={class:"flex items-center mt-5"},z={class:"mt-4"},os={__name:"LogoutOtherBrowserSessionsForm",props:{sessions:Array},setup(w){const m=_(!1),p=_(null),a=k({password:""}),y=()=>{m.value=!0,setTimeout(()=>p.value.focus(),250)},h=()=>{a.delete(route("other-browser-sessions.destroy"),{preserveScroll:!0,onSuccess:()=>f(),onError:()=>p.value.focus(),onFinish:()=>a.reset()})},f=()=>{m.value=!1,a.reset()};return(e,c)=>(l(),$(A,null,{title:t(()=>[n(s(e.$t("Browser Sessions")),1)]),description:t(()=>[n(s(e.$t("Manage and log out your active sessions on other browsers and devices.")),1)]),content:t(()=>[r("div",F,s(e.$t("If necessary, you may log out of all of your other browser sessions across all of your devices. Some of your recent sessions are listed below; however, this list may not be exhaustive. If you feel your account has been compromised, you should also update your password.")),1),w.sessions.length>0?(l(),i("div",M,[(l(!0),i(b,null,B(w.sessions,(o,v)=>(l(),i("div",{key:v,class:"flex items-center"},[r("div",null,[o.agent.is_desktop?(l(),i("svg",N,c[1]||(c[1]=[r("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 17.25v1.007a3 3 0 01-.879 2.122L7.5 21h9l-.621-.621A3 3 0 0115 18.257V17.25m6-12V15a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 15V5.25m18 0A2.25 2.25 0 0018.75 3H5.25A2.25 2.25 0 003 5.25m18 0V12a2.25 2.25 0 01-2.25 2.25H5.25A2.25 2.25 0 013 12V5.25"},null,-1)]))):(l(),i("svg",T,c[2]||(c[2]=[r("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M10.5 1.5H8.25A2.25 2.25 0 006 3.75v16.5a2.25 2.25 0 002.25 2.25h7.5A2.25 2.25 0 0018 20.25V3.75a2.25 2.25 0 00-2.25-2.25H13.5m-3 0V3h3V1.5m-3 0h3m-3 18.75h3"},null,-1)])))]),r("div",U,[r("div",j,s(o.agent.platform?o.agent.platform:e.$t("Unknown"))+" - "+s(o.agent.browser?o.agent.browser:e.$t("Unknown")),1),r("div",null,[r("div",D,[n(s(o.ip_address)+", ",1),o.is_current_device?(l(),i("span",E,s(e.$t("This device")),1)):(l(),i("span",K,s(e.$t("Last active"))+" "+s(o.last_active),1))])])])]))),128))])):V("",!0),r("div",P,[d(g,{onClick:y},{default:t(()=>[n(s(e.$t("Log Out Other Browser Sessions")),1)]),_:1}),d(L,{on:u(a).recentlySuccessful,class:"ms-3"},{default:t(()=>[n(s(e.$t("Done.")),1)]),_:1},8,["on"])]),d(O,{show:m.value,onClose:f},{title:t(()=>[n(s(e.$t("Log Out Other Browser Sessions")),1)]),content:t(()=>[n(s(e.$t("Please enter your password to confirm you would like to log out of your other browser sessions across all of your devices."))+" ",1),r("div",z,[d(I,{ref_key:"passwordInput",ref:p,modelValue:u(a).password,"onUpdate:modelValue":c[0]||(c[0]=o=>u(a).password=o),type:"password",class:"mt-1 block w-3/4",placeholder:e.$t("Password"),autocomplete:"current-password",onKeyup:C(h,["enter"])},null,8,["modelValue","placeholder"]),d(x,{message:u(a).errors.password,class:"mt-2"},null,8,["message"])])]),footer:t(()=>[d(H,{onClick:f},{default:t(()=>[n(s(e.$t("Cancel")),1)]),_:1}),d(g,{class:S(["ms-3",{"opacity-25":u(a).processing}]),disabled:u(a).processing,onClick:h},{default:t(()=>[n(s(e.$t("Log Out Other Browser Sessions")),1)]),_:1},8,["class","disabled"])]),_:1},8,["show"])]),_:1}))}};export{os 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.