PageSourceSearch

https://platform.franki.ai/_next/static/chunks/app/login/page-eee6911c39b88e8a.js

js franki.ai collected 2026-09-24 14:30:09 UTC 5,551 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2626],{76647:function(){},86384:function(e,s,r){Promise.resolve().then(r.bind(r,87094)),Promise.resolve().then(r.bind(r,5232)),Promise.resolve().then(r.bind(r,31407)),Promise.resolve().then(r.bind(r,23371)),Promise.resolve().then(r.bind(r,79237)),Promise.resolve().then(r.bind(r,51763)),Promise.resolve().then(r.bind(r,11808)),Promise.resolve().then(r.bind(r,69621)),Promise.resolve().then(r.bind(r,98731)),Promise.resolve().then(r.bind(r,62806)),Promise.resolve().then(r.bind(r,99371)),Promise.resolve().then(r.bind(r,21258)),Promise.resolve().then(r.bind(r,32738)),Promise.resolve().then(r.bind(r,9164)),Promise.resolve().then(r.bind(r,71495)),Promise.resolve().then(r.bind(r,70395)),Promise.resolve().then(r.bind(r,45083)),Promise.resolve().then(r.bind(r,17692)),Promise.resolve().then(r.bind(r,11463)),Promise.resolve().then(r.bind(r,65591)),Promise.resolve().then(r.bind(r,77272)),Promise.resolve().then(r.bind(r,72204)),Promise.resolve().then(r.bind(r,15444)),Promise.resolve().then(r.bind(r,42611)),Promise.resolve().then(r.bind(r,51590)),Promise.resolve().then(r.bind(r,58457)),Promise.resolve().then(r.bind(r,147)),Promise.resolve().then(r.bind(r,197)),Promise.resolve().then(r.bind(r,74169)),Promise.resolve().then(r.bind(r,27819)),Promise.resolve().then(r.bind(r,41888)),Promise.resolve().then(r.bind(r,34278)),Promise.resolve().then(r.bind(r,95542)),Promise.resolve().then(r.bind(r,67195)),Promise.resolve().then(r.bind(r,45109)),Promise.resolve().then(r.bind(r,45787)),Promise.resolve().then(r.bind(r,26538)),Promise.resolve().then(r.bind(r,23058)),Promise.resolve().then(r.bind(r,69728)),Promise.resolve().then(r.bind(r,83076)),Promise.resolve().then(r.bind(r,85055)),Promise.resolve().then(r.bind(r,44908)),Promise.resolve().then(r.bind(r,86825)),Promise.resolve().then(r.bind(r,27072)),Promise.resolve().then(r.bind(r,65072))},65072:function(e,s,r){"use strict";r.d(s,{default:function(){return j}});var o=r(57437),i=r(2265),n=r(29501),t=r(73842),l=r(34422),a=r(81463),d=r.n(a),m=r(7261),c=r(99376),h=r(68575),b=r(80605),v=r(27648),u=r(98214),_=r(56190),f=r(59646),P=r(33145),p=r(28513),g=r.n(p),x=r(40257);d().config();let y=l.Ry({email:l.Z_().required("El correo electr\xf3nico es requerido").email("El correo electr\xf3nico no es v\xe1lido"),password:l.Z_().required("La contrase\xf1a es requerida")}).required();function j(){var e,s;let r=(0,h.I0)(),[l,a]=(0,i.useState)(!1),[d,p]=(0,i.useState)(!1),j=(0,c.useSearchParams)().get("email"),{register:w,handleSubmit:N,resetField:k,formState:{errors:I}}=(0,n.cI)({resolver:(0,t.X)(y)}),C=async e=>{a(!0);try{let s=await fetch("".concat("https://85tfoo6y8a.execute-api.us-east-1.amazonaws.com/v1","/users/auth"),{method:"POST",headers:{"Content-Type":"application/json","x-api-key":x.env.X_API_KEY},body:JSON.stringify(e)});if(s.ok){let o=await s.json();r({type:"LOGIN",payload:o}),await (0,b.signIn)("credentials",{redirect:!0,email:e.email,password:e.password,callbackUrl:"/dashboard/home"}),m.Am.success("!Bienvenido, ".concat(o.name,"!"))}else{let e=await s.json().then(e=>e.message);k("password"),m.Am.error(e),a(!1)}}catch(e){m.Am.error("Ocurri\xf3 un error al crear el usuario"),console.error(e),a(!1)}};return(0,o.jsx)("div",{className:g().page,children:(0,o.jsx)("div",{className:g().form__container,children:(0,o.jsxs)("form",{className:g().form,onSubmit:N(C),children:[(0,o.jsx)(P.default,{alt:"Franki logo – Franki AI",height:120,src:"/images/logo2.png",width:120}),(0,o.jsxs)("div",{style:{alignSelf:"baseline"},children:[(0,o.jsx)("h1",{className:g().form__title,children:"Inicia sesi\xf3n"}),(0,o.jsx)("p",{className:g().form__subtitle,children:"Para empezar a gestionar a tu personal"})]}),(0,o.jsx)(u.Y,{...w("email"),defaultValue:j,errorMessage:null===(e=I.email)||void 0===e?void 0:e.message,isInvalid:!!I.email,label:"Correo electr\xf3nico",type:"email"}),(0,o.jsxs)("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:8},children:[(0,o.jsx)(u.Y,{...w("password"),endContent:(0,o.jsx)("button",{"aria-label":d?"Ocultar contrase\xf1a":"Mostrar c
1ontrase\xf1a",className:"focus:outline-none",onClick:()=>p(e=>!e),type:"button",children:(0,o.jsx)(f.JO,{className:"text-2xl text-default-400 pointer-events-none",icon:d?"material-symbols:visibility-off-outline-rounded":"material-symbols:visibility-outline"})}),errorMessage:null===(s=I.password)||void 0===s?void 0:s.message,isInvalid:!!I.password,label:"Contrase\xf1a",type:d?"text":"password"}),(0,o.jsx)(v.default,{className:g().link,href:"/forgot_password",style:{alignSelf:"flex-end",pointerEvents:l?"none":"auto"},children:"\xbfOlvidaste tu contrase\xf1a?"})]}),(0,o.jsx)(_.A,{fullWidth:!0,isLoading:l,style:{backgroundColor:"#573cff",color:"white"},type:"submit",children:"Iniciar sesi\xf3n"}),(0,o.jsxs)("span",{className:g().form__subtitle,children:["\xbfNo tienes una cuenta?",(0,o.jsxs)(v.default,{className:g().link,href:"/signup",style:{pointerEvents:l?"none":"auto"},children:[" "," Reg\xedstrate"]})]})]})})})}},28513:function(e){e.exports={page:"Form_page__en_s7",form__container:"Form_form__container__QCbhI",form:"Form_form__0Qe4i",form__title:"Form_form__title__5XblQ",form__subtitle:"Form_form__subtitle___MW6y",link:"Form_link__av4N9"}}},function(e){e.O(0,[9093,8218,423,605,1250,1391,4847,7261,8519,9646,6018,429,3622,598,59,7081,4800,5833,2832,7829,6519,3297,5476,9644,4659,3846,2295,7003,7648,3145,2150,7591,8095,8470,3649,6229,5944,7577,7314,353,3276,7747,2971,2117,1744],function(){return e(e.s=86384)}),_N_E=e.O()}]);

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.