PageSourceSearch

https://app.ethicog.ai/_nuxt/BDudaWef.js

js ethicog.ai collected 2026-10-05 15:34:37 UTC 2,863 bytes, 1 lines download raw bytes

1import{_ as k}from"./C0Pvca99.js";import{_ as C}from"./D6PF6Rvr.js";import{Y as E,a6 as N,b9 as B,c as S,r as u,g as V,k as r,a4 as $,e as p,i,Z as e,d as q,h as I,y as l,p as _,n as L,q as m,X as T}from"./9h935L-y.js";import{_ as U}from"./DDjEV527.js";import{_ as D}from"./C73ufj0m.js";import{u as F}from"./CIM23vS7.js";import"./BnCRKFSa.js";import"./BwfvUUth.js";import"./7PtWc7Km.js";import"./iv0QJbbB.js";import"./CrMrkssR.js";import"./Db764XlN.js";import"./TAgu7HZC.js";import"./Dsi2VH74.js";import"./CjPJrol2.js";import"./BieV-ceV.js";import"./DlDJFx8X.js";import"./Bqb6dX_J.js";import"./M-1EgL-0.js";import"./wR52EOm_.js";import"./DEyu9955.js";const P={class:"flex justify-between items-center"},j={class:"mt-4"},lt=E({__name:"forgot-password",setup(z){const{t}=N(),d=B();F({title:()=>`${t("auth.forgot_password_title")} - ethicog.ai`,ogTitle:()=>`${t("auth.forgot_password_title")} - ethicog.ai`,description:()=>t("auth.forgot_password_title"),ogDescription:()=>t("auth.forgot_password_title")});const g=S(()=>[{name:"email",type:"email",label:t("auth.email"),placeholder:t("auth.placeholders.email"),value:$().query.email||""}]),f=s=>{const o=[];return s.email||o.push({path:"email",message:t("auth.validation.required_email")}),o},n=u(!1),a=u("");async function h(s){n.value=!0,a.value="";try{const{error:o}=await d.auth.resetPasswordForEmail(s,{redirectTo:window.location.origin+"/reset-password"});if(o)throw o;a.value=t("auth.messages.reset_sent")}catch(o){console.error("Erreur lors de la réinitialisation:",o),a.value=t("auth.messages.reset_error")}finally{n.value=!1}}async function w(s){await h(s.email)}return(s,o)=>{const b=k,x=C,c=T,y=U,v=D;return p(),V(v,{class:"max-w-sm w-full bg-white backdrop-blur"},{header:r(()=>[_("div",P,[i(b,{variant:"solid",label:e(t)("auth.forgot_password_title"),class:"bg-primary-50 text-primary-500 ring-1 ring-inset ring-primary-500 ring-opacity-25"},null,8,["label"])])]),default:r(()=>[i(x,{src:"/logos/logo.png",alt:"Logo Ethicog",class:"w-1/2 mx-auto"}),i(y,{class:"mt-5",fields:e(g),validate:f,align:"top",ui:{base:"text-center",footer:"text-center"},divider:e(t)("common.or"),"submit-button":{trailingIcon:"i-heroicons-arrow-right-20-solid",label:e(t)("auth.send_reset_email"),loading:e(n),disabled:e(n)},onSubmit:w},{footer:r(()=>[e(a)?(p(),q("p",{key:0,class:L(["mt-2",{"text-green-600":!e(a).includes("Erreur"),"text-red-600":e(a).includes("Erreur")}])},m(e(a)),3)):I("",!0),l(" "+m(e(t)("auth.terms.acceptance"))+" ",1),i(c,{to:"https://ethicog.ai/conditions-generales-dutilisation",class:"text-primary font-medium"},{default:r(()=>[l(m(e(t)("auth.terms.link")),1)]),_:1}),o[0]||(o[0]=l(". ")),_("div",j,[i(c,{to:"/login",class:"text-primary font-medium"},{default:r(()=>[l(m(e(t)("auth.back_to_login")),1)]),_:1})])]),_:1},8,["fields","divider","submit-button"])]),_:1})}}});
1export{lt 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.