import{_ as m}from"./AuthenticatedLayout-if5JcM-v.js";import u from"./DeleteUserForm-QLcpkjuI.js";import d from"./UpdatePasswordForm-y0mQz54y.js";import c from"./UpdateProfileInformationForm-A83EBuPd.js";import{W as p,z as n,o as f,c as _,a as e,u as h,w,F as g,Z as v,d as o}from"./app-I4K73wff.js";import"./index-9SbmYGxV.js";import"./index--wbxBylr.js";import"./index-dsvEKYml.js";import"./primeicons-LH9OCmKu.js";import"./_plugin-vue_export-helper-x3n3nnut.js";import"./Modal-2XNj_mQu.js";import"./InputError-H3v_qTU0.js";import"./InputLabel-kIOW7zCm.js";import"./SecondaryButton-KuZEOqaa.js";import"./TextInput-QqzhSxrA.js";import"./PrimaryButton-nm2-bJVd.js";import"./index-JTX25u3O.js";import"./index-hqM-OosT.js";import"./index-aCUeqmx3.js";import"./index-Gr1lOYEt.js";import"./index-zzPOQKrQ.js";import"./index-Ikz2WuEn.js";const x={class:"py-2"},b={class:"overflow-hidden shadow-sm sm:rounded-lg space-y-6 w-2/4"},R={class:"p-6 sm:p-8 bg-white shadow sm:rounded-lg"},j={class:"p-6 sm:p-8 bg-white shadow sm:rounded-lg"},y={class:"p-6 sm:p-8 bg-white shadow sm:rounded-lg"},L={__name:"Edit",props:{usuario:{type:Object,default:()=>({})},roles:{type:Object,default:()=>({})},userRole:{type:Object,default:()=>({})}},setup(s){const r=s,i=p().props.user.roles||[],a=n(()=>i.includes("Super administrador")?Object.values(r.roles):Object.values(r.roles).filter(t=>t!=="Super administrador"));return(l,t)=>(f(),_(g,null,[e(h(v),{title:"Editar Usuario"}),e(m,null,{default:w(()=>[o("div",x,[o("div",b,[o("div",R,[e(c,{user:s.usuario,roles:a.value,userRoles:s.userRole,class:"max-w-xl"},null,8,["user","roles","userRoles"])]),o("div",j,[e(d,{user:s.usuario,class:"max-w-xl"},null,8,["user"])]),o("div",y,[e(u,{user:s.usuario,class:"max-w-xl"},null,8,["user"])])])])]),_:1})],64))}};export{L as default};
