PageSourceSearch

https://auchan-agit.fr/build/app.35384d17.js

js auchan-agit.fr collected 2026-09-30 23:11:08 UTC 68,091 bytes, 2 lines download raw bytes

1/*! For license information please see app.35384d17.js.LICENSE.txt */
2(self.webpackChunk=self.webpackChunk||[]).push([[524],{1227:()=>{!function(){for(var e=document.links,t=0;t<e.length;t++)e[t].hostname!==window.location.hostname&&(e[t].target="_blank")}()},1834:()=>{var e=document.querySelector("#burger"),t=document.querySelector("#menuMobile");e.addEventListener("click",(function(){e.classList.toggle("active"),t.classList.toggle("show"),document.querySelector(".burger-label").innerHTML=e.classList.contains("active")?"Fermer le menu":"Ouvrir le menu"}))},3002:()=>{var e=document.querySelector("[data-faciliti-close]");e.addEventListener("click",(function(){e.parentElement.style.display="none"}))},4687:()=>{var e=document.getElementById("bandeaulp"),t=document.querySelector("[data-bandeaulp-open]"),r=document.querySelector("[data-mobileclosemodal]");e&&t.addEventListener("click",(function(){t.classList.toggle("active"),e.classList.toggle("active"),"true"===t.getAttribute("aria-expanded")?t.setAttribute("aria-expanded","false"):t.setAttribute("aria-expanded","true")})),r&&r.addEventListener("click",(function(){e.classList.remove("active")}))},6788:(e,t,r)=>{"use strict";r(1834),r(7979);var n=r(5757),o=(r(1629),r(6099),r(3500),r(6584)),i=r.n(o),a=(r(2008),r(4692)),c=r.n(a);function l(){var e=c()(".item-nav"),t=c()("[data-container]"),r=c()(".header__nav").outerHeight()+c()(".pilarsFilter").outerHeight(),n=window.matchMedia("(max-width: 800px)").matches;n&&(r+=c()(".menuNews").outerHeight()),t.each((function(t,o){var i=o.getBoundingClientRect(),a=e.filter('[data-target="'.concat(o.id,'"]'));i.top<r+20&&i.top>r-20&&!a.hasClass("active")&&(e.removeClass("active"),a.addClass("active"),e.attr("aria-current",null),a.attr("aria-current","true"),n&&c()(".listSecondMenu").scrollLeft(a.position().left))}))}r(2675),r(9463),r(6412),r(2259),r(8125),r(3792),r(4490),r(4782),r(2010),r(4731),r(479),r(9904),r(4185),r(875),r(287),r(3362),r(7764),r(2953),r(6031);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(){s=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function f(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),c=new M(n||[]);return o(a,"_invoke",{value:A(e,r,c)}),a}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=d;var h="suspendedStart",m="suspendedYield",v="executing",y="completed",g={};function b(){}function w(){}function E(){}var L={};f(L,a,(function(){return this}));var S=Object.getPrototypeOf,x=S&&S(S(P([])));x&&x!==r&&n.call(x,a)&&(L=x);var C=E.prototype=b.prototype=Object.create(L);function T(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var l=p(e[o],e,i);if("throw"!==l.type){var s=l.arg,f=s.value;return f&&"object"==u(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function A(t,r,n){var o=h;return function(i,a){if(o===v)throw Error("Generator is already running");if(o===y){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=N(c,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var u=p(t,r,n);if("normal"===u.type){if(o=n.done?y:m,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=y,n.method="throw",n.arg=u.arg)}}}function N(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&
2(r.method="return",r.arg=e,N(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=p(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,g):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(u(t)+" is not iterable")}return w.prototype=E,o(C,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:w,configurable:!0}),w.displayName=f(E,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},T(k.prototype),f(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new k(d(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(C),f(C,l,"Generator"),f(C,a,(function(){return this})),f(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),g}},t}function f(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){f(i,n,o,a,c,"next",e)}function c(e){f(i,n,o,a,c,"throw",e)}a(void 0)}))}}function p(){var e=document.querySelectorAll(".copy-button");0!==e.length&&e.forEach((function(e){var t=e.querySelector("button"),r=e.querySelector(".confirm-copy"),n=t.dataset.text;t.addEventListener("click",d(s().mark((function e(){return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.clipboard.writeText(n);case 2:r.style.display="block",window.setTimeout((function(){r.classList.add("visible"),window.setTimeout((function(){r.classList.remove("visible"),r.style.display="none"}),1e3)}),10);case 4:case"end":return e.stop()}}),e)}))))}))}function h(){var e=function(e){e.classList.contains("visible")||e.classList.add("visible")};i()("[data-item]").on("enter",e),document.querySelectorAll("[data-item]").forEach((function(t){i().is(t)&&e(t)})),l(),window.addEventListener("scroll",(function(){l()})),document.querySelectorAll(".toShare").forEach((function(e){var t=e.querySelector(".toShare-toggle"),r=e.querySelectorAll(".toShare-button");t.addEventListener("click",(function(e){e.stopPropagation(),t.classList.toggle("active"),t.nextElementSibling.classList.toggle("show");var n=t.classList.contains("active");t.querySelector(".toShare-toggle__label").innerHTML=n?"Fermer":"Partager",t.setAttribute("aria-expanded",n?"true":"false"),r.forEach((function(e){return n?e.removeAttribute("tabindex"):e.setAttribute("tabindex","-1")}))}))})),p(),document.querySelector(".menuNews__scrollButton").addEventListener("click",(function(){document.querySelector(".listSecondMenu").scrollBy({left:200,behavior:"smooth"})}))}n.Ay.use([n.Vx,n.Ze,n.xI,n._R,n.dK,n.Ij]),document.addEventListener("DOMContentLoaded",(function(){document.querySelector(".page").classList.contains("Engagement")&&(new n.Ay(".swiper-engagement",{slidesPerView:3,slidesPerGroup:1,spaceBetween:24,autoplay:{delay:5e3},loop:!0,init:!0,preventClicks:!1,preventClicksPropagation:!1,navigation:{nextEl:".swiper-engagement-button-next",prevEl:".swiper-engagement-button-prev"},breakpoints:{640:{slidesPerView:3,slidesPerGroup:1,spaceBetween:24},320:{slidesPerView:1,slidesPerGroup:1,spaceBetween:0}
2}}).init(),h())}));var m=r(4804);!function(){m.A.init({awaitCloseAnimation:!0,openTrigger:"data-modal-open",closeTrigger:"data-modal-close",onShow:function(e){if("showMore"===e.id)document.querySelectorAll("[data-modal-open='showMore']")},onClose:function(e){if("showMore"===e.id)document.querySelector("[data-modal-open='showMore']")}});var e=document.querySelector(".modalOpenNews");e&&e.querySelector(".modal__close").addEventListener("click",(function(){e.classList.remove("is-open"),window.setTimeout((function(){window.location.href="/nos-actualites"}),300)}))}();r(4423),r(739),r(7495),r(1699),r(5440);function v(){var e=document.querySelector("#currentYear"),t=document.querySelector("#listYear"),r=t.querySelectorAll(".labelYear");t&&(r.forEach((function(n){e.innerHTML===n.innerHTML&&n.classList.add("active"),n.addEventListener("click",(function(){r.forEach((function(e){return e.classList.remove("active")})),n.classList.add("active"),e.innerHTML=n.innerHTML,t.classList.remove("show")}))})),document.querySelectorAll(".secondMenu__link").forEach((function(e){e.addEventListener("click",(function(t){t.preventDefault();var r=document.getElementById(e.href.split("#")[1]);if(r){var n=r.getBoundingClientRect().top;window.scrollTo({top:window.scrollY+n+150,behavior:"smooth"})}}))})),h())}r(3418),r(4346),r(8598),r(3288),r(5506),r(8781);function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e){var t=e.news.months,r=document.querySelector("#months");r.innerHTML="",Object.entries(t).forEach((function(e){var t=y(e,2)[1],n=document.createElement("li");n.classList.add("item-nav"),n.dataset.target="ancre"+t.month;var o=document.createElement("a");o.href="#ancre"+t.month,o.id=t.month,o.classList.add("secondMenu__link"),o.innerHTML=t.month_name,n.append(o),t.innerHTML=n,r.append(n)}));var n=document.querySelector("#results"),o=e.news.months;
vendor: 4,586 bytes, line 2
2n.innerHTML="",Object.entries(o).forEach((function(e){var t=y(e,2)[1],r=document.createElement("ul"),o=t.news;r.id="ancre"+t.month,r.classList.add("itemsList"),r.innerHTML=o.join(""),r.dataset.container="",n.append(r)})),c()("#results").on("click","[data-modal-open]",(function(e){var t=c()(e.currentTarget).data("modal-open");m.A.show(t),c()(".modal__close").on("click",(function(e){e.stopPropagation(),m.A.close(t)}))})),v()}function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function E(){E=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new M(n||[]);return o(a,"_invoke",{value:A(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var L={};u(L,a,(function(){return this}));var S=Object.getPrototypeOf,x=S&&S(S(P([])));x&&x!==r&&n.call(x,a)&&(L=x);var C=b.prototype=y.prototype=Object.create(L);function T(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==w(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function A(t,r,n){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=N(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function N(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,N(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function q(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function P(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(w(t)+" is not iterable")}return g.prototype=b,o(C,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(C),e},t.awrap=function(e){return{__await:e}},T(k.prototype),u(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new k(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},T(C),u(C,l,"Generator"),u(C,a,(function(){return this})),u(C,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=P,M.prototype={constructor:M,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;_(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:P(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function L(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function S(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){L(i,n,o,a,c,"next",e)}function c(e){L(i,n,o,a,c,"throw",e)}a(void 0)}))}}c()((function(){var e,t=c()(".page"),r=t.attr("id");p(),0!==(e=document.querySelectorAll(".modal__card")).length&&e.forEach((function(e){var t=e.querySelector(".card__illustration a");t&&t.addEventListener("click",(function(r){r.preventDefault();var n=t.querySelector("img"),o=n.getBoundingClientRect(),i=o.width,a=o.height,c=n.cloneNode();c.classList.add("zoom"),c.style.width="".concat(i,"px"),c.style.height="".concat(a,"px");var l=document.createElement("div");l.classList.add("modal__zoom_container"),l.style.width="30%";var u=document.createElement("div");u.classList.add("modal__zoom_info"),u.innerHTML="Cliquer sur l’image pour fermer",e.appendChild(l),l.appendChild(c),l.appendChild(u),window.setTimeout((function(){l.style.width="100%"}),100),c.addEventListener("click",(function(){l.style.width="".concat(i,"px"),l.style.height="".concat(a,"px"),window.setTimeout((function(){return e.removeChild(l)}),300)}))}))})),"News"===r&&(!function(){var e=document.querySelectorAll(".labelYear button"),t=document.querySelectorAll("#currentYear"),r=document.querySelectorAll(".pilarFilter"),n=document.querySelector("#removeFilters"),o=document.querySelector("#toggleDates"),i=document.querySelector("#listYear"),a={year:""},c=function(){return fetch("/nos-actualites",{method:"POST",body:JSON.stringify(a)}).then((function(e){return e.json()}))};e.forEach((function(e){e.addEventListener("click",S(E().mark((function t(){return E().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a.year=e.textContent,o.classList.toggle("open"),o.setAttribute("aria-expanded","fal
2se"),t.prev=3,t.next=6,c();case 6:b(t.sent),t.next=13;break;case 10:t.prev=10,t.t0=t.catch(3),console.error(t.t0.message);case 13:case"end":return t.stop()}}),t,null,[[3,10]])}))))})),o&&i&&o.addEventListener("click",(function(){i.classList.toggle("show"),o.classList.toggle("open"),o.classList.contains("open")?o.setAttribute("aria-expanded","true"):o.setAttribute("aria-expanded","false")}));var l=[];r.forEach((function(e){e.addEventListener("click",S(E().mark((function r(){var o;return E().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,o=e.id.replace("pilar-",""),l.includes(o)?(l=l.filter((function(e){return e!==o})),e.classList.remove("active")):(n.classList.add("show"),e.classList.add("active"),l.push(o)),l.length>0?n.classList.add("show"):n.classList.remove("show"),a.year=t[0].textContent,a.pilars=l,r.next=8,c();case 8:b(r.sent),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(0),console.error(r.t0.message);case 15:case"end":return r.stop()}}),r,null,[[0,12]])}))))})),n&&n.addEventListener("click",S(E().mark((function e(){return E().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r.forEach((function(e){e.classList.remove("active")})),a.pilars=[],e.prev=2,e.next=5,c();case 5:b(e.sent),n.classList.remove("show"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),console.error(e.t0.message);case 13:case"end":return e.stop()}}),e,null,[[2,10]])}))))}(),v())}));r(8940);var x=r(6540),C=r(5338),T=r(5942),k=(r(8706),r(113),r(5276),r(2062),r(4170),r(9085),r(9432),r(6034),r(5556)),A=r.n(k),N=r(2505),q=r.n(N)().create({baseURL:"/",headers:{Accept:"application/json"}});function _(e){return function(e){return q.get(e).then((function(e){return e.data}))}(e)}var M=r(8142),P=r.n(M),O=r(3528);const j=[{featureType:"administrative.country",stylers:[{visibility:"off"}]},{featureType:"administrative.country",elementType:"geometry.stroke",stylers:[{color:"#757674"},{weight:2}]},{featureType:"administrative.land_parcel",stylers:[{visibility:"off"}]},{featureType:"administrative.land_parcel",elementType:"labels",stylers:[{saturation:20},{lightness:5}]},{featureType:"administrative.locality",stylers:[{visibility:"off"}]},{featureType:"administrative.neighborhood",stylers:[{visibility:"off"}]},{featureType:"administrative.province",stylers:[{visibility:"off"}]},{featureType:"landscape",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi",elementType:"labels.text",stylers:[{visibility:"off"}]},{featureType:"poi.attraction",stylers:[{visibility:"off"}]},{featureType:"poi.business",stylers:[{visibility:"off"}]},{featureType:"poi.government",stylers:[{visibility:"off"}]},{featureType:"poi.medical",stylers:[{visibility:"off"}]},{featureType:"poi.place_of_worship",stylers:[{visibility:"off"}]},{featureType:"poi.school",stylers:[{visibility:"off"}]},{featureType:"poi.sports_complex",stylers:[{visibility:"off"}]},{featureType:"road",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.arterial",stylers:[{lightness:10}]},{featureType:"road.arterial",elementType:"geometry.fill",stylers:[{visibility:"simplified"}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{saturation:-95}]},{featureType:"road.arterial",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{visibility:"off"}]},{featureType:"road.highway",stylers:[{visibility:"off"}]},{featureType:"road.highway",elementType:"labels",stylers:[{visibility:"off"}]},{featureType:"road.local",stylers:[{visibility:"off"}]},{featureType:"transit",stylers:[{visibility:"off"}]},{featureType:"water",stylers:[{color:"#b6d8ff"}]},{featureType:"water",elementType:"labels.text",stylers:[{visibility:"off"}]}];var R="region",I="store";function F(e){var t=e.children,r=e.center,n=e.zoom,o=e.onChange,i=e.onGoogleApiLoaded;return x.createElement("div",{className:"Map"},x.createElement(O.Ay,{bootstrapURLKeys:{client:"gme-srssocietederecherches",channel:"auchanretail-france",key:"AIzaSyBqvRMzIuq2ykvutZ-CPqVFSNALGoN-Zf4"},zoom:n,center:r,onChange:o,options:{fullscreenControl:!1,styles:j,zoomControlOptions:{position:google.maps.ControlPosition.LEFT_CENTER}},onGoogleApiLoaded:i,yesIWantToUseGoogleMapApiInternals:!0},t))}F.propTypes={children:A().node,center:A().shape({lat:A().number,lng:A().number}).isRequired,zoom:A().number.isRequired,onChange:A().func.isRequired,onGoogleApiLoaded:A().func.isRequired},F.defaultProps={};var B=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join(" ")},H=R,G=I,V="activeStore";function z(e){var t=e.children,r=e.variant;return x.createElement("div",{className:B("Panel","Panel--".concat(r))},t)}function Z(e){var t=e.children,r=e.variant;return x.createElement("div",{className:B("PanelHeader","PanelHeader--".concat(r))},t)}function Y(){return x.createElement("svg",{className:"MagnifierIcon",viewBox:"0 0 18 18",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},x.createElement("g",null,x.createElement("path",{d:"M6.5 0A6.5 6.5 0 0 1 13 6.5c0 1.61-.59 3.09-1.5
27 4.23l.28.27h.79l4.99 5L16 17.49l-5-4.99v-.79l-.27-.28A6.471 6.471 0 0 1 6.5 13a6.5 6.5 0 1 1 0-13Zm0 2C4.01 2 2 4.01 2 6.5S4.01 11 6.5 11 11 8.99 11 6.5 8.99 2 6.5 2Z"})))}z.propTypes={children:A().node.isRequired,variant:A().oneOf([H,G])},z.defaultProps={variant:H},Z.propTypes={children:A().node.isRequired,variant:A().oneOf([H,G,V])},Z.defaultProps={variant:H},z.Header=Z;const W=(0,x.memo)(Y);var U=(0,x.forwardRef)((function(e,t){var r=e.onSelect,n=(0,x.useRef)(),o=function(){t.current&&r(n.current.getPlace())};return(0,x.useEffect)((function(){var e;return t.current&&null!==(e=google)&&void 0!==e&&null!==(e=e.maps)&&void 0!==e&&null!==(e=e.places)&&void 0!==e&&e.SearchBox&&(n.current=new google.maps.places.Autocomplete(t.current,{componentRestrictions:{country:"fr"}}),n.current.addListener("place_changed",o)),function(){n.current&&google.maps.event.clearInstanceListeners(n.current)}}),[]),x.createElement("div",{className:"SearchBox"},x.createElement("div",{className:"SearchBox-container"},x.createElement(W,null),x.createElement("label",{className:"SearchBox-label sr-only",htmlFor:"query"},"Rechercher une ville, un code postal ou une région"),x.createElement("input",{placeholder:"Rechercher une ville, un code postal ou une région",className:"SearchBox-input",ref:t,type:"text",name:"query",id:"query",role:"combobox","aria-autocomplete":"list"})))}));U.displayName="SearchBox",U.propTypes={onSelect:A().func},U.defaultProps={};const D=U;function $(e){var t=e.store,r=e.onClick,n=e.activePilar,o=(0,x.useMemo)((function(){return n?n.color:"#c20e1a"}),[n]);return x.createElement("button",{type:"button",className:B("StoreMarker",t.shouldBeShifted&&"StoreMarker--shifted"),onClick:function(){return r(t)}},x.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 21"},x.createElement("g",null,x.createElement("path",{fill:o,d:"M7.3,16.8l-0.2,0c-3.9-0.9-6.6-4.2-6.6-8c0.2-4.6,4-8.2,8.6-8.2c4.6,0,8.4,3.7,8.4,8.2c0,3.8-2.7,7.1-6.6,8 l-0.2,0L9,19.9L7.3,16.8z"}),x.createElement("path",{fill:"#fff",d:"M9.1,1C13.5,1,17,4.5,17,8.7c0,3.6-2.6,6.7-6.2,7.5l-0.5,0.1l-0.2,0.4L9,18.9l-1.1-2.1l-0.2-0.4l-0.5-0.1 C3.6,15.4,1,12.3,1,8.7C1.2,4.5,4.8,1,9.1,1 M9.1,0C4.2,0,0.2,3.9,0,8.7c0,4.2,3,7.6,7,8.5L9,21l2-3.8c4-0.9,7-4.3,7-8.5 C18,3.9,14,0,9.1,0L9.1,0z"}))))}function Q(e){var t=e.lat,r=e.lng,n=e.count,o=e.name,i=e.onClick;return x.createElement("button",{type:"button",onClick:function(){return i({lat:t,lng:r})},className:"RegionMarker"},x.createElement("div",{className:"RegionMarker-count"},n),x.createElement("div",{className:"RegionMarker-name"},x.createElement("span",{dangerouslySetInnerHTML:{__html:o}})))}$.propTypes={store:A().object.isRequired,onClick:A().func.isRequired,activePilar:A().object},$.defaultProps={},Q.propTypes={lat:A().number.isRequired,lng:A().number.isRequired,count:A().number.isRequired,name:A().string.isRequired,onClick:A().func.isRequired},Q.defaultProps={};const K=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:768;return window.matchMedia&&window.matchMedia("screen and (max-width: ".concat(e,"px)")).matches};function J(e){var t=(0,x.useRef)();return(0,x.useEffect)((function(){t.current=e}),[e]),t.current}function X(e){var t=e.activeMode,r=e.onChange;return x.createElement("div",{className:"ViewModeSwitch"},x.createElement("button",{type:"button",onClick:function(){return r(R)},className:B("ViewModeSwitch-button","ViewModeSwitch-button--regions",t===I&&"ViewModeSwitch-button--inactive")},"Régions"),x.createElement("button",{type:"button",onClick:function(){return r(I)},className:B("ViewModeSwitch-button","ViewModeSwitch-button--stores",t===R&&"ViewModeSwitch-button--inactive")},"Magasins"))}X.propTypes={activeMode:A().oneOf([R,I]).isRequired,onChange:A().func.isRequired},X.defaultProps={};var ee=(0,x.forwardRef)((function(e,t){var r=e.children,n=e.onReachBottom,o=e.pilar,i=(0,x.useMemo)((function(){return o?{backgroundColor:o.lightColor}:null}),[o]),a=(0,x.useCallback)((function(){if(t.current){var e=t.current.getBoundingClientRect().height,r=t.current,o=r.scrollTop;r.scrollHeight-o-e<=50&&n()}}),[n]);return(0,x.useEffect)((function(){return t.current&&t.current.addEventListener("scroll",a),function(){t.current&&t.current.removeEventListener("scroll",a)}}),[a]),x.createElement("div",{className:"InitiativesList",style:i},x.createElement("div",{className:"InitiativesList-wrapper",ref:t},r))}));ee.displayName="InitiativesList",ee.propTypes={children:A().node.isRequired,onReachBottom:A().func.isRequired,activeStore:A().number,activePilar:A().number,pilar:A().shape({lightColor:A().string})},ee.defaultProps={};const te=ee;function re(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;
2!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ne(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ne(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function oe(e){var t=e.pilars,r=e.value,n=e.onChange,o=function(e){(null==r?void 0:r.id)!==e.id?n(e):n()},i=re((0,x.useState)(),2),a=i[0],c=i[1],l=(0,x.useCallback)((function(e){c(e)}));return x.createElement("div",{className:"Filters"},x.createElement("p",{className:"Filters-legend"},"Filtrer par thématique"),x.createElement("ul",{className:"Filters-list"},t.map((function(e){var t="pilarFilter_".concat(e.id),n=(null==r?void 0:r.id)===e.id;return x.createElement("li",{key:e.id},x.createElement("label",{htmlFor:t,className:B("Filters-button","Filters-button--".concat(e.id),n&&"Filters-button--checked",a===e.id&&"Filters-button--focused")},x.createElement("input",{type:"checkbox",value:e.id,name:"pilarFilter",id:t,onChange:function(){return o(e)},checked:n,onFocus:function(){return l(e.id)},onBlur:function(){return l()}}),e.name))}))))}function ie(){return x.createElement("svg",{className:"CrossIcon",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12"},x.createElement("g",{transform:"rotate(45 6 6)"},x.createElement("path",{d:"M7.214 0v4.79H12v2.42H7.214V12H4.786V7.21H0V4.79h4.786V0h2.428Z"})))}oe.propTypes={pilars:A().array.isRequired,value:A().number,onChange:A().func.isRequired},oe.defaultProps={};const ae=(0,x.memo)(ie);function ce(e){var t=e.name,r=e.canal,n=e.address,o=e.city,i=e.phone,a=e.postalCode,c=e.onClose;return x.createElement("div",{className:"ActiveStoreBox"},x.createElement("h2",{className:"ActiveStoreBox-title"},r," ",t),x.createElement("p",{className:"ActiveStoreBox-infos"},n,x.createElement("br",null),a," ",o,x.createElement("br",null),i),x.createElement("button",{className:"ActiveStoreBox-closeButton",type:"button",title:"Fermer la fiche magasin",onClick:c},x.createElement(ae,null)))}function le(e){var t=e.name,r=e.description,n=e.pilar,o=e.image,i=e.ariaImage;return x.createElement("div",{className:"MapInfoBox",style:{backgroundColor:n.color}},(null==o?void 0:o.url)&&x.createElement("div",{className:"MapInfoBox-imageWrapper"},x.createElement("img",{src:"/uploads/media/"+o.url,alt:i})),x.createElement("div",{className:"MapInfoBox-content"},x.createElement("h2",{className:"MapInfoBox-title"},t),x.createElement("div",{className:"MapInfoBox-description",dangerouslySetInnerHTML:{__html:r}})))}ce.propTypes={name:A().string.isRequired,canal:A().string.isRequired,address:A().string.isRequired,city:A().string.isRequired,phone:A().string.isRequired,postalCode:A().string.isRequired,onClose:A().func.isRequired},ce.defaultProps={},le.propTypes={name:A().string.isRequired,description:A().string.isRequired,pilar:A().shape({color:A().string}).isRequired,image:A().shape({url:A().string}),ariaImage:A().string},le.defaultProps={};r(3296),r(7208),r(8408);function ue(){return x.createElement("svg",{className:"ShareIcon",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 26"},x.createElement("path",{fill:"#FF0005",fillRule:"nonzero",d:"M19 24a3 3 0 1 1 0-6 3 3 0 0 1 0 6ZM5 16a3 3 0 1 1 0-6 3 3 0 0 1 0 6ZM19 2a3 3 0 1 1 0 6 3 3 0 0 1 0-6Zm0 14c-1.77 0-3.315.925-4.204 2.312l-5.355-3.06c.346-.68.559-1.438.559-2.252 0-.503-.097-.979-.235-1.437l5.571-3.183A4.97 4.97 0 0 0 19 10a5 5 0 0 0 5-5 5 5 0 0 0-5-5 5 5 0 0 0-5 5c0 .503.097.979.235 1.438L8.664 9.62A4.973 4.973 0 0 0 5 8a5 5 0 0 0-5 5 5 5 0 0 0 5 5c1.14 0 2.179-.396 3.02-1.038L8 17l6.055 3.46c-.02.18-.055.354-.055.54a5 5 0 0 0 5 5 5 5 0 0 0 5-5 5 5 0 0 0-5-5Z"}))}const se=(0,x.memo)(ue);function fe(){return x.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",width:"32",height:"32"},x.createElement("g",{fill:"none",fillRule:"evenodd"},x.createElement("circle",{cx:"16",cy:"16",r:"16",fill:"#FF2530"}),x.createElement("g",{transform:"rotate(-45 26.623 -1.6)"},x.createElement("path",{fill:"#fff",d:"M1.267 3.333c0-1.14.926-2.066 2.066-2.066H6V0H3.333a3.335 3.335 0 0 0 0 6.667H6V5.4H3.333a2.068 2.068 0 0 1-2.066-2.067ZM4 4h5.333V2.667H4V4Zm6-4H7.333v1.267H10c1.14 0 2.067.926 2.067 2.066 0 1.14-.927 2.067-2.067 2.067H7.333v1.267H10A3.335 3.335 0 0 0 10 0Z"}))))}const de=(0,x.memo)(fe);function pe(){return x.createElement("svg",{className:"TwitterIcon",width:"32",height:"32",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("circle",{fill:"#00B5E6",cx:"16",cy:"16",r:"16"}),x.createElement("path",{d:"M5.29193548,13 C11.7629032,13 15.2725806,8.00984252 15.2725806,3.68503937 C15.2725806,3.58267717 15.2725806,3.40354331 15.2451613,3.25 C15.9306452,2.78937008 16.533871,2.2007874 17,1.56102362 C16.3419355,1.84251969 15.683871,1.99606299 14.9983871,2.07283465 C15.7387097,1.66338583 16.2870968,1.02362205 16.533871,0.255905512 C15.8483871,0.614173228 15.1354839,0.895669291 14.2854839,1.0492126 C13.6274194,0.409448819 12.75,0 11.7354839,0 C9.78870968,0 8.1983871,1.48425197 8.1983871,3.3011811 C8.1983871,3.55708661 8.22580645,3.81299213 8.28064516,4.06889764 C5.45645161,3.88976378 2.87903226,2.58464567 1.12419355,0.614173228 C0.822580645,1.12598425 0.658064516,1.66338583 0.658064516,2.2519685 C0.658064516,3.40354331 1.28870968,4.37598425 2.2483871,4.96456693 C1.67258065,4.93897638 1.12419355,4.78543307 0.658064516,4.55511811 C0.658064516,4.58070866 0.658064516,4.58070866 0.658064516,4.58070866 C0.658064516,6.14173228 1.86451613,7.4980315 3.45483871,7.80511811 C3.15322581,7.88188976 2.82419355,7.90748031 2.57741935,7.90748031 C2.35806452,7.90748031 2.11129032,7.88188976 1.91935484,7.83070866 C2.38548387,9.13582677 3.67419355,10.0826772 5.20967742,10.1082677 C4.00322581,10.9783465 2.49516129,11.515748 0.877419355,11.515748 C0.548387097,11.5669291 0.274193548,11.515748 0,11.4901575 C1.48064516,12.4625984 3.31774194,13 5.29193548,13",transform:"translate(7.650000, 9.600000)",fill:"#FFFFFF"}))}const he=(0,x.memo)(pe);function me(){return x.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("circle",{fill:"#0079BC",cx:"16",cy:"16",r:"16"}),x.createElement("path",{d:"M3.39618834,14.4 L0.274439462,14.4 L0.274439462,4.78914027 L3.39618834,4.78914027 L3.39618834,14.4 Z M1.81816143,3.45339367 C0.789013453,3.45339367 0,2.67149321 0,1.72669683 C0,0.781900452 0.823318386,0 1.81816143,0 C2.81300448,0 3.63632287,0.781900452 3.63632287,1.72669683 C3.63632287,2.67149321 2.88161435,3.45339367 1.81816143,3.45339367 Z M15.2313901,14.4 L12.1096413,14.4 L12.1096413,9.74117647 C12.1096413,8.63348416 12.0753363,7.16742081 10.4630045,7.16742081 C8.81636771,7.16742081 8.57623318,8.40542986 8.57623318,9.64343891 L8.57623318,14.4 L5.4544843,14.4 L5.4544843,4.78914027 L8.50762332,4.78914027 L8.50762332,6.12488688 L8.54192825,6.12488688 C8.98789238,5.34298643 9.98273543,4.56108597 11.5264574,4.56108597 C14.7168161,4.56108597 15.3,6.5158371 15.3,9.18733032 L15.3,14.4 L15.2313901,14.4 L15.2313901,14.4 Z",transform:"translate(9.350000, 8.200000)",fill:"#FFFFFF",fillRule:"nonzero"}))}const ve=(0,x.memo)(me);function ye(){return x.createElement("svg",{width:"32",height:"32",viewBox:"0 0 32 32",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},x.createElement("circle",{fill:"#436AB6",cx:"16",cy:"16",r:"16"}),x.createElement("path",{d:"M19.8227571,9.97843666 C19.2450766,9.97843666 18.7724289,9.97843666 18.1947484,9.97843666 C17.4595186,9.97843666 16.9868709,10.2991914 16.9868709,10.8948787 C16.9343545,11.3989218 16.9868709,11.9487871 16.9868709,12.361186 C16.9868709,12.5444744 17.0393873,12.5444744 17.1969365,12.5444744 C17.9846827,12.5444744 18.8249453,12.5444744 19.6126915,12.5444744 C19.8227571,12.5444744 19.9277899,12.5902965 19.9277899,12.819407 C19.8752735,13.6442049 19.7177243,14.5148248 19.7177243,15.3396226 C19.7177243,15.5229111 19.6652079,15.5229111 19.4026258,15.5229111 C18.7199125,15.5229111 18.1422319,15.5229111 17.4595186,15.5229111 C17.0393873,15.5229111 17.0919037,15.4770889 17.0919037,15.8436658 C17.0919037,18.5013477 17.0919037,21.0215633 17.0919037,23.6792453 C17.0919037,23.9541779 17.0393873,24 16.7242888,24 C15.6214442,24 14.5185996,24 13.4157549,24 C13.1006565,24 
213.04814,23.9541779 13.04814,23.6792453 C13.04814,22.3045822 13.04814,21.0215633 13.04814,19.7385445 C13.04814,18.4555256 13.04814,17.0808625 13.04814,15.7520216 C13.04814,15.5687332 12.9956236,15.4312668 12.7330416,15.4770889 C12.3129103,15.4770889 11.7877462,15.4770889 11.3150985,15.4770889 C11,15.6145553 11,15.5229111 11,15.3396226 C11,14.5148248 11,13.7358491 11,12.819407 C11,12.6361186 11.0525164,12.6361186 11.2100656,12.6361186 C11.7352298,12.6361186 12.1553611,12.6361186 12.6805252,12.6361186 C12.9956236,12.6361186 13.04814,12.5902965 13.04814,12.3153639 C13.04814,11.6738544 13.04814,11.0781671 13.04814,10.3908356 C13.04814,9.61185984 13.2582057,8.9245283 13.7833698,8.28301887 C14.4660832,7.50404313 15.4113786,7.13746631 16.4617068,7.0458221 C17.5645514,7 18.6673961,7.0458221 19.7702407,7 C19.9277899,7 19.9803063,7.0458221 19.9803063,7.18328841 C19.9803063,8.00808625 19.9803063,8.8787062 19.9803063,9.70350404 C20.0328228,9.88679245 19.9803063,9.97843666 19.8227571,9.97843666 Z",fill:"#FFFFFF"}))}const ge=(0,x.memo)(ye);var be=r(3698),we=r(3153);function Ee(e){return Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function Le(){Le=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var i=t&&t.prototype instanceof y?t:y,a=Object.create(i.prototype),c=new q(n||[]);return o(a,"_invoke",{value:T(e,r,c)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=s;var d="suspendedStart",p="suspendedYield",h="executing",m="completed",v={};function y(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var E=Object.getPrototypeOf,L=E&&E(E(_([])));L&&L!==r&&n.call(L,a)&&(w=L);var S=b.prototype=y.prototype=Object.create(w);function x(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var l=f(e[o],e,i);if("throw"!==l.type){var u=l.arg,s=u.value;return s&&"object"==Ee(s)&&n.call(s,"__await")?t.resolve(s.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(s).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(l.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function T(t,r,n){var o=d;return function(i,a){if(o===h)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var l=k(c,n);if(l){if(l===v)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===d)throw o=m,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=h;var u=f(t,r,n);if("normal"===u.type){if(o=n.done?m:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=m,n.method="throw",n.arg=u.arg)}}}function k(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function q(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function _(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(Ee(t)+" is not iterable")}return g.prototype=b,o(S,"constructor",{value:b,configurable:!0}),o(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},t.awrap=function(e){return{__await:e}},x(C.prototype),u(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Prom
2ise);var a=new C(s(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(S),u(S,l,"Generator"),u(S,a,(function(){return this})),u(S,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=_,q.prototype={constructor:q,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(N),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:_(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function Se(e,t,r,n,o,i,a){try{var c=e[i](a),l=c.value}catch(e){return void r(e)}c.done?t(l):Promise.resolve(l).then(n,o)}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ce(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ce(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function Te(e){var t=e.url,r=e.id,n=xe((0,x.useState)(!1),2),o=n[0],i=n[1],a=xe((0,x.useState)(!1),2),c=a[0],l=a[1],u=function(){var e,r=(e=Le().mark((function e(){return Le().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(navigator){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,navigator.clipboard.writeText(t);case 4:l(!0);case 5:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Se(i,n,o,a,c,"next",e)}function c(e){Se(i,n,o,a,c,"throw",e)}a(void 0)}))});return function(){return r.apply(this,arguments)}}();(0,x.useEffect)((function(){c&&window.setTimeout((function(){return l(!1)}),600)}),[c]);var s=(0,x.useCallback)((function(){i((function(e){return!e}))}),[]);return x.createElement("div",{className:"ShareWidget"},x.createElement("button",{type:"button",className:"ShareWidget-toggle",onClick:s,title:o?"Fermer":"Partager","aria-expanded":o?"true":"false","aria-controls":r},o?x.createElement(ae,null):x.createElement(se,null)),x.createElement(be.N,null,o&&x.createElement(we.P.div,{transition:{duration:.4},className:"ShareWidget-list",id:r,initial:{opacity:0}
2,animate:{opacity:1},exit:{opacity:0}},c&&x.createElement(we.P.div,{className:"ShareWidget-copiedToast",initial:{y:0,opacity:1},transition:{duration:.6},animate:{y:-44,opacity:0}},"Copié !"),x.createElement(we.P.div,{transition:{duration:.2},initial:{x:0},animate:{x:-44},exit:{x:0}},x.createElement("button",{className:"ShareWidget-SNButton",type:"button",onClick:u,title:"Copier le lien"},x.createElement(de,null))),x.createElement(we.P.div,{transition:{duration:.2,delay:.05},initial:{x:0,y:0},animate:{x:-22,y:-30},exit:{x:0,y:0}},x.createElement("button",{className:"ShareWidget-SNButton",type:"button",onClick:function(){window.open("https://twitter.com/intent/tweet?text=".concat(t),"_blank")},title:"Partager sur Twitter"},x.createElement(he,null))),x.createElement(we.P.div,{transition:{duration:.2,delay:.1},initial:{x:0,y:0},animate:{x:16,y:-30},exit:{x:0,y:0}},x.createElement("button",{className:"ShareWidget-SNButton",type:"button",onClick:function(){window.open("https://www.linkedin.com/cws/share?url=".concat(t),"_blank")},title:"Partager sur LinkedIn"},x.createElement(ve,null))),x.createElement(we.P.div,{transition:{duration:.2,delay:.105},initial:{x:0},animate:{x:36},exit:{x:0}},x.createElement("button",{className:"ShareWidget-SNButton",type:"button",onClick:function(){window.open("https://www.facebook.com/sharer/sharer.php?u=".concat(t),"_blank")},title:"Partager sur Facebook"},x.createElement(ge,null))))))}Te.propTypes={url:A().string.isRequired,id:A().string.isRequired},Te.defaultProps={};var ke=r(9799),Ae=r.n(ke);function Ne(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qe(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qe(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _e(e){var t=e.id,r=e.title,n=e.description,o=e.store,i=e.pilar,a=e.onStoreClick,c=e.type,l=e.mapName,u=e.parentRef,s=Ne((0,x.useState)(!1),2),f=(s[0],s[1],(0,x.useRef)()),d=Ne((0,x.useState)(!1),2),p=d[0],h=d[1],m=(0,x.useMemo)((function(){return"global"===c?new URL("/nos-actions/initiative/".concat(o.id,"/").concat(t),window.location.origin).toString():new URL("/nos-actions/carte/".concat(l,"/initiative/").concat(o.id,"/").concat(t),window.location.origin).toString()}),[c]),v=function(){f.current&&Ae()(f.current,{container:u},(function(){h(!0)}))};return(0,x.useEffect)((function(){return v(),f.current&&u&&u.addEventListener("scroll",v),function(){f.current&&u&&u.removeEventListener("scroll",v)}}),[]),x.createElement("div",{className:B("Card",p&&"Card--visible"),ref:f},x.createElement(Te,{url:m,id:"ini-".concat(o.id,"-").concat(t)}),x.createElement("h2",{className:"Card-title"},o&&x.createElement("button",{type:"button",className:"Card-store","aria-label":"Voir la fiche magasin",onClick:function(){return a(o)}},"".concat(o.canal," ").concat(o.name)),x.createElement("span",{className:"Card-title-addendum"},r)),x.createElement("p",{className:"Card-description",dangerouslySetInnerHTML:{__html:n}}),i&&x.createElement("p",{className:B("badge","badge--".concat(i.id))},i.name))}function Me(){return x.createElement("div",{className:"CardPlaceholder"},x.createElement("div",{className:"CardPlaceholder-store"}),x.createElement("div",{className:"CardPlaceholder-title"}
2),x.createElement("div",{className:"CardPlaceholder-description"},x.createElement("span",{className:"CardPlaceholder-line"}),x.createElement("span",{className:"CardPlaceholder-line"}),x.createElement("span",{className:"CardPlaceholder-line CardPlaceholder-line--shorter"})))}function Pe(e,t){var r=e.latitude<t.ne.lat&&e.latitude>t.se.lat,n=e.longitude<t.ne.lng&&e.longitude>t.nw.lng;return r&&n}function Oe(e){var t=e.onChange,r=e.activeTab;return x.createElement("div",{className:"Tabs"},x.createElement("button",{className:B("Tabs-button",0===r&&"Tabs-button--active"),type:"button",onClick:function(){return t(0)}},"Carte"),x.createElement("button",{className:B("Tabs-button",1===r&&"Tabs-button--active"),type:"button",onClick:function(){return t(1)}},"Liste"))}function je(){return je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},je.apply(null,arguments)}function Re(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Fe(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(e,t)||Fe(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fe(e,t){if(e){if("string"==typeof e)return Be(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Be(e,t):void 0}}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}_e.propTypes={id:A().number.isRequired,title:A().string.isRequired,description:A().string.isRequired,store:A().object.isRequired,pilar:A().shape({id:A().number,name:A().string}).isRequired,onStoreClick:A().func.isRequired,type:A().oneOf(["global","group"]),mapName:A().string,parentRef:A().object},_e.defaultProps={},Oe.propTypes={activeTab:A().oneOf([0,1]),onChange:A().func.isRequired},Oe.defaultProps={};var He={center:(K(),{lat:46.227638,lng:2.993749000000007}),zoom:K()?5:6},Ge={global:K()?5:6,administrative_area_level_1:8,administrative_area_level_2:9,locality:11};function Ve(e){var t=e.url,r=e.pilars,n=e.storeId,o=e.initiativeId,i=e.mapType,a=Ie((0,x.useState)(o),2),c=a[0],l=a[1],u=Ie((0,x.useState)(),2),s=u[0],f=u[1],d=Ie((0,x.useState)(),2),p=d[0],h=d[1],m=Ie((0,x.useState)(""),2),v=m[0],y=m[1],g=Ie((0,x.useState)(5),2),b=g[0],w=g[1],E=Ie((0,x.useState)(0),2),L=E[0],S=E[1],C=Ie((0,x.useState)(He.zoom),2),k=C[0],A=C[1],N=Ie((0,x.useState)(He.center),2),q=N[0],M=N[1],O=Ie((0,x.useState)("global"===i?R:I),2),j=O[0],B=O[1],Z=Ie((0,x.useState)(!1),2),Y=Z[0],W=Z[1],U=Ie((0,x.useState)(),2),K=U[0],ee=U[1],re=J(p),ne=J(K),ie=J(s),ae=(0,x.useRef)(),ue=(0,x.useRef)(),se=(0,x.useMemo)((function(){return j===R}),[j]),fe=(0,T.useQuery)([t],(function(){return _(t)})),de=fe.isLoading,pe=fe.data,he=(0,x.useMemo)((function(){return(null==pe?void 0:pe.initiatives)||{}}),[pe]),me=(0,x.useMemo)((function(){return(null==pe?void 0:pe.stores)||{}}),[pe]),ve=(0,x.useMemo)((function(){return null==pe?void 0:pe.mapInfo}),[pe]),ye=(0,x.useMemo)((function(){return null==pe?void 0:pe.regions}),[pe]),ge=(0,x.useCallback)((function(){return w(5)}),[]),be=function(e){return h(e)},we=function(){return h()},Ee=function(e){var t=e.lat,r=e.lng;B(I),A(8),M({lat:t,lng:r})},Le=(0,x.useMemo)((function(){var e=window.location.pathname;return~e.indexOf("/carte/")?e.split("/")[3]:null}),[]),Se=(0,x.useMemo)((function(){return ye?ye.filter((function(e){return e.count>0})):[]}),[ye]),xe=(0,x.useMemo)((function(){var e=[];
2if(Object.keys(he).forEach((function(t){var r,n=he[t].map((function(e){return e.store=me[t],e}));(r=e).push.apply(r,Re(n))})),p&&(e=e.filter((function(e){return e.store.id===p.id}))),s&&(e=e.filter((function(e){return e.pilar.id===s.id}))),c){var t=e.find((function(e){return e.id===c}));if(t){var r=e.filter((function(e){return e.id!==c}));e=[t].concat(Re(r))}}return k>Ge.global&&(e=e.filter((function(e){return Pe(e.store,K)}))),function(e){if(!Array.isArray(e))return e;for(var t,r=e.length;0!==r;){t=Math.floor(Math.random()*r),r-=1;var n=[e[t],e[r]];e[r]=n[0],e[t]=n[1]}return e}(e)}),[he,p,s,c,k,K]),Ce=(0,x.useMemo)((function(){return xe.slice(0,b)}),[xe,b]),Te=(0,x.useMemo)((function(){var e=[],t=[];if(s){var r=xe.map((function(e){return e.store.id}));t=Object.values(me).filter((function(e){return r.includes(e.id)}))}else t=Object.values(me);return(t=t.filter((function(e){return Pe(e,K)}))).map((function(t){var r="".concat(t.latitude,"--").concat(t.longitude);return e.indexOf(r)<0?(e.push(r),t.shouldBeShifted=!1):t.shouldBeShifted=!0,t}))}),[me,xe,s]),ke=(0,x.useMemo)((function(){return se?H:p?V:G}),[se,p]);return(0,x.useEffect)((function(){s===ie&&p===re&&P()(K,ne)||ue.current&&ue.current.scrollTo(0,0)}),[K,s,p,ne,ie,re]),(0,x.useEffect)((function(){if(n&&o){var e=me[n];e&&(B(I),h(e))}}),[n,o,Te,me]),(0,x.useEffect)((function(){s&&(B(I),S(0)),ge()}),[s]),(0,x.useEffect)((function(){S(p?1:0)}),[p]),(0,x.useEffect)((function(){void 0===p?(A(He.zoom),M(He.center),void 0!==re&&(l(),"global"===i?window.history.replaceState({},"","/nos-actions"):window.history.replaceState({},"","/nos-actions/carte/".concat(Le)))):(B(I),M({lat:p.latitude,lng:p.longitude}),k<He.zoom&&A(8)),ge()}),[p,re,ge]),(0,x.useEffect)((function(){k>=Ge.locality&&ge()}),[K,k,ge]),x.createElement("div",{className:"Main"},"global"===i&&x.createElement("div",{className:"Main-header"},x.createElement(oe,{pilars:r,value:s,onChange:function(e){return f(e)}}),x.createElement(Oe,{onChange:S,activeTab:L})),x.createElement("div",{className:"Main-body","data-active-tab":L},x.createElement(F,{zoom:k,center:q,onChange:function(e){var t=e.center,r=e.zoom,n=e.bounds;M(t),ee(n),A(r),ae.current&&(ae.current.value="")},onGoogleApiLoaded:function(){return W(!0)}},!se&&Te.map((function(e){return x.createElement($,{key:e.id,lat:e.latitude,lng:e.longitude,store:e,onClick:be,activePilar:s})})),se&&Se.map((function(e){return x.createElement(Q,{key:e.id,lat:e.latitude,lng:e.longitude,name:e.name,count:e.count,onClick:Ee})}))),"global"===i&&x.createElement(X,{onChange:function(e){B(e),e===R&&(A(He.zoom),h(),M(He.center),f())},activeMode:j}),x.createElement(z,{onReset:we,variant:se?H:G},x.createElement(z.Header,{variant:ke,pilar:null==ve?void 0:ve.pilar},!de&&(p?x.createElement(ce,je({},p,{onClose:we})):"group"===i&&ve?x.createElement(le,ve):Y&&x.createElement(D,{onSelect:function(e){e&&e.geometry&&(e.types[0]&&Ge[e.types[0]]&&A(Ge[e.types[0]]),M({lat:e.geometry.location.lat(),lng:e.geometry.location.lng()}),B(I))},onChange:y,value:v,ref:ae}))),x.createElement(te,{onReachBottom:function(){b<xe.length&&w((function(e){return e+5}))},ref:ue,pilar:null==ve?void 0:ve.pilar},de?[0,1,2].map((function(e){return x.createElement(Me,{key:e})})):i&&Ce.map((function(e){return x.createElement(_e,je({},e,{parentRef:ue.current,key:"".concat(i,"_").concat(e.store.id,"_").concat(e.id),type:i,onStoreClick:be,mapName:Le}))}))))))}Ve.propTypes={url:A().string.isRequired,pilars:A().array.isRequired,storeId:A().number,initiativeId:A().number,mapType:A().string},Ve.defaultProps={};var ze=r(376),Ze=new T.QueryClient({defaultOptions:{queries:{retry:!1,refetchOnWindowFocus:!1}}});function Ye(e){return x.createElement(T.QueryClientProvider,{client:Ze},x.createElement(Ve,e),x.createElement(ze.ReactQueryDevtools,{initialIsOpen:!1}))}Ye.propTypes={},Ye.defaultProps={};var We=document.querySelector("#actions-root");We&&(0,C.H)(We).render(x.createElement(Ye,{url:We.dataset.url,pilars:window.pilars,mapType:We.dataset.mapType,storeId:We.dataset.storeId&&parseInt(We.dataset.storeId,10),initiativeId:We.dataset.initiativeId&&parseInt(We.dataset.initiativeId,10)}));c()((function(){var e=c()(".page"),t=e.attr("id");"News"!==t&&"Engagement"!==t&&"Homepage"!==t&&"Faciliti"!==t||function(){var e=document.querySelector("[data-back-top]");if(e){var t=0;window.addEventListener("scroll",(function(){t=window.scrollY,window.requestAnimationFrame((function(){t>window.innerHeight/2?e.classList.add("is-visible"):e.classList.remove("is-visible")}))})),e.addEventListener("click",(function(){window.scrollTo({top:0,behavior:"smooth"})}))}}()}));var Ue=r(8987),De=document.querySelectorAll("[data-cookie]"),$e=document.querySelectorAll("[data-cookie-accept]"),Qe=document.querySelectorAll("[data-cookie-refuse]");function Ke(e){var t=e?"1":"0";Ue.A.set("accept_cookies",t,{expires:30}),De.forEach((function(e){e.classList.contains("cookie--bandeau")&&e.remove()}))}$e&&$e.forEach((function(e){e.addEventListener("click",(function(){Ke(!0),$e.forEach((function(e){return e.setAttribute("disabled",!0)})),Qe.forEach((function(e){return e.removeAttribute("disabled")}))}))})),Qe&&Qe.forEach((function(e){e.addEventListener("click",(function(){Ke(!1),$e.forEach((function(e){return e.removeAttribute("disabled")})),Qe.forEach((function(e){return e.setAttribute("disabled",!0)}))}))})),c()((function(){var e=c()(".page");"Homepage"===e.attr("id")&&function(){function e(e){var t=0,r=e.querySelectorAll(".image-container").length,n=function(o){o===r&&(o=0),e.children[t]&&e.children[t].classList.remove("active"),e.children[o]&&e.children[o].classList.add("active"),window.setTimeout((function(){n((t=o)+1)}),5e3)};window.setTimeout((function(){return n(t+1)}),5e3)}i().threshold(.4),i()("[data-section]").on("enter",(function(e){e.classList.add("visible")})),window.setTimeout((function(){e(document.querySelector(".podium-images .list1 .images-list"))}),0),window.setTimeout((function(){e(document.querySelector(".podium-images .list2 .images-list"))}),1e3),window.setTimeout((function(){e(document.querySelector(".podium-images .list3 .images-list"))}),2e3)}()}));r(3002),r(4687),r(1227),r(9367)},7979:(e,t,r)=>{if(r(1629),r(6099),r(3500),window.innerWidth<640){var n=document.querySelectorAll(".pilar");
2n.forEach((function(e){e.addEventListener("click",(function(){n.forEach((function(e){e.classList.remove("active")})),e.classList.toggle("active")}))}))}},9367:(e,t,r)=>{r(1629),r(6099),r(3500),function(){var e=document.querySelector('[aria-controls="search-popover"]'),t=document.querySelector("#search-popover");e&&t&&(e.addEventListener("click",(function(){var r="false"===t.getAttribute("aria-hidden");t.setAttribute("aria-hidden",r),e.setAttribute("aria-expanded",!r)})),document.addEventListener("click",(function(r){t.contains(r.target)||e.contains(r.target)||(t.setAttribute("aria-hidden",!0),e.setAttribute("aria-expanded",!1))})));var r=document.querySelector(".search");if(r){var n=r.querySelectorAll(".search-tabButton");n.forEach((function(e){e.addEventListener("click",(function(e){n.forEach((function(e){e.classList.remove("active"),e.setAttribute("aria-expanded","false");var t=r.querySelector("#"+e.getAttribute("aria-controls"));t&&(t.classList.remove("active"),t.setAttribute("aria-hidden","true"))})),e.currentTarget.classList.add("active"),e.currentTarget.setAttribute("aria-expanded","true");var t=r.querySelector("#"+e.currentTarget.getAttribute("aria-controls"));t&&(t.setAttribute("aria-hidden","false"),t.classList.add("active"))}))}))}}()}},e=>{e.O(0,[314],(()=>{return t=6788,e(e.s=t);var t}));e.O()}]);

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.