1"use strict";tb.onRootElementReady(m=>{m.querySelectorAll(".tb-contact-form").forEach(i=>{var l;const e=i.querySelector(".tb-contact-form__form");if(!(e instanceof HTMLFormElement))return;const c=e.getAttribute("data-recaptcha-key");(l=window.tbFormValidation)==null||l.init(e);const o=e.querySelector(".tb-contact-form__message--success"),r=e.querySelector(".tb-contact-form__message--error");if(!o||!r)return;const a=n=>{const t=e.querySelector(`[name="${n}"]`);return t instanceof HTMLInputElement?t.type==="checkbox"?t.checked?"1":"":t.value:t instanceof HTMLTextAreaElement||t instanceof HTMLSelectElement?t.value:""},u=n=>{if(i.classList.remove("is-submitting"),r.hidden=n,o.hidden=!n,n){const t=e.querySelector(".tb-contact-form__inputs");t&&(t.hidden=!0)}},d=n=>{const t=new URLSearchParams({action:"tb_contact_form_submit",question:a("question"),name:a("name"),email:a("email"),destination:a("destination"),nationality:a("nationality"),newsletter:a("newsletter"),cf_website:a("cf_website"),settings:e.getAttribute("data-settings")||"",settings_sig:e.getAttribute("data-settings-sig")||"",grecaptchaResponse:n});fetch(tb.AJAX_URL,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:t.toString()}).then(s=>s.json()).then(s=>u(!!(s.success&&s.data&&s.data.formSuccess))).catch(()=>u(!1))};e.addEventListener("submit",n=>{n.preventDefault(),!i.classList.contains("is-submitting")&&(window.tbFormValidation&&!window.tbFormValidation.validate(e,{touchAll:!0})||(i.classList.add("is-submitting"),o.hidden=!0,r.hidden=!0,c&&typeof grecaptcha!="undefined"&&grecaptcha?grecaptcha.enterprise.ready(async()=>{const t=await grecaptcha.enterprise.execute(c,{action:"LOGIN"});d(t)}):d("")))})})});
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.