1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7258],{44013(e,t,o){var n=o(97108),r=o.n(n),i=o(20017),a=o(5440),c=function(){function e(e){var t=this;this.element=e,this.countryInfoContent=this.element.querySelector(".cw-country-info"),this.countryInfo=this.element.querySelector(".cw-country-info .wrapper"),this.countryName=this.element.querySelectorAll(".country-name"),this.mapArea=this.element.querySelectorAll(".cw-map-area"),this.continentName=this.element.querySelectorAll(".cw-continent-name"),this.worldMapImage=this.element.querySelector("#cw-world-map-image"),this.accordion=this.element.querySelector(".cp-accordion"),this.infoTooltip=this.element.querySelector(".cw-info-tooltip");var o=this.element.querySelector(".cw-info-icon"),n=this.element.querySelector(".cw-close-country-info"),i=this.element.querySelector(".cw-close-popup");this.gMapApiKey=e.dataset.gmk,n.addEventListener("click",function(e){return t.closeCountryInfo(e)}),i.addEventListener("click",function(e){return t.togglePopUp(e)}),o.addEventListener("click",function(e){return t.togglePopUp(e)}),this.mapHover(this.mapArea),this.mapHover(this.continentName),this.showCountryInfo(),r().accordion(".cp-accordion-list",{multiple:!1,animation:!0,durartion:100,offset:180})}return e.setup=function(t){void 0===t&&(t='[data-module="Global"]'),Array.from(document.querySelectorAll(t)).filter(function(e){return!e.dataset.moduleInitialized}).forEach(function(t){new e(t),t.dataset.moduleInitialized="true"})},e.prototype.mapHover=function(e){var t=this;Array.from(e).forEach(function(e){var o=t.worldMapImage.getAttribute("src");e.addEventListener("mouseover",function(e){var o=e.target.getAttribute("data-src");t.worldMapImage.setAttribute("src",o)}),e.addEventListener("mouseleave",function(){t.worldMapImage.setAttribute("src",o)}),e.addEventListener("click",function(e){e.preventDefault();var o=e.target.getAttribute("target");t.closeCountryInfo(e),t.openAccordion(o)})})},e.prototype.openAccordion=function(e){var t=this,o=document.getElementById(e);o.parentElement.setAttribute("id","accordion-position");var n=o.parentElement.getAttribute("id");null!==o&&(o.parentElement.classList.contains("uk-open")?(this.doScrolling("#".concat(n),1e3),o.parentElement.setAttribute("id","")):(this.isAccordionOpen(),setTimeout(function(){t.doScrolling("#".concat(n),1e3),o.parentElement.setAttribute("id",""),o.click()},300)))},e.prototype.showCountryInfo=function(){var e=this;Array.from(this.countryName).forEach(function(t){t.addEventListener("click",function(){var o=t.nextElementSibling,n=o.querySelectorAll(".info-module");if(o){Array.from(o.querySelectorAll(".map-canvas")).forEach(function(t){if((0,a.nB)(t,"gmap--block")||(0,a.nB)(t,"gmap--loaded"))(0,a.nB)(t,"gmap--block")&&e.createCmpScript(t);else{var o=t.dataset.address;e.createMapImage(t,o)}}),e.countryInfo.innerHTML="",e.accordion.classList.add("accordion-hidden");var r=o.cloneNode(!0);e.countryInfo.appendChild(r),e.countryInfoContent.classList.add("open"),e.doScrolling(".cw-country-info",1e3),e.initSliderMobile(n)}})})},e.prototype.createCmpScript=function(e){var t=document.createElement("script");t.setAttribute("type","text/plain"),t.setAttribute("data-cmp-preview","600x600"),t.setAttribute("data-cmp-preview-connect","cmplazyload__googlemaps"),t.setAttribute("data-cmp-vendor","s1104"),t.setAttribute("class","cmplazyload cmplazyload__googlemaps"),t.innerHTML='Array.from(document.querySelectorAll(".map-canvas")).forEach(a=>{if(!a.classList.contains("gmap--loaded")){a.classList.remove("gmap--block");var c=a.dataset.address.replace(/s/g,"+"),d=`https://maps.googleapis.com/maps/api/staticmap?center=${c}&maptype=roadmap&zoom=15&size=470x235&markers=size:mid%7Ccolor:red%7C${c}&key=${document.querySelector(".cw-global").dataset.gmk}`,b=document.createElement("img");b.setAttribute("class","map"),b.setAttribute("src",d),a.append(b),a.classList.add("gmap--loaded")}})',e.appendChild(t)},e.prototype.initSliderMobile=function(e){var t=document.querySelector(".cw-country-content"),o=this.element.querySelector(".info-container");(0,i.Fr)()&&e.length>1&&(o.classList.add("uk-slider-items"),t.insertAdjacentHTML("beforeend",'<div class="cw-cu
1stom_pagination uk-flex uk-flex-center">\n <ul class="uk-dotnav uk-slider-nav"></ul>\n </div>'),r().slider(t,{draggable:!0}))},e.prototype.closeCountryInfo=function(e){e.stopPropagation(),this.accordion.classList.remove("accordion-hidden"),this.countryInfo.innerHTML="",this.countryInfoContent.classList.remove("open")},e.prototype.togglePopUp=function(e){e.stopPropagation(),this.infoTooltip.classList.toggle("cw-popup-open")},e.prototype.createMapImage=function(e,t){if(!e.querySelector(".map")){var o=t.replace(/\s/g,"+"),n="//maps.googleapis.com/maps/api/staticmap?center=".concat(o,"&maptype=roadmap&zoom=15&size=470x235&markers=size:mid%7Ccolor:red%7C").concat(o,"&key=").concat(this.gMapApiKey),r="<img class='map' src=".concat(n," >");e.innerHTML=r,e.classList.add("gmap--loaded")}},e.prototype.isAccordionOpen=function(){var e=document.querySelector(".cw-accordion-item.uk-open a");e&&e.click()},e.prototype.getElementY=function(e){return window.pageYOffset-92+document.querySelector(e).getBoundingClientRect().top},e.prototype.doScrolling=function(e,t){var o,n=window.pageYOffset,r=this.getElementY(e),i=(document.body.scrollHeight-r<window.innerHeight?document.body.scrollHeight-window.innerHeight:r)-n;i&&window.requestAnimationFrame(function e(r){o||(o=r);var a,c=r-o,s=Math.min(c/t,1);s=(a=s)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1,window.scrollTo(0,n+i*s),c<t&&window.requestAnimationFrame(e)})},e}();const s=c;new c.setup,o.d(t,["default",0,s])}}]); 2//# sourceMappingURL=/dist/bdfcw/./modules/Global.569da394.js.adc6fd57.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.