import"../chunks/Bzak7iHL.js";import{p as D,t as w,a as y,b as I,k as U,s as r,d as s,c as C,$ as j,r as i,n as k,e as N}from"../chunks/CiQWViEs.js";import{i as P}from"../chunks/CEkQpEF5.js";import{h as z}from"../chunks/DG4rvltU.js";import{a as B,e as O}from"../chunks/BblGoPVU.js";import{r as c,s as p}from"../chunks/zaEOnEon.js";var R=C('<p class="rounded-lg bg-red-50 px-3 py-2 text-sm font-medium text-red-700" role="alert"> </p>'),S=C(`<main class="mx-auto flex min-h-screen max-w-xl flex-col justify-center px-4 py-10"><div class="mb-6 text-center"><img src="/logo-edumind.png" alt="Inventario EDUmind" class="mx-auto mb-3 h-24 w-24 rounded-2xl object-contain shadow-sm ring-1 ring-slate-200"/> <h1 class="text-2xl font-bold text-slate-900">Bienvenido a Inventario EDUmind</h1> <p class="mt-1 text-slate-600">Vamos a crear la cuenta de administración del centro. Estos datos se guardan solo en este
			ordenador.</p></div> <form method="POST" class="card space-y-4 p-6"><!> <div><label class="label" for="center_name">Nombre del centro</label> <input class="input" id="center_name" name="center_name" placeholder="CEP Campolongo"/></div> <hr class="border-slate-200"/> <p class="text-sm font-semibold text-slate-700">Cuenta de administrador/a</p> <div><label class="label" for="name">Nombre completo *</label> <input class="input" id="name" name="name" required=""/></div> <div><label class="label" for="email">Correo (usuario de acceso) *</label> <input class="input" id="email" name="email" type="email" required=""/></div> <div class="grid gap-4 sm:grid-cols-2"><div><label class="label" for="password">Contraseña *</label> <input class="input" id="password" name="password" type="password" required="" minlength="8"/></div> <div><label class="label" for="password2">Repite la contraseña *</label> <input class="input" id="password2" name="password2" type="password" required="" minlength="8"/></div></div> <button class="btn-primary w-full" type="submit">Crear cuenta y empezar</button></form></main>`);function J(E,t){D(t,!0);var n=S();z("g40i6i",e=>{U(()=>{j.title="Configuración inicial · Inventario EDUmind"})});var o=r(s(n),2),u=s(o);{var q=e=>{var a=R(),l=s(a,!0);i(a),w(()=>N(l,t.form.error)),y(e,a)};P(u,e=>{var a;(a=t.form)!=null&&a.error&&e(q)})}var m=r(u,2),v=r(s(m),2);c(v),i(m);var d=r(m,6),f=r(s(d),2);c(f),i(d);var b=r(d,2),x=r(s(b),2);c(x),i(b),k(4),i(o),B(o,e=>{var a;return(a=O)==null?void 0:a(e)}),i(n),w(()=>{var e,a,l,g,_,h;p(v,((a=(e=t.form)==null?void 0:e.values)==null?void 0:a.center_name)??""),p(f,((g=(l=t.form)==null?void 0:l.values)==null?void 0:g.name)??""),p(x,((h=(_=t.form)==null?void 0:_.values)==null?void 0:h.email)??"")}),y(E,n),I()}export{J as component};
