PageSourceSearch

https://fove.co/_nuxt/BXpaJ5oL.js

js fove.co collected 2026-10-08 03:28:07 UTC 9,959 bytes, 1 lines download raw bytes

1import{_ as U}from"./kNnmtXA3.js";import{e as Y,f as R,g as j,C as l,k as O,y as D,Y as $,c as v,o as g,a as t,v as y,Z as q,$ as H,a0 as T,t as w,n as r,a1 as P,F,a2 as K,b as J}from"./D8Nqj8Vs.js";const Z={class:"section border-bottom anim",style:{opacity:"1"}},G={class:"container anim",style:{opacity:"1"}},Q={class:"w-layout-grid _2-col-grid reverse"},W={class:"bg-white padding flex-center-vertical"},X={class:"full-width"},ee=["data-netlify","netlify-honeypot"],te=["innerHTML"],ae={for:"name"},oe=["placeholder"],se={for:"lastName"},le=["placeholder"],ne={for:"Email-4"},ie=["placeholder"],re={key:0,class:"separator faded"},ue={for:"address"},de={key:2,class:"separator faded"},me=["placeholder"],ce={class:"field-group"},fe={class:"label-consent"},pe=["value","disabled"],ve={key:0,class:"form-success-message"},ge={key:1,class:"form-error-message",style:{color:"#ff0000","background-color":"#ffe6e6",padding:"10px","border-radius":"4px","margin-top":"10px",border:"1px solid #ffcccc"}},he={key:0,class:"relative demi"},ke=Y({__name:"form",props:["item","index"],setup(s){const{locale:o,locales:ye,t:we}=R();j(),l(""),l(null);const f=l(""),b=l(""),k=l(""),x=l(""),C=l("");l([]),l(!1);const M=l(""),N=l(""),V=l(""),L=l(""),I=l(!1),d=l(!1),A=l(!1),c=l("");l(!1);const B=async()=>{var p,e,n,i;if(!d.value){d.value=!0,A.value=!1,c.value="";try{if((p=document.getElementById("botfield"))==null?void 0:p.value){d.value=!1;return}if(s.item.champAdresse){if(!(((e=h.value)==null?void 0:e.value)||"").trim()){c.value=o.value==="fr"?"L'adresse est requise.":"Address is required.",d.value=!1;return}if(!f.value||!b.value||!x.value){c.value=o.value==="fr"?"Veuillez sélectionner une adresse complète avec numéro de rue, nom de rue, ville et code postal.":"Please select a complete address with street number, street name, city and postal code.",d.value=!1;return}}if(s.item.formulaireDeContact){console.log("Soumission formulaire de contact à Netlify Forms");const a=new FormData;if(a.append("form-name","wf-form-Contact"),a.append("name",M.value),a.append("lastName",N.value),a.append("Email",V.value),s.item.champAdresse&&((n=h.value)!=null&&n.value)&&(a.append("address",h.value.value),a.append("street",f.value),a.append("city",b.value),a.append("region",k.value),a.append("zip",x.value),a.append("country",C.value)),s.item.champMessage){const z=document.getElementById("Message");z&&a.append("Message",z.value)}a.append("consent",I.value.toString()),a.append("locale",String(o.value||o)),(await fetch("/",{method:"POST",body:a})).ok?A.value=!0:c.value=o.value==="fr"?"Erreur lors de l'envoi du formulaire.":"Error submitting the form.";return}const _={firstName:M.value,lastName:N.value,email:V.value,address:((i=h.value)==null?void 0:i.value)||"",street:f.value,city:b.value,region:k.value,zip:x.value,country:C.value,consent:I.value,locale:o.value||o,formulaireDeContact:s.item.formulaireDeContact||!1,utm_source:E("utm_source"),utm_medium:E("utm_medium"),utm_campaign:E("utm_campaign"),utm_term:E("utm_term"),utm_content:E("utm_content")};s.item.champMessage&&(_.message=L.value),console.log("Payload envoyé :",_);const S=await fetch("/.netlify/functions/lead-magnet",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(_)}),m=await S.json();console.log("Réponse lead-magnet:",m),S.ok?A.value=!0:c.value=m.message||"Erreur lors de l'envoi."}catch(u){c.value=u.message||"Erreur lors de l'envoi."}finally{d.value=!1}}};function E(p){return typeof window>"u"?"":new URL(window.location.href).searchParams.get(p)||""}const h=l(null);return O(async()=>{if(s.item.champAdresse){if(!window.google||!window.google.maps){const e=D();await new Promise((n,i)=>{const u=document.createElement("script");u.src=`https://maps.googleapis.com/maps/api/js?key=${e.public.googleApiKey}&libraries=places`,u.async=!0,u.onload=n,u.onerror=i,document.head.appendChild(u)})}if(await $(),window.google&&window.google.maps){new window.google.maps.places.AutocompleteService;const e=document.createElement("div");new window.google.maps.places.PlacesService(e)}}function p(){if(window.google&&window.google.maps){const e=new window.google.maps.places.Autocomplete(h.value,{types:["street_address","premise"],componentRestrictions:{country:"ca"}});e.addListener("place_changed",()=>{const n=e.getPlace();console.log("Adresse sélectionnée (test):",n);let i=!1,u=!1,_=!1,S=!1;if(f.value="",b.value="",k.value="",x.value="",C.value="",n.address_components)for(const m of n.address_components){const a=m.types||[];a.includes("street_number")&&(f.value=m.long_name+" "+f.value,i=!0),a.includes("route")&&(f.value+=m.long_name,u=!0),a.includes("locality")&&(b.value=m.long_name,_=!0),a.includes("administrative_area_level_1")&&(k.value=m.short_name),a.includes("country")&&(C.value=m.long_name),a.includes("postal_code")&&(x.value=m.long_name,S=!0)}(!i||!u||!_||!S)&&(c.value=o.value==="fr"?"Veuillez sélectionner une adresse complète avec numéro de rue, nom de rue, ville et code postal.":"Please select a complete address with street number, street name, city and postal code.",h.value.value="",f.value="",b.value="",k.value="",x.value="",C.value="")}
1)}}if(!window.google||!window.google.maps){const e=D(),n=document.createElement("script");n.src=`https://maps.googleapis.com/maps/api/js?key=${e.public.googleApiKey}&libraries=places`,n.async=!0,n.onload=p,document.head.appendChild(n)}else p()}),(p,e)=>{const n=U;return g(),v("div",Z,[t("div",G,[t("div",Q,[t("div",W,[t("div",X,[t("form",{"data-name":"Contact","data-wf-element-id":"5f454f1c-56e9-5307-ade8-1ce935946791","data-wf-page-id":"64adaf30f74001f931b946f9",id:"wf-form-Contact",method:"post",name:"wf-form-Contact","aria-label":"Contact","data-netlify":s.item.formulaireDeContact?"true":void 0,"netlify-honeypot":s.item.formulaireDeContact?"botfield":void 0,onSubmit:H(B,["prevent"]),style:q(d.value?"pointer-events: none;":"")},[e[5]||(e[5]=t("input",{type:"hidden",name:"form-name",value:"wf-form-Contact"},null,-1)),t("div",{class:"rich-text w-richtext",innerHTML:s.item.description},null,8,te),t("label",ae,w(r(o)==="fr"?"Prénom":"First Name"),1),T(t("input",{type:"text",class:"newsletter-field w-input",maxlength:"256",name:"name","data-name":"Name",placeholder:r(o)==="fr"?"Votre prénom...":"Your First Name...",id:"name","onUpdate:modelValue":e[0]||(e[0]=i=>M.value=i),required:"",autocomplete:"given-name"},null,8,oe),[[P,M.value]]),t("label",se,w(r(o)==="fr"?"Nom de famille":"Last name"),1),T(t("input",{type:"text",class:"newsletter-field w-input",maxlength:"256",name:"lastName","data-name":"LastName",placeholder:r(o)==="fr"?"Votre nom de famille...":"Your last name...",id:"lastName","onUpdate:modelValue":e[1]||(e[1]=i=>N.value=i),required:"",autocomplete:"family-name"},null,8,le),[[P,N.value]]),e[6]||(e[6]=t("input",{type:"text",class:"botfield hide w-input",maxlength:"256",name:"botfield","data-name":"Botfield",placeholder:"Votre nom complet...",id:"botfield",autocomplete:"off",tabindex:"-1",style:{display:"none"}},null,-1)),t("label",ne,w(r(o)==="fr"?"Courriel":"Email"),1),T(t("input",{type:"email",class:"newsletter-field w-input",maxlength:"256",name:"Email","data-name":"Email",placeholder:r(o)==="fr"?"Votre courriel...":"Your Email...",id:"Email-4","onUpdate:modelValue":e[2]||(e[2]=i=>V.value=i),required:""},null,8,ie),[[P,V.value]]),s.item.champAdresse?(g(),v("div",re)):y("",!0),s.item.champAdresse?(g(),v(F,{key:1},[t("label",ue,w(r(o)==="fr"?"Adresse postale complète":"Full mailing address"),1),t("input",{ref_key:"addressInputTest",ref:h,type:"text",placeholder:"Adresse postale...",style:{width:"100%",padding:"8px",border:"1px solid #ccc"},required:""},null,512)],64)):y("",!0),s.item.champMessage?(g(),v("div",de)):y("",!0),s.item.champMessage?(g(),v(F,{key:3},[e[4]||(e[4]=t("label",{for:"Message"},"Message",-1)),t("textarea",{id:"Message",name:"Message","data-name":"Message",maxlength:"5000",placeholder:r(o)==="fr"?"Votre message...":"Your message...",class:"newsletter-field w-input",required:""},null,8,me)],64)):y("",!0),e[7]||(e[7]=t("div",{class:"separator faded"},null,-1)),e[8]||(e[8]=t("br",null,null,-1)),t("div",ce,[t("label",fe,[T(t("input",{type:"checkbox","onUpdate:modelValue":e[3]||(e[3]=i=>I.value=i),required:"",class:"w-checkbox",name:"consent","data-name":"Consent",id:"consent"},null,512),[[K,I.value]]),t("span",null,w(r(o)==="fr"?"En soumettant ce formulaire, vous acceptez de recevoir occasionnellement des courriels de notre part contenant des informations et offres pertinentes. Vous pourrez vous désabonner à tout moment via le lien présent dans chaque courriel. Merci de votre confiance !":"By submitting this form, you agree to occasionally receive emails from us containing relevant information and offers. You can unsubscribe at any time via the link in each email. Thank you for your trust!"),1)])]),e[9]||(e[9]=t("br",null,null,-1)),t("input",{type:"submit",value:d.value?r(o)==="fr"?"Envoi en cours...":"Sending...":r(o)==="fr"?" Envoyer →":" Send →","data-wait":"Please wait...",class:"arrow-link w-button",disabled:d.value,style:q(d.value?"opacity: 0.6; cursor: not-allowed;":"")},null,12,pe)],44,ee),A.value?(g(),v("div",ve,w(r(o)==="fr"?"Merci ! Votre demande a bien été envoyée.":"Thank y
1ou! Your submission has been received!"),1)):y("",!0),c.value?(g(),v("div",ge,w(c.value||(r(o)==="fr"?"Une erreur est survenue lors de la soumission.":"Oops! Something went wrong while submitting the form.")),1)):y("",!0)])]),s.item.coverImage&&s.item.coverImage.responsiveImage?(g(),v("div",he,[J(n,{sizes:"(max-width: 991px) 100vw, (max-width: 1919px) 50vw, 511px, 477.984375px",class:"image-about fill",height:s.item.coverImage.responsiveImage.height,width:s.item.coverImage.responsiveImage.width,src:s.item.coverImage.responsiveImage.src,srcSet:s.item.coverImage.responsiveImage.srcSet,loading:"lazy",alt:""},null,8,["height","width","src","srcSet"])])):y("",!0)])])])}}});export{ke 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.