import{r as s,j as r}from"./router.chunk.YsRm4bSN.js";import{u as t,Z as i,A as e,ai as o,r as c,K as a,x as n,y as u,z as m,aj as d,G as j,E as p,J as h}from"./main.chunk.N-eZ2ybB.js";import{_ as __}from"./wordpress.chunk.BVds2GcU.js";import{k as l}from"./forms.chunk.Bz8aaTWe.js";import{P as f}from"./pro-switch-input.chunk.BAQFhkCR.js";import{u as g}from"./use-update-dirty-state.chunk.Bh3v76yr.js";import{S as k}from"./settings.chunk.D9nMP-Um.js";import{u as x}from"./use-route-blocker-guard.chunk.CxzDiMl1.js";import"./react-jsx-runtime.chunk.ATkk6v2S.js";import"./react.js";import"./react-dom-client.chunk.BMQ1litG.js";import"./react-dom.js";import"./pdf-core.chunk.D33I_Wdh.js";import"./ui-radix.chunk.Xzokq_Gv.js";import"./utils.chunk.C1IATKsN.js";import"./icons.chunk.BwnSC3zE.js";import"./date-utils.chunk.DWRtWTmT.js";import"./pro-badge.chunk.PstHsVdU.js";import"./switch.chunk.BWrU_4pe.js";import"./template-layout-context.chunk.B1U8ZWnY.js";const w=()=>{const{appConfig:w}=t(),y=l({resolver:h(k)});s.useEffect(()=>{y.reset.call(null,{...i(k._def.schema),...w[e.Security]??{}})},[w,y.reset]);const{registerForm:E,isCurrentFormDirty:b}=o();s.useEffect(()=>{const s=E(e.Security,y);return()=>{s()}},[E]),g(y),x({isDirty:b});const S=c.get("SecuritySettingsEmailVerificationSwitchField");return r.jsx(a,{...y,children:r.jsx("div",{className:"growfund-grid growfund-gap-4",children:r.jsxs(n,{children:[r.jsxs(u,{children:[r.jsx(m,{children:__("Access Control","growfund")}),r.jsx(d,{children:__("Manage authentication and account security settings.","growfund")})]}),r.jsx(j,{className:"growfund-space-y-4",children:r.jsx(p,{fallback:r.jsx(f,{label:__("Email Verification","growfund"),description:__("Ensure user account security by requiring email verification for account activation.","growfund"),showProBadge:!0}),children:S&&r.jsx(S,{})})})]})})})};export{w as default};
