PageSourceSearch

https://kindredly.ai/js/LoggingOutDtYOx7kR.js

js kindredly.ai collected 2026-10-02 01:12:53 UTC 2,322 bytes, 1 lines download raw bytes

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