1 |
- (()=>{var e={180:(e,t,n)=>{"use strict";n.r(t)},666:(e,t,n)=>{"use strict";n.r(t)}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{function e(){var e=document.querySelector(".flyout"),t=document.querySelectorAll(".menu-flyout"),n=t[0];if(e&&(e.onmouseenter=function(e){return n.classList.add("flyoutPreview")}),t)for(var o=0;o<t.length;o++)t[o].onmouseenter=function(e){return n.classList.remove("flyoutPreview")};var r=document.getElementById("cs-nav");function i(){window.scrollY>5?r.classList.add("scroll"):r.classList.remove("scroll")}window.addEventListener("scroll",(function(e){return i()})),i();var a=document.querySelector(".btn-create-ad"),s=document.querySelector(".nav-value-my-car"),d=document.querySelector(".nav-help"),u=document.querySelector("#MemberCentreName"),l=null==u?void 0:u.innerHTML;function c(){window.innerWidth<1100?u&&(u.innerHTML=" "):u&&(u.innerHTML=l),window.innerWidth<1e3?(a&&a.classList.add("hide"),d&&d.classList.add("hide"),s&&s.classList.add("hide")):(a&&a.classList.remove("hide"),d&&d.classList.remove("hide"),s&&s.classList.remove("hide"))}window.addEventListener("resize",(function(e){return c()})),c();var v="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,m=document.querySelectorAll(".section-with-menus"),f=null;function y(e){f!==e.target&&e.preventDefault(),f=e.target}v&&window.addEventListener("touchend",(function(e){return function(e){n&&n.classList.remove("flyoutPreview");for(var o=0;o<m.length;o++)if(m[o]===e.target)return void y(e);for(var r=0;r<t.length;r++)if(t[r].firstElementChild===e.target)return void y(e);f=null}(e)}));var L=NaN,h=Number(getComputedStyle(document.body).getPropertyValue("--sitenav-transition-delay").split("ms").join("")||500);if(window.matchMedia("(hover: hover)").matches)for(var g=document.querySelectorAll(".nav-top-level > li"),w=0;w<g.length;w++)g[w].addEventListener("mouseenter",(function(e){clearTimeout(L),L=setTimeout((function(){e.target.classList.add("open"),document.body.classList.add("meganav-active")}),h)})),g[w].addEventListener("mouseleave",(function(e){clearTimeout(L),setTimeout((function(){e.target.classList.remove("open"),document.body.classList.remove("meganav-active")}),h)}))}n(180),n(666),"loading"!==document.readyState?e():document.addEventListener("DOMContentLoaded",e)})()})();
|