import{c as o,a4 as d,o as u,y as s,d as m,z as l,J as h,K as p}from"./_plugin-vue_export-helper-nhjnO_bd.js";import{R as f}from"./RestrictedAuth-DsJXicIw.js";import{g as a}from"./helpers-DzjFIx78.js";import"./pow-2N9bxgAo.js";const w={__name:"RestrictedForward",setup(_){const n=o(()=>d()),r=o(()=>{const e=document.documentElement.getAttribute("data-mode");return e==="reauth"?"reauth":e==="forbidden"?"forbidden":"login"});function c(){location.reload()}function i(){const t=n.value||"/auth/";window.location.pathname!==t&&history.replaceState(null,"",t),window.location.href=t}return u(()=>{window.addEventListener("keydown",t=>{t.key==="Escape"&&a()})}),(t,e)=>(m(),s(f,{mode:r.value,onAuthenticated:c,onBack:l(a),onHome:i},null,8,["mode","onBack"]))}};h(w).mount("#app");p();
