1/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 2jQuery(document).ready(function($){var menuFirstLevel=$('.cp-main-navigation-first-level > .with-dropdown');function resetMainNavDropdown(fade){resetUtilityDropdown();menuFirstLevel.find('.cp-dropdown-navigation').removeClass('show-drop-down');menuFirstLevel.find('button.cp-main-parent').removeClass('active');menuFirstLevel.find('button i').removeClass('up').addClass('down');if(fade==null||fade=='fadeOut')$('#navblackout').stop(true,true).fadeOut();else{if(fade=='fadeIn')$('#navblackout').stop(true,true).fadeIn();}}$(menuFirstLevel).click(function(event){var $this=$(this);var clickedElement=$(event.target);event.stopPropagation();if(clickedElement.hasClass('cp-main-parent')&&$this.find('div.cp-dropdown-navigation').hasClass('show-drop-down'))resetMainNavDropdown();else{resetMainNavDropdown('fadeIn');$this.find('div.cp-dropdown-navigation').addClass('show-drop-down');$this.find('button.cp-main-parent').addClass('active');$this.find('button i').removeClass('down').addClass('up');}});var SETTINGS={navBarTravelling:false,navBarTravelDirection:"",navBarTravelDistance:150};document.documentElement.classList.remove("no-js");document.documentElement.classList.add("js");var cpAdvancerLeft=document.getElementById("cpAdvancerLeft");var cpAdvancerRight=document.getElementById("cpAdvancerRight");var cpProductNav=document.getElementById("cpProductNav");var cpProductNavContents=document.getElementById("cp-product-subnav");var last_known_scroll_position=0;var ticking=false;function doSomething(scroll_pos){cpProductNav.setAttribute("data-overflowing",determineOverflow(cpProductNavContents,cpProductNav));}if(cpProductNav){cpProductNav.setAttribute("data-overflowing",determineOverflow(cpProductNavContents,cpProductNav));cpProductNav.addEventListener("scroll",function(){last_known_scroll_position=window.scrollY;if(!ticking)window.requestAnimationFrame(function(){doSomething(last_known_scroll_position);ticking=false;});ticking=true;});}if(cpAdvancerLeft)cpAdvancerLeft.addEventListener("click",function(){if(SETTINGS.navBarTravelling===true)return;if(determineOverflow(cpProductNavContents,cpProductNav)==="left"||determineOverflow(cpProductNavContents,cpProductNav)==="both"){var availableScrollLeft=cpProductNav.scrollLeft;if(availableScrollLeft<SETTINGS.navBarTravelDistance*2)cpProductNavContents.style.transform="translateX("+availableScrollLeft+"px)";else cpProductNavContents.style.transform="translateX("+SETTINGS.navBarTravelDistance+"px)";cpProductNavContents.classList.remove("cp-ProductNav_Contents-no-transition");SETTINGS.navBarTravelDirection="left";SETTINGS.navBarTravelling=true;}cpProductNav.setAttribute("data-overflowing",determineOverflow(cpProductNavContents,cpProductNav));});if(cpAdvancerRight)cpAdvancerRight.addEventListener("click",function(){if(SETTINGS.navBarTravelling===true)return;if(determineOverflow(cpProductNavContents,cpProductNav)==="right"||determineOverflow(cpProductNavContents,cpProductNav)==="both"){var navBarRightEdge=cpProductNavContents.getBoundingClientRect().right;var navBarScrollerRightEdge=cpProductNav.getBoundingClientRect().right;var availableScrollRight=Math.floor(navBarRightEdge-navBarScrollerRightEdge);if(availableScrollRight<SETTINGS.navBarTravelDistance*2)cpProductNavContents.style.transform="translateX(-"+availableScrollRight+"px)";else cpProductNavContents.style.transform="translateX(-"+SETTINGS.navBarTravelDistance+"px)";cpProductNavContents.classList.remove("cp-ProductNav_Contents-no-transition");SETTINGS.navBarTravelDirection="right";SETTINGS.navBarTravelling=true;}cpProductNav.setAttribute("data-overflowing",determineOverflow(cpProductNavContents,cpProductNav));});if(cpProductNavContents)cpProductNavContents.addEventListener("transitionend",function(){var styleOfTransform=window.getComputedStyle(cpProductNavContents,null);var tr=styleOfTransform.getPropertyValue("-webkit-transform")||styleOfTransform.getPropertyValue("transform");var amount=Math.abs(parseInt(tr.split(",")[4])||0);cpProductNavContents.style.transform="none";cpProductNavContents.classList.add("cp-ProductNav_Contents-no-transition");if(SETTINGS.navBarTravelDirection==="left")cpProductNav.scrollLeft=cpProductNav.scrollLeft-amount;else cpProductNav.scrollLeft=cpProductNav.scrollLeft+amount;SETTINGS.navBarTravelling=false;},false);function determineOverflow(content,container){var containerMetrics=container.getBoundingClientRect();var containerMetricsRight=Math.floor(containerMetrics.right);var containerMetricsLeft=Math.floor(containerMetrics.left);var contentMetrics=content.getBoundingClientRect();var contentMetricsRight=Math.floor(contentMetrics.right);var contentMetricsLeft=Math.floor(contentMetrics.left);if(containerMetricsLeft>contentMetricsLeft&&containerMetricsRight<contentMetricsRight)return "both";else if(contentMetricsLeft<containerMetricsLeft)return "left";else if(contentMetricsRight>containerMetricsRight)return "right";else return "none";}(function(root,factory){if(typeof define==='function'&&define.amd)define(['exports'],factory);else if(typeof exports!=='undefined')factory(exports);else factory((root.dragscroll={}));}(this,function(exports){var _window=window;var _document=document;var mousemove='mousemove';var mouseup='mouseup';var mousedown='mousedown';var EventListener='EventListener';var addEventListener='add'+EventListener;var removeEventListener='remove'+EventListener;var newScrollX,newScrollY;var dragged=[];var reset=function(i,el){for(i=0;i<dragged.length;){el=dragged[i++];el=el.container||el;el[removeEventListener](mousedown,el.md,0);_window[removeEventListener](mouseup,el.mu,0);_window[removeEventListener](mousemove,el.mm,0);}dragged=[].slice.call(_document.getElementsByClassName('dragscroll'));for(i=0;i<dragged.length;)(function(el,lastClientX,lastClientY,pushed,scroller,cont){(cont=el.container||el)[addEventListener](mousedown,cont.md=function(e){if(!el.hasAttribute('nochilddrag')||_document.elementFromPoint(e.pageX,e.pageY)==cont){pu
2shed=1;lastClientX=e.clientX;lastClientY=e.clientY;e.preventDefault();}},0);_window[addEventListener](mouseup,cont.mu=function(){pushed=0;},0);_window[addEventListener](mousemove,cont.mm=function(e){if(pushed){(scroller=el.scroller||el).scrollLeft-=newScrollX=(-lastClientX+(lastClientX=e.clientX));scroller.scrollTop-=newScrollY=(-lastClientY+(lastClientY=e.clientY));if(el==_document.body){(scroller=_document.documentElement).scrollLeft-=newScrollX;scroller.scrollTop-=newScrollY;}}},0);})(dragged[i++]);};if(_document.readyState=='complete')reset();else _window[addEventListener]('load',reset,0);exports.reset=reset;}));{let resizeTimer;$(window).on("resize",function(){clearTimeout(resizeTimer);resizeTimer=setTimeout(function(){const header=$(".navbar");const headerHeight=header.outerHeight();const marginTop=parseInt(header.css("margin-top"),10);const totalHeight=headerHeight+marginTop;$("#top").css("padding-top",totalHeight+"px");},200);});}var menuUtilityFirstLevel=$('#cp-utility-menu .cp-utility-menu-first-level > li');function resetUtilityDropdown(){menuUtilityFirstLevel.removeClass('active');menuUtilityFirstLevel.find('.cp-dropdown-navigation').removeClass('show-drop-down');menuUtilityFirstLevel.find('div.cp-main-parent').removeClass('active');menuUtilityFirstLevel.find('div.cp-utility-parent').removeClass('active');menuUtilityFirstLevel.find('div i').removeClass('up').addClass('down');}$(menuUtilityFirstLevel).click(function(event){document.documentElement.style.setProperty("--popoverPos",$("#cp-utility-menu").width()-$(this).position().left-60+"px");var $this=$(this);event.stopPropagation();if(!$this.hasClass('active')){resetMainNavDropdown();$this.addClass('active');$this.find('.cp-dropdown-navigation').toggleClass('show-drop-down');$this.find('div.cp-utility-parent').toggleClass('active');$this.find('div i').removeClass('down').addClass('up');}});$(document).on("click keyup",function(e){var container=$(".show-drop-down");if(!container.is(e.target)&&container.has(e.target).length===0||(e.type==="keyup"&&e.key==="Escape"&&e.keyCode===27)){container.removeClass("show-drop-down");$(".cp-main-navigation-first-level > li > div.cp-dropdown-navigation").removeClass("show-drop-down");$(".cp-main-navigation-first-level > li").find("div i").removeClass("up").addClass("down");$(".cp-main-navigation-first-level > li").find("div.cp-main-parent").removeClass("active");resetMainNavDropdown();}});$(window).scroll(function(){toggleUtilityBar(window);});function toggleUtilityBar(e,speed){let isMobile=window.matchMedia("only screen and (max-width: 992px)").matches;let mainMenuHeight=$('#cp-main-navigation').outerHeight();let stickyBannerHeight=0;if($('.sticky-banner').is(':visible'))stickyBannerHeight=$('.sticky-banner').outerHeight();let totalHeight=mainMenuHeight+stickyBannerHeight;if($(this).scrollTop()>200&&!isMobile){$('#block-chargepoint-branding').slideUp(speed?speed:500);document.documentElement.style.setProperty("--productNavPos",totalHeight+"px");}else{$('#block-chargepoint-branding').slideDown(speed?speed:500);document.documentElement.style.setProperty("--productNavPos","auto");}}$(".find-chargers-utility").on("click",function(){$(".find-chargers-utility input").focus();});$(".search-utility").on("click",function(){$("#edit-search").focus();});$('.cp-utility-parent').click(function(){var currentHash=window.location.hash;if(currentHash)$('a.cp-change-location').each(function(){var link=$(this).attr('href');$(this).attr('href',link.split('#')[0]+currentHash);});});$('.cp-nav-products .cp-product-tabs .group-tab').click(function(){var $this=$(this);$this.siblings().removeClass('active');$this.addClass('active');$this.closest('.cp-nav-products').find('.cp-product-tabs-content ul').removeClass('active');$this.closest('.cp-nav-products').find('.'+$this.attr('data-target')).addClass('active');$this.closest('.cp-nav-products').find('.mobile-only ul').removeClass('active');$this.closest('.cp-nav-products').find('.mobile-only ul.'+$this.attr('data-target')).addClass('active');});});;
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.