PageSourceSearch

https://www.tirol.at/_assets/1798f66a72c0609b2ee5b404d10475ff/Dist…/SearchHost/Scripts/base.js?1790252147

js tirol.at collected 2026-09-24 18:34:47 UTC 2,692 bytes, 1 lines download raw bytes

1(()=>{"use strict";class e{constructor(e){this.node=e.querySelector(".confirmPopup"),this.confirmButton=this.node.querySelector("button"),this.closeButton=this.node.querySelector(".closeButton")}confirm(){return new Promise(((e,t)=>{this.node.classList.remove("hidden");const n=e=>{this.confirmButton.removeEventListener("click",n),this.closeButton.removeEventListener("click",n),this.node.classList.add("hidden"),e()};this.confirmButton.addEventListener("click",n.bind(this,e)),this.closeButton.addEventListener("click",n.bind(this,t))}))}}const t={SEARCH_HOST:".search-host",LOADER:".loader",OVERLAY:".overlay",PLACE:".place",PLACE_INPUTS:".place__inputs",NO_PLACE_SELECTED:".noPlaceSelected",ACCEPT_BUTTON:".accept",CLOSER:".closer",HIDDEN_INPUT:'input[type="hidden"]'},n={ACTIVE:"isActive",LOADER_ACTIVE:"loader--active"},o={ARIA_HIDDEN:"aria-hidden",LISTENERS_ADDED:"listenersAdded"};function r(e){const r=e.querySelector(t.NO_PLACE_SELECTED);var c;r&&(function(e){if(e.dataset[o.LISTENERS_ADDED])return;const r=e.querySelector(t.ACCEPT_BUTTON),c=e.querySelector(t.CLOSER),i=()=>function(e){e.setAttribute(o.ARIA_HIDDEN,"true"),e.classList.remove(n.ACTIVE)}(e);r&&r.addEventListener("click",i),c&&c.addEventListener("click",i),e.dataset[o.LISTENERS_ADDED]="true"}(r),(c=r).setAttribute(o.ARIA_HIDDEN,"false"),c.classList.add(n.ACTIVE))}function c(e,o,c,i,s){return function(e){const n=function(e){const n=e.querySelectorAll(t.OVERLAY);for(const e of n)if(e.querySelector(t.PLACE))return e;return null}(e);if(!n)return!0;const o=n.querySelector(t.PLACE_INPUTS);return o&&o.querySelectorAll(t.HIDDEN_INPUT).length>0}(o)?function(e){return e!==window.location.hostname}(i)?(e.preventDefault(),void function(e,t,o){o.confirm().then((()=>{e.submit()})).catch((()=>{!function(e){e&&e.classList.remove(n.LOADER_ACTIVE)}(t)}))}(o,c,s)):void function(e){e&&e.classList.add(n.LOADER_ACTIVE)}(c):(e.preventDefault(),r(o),!1)}document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(t.SEARCH_HOST).forEach((n=>{(function(n){const o=n.querySelector(t.LOADER),r=function(e){try{return new URL(e).hostname}catch(e){return""}}(n.action),i=new e(n);n.addEventListener("submit",(e=>{c(e,n,o,r,i)}))})(n),function(e){const t=e.querySelector('button[type="submit"]'),n=document.querySelector(".searchHostList");let o=!1;function r(){o||(o=!0,t&&(t.disabled=!1),n&&(n.style.display="none"))}null!==n&&t&&(t.disabled=!0),e.querySelectorAll(".item").forEach((e=>{const t=e.querySelector(".overlay");t&&t.addEventListener("updateValue",r);const n=e.querySelector('input[name^="daterange"]');n&&n.addEventListener("receiveUpdate",r)})),e.addEventListener("submit",(()=>{o=!1}))}(n)}))}))})();

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.