| Current Path : /proc/thread-self/root/snap/lxd/current/share/lxd-ui/assets/ |
| Current File : //proc/thread-self/root/snap/lxd/current/share/lxd-ui/assets/AuthenticationSetup-CI5GNYFo.js |
import{u as p,a as d,g as x,j as t,d as e,i as h,N as a,R as n}from"./index-BsQN_SZU.js";import{A as m}from"./AuthenticationOptions-CutYms6a.js";const f=()=>{const{isAuthLoading:o,isAuthenticated:s,authMethod:r,authExpiresAt:u}=p(),c=d(u),i=x(c);return o?t.jsx(e.Spinner,{className:"u-loader",text:"Loading...",isMainComponent:!0}):s&&h(r)?t.jsx(a,{to:`${n}/ui/permissions/identities`,replace:!0}):s?t.jsx(e.CustomLayout,{contentClassName:"authentication-setup empty-state",children:t.jsxs(e.Row,{children:[t.jsx("h1",{className:"p-heading--4 u-sv3",children:"Set up permanent access"}),i&&t.jsx(e.Notification,{severity:"caution",children:i}),t.jsx(m,{})]})}):t.jsx(a,{to:`${n}/ui/login`,replace:!0})};export{f as default};