0&&arguments[0]!==undefined?arguments[0]:{optionalCookies:[]};var id=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"cookie";_classCallCheck(this,CookieControl);this.el=document.getElementById(id);this.options=Object.assign({},{open:false,lifetime:365,acceptValue:"1",revokeValue:"0",timeout:200,domain:null,optionCookieHtml:function optionCookieHtml(cookie){return'\n
\n
\n \n \n ').concat(cookie.label?cookie.label:"","\n \n ").concat(cookie.description?"
".concat(cookie.description,"
"):"","\n
");}},config.options);this.opened=false;this.acceptedCookies=getCookie("cookie-accepted")==="accepted"||getCookie("cookie-accepted")==="refused";this.optionalCookies={};this.optionalCookiesByName=[];config.optionalCookies.forEach(function(ck){var cookieName=ck.cookieName||"cookie-".concat(ck.name);var savedCookie=getCookie(cookieName);var cookie=_objectSpread({},ck,{cookieName:cookieName,accepted:savedCookie===_this.options.revokeValue?false:savedCookie===_this.options.acceptValue||ck.accepted});!savedCookie&&cookie.accepted&&setCookie(cookie.cookieName,_this.options.acceptValue,_this.options.lifetime);_this.optionalCookies[cookie.name]=cookie;_this.optionalCookiesByName.push(cookie.name);if('accepted'in cookie){if('accepted'===cookie.accepted){cookie.onAccept&&cookie.onAccept()}
if('refused'===cookie.accepted){cookie.onRevoke&&cookie.onRevoke()}}});}
_createClass(CookieControl,[{key:"init",value:function init(){if(!this.el)return;this.renderOptional();this.setupEvents();!this.acceptedCookies&&window.setTimeout(this.pending.bind(this),this.options.timeout);}},{key:"setupEvents",value:function setupEvents(){var _this2=this;_toConsumableArray(document.getElementsByClassName("cookie-toggle")).forEach(function(el){el.addEventListener("click",function(e){e.preventDefault();return _this2.opened?_this2.close():_this2.open();});});_toConsumableArray(document.getElementsByClassName("cookie-close")).forEach(function(el){el.addEventListener("click",_this2.pending.bind(_this2));});_toConsumableArray(document.getElementsByClassName("js-open-cookie")).forEach(function(el){el.addEventListener("click",_this2.open.bind(_this2));});_toConsumableArray(document.getElementsByClassName("cookie-accept")).forEach(function(el){el.addEventListener("click",_this2.accept.bind(_this2));});_toConsumableArray(document.getElementsByClassName("cookie-refuse")).forEach(function(el){el.addEventListener("click",_this2.refuse.bind(_this2));});_toConsumableArray(this.el.getElementsByClassName("cookie-optional-checkbox")).forEach(function(checkbox){checkbox.addEventListener("change",_this2.toggleCookie.bind(_this2));});}},{key:"pending",value:function pending(e){e&&e.preventDefault();this.el.removeAttribute("open");this.el.setAttribute("pending","");}},{key:"open",value:function open(e){e&&e.preventDefault();this.el.removeAttribute("pending");this.el.setAttribute("open","");this.opened=true;}},{key:"close",value:function close(e){e&&e.preventDefault();this.el.removeAttribute("pending");this.el.removeAttribute("open");this.opened=false;document.getElementById('cookie').style.display='none';}},{key:"renderOptional",value:function renderOptional(){var _this3=this;var optionalHtml="";this.optionalCookiesByName.forEach(function(cookieName){var cookie=_this3.optionalCookies[cookieName];optionalHtml+=_this3.options.optionCookieHtml(cookie);});this.el.querySelector(".cookie-optional-list").outerHTML=optionalHtml;}},{key:"toggleCookie",value:function toggleCookie(e){this.optionalCookies[e.target.dataset.name].accepted=e.target.checked;this.saveCookie(this.optionalCookies[e.target.dataset.name]);this.options.onChange&&this.options.onChange(e,this);}},{key:"saveAll",value:function saveAll(){var _this4=this;this.optionalCookiesByName.forEach(function(name){return _this4.saveCookie(_this4.optionalCookies[name]);});}},{key:"saveCookie",value:function saveCookie(cookie){setCookie(cookie.cookieName,cookie.accepted?this.options.acceptValue:this.options.revokeValue,this.options.lifetime);}},{key:"accept",value:function accept(e){e&&e.preventDefault();setCookie("cookie-accepted","accepted",this.options.lifetime);if(Boolean(e.target.closest('.sa-button')?.dataset.acceptall)){var _this4=this;this.optionalCookiesByName.forEach(function(name){_this4.optionalCookies[name].accepted=true;return _this4.saveCookie(_this4.optionalCookies[name]);});}
this.close();this.options.onAccept&&this.options.onAccept(this);}},{key:"refuse",value:function refuse(e){e&&e.preventDefault();setCookie("cookie-accepted","refused",this.options.lifetime);this.saveAll();this.close();this.options.onRevoke&&this.options.onRevoke(this);}},{key:"set",value:function set(option,value){this.options[option]=value;}}]);return CookieControl;})();(function(){var ccConfig={options:{lifetime:30,domain:moduleParams.httpCookieDomain},optionalCookies:[{name:"analytics",label:moduleParams.titleAnalytics,description:moduleParams.contentAnalytics,accepted:false},{name:"socialsharing",label:moduleParams.titleSocials,description:moduleParams.contentSocials,accepted:false,onRevoke:function onRevoke(){let facebookScript=document.head.querySelector('script[src*="connect.facebook.net"]')
if(facebookScript){facebookScript.remove()}}}]}
var cookieControl=new CookieControl(ccConfig)
cookieControl.init()
if(cookieControl.acceptedCookies)document.getElementById('cookie').style.display='none'})()}(jQuery));(function($){var moduleParams={"mobileOn":false,"caisseOn":false,"bookingsOn":true,"isAjaxRequest":false};document.addEventListener("DOMContentLoaded",function(){if(!moduleParams.mobileOn){let disclamer=document.getElementById('fancybox-wrap');let overlay=document.getElementById('fancybox-overlay');let closeDisclamer=document.getElementById('fancybox-close');closeDisclamer.addEventListener('click',function(){overlay.remove();disclamer.remove();});}else{let disclamer=document.getElementById('disclamer_wrapper');let closeDisclamer=document.getElementById('disclamer_close');closeDisclamer.addEventListener('click',function(){disclamer.remove();});}});}(jQuery));(function($){var moduleParams={"markupMode":"div","autoSwitchDevice":false,"mobileStatus":true,"mobileIsV16":true,"languagesCode":"fr","pwaEnabled":false,"isSnapchatiOs":0,"httpServer":"","compatibleBrowsersVersions":{"Windows":{"firefox":74,"chrome":80,"opera":67,"edge":80,"explorer":-1},"Apple":{"firefox":74,"chrome":80,"opera":67,"safari":14}},"browsersNames":{"firefox":"Mozilla Firefox","chrome":"Google Chrome","explorer":"Internet Explorer","opera":"Opera","edge":"Microsoft Edge","safari":"Apple Safari"},"obsoleteBrowserText":"Nous avons d\u00e9tect\u00e9 que votre navigateur Internet (%s) n'est pas \u00e0 jour, toutes les fonctionnalit\u00e9s du site ne seront peut-\u00eatre pas accessibles.<\/div>","mobileOn":false,"caisseOn":false,"bookingsOn":true,"isAjaxRequest":false};var jQueryUnveil=jQuery().unveil;const obfuscation=cssClass=>{let classObfuscation=document.getElementsByClassName(cssClass)
if(classObfuscation){for(let i=0;i{let link=classObfuscation[i].getAttribute("data-obfLink")
if(event.ctrlKey){let newWindow=window.open(decodeURIComponent(window.atob(link)),'_blank')
newWindow.focus()}else if('#'===decodeURIComponent(window.atob(link)).charAt(0)){return false}else if(3===event.which){return false}else{document.location.href=decodeURIComponent(window.atob(link))}})
classObfuscation[i].style.cursor="pointer"}}}
obfuscation("obfLink")
function lazyLoad(){};if(!moduleParams.mobileOn){$('marquee.defilante-smooth').marquee().mouseover(function(){$(this).trigger('stop');}).mouseout(function(){$(this).trigger('start');}).mousemove(function(event){if($(this).data('drag')==true){this.scrollLeft=$(this).data('scrollX')+($(this).data('x')-event.clientX);}}).mousedown(function(event){$(this).data('drag',true).data('x',event.clientX).data('scrollX',this.scrollLeft);}).mouseup(function(){$(this).data('drag',false);});}
CaptchaCallback=function(){$('.g-recaptcha').each(function(){var $this=$(this);grecaptcha.render(this,{'sitekey':$this.data('sitekey'),'stoken':$this.data('stoken')});});};recaptchaV2CurrentIndex=0;CaptchaV2Submit=function(token){var $form=$('#recaptcha_'+recaptchaV2CurrentIndex).closest('form');$form.find('input[name="g-recaptcha-response"]').val(token);if($form.data('error')!==1)$form.submit();}
CaptchaV2Callback=function(){$('.g-recaptcha').closest('form').submit(function(){var $form=$(this);recaptchaV2CurrentIndex=$form.find('.g-recaptcha').data('index');if($form.find('input[name="g-recaptcha-response"]').val()!=''){return true;}
grecaptcha.execute(recaptchaV2CurrentIndex);return false;});}
if(moduleParams.autoSwitchDevice&&moduleParams.mobileStatus&&moduleParams.mobileIsV16&&$.browser.desktop){function checkWidth(){if((window.innerWidth<768&&!moduleParams.mobileOn)||(window.innerWidth>=768&&moduleParams.mobileOn)){$(window).unbind('resize');$.get("/ajax.php?page=switchDevice",function(){}).done(function(){$('HTML').css({'background-image':'url("/images/loading.gif")','background-repeat':'no-repeat','background-position':'center center','background-color':'white!important','height':'100%'});$('BODY').fadeOut('slow');}).always(function(){setTimeout(function(){location.reload(true);},400);});}}
$(window).resize(checkWidth);$(window).trigger('resize');}
if(moduleParams.mobileOn&&moduleParams.pwaEnabled){if('serviceWorker'in navigator){navigator.serviceWorker.register('pwa-service-worker.js',{scope:'/'}).then(function(registration){}).catch(function(error){console.log('Service worker registration failed, error:',error);});}}
if(moduleParams.isSnapchatiOs){function getCookie(cname){var name=cname+"=";var decodedCookie=decodeURIComponent(document.cookie);var ca=decodedCookie.split(';');for(var i=0;i{mutations.forEach(mutation=>{let obsfucate=mutation.type=='childList';let nodes=Array.prototype.slice.call(mutation.addedNodes);nodes.forEach(node=>{if(node instanceof HTMLElement&&node.innerHTML.includes('"liste_produits_produits_v16_article"')){obsfucate=true;}});if(obsfucate)obfuscation('obfLink');})})
let divProduits=document.querySelector('.core_content_mid')
if(typeof(divProduits)!='undefined'&&divProduits!=null){obfuscationObserver.observe(divProduits,{childList:true,subtree:true,attributes:false,characterData:false,})}
let cartTooltip=document.getElementById('cart-tooltip-container');if(typeof(cartTooltip)!='undefined'&&cartTooltip!=null){obfuscationObserver.observe(cartTooltip,{childList:true,subtree:true,attributes:false,characterData:false,})}
(function(){if(typeof moduleParams.compatibleBrowsersVersions!=='object'||typeof moduleParams.browsersNames!=='object')return;if(typeof moduleParams.obsoleteBrowserText!=='string'||moduleParams.obsoleteBrowserText==='')return;if(typeof navigator.platform!=='string'||navigator.platform==='')return;if(typeof navigator.userAgent!=='string'||navigator.userAgent==='')return;let os=null;let macosPlatforms=['Macintosh','MacIntel','MacPPC','Mac68K'];let windowsPlatforms=['Win32','Win64','Windows','WinCE'];if(windowsPlatforms.indexOf(navigator.platform)!==-1){os='Windows';}else if(macosPlatforms.indexOf(navigator.platform)!==-1){os='Apple';}
if(os===null||typeof moduleParams.compatibleBrowsersVersions[os]==='undefined')return;let userAgentSplit=navigator.userAgent.toLocaleLowerCase().split(' ');let codesToSearch={'edge':'edg','chrome':'chrome','firefox':'firefox','safari':'safari','explorer':'trident',};let browserName=null;let browserVersion=null;for(let codeKey in codesToSearch){for(let i=0;i-1){browserName=codeKey;let browserData=userAgentSplit[i].split('/');if(typeof browserData[1]!=='undefined')browserVersion=parseInt(browserData[1]);break;}}
if(browserName!==null)break;}
if(browserName===null||browserVersion===null);if(typeof moduleParams.compatibleBrowsersVersions[os][browserName]==='undefined'||typeof moduleParams.browsersNames[browserName]=='undefined')return;if(moduleParams.compatibleBrowsersVersions[os][browserName]<0||browserVersion0){window.onload=function(){FrontUtil.windowOnLoadFunctions.forEach(onLoadFunction=>{if(typeof onLoadFunction==='function')onLoadFunction.call()})}}}(jQuery));