1!function(){"use strict";var e={836:function(e){e.exports=function(e){"function"==typeof e?e():"object"==typeof e&&Object.keys(e).forEach(function(t){"function"==typeof e[t]&&e[t]()})}},386:function(e){let t,o,n;function a(){let e=t.getPlace(),a="",r="";for(let t of e.address_components)switch(t.types[0]){case"street_number":a=`${t.long_name} ${a}`;break;case"route":a+=t.short_name;break;case"postal_code":r=`${t.long_name}${r}`;break;case"postal_code_suffix":r=`${r}-${t.long_name}`;break;case"locality":document.querySelector('[name*="city"]').value=t.long_name;break;case"administrative_area_level_1":document.querySelector('[name*="state"]').value=t.short_name,$('[name*="state"]').trigger("change");break;case"country":document.querySelector('[name*="country"]').value=t.short_name}o.value=a,n.value=r}$(document).ready(function(){$('[name*="address1"]').length>0&&(o=document.querySelector('[name*="address1"]'),n=document.querySelector('[name*="postalCode"]'),(t=new google.maps.places.Autocomplete(o,{componentRestrictions:{country:["us"]},fields:["address_components","geometry"],types:["address"]})).addListener("place_changed",a))}),e.exports={initAutocompleteStore:function(){if($("#store-postal-code").length>0){let e=document.getElementById("store-postal-code"),t=new google.maps.places.Autocomplete(e,{fields:["name","formatted_address","geometry"],types:["geocode"]});google.maps.event.clearInstanceListeners(e),google.maps.event.addListener(t,"place_changed",()=>{let o=t.getPlace();o.formatted_address&&o.geometry&&o.geometry.location&&($("#lat").val(o.geometry.location.lat()),$("#long").val(o.geometry.location.lng()),e.value=o.formatted_address,$("[name="+e.closest("form").name+"]").trigger("submit",{source:"autocomplete"}))})}}}},8002:function(e,t,o){var n=o(2062),a=document.querySelector(".js-store-locator-results"),r=$(".js-store-locator-results"),s=Number(r.data("lazy-load-store-count")),i=$(".js-red-wing-store-card");function l(e){if(!e)return null;var t=$(e),o=n.addQueryParams(r.attr("data-store-details"),{storeID:t.data("store-id"),storeIndex:t.data("store-index")});return $.ajax({url:o,type:"GET"}).then(function(e){return $(e)}).catch(function(){return null})}function c(e){var t=Array.from(a.querySelectorAll('.js-lazy-store:not([class*=" cs-filter"])')).slice(0,s),o=document.querySelector(".js-show-more-stores-btn");return Promise.all(t.map(e=>l(e))).then(function(o){o.forEach(function(e,o){e&&$(t[o]).replaceWith(e)});var n=o.find(function(e){return e&&e.length});if(n&&n.length&&e){var a=n.find('a, button, input, [tabindex]:not([tabindex="-1"])').first();a.length&&a.focus()}}).finally(()=>{$(".js-store-locator-results-container").append(o)})}function d(){var e=Array.from(a.querySelectorAll('[class*="js-store-id-"]')),t=new Map;return e.forEach(function(e){var o=["store-locator__result","card-body"],n=document.createElement("li");Array.from(e.attributes).forEach(e=>{n.setAttribute(e.name,e.value)}),!e.classList.contains("js-lazy-store")&&n.classList.add("js-lazy-store"),Array.from(e.classList).forEach(e=>{o.includes(e)?n.classList.remove(String(e)):n.classList.add(String(e))});var a=Array.from(e.classList).find(e=>e.startsWith("js-store-id-"));if(a){var r=a.replace("js-store-id-","");t.set(r,n)}}),t}function u(){var e=Array.from(d().values());e.length&&Promise.all(e).then(e=>{var t=document.createDocumentFragment();e.forEach(e=>e&&t.appendChild(e)),r.html(""),r[0].appendChild(t),r[0].scrollTop=0}).finally(c)}$("body").on({"click.storeLocatorCheckbox":function(e){"checkbox"===e.target.type&&u()},"click.js-show-more-stores-btn":function(e){if($(e.target).hasClass("js-show-more-stores-btn")){var t=$(e.target);t.prop("disabled",!0);c(!0).finally(function(){t.prop("disabled",!1)})}}}),e.exports={loadLazyStoreHtml:l,updateAllStoreResults:function(e){if(e&&Array.isArray(e.stores)){var t=d(),o=e.stores.map((e,o)=>{var n=String(e.ID),a=t.get(n);return void 0===a?null:(a.setAttribute("data-store-index",o+1),a)});o.length&&Promise.all(o).then(e=>{var t=document.createDocumentFragment();e.forEach(function(e){return e&&t.appendChild(e)}),r.html(""),r[0].appendChild(t),r[0].scrollTop=0}).finally(c),l($(t.get(e.closestRedWingStore.ID))).then(function(e){$(i).html(e[0])})}},reloadStoreResults:u}},4886:function(e,t,o){var n=o(8002);function a(e,t,o,n,a){this.position=e,this.content=t,this.id=n.id,this.infoWindow=o,this.map=a,this.div=null}async function r(e){var t=$(".js-store-locator-results .js-store-id-"+e);return t.hasClass("js-lazy-store")?(await n.loadLazyStoreHtml(t)).html():t.html()}a.prototype=new google.maps.OverlayView,a.prototype.onAdd=function(){var e=this;
1this.div=document.createElement("div"),this.div.className="custom-overlay",this.div.appendChild(this.content),this.div.addEventListener("click",async function(){var t=await r(e.id);e.infoWindow.setContent(t),e.infoWindow.setPosition(e.position),e.infoWindow.open(e.map)}),this.getPanes().overlayImage.appendChild(this.div)},a.prototype.draw=function(){var e=this.getProjection().fromLatLngToDivPixel(this.position);e&&this.div&&(this.div.style.left=e.x+"px",this.div.style.top=e.y+"px",this.div.style.position="absolute")},a.prototype.onRemove=function(){this.div&&(this.div.parentNode.removeChild(this.div),this.div=null)};$(document).on("update:map",function(e,t){!function e(t){function o(){if(t.stores&&t.showMap){var e,o,n,a=t.lat,r=t.long,s=t.stores[5],i=new google.maps.LatLng(a,r),l=new google.maps.LatLng(s.lat,s.lng);window.map.setCenter(i),e=window.map,o=i,n=l,new google.maps.marker.AdvancedMarkerElement({position:{lat:o.lat(),lng:o.lng()},map:e,title:"Current Location"}),function(e,t,o){let n=new google.maps.LatLngBounds;n.extend(t),n.extend(o),google.maps.event.addListenerOnce(e,"bounds_changed",function(){let o=e.getZoom();e.setCenter(t),e.setZoom(o)}),e.fitBounds(n)}(e,o,n)}}window.map?window.map.getDiv().querySelectorAll(".custom-overlay").length?o():google.maps.event.addListenerOnce(window.map,"tilesloaded",o):setTimeout(()=>e(t),100)}(t)}),$(async function(){var e,t,o,n=$(".map-canvas"),r=parseFloat($("#lat").val()),s=parseFloat($("#long").val()),i=n.data("locations"),l=new google.maps.InfoWindow,c=function(e){let t=new google.maps.Map(e[0],{scrollwheel:!1,zoom:10,minZoom:6,maxZoom:18,mapId:"default",mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1});return t.mapTypes.set("default",new google.maps.StyledMapType([{featureType:"poi.business",stylers:[{visibility:"off"}]}])),t}(n);c.setCenter(new google.maps.LatLng(r,s)),e=c,t=i,o=l,$.each(t,function(t,n){var r,s,i,l,c,d,u,m,p,f,g,h=new google.maps.LatLng(n.lat,n.lng);r=e,s=n,i=h,l=t,c=o,(g=new a(i,(d=s,u=0,m=document.createElement("div"),p=document.createElement("span"),f=document.createElement("span"),m.className=d.jsFilters,m.className+=" js-store-id-"+d.id,m.className+=" js-lazy-store",p.className=" store-locator__"+d.icon,p.appendChild(f),m.appendChild(p),m),c,s,r)).setMap(r)}),!function(e){e.addListener("idle",function(){$("body").trigger("update:filters")})}(c),window.map=c})},2062:function(e){function t(e){return new URLSearchParams(e.split("?")[1]||"")}e.exports={addQueryParams:function(e,o){let n=e.split("?")[0],a=t(e);return $.each(o,function(e,t){a.set(e,t)}),n+"?"+a.toString()},getQueryParams:t}}},t={};function o(n){var a=t[n];if(void 0!==a)return a.exports;var r=t[n]={exports:{}};return e[n](r,r.exports,o),r.exports}o.rv=function(){return"1.0.8"},o.ruid="[email protected]";var n=o(836);window.initMap=function(){n(o(386))},window.initStoreLocator=function(){n(o(386)),n(o(4886))}}();
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.