import{w as r,M as t,j as e,V as o,T as a,d3 as n,u as l,t as d}from"./main-D6SjkSWq.js";import{U as c,a as f}from"./user-role-section-ByqNV-gr.js";import{F as u}from"./switch-CvotT3pn.js";import"./crupdate-resource-layout-IY4TseVy.js";import"./datatable-page-with-header-layout-BuTOEIJh.js";import"./dashboard-layout-context-C1ErlVWg.js";import"./use-normalized-models-D9FqQyBj.js";import"./form-chip-field-CRtNtvyR.js";import"./input-CalT3wzl.js";import"./chip-list-CvrJkGlz.js";import"./chevron-down-BqXy_cI5.js";function N(){const i=r(),s=t({defaultValues:{name:i.name??"",roles:i.roles,email_verified_at:!!i.email_verified_at}});return e.jsxs(c,{form:s,children:[e.jsx(o,{name:"name",label:e.jsx(a,{message:"Name"}),className:"mb-24"}),e.jsx(p,{user:i}),e.jsx(f,{})]})}function p({user:i}){const s=n(),{require_email_confirmation:m}=l();return e.jsxs("div",{className:"mb-44",children:[e.jsx(u,{className:"mb-30",disabled:!m,name:"email_verified_at",description:e.jsx(a,{message:"Whether email address has been confirmed. User will not be able to login until address is confirmed, unless confirmation is disabled from settings page."}),children:e.jsx(a,{message:"Email confirmed"})}),e.jsx(d,{size:"xs",variant:"outline",color:"primary",disabled:!m||s.isPending||!!i.email_verified_at,onClick:()=>{s.mutate({email:i.email})},children:e.jsx(a,{message:"Resend email"})})]})}export{N as Component};
