PageSourceSearch

https://ccfc-france-canada.com/_nuxt/C9VWEm5h.js

js ccfc-france-canada.com collected 2026-10-02 11:53:13 UTC 1,854 bytes, 1 lines download raw bytes

1import{d as x,l as y,m as v,h as g,o as u,c as m,a,t as o,u as e,C as w,ba as k,bb as T,z as j,b as q,x as c,H as B,e as C}from"./DhOnfbhC.js";const P={class:"flex min-h-[60vh] items-center justify-center px-4"},S={class:"w-full max-w-sm"},U={class:"mb-8 text-center text-2xl font-bold text-surface"},V={for:"email",class:"mb-2 block text-sm font-medium text-surface"},D=["placeholder"],E=["disabled"],M={class:"mt-4 text-sm italic text-surface/70"},N={key:0,class:"mt-4 text-center text-sm text-error"},H=x({__name:"index",setup(R){const{t,locale:p}=y(),f=v(),h=g(),l=c(""),r=c(""),i=c(!1),n=C(()=>f.query.redirect||"/");async function _(){r.value="",i.value=!0;try{const s=await $fetch("/api/auth/send-code",{method:"POST",body:{email:l.value,redirectUri:n.value,locale:p.value}});await B({path:h({name:"login_email_validation"}),query:{jwtToken:s.jwtToken,redirect:n.value}})}catch(s){r.value=s.data?.message||t("auth.error_send")}finally{i.value=!1}}return(s,d)=>(u(),m("div",P,[a("div",S,[a("h1",U,o(e(t)("auth.login")),1),a("form",{onSubmit:w(_,["prevent"])},[a("label",V,o(e(t)("auth.email_label")),1),k(a("input",{id:"email","onUpdate:modelValue":d[0]||(d[0]=b=>j(l)?l.value=b:null),type:"email",required:"",autocomplete:"email",placeholder:e(t)("auth.email_placeholder"),class:"mb-4 block w-full rounded-lg border border-secondary/30 bg-surface px-4 py-3 text-surface placeholder:text-surface/50 focus:border-primary focus:outline-hidden focus:ring-1 focus:ring-primary"},null,8,D),[[T,e(l)]]),a("button",{type:"submit",disabled:e(i),class:"w-full rounded-lg bg-primary px-4 py-3 font-semibold text-surface transition-opacity hover:opacity-90 disabled:opacity-50"},o(e(i)?e(t)("auth.sending"):e(t)("auth.send_code")),9,E),a("p",M,o(e(t)("auth.email_delivery_notice")),1)],32),e(r)?(u(),m("p",N,o(e(r)),1)):q("",!0)])]))}});export{H 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.