1/*! js-cookie v3.0.5 | MIT */ 2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o}}())}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o]}return e}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof(i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break}catch(e){}}return e?o[e]:o}},remove:function(t,n){r(t,"",e({},n,{expires:-1}))},withAttributes:function(n){return t(this.converter,e({},this.attributes,n))},withConverter:function(n){return t(e({},this.converter,n),this.attributes)}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});return t})); 3;class Center{constructor(id,establishment,url,openInNewTab,name,x,y,isZoom,hasAddress){this._id=id;this._establishment=establishment;this._url=url;this._openInNewTab=openInNewTab;this._name=name;this._x=x;this._y=y;this._color=hasAddress?"#E2001A":"#000";this._isZoom=isZoom;this.snap;this.circle;this.circletwo;this.line;this.text;} 4generateSnap(snap,callback){this.snap=snap;this.generateCircletwo();this.generateCircle();this.generateLine();this.generateText();var that=this 5this.circle.click(function(){callback(that._establishment);}).mouseover(function(){that.display();}).mouseout(function(){that.hide();});if(Modernizr.touchevents){this.tText(1);}} 6generateCircle(){this.circle=this.snap.circle(this._x,this._y,8);this.circle.attr({fill:this._color});} 7generateCircletwo(){this.circletwo=this.snap.circle(this._x,this._y,10) 8this.circletwo.attr({fill:"transparent",stroke:this._color,opacity:0})} 9generateLine(){this.line=this.snap.paper.line(this._x+5,this._y-10,this._x+9,this._y-18).attr({stroke:this._color,strokeWidth:1,opacity:0});} 10generateText(){this.text=this.snap.paper.text(this._x+10,this._y-19,this._name);this.text.attr({class:'textLink',href:this._url,fill:this._color,opacity:0});} 11display(){this.tCircle(1);if(!Modernizr.touchevents){this.tText(1);} 12else{this.tText(1);};} 13hide(){this.tCircle(0);if(!Modernizr.touchevents){this.tText(0);} 14else{this.tText(0);};} 15tCircle(opacity){this.circletwo.animate({opacity:opacity},200);};tText(opacity){this.line.animate({opacity:opacity},200);this.text.animate({opacity:opacity},200);};} 16window.centersMap=[new Center(64413,'1068','','','Birmingham',440,760,false,true,),new Center(64412,'1069','','','Hull',510,670,false,true,),new Center(64411,'1066','','','Lakeside',560,860,false,true,),new Center(64410,'1093','','','Manchester',510,670,false,true,),new Center(64409,'1072','','','Meadowhall',450,690,false,true,),new Center(64408,'1067','','','Rushden Lakes',500,790,false,true,),new Center(64407,'1110','','','Walton on Thames',510,880,false,true,),new Center(64406,'1070','','','Watford',510,850,false,true,),new Center(64405,'1215','','','Weston-super-Mare',440,760,false,true,),new Center(64404,'1071','','','Whiteley',475,910,false,true,),];function createMap(callback){if(!$('.mapfrance').length)return;$('.mapfrance').show();var snap=Snap("#france");centersMap.forEach(function(center){if(!center._isZoom){center.generateSnap(snap,callback)}})} 17function createZoomMap(callback){if(!$('.mapzoom').length)return;$('.mapzoom').show();var snap=Snap("#zoom");
17centersMap.forEach(function(center){if(center._isZoom){center.generateSnap(snap,callback)}})} 18function callbackFunction(establishment){var centerMap=centersMap.find(function(e){return e._establishment==establishment}),url=centerMap._url;if(centerMap._openInNewTab){window.open(url,'_blank');}else{window.location.href=url;}};window.initEstablishmentMap=function(callback,noListener){if(!callback){callback=callbackFunction} 19createMap(callback);createZoomMap(callback);$('.establishment-open a').add('.establishment-not-open a').on('mouseenter',function(){var establishment=$(this).attr('data-id');var center=centersMap.find(function(c){return c._establishment==establishment;});center.display();});$('.establishment-open a').add('.establishment-not-open a').on('mouseleave',function(){var establishment=$(this).attr('data-id');var center=centersMap.find(function(c){return c._establishment==establishment;});center.hide();}) 20if(!noListener){$('#establishment-map a').on('click',function(evt){evt.preventDefault();callback($(this).attr('data-id'));});}};$(function(){let noListener=true;initEstablishmentMap(false,noListener);}); 21 22 23;class Popup{constructor(popupType){this.popupType=popupType;if(document.getElementsByClassName(this.popupType)[0]){this.popupShow();this.popupClose();}} 24popupShow(){if(!Cookies.get(this.popupType)){document.getElementsByClassName(this.popupType)[0].classList.remove('d-none');document.querySelector('body').classList.add('hasPopup')}} 25popupClose(){const filterClass=['popup-close','popup-btn'];const popupType=this.popupType;document.getElementsByClassName(this.popupType)[0].addEventListener('click',function(event){const match=filterClass.some(function(value){return event.target.classList.contains(value);});if(match){this.classList.add('popup-hide');document.querySelector('body').classList.remove('hasPopup');Cookies.set(popupType,'didClose',{expires:parseInt(this.querySelector('.popup-wrapper').dataset.popupExpire)});setTimeout(()=>{this.classList.add('d-none');},"1000");}});}} 26document.addEventListener('DOMContentLoaded',()=>{});function mobileDetection(){const navBirthday=document.querySelector('.nav-birthday a');if(!$('.navbar-toggler')[0].offsetParent){$('.navbar-left .dropdown-menu').parent().addClass('dropdown dropdown-hover');removeHtagUrl(navBirthday);}else{$('.navbar-left .dropdown-menu').parent().removeClass('dropdown dropdown-hover');addHtagUrl(navBirthday);}} 27var resizeBlankItem=function($menu){var $blankItem=$menu.find('.blank-item');$blankItem.css({width:0});var blankW=$(window).width()-$menu.find('.navbar-nav').width()-210;if(blankW<0)blankW=0;$blankItem.css({width:blankW});};function addFixedMenu(offsetHeight){const navbarHapik=document.querySelector('.navbar-hapik');const productsMenu=document.querySelector('.products-menu');let mainModuleTop=offsetHeight+"px";if(window.scrollY>offsetHeight){navbarHapik.classList.add('fixed');if(productsMenu){productsMenu.classList.add('fixed');productsMenu.style.top=offsetHeight+"px";mainModuleTop=navbarHapik.offsetHeight+productsMenu.offsetHeight+"px";} 28document.querySelector('.main-module').style.paddingTop=mainModuleTop;}else{navbarHapik.classList.remove('fixed');if(productsMenu){productsMenu.classList.remove('fixed');} 29document.querySelector('.main-module').style.paddingTop="";}} 30function addHtagUrl(element){if(element){const url=new URL(element.href);url.hash='section-map';element.href=url.href;}} 31function removeHtagUrl(element){if(element){const url=new URL(element.href);url.hash="";element.href=url.href;}} 32$(function(){const offsetHeight=document.querySelector('.navbar-hapik').offsetHeight;mobileDetection();addFixedMenu(offsetHeight);$(window).on('resize',function(){const offsetHeight=document.querySelector('.navbar-hapik').offsetHeight;mobileDetection();addFixedMenu(offsetHeight);});window.addEventListener('scroll',function(){addFixedMenu(offsetHeight);});var html="";$menu=$('.navbar-collapse');setTimeout(function(){resizeBlankItem($menu);},1);setTimeout(function(){resizeBlankItem($menu);},100);setTimeout(function(){resizeBlankItem($menu);},500);setTimeout(function(){resizeBlankItem($menu);},1000);$(window).on('resize',function(){resizeBlankItem($menu);});if(ENV.isLoggedIn){var firstName=ENV.connectedContact.firstName;$('.connected-user-name').text(firstName||"My account");html+='<a class="dropdown-item" href="#no_useraccount_page" title="My account">My account</a>';html+='<a class="dropdown-item" href="#no_useraccount_page" title="Log-out">Log-out</a>';if(Modernizr.touchevents)$('.nav-item-user > a').attr('href','#').attr('data-bs-toggle','dropdown');} 33else{html+='<a class="dropdown-item" href="#no_useraccount_page" title="Log in">Log in</a>';html+='<a class="dropdown-item" href="#no_useraccount_page" title="Create an account">Create an account</a>';} 34$('.dropdown-menu-user').html(html);});
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.