1import{r as t,j as e}from"./vendor-BFXU7DOE.js";import{a as i,h as o,e as d}from"./index-0a0uir_3.js";import{C as m}from"./card-DCmpR22Q.js";import"./ui-B_QsM55A.js";import"./radix-BmG-mZpu.js";const g=()=>{const[a,l]=t.useState(!1),[n,c]=t.useState(!0),r=t.useCallback(async()=>{try{const s=await i.getMfaStatus();l(s.mfaEnabled)}catch(s){console.error("Failed to fetch MFA status:",s)}finally{c(!1)}},[]);return t.useEffect(()=>{r()},[r]),n?e.jsx("div",{className:"p-6",children:e.jsxs("div",{className:"animate-pulse space-y-4",children:[e.jsx("div",{className:"h-8 bg-muted rounded w-1/3"}),e.jsx("div",{className:"h-4 bg-muted rounded w-2/3"})]})}):e.jsxs("div",{className:"p-6 max-w-2xl",children:[e.jsx("h1",{className:"text-2xl font-bold text-fg mb-2",children:"Two-Factor Authentication"}),e.jsx("p",{className:"text-fg-subtle mb-6",children:"MFA is mandatory for all Guardian Pro accounts. Every login requires a time-based one-time password (TOTP) from your authenticator app."}),e.jsx(m,{className:"rounded-lg p-6",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(o,{className:"w-5 h-5 text-status-green"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-lg font-medium text-fg",children:"Authenticator App"}),e.jsx("p",{className:"text-sm text-fg-subtle",children:"Google Authenticator, Authy, 1Password, or any TOTP app"})]})]}),e.jsx("span",{className:d("px-3 py-1 rounded-full text-sm font-medium",a?"bg-green-500/20 text-status-green":"bg-yellow-500/20 text-status-yellow"),children:a?"Enabled":"Active"})]})})]})};export{g 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.