PageSourceSearch

https://kindredly.ai/js/LoggingOutHsKamQEH.js

js kindredly.ai collected 2026-09-24 14:30:48 UTC 2,317 bytes, 1 lines download raw bytes

1import{d as C,a3 as P,c as i,q as l,z as R,a4 as u,b,o as c,e as o,f as T,x as y,w as d,B as m,j as w}from"./vue-runtimeBcw72k-n.js";import{t as S,aw as N}from"./chunkReloadRecoveryC4XyrbqR.js";import{u as O}from"./common.storeB-dDF-ne.js";import{b as V,r as j}from"./useSignout_mqg20Qd.js";import"./cjs-helpersC4iS2aBk.js";import"./bootstrap-vue-nextD6HU9H8G.js";import"./dexie2jmnBxhj.js";import"./adminsite.storeDQcNSYX0.js";const q={class:"container py-5"},M={class:"d-flex justify-content-center"},U={class:"container-box-sm w-100"},z={class:"d-flex justify-content-center mt-3"},D={key:0,class:"text-center small mt-2"},Q=C({__name:"LoggingOut",setup(E){const k=P(),f=O(),x=i(()=>{var t,e;return V({appPrefix:(t=f.appPrefix)==null?void 0:t.value,isBrowserMode:(e=f.isBrowserMode)==null?void 0:e.value})}),p=i(()=>j(k.query.redirect,x.value)),v=i(()=>p.value),a=l({remote:!1,local:!1,redirect:!1}),g=l(!1),n=l(!1);function h(t){return new Promise(e=>setTimeout(e,t))}async function _(t,e){try{return await Promise.race([t,(async()=>(await h(e),null))()])}catch{return null}}function s(){n.value||(n.value=!0,a.value.redirect=!0,window.location.href=p.value)}return R(async()=>{(async()=>{setTimeout(()=>{n.value||(g.value=!0)},6500),setTimeout(()=>{n.value||s()},15e3);const t=_(S("/auth/signout",{}),4e3).then(r=>(a.value.remote=!0,r)),e=_(N(!0),7e3).then(r=>(a.value.local=!0,r));await Promise.allSettled([t,e]),s()})()}),(t,e)=>{const r=u("b-button"),L=u("b-link"),B=u("b-alert");return c(),b("div",q,[o("div",M,[o("div",U,[e[4]||(e[4]=o("div",{class:"text-center"},[o("div",{class:"spinner-border text-primary",role:"status","aria-label":"Logging out"}),o("div",{class:"mt-3 h5 mb-1"},"Logging out…")],-1)),g.value?(c(),T(B,{key:0,variant:"warning","model-value":!0,class:"mt-4 mb-0"},{default:d(()=>[e[2]||(e[2]=m(" Logout is taking longer than expected. ",-1)),e[3]||(e[3]=o("div",{class:"small mt-1"}," This can happen on mobile or with a flaky connection. You can safely continue. ",-1)),o("div",z,[w(r,{variant:"primary",onClick:s},{default:d(()=>[...e[0]||(e[0]=[m("Continue",-1)])]),_:1})]),v.value?(c(),b("div",D,[w(L,{href:v.value},{default:d(()=>[...e[1]||(e[1]=[m("Or click here if you’re not redirected.",-1)])]),_:1},8,["href"])])):y("",!0)]),_:1})):y("",!0)])])])}}});export{Q 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.