1(()=>{function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return i(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,o(n.key),n)}}function r(e,t,i){return(t=o(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function o(t){var i=function(t,i){if("object"!=e(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,i||"default");if("object"!=e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)}(t,"string");return"symbol"==e(i)?i:i+""}var a=function(){return e=function e(t){var i=t.rootElement,n=t.url,o=t.availabilityUrl,a=t.placeholder,s=t.emptyInput,l=t.addressNotSelected,d=t.submitButtonText,u=t.submitButtonLink,c=t.darkLayout,h=t.ariaLabel,y=t.popoutAddressLayout,f=void 0!==y&&y,v=t.placeholderTitle,p=void 0===v?null:v,b=t.closeButtonText,m=t.alwaysExpanded,w=void 0!==m&&m;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"addressFinder",null),r(this,"mobileBreakpoint",768),this.rootElement=i,this.url=n,this.availabilityUrl=o,this.placeholder=a,this.emptyInput=s,this.addressNotSelected=l,this.addressFinderMinCharCount=4,this.submitButtonText=d,this.submitButtonLink=u,this.darkLayout=c,this.ariaLabel=h,this.popoutAddressLayout=f,this.placeholderTitle=p,this.closeButtonText=b,this.alwaysExpanded=w},i=[{key:"init",value:function(){this.initAddressFinder(),this.initAddressFinderErrorRender(),this.popoutAddressLayout&&this.placeholderTitle&&(this.initResizeListeners(),this.initPositionListeners())}},{key:"initAddressFinder",value:function(){var e=null;e=this.darkLayout?"dark":"light",this.addressFinder=new AddressFinder({url:this.url,availabilityUrl:this.availabilityUrl,rootElement:this.rootElement.querySelector(".address-input-container"),placeholder:this.placeholder,ariaLabel:this.ariaLabel,minCharacterError:this.addressFinderMinCharCount,useCookieAddress:!0,submitButtonText:this.submitButtonText,submitButtonLink:this.submitButtonLink,submitButtonTheme:e,errorMessages:{emptyInputError:this.emptyInput,addressNotSelectedError:this.addressNotSelected},popoutAddressLayout:this.popoutAddressLayout,closeButtonText:this.closeButtonText,alwaysExpanded:this.alwaysExpanded}),this.addressFinder.on("addressSelected",function(e){localStorage.setItem("availability_address",e.address_key),localStorage.setItem("availability_check_page",window.location.href)}),this.addressFinder.init()}},{key:"initAddressFinderErrorRender",value:function(){this.addressFinder.on("errorRender",function(e){"incorrect"===e?dataLayer.push({event:"availability_check",availability_check_scenario:"nekorekta",availability_check_page:window.location.href,availability_check_list:"nav pieejami"}):"empty"===e&&dataLayer.push({event:"availability_check",availability_check_scenario:"nav ievadīta",availability_check_page:window.location.href,availability_check_list:"nav pieejami"})})}},{key:"initResizeListeners",value:function(){var e,t=this,i=this.rootElement.querySelector(".address-finder__redesigned");e=null==i?void 0:i.getAttribute("placeholder");var n=function(n){n<=t.mobileBreakpoint?i&&(null==i||i.setAttribute("placeholder",t.placeholderTitle)):i&&(null==i||i.setAttribute("placeholder",e))};n(window.innerWidth),window.addEventListener("resize",function(e){n(e.target.innerWidth)})}},{key:"initPositionListeners",value:function(){var e=this,i=this.rootElement.querySelector(".address-finder__redesigned"),n=this.rootElement.querySelector('[class*="__container-search"]'),r=this.rootElement.querySelector(".address-finder__overlay");if(i&&n&&r){var o,a=!1,s=!1,l=function(){o&&cancelAnimationFrame(o),o=requestAnimationFrame(function(){var t;"none"!==(t=getComputedStyle(r)).display||parseFloat(t.opacity)>0?function(){if(!a&&(a=!0,s=window.innerWidth<=e.mobileBreakpoint)){var t=n.getBoundingClientRect(),r=window.innerHeight/5,o=window.scrollY+t.top-r;window.scrollTo({top:Math.max(0,o),behavior:"smooth"});var l=function(){document.documentElement.style.overflow="hidden"};"onscrollend"in globalThis?window.addEventListener("scrollend",l,{once:!0}):setTimeout(l,500)}var d=n.getBoundingClientRect();i.style.position="fixed",i.style.top="".concat(d.top,"px"),i.style.left="".concat(d.left,"px"),i.style.width="".concat(d.width,"px"),i.style.zIndex="150"}():a&&d()})},d=function(){s&&(document.documentElement.style.overflow=""),a=!1,s=!1,i.style.position="",i.style.top="",i.style.left="",i.style.width="",i.style.zIndex="50",i.style.transform=""}
1,u=!1,c=function(){var e;if(!u){var t=null===(e=i.shadowRoot)||void 0===e?void 0:e.querySelector(".address-search--redesigned__close-button");t&&(t.addEventListener("pointerdown",function(){i.blur()}),t.addEventListener("keydown",function(e){"Enter"===e.key&&i.blur()}),u=!0)}};new MutationObserver(function(e){var i,n=!1,r=t(e);try{for(r.s();!(i=r.n()).done;){var o,a=i.value;"attributes"===a.type&&"class"===a.attributeName&&(n=!0,null!=a&&null!==(o=a.oldValue)&&void 0!==o&&o.includes("hydrated")||c())}}catch(e){r.e(e)}finally{r.f()}n&&l()}).observe(i,{attributes:!0,attributeOldValue:!0,attributeFilter:["class"]}),document.addEventListener("focusin",l,{passive:!0}),document.addEventListener("focusout",l,{passive:!0}),window.addEventListener("scroll",l,{passive:!0}),window.visualViewport&&window.visualViewport.addEventListener("scroll",l,{passive:!0}),window.addEventListener("resize",l),window.addEventListener("orientationchange",function(){return setTimeout(l,100)})}}}],i&&n(e.prototype,i),o&&n(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,i,o}();window.AvailabilityRedirect=a})();
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.