1import{r as g,T as k,c as x,w as o,o as a,f as n,a as t,d as l,F as h,g as V,t as u,e as b,b as i,u as d,z as B,n as S}from"./app-BXvF3HYt.js";import{_ as C}from"./ActionMessage-D5vnNnNM.js";import{_ as L}from"./Modal-CKMeP4zG.js";import{_ as A}from"./DialogModal-BjEH1S11.js";import{_ as O,a as $}from"./TextInput-CN_jo65B.js";import{_ as y}from"./PrimaryButton-D8zZyiff.js";import{_ as H}from"./SecondaryButton-DBGdLAyH.js";import"./SectionTitle-CU87EiFI.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const F={key:0,class:"mt-5 space-y-6"},I={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"},M={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"},N={class:"ml-3"},T={class:"text-sm text-gray-600 dark:text-gray-400"},U={class:"text-xs text-gray-500"},j={key:0,class:"text-green-500 font-semibold"},z={key:1},D={class:"flex items-center mt-5"},E={class:"mt-4"},Z={__name:"LogoutOtherBrowserSessionsForm",props:{sessions:Array},setup(p){const m=g(!1),c=g(null),r=k({password:""}),v=()=>{m.value=!0,setTimeout(()=>c.value.focus(),250)},w=()=>{r.delete(route("other-browser-sessions.destroy"),{preserveScroll:!0,onSuccess:()=>f(),onError:()=>c.value.focus(),onFinish:()=>r.reset()})},f=()=>{m.value=!1,r.reset()};return(K,s)=>(a(),x(L,null,{title:o(()=>s[1]||(s[1]=[n(" Browser Sessions ")])),description:o(()=>s[2]||(s[2]=[n(" Manage and log out your active sessions on other browsers and devices. ")])),content:o(()=>[s[11]||(s[11]=t("div",{class:"max-w-xl text-sm text-gray-600 dark:text-gray-400"}," 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)),p.sessions.length>0?(a(),l("div",F,[(a(!0),l(h,null,V(p.sessions,(e,_)=>(a(),l("div",{key:_,class:"flex items-center"},[t("div",null,[e.agent.is_desktop?(a(),l("svg",I,s[3]||(s[3]=[t("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)]))):(a(),l("svg",M,s[4]||(s[4]=[t("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)])))]),t("div",N,[t("div",T,u(e.agent.platform?e.agent.platform:"Unknown")+" - "+u(e.agent.browser?e.agent.browser:"Unknown"),1),t("div",null,[t("div",U,[n(u(e.ip_address)+", ",1),e.is_current_device?(a(),l("span",j,"This device")):(a(),l("span",z,"Last active "+u(e.last_active),1))])])])]))),128))])):b("",!0),t("div",D,[i(y,{onClick:v},{default:o(()=>s[5]||(s[5]=[n(" Log Out Other Browser Sessions ")])),_:1}),i(C,{on:d(r).recentlySuccessful,class:"ml-3"},{default:o(()=>s[6]||(s[6]=[n(" Done. ")])),_:1},8,["on"])]),i(A,{show:m.value,onClose:f},{title:o(()=>s[7]||(s[7]=[n(" Log Out Other Browser Sessions ")])),content:o(()=>[s[8]||(s[8]=n(" Please enter your password to confirm you would like to log out of your other browser sessions across all of your devices. ")),t("div",E,[i(O,{ref_key:"passwordInput",ref:c,modelValue:d(r).password,"onUpdate:modelValue":s[0]||(s[0]=e=>d(r).password=e),type:"password",class:"mt-1 block w-3/4",placeholder:"Password",autocomplete:"current-password",onKeyup:B(w,["enter"])},null,8,["modelValue"]),i($,{message:d(r).errors.password,class:"mt-2"},null,8,["message"])])]),footer:o(()=>[i(H,{onClick:f},{default:o(()=>s[9]||(s[9]=[n(" Cancel ")])),_:1}),i(y,{class:S(["ml-3",{"opacity-25":d(r).processing}]),disabled:d(r).processing,onClick:w},{default:o(()=>s[10]||(s[10]=[n(" Log Out Other Browser Sessions ")])),_:1},8,["class","disabled"])]),_:1},8,["show"])]),_:1}))}};export{Z 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.