PageSourceSearch

https://eanfh.com/_nuxt/C3Pta5pn2.js

js eanfh.com collected 2026-10-07 15:13:43 UTC 5,266 bytes, 1 lines download raw bytes

1import{F as e,Hn as t,I as n,K as r,L as i,P as a,Pn as o,Qn as s,U as c,W as l,bn as u,jt as d,ln as f,un as p}from"./CfXQ67Ap.js";import{jt as m,s as h}from"./dKkT67J6.js";import{p as g}from"./CXv632Bp.js";import{n as _}from"./CTr2vxa9.js";import{r as v}from"./BviLmwhH.js";import{n as y}from"./CGlB-sz8.js";import{H as b,t as x}from"./CbEMAygJ.js";import{n as S}from"./CM4wytUM.js";import{i as C,n as w}from"./CKcA3jmu.js";import{t as T}from"./CPxGtK3N.js";import{t as E}from"./uhHQ5pCt.js";import{t as D}from"./Caetv7DR2.js";import{t as O}from"./BNHO7i-Q2.js";import{t as k}from"./BDNMzG2s2.js";import{t as A}from"./BW7t7Ab82.js";import{t as j}from"./DD_VNZo6.js";import{t as M}from"./Bzca0K-q.js";import{t as N}from"./CNs_Ozdc.js";import{t as P}from"./DAgPFtu22.js";var F={key:0,class:`block text-center`},I={class:`w-full`},L=Object.assign(r({__name:`CatalogDelegationsList`,async setup(t){let r,o,m=T(),{host:g}=y({xForwardedHost:!0}),{data:_}=([r,o]=f(()=>h(`public_delegations`,()=>m(`/delegations/public`,{params:{domain:g}}))),r=await r,o(),r);return(t,r)=>{let o=M,f=b;return s(_)?.data?.code?(d(),i(`div`,F,[l(o,null,{default:p(()=>[...r[0]||=[c(`Accès au catalogue de formation`,-1)]]),_:1}),r[1]||=a(`p`,{class:`mb-6 text-left text-sm`},` Vous pouvez consulter le catalogue des formations sans vous connecter en cliquant sur le bouton ci-dessous. `,-1),a(`div`,I,[(d(),e(f,{key:s(_).data.code,to:`/catalogue/${s(_).data.code}`,class:`block w-full rounded-sm border border-gray-200 bg-white p-2 font-medium hover:bg-gray-100`,external:!0},{default:p(()=>[c(` Accéder au catalogue `+u(s(_).data.name),1)]),_:1},8,[`to`]))])])):n(``,!0)}}}),{__name:`CatalogDelegationsList`}),R={class:`flex h-full w-full flex-col items-center justify-center gap-y-4`},z={class:`text-center`},B={class:`mx-4 w-full max-w-[600px]`},V={class:`rounded bg-white p-4`},H={class:`mb-4`},U={key:0},W={class:`mb-4`},G={class:`mb-2 flex w-full items-center justify-between`},K={key:0,class:`text-sm text-red-500`,name:`password`},q={class:`text-center`},J={class:`flex w-full flex-col items-center text-center`},Y={class:`relative inline-flex items-center justify-center`},X={key:0,class:`rounded-b bg-red-500 px-4 py-2 text-center text-xs font-bold text-white`},Z=k(r({__name:`login`,setup(r){N({layout:`login`}),v({title:`Connexion`});let{login:u}=E(),f=!S(`/mot-de-passe-oublie`),h=t(``),y=t(``),T=t(``),k=t(``),M=t(!1),F=t([]),I=t(null);function Z(){T.value=``,I.value?.reset()}let Q=w({identifier:C().required().min(3),password:C().required()});async function $(){if(!M.value){F.value=[],k.value=``;try{await Q.validate({identifier:h.value,password:y.value},{abortEarly:!1})}catch(e){F.value=[...new Set(e.inner.map(e=>e.path))];return}M.value=!0;try{let{success:e}=await _(`/_turnstile/validate`,{method:`POST`,body:{token:T.value}});if(!e)return Z(),O().add({title:`La vérification anti-robot n'a pas abouti`,description:`Merci de patienter quelques instants puis de réessayer.`,color:`error`,icon:`i-lucide-alert-triangle`});await u({identifier:h.value,password:y.value}),k.value=`success`,g(`/`,{external:!0})}catch(e){Z(),e?.error?.status===400?k.value=`error`:O().add({title:`Connexion impossible`,description:`Le service est momentanément indisponible. Merci de réessayer dans quelques instants.`,color:`error`,icon:`i-lucide-alert-triangle`})}finally{M.value=!1}}}return(t,r)=>{let u=j,g=A,_=D,v=b,S=P,C=x,w=L;return d(),i(`div`,R,[a(`div`,z,[l(u,null,{default:p(()=>[...r[3]||=[c(`ANFH PLATeFORM`,-1)]]),_:1})]),a(`main`,B,[a(`div`,V,[l(g,null,{default:p(()=>[...r[4]||=[c(` Connexion `,-1)]]),_:1}),a(`form`,{class:`mt-8 space-y-8`,onSubmit:m($,[`prevent`])},[a(`div`,H,[r[6]||=a(`label`,{class:`mb-2 block`,for:`identifier`},`Identifiant`,-1),l(_,{modelValue:s(h),"onUpdate:modelValue":r[0]||=e=>o(h)?h.value=e:null,placeholder:`Identifiant`,name:`identifier`,class:`w-full`,size:`lg`},null,8,[`modelValue`]),s(F).includes(`identifier`)?(d(),i(`div`,U,[...r[5]||=[a(`p`,{class:`mt-1 text-right text-xs text-red-500`},` Merci d'entrer un identifiant valide. `,-1)]])):n(``,!0)]),a(`div`,W,[a(`div`,G,[r[8]||=a(`label`,{class:`block`,for:`identifier`},`Mot de passe`,-1),f?(d(),e(v,{key:0,tabindex:`-1`,to:{name:`mot-de-passe-oublie`},class:`text-xs font-bold text-blue-600 underline`},{default:p(()=>[...r[7]||=[c(` Mot de passe oublié ? `,-1)]]),_:1})):n(``,!0)]),l(_,{modelValue:s(y),"onUpdate:modelValue":r[1]||=e=>o(y)?y.value=e:null,type:`password`,name:`password`,placeholder:`Mot de passe`,class:`w-full`,size:`lg`},null,8,[`modelValue`]),s(F).includes(`password`)?(d(),i(`div`,K,[...r[9]||=[a(`p`,{class:`mt-1 text-right text-xs text-red-500`},` Merci d'entrer un mot de passe valide. `,-1)]])):n(``,!0)]),a(`div`,q,[l(S,{ref_key:`turnstileWidget`,ref:I,modelValue:s(T),"onUpdate:modelValue":r[2]||=e=>o(T)?T.value=e:null},null,8,[`modelValue`])]),a(`div`,J,[a(`div`,Y,[l(C,{class:`mx-auto`,type:`submit`,disabled:s(k)===`success`||s(M),loading:s(M)},{default:p(()=>[...r[10]||=[c(` Se connecter `,-1)]]),_:1},8,[`disabled`,`loading`])])])],32)]),s(k)===`error`?(d(),i(`p`,X,` Connexion impossible - vérifiez l'identifiant et le mot de passe entrés. `)):n(``,!0),l(w,{class:`mt-12`})])])}}}),[[`__scopeId`,`data-v-6884f1ae`]]);export{Z 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.