If this issue persists, please call +356 77 153 777<\/a> or +356 212 444 21<\/a>.<\/p>',icon:"warning"})}function onErrorCustomMethod(){reportInfoSwal();$(".btn-send").show()}function onSuccessSend(n,t){if(t.response.modelValidation?.isValid){try{fbq("track","Appoinment")}catch{}t.response.model?.redirectUrl&&(gtag_report_conversion(t.response.model.redirectUrl),window.top.location.href=t.response.model.redirectUrl)}else reportInfoSwal(),$(".btn-send").show()}function x17(n){$(n).hide();const r=$("#phone-error");if(window.__iti&&!window.__iti.isValidNumber()){$("#phone").rules?.("add",{intlTel:!0});r.removeClass("d-none");$(n).show();return}r.addClass("d-none").text("");const t=document.getElementsByName("Referral")[0],i=document.getElementsByName("MeetingLocation")[0];if(t&&(!t.value||t.options[t.selectedIndex].disabled)){$(n).show();return}if(i&&(!i.value||i.options[i.selectedIndex].disabled)){$(n).show();return}}(function(){window.AppointmentUI||(window.AppointmentUI={months:4,isOnline:!1,enabledDays:new Set,async loadEnabledDays(){const t=await fetch(`/appointment/availability-days?isOnline=${this.isOnline}`,{credentials:"same-origin"});if(!t.ok){console.error("Failed to fetch availability days");return}const i=await t.json();this.enabledDays=new Set(i.model.enabled||[]);const n=$("#calendar").data("kendoCalendar");n&&n.setOptions&&n.setOptions({disableDates:window.disableUnbookableDates})}},window.disableUnbookableDates=function(n){if(!n)return!1;const t=kendo.toString(n,"yyyy-MM-dd");return!window.AppointmentUI.enabledDays.has(t)},window.onCalChange=async function(){const u=$("#calendar").data("kendoCalendar"),t=u?.value();if(t){const f=kendo.toString(t,"yyyy-MM-dd'T'HH:mm:ss"),i=document.querySelector('input[name="AppointmentTime"]');i&&(i.value=kendo.toString(t,"yyyy-MM-dd"));const n=new FormData;n.set("inquiry",f);n.set("isOnline",window.AppointmentUI.isOnline?"true":"false");const r=document.querySelector('input[name="__RequestVerificationToken"]');r&&n.append("__RequestVerificationToken",r.value);const e=await fetch("/appointment/availibility",{method:"POST",body:n,credentials:"same-origin"}),o=await e.text();document.getElementById("times").innerHTML=o}},$(function(){const n=document.getElementsByName("MeetingLocation")[0];n&&(n.selectedIndex=0);const t=document.getElementById("onlineToggle");t&&t.addEventListener("change",()=>{window.AppointmentUI.isOnline=t.checked,n&&(n.selectedIndex=t.checked?1:0),window.AppointmentUI.loadEnabledDays().then(()=>window.onCalChange())});window.AppointmentUI.loadEnabledDays().then(()=>window.onCalChange())}),document.addEventListener("click",function(n){const t=n.target.closest("[data-time]");if(t&&document.getElementById("times").contains(t)){const r=t.getAttribute("data-time"),i=document.querySelector('input[name="AppointmentTime"]');i&&r&&(i.value=i.value)}}))})(),function(){const n=document.querySelector("#phone");if(n&&!window.__iti)try{window.__iti=window.intlTelInput(n,{initialCountry:"mt",separateDialCode:!0,preferredCountries:["mt","gb","it","de","fr"],autoPlaceholder:"polite",utilsScript:"https://cdn.jsdelivr.net/npm/intl-tel-input@17.0.3/build/js/utils.js"})}catch{}window.__iti&&$.validator&&$.validator.addMethod("intlTel",function(){return window.__iti&&window.__iti.isValidNumber()},"Please enter a valid phone number.");const t=document.querySelector(".form-wrap1");t&&t.addEventListener("submit",function(){if(window.__iti){const t=window.__iti.getNumber(),n=window.__iti.getSelectedCountryData()||{};document.querySelector("#phone_hidden").value=t||"";document.querySelector("#country_code").value=(n.iso2||"").toLowerCase();document.querySelector("#country_prefix").value=n.dialCode||""}});const i=document.getElementById("phone");i&&i.addEventListener("input",function(){this.value=this.value.replace(/[^0-9+\-()\s]/g,"")})}()