1class T{constructor(y,g){this.excludedElements=Array.isArray(y)?y:[y],document.addEventListener("click",b=>{this.isInsideExcludedElements(b.target)||g()})}isInsideExcludedElements(y){return this.excludedElements.some(g=>g.contains(y))}}function x(l,y,g){var b=l.find(".email-control").val(),u=l.find(".post-newsletter").val(),i=l.find(".send-contact"),h=l.find(".check-privacy input"),f="",a=l.find(".name-control").val(),d=l.find(".date-control").val(),m=l.find(".umzug-newsletter").val(),j=l.find(".umzug-source").val();return g=g??m==="ratgeber",h.is(":checked")&&(f=h.val()),jQuery.ajax({url:l.attr("action"),type:"POST",data:{action:"confirm_contact_to_mailjet",contact:b,name:a,date:d,newsletter:u,quelle:j,umzug:m,privacy:f},dataType:"json",beforeSend:function(){i.addClass("loading")},error:function(){i.removeClass("loading")},success:function(k){k.success?(jQuery(".help-block").remove(),l.remove(),y.append('<div class="alert alert-success"><strong>'+k.head+"</strong><br>"+k.message+"</div>"),g&&jQuery(".alert.alert-success").css({border:"1px solid rgb(41, 204, 240)",padding:"20px 30px"})):(i.removeClass("loading"),jQuery(".help-block").remove(),k.errors&&(y.addClass("has-error"),jQuery.map(k.errors,function(_){y.append('<div class="help-block">'+_+"</div>")})))}}),!1}(function(){jQuery(document).ready(function(){jQuery("#site-navigation").accessibleMegaMenu(),jQuery(".image-slider-section, .teaser-slider-section").each(function(){let e=jQuery(this).children("ul").attr("id"),t=typeof jQuery(this).data("loop")<"u"?jQuery(this).data("loop"):!0;var r=jQuery("#"+e).lightSlider({slideMargin:jQuery(this).hasClass("image-slider-section")?0:100,addClass:e,loop:t,onBeforeSlide:function(n){jQuery("#current-slide-"+e).text(n.getCurrentSlideCount())}});jQuery(window).resize(function(){r.css("height",r.find(".lslide").first().find(".element-media, .teaser-element-container").outerHeight(!0))})}),jQuery("#load-more-entries").on("click",function(){if(!jQuery(this).hasClass("loading")){jQuery(this).removeClass("load_more").addClass("loading").html("lädt ...");var e=jQuery("."+jQuery(this).data("target")),t=jQuery(this).data("reload"),r=jQuery(this).data("offset");jQuery.ajax({type:"post",context:this,dataType:"json",url:jQuery(this).data("action"),data:{action:"load_more",post_type:jQuery(this).data("type"),nonce:jQuery(this).data("nonce"),target:jQuery(this).data("target"),posts_per_page:t,offset:r,filter:jQuery(this).data("tax"),terms:jQuery(this).data("terms"),layout:jQuery(this).data("layout")},success:function(n){n.have_posts===!0?(jQuery(this).removeClass("loading").addClass("load-more"),e.append(n.html)):jQuery(this).removeClass("loading load-more").addClass("end-of-posts"),jQuery(this).data("offset",r+t),jQuery(this).html(n.status)}})}});const i=document.getElementById("service-dialog-button");if(i){const e=i.innerHTML,t=document.getElementById("service-dialog"),r=document.querySelectorAll(".service-contact-link")||[];i.addEventListener("click",()=>{i.classList.contains("opened-service")?(t.close(),i.innerHTML=e):(typeof _paq<"u"&&_paq.push(["trackEvent","CTA","Clicked","Service Box"]),t.show(),i.innerHTML="SchlieÃen"),i.classList.toggle("opened-service")}),r.forEach((n,o)=>{n.addEventListener("click",()=>{typeof _paq<"u"&&_paq.push(["trackEvent","CTA","Clicked","SB "+n.dataset.service])})})}(document.querySelectorAll(".form-options-dialog-button")||[]).forEach(e=>{const t=document.getElementById(e.dataset.dialog),r=t.querySelector(".dialog-close"),n=t.querySelectorAll("input.selectable-option")||[],o=t.querySelector("input.all-options")||null,c=t.querySelectorAll("input.selectable-group-option")||null;y(n,o,e),n.forEach(s=>{s.addEventListener("click",()=>{o.checked&&(o.checked=!1),y(n,o,e)})}),o.addEventListener("click",()=>{n.forEach(s=>{s.checked=o.checked}),g(o,e,!0)}),c.forEach(s=>{const p=s.closest(".selection-group").querySelectorAll("input:not(.selectable-group-option)");s.addEventListener("click",()=>{p.forEach(C=>{C.checked=s.checked})})}),e.addEventListener("click",s=>{s.preventDefault(),e.classList.contains("opened-form-options")?t.close():t.show(),e.classList.toggle("opened-form-options")}
1),r.addEventListener("click",s=>{s.preventDefault(),t.close(),e.classList.remove("opened-form-options")});const Q=(s,p)=>{s.classList.contains("opened-form-options")&&(p.close(),s.classList.toggle("opened-form-options"))};new T([t,e],()=>{Q(e,t)})}),document.querySelectorAll(".js-gw-share-sheet").forEach(e=>{const t=e.querySelector(".js-gw-share-sheet__trigger"),r=e.querySelector(".js-gw-share-sheet__dialog"),n=e.querySelector(".js-gw-share-sheet__close"),o=e.querySelector(".js-gw-share-sheet__copy"),c=e.querySelector(".js-gw-share-sheet__input"),Q=e.querySelector(".js-gw-share-sheet__copy"),s=e.querySelector(".js-gw-share-sheet__copied"),p=r,C=v=>{v?(Q.style.display="none",s.style.display="flex"):(Q.style.display="flex",s.style.display="none")};if(s.style.display="none",!t||!p)return;const w=()=>{p.open&&(p.close(),C(!1))};t.addEventListener("click",v=>{if(v.preventDefault(),typeof p.showModal=="function"){p.showModal(),C(!1);return}alert("Dialog-Fenster werden von diesem Browser nicht unterstuetzt.")}),n&&n.addEventListener("click",v=>{v.preventDefault(),w()}),r.addEventListener("click",v=>{const E=p.getBoundingClientRect();v.clientX>=E.left&&v.clientX<=E.right&&v.clientY>=E.top&&v.clientY<=E.bottom||w()}),o&&c&&o.addEventListener("click",async v=>{v.preventDefault();try{navigator.clipboard&&navigator.clipboard.writeText?await navigator.clipboard.writeText(c.textContent):document.execCommand("copy"),C(!0),window.setTimeout(()=>{C(!1)},1500)}catch{C(!1)}})});const f=document.getElementById("rental-form"),a=document.getElementById("results-sort-by");if(f&&a&&a.addEventListener("change",function(){document.getElementById("sort-by-hidden").value=this.value,f.children[0].submit()}),jQuery("#content-tabs").length!==0){var d=jQuery(".content-tabs-buttons button"),m=jQuery(".content-tab"),j=jQuery(".contact-area-details");d.click(function(){let e=jQuery(this).data("tab");l("#tabs-content",300),d.each(function(){jQuery(this).removeClass("tab-select-active")}),m.each(function(){jQuery(this).removeClass("tab-content-active")}),jQuery(this).addClass("tab-select-active"),jQuery("#"+e).addClass("tab-content-active"),e==="rental-contact"?(b("#contact-iframe"),j.hide()):j.show()})}const k=jQuery("#search-list");var _=jQuery(".smart-tag-check");_.click(function(){let e=jQuery(this).attr("id");jQuery(this).prop("checked")===!1?jQuery(k).children("article").each(function(){jQuery(this).hasClass("search-"+e)&&jQuery(this).addClass("type-hide")}):jQuery(k).children("article").each(function(){jQuery(this).hasClass("search-"+e)&&jQuery(this).removeClass("type-hide")})}),jQuery("#scroll-up").click(function(){jQuery("html, body").animate({scrollTop:0},800),jQuery("#masthead a").first().focus()});var L=jQuery(window).scrollTop();const q=jQuery("#masthead");jQuery(window).scroll(function(){var e=jQuery(window).scrollTop();e<=350?jQuery("#scroll-up").removeClass("show-scroll-up"):jQuery("#scroll-up").addClass("show-scroll-up"),e>L&&e>50?q.addClass("shrinked-header"):e<L&&q.removeClass("shrinked-header"),L=e}),window.location.hash&&(l(window.location.hash,150),setTimeout(function(){q.addClass("shrinked-header")},550)),document.querySelectorAll('a[href^="#"]').forEach(e=>{e.addEventListener("click",function(t){const r=this.getAttribute("href");if(r!=="#"&&document.querySelector(r)){t.preventDefault();const n=document.getElementById("masthead"),o=n.getBoundingClientRect().bottom;l(r,o),setTimeout(function(){n.classList.add("shrinked-header")},550)}})}),jQuery(".show-form-mobile").click(function(){jQuery(this).slideUp(100).siblings(".form-info, .login-form, .form-addition").slideDown(300)}),jQuery(".newsletter-signup-section").each(function(){var e=jQuery("#"+jQuery(this).children(".signup-form").attr("id")),t=e.find("#newsletter-form"),r=e.find("#button-control");r.on("click",function(n){n.preventDefault(),x(t,e)})}),jQuery(".newsletter-form-block").each(function(){var e=jQuery("#"+jQuery(this).children(".signup-form").attr("id")),t=e.find("#newsletter-form"),r=e.find("#button-control");r.on("click",function(n){n.preventDefault(),x(t,e)})}
1),document.querySelectorAll(".js-gw-nl-signup").forEach(e=>{const t=e,r=t.querySelector(".js-gw-nl-signup__main"),n=t.querySelector(".js-gw-nl-signup__form");t.querySelector(".js-gw-nl-signup__submit").addEventListener("click",c=>{c.preventDefault(),x(jQuery(n),jQuery(r),!1)})});const S=jQuery("#investor-relation-container");if(S.length!==0)return jQuery.ajax({url:jQuery("#investor-url").val(),type:"POST",data:{action:"investor_get_articles",investor_nonce:jQuery("#investor-nonce").val()},dataType:"json",beforeSend:function(){S.addClass("load-investor-articles")},error:function(){S.removeClass("load-investor-articles").addClass("articles-error")},success:function(e){S.removeClass("load-investor-articles").addClass("articles-success").html(e.html)}}),!1;jQuery(".comment-form").submit(function(){var e=jQuery(".comment-form"),t=jQuery(e).find("#comment");if(t.val().length>0)return!0;var r=jQuery(e).find("#submit");jQuery(r).addClass("error");var n=__("Bitte dieses Feld ausfüllen","gewo-forms");return n='<div class="error-message">'+n+"</div>",jQuery(e).find(".error-message").remove(),jQuery(t).change(function(){jQuery(e).find(".error-message").remove(),jQuery(r).removeClass("error")}).after(n),!1}),window.setCookie=function(e,t,r=0){var n="";if(r!==0){var o=new Date;o.setTime(o.getTime()+r*24*60*60*1e3),n="expires="+o.toUTCString()+";"}document.cookie=e+"="+t+";"+n+"path=/;SameSite=Strict;secure"},window.getCookie=function(e){for(var t=e+"=",r=decodeURIComponent(document.cookie),n=r.split(";"),o=0;o<n.length;o++){for(var c=n[o];c.charAt(0)==" ";)c=c.substring(1);if(c.indexOf(t)==0)return c.substring(t.length,c.length)}return""},window.addEventListener("message",e=>{JSON.parse(e.data,(t,r)=>{t==="type"&&r==="WH_APPLICATION_FORM_FILLED_SUCCESSFULLY"&&(window.location.href=location.protocol+"//"+location.hostname+"/daten-uebermittelt/?mtm_campaign=erstanfrage&mtm_source=whelden")})},!1),document.querySelectorAll(".js-selection-group").forEach(function(e){const t=Array.from(e.children),r=t[0],n=t.slice(1),o=r.querySelector('input[type="checkbox"]');o&&o.addEventListener("change",function(){const c=this.checked;n.forEach(Q=>{const s=Q.querySelector('input[type="checkbox"]');s&&(s.checked=c)})}),n.forEach(c=>{const Q=c.querySelector('input[type="checkbox"]');Q&&Q.addEventListener("change",function(){const s=r.querySelector('input[type="checkbox"]'),p=n.every(C=>{const w=C.querySelector('input[type="checkbox"]');return w&&w.checked});s.checked=p})})})});function l(u,i=0){let h;if(h=document.querySelector(u),!h)return!1;const f=h.getBoundingClientRect(),a=window.pageYOffset||document.documentElement.scrollTop,d=window.getComputedStyle(h),m=parseFloat(d.marginTop)||0,j=f.top+a-m;return jQuery("html, body").animate({scrollTop:j-i},500),!1}function y(u,i,h){const f=()=>{let a=!0;return u.forEach(d=>{if(!d.checked)return a=!1,!1}),a};i.checked=f(),g(i,h,!0),f()===!1&&u.forEach(a=>{a.checked&&g(a,h)})}function g(u,i,h=!1){let f=u.dataset.title,a=i.children[0],d=i.children[1],m=document.createElement("span");if(m.classList.add("multi-selected-title"),m.setAttribute("title",f),m.textContent=f,h===!0&&d.replaceChildren(),u.getAttribute("type")==="radio")u.checked?(a.style.display="none",d.appendChild(m)):d.replaceChildren();else{let j=d.querySelector('span.multi-selected-title[title="'+f+'"]');j!==null&&j.remove(),u.checked&&(d.appendChild(m),a.style.display="none")}d.hasChildNodes()||(a.style.display="block")}function b(u){jQuery(u).iFrameResize({checkOrigin:!1,heightCalculationMethod:"bodyOffset",onResized:function(i){i.type==="imageLoad"&&l("#rental-contact",150)}})}})(); 2//# sourceMappingURL=main-B2U9sgPZ.js.map
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.