jQuery(document).ready(function($){if(window.location.pathname==='/quote/'){$('form').on('submit',function(e){var selectedCountry=$('[name="billing_country"]').val();if(!selectedCountry){e.preventDefault();alert("Please select a country from the drop down list.")}})}});jQuery(document).ready(function($){function updateQuoteLink(){$.get('/wp-json/wc/store/cart',function(data){const cart=data.items;const link=$('.request-quote-link');const emptyUrl=link.data('empty-url');const filledUrl=link.data('filled-url');link.attr('href',cart.length===0?emptyUrl:filledUrl)})}
updateQuoteLink();$(document.body).on('wc_fragment_refresh updated_wc_div',updateQuoteLink)});(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:3634431,hjsv:6};a=o.getElementsByTagName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r)})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');document.addEventListener('DOMContentLoaded',function(){const asideElement=document.getElementById('betterdocs-sidebar-left');const sidebarWrapper=document.querySelector('.betterdocs-mobile-sidebar-wrapper');if(asideElement){const closeButton=document.createElement('button');closeButton.innerHTML='&times;';closeButton.style.position='absolute';closeButton.style.top='10px';closeButton.style.right='10px';closeButton.style.background='transparent';closeButton.style.border='none';closeButton.style.color='#000';closeButton.style.fontSize='24px';closeButton.style.cursor='pointer';closeButton.style.zIndex='9999';asideElement.appendChild(closeButton);closeButton.addEventListener('click',function(e){e.stopPropagation();const clickEvent=new MouseEvent('click',{bubbles:!0,cancelable:!0,view:window});document.body.dispatchEvent(clickEvent)})}})