PageSourceSearch

https://fixie.digital/assets/NuevaPassword-BdCWXWLA.js

js fixie.digital collected 2026-10-04 14:33:04 UTC 3,413 bytes, 1 lines download raw bytes

1import{j as e,s as g}from"./index-M5i7n0tf.js";import{u as y,b as r}from"./vendor-react-CMHnv8wr.js";import{u as N}from"./index-CWjD9390.js";import{E as x}from"./eye-off-BPKv3G_4.js";import{E as h}from"./eye-CJH6K6bp.js";import"./vendor-supabase-B9q_TACa.js";import"./es-yVa5ZHJ0.js";import"./en-Dal21Gob.js";function q(){const t=N("ajustes"),p=y(),[a,b]=r.useState(""),[l,f]=r.useState(""),[n,w]=r.useState(!1),[i,v]=r.useState(!1),[d,o]=r.useState(""),[c,u]=r.useState(!1);async function j(s){if(s.preventDefault(),o(""),a.length<8){o(t.npErrMin8);return}if(a!==l){o(t.npErrNoCoinciden);return}u(!0);const{error:m}=await g.auth.updateUser({password:a});if(u(!1),m){o(m.message);return}p("/agente/login",{replace:!0})}return e.jsx("div",{className:"min-h-screen bg-darker flex items-center justify-center px-4",children:e.jsxs("div",{className:"w-full max-w-md",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-cyan/20 mb-4",children:e.jsx("svg",{className:"w-7 h-7 text-cyan",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),e.jsx("h1",{className:"text-2xl font-bold text-white",children:t.nuevaPassword}),e.jsx("p",{className:"text-white/50 mt-1 text-sm",children:t.npSubtitulo})]}),e.jsxs("form",{onSubmit:j,className:"bg-dark border border-white/10 rounded-2xl p-8 space-y-5",children:[d&&e.jsx("div",{className:"bg-red-500/10 border border-red-500/30 text-red-400 text-sm rounded-xl px-4 py-3",children:d}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"nueva-password",className:"block text-sm text-white/60 mb-2",children:t.nuevaPassword}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{id:"nueva-password",type:n?"text":"password",value:a,onChange:s=>b(s.target.value),required:!0,minLength:8,className:"w-full bg-darker border border-white/10 rounded-xl px-4 py-3 pr-11 text-white placeholder-white/30 focus:outline-none focus:border-cyan transition-colors",placeholder:t.npPlaceholderMin8}),e.jsx("button",{type:"button",onClick:()=>w(!n),className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/40 hover:text-white/70 transition-colors",children:n?e.jsx(x,{size:18}):e.jsx(h,{size:18})})]})]}),e.jsxs("div",{children:[e.jsx("label",{htmlFor:"confirmar-password",className:"block text-sm text-white/60 mb-2",children:t.confirmarPassword}),e.jsxs("div",{className:"relative",children:[e.jsx("input",{id:"confirmar-password",type:i?"text":"password",value:l,onChange:s=>f(s.target.value),required:!0,minLength:8,className:"w-full bg-darker border border-white/10 rounded-xl px-4 py-3 pr-11 text-white placeholder-white/30 focus:outline-none focus:border-cyan transition-colors",placeholder:t.npPlaceholderRepite}),e.jsx("button",{type:"button",onClick:()=>v(!i),className:"absolute right-3 top-1/2 -translate-y-1/2 text-white/40 hover:text-white/70 transition-colors",children:i?e.jsx(x,{size:18}):e.jsx(h,{size:18})})]})]}),e.jsx("button",{type:"submit",disabled:c,className:"w-full bg-cyan hover:bg-cyan/90 disabled:opacity-50 disabled:cursor-not-allowed text-darker font-semibold rounded-xl py-3 transition-all",children:c?t.guardando:t.npGuardar})]})]})})}export{q 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.