1"use strict";(self.webpackChunkeleven_miles_erebus=self.webpackChunkeleven_miles_erebus||[]).push([[3716],{3716:function(e,t,a){a.r(t),a.d(t,{loadGeo:function(){return n}});var r=a(4187);async function n(){const e=await(0,r.Ui)(),t=document.querySelector('[data-behaviour="geo-language-bar"]');if(null!==t){const a="currentLanguage"in t.dataset?t.dataset.currentLanguage:"en",r=t.querySelector('[data-target="geo-language-bar-addition"]'),n=t.querySelector('[data-target="geo-language-bar-title"]'),s=t.querySelector('[data-target="geo-language-bar-options"]'),o=t.querySelector('[data-language="English"]');"en"==a?("US"===e.country&&null!==o&&(s.value=o.value),null!==r&&"US"===e.country&&"textUs"in r.dataset&&(r.innerHTML=r.dataset.textUs,t.classList.remove("u-hidden")),null!==n&&"US"===e.country&&"textUs"in n.dataset&&(n.innerHTML=n.dataset.textUs,t.classList.remove("u-hidden"))):"en-us"==a&&(null!==r&&("GB"===e.country&&"textGb"in r.dataset?(r.innerHTML=r.dataset.textGb,t.classList.remove("u-hidden")):"US"!==e.country&&"textOther"in r.dataset&&(r.innerHTML=r.dataset.textOther,t.classList.remove("u-hidden"))),null!==n&&("GB"===e.country&&"textGb"in n.dataset?(n.innerHTML=n.dataset.textGb,t.classList.remove("u-hidden")):"US"!==e.country&&"textOther"in n.dataset&&(n.innerHTML=n.dataset.textOther,t.classList.remove("u-hidden"))))}const a=document.querySelectorAll('[data-behaviour="geo-pictures"]');a.length>0&&"GB"!=e.country.toUpperCase()&&a.forEach(t=>{const a=t.querySelector('[data-ref="geo-picture-image-target"]'),r=t.querySelector('[data-ref="geo-picture-source-jumbo-target"]'),n=t.querySelector('[data-ref="geo-picture-source-desktop-target"]'),s=t.querySelector('[data-ref="geo-picture-source-tablet-target"]'),o=t.querySelector('[data-ref="geo-picture-source-mobile-target"]'),u="geoDesktopImages"in t.dataset?JSON.parse(t.dataset.geoDesktopImages):[],l="geoMobileImages"in t.dataset?JSON.parse(t.dataset.geoMobileImages):[],i=null!==t?.parentElement?t?.parentElement.querySelector('[data-ref="geo-loading-spinner"]'):null;if(null!==i&&i.classList.remove("u-hidden"),null!==a&&(u.length>0||l.length>0)){let t="",i="",c="",d="";if(l.length>0)for(const t of l)if(t.country_codes.includes(e.country.toUpperCase())){null!==s&&(c=t.source_tablet),null!==o&&(d=t.source_mobile);break}if(u.length>0)for(const l of u)if(l.country_codes.includes(e.country.toUpperCase())){a.setAttribute("src",l.source_desktop),a.setAttribute("width",l.width_desktop),a.setAttribute("height",l.height_desktop),null!==r&&(t=l.source_jumbo),null!==n&&(i=l.source_desktop),null!==s&&""==c&&(c=l.source_tablet),null!==o&&""==d&&(d=l.source_mobile);break}""!=t&&r.setAttribute("srcset",t),""!=i&&n.setAttribute("srcset",i),""!=c&&s.setAttribute("srcset",c),""!=d&&o.setAttribute("srcset",d)}null!==i&&i.classList.add("u-hidden")});const n=document.querySelectorAll('[data-behaviour*="geo-price"]');if(n.length>0){let e=Array.from(n,e=>e.innerHTML.replace(/,/g,""));e=await(0,r.ss)(e),e.length>0&&n.forEach((t,a)=>{a in e&&(t.innerHTML=e[a])})}}document.body.addEventListener("click",e=>{if(e.target&&e.target.parentElement&&e.target.parentElement.classList.contains("wg-li")&&!e.target.parentElement.classList.contains("wgcurrent")){const t=new Date;t.setTime(t.getTime()+2592e6),document.cookie="language-choice="+e.target.parentElement.dataset.codeLanguage+"; path=/; Secure; expires="+t.toUTCString()}}),"loading"!==document.readyState?n():document.addEventListener("DOMContentLoaded",n)}}]); 2//# sourceMappingURL=3716.6465f4d56d15ffafe2df.js.map
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.