PageSourceSearch

https://www.buffalogames.com/cdn/shop/t/6/assets/locales-form.js?v=76895297290724630461777047202

js buffalogames.com collected 2026-10-02 04:56:06 UTC 3,806 bytes, 2 lines download raw bytes

1window.Maximize.loadedScript.includes("locales-form.js")||(window.Maximize.loadedScript.push("locales-form.js"),requestAnimationFrame(()=>{document.addEventListener("alpine:init",()=>{Alpine.data("xLocalizationForm",language=>({localizationForm:"",openForm:!1,openCountry:!1,openLanguage:!1,loading:!1,cachedResults:!1,currentCountrySelector:"",languageSelector:language,toggleOpenForm(){this.openForm=!this.openForm},submit(){this.$el.closest("#localization_form").submit()},loadCountry(el){if(this.cachedResults)return this.openCountry=!0,!0;let countrySelectorElement=el.closest(".country-selector"),optionEL=countrySelectorElement.querySelector(".country-options");this.loading=!0,this.currentCountrySelector=this.$refs.currentCountry.innerText.toLowerCase();const _this=this;fetch(window.Shopify.routes.root+"?section_id=country-selector").then(reponse=>reponse.text()).then(response=>{const content=new DOMParser().parseFromString(response,"text/html").getElementById("list-country");optionEL.innerHTML=content.innerHTML,requestAnimationFrame(()=>{optionEL.querySelectorAll('li[role="button"]').forEach(country=>{country.addEventListener("click",()=>{_this.setSelectCountry(el,country),countrySelectorElement.dataset.showPopup||el.closest("#localization_form").submit()}),country.addEventListener("keydown",event=>{(event.key==="Enter"||event.key===" ")&&(_this.setSelectCountry(el,country),countrySelectorElement.dataset.showPopup||el.closest("#localization_form").submit())})})}),this.cachedResults=!0,this.openCountry=!0}).finally(()=>{setTimeout(()=>{this.loading=!1,countrySelectorElement.handleOpen(),countrySelectorElement.optionsList.classList.remove("p-0")},300)})},handleOptionEvent(currency_selector,rowItem,language2,selector){const _this=this;this.$el.addEventListener("click",()=>{_this.setSelectLanguage(rowItem,language2,selector),currency_selector==="false"&&_this.submit()}),this.$el.addEventListener("keydown",event=>{(event.key==="Enter"||event.key===" ")&&(_this.setSelectLanguage(rowItem,language2,selector),currency_selector==="false"&&_this.submit())})},setSelectLanguage(rowItem,language2,selector){this.$el.closest("#localization_form").querySelector("#"+selector).value=language2,this.languageSelector=rowItem,this.openLanguage=!1},setSelectCountry(el,country){el.closest("#localization_form").querySelector("#currency_selector").value=country.dataset.country,this.currentCountrySelector=country.dataset.countryTitle.toLowerCase(),this.openCountry=!1},initPosition(position){this.$el.closest("#x-utility")&&position&&(this.getScrollPosition(position,!0),window.addEventListener("resize",()=>{this.getScrollPosition(position,!1)}))},initEventScroll(){const mobile_menu_scroll_ele=document.querySelector("#menu-navigation .scrollbar-visible.overflow-y-auto");mobile_menu_scroll_ele&&this.$el.closest("#utility-bar-mobile")&&mobile_menu_scroll_ele.addEventListener("scroll",()=>{this.openForm=!1}),window.addEventListener("scroll",()=>{this.openForm=!1})},getScrollPosition(position,loadPage){var container=this.$el.closest(".link-list"),itemRect=this.$el.getBoundingClientRect(),containerRect=container.getBoundingClientRect(),xUtility=document.getElementById("x-utility");if(position=="right"){var elementComputedStyle=getComputedStyle(xUtility),padding=parseFloat(elementComputedStyle.paddingRight);let distance=containerRect.right-itemRect.right>0?containerRect.right-itemRect.right:itemRect.right-containerRect.right;this.$el.nextElementSibling.style.right=distance+padding+"px"}else{var elementComputedStyle=getComputedStyle(xUtility),padding=loadPage?0:parseFloat(elementComputedStyle.paddingLeft);this.$el.nextElementSibling.style.left=itemRect.left-padding+"px"}}}))})}));
2//# sourceMappingURL=/cdn/shop/t/6/assets/locales-form.js.map?v=76895297290724630461777047202

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.