1import{i as b,d as r,K as w,e as v,a as e,A as C,t as o,_ as k,p as y,l as i,v as d,f as g,o as m}from"./app-CukXW0Ft.js";import{u as j}from"./useLanguage-BetoxnGj.js";const D={class:"relative w-full overflow-hidden",style:{"background-color":"#2E0513"}},N={class:"relative z-10 w-full max-w-[1320px] mx-auto px-4 sm:px-8 lg:px-16 py-[60px] flex flex-col lg:flex-row gap-16 lg:gap-0"},E={class:"lg:absolute lg:top-[509px] lg:left-[120px] lg:w-[440px] flex flex-col gap-12 mt-[460px] lg:mt-0"},M={class:"text-[28px] sm:text-[32px] lg:text-[39px] font-bold font-['Caviar_Dreams'] leading-[120%] text-white"},S={class:"flex items-start gap-6"},P={class:"flex flex-col gap-1.5"},L={class:"text-[17px] font-normal font-['Caviar_Dreams'] tracking-[0.75px] text-[#a7a7a7]"},V={class:"text-[22px] font-bold font-['Caviar_Dreams'] text-white"},q={class:"flex items-start gap-6"},z={class:"flex flex-col gap-1.5"},A={class:"text-[17px] font-normal font-['Caviar_Dreams'] tracking-[0.75px] text-[#a7a7a7]"},B={class:"text-[22px] font-bold font-['Caviar_Dreams'] text-white"},T={class:"flex items-start gap-6"},U={class:"flex flex-col gap-1.5"},F={class:"text-[17px] font-normal font-['Caviar_Dreams'] tracking-[0.75px] text-[#a7a7a7]"},O={class:"text-[22px] font-bold font-['Caviar_Dreams'] text-white"},I={class:"w-full lg:ml-auto lg:w-[657px] lg:mt-[369px]"},Z={class:"w-full text-[39px] font-bold font-['Caviar_Dreams'] leading-[120%] text-black"},H={class:"w-full flex flex-col gap-4"},W={class:"w-full flex flex-col sm:flex-row gap-4"},K={class:"flex-1 flex flex-col gap-2"},R={class:"text-[16px] font-bold font-['Caviar_Dreams'] leading-[150%] text-[#012232]"},Y=["placeholder"],J={class:"flex-1 flex flex-col gap-2"},X={class:"text-[16px] font-bold font-['Caviar_Dreams'] leading-[150%] text-[#012232]"},$=["placeholder"],G={class:"w-full flex flex-col sm:flex-row gap-4"},Q={class:"flex-1 flex flex-col gap-2"},ee={class:"text-[16px] font-bold font-['Caviar_Dreams'] leading-[150%] text-[#012232]"},te=["placeholder"],se={class:"flex-1 flex flex-col gap-2"},ae=["placeholder"],oe={class:"flex flex-col gap-2"},le={class:"text-[16px] font-bold font-['Caviar_Dreams'] leading-[150%] text-[#012232]"},ne=["placeholder"],re={class:"flex flex-col gap-2"},ie={class:"text-[16px] font-bold font-['Caviar_Dreams'] leading-[150%] text-[#012232]"},de=["placeholder"],ue=["disabled"],ce={class:"text-[16px] font-bold font-['Caviar_Dreams'] leading-[150%] text-white"},fe={key:0,width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},pe={key:0,class:"text-green-600 text-sm font-['Caviar_Dreams']"},xe={key:1,class:"text-red-500 text-sm font-['Caviar_Dreams']"},ge={__name:"ContactForm",props:{language:{type:String,default:"fr"}},setup(ve){const{currentLanguage:a}=j(),s=b(()=>({contactInfo:a.value==="en"?"Our contact information":"Nos informations de contact",address:a.value==="en"?"Address":"Adresse",email:a.value==="en"?"Email":"Adresse mail",phone:a.value==="en"?"Phone / WhatsApp":"Téléphone / WhatsApp",fillForm:a.value==="en"?"Or Fill in the form":"Ou Remplissez le formulaire",lastName:a.value==="en"?"Last Name":"Nom",lastNamePlaceholder:a.value==="en"?"Enter your last name":"Entrez votre nom",firstName:a.value==="en"?"First Name":"Prénom",firstNamePlaceholder:a.value==="en"?"Enter your first name":"Entrez votre prénom",phonePlaceholder:(a.value==="en","Ex: +237 698 745 745"),emailPlaceholder:(a.value==="en","Ex: [email protected]"),subject:a.value==="en"?"Contact Subject":"Sujet du contact",subjectPlaceholder:a.value==="en"?"Subject of your message":"Sujet de votre message",message:(a.value==="en","Message"),messagePlaceholder:a.value==="en"?"Write your message...":"Ecrivez votre message ...",send:a.value==="en"?"Send":"Envoyer",sending:a.value==="en"?"Sending...":"Envoi en cours...",successMessage:a.value==="en"?"Your message has been sent successfully!":"Votre message a été envoyé avec succès !",errorMessage:a.value==="en"?"An error occurred":"Une erreur est survenue",phoneLabel:a.value==="en"?"Phone":"Téléphone"})),u=r({address:"",email:"",phone:""}),p=r(null);w(async()=>{try{const t=await(await fetch("/contact-info")).json();u.value=t,p.value=t.hero_image??"/assets/contact.jpg"}catch{u.value={address:"Yaoundé - Cameroun",email:"[email protected]",phone:"(+237) 222 230 128"},p.value="/assets/contact.jpg"}});const l=r({lastName:"",firstName:"",phone:"",email:"",subject:"",message:""}),c=r(!1),x=r(null),h=r(!1);async function _(){var f;try{c.value=!0,x.value=null,h.value=!1;const t=(f=document.querySelector('meta[name="csrf-token"]'))==null?void 0:f.content;if(!(await fetch("/contactform",{method:"POST",headers:{"Content-Type":"application/json","X-CSRF-TOKEN":t??""},body:JSON.stringify(l.value)})).ok)throw new Error(s.value.errorMessage);h.value=!0,l.value={lastName:"",firstName:"",phone:"",email:"",subject:"",message:""}}catch(t){x.value=t instanceof Error?t.message:s.value.errorMessage}finally{c.value=!1}}return(f,t)=>(m(),v("div",D,[e("div",{class:"absolute top-0 left-0 w-full h-[509px] bg-cover bg-center bg-no-repeat",style:C(p.value?{backgroundImage:`url(${p.value})`}:{backgroundColor:"#1a000b"})},null,4),t[12]||(t[12]=e("div",{class:"absolute top-0 left-0 w-full h-[509px] bg-black/40"},null,-1)),e("div",N,[e("div",E,[e("h1",M,o(s.value.contactInfo),1
1),t[9]||(t[9]=e("div",{class:"h-0 border-t-2 border-[#b3124a] mb-[12px]"},null,-1)),e("div",S,[t[6]||(t[6]=e("div",{class:"w-[66px] h-[66px] shrink-0 bg-white/10 border border-white rounded-xl flex items-center justify-center"},[e("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none"},[e("path",{d:"M18 33C18 33 30 24.75 30 15C30 8.37258 24.6274 3 18 3C11.3726 3 6 8.37258 6 15C6 24.75 18 33 18 33Z",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),e("path",{d:"M18 19.5C20.4853 19.5 22.5 17.4853 22.5 15C22.5 12.5147 20.4853 10.5 18 10.5C15.5147 10.5 13.5 12.5147 13.5 15C13.5 17.4853 15.5147 19.5 18 19.5Z",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("div",P,[e("span",L,o(s.value.address),1),e("span",V,o(u.value.address),1)])]),e("div",q,[t[7]||(t[7]=k('<div class="w-[66px] h-[66px] shrink-0 bg-white/10 border border-white rounded-xl flex items-center justify-center"><svg width="36" height="36" viewBox="0 0 36 36" fill="none"><path d="M18 33C25.4558 33 31.5 26.9558 31.5 19.5C31.5 12.0442 25.4558 6 18 6C10.5442 6 4.5 12.0442 4.5 19.5C4.5 26.9558 10.5442 33 18 33Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.5 19.5H31.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M18 33C21.7279 33 25.5 26.9558 25.5 19.5C25.5 12.0442 21.7279 6 18 6C14.2721 6 10.5 12.0442 10.5 19.5C10.5 26.9558 14.2721 33 18 33Z" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg></div>',1)),e("div",z,[e("span",A,o(s.value.email),1),e("span",B,o(u.value.email),1)])]),e("div",T,[t[8]||(t[8]=e("div",{class:"w-[66px] h-[66px] shrink-0 bg-white/10 border border-white rounded-xl flex items-center justify-center"},[e("svg",{width:"36",height:"36",viewBox:"0 0 36 36",fill:"none"},[e("path",{d:"M10.5 6H13.5L15 12L12.75 13.5C14.409 16.7123 17.2877 19.591 20.5 21.25L22.5 18L28.5 19.5V22.5C28.5 23.6935 28.0259 24.8381 27.182 25.682C26.3381 26.5259 25.1935 27 24 27C18.201 27 12.879 24.471 9.221 20.779C5.529 17.121 3 11.799 3 6C3 4.80653 3.47411 3.66193 4.31802 2.81802C5.16193 1.97411 6.30653 1.5 7.5 1.5H10.5C11.2956 1.5 12.0587 1.81607 12.6213 2.37868C13.1839 2.94129 13.5 3.70435 13.5 4.5V9C13.5 9.79565 13.1839 10.5587 12.6213 11.1213C12.0587 11.6839 11.2956 12 10.5 12L10.5 6Z",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("div",U,[e("span",F,o(s.value.phone),1),e("span",O,o(u.value.phone),1)])])]),e("div",I,[e("form",{onSubmit:y(_,["prevent"]),class:"bg-white border border-[#76827a] rounded-2xl flex flex-col items-start p-8 gap-8",novalidate:""},[e("h1",Z,o(s.value.fillForm),1),e("div",H,[e("div",W,[e("div",K,[e("label",R,o(s.value.lastName),1),i(e("input",{"onUpdate:modelValue":t[0]||(t[0]=n=>l.value.lastName=n),type:"text",placeholder:s.value.lastNamePlaceholder,required:"",class:"w-full h-14 bg-[#fef1f5] rounded-lg px-4 text-[16px] font-['Caviar_Dreams'] text-[#76827a] focus:outline-none focus:ring-2 focus:ring-rose-300"},null,8,Y),[[d,l.value.lastName]])]),e("div",J,[e("label",X,o(s.value.firstName),1),i(e("input",{"onUpdate:modelValue":t[1]||(t[1]=n=>l.value.firstName=n),type:"text",placeholder:s.value.firstNamePlaceholder,required:"",class:"w-full h-14 bg-[#fef1f5] rounded-lg px-4 text-[16px] font-['Caviar_Dreams'] text-[#76827a] focus:outline-none focus:ring-2 focus:ring-rose-300"},null,8,$),[[d,l.value.firstName]])])]),e("div",G,[e("div",Q,[e("label",ee,o(s.value.phoneLabel),1),i(e("input",{"onUpdate:modelValue":t[2]||(t[2]=n=>l.value.phone=n),type:"tel",placeholder:s.value.phonePlaceholder,required:"",class:"w-full h-14 bg-[#fef1f5] rounded-lg px-4 text-[16px] font-['Caviar_Dreams'] text-[#76827a] focus:outline-none focus:ring-2 focus:ring-rose-300"},null,8,te),[[d,l.value.phone]])]),e("div",se,[t[10]||(t[10]=e("label",{class:"text-[16px] font-bold font-['Caviar_Dreams'] leading-[150%] text-[#012232]"},"Email",-1)),i(e("input",{"onUpdate:modelValue":t[3]||(t[3]=n=>l.value.email=n),type:"email",placeholder:s.value.emailPlaceholder,required:"",class:"w-full h-14 bg-[#fef1f5] rounded-lg px-4 text-[16px] font-['Caviar_Dreams'] text-[#76827a] focus:outline-none focus:ring-2 focus:ring-rose-300"},null,8,ae),[[d,l.value.email]])])]),e("div",oe,[e("label",le,o(s.value.subject),1),i(e("input",{"onUpdate:modelValue":t[4]||(t[4]=n=>l.value.subject=n),type:"text",placeholder:s.value.subjectPlaceholder,required:"",class:"w-full h-14 bg-[#fef1f5] rounded-lg px-4 text-[16px] font-['Caviar_Dreams'] text-[#76827a] focus:outline-none focus:ring-2 focus:ring-rose-300"},null,8,ne),[[d,l.value.subject]])]),e("div",re,[e("label",ie,o(s.value.message),1),i(e("textarea",{"onUpdate:modelValue":t[5]||(t[5]=n=>l.value.message=n),placeholder:s.value.messagePlaceholder,required:"",rows:"5",class:"w-full bg-[#fef1f5] rounded-lg px-4 py-4 text-[16px] font-['Caviar_Dreams'] text-[#76827a] focus:outline-none focus:ring-2 focus:ring-rose-300 resize-none"},null,8,de),[[d,l.value.message]])])]),e("button",{type:"submit",disabled:c.value,class:"h-14 px-8 py-4 bg-gradient-to-r from-[#cf4b73] to-[#b00b45] rounded-lg flex items-center gap-2 hover:opacity-90 transition-opacity disabled:opacity-50"},[e("span",ce,o(c.value?s.value.sending:s.value.send),1),c.value?g("",!0):(m(),v("svg",fe,t[11]||(t[11]=[e("path",{d:"M14 5L21 12L14 19",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e("path",{d:"M3 12H21",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))],8,ue),h.value?(m(),v("p",pe,o(s.value.successMessage),1)):g("",!0),x.value?(m(),v("p",xe,o(x.value),1)):g("",!0)],32)])])]))}};export{ge 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.