import{r as e,t}from"./jsx-runtime-BbTa8W_M-1776590214964.js";import{n,o as r}from"./app-CXDQ5oEH-1776590214964.js";import{t as i}from"./useTranslation-D1etqd9u-1776590214964.js";import{t as a}from"./shield-CIH-dfnA-1776590214964.js";import{t as o}from"./user-BksKc3Ev-1776590214964.js";import{a as s,n as c,o as l,r as u,t as d}from"./card-Cby8flFO-1776590214964.js";import f from"./DeleteUserForm-CH5zpE_m-1776590214964.js";import p from"./UpdatePasswordForm-D6L8T-k7-1776590214964.js";import m from"./TwoFactorAuthenticationForm-DxvjDW0D-1776590214964.js";import{t as h}from"./SettingsLayout-D_dfvVmP-1776590214964.js";e();var g=t();function _(){let{t:e}=i(),{auth:t}=r().props,_=t?.user?.role===`admin`,v=[{name:e(`Profile Info`),icon:o,routeName:`settings.profile`},{name:e(`Security & Password`),icon:a,routeName:`settings.security`}];return(0,g.jsxs)(h,{title:e(`Security Settings`),description:e(`Manage your password and account security.`),navigation:v,backRoute:`dashboard`,children:[(0,g.jsx)(n,{title:e(`Security Settings`)}),(0,g.jsxs)(d,{className:`shadow-sm border-border/50 mb-6`,children:[(0,g.jsxs)(s,{children:[(0,g.jsx)(l,{children:e(`Change Password`)}),(0,g.jsx)(u,{children:e(`Ensure your account is using a long, random password to stay secure.`)})]}),(0,g.jsx)(c,{children:(0,g.jsx)(p,{className:`max-w-xl`})})]}),(0,g.jsx)(d,{className:`shadow-sm border-border/50 mb-6`,children:(0,g.jsx)(c,{className:`pt-6`,children:(0,g.jsx)(m,{})})}),(0,g.jsxs)(d,{className:`shadow-sm ${_?`border-amber-500/20 bg-amber-500/5`:`border-destructive/20 bg-destructive/5`}`,children:[(0,g.jsxs)(s,{children:[(0,g.jsx)(l,{className:_?`text-amber-700 dark:text-amber-500`:`text-destructive`,children:e(`Danger Zone`)}),(0,g.jsx)(u,{children:e(`Permanently delete your account and all associated data.`)})]}),(0,g.jsx)(c,{children:(0,g.jsx)(f,{className:`max-w-xl`,isAdmin:_})})]})]})}export{_ as default};