1import{d as _,r as l,c as y,w as t,o as i,h as r,b as a,a as e,f as d,F as k,i as b,t as u,g as j,n as p,M as S,j as B,v as M}from"./app.0910bc5f.js";import{J as C}from"./ActionMessage.22c37a04.js";import{J}from"./ActionSection.79249414.js";import{J as L}from"./Button.90643302.js";import{J as V}from"./DialogModal.7c2d4ca7.js";import{J as O}from"./Input.26e7b69c.js";import{J as $}from"./InputError.5a0db5db.js";import{J as x}from"./SecondaryButton.5b07997f.js";import{_ as D}from"./_plugin-vue_export-helper.cdc0426e.js";import"./SectionTitle.4c564fdc.js";const F=_({props:["sessions"],components:{JetActionMessage:C,JetActionSection:J,JetButton:L,JetDialogModal:V,JetInput:O,JetInputError:$,JetSecondaryButton:x},data(){return{form:this.$inertia.form({password:""}),modal:null}},methods:{confirmLogout(){this.form.password="";let s=document.querySelector("#confirmingLogoutModal");this.modal=new bootstrap.Modal(s),this.modal.show(),setTimeout(()=>this.$refs.password.focus(),250)},logoutOtherBrowserSessions(){this.form.delete(route("other-browser-sessions.destroy"),{preserveScroll:!0,onSuccess:()=>this.closeModal(),onError:()=>this.$refs.password.focus(),onFinish:()=>this.form.reset()})},closeModal(){this.modal.hide(),this.form.reset()}}}),I={key:0,class:"mt-3"},N={class:"d-flex"},z={key:0,fill:"none",width:"32","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",viewBox:"0 0 24 24",stroke:"currentColor",class:"text-muted"},E={key:1,xmlns:"http://www.w3.org/2000/svg",width:"32",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"text-muted"},K={class:"ms-2"},T={class:"small font-weight-lighter text-muted"},A={key:0,class:"text-success font-weight-bold"},H={key:1},P={class:"d-flex mt-3"},q={class:"form-group mt-3 w-md-75"},U={class:"spinner-border spinner-border-sm",role:"status"};function G(s,o,Q,R,W,X){const f=l("jet-action-message"),m=l("jet-button"),c=l("jet-input"),w=l("jet-input-error"),h=l("jet-secondary-button"),g=l("jet-dialog-modal"),v=l("jet-action-section");return i(),y(v,null,{title:t(()=>o[1]||(o[1]=[r(" Browser Sessions ")])),description:t(()=>o[2]||(o[2]=[r(" Manage and log out your active sessions on other browsers and devices. ")])),content:t(()=>[a(f,{on:s.form.recentlySuccessful},{default:t(()=>o[3]||(o[3]=[r(" Done. ")])),_:1,__:[3]},8,["on"]),o[12]||(o[12]=e("div",null," 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)),s.sessions.length>0?(i(),d("div",I,[(i(!0),d(k,null,b(s.sessions,n=>(i(),d("div",N,[e("div",null,[n.agent.is_desktop?(i(),d("svg",z,o[4]||(o[4]=[e("path",{d:"M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"},null,-1)]))):(i(),d("svg",E,o[5]||(o[5]=[e("path",{d:"M0 0h24v24H0z",stroke:"none"},null,-1),e("rect",{x:"7",y:"4",width:"10",height:"16",rx:"1"},null,-1),e("path",{d:"M11 5h2M12 17v.01"},null,-1)])))]),e("div",K,[e("div",null,u(n.agent.platform)+" - "+u(n.agent.browser),1),e("div",null,[e("div",T,[r(u(n.ip_address)+", ",1),n.is_current_device?(i(),d("span",A,"This device")):(i(),d("span",H,"Last active "+u(n.last_active),1))])])])]))),256))])):j("",!0),e("div",P,[a(m,{onClick:s.confirmLogout},{default:t(()=>o[6]||(o[6]=[r(" Log out Other Browser Sessions ")])),_:1,__:[6]},8,["onClick"])]),a(g,{id:"confirmingLogoutModal"},{title:t(()=>o[7]||(o[7]=[r(" Log out Other Browser Sessions ")])),content:t(()=>[o[8]||(o[8]=r(" Please enter your password to confirm you would like to log out of your other browser sessions across all of your devices. ")),e("div",q,[a(c,{type:"password",placeholder:"Password",ref:"password",class:p({"is-invalid":s.form.errors.password}),modelValue:s.form.password,"onUpdate:modelValue":o[0]||(o[0]=n=>s.form.password=n),onKeyup:S(s.logoutOtherBrowserSessions,["enter"])},null,8,["class","modelValue","onKeyup"]),a(w,{message:s.form.errors.password},null,8,["message"])])]),footer:t(()=>[a(h,{"data-dismiss":"modal",onClick:s.closeModal},{default:t(()=>
1o[9]||(o[9]=[r(" Cancel ")])),_:1,__:[9]},8,["onClick"]),a(m,{class:p(["ms-2",{"text-white-50":s.form.processing}]),onClick:s.logoutOtherBrowserSessions,disabled:s.form.processing},{default:t(()=>[B(e("div",U,o[10]||(o[10]=[e("span",{class:"visually-hidden"},"Loading...",-1)]),512),[[M,s.form.processing]]),o[11]||(o[11]=r(" Log out Other Browser Sessions "))]),_:1,__:[11]},8,["onClick","class","disabled"])]),_:1})]),_:1})}const ao=D(F,[["render",G]]);export{ao 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.