"use strict";(self["webpackChunktumenufront"]=self["webpackChunktumenufront"]||[]).push([[92],{1414:function(e,t,r){r.r(t),r.d(t,{default:function(){return h}});var a=r(641),s=r(953),n=r(810),i=r(8405),o=r(4919);const u=(0,n.nY)("user",{state:()=>({error:null,message:""}),getters:{},actions:{async getUsersOwners(){this.error=null;try{const e=await i.A.get("users/get-users-owners");return e.data}catch(e){this.error=(0,o.A)(e.response)||"Hubo un error inesperado"}}}});var l=r(7029),c=r(7695),d={__name:"IndexPage",setup(e){const t=(0,s.KR)([{title:"Nombre",key:"name",align:"start"},{title:"Correo",key:"email",align:"start"},{title:"Fecha registro",key:"created_at",align:"end"},{title:"Fecha verificación",key:"email_verified_at",align:"end"}]),r=u(),n=(0,s.KR)([]),i=e=>new Date(e).toLocaleString("es-MX",{day:"2-digit",month:"2-digit",year:"numeric",hour:"2-digit",minute:"2-digit",hour12:!0});return(0,a.sV)((async()=>{const e=await r.getUsersOwners();r.error?(0,c.oR)(r.error,{theme:"auto",type:"warning",dangerouslyHTMLString:!0}):(e.forEach((e=>{e.email_verified_at=i(e.email_verified_at),e.created_at=i(e.created_at)})),n.value=e)})),(e,r)=>((0,a.uX)(),(0,a.CE)(a.FK,null,[r[0]||(r[0]=(0,a.Lk)("h2",{class:"text-h6 mb-4"},"Usuarios registrados",-1)),(0,a.bF)((0,s.R1)(l.vh),{"disabled-new":!0,listItems:n.value,headers:t.value},null,8,["listItems","headers"])],64))}};const g=d;var h=g}}]);
//# sourceMappingURL=92.a61c43eb.js.map