import{K as e,Z as t,u as n}from"./link-D6qMr5cH.js";import{t as r}from"./useNavigate-DDQF457B.js";import{c as i}from"./Reveal-B5L63d2i.js";import{a}from"./site-DtkC9bu0.js";import{n as o}from"./camera-BnE_Ieg7.js";var s=t(e(),1),c=n(),l=[1,2,3,4,5];function u(){let e=r(),t=new Date().toISOString().split(`T`)[0],[n,u]=(0,s.useState)(``);return(0,c.jsx)(`div`,{className:`hj-container relative -mt-20 z-30`,children:(0,c.jsxs)(i.form,{id:`reservation`,initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:`hj-booking`,onSubmit:t=>{t.preventDefault(),e({to:`/reservation`})},children:[(0,c.jsxs)(`div`,{className:`hj-field`,children:[(0,c.jsx)(`label`,{htmlFor:`hj-nom`,children:`Nom`}),(0,c.jsx)(`input`,{id:`hj-nom`,type:`text`,name:`nom`,placeholder:`Votre nom`,required:!0})]}),(0,c.jsxs)(`div`,{className:`hj-field`,children:[(0,c.jsx)(`label`,{htmlFor:`hj-tel`,children:`Téléphone`}),(0,c.jsx)(`input`,{id:`hj-tel`,type:`tel`,name:`tel`,placeholder:`Téléphone`,required:!0})]}),(0,c.jsxs)(`div`,{className:`hj-field`,children:[(0,c.jsx)(`label`,{htmlFor:`hj-arr`,children:`Arrivée`}),(0,c.jsx)(`input`,{id:`hj-arr`,type:`date`,name:`date_arrivee`,min:t,value:n,onChange:e=>u(e.target.value),required:!0})]}),(0,c.jsxs)(`div`,{className:`hj-field`,children:[(0,c.jsx)(`label`,{htmlFor:`hj-dep`,children:`Départ`}),(0,c.jsx)(`input`,{id:`hj-dep`,type:`date`,name:`date_depart`,min:n||t,required:!0})]}),(0,c.jsxs)(`div`,{className:`hj-field`,children:[(0,c.jsx)(`label`,{htmlFor:`hj-type`,children:`Chambre`}),(0,c.jsxs)(`select`,{id:`hj-type`,name:`type`,defaultValue:``,required:!0,children:[(0,c.jsx)(`option`,{value:``,disabled:!0,children:`Type`}),a.map(e=>(0,c.jsx)(`option`,{value:e.slug,children:e.name},e.slug))]})]}),(0,c.jsxs)(`div`,{className:`hj-field`,children:[(0,c.jsx)(`label`,{htmlFor:`hj-adulte`,children:`Adultes`}),(0,c.jsxs)(`select`,{id:`hj-adulte`,name:`adulte`,defaultValue:``,required:!0,children:[(0,c.jsx)(`option`,{value:``,disabled:!0,children:`Adultes`}),l.map(e=>(0,c.jsx)(`option`,{value:e,children:e},e))]})]}),(0,c.jsxs)(`button`,{type:`submit`,className:`hj-btn hj-btn-primary hj-booking__submit`,children:[(0,c.jsx)(o,{size:16}),`Réserver maintenant`]})]})})}export{u as t};