PageSourceSearch

https://aventuresanatoliennes.com/assets/RetourSubmitPage-BouAAYSx.js

js aventuresanatoliennes.com collected 2026-10-09 22:00:20 UTC 2,398 bytes, 1 lines download raw bytes

1import{b as s,j as e,L as j}from"./vendor-M-Kp4sv9.js";import{u as y,e as w,a as c,t as n,f as S}from"./index-BClERSlV.js";function A(){const{lang:x}=y();w(x);const o=typeof window>"u"?"":window.location.hash.replace(/^#/,""),p=s.useRef(Date.now()),[a,m]=s.useState(null),[d,h]=s.useState(""),[u,g]=s.useState(""),[r,i]=s.useState("loading"),[b,l]=s.useState("");s.useEffect(()=>{c.getRetourInvitation(o).then(t=>{m(t),i("ready")}).catch(t=>{l(t.message),i("error")})},[o]);async function f(t){if(t.preventDefault(),!(d.trim().length<10)){i("sending");try{await c.submitRetour(o,{body:d.trim(),_website:u,_startedAt:p.current}),i("sent")}catch(v){l(v.message),i("error")}}}return e.jsxs("main",{style:{minHeight:"100vh",background:"#f4efe5",padding:"clamp(32px,8vw,96px) 20px"},children:[e.jsxs("section",{style:{maxWidth:680,margin:"0 auto",background:"#fff",padding:"clamp(24px,5vw,52px)",borderRadius:16},children:[e.jsx(j,{to:"/",children:"Aventures Anatoliennes"}),e.jsx("h1",{style:{fontFamily:"serif",fontSize:"clamp(34px,6vw,56px)"},children:n("Votre retour de voyage")}),r==="loading"&&e.jsx("p",{children:n("Vérification de votre invitation…")}),a&&r!=="sent"&&e.jsxs("p",{children:[e.jsx("strong",{children:a.authorDisplayName}),e.jsx("br",{}),a.tourName," · ",a.tourDate]}),(r==="ready"||r==="sending")&&e.jsxs("form",{onSubmit:f,children:[e.jsx("label",{htmlFor:"retour-body",children:n("Racontez-nous votre expérience")}),e.jsx("textarea",{id:"retour-body",required:!0,minLength:10,maxLength:4e3,rows:10,value:d,onChange:t=>h(t.target.value),style:{width:"100%",margin:"12px 0",padding:12}}),e.jsxs("div",{"aria-hidden":"true",style:{position:"absolute",left:"-10000px"},children:[e.jsx("label",{htmlFor:"retour-website",children:n("Site web")}),e.jsx("input",{id:"retour-website",tabIndex:-1,autoComplete:"off",value:u,onChange:t=>g(t.target.value)})]}),e.jsx("p",{style:{color:"#666"},children:n("Votre texte sera relu avant publication. Aucun score ni classement n’est demandé.")}),e.jsx("button",{type:"submit",disabled:r==="sending",children:r==="sending"?n("Envoi…"):n("Envoyer mon retour")})]}),r==="sent"&&e.jsx("p",{children:n("Merci. Votre retour a bien été reçu et sera vérifié avant publication.")}),r==="error"&&e.jsx("p",{role:"alert",children:b||n("Cette invitation est invalide, expirée ou déjà utilisée.")})]}),e.jsx(S,{})]})}export{A 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.