1"use strict";(self.webpackChunkcommuniacs_template=self.webpackChunkcommuniacs_template||[]).push([[9485],{9485:function(o,e,a){a.r(e),a.d(e,{init:function(){return l}});var n=a(9376),t="";function l(){n(".module-shoplocator .-btn-alpha, .module-shoplocator input").on("mousedown.shoplocator",(function(){if("undefined"==typeof google||!google.maps||!google.maps.places){var o=n(".shoplocator-overlay");o.addClass("-open"),o.on("mousedown",(function(o){n(o.target).closest(".uc-embedding-container").length||n(".shoplocator-overlay").removeClass("-open"),setTimeout((function(){n(".shoplocator-overlay .overlay__placeholder").length&&(n(".module-shoplocator .-btn-alpha").unbind("mousedown.shoplocator"),n(".shoplocator-overlay").removeClass("-open"),n(".module-shoplocator input").focus())}),500)}))}}));var o=setInterval((function(){"undefined"!=typeof google&&google.maps&&google.maps.places&&(n(".module-teaser-shoplocator, .module-shoplocator").each((function(o,e){if("undefined"!=typeof google&&google.maps&&google.maps.places){var a=n(e).find("#place"),l=n(e).find("#lat"),s=n(e).find("#lng");(t=new google.maps.places.Autocomplete(a[0],{fields:["address_components","geometry","formatted_address","name"],strictBounds:!1})).addListener("place_changed",(function(){var o=t.getPlace();o.geometry&&o.geometry.location&&(l.val(o.geometry.location.lat()),s.val(o.geometry.location.lng()))})),function(o){var e=o,a=e.addEventListener;e.addEventListener=function(o,n){var t=n;"keydown"===o&&(t=function(o){var a=document.getElementsByClassName("pac-item-selected").length>0;if((9===o.which||13===o.which)&&!a){var t=new CustomEvent(JSON.parse(JSON.stringify(o)));t.which=40,t.keyCode=40,n.apply(e,[t])}n.apply(e,[o])}),a.apply(e,[o,t])}}(a[0]);var c=n(e).find(".form__actions .-btn-alpha");c.on("mousedown keydown",(function(o){if(("mousedown"===o.type||"keydown"===o.type&&"Enter"===o.key)&&""!==l.val()&&""!==s.val()){var e={lat:l.val(),lng:s.val()};window.localStorage.setItem("shop-locator-location",JSON.stringify(e)),window.location.href=c.attr("data-link")}}))}})),clearInterval(o))}),1e3)}}}]);
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.