PageSourceSearch

https://www.embraco.com/build/assets/ForgotPasswordForm-BIzNgzMd.js

js embraco.com collected 2026-10-02 14:41:40 UTC 3,734 bytes, 1 lines download raw bytes

1import{r as c,v,j as e,Y as N}from"./app-nh-TeHBr.js";import{F as n,a as d,b as x}from"./index-DIzBtO_-.js";import"./app-Be3soXQy.js";import"./iconBase-BskMHYxe.js";const S=({email:p,token:m})=>{const[a,u]=c.useState(!1),[r,f]=c.useState(!1),{data:l,setData:o,post:h,processing:i,errors:t,clearErrors:b,reset:w}=v({email:p,token:m,password:"",password_confirmation:""}),j=s=>{s.preventDefault(),b(),h(route("materials-center.reset-password.store"),{onSuccess:()=>{w()}})};return e.jsxs("form",{onSubmit:j,className:"flex w-full flex-col gap-6 px-6",children:[e.jsxs("div",{className:"w-full",children:[e.jsx("label",{className:"mb-1 block text-sm font-semibold text-teal-700",children:"E-mail"}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-teal-700",children:e.jsx(n,{size:18})}),e.jsx("input",{type:"email",placeholder:"E-mail",value:l.email,onChange:s=>o("email",s.target.value),className:`w-full border !px-[40px] !py-[6px] pr-4 pl-11 ${t.email?"border-red-500":"border-gray-400"} rounded outline-none focus:ring-2 focus:ring-teal-500`})]}),t.email&&e.jsx("span",{className:"text-sm text-red-500",children:t.email})]}),e.jsxs("div",{className:"w-full",children:[e.jsx("label",{className:"mb-1 block text-sm font-semibold text-teal-700",children:"Nova Senha"}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-teal-700",children:e.jsx(n,{size:18})}),e.jsx("input",{type:a?"text":"password",placeholder:"Nova senha",value:l.password,onChange:s=>o("password",s.target.value),className:`w-full border !px-[40px] !py-[6px] pr-4 pl-11 ${t.password?"border-red-500":"border-gray-400"} rounded outline-none focus:ring-2 focus:ring-teal-500`}),e.jsx("button",{type:"button",onClick:()=>u(s=>!s),onMouseDown:s=>s.preventDefault(),"aria-label":a?"Ocultar senha":"Mostrar senha",className:"absolute inset-y-0 right-2 grid w-10 place-items-center text-teal-700 hover:text-teal-800",children:a?e.jsx(d,{size:18}):e.jsx(x,{size:18})})]}),t.password&&e.jsx("span",{className:"text-sm text-red-500",children:t.password})]}),e.jsxs("div",{className:"w-full",children:[e.jsx("label",{className:"mb-1 block text-sm font-semibold text-teal-700",children:"Confirmar senha"}),e.jsxs("div",{className:"relative",children:[e.jsx("span",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3 text-teal-700",children:e.jsx(n,{size:18})}),e.jsx("input",{type:r?"text":"password",placeholder:"Confirmar senha",value:l.password_confirmation,onChange:s=>o("password_confirmation",s.target.value),className:`w-full border !px-[40px] !py-[6px] pr-4 pl-11 ${t.password_confirmation?"border-red-500":"border-gray-400"} rounded outline-none focus:ring-2 focus:ring-teal-500`}),e.jsx("button",{type:"button",onClick:()=>f(s=>!s),onMouseDown:s=>s.preventDefault(),"aria-label":r?"Ocultar senha":"Mostrar senha",className:"absolute inset-y-0 right-2 grid w-10 place-items-center text-teal-700 hover:text-teal-800",children:r?e.jsx(d,{size:18}):e.jsx(x,{size:18})})]}),t.password_confirmation&&e.jsx("span",{className:"text-sm text-red-500",children:t.password_confirmation})]}),e.jsx("div",{className:"w-full text-right",children:e.jsx(N,{href:route("materials-center.login"),className:"text-sm text-teal-700 underline",children:"voltar"})}),e.jsx("div",{className:"flex w-full justify-center",children:e.jsx("button",{type:"submit",disabled:i,className:"cursor-pointer rounded-full bg-teal-700 px-10 py-2 text-sm font-bold text-white transition hover:bg-teal-800 disabled:opacity-50",children:i?"Enviando...":"ENVIAR"})})]})};export{S 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.