`,l.appendChild(n),document.createElement("div"));d.id="yourListDivId",d.classList.add("yourListDivClass");for(let e=0;e{window.innerWidth<600&&startLoader(),l.style.display="none"},d.appendChild(a),(o=document.createElement("hr")).className="separator",d.appendChild(o);l.appendChild(d),i.appendChild(l),i.addEventListener("click",function(e){l.contains(e.target)||(l.style.display="none"===l.style.display||""===l.style.display?"flex":"none")}),document.body.addEventListener("click",function(e){i.contains(e.target)||l.contains(e.target)||(l.style.display="none")}),e.prepend(i);t=document.getElementById("closeLocationBtn");t?t.addEventListener("click",function(e){l.style.display="none"}):console.error("Element with id 'closeLocationBtn' not found."),document.getElementById("location_input").addEventListener("input",function(e){handleSearchLocationChange(e.target.value,c.FloatingpointId)})}})};function handleSearchLocationChange(t,n){console.log(t);var e,o=cityList.filter(e=>e?.Locality?.toLowerCase().includes(t.toLowerCase())||e.City.toLowerCase().includes(t.toLowerCase()));console.log(o);const a=document.querySelector(".yourListDivClass");a.innerHTML="",0===o.length?((e=document.createElement("p")).textContent="No match found",e.style.color="#53545a",e.style.textAlign="center",a.appendChild(e)):o.forEach(e=>{var t=document.createElement("a"),e=(t.classList.add("listItemLocation"),t.textContent=e.Locality&&e?.Locality.toLowerCase()!=e?.City?.toLowerCase()?e?.Locality+", "+e.City:e?.City,t.href=e.RootAliasUri,n===e.FloatingpointId&&((e=document.createElement("div")).classList.add("tickIcon"),t.appendChild(e),t.classList.add("selectedItem")),a.appendChild(t),document.createElement("hr"));e.className="separator",a.appendChild(e)})}function initContactRendering(){const o=Intl.DateTimeFormat().resolvedOptions().timeZone;if("Asia/Calcutta"!==o&&!async function(){var e=localStorage.getItem("userAlpha2Country");e?(userCountryCode=e,console.log("Cached user country:",userCountryCode)):navigator.geolocation?navigator.geolocation.getCurrentPosition(async e=>{var{latitude:e,longitude:t}=e.coords;try{var n=await(await fetch(`https://api.bigdatacloud.net/data/reverse-geocode-client?latitude=${e}&longitude=${t}&localityLanguage=en`)).json();userCountryCode=n.countryCode||"IN",localStorage.setItem("userAlpha2Country",userCountryCode),console.log("Detected via geo:",userCountryCode)}catch(e){console.error("Failed to get country from coordinates:",e)}},e=>{console.warn("Geolocation permission denied or error:",e)}):console.warn("Geolocation is not supported")}(),countryCodeFromUI&&0!==countryCodeFromUI.length||businessContactsFromUI&&0!==businessContactsFromUI.length){const m=countryCodeFromUI;var n=JSON.parse(JSON.stringify(businessContactsFromUI));var e,a=document.querySelectorAll(".headerContactNumber"),i=document.getElementById("footerContactNumbers"),s=document.getElementById("RetailfooterContactNumbers"),r=document.getElementById("contactMobileNumbers"),l=document.getElementById("globalContactOtherNumbers");let t=0{e.innerHTML=`
${t}
`}),i&&(i.innerHTML=`
${t}
`),s&&(s.innerHTML=`
${t}
`),r&&(r.innerHTML=`
${t}
`),l&&1${d}
`}function c(e){let t=e?.contactnumber||"";var e=e?.contacttype?.toLowerCase()||"",n=(n=e,"Asia/Calcutta"!==o||"vmn"!==n.toLowerCase());return n&&t.startsWith("0")&&"vmn"===e&&(t=t.substring(1)),(n?"+"+m:"")+t}}}function ChangeDateFormat(e,t){var n,o=$(e).text(),o=new Date(o.trim()),o=(o.setHours(o.getHours()+5),o.setMinutes(o.getMinutes()+30),o=o.toString(),new Date(o.split()[0]).toString().split(" ")),a=o[2],i=o[1],s=o[3],o=o[4].substring(0,5),r=o.split(":"),l=parseInt($.trim(r[0])),d=12 "+i+" "+a+", "+s)}}initContactRendering(),$(".theme-upload-Date")&&$(".theme-upload-Date").each(function(){ChangeDateFormat(this,"dayMonthYear")});let itiPhoneSendEnquiryInput=null;const sendEnquiryText=e=>{var t=document.getElementById("enquiryTextArea"),e=(e&&(t.value=`Hello, I am interested in "${e}" and need more information on the same. Please contact me.`),t.placeholder="Enter your requirement here...",document.getElementById("phoneNumber"));window.intlTelInput&&(itiPhoneSendEnquiryInput=window.intlTelInput(e,{initialCountry:userCountryCode.toLowerCase(),separateDialCode:!0,utilsScript:"https://cdn.jsdelivr.net/npm/intl-tel-input@22.0.2/build/js/utils.js"}))},bookAppointment=e=>{console.log(e)};function closeModelHandle(){const e=document.getElementById("enquiryTextArea"),t=document.getElementById("phoneNumber"),n=document.getElementById("emailAddress"),o=document.getElementById("enquiryModelLabel"),a=document.getElementById("successSection"),i=document.getElementById("formSection"),s=document.getElementById("errorMessage"),r=document.getElementById("errorText");setTimeout(()=>{o.innerText="Send a message",i.classList.remove("d-none"),a.classList.add("d-none"),t.classList.remove("errorField"),n.classList.remove("errorField"),t.value="",n.value="",e.value="",s.classList.add("d-none"),r.innerText="",itiPhoneSendEnquiryInput&&itiPhoneSendEnquiryInput.setNumber("")},1200)}document.getElementById("enquirySubmitBtn").addEventListener("click",function(t){t.preventDefault();const n=document.getElementById("enquiryTextArea"),o=document.getElementById("phoneNumber"),a=document.getElementById("emailAddress"),i=document.getElementById("enquiryModelLabel"),s=document.getElementById("successSection"),r=document.getElementById("formSection"),l=document.getElementById("errorMessage"),d=document.getElementById("errorText");[n,o,a].forEach(e=>e.classList.remove("errorField")),l.classList.add("d-none");var t=n.value.trim(),c=o.value.trim(),m=a.value.trim();let e=!1;""===t&&(n.classList.add("errorField"),e=!0),c||m||(o.classList.add("errorField"),a.classList.add("errorField"),e=!0);var u=""===m||/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(m);u||(a.classList.add("errorField"),e=!0);let p="";if(itiPhoneSendEnquiryInput&&c&&(0!==itiPhoneSendEnquiryInput.getValidationError()?(o.classList.add("errorField"),e=!0):p=itiPhoneSendEnquiryInput.getNumber()),e)d.innerText=u?c||m?""===t?"The message field cannot be empty.":"Please check your contact details.":"Phone or email (or both) — share a contact so we can reply.":"Email address is incorrect.",l.classList.remove("d-none");else{let e=t;c&&m&&(e+=`
Email: `+m);u=c?p:"";KitsuneBusinessEnquiry({eMsg:e,eCnt:u||(!c&&m?m:""),eType:"PRODUCTQUERY",eid:""},function(e){var t=document.getElementById("enquiryModel");bootstrap.Modal.getOrCreateInstance(t).show(),i.innerText="Submitted Successfully!",r.classList.add("d-none"),s.classList.remove("d-none"),n.value="",o.value="",a.value="",itiPhoneSendEnquiryInput&&itiPhoneSendEnquiryInput.setNumber("")},function(e){d.innerText=e||"Something went wrong. Please try again.",l.classList.remove("d-none")})}});const enquiryModalEl=document.getElementById("enquiryModel");enquiryModalEl.addEventListener("hidden.bs.modal",function(){closeModelHandle()}),document.addEventListener("DOMContentLoaded",function(){if(window.innerWidth<=480&&document.getElementById("breadcrumb_mob_placeholder")){var e=document.querySelector(".page-banner-wrap .breadcrumb");if(e){const n=document.createElement("section");n.id="breadcrumb_mob",n.className="py-2 bg-light",n.style.display="none";var t=document.createElement("div");t.className="container text-center";const a=document.createElement("div"),o=(a.className="header-breadcrumb-nav",e.querySelectorAll("li").forEach((e,t)=>{var n,o=document.createElement("span");o.className="path-pages",e.classList.contains("active")?((n=document.createElement("span")).className="selected-page text-capitalize",n.textContent=e.textContent.trim(),o.appendChild(n)):(n=e.querySelector("a"))&&((e=document.createElement("a")).href=n.href,e.className="breadcrumb-mob-link",e.textContent=n.textContent.trim(),o.appendChild(e),(n=document.createElement("span")).className="breadcrumb-separator",n.innerHTML=">",o.appendChild(n)),a.appendChild(o)}),t.appendChild(a),n.appendChild(t),document.getElementById("breadcrumb_mob_placeholder").appendChild(n),document.querySelector(".page-banner-wrap"));window.addEventListener("scroll",function(){var e=o.offsetTop+o.offsetHeight,t=window.scrollY||document.documentElement.scrollTop;n.style.display=e<=t?"block":"none"})}}}),window.addEventListener("DOMContentLoaded",()=>{const n=["p","span","a","li","label","input","textarea","button","strong","em","b","h1","h2","h3","h4","h5","h6","td","th","caption"];document.querySelectorAll("body *").forEach(t=>{try{var e;n.includes(t.tagName.toLowerCase())&&t.textContent?.trim()&&(e=parseFloat(getComputedStyle(t).fontSize),isNaN(e)||(t.style.fontFamily=e<=16?"var(--secondary-font) !important":"var(--primary-font) !important"))}catch(e){console.warn("Skipping element due to error:",t,e)}})}),document.querySelectorAll(".svc-testimon-rd-more").forEach(e=>{e.addEventListener("click",function(){var e=this.dataset.body||"",t=this.dataset.title||"",n=this.dataset.profile||"",o=this.dataset.logo||"",a=this.dataset.name||"",n=n||o;document.getElementById("testimonialBody").innerText=e,document.getElementById("testimonialTitle").innerText=t,document.getElementById("testimonialImage").src=n,document.getElementById("testimonialAuthor").innerText=a})}),document.querySelectorAll(".testimon-mod-btn-size").forEach(t=>{t.addEventListener("click",function(){console.log(t,"close-clicked");var e=document.getElementById("SvctestimonialModal");e&&bootstrap.Modal.getOrCreateInstance(e).hide()})});