PageSourceSearch

https://www.siegsdorf.de/_assets/c773e2f4a6cea59566a5430c2759ac03/…/Molecules/DropdownPersons.js?1790840921

js siegsdorf.de collected 2026-10-02 11:57:41 UTC 5,676 bytes, 1 lines download raw bytes

1(()=>{var e={58611:e=>{e.exports={offsetTop:function(e){var t=document.querySelector("body");return e.getBoundingClientRect().top-t.getBoundingClientRect().top},offsetLeft:function(e){var t=document.querySelector("body");return e.getBoundingClientRect().left-t.getBoundingClientRect().left},scrollTo:function(e,t,n){var o=function(){return{x:window.pageXOffset,y:window.pageYOffset}},r=o(),l={x:(e-r.x)/(n/15),y:(t-r.y)/(n/15)},a=setInterval((function(){!function(){var n=o(),r={x:!1,y:!1};return l.x<0?n.x+l.x<=e&&(r.x=!0):n.x+l.x>=e&&(r.x=!0),l.y<0?n.y+l.y<=t&&(r.y=!0):n.y+l.y>=t&&(r.y=!0),!(!r.x||!r.y)}()?window.scrollBy(l.x,l.y):(clearInterval(a),window.scrollTo(e,t))}),15)},scrollElementTo:function(e,t,n,o){var r=function(){return{x:o.scrollLeft,y:o.scrollTop}},l=r(),a=(e-l.x)/(n/15),c=(t-l.y)/(n/15),s=setInterval((function(){!function(){var n=r(),o={x:!1,y:!1};return a<0?n.x+a<=e&&(o.x=!0):n.x+a>=e&&(o.x=!0),c<0?n.y+c<=t&&(o.y=!0):n.y+c>=t&&(o.y=!0),!(!o.x||!o.y)}()?(o.scrollLeft+=a,o.scrollTop+=c):(clearInterval(s),o.scrollLeft=e,o.scrollTop+=t)}),15)},accessDataset:function(e,t){return e.dataset?e.dataset[t]:e.getAttribute("data-"+t)},extendObject:function(e,t){for(var n in t)e.hasOwnProperty(n)||(e[n]=t[n]);return e},documentReady:function(e){let t=!1;"undefined"!=typeof less&&"object"==typeof less.pageLoadFinished&&(t=!0);var n=function(){t?less.pageLoadFinished.then((()=>{setTimeout(e)})):setTimeout(e)},o=function(){document.removeEventListener("DOMContentLoaded",o),window.removeEventListener("load",o),n()};"complete"===document.readyState?n():(document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o))}}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var l=t[o]={exports:{}};return e[o](l,l.exports,n),l.exports}(()=>{let e=n(58611);(t=>{"use strict";const n="-js-dropdown--person--active",o=()=>{t.querySelectorAll(".baseForm__dropdown--person").forEach((function(e){(e=>{const t=e.querySelector(".baseform__dropdown--person__closer"),o=e.querySelector(".baseForm__buttons button"),r=e.previousElementSibling,l=()=>{e.classList.remove(n)};t.addEventListener("click",l),o.addEventListener("click",(()=>(()=>{const t=e.querySelectorAll("input, select");let n=!0;return t.forEach((e=>{!1===e.checkValidity()&&(e.reportValidity(),n=!1)})),n})()&&l())),r.addEventListener("click",(()=>{e.classList.add(n)}))})(e)}))};e.documentReady(o),t.addEventListener("imx-init-accommodationsearch-detail",o)})(document)})(),(()=>{let e=n(58611);(t=>{"use strict";const n=(e,t)=>{t>0&&(e.style.display="block"),e.querySelectorAll(".baseForm__item--childAge").forEach((function(e){const n=parseInt(e.dataset.index,10),o=e.querySelector("select");n<=t?(e.style.display="block",o.setAttribute("required","true")):(e.style.display="none",o.value="",o.removeAttribute("required"))}))},o=(e,t)=>{const n=parseInt(t.value,10)||1;for(let t=1;t<=e.length;t++)t<=n?e[t-1].style.display="block":(e[t-1].style.display="none",e[t-1].querySelector('input[name^="adults"]').value="0",e[t-1].querySelector('input[name^="children"]').value="0",e[t-1].querySelector(".baseForm__line--childAges").style.display="none",e[t-1].querySelectorAll(".baseForm__item--childAge").forEach((function(e){e.style.display="none";let t=e.querySelector("select");t.value="",t.removeAttribute("required")})));r()},r=()=>{const e=t.createEvent("Event");e.initEvent("imx-update-person-count",!0,!0),t.dispatchEvent(e)},l=()=>{t.querySelectorAll(".baseForm__dropdown--person").forEach((function(e){(e=>{const t=e.querySelectorAll(".baseForm__occupancy"),l=e.querySelector('input[name="rooms"]');(e=>{e.forEach((function(e){const t=parseInt(e.dataset.index,10),o=e.querySelector('input[name^="adults"]'),l=e.querySelector('input[name^="children"]'),a=e.querySelector(".baseForm__line--childAges");n(a,parseInt(l.value,10));const c=e.querySelector(".baseForm__line--adults a.minus"),s=e.querySelector(".baseForm__line--adults a.plus"),i=e.querySelector(".baseForm__line--children a.minus"),u=e.querySelector(".baseForm__line--children a.plus");c.addEventListener("click",(()=>{let e=parseInt(o.value,10);(1===t&&e>1||t>1&&e>0)&&(o.value=e-1),r()})),s.addEventListener("click",(()=>{let e=parseInt(o.value,10);e<50&&(o.value=e+1),r()})),i.addEventListener("click",(()=>{let e=parseInt(l.value,10),t=e-1;e>0&&(l.value=t,n(a,t)),0===t&&(a.style.display="none"),r()})),u.addEventListener("click",(()=>{let e=parseInt(l.value,10),t=e+1;e<6&&(l.value=t,n(a,t)),a.style.display="block",r()}))}))})(t),o(t,l);const a=e.querySelector(".baseForm__dropdown__calculation > a.minus"),c=e.querySelector(".baseForm__dropdown__calculation > a.plus");a.addEventListener("click",(()=>{let e=parseInt(l.value,10)||1;e>1&&(l.value=e-1),o(t,l)})),c.addEventListener("click",(()=>{let e=parseInt(l.value,10);e<3&&(l.value=e+1),o(t,l)}))})(e)}))};e.documentReady(l),t.addEventListener("imx-init-accommodationsearch-detail",l)})(document)})(),imxQuery=n(58611),(e=>{"use strict";let t,n,o,r,l;const a=()=>{let e=0;t&&t.forEach((function(t){e+=parseInt(t.value,10)}
1)),n&&n.forEach((function(t){e+=parseInt(t.value,10)})),l&&(l.value=e+" "+(1===e?o:r))},c=()=>{const c=e.getElementById("accommodationSearch__persons");c&&(o=c.dataset.labelPerson,r=c.dataset.labelPersons,l=c.closest(".baseForm__item, .hostSearch__form__fieldset__row").querySelector("label > input"),t=e.querySelectorAll('#accommodationSearch__persons input[name^="adults_room"]'),n=e.querySelectorAll('#accommodationSearch__persons input[name^="children_room"]'),e.addEventListener("imx-update-person-count",a),a())};imxQuery.documentReady(c),e.addEventListener("imx-init-accommodationsearch-detail",c)})(document)})();

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.