PageSourceSearch

https://mobig.mx/build/assets/Reset-BD6DOaUR.js

js mobig.mx collected 2026-09-25 09:10:35 UTC 3,454 bytes, 1 lines download raw bytes

1import{r as t,u as y,j as e,H as j}from"./app-B0LAPjbu.js";import{c as v}from"./LoginController-B83tSgMb.js";import{E as p,a as x}from"./Icons-Dzn32PKW.js";import{F as N}from"./Footer-B1Xovpr1.js";import{N as C}from"./Navbar-CRBgTh9H.js";import"./paypal-js-c7UYulfR.js";import{B as S}from"./BaseLayout-zj00W11N.js";import"./app-Ci0Z6NIf.js";import"./Button-B8IzboFJ.js";import"./ClientProfileController-B-i96EOg.js";import"./NavbarItems-BYgFGm9F.js";import"./FloatingAlert-DwWSSqNs.js";import"./clientFlashStore-D5iliP8u.js";import"./FlashAlert-EdNkUCwL.js";const M=({token:f})=>{const[o,b]=t.useState(!1),[n,g]=t.useState(!1),[i,r]=t.useState(null),{data:a,setData:c,submit:h,processing:m}=y({password:"",password_confirmation:""}),l=t.useRef(null),d=()=>{l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{r(null)},3e3)},w=s=>{if(s.preventDefault(),a.password!==a.password_confirmation){r({type:"error",message:"Las contraseñas no coinciden."}),d();return}h(v({token:f}),{onSuccess:()=>{r({type:"success",message:"Te enviamos un correo para restablecer tu contraseña."}),c("password",""),d()},onError:u=>{u.email?r({type:"error",message:u.email}):r({type:"error",message:"Ocurrió un error inesperado."})}})};return e.jsxs(S,{navBar:e.jsx(C,{}),footer:e.jsx(N,{}),children:[e.jsx(j,{title:"Recuperar contraseña"}),e.jsx("div",{className:"bg-background flex flex-1 items-center justify-center overflow-auto",children:e.jsxs("div",{className:"bg-background mt-6 w-full overflow-hidden px-6 py-4 shadow-md sm:max-w-md sm:rounded-lg",children:[e.jsx("h2",{className:"text-primary mb-6 text-center text-3xl font-bold",children:"moBig"}),i&&e.jsx("div",{className:`mb-4 rounded-md border p-3 text-sm ${i.type==="success"?"border-green-200 bg-green-50 text-green-700":"border-red-200 bg-red-50 text-red-700"}`,children:i.message}),e.jsxs("form",{onSubmit:w,className:"space-y-5",children:[e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm text-gray-600",children:"Contraseña"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:o?"text":"password",name:"password",value:a.password,onChange:s=>c("password",s.target.value),className:"focus:ring-primary w-full rounded-md border border-gray-300 px-4 py-2 pr-10 focus:outline-none focus:ring-2",required:!0}),e.jsx("button",{type:"button",onClick:()=>b(s=>!s),className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600","aria-label":o?"Ocultar contraseña":"Mostrar contraseña",children:o?e.jsx(p,{}):e.jsx(x,{})})]})]}),e.jsxs("div",{children:[e.jsx("label",{className:"mb-1 block text-sm text-gray-600",children:"Confirmar contraseña"}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{type:n?"text":"password",name:"password_confirmation",value:a.password_confirmation,onChange:s=>c("password_confirmation",s.target.value),className:"focus:ring-primary w-full rounded-md border border-gray-300 px-4 py-2 pr-10 focus:outline-none focus:ring-2",required:!0}),e.jsx("button",{type:"button",onClick:()=>g(s=>!s),className:"absolute inset-y-0 right-0 flex items-center px-3 text-gray-600","aria-label":n?"Ocultar contraseña":"Mostrar contraseña",children:n?e.jsx(p,{}):e.jsx(x,{})})]})]}),e.jsx("button",{type:"submit",className:"bg-primary hover:bg-accent h-10 w-full rounded-full text-white shadow transition-all duration-150 hover:scale-105",disabled:m,children:m?"Cargando...":"Iniciar sesión"})]})]})})]})};export{M as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.