1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2071,5160],{2608:(e,t,n)=>{"use strict";n.d(t,{default:()=>o});var r=n(12115),l=n(32587),i=n(13027);async function s(){if(!l.Ii.isNativePlatform())return void console.log("Not native platform â skipping review prompt.");try{await i.Z.requestReview()}catch(e){console.warn("InAppReview request failed:",e)}}function o(){return(0,r.useEffect)(()=>{let e=parseInt(localStorage.getItem("launchCount")||"0",10)+1;localStorage.setItem("launchCount",e),e%5==0&&s()},[]),null}},31385:()=>{},32684:(e,t,n)=>{"use strict";n.d(t,{$o:()=>l,GS:()=>a,I0:()=>i,U4:()=>d,Y:()=>u,b0:()=>h,gE:()=>o,sM:()=>s});let r={fr:"app.therunningcollective.fr",es:"app.therunningcollective.es"},l="main.d1b2y99ks7lgyr.amplifyapp.com";function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.startsWith(l)}let s=Object.keys(r),o=["fr","es"],c={fr:"blog.therunningcollective.fr",es:"blog.therunningcollective.es"},a=["fr"],d=["fr"];function u(e){let t=r[e]||r.fr;return"https://".concat(t)}function h(e){let t=c[e]||c.fr;return"https://".concat(t)}},38747:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});let r={src:"/_next/static/media/favicon.db846142.ico",height:16,width:16,blurWidth:0,blurHeight:0}},47777:(e,t,n)=>{"use strict";n.d(t,{default:()=>h});var r=n(95155),l=n(12115),i=n(20063),s=n(32568),o=n(6752),c=n(76784),a=n(32684);let d="_trc_pref_lang",u="_trc_geo_prompted";function h(e){let{lang:t,translation:n}=e,h=(0,s.useCookies)(),m=(0,i.usePathname)(),[f,b]=(0,l.useState)(null);if((0,l.useEffect)(()=>{if(window.location.hostname!==a.$o)return;let e=setTimeout(async()=>{try{let e=await fetch("/api/geo");if(!e.ok)return;let{country:n,locale:r}=await e.json();if(!n||!r)return;let l=h.get(d)||t;if(r===l||h.get(u)===n)return;(0,c.sendGTMEvent)({event:"geoSwitchPromptShown",detectedCountry:n}),b({country:n,locale:r})}catch(e){}},3e3);return()=>clearTimeout(e)},[]),!f||!n)return null;let g=()=>{h.set(u,f.country,{path:"/",expires:90})},p=()=>{(0,c.sendGTMEvent)({event:"geoSwitchDeclined",detectedCountry:f.country}),g(),b(null)};return(0,r.jsxs)(o.A,{show:!0,centered:!0,onHide:p,backdrop:"static",children:[(0,r.jsx)(o.A.Header,{closeButton:!0,children:(0,r.jsx)(o.A.Title,{className:"fw-bold",children:n.title})}),(0,r.jsx)(o.A.Body,{children:(0,r.jsx)("p",{className:"mb-0",children:n.body})}),(0,r.jsxs)(o.A.Footer,{className:"d-flex flex-column gap-2",children:[(0,r.jsx)("button",{type:"button",className:"btn btn-dark w-100",onClick:()=>{(0,c.sendGTMEvent)({event:"geoSwitchAccepted",detectedCountry:f.country}),h.set(d,f.locale,{path:"/",expires:400}),g(),b(null);let e=m.match(/^\/(fr|es|en)(\/|$)/)?m.replace(/^\/(fr|es|en)(?=\/|$)/,"/".concat(f.locale)):"/".concat(f.locale).concat(m);window.location.href=e},children:n.switchcta}),(0,r.jsx)("button",{type:"button",className:"btn btn-outline-dark w-100",onClick:p,children:n.staycta})]})]})}},49957:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={src:"/_next/static/media/new-logo-trc.522b0939.svg",height:170,width:773,blurWidth:0,blurHeight:0}},67707:(e,t,n)=>{Promise.resolve().then(n.bind(n,38747)),Promise.resolve().then(n.bind(n,2608)),Promise.resolve().then(n.bind(n,80747)),Promise.resolve().then(n.bind(n,47777)),Promise.resolve().then(n.t.bind(n,43166,23)),Promise.resolve().then(n.t.bind(n,42587,23)),Promise.resolve().then(n.t.bind(n,41402,23)),Promise.resolve().then(n.t.bind(n,38471,23)),Promise.resolve().then(n.t.bind(n,95985,23))},80747:(e,t,n)=>{"use strict";n.d(t,{default:()=>a});var r=n(95155),l=n(12115),i=n(15239),s=n(76784),o=n(49957);n(31385);let c="trc_ext_banner_dismissed";function a(e){let{translation:t}=e,[n,a]=(0,l.useState)(!1);(0,l.useEffect)(()=>{try{if(localStorage.getItem(c))return;let e=navigator.userAgent||"",t=/\bChrome\//.test(e)&&!/Edg\/|OPR\/|CriOS|FxiOS/.test(e),n=/Mobi|Android|iPhone|iPad|iPod/i.test(e);if(!t||n)return;let r=setTimeout(()=>{document.documentElement.dataset.trcExtension||(a(!0),(0,s.sendGTMEvent)({event:"extensionBannerShown"}))},1800);return()=>clearTimeout(r)}catch(e){}},[]);let d=e=>{try{localStorage.setItem(c,e?"installed":"dismissed")}catch(e){}a(!1)};return n&&t?(0,r.jsxs)("div",{className:"trc-ext-banner",role:"dialog","aria-label":t.title,children:[(0,r.jsx)("div",{className:"trc-ext-banner__logo",children:(0,r.jsx)(i.default,{src:o.A,alt:"The Running Collective",width:36,height:36})}),(0,r.jsxs)("div",{className:"trc-ext-banner__text",children:[(0,r.jsx)("strong",{children:t.title}),(0,r.jsx)("span",{children:t.text})]}),(0,r.jsx)("a",{className:"trc-ext-banner__cta",href:"https://chromewebstore.google.com/detail/trc-%E2%80%94-codes-promo-compara/hdcgdbkehmfkldcjiegincgebdebljal",target:"_blank",rel:"noopener noreferrer",onClick:()=>{(0,s.sendGTMEvent)({event:"clickInstallExtension",location:"banner"}),d(!0)},children:t.cta}),(0,r.jsx)("button",{type:"button",className:"trc-ext-banner__close","aria-label":t.dismiss,onClick:()=>d(!1),children:"\xd7"})]}):null}},95985:()=>{}},e=>{e.O(0,[4442,5170,7852,1405,7342,5239,8581,4968,8689,8441,1255,7358],()=>e(e.s=67707)),_N_E=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.