1const docReady=function(fn){if(document.attachEvent?document.readyState==="complete":document.readyState!=="loading"){fn()}else{document.addEventListener('DOMContentLoaded',fn)}};const debounce=function(fnc,delay){var delayed=undefined;return function(e){clearTimeout(delayed);delayed=setTimeout((function(){fnc(e)}),delay)}};const checkIfMobile=function(screenSize){if(!screenSize){screenSize='560px'} 2return!window.matchMedia("only screen and (max-width: "+screenSize+")").matches};(function($){let menuLinkFirstLevel=$('.main-navigation__link:not(.main-navigation__link--clickable)');let mainNavigation=$('.main-navigation');let menuLayer=$('.navigation-layer');let menuLayerCloseButton=$('.navigation-layer__content__close');let bodyOverlay=$('#body__overlay');let stickyHeader=document.getElementById("header");let contentNavigation=document.getElementById("contentNavigation");let menuLinkActive=$('.main-navigation__link.active');docReady(function(){initMenuLayer();initScrollSpy()});function initMenuLayer(){menuLinkFirstLevel.on("click",function(event){event.stopPropagation();openSubnavigation($(this))});function openSubnavigation(currentElement){menuLinkFirstLevel.not(currentElement).next().slideUp(100);menuLinkFirstLevel.not(currentElement).next().removeClass('navigation-layer--open');menuLinkFirstLevel.not(currentElement).removeClass('current');$(currentElement).addClass('current');$(currentElement).next().slideDown(400);$(currentElement).next().addClass('navigation-layer--open');menuLinkFirstLevel.attr('aria-expanded','true');bodyOverlay.addClass('body__overlay--open');stickyHeader.classList.remove('header--is-sticky');menuLinkActive.addClass('unhighlighted')} 3const closeMenuLayer=function(event){if(event)event.preventDefault();menuLayer.slideUp(400);menuLayer.removeClass('navigation-layer--open');menuLinkFirstLevel.removeClass('current');bodyOverlay.removeClass('body__overlay--open');menuLinkActive.removeClass('unhighlighted')};menuLayerCloseButton.click(closeMenuLayer);$(document).on('click',function(event){if(menuLayer.hasClass('navigation-layer--open')){if(!$(event.target).closest('.main-navigation').length){closeMenuLayer()}}});menuLayer.on('click',function(event){event.stopPropagation()})} 4function initScrollSpy(){if(contentNavigation){new ScrollSpy(contentNavigation,{sectionSelector:'.header__content-navigation__inner__scroll__menu__element',activeClass:'active',offset:150})}}})(jQuery);docReady(function(){let $html=$("html");let $body=$("body");let $header=$("#header");$(".hamburger").click(function(){$(this).toggleClass("is-active");if($(".mobile-layer").hasClass("mobile-layer--open")){$(".mobile-layer").removeClass("mobile-layer--open");$html.removeClass("html--mobile-nav-open");$body.removeClass("body--mobile-nav-open");$header.removeClass("header--mobile-nav-open")}else{$(".mobile-layer").addClass("mobile-layer--open");$html.addClass("html--mobile-nav-open");$body.addClass("body--mobile-nav-open");$header.addClass("header--mobile-nav-open")}});$(".mobile-navigation__level-1--active").find(".mobile-navigation__level-2").addClass("mobile-navigation__level-2--open").attr("aria-hidden",!1).find("> li > button").attr("tabindex",0);$(".mobile-navigation__level-1--active").find(".mobile-navigation__level-1--has-children").addClass("mobile-navigation__level-1--arrow-down");$(".mobile-navigation__level-2--active").find(".mobile-navigation__level-3").addClass("mobile-navigation__level-3--open").attr("aria-hidden",!1).find("> li > a").attr("tabindex",0);$(".mobile-navigation__level-2--active").find(".mobile-navigation__level-2--has-children").addClass("mobile-navigation__level-2--arrow-down");$(".mobile-navigation__level-1--has-children, .mobile-navigation__level-2--has-children").click(function(){let $button=$(this);let currentLevel=1;let subMenuTarget='button';let levelMatch=$button.attr('class').match(/mobile-navigation__level-(\d+)--has-children/i);if(levelMatch!==null){currentLevel=parseInt(levelMatch[1])} 5if(currentLevel>1){subMenuTarget='a'} 6let nextLevel=currentLevel+1;let parentClass='mobile-navigation__level-'+nextLevel;let buttonClass='mobile-navigation__level-'+currentLevel+'--arrow-down';let submenuClass='mobile-navigation__level-'+nextLevel+'--open';let $submenu=$button.next('.'+parentClass);let isOpen=$button.hasClass(buttonClass);if(isOpen===!0){$button.removeClass(buttonClass);$submenu.removeClass(submenuClass);$submenu.attr("aria-hidden",!0);$submenu.find("> li > "+subMenuTarget).attr("tabindex",-1)}else{$button.addClass(buttonClass);$submenu.addClass(submenuClass);$submenu.attr("aria-hidden",!1);$submenu.find("> li > "+subMenuTarget).attr("tabindex",0)}})});var selectorArray=[];var lightbox=document.querySelectorAll("[data-lightbox]");for(var i=0;i<lightbox.length;i++){if(selectorArray.indexOf(lightbox[i].getAttribute('data-lightbox'))<0){selectorArray.push(lightbox[i].getAttribute('data-lightbox'))}} 7for(var j=0;j<selectorArray.length;j++){new Tobi({selector:'[data-lightbox="'+selectorArray[j]+'"]',captionAttribute:'data-caption',captions:!0,captionAsHtml:!0,zoomText:'<svg role="img" aria-label="zoom icon" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><polyline points="21 16 21 21 16 21"></polyline><polyline points="8 21 3 21 3 16"></polyline><polyline points="16 3 21 3 21 8"></polyline><polyline points="3 8 3 3 8 3"></polyline></svg>'})} 8function videoClickHandler(event){let videoElement=event.target,videoType=videoElement.parentNode.dataset.videotype,trackingValue=videoElement.parentNode.dataset.trackingvalue,videoUrl=videoElement.parentNode.dataset.videourl,container;if(!videoElement.classList.contains('video__content-wrapper--overlay')){return} 9if(videoType!=='local'){container=document.createElement("iframe");container.setAttribute("frameborder","0");container.setAttribute("allowfullscreen","");container.setAttribute("src",videoUrl);this.classList="video__content-wrapper";this.innerHTML="";this.appendChild(container)}else{let video=this.querySelector('video');if(video&&this.classList.contains('video__content-wrapper--overlay')){this.classList="video__content-wrapper video__content-wrapper--play";video.play()}} 10if(trackingValue!==''&&_paq){_paq.push(['trackEvent','VideoPlayback',trackingValue])}} 11function controlVideoRendering(){let sources=document.querySelectorAll('video.video-embed__item source');let video=document.querySelector('video.video-embed__item');for(let i=0;i<sources.length;i++){sources[i].setAttribute('src',sources[i].getAttribute('data-src'))} 12video.load()} 13var videos=document.querySelectorAll(".video .video__content-wrapper");for(var i=0;i<videos.length;i++){videos[i].addEventListener("click",videoClickHandler)} 14if(window.matchMedia("(min-width: 992px)").matches&&$('.video-embed').length){controlVideoRendering()}(function($){var scrolltop=document.getElementById("top-anchor");docReady(function(){scrollToTop();if(window.matchMedia("(min-width: 992px)").matches){changeBackToTopPosition()}});$(window).scroll(function(){initBackToTop();if(window.matchMedia("(min-width: 992px)").matches){changeBackToTopPosition()}});function initBackToTop(){var windowY=window.pageYOffset;if(windowY<60){scrolltop.classList.remove('scroll-to-top--visible')}else{scrolltop.classList.add('scroll-to-top--visible')}} 15function scrollToTop(){scrolltop.addEventListener("click",function(e){e.preventDefault();$("html, body").animate({scrollTop:0},"slow")},!1)} 16function changeBackToTopPosition(){var footerWayPoint=$(document).height()-$('.footer').outerHeight();var pageOffset=window.pageYOffset;var windowHeight=$(window).height();var backToTopPosition=$('.footer').outerHeight()-30;if(pageOffset+windowHeight>=footerWayPoint){$('#top-anchor').css('bottom',backToTopPosition)}else{$('#top-anchor').css('bottom','100px')}}})(jQuery);docReady(function(){var stickyHeader=document.getElementById("header");var navigationLayer=$('.navigation-layer');window.addEventListener('scroll',debounce((function(){checkStickyPosition()}),25));checkStickyPosition=function(){var windowY=window.pageYOffset;if(window.innerWidth>=1201&&!navigationLayer.hasClass("navigation-layer--open")){if(windowY<1){stickyHeader.classList.remove('header--is-sticky');document.body.classList.remove('body--small-padding')}else{stickyHeader.classList.add('header--is-sticky');document.body.classList.add('body--small-padding')}}}});(function($){var searchButton=$('.search__input');var searchButtonIcon=$('.service-button__item--search');var searchCloseIcon=$('.search__icon--close');var navigationWrapper=$('.header__main-navigation');var serviceButtons=$('.header__service-buttons');var mobileLayer=$('.mobile-layer');var headerElement=$('#header');docReady(function(){initSearchLayer()});function initSearchLayer(){searchButtonIcon.click(function(){toggleSearchBar()});searchCloseIcon.click(function(e){e.preventDefault();toggleSearchBar()});searchButton.keydown(function(e){var code=e.which;if((code===13)){$(this).parents('form').submit()}});searchButton.focus(function(){navigationWrapper.addClass('header__main-navigation--invisible');serviceButtons.addClass('header__service-buttons--invisible');$('.header__search').addClass('header__search--open');searchButtonIcon.addClass('search__icon--close');
16mobileLayer.addClass('mobile-layer--search--open')})} 17function toggleSearchBar(){serviceButtons.toggleClass('header__service-buttons--invisible');$('.header__search').toggleClass('header__search--open');if($('.header__search').hasClass('header__search--open')){searchButtonIcon.attr('aria-expanded','true');headerElement.addClass('header--search-open')}else{searchButtonIcon.attr('aria-expanded','false');headerElement.removeClass('header--search-open')} 18searchButtonIcon.toggleClass('search__icon--close');navigationWrapper.toggleClass('header__main-navigation--invisible');mobileLayer.toggleClass('mobile-layer--search--open');if($('#desktop-search-input').is(':visible')&&$('.header__search').hasClass('header__search--open')){$('#desktop-search-input').trigger('focus')}else if($('.mobile-layer').hasClass('mobile-layer--search--open')){$('#mobile-search-input').trigger('focus')}}})(jQuery);(function($){docReady(function(){initTestimonialSlider();initPromotionSlider();initMediastageSlider()});function initTestimonialSlider(){$('.testimonial-slider').slick({arrows:!1,dots:!0,autoplay:!0,autoplaySpeed:5000})}
19function initPromotionSlider(){$('.promotion-slider').slick({arrows:!0,dots:!1,autoplay:!1,slidesToShow:3,slidesToScroll:1,infinite:!0,responsive:[{breakpoint:1200,settings:{slidesToShow:2,}},{breakpoint:768,settings:{slidesToShow:1}}]})} 20function initMediastageSlider(){$('.mediastage-slider').slick({arrows:!0,dots:!1,autoplay:!0,autoplaySpeed:5000})}})(jQuery);docReady(function(){$('a[href^="#"]').not('[href="#top-anchor"]').not('.navigation-layer__close-button').on('click',function(event){let nav_height=$('.header').outerHeight()+20;let target=$(this.getAttribute('href'));if(target.length){event.preventDefault();$('html, body').stop().animate({scrollTop:target.offset().top-nav_height},600);return!1}})});$(window).on('load',function(){let target=window.location.hash,nav_height=$('.header').outerHeight()+20;if(target!==''){$('html, body').stop().animate({scrollTop:$(target).offset().top-nav_height},600)}});(function($){var mediastageArrow=$('#mediastage-anchor');var screenPortHeight=$(window).height();var mediaStageHeight=$('.mediastage').height();docReady(function(){getArrowPosition();initScrollDown()});function getArrowPosition(){if(mediaStageHeight<screenPortHeight){$('.mediastage').css('position','relative')}} 21function initScrollDown(){mediastageArrow.on("click",function(){$("html, body").animate({scrollTop:$(window).scrollTop()+350},"slow");return!1},!1)}})(jQuery);jQuery(document).ready(function(e){function a(e,a){l(e,a),e.find(a.container).first().show()} 22function n(a,n){if(n.tabs){var t=e("<div />",{class:n.tabMenuClassName}).insertBefore(a.children(n.container).filter(":first"));a.children(n.container).each(function(i,r){var l=e("<button/>").html(e(this).children(n.header).html()).addClass(0==i?n.tabMenuItemActiveClassName:"").addClass("item"+i).addClass("btn btn-default").prop("type","button").on("click keypress",{container:a.children(n.container),fieldset:e(r)},function(){var t=e(this),i=t.parent().children().index(t);s(a,n,t,i)});n.tabIndex&&l.prop("tabindex",i),t.append(l)})}} 23function t(a,n){n.navigation&&a.children(n.container).each(function(t){var i=e("<div />").addClass("powermail_fieldwrap").addClass("powermail_tab_navigation").appendTo(e(this));t>0&&i.append(c(a,n)),t<a.children(n.container).length-1&&i.append(o(a,n))})} 24function i(a,n){e.fn.parsley&&"data-parsley-validate"===a.data("parsley-validate")&&a.parsley().subscribe("parsley:field:validated",function(){v(a,n),C(a,n)})} 25function r(a,n){n.openTabOnError&&e.fn.parsley&&e.listen("parsley:field:error",function(){setTimeout(function(){a.find("."+n.tabMenuClassName+" > ."+n.tabMenuItemErrorClassName+":first").click()},50)})} 26function s(a,n,t,i){($activeTab=b(a,n)),$activeTab.removeClass(n.tabMenuItemActiveClassName),t.addClass(n.tabMenuItemActiveClassName),l(a,n),e(".powermail_fieldset",a).slice(i,i+1).show()} 27function l(e,a){e.children(a.container).hide()} 28function c(a,n){return e("<a />").prop("href","#").addClass("btn btn-warning").html("<").click(function(e){e.preventDefault(),u(a,n)})} 29function o(a,n){return e("<a />").prop("href","#").addClass("btn btn-primary pull-right").html(">").click(function(e){e.preventDefault(),d(a,n)})} 30function d(e,a){var n=m(e,a);($activeTab=b(e,a)),$activeTab.removeClass(a.tabMenuItemActiveClassName).next().addClass(a.tabMenuItemActiveClassName),f(e,a,n+1)} 31function u(e,a){var n=m(e,a);($activeTab=b(e,a)),$activeTab.removeClass(a.tabMenuItemActiveClassName).prev().addClass(a.tabMenuItemActiveClassName),f(e,a,n-1)} 32function f(e,a,n){l(e,a),e.find(".powermail_fieldset").slice(n,n+1).show();$("html, body").animate({scrollTop:e.offset().top-100},200)} 33function m(e,a){var n=p(e,a),t=n.index(b(e,a));return parseInt(t)} 34function p(e,a){return e.find("."+a.tabMenuClassName).children()} 35function b(e,a){var n=p(e,a);return n.filter("."+a.tabMenuItemActiveClassName)} 36function v(e,a){var n=p(e,a);n.removeClass(a.tabMenuItemErrorClassName)} 37function C(a,n){a.parsley().isValid()||a.find(".parsley-error").each(function(){var t=a.find(".powermail_fieldset").index(e(this).closest(".powermail_fieldset")),i=p(a,n),r=i.slice(t,t+1);r.addClass(n.tabMenuItemErrorClassName)})} 38e.fn.powermailTabs=function(e){"use strict";var s=jQuery(this);(e=jQuery.extend({container:"fieldset",header:"legend",tabs:!0,navigation:!0,openTabOnError:!0,tabMenuClassName:"btn-group",tabMenuItemActiveClassName:"btn-primary",tabMenuItemErrorClassName:"btn-danger"},e)),a(s,e),n(s,e),t(s,e),i(s,e),r(s,e)}});function PowermailForm($){'use strict';this.initialize=function(){addTabsListener();addAjaxFormSubmitListener();getLocationAndWrite();addDatePicker();hidePasswords();addResetListener();deleteAllFilesListener();uploadValidationListener();addSumFieldListeners();addMeasureCategoryLogic();addCustomerTypeLogic()};var addTabsListener=function(){if($.fn.powermailTabs){$('.powermail_morestep').each(function(){$(this).powermailTabs()})}};var addAjaxFormSubmitListener=function(){if($('form[data-powermail-ajax]').length){ajaxFormSubmit()}};var getLocationAndWrite=function(){if($('*[data-powermail-location="prefill"]').length&&navigator.geolocation){var $this=$(this);navigator.geolocation.getCurrentPosition(function(position){var lat=position.coords.latitude;var lng=position.coords.longitude;var url=getBaseUrl()+'/index.php'+'?eID='+'powermailEidGetLocation';jQuery.ajax({url:url,data:'lat='+lat+'&lng='+lng,cache:!1,success:function(data){if(data){$('*[data-powermail-location="prefill"]').val(data)}}})})}};var addDatePicker=function(){if($.fn.datetimepicker){$('.powermail_date').each(function(){var $this=$(this);if($this.prop('type')==='date'||$this.prop('type')==='datetime-local'||$this.prop('type')==='time'){if($this.data('datepicker-force')){$this.prop('type','text');$this.val($(this).data('date-value'))}else{if($(this).data('date-value')){var prefillDate=getDatetimeForDateFields($(this).data('date-value'),$(this).data('datepicker-format'),$this.prop('type'));if(prefillDate!==null){$(this).val(prefillDate)}} 39return}} 40var datepickerStatus=!0;var timepickerStatus=!0;if($this.data('datepicker-settings')==='date'){timepickerStatus=!1}else if($this.data('datepicker-settings')==='time'){datepickerStatus=!1} 41$this.datetimepicker({format:$this.data('datepicker-format'),timepicker:timepickerStatus,datepicker:datepickerStatus,lang:'en',i18n:{en:{months:$this.data('datepicker-months').split(','),dayOfWeek:$this.data('datepicker-days').split(',')}}})})}};var hidePasswords=function(){$('.powermail_all_type_password.powermail_all_value').html('********')};var addResetListener=function(){if($.fn.parsley){$('.powermail_reset').on('click','',function(){$('form[data-parsley-validate="data-parsley-validate"]').parsley().reset()})}};var uploadValidationListener=function(){if(window.Parsley){uploadSizeValidatorListener();uploadExtensionValidatorListener()}};var addSumFieldListeners=function(){var calculateSum=function(currentSumField){var totalSum=0;$(currentSumField.data('sumfields')).each(function(){totalSum+=p
41arseFloat($(this).find('input').val())||0});currentSumField.find('input').val(totalSum)};$('[data-sumfields]').each(function(){var currentSumField=$(this);calculateSum(currentSumField);$(currentSumField.data('sumfields')).each(function(){$(this).find('input').keyup(function(){calculateSum(currentSumField)})})})};var addMeasureCategoryLogic=function(){var hideFields=function(fieldsToHide){$(fieldsToHide).hide();$(fieldsToHide).find('input').each(function(){var field=this;field.setAttribute('disabled','disabled');field.setAttribute('data-measurecategory-disabled','true');if(field.hasAttribute('required')||field.hasAttribute('data-powermail-required')){field.removeAttribute('required');field.removeAttribute('data-powermail-required');field.setAttribute('data-measurecategory-required','required')}})} 42var showFields=function(fieldsToShow){$(fieldsToShow).show();$(fieldsToShow).find('input').each(function(){var field=this;field.removeAttribute('disabled');field.removeAttribute('data-measurecategory-disabled');if(field.getAttribute('data-measurecategory-required')==='required'){field.setAttribute('required','required')} 43field.removeAttribute('data-measurecategory-required')})} 44var handleMeasureCategoryFields=function(currentField){var checkedValues=[];currentField.find(':checkbox:checked').each(function(){checkedValues.push($(this).val())});if(checkedValues.length>0){if((checkedValues.length===1&&(checkedValues.includes("1")||checkedValues.includes("4")))||checkedValues.length===2&&checkedValues.includes("1")&&checkedValues.includes("4")){showFields(".powermail_fieldset--measurecategory_case1");hideFields(".powermail_fieldset--measurecategory_case2")}else if((checkedValues.length===1&&(checkedValues.includes("2")||checkedValues.includes("3")))||checkedValues.length===2&&checkedValues.includes("2")&&checkedValues.includes("3")){showFields(".powermail_fieldset--measurecategory_case2");hideFields(".powermail_fieldset--measurecategory_case1")}else{showFields(".powermail_fieldset--measurecategory_case1,.powermail_fieldset--measurecategory_case2")}}else{hideFields(".powermail_fieldset--measurecategory_case1,.powermail_fieldset--measurecategory_case2")}};$('.powermail_fieldwrap--measurecategory_field').each(function(){var currentField=$(this);handleMeasureCategoryFields(currentField);currentField.find('input[type="checkbox"]').each(function(){$(this).change(function(){handleMeasureCategoryFields(currentField)})});currentField.parents("form").on("submit",function(e){$(this).find("[data-measurecategory-disabled]").attr("disabled","disabled")})})};var ajaxFormSubmit=function(){var regularSubmitOnAjax=!1;var redirectUri;$(document).on('submit','form[data-powermail-ajax]',function(e){var $this=$(this);var $txPowermail=$this.closest('.tx-powermail');if($this.data('powermail-ajax-uri')){redirectUri=$this.data('powermail-ajax-uri')} 45var formUid=$this.data('powermail-form');if(!regularSubmitOnAjax){$.ajax({type:'POST',url:$this.prop('action'),data:new FormData($this.get(0)),contentType:!1,processData:!1,beforeSend:function(){addProgressbar($this)},complete:function(){removeProgressbar($this);deleteAllFilesListener();fireAjaxCompleteEvent($txPowermail)},success:function(data){var html=$('*[data-powermail-form="'+formUid+'"]:first',data);if(html.length){$('*[data-powermail-form="'+formUid+'"]:first').closest('.tx-powermail').html(html);if($.fn.powermailTabs){$('.powermail_morestep').powermailTabs()} 46if($.fn.parsley){$('form[data-parsley-validate="data-parsley-validate"]').parsley()} 47reloadCaptchaImages()}else{if(redirectUri){redirectToUri(redirectUri)}else{$this.submit()} 48regularSubmitOnAjax=!0}}});e.preventDefault()}})};var addProgressbar=function($this){removeProgressbar($this);if($('.powermail_submit',$this).length){$('.powermail_submit',$this).parent().append(getProgressbar())}else{$this.closest('.tx-powermail').append(getProgressbar())}};var removeProgressbar=function($this){$this.closest('.tx-powermail').find('.powermail_progressbar').remove()};var fireAjaxCompleteEvent=function($txPowermail){var submittedEvent=$.Event('submitted.powermail.form');$txPowermail.trigger(submittedEvent)};var deleteAllFilesListener=function(){$('.powermail_fieldwrap_file').find('.deleteAllFiles').each(function(){disableUploadField($(this).closest('.powermail_fieldwrap_file').find('input[type="file"]'))});$('.deleteAllFiles').click(function(){enableUploadField($(this).closest('.powermail_fieldwrap_file').find('input[type="hidden"]'));$(this).closest('ul').fadeOut(function(){$(this).remove()})})};var disableUploadField=function($element){$element.prop('disabled','disabled').addClass('hide').prop('type','hidden')};var enableUploadField=function($element){$element.prop('disabled',!1).removeClass('hide').prop('type','file')};var reloadCaptchaImages=function(){$('img.powermail_captchaimage').each(function(){var source=getUriWithoutGetParam($(this).prop('src'));$(this).prop('src',source+'?hash='+getRandomString(5))})};var getUriWithoutGetParam=function(uri){var parts=uri.split('?');return parts[0]};var getRandomString=function(length){var text='';var possible='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';for(var i=0;i<length;i++){text+=possible.charAt(Math.floor(Math.random()*possible.length))} 49return text};var getDatetimeForDateFields=function(value,format,type){var formatDate=Date.parseDate(value,format);if(formatDate===null){return null} 50var date=new Date(formatDate);var valueDate=date.getFullYear()+'-';valueDate+=('0'+(date.getMonth()+1)).slice(-2)+'-';valueDate+=('0'+date.getDate()).slice(-2);var valueTime=('0'+date.getHours()).slice(-2)+':'+('0'+date.getMinutes()).slice(-2);var valueDateTime=valueDate+'T'+valueTime;if(type==='date'){return valueDate} 51if(type==='datetime-local'){return valueDateTime} 52if(type==='time'){return valueTime} 53return null};var getProgressbar=function(){return $('<div />').addClass('powermail_progressbar').html($('<div />').addClass('powermail_progress').html($('<div />').addClass('powermail_progress_inner')))};var getMaxFileSize=function($field){var field=$field.get(0);var size=0;for(var i=0;i<field.files.length;i++){var file=field.files[i];if(file.size>size){size=file.size}} 54return parseInt(size)};var uploadSizeValidatorListener=function(){window.Parsley.addValidator('powermailfilesize',function(value,requirement){if(requirement.indexOf(',')!==-1){var requirements=requirement.split(',');var maxUploadSize=parseInt(requirements[0]);var $this=$('*[name="tx_powermail_pi1[field]['+requirements[1]+'][]"]');if($this.length){if(getMaxFileSize($this)>maxUploadSize){return!1}}} 55return!0},32).addMessage('en','powermailfilesize','Error')};var uploadExtensionValidatorListener=function(){window.Parsley.addValidator('powermailfileextensions',function(value,requirement){var $this=$('*[name="tx_powermail_pi1[field]['+requirement+'][]"]');if($this.length){return isFileExtensionInList(getExtensionFromFileName(value),$this.prop('accept'))} 56return!0},32).addMessage('en','powermailfileextensions','Error')};var isFileExtensionInList=function(extension,list){return list.indexOf('.'+extension)!==-1};var getExtensionFromFileName=function(fileName){return fileName.split('.').pop().toLowerCase()};var redirectToUri=function(redirectUri){if(redirectUri.indexOf('http')!==-1){window.location=redirectUri}else{window.location.pathname=redirectUri}};var getBaseUrl=function(){var baseurl;if($('base').length>0){baseurl=jQuery('base').prop('href')}else{if(window.location.protocol!="https:"){baseurl='http://'+window.location.hostname}else{baseurl='https://'+window.location.hostname}} 57return baseurl};var addCustomerTypeLogic=function(){var customerTypeInputs=$("input[name='tx_powermail_pi1[field][kundenart]']");var companyNameWrapper=$('.powermail_fieldwrap_firmenname');companyNameWrapper.hide();customerTypeInputs.on('change',function(){if($(this).val()==='Firma'){companyNameWrapper.show()}else{companyNameWrapper.hide();$('#powermail_field_firmenname').val('')}});if($('input[name="tx_powermail_pi1[field][kundenart]"]:checked').val()==='Firma'){companyNameWrapper.show()}}} 58jQuery(document).ready(function($){'use strict';var PowermailForm=new window.PowermailForm($);PowermailForm.initialize();if(window.location.search.indexOf('art')==1){const queryString=window.location.search;
58const urlParams=new URLSearchParams(queryString);const art=urlParams.get('art');$('#powermail_field_anfrage-art').val(art)} 59$('#powermail_field_anfrage-art').change(function(){if($(this).val()=='3'){window.location.href="https://"+document.location.hostname+"/kontakt-abrechnung"}});$('#powermail_field_anfrage-art2').change(function(){if(($(this).val()=='1')||($(this).val()=='2')){window.location.href="https://"+document.location.hostname+"/kontakt?art="+$(this).val()}})});docReady(function(){$('a[data-tracking]').on('click',function(event){let linkEventObj=JSON.parse(event.target.dataset.tracking);let linkEventName=linkEventObj.hasOwnProperty('name')?linkEventObj.name:'';let linkEventValue=linkEventObj.hasOwnProperty('value')?linkEventObj.value:event.target.textContent;if(linkEventValue===''){linkEventValue=event.target.textContent} 60if(linkEventValue!==''&&linkEventName!==''&&_paq){_paq.push(['trackEvent',linkEventName,linkEventValue])}})});document.addEventListener('DOMContentLoaded',()=>{const background=document.querySelector('.interactivemap__background');if(!background){console.warn('No element with class .interactivemap__background found.');return} 61const image=background.querySelector('.interactivemap__image');const wrappers=document.querySelectorAll('.interactivemap__wrapper');function showPoints(){requestAnimationFrame(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{wrappers.forEach(wrapper=>{wrapper.classList.add('is-visible');const title=wrapper.querySelector('.interactivemap__point-title');const point=wrapper.querySelector('.interactivemap__point');title.removeAttribute('hidden');point.removeAttribute('hidden')})})})})} 62if(image){if(image.complete&&image.naturalHeight!==0){setTimeout(showPoints,100)}else{image.addEventListener('load',()=>{setTimeout(showPoints,100)})}}else{setTimeout(showPoints,100)} 63wrappers.forEach(wrapper=>{const content=wrapper.querySelector('.interactivemap__content');if(!content)return;wrapper.addEventListener('mouseenter',()=>{adjustPosition(content,background)});wrapper.addEventListener('keydown',(e)=>{if(e.key==='Enter'||e.key===' '){e.preventDefault();adjustPosition(content,background);wrapper.classList.add('hover');wrapper.setAttribute('aria-expanded','true')}else if(e.key==='Escape'){wrapper.classList.remove('hover');wrapper.setAttribute('aria-expanded','false')}});wrapper.addEventListener('focus',()=>{adjustPosition(content,background);wrapper.setAttribute('aria-expanded','true')});wrapper.addEventListener('blur',()=>{setTimeout(()=>{if(!wrapper.matches(':focus-within')){wrapper.classList.remove('hover');wrapper.setAttribute('aria-expanded','false')}},100)});wrapper.addEventListener('touchstart',()=>{adjustPosition(content,background);wrapper.classList.add('hover');wrapper.setAttribute('aria-expanded','true')});wrapper.addEventListener('touchend',()=>{wrapper.classList.remove('hover');wrapper.setAttribute('aria-expanded','false')})});function adjustPosition(content,background){content.classList.remove('out-of-viewport-right','out-of-viewport-bottom');const contentRect=content.getBoundingClientRect();const backgroundRect=background.getBoundingClientRect();if(contentRect.right>backgroundRect.right){content.classList.add('out-of-viewport-right')} 64if(contentRect.bottom>backgroundRect.bottom){content.classList.add('out-of-viewport-bottom')}}});document.addEventListener("DOMContentLoaded",()=>{var counterElements=document.querySelectorAll('.counter_element');var counterOptions={useGrouping:!0,separator:'.',enableScrollSpy:!0};if(counterElements.length){for(var i=0;i<counterElements.length;i++){let counterElement=counterElements[i];var counterValue=counterElement.getAttribute('data-counter-value');counterOptions.duration=counterElement.getAttribute('data-counter-duration')/1000;let counter=new countUp.CountUp(counterElement,counterValue,counterOptions);counter.handleScroll()}}});document.addEventListener("DOMContentLoaded",function(){var f=!1,e=["input:not([type])","input[type=text]","input[type=number]","input[type=date]","input[type=time]","input[type=datetime]","textarea","[role=textbox]","[supports-modality=keyboard]"].join(","),a,d=(function(){var g=document.body;if(g.matchesSelector){return g.matchesSelector}if(g.webkitMatchesSelector){return g.webkitMatchesSelector}if(g.mozMatchesSelector){return g.mozMatchesSelector}
64if(g.msMatchesSelector){return g.msMatchesSelector}console.error("Couldn't find any matchesSelector method on document.body.")}()),b=function(){var h="body:not([modality=keyboard]) :focus { outline: none; }",g=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css";i.id="disable-focus-ring";if(i.styleSheet){i.styleSheet.cssText=h}else{i.appendChild(document.createTextNode(h))}g.insertBefore(i,g.firstChild)},c=function(h){var g=!1;if(d){g=d.call(h,e)&&d.call(h,":not([readonly]")}return g};b();document.body.addEventListener("keydown",function(){f=!0;if(a){clearTimeout(a)}a=setTimeout(function(){f=!1},100)},!0);document.body.addEventListener("focus",function(g){if(f||c(g.target)){document.body.setAttribute("modality","keyboard")}},!0);document.body.addEventListener("blur",function(){document.body.removeAttribute("modality")},!0)});!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports):"function"==typeof define&&define.amd?define(["exports"],i):i((t="undefined"!=typeof globalThis?globalThis:t||self).countUp={})}(this,(function(t){"use strict";var i=function(){return i=Object.assign||function(t){for(var i,n=1,s=arguments.length;n<s;n++)for(var e in i=arguments[n])Object.prototype.hasOwnProperty.call(i,e)&&(t[e]=i[e]);return t},i.apply(this,arguments)},n=function(){function t(t,n,s){var e=this;this.endVal=n,this.options=s,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(t){e.startTime||(e.startTime=t);var i=t-e.startTime;e.remaining=e.duration-i,e.useEasing?e.countDown?e.frameVal=e.startVal-e.easingFn(i,0,e.startVal-e.endVal,e.duration):e.frameVal=e.easingFn(i,e.startVal,e.endVal-e.startVal,e.duration):e.frameVal=e.startVal+(e.endVal-e.startVal)*(i/e.duration);var n=e.countDown?e.frameVal<e.endVal:e.frameVal>e.endVal;e.frameVal=n?e.endVal:e.frameVal,e.frameVal=Number(e.frameVal.toFixed(e.options.decimalPlaces)),e.printValue(e.frameVal),i<e.duration?e.rAF=requestAnimationFrame(e.count):null!==e.finalEndVal?e.update(e.finalEndVal):e.options.onCompleteCallback&&e.options.onCompleteCallback()},this.formatNumber=function(t){var i,n,s,a,o=t<0?"-":"";i=Math.abs(t).toFixed(e.options.decimalPlaces);var r=(i+="").split(".");if(n=r[0],s=r.length>1?e.options.decimal+r[1]:"",e.options.useGrouping){a="";for(var l=3,u=0,h=0,p=n.length;h<p;++h)e.options.useIndianSeparators&&4===h&&(l=2,u=1),0!==h&&u%l==0&&(a=e.options.separator+a),u++,a=n[p-h-1]+a;n=a}return e.options.numerals&&e.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(t){return e.options.numerals[+t]})),s=s.replace(/[0-9]/g,(function(t){return e.options.numerals[+t]}))),o+e.options.prefix+n+s+e.options.suffix},this.easeOutExpo=function(t,i,n,s){return n*(1-Math.pow(2,-10*t/s))*1024/1023+i},this.options=i(i({},this.defaults),s),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el="string"==typeof t?document.getElementById(t):t,n=null==n?this.parse(this.el.innerHTML):n,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(n),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,t):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return e.handleScroll(e)})),window.onscroll=function(){window.onScrollFns.forEach((function(t){return t()}))},this.handleScroll(this)))}return t.prototype.handleScroll=function(t){if(t&&window&&!t.once){var i=window.innerHeight+window.scrollY,n=t.el.getBoundingClientRect(),s=n.top+window.pageYOffset,e=n.top+n.height+window.pageYOffset;e<i&&e>window.scrollY&&t.paused?(t.paused=!1,setTimeout((function(){return t.start()}),t.options.scrollSpyDelay),t.options.scrollSpyOnce&&(t.once=!0)):(window.scrollY>e||s>i)&&!t.paused&&t.reset()}},t.prototype.determineDirectionAndSmartEasing=function(){var t=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>t;var i=t-this.startVal;if(Math.abs(i)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=t;var n=this.countDown?1:-1;
64this.endVal=t+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=t,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},t.prototype.start=function(t){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),t&&(this.options.onCompleteCallback=t),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},t.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},t.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},t.prototype.update=function(t){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(t),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},t.prototype.printValue=function(t){var i;if(this.el){var n=this.formattingFn(t);if(null===(i=this.options.plugin)||void 0===i?void 0:i.render)this.options.plugin.render(this.el,n);else if("INPUT"===this.el.tagName)this.el.value=n;else"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n}},t.prototype.ensureNumber=function(t){return"number"==typeof t&&!isNaN(t)},t.prototype.validateValue=function(t){var i=Number(t);return this.ensureNumber(i)?i:(this.error="[CountUp] invalid start or end value: ".concat(t),null)},t.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},t.prototype.parse=function(t){var i=function(t){return t.replace(/([.,' ])/g,"\\$1")},n=i(this.options.separator),s=i(this.options.decimal),e=t.replace(new RegExp(n,"g"),"").replace(new RegExp(s,"g"),".");return parseFloat(e)},t}();t.CountUp=n}));class ScrollSpy{constructor(menuElement,options={}){this.menu=menuElement;if(!this.menu)return;this.options=Object.assign({sectionSelector:'a',activeClass:'active',offset:150,},options);this.links=Array.from(this.menu.querySelectorAll(this.options.sectionSelector));this.sections=this.links.map(link=>document.querySelector(link.getAttribute('href'))).filter(section=>section);this._scrolling=!1;this._resizeTimer=null;this._onScroll=this._onScroll.bind(this);this._onResize=this._onResize.bind(this);this._checkScroll=this._checkScroll.bind(this);this._bindEvents();this._checkScroll()} 65_bindEvents(){window.addEventListener('scroll',this._onScroll,{passive:!0});window.addEventListener('resize',this._onResize)} 66_onScroll(){if(!this._scrolling){this._scrolling=!0;requestAnimationFrame(this._checkScroll)}} 67_onResize(){clearTimeout(this._resizeTimer);this._resizeTimer=setTimeout(()=>{this._checkScroll()},200)} 68_checkScroll(){const scrollPos=window.scrollY+this.options.offset;let current=this.sections[0];for(let section of this.sections){if(section.offsetTop<=scrollPos){current=section}} 69this.links.forEach(link=>{const isActive=link.getAttribute('href')===`#${current.id}`;link.classList.toggle(this.options.activeClass,isActive);if(isActive){link.setAttribute('aria-current','true');link.classList.add('active')}else{link.removeAttribute('aria-current');link.classList.remove('active')}});this._scrolling=!1}} 70/*! 71 * Jarallax v2.2.1 (https://github.com/nk-o/jarallax) 72 * Copyright 2024 nK <https://nkdev.info> 73 * Licensed under MIT (https://github.com/nk-o/jarallax/blob/master/LICENSE) 74 */ 75!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).jarallax=t()}(this,(function(){"use strict";function e(e){"complete"===document.readyState||"interactive"===document.readyState?e():document.addEventListener("DOMContentLoaded",e,{capture:!0,once:!0,passive:!0})}let t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var i=t,o={type:"scroll",speed:.5,containerClass:"jarallax-container",imgSrc:null,imgElement:".jarallax-img",imgSize:"cover",imgPosition:"50% 50%",imgRepeat:"no-repeat",keepImg:!1,elementInViewport:null,zIndex:-100,disableParallax:!1,onScroll:null,onInit:null,onDestroy:null,onCoverImage:null,videoClass:"jarallax-video",videoSrc:null,videoStartTime:0,videoEndTime:0,videoVolume:0,videoLoop:!0,videoPlayOnlyVisible:!0,videoLazyLoading:!0,disableVideo:!1,onVideoInsert:null,onVideoWorkerInit:null};const{navigator:n}=i,a=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(n.userAgent);let s,l,r;function c(){s=i.innerWidth||document.documentElement.clientWidth,a?(!r&&document.body&&(r=document.createElement("div"),r.style.cssText="position: fixed; top: -9999px; left: 0; height: 100vh; width: 0;",document.body.appendChild(r)),l=(r?r.clientHeight:0)||i.innerHeight||document.documentElement.clientHeight):l=i.innerHeight||document.documentElement.clientHeight}function p(){return{width:s,height:l}}c(),i.addEventListener("resize",c),i.addEventListener("orientationchange",c),i.addEventListener("load",c),e((()=>{c()}));const m=[];function d(){if(!m.length)return;const{width:e,height:t}=p();m.forEach(((i,o)=>{const{instance:n,oldData:a}=i;if(!n.isVisible())return;const s=n.$item.getBoundingClientRect(),l={width:s.width,height:s.height,top:s.top,bottom:s.bottom,wndW:e,wndH:t},r=!a||a.wndW!==l.wndW||a.wndH!==l.wndH||a.width!==l.width||a.height!==l.height,c=r||!a||a.top!==l.top||a.bottom!==l.bottom;m[o].oldData=l,r&&n.onResize(),c&&n.onScroll()})),i.requestAnimationFrame(d)}const g=new i.IntersectionObserver((e=>{e.forEach((e=>{e.target.jarallax.isElementInViewport=e.isIntersecting}))}),{rootMargin:"50px"});const{navigator:u}=i;let f=0;class h{constructor(e,t){const i=this;i.instanceID=f,f+=1,i.$item=e,i.defaults={...o};const n=i.$item.dataset||{},a={};
75if(Object.keys(n).forEach((e=>{const t=e.substr(0,1).toLowerCase()+e.substr(1);t&&void 0!==i.defaults[t]&&(a[t]=n[e])})),i.options=i.extend({},i.defaults,a,t),i.pureOptions=i.extend({},i.options),Object.keys(i.options).forEach((e=>{"true"===i.options[e]?i.options[e]=!0:"false"===i.options[e]&&(i.options[e]=!1)})),i.options.speed=Math.min(2,Math.max(-1,parseFloat(i.options.speed))),"string"==typeof i.options.disableParallax&&(i.options.disableParallax=new RegExp(i.options.disableParallax)),i.options.disableParallax instanceof RegExp){const e=i.options.disableParallax;i.options.disableParallax=()=>e.test(u.userAgent)}if("function"!=typeof i.options.disableParallax){const e=i.options.disableParallax;i.options.disableParallax=()=>!0===e}if("string"==typeof i.options.disableVideo&&(i.options.disableVideo=new RegExp(i.options.disableVideo)),i.options.disableVideo instanceof RegExp){const e=i.options.disableVideo;i.options.disableVideo=()=>e.test(u.userAgent)}if("function"!=typeof i.options.disableVideo){const e=i.options.disableVideo;i.options.disableVideo=()=>!0===e}let s=i.options.elementInViewport;s&&"object"==typeof s&&void 0!==s.length&&([s]=s),s instanceof Element||(s=null),i.options.elementInViewport=s,i.image={src:i.options.imgSrc||null,$container:null,useImgTag:!1,position:"fixed"},i.initImg()&&i.canInitParallax()&&i.init()}css(e,t){return function(e,t){return"string"==typeof t?i.getComputedStyle(e).getPropertyValue(t):(Object.keys(t).forEach((i=>{e.style[i]=t[i]})),e)}(e,t)}extend(e,...t){return function(e,...t){return e=e||{},Object.keys(t).forEach((i=>{t[i]&&Object.keys(t[i]).forEach((o=>{e[o]=t[i][o]}))})),e}(e,...t)}getWindowData(){const{width:e,height:t}=p();return{width:e,height:t,y:document.documentElement.scrollTop}}initImg(){const e=this;let t=e.options.imgElement;return t&&"string"==typeof t&&(t=e.$item.querySelector(t)),t instanceof Element||(e.options.imgSrc?(t=new Image,t.src=e.options.imgSrc):t=null),t&&(e.options.keepImg?e.image.$item=t.cloneNode(!0):(e.image.$item=t,e.image.$itemParent=t.parentNode),e.image.useImgTag=!0),!!e.image.$item||(null===e.image.src&&(e.image.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",e.image.bgImage=e.css(e.$item,"background-image")),!(!e.image.bgImage||"none"===e.image.bgImage))}canInitParallax(){return!this.options.disableParallax()}init(){const e=this,t={position:"absolute",top:0,left:0,width:"100%",height:"100%",overflow:"hidden"};let o={pointerEvents:"none",transformStyle:"preserve-3d",backfaceVisibility:"hidden"};if(!e.options.keepImg){const t=e.$item.getAttribute("style");if(t&&e.$item.setAttribute("data-jarallax-original-styles",t),e.image.useImgTag){const t=e.image.$item.getAttribute("style");t&&e.image.$item.setAttribute("data-jarallax-original-styles",t)}}if("static"===e.css(e.$item,"position")&&e.css(e.$item,{position:"relative"}),"auto"===e.css(e.$item,"z-index")&&e.css(e.$item,{zIndex:0}),e.image.$container=document.createElement("div"),e.css(e.image.$container,t),e.css(e.image.$container,{"z-index":e.options.zIndex}),"fixed"===this.image.position&&e.css(e.image.$container,{"-webkit-clip-path":"polygon(0 0, 100% 0, 100% 100%, 0 100%)","clip-path":"polygon(0 0, 100% 0, 100% 100%, 0 100%)"}),e.image.$container.setAttribute("id",`jarallax-container-${e.instanceID}`),e.options.containerClass&&e.image.$container.setAttribute("class",e.options.containerClass),e.$item.appendChild(e.image.$container),e.image.useImgTag?o=e.extend({"object-fit":e.options.imgSize,"object-position":e.options.imgPosition,"max-width":"none"},t,o):(e.image.$item=document.createElement("div"),e.image.src&&(o=e.extend({"background-position":e.options.imgPosition,"background-size":e.options.imgSize,"background-repeat":e.options.imgRepeat,"background-image":e.image.bgImage||`url("${e.image.src}")`},t,o))),"opacity"!==e.options.type&&"scale"!==e.options.type&&"scale-opacity"!==e.options.type&&1!==e.options.speed||(e.image.position="absolute"),"fixed"===e.image.position){const t=function(e){const t=[];for(;null!==e.parentElement;)1===(e=e.parentElement).nodeType&&t.push(e);return t}(e.$item).filter((e=>{const t=i.getComputedStyle(e),o=t["-webkit-transform"]||t["-moz-transform"]||t.transform;return o&&"none"!==o||/(auto|scroll)/.test(t.overflow+t["overflow-y"]+t["overflow-x"])}));e.image.position=t.length?"absolute":"fixed"}var n;o.position=e.image.position,e.css(e.image.$item,o),e.image.$container.appendChild(e.image.$item),e.onResize(),e.onScroll(!0),e.o
75ptions.onInit&&e.options.onInit.call(e),"none"!==e.css(e.$item,"background-image")&&e.css(e.$item,{"background-image":"none"}),n=e,m.push({instance:n}),1===m.length&&i.requestAnimationFrame(d),g.observe(n.options.elementInViewport||n.$item)}destroy(){const e=this;var t;t=e,m.forEach(((e,i)=>{e.instance.instanceID===t.instanceID&&m.splice(i,1)})),g.unobserve(t.options.elementInViewport||t.$item);const i=e.$item.getAttribute("data-jarallax-original-styles");if(e.$item.removeAttribute("data-jarallax-original-styles"),i?e.$item.setAttribute("style",i):e.$item.removeAttribute("style"),e.image.useImgTag){const t=e.image.$item.getAttribute("data-jarallax-original-styles");e.image.$item.removeAttribute("data-jarallax-original-styles"),t?e.image.$item.setAttribute("style",i):e.image.$item.removeAttribute("style"),e.image.$itemParent&&e.image.$itemParent.appendChild(e.image.$item)}e.image.$container&&e.image.$container.parentNode.removeChild(e.image.$container),e.options.onDestroy&&e.options.onDestroy.call(e),delete e.$item.jarallax}coverImage(){const e=this,{height:t}=p(),i=e.image.$container.getBoundingClientRect(),o=i.height,{speed:n}=e.options,a="scroll"===e.options.type||"scroll-opacity"===e.options.type;let s=0,l=o,r=0;return a&&(n<0?(s=n*Math.max(o,t),t<o&&(s-=n*(o-t))):s=n*(o+t),n>1?l=Math.abs(s-t):n<0?l=s/n+Math.abs(s):l+=(t-o)*(1-n),s/=2),e.parallaxScrollDistance=s,r=a?(t-l)/2:(o-l)/2,e.css(e.image.$item,{height:`${l}px`,marginTop:`${r}px`,left:"fixed"===e.image.position?`${i.left}px`:"0",width:`${i.width}px`}),e.options.onCoverImage&&e.options.onCoverImage.call(e),{image:{height:l,marginTop:r},container:i}}isVisible(){return this.isElementInViewport||!1}onScroll(e){const t=this;if(!e&&!t.isVisible())return;const{height:i}=p(),o=t.$item.getBoundingClientRect(),n=o.top,a=o.height,s={},l=Math.max(0,n),r=Math.max(0,a+n),c=Math.max(0,-n),m=Math.max(0,n+a-i),d=Math.max(0,a-(n+a-i)),g=Math.max(0,-n+i-a),u=1-(i-n)/(i+a)*2;let f=1;if(a<i?f=1-(c||m)/a:r<=i?f=r/i:d<=i&&(f=d/i),"opacity"!==t.options.type&&"scale-opacity"!==t.options.type&&"scroll-opacity"!==t.options.type||(s.transform="translate3d(0,0,0)",s.opacity=f),"scale"===t.options.type||"scale-opacity"===t.options.type){let e=1;t.options.speed<0?e-=t.options.speed*f:e+=t.options.speed*(1-f),s.transform=`scale(${e}) translate3d(0,0,0)`}if("scroll"===t.options.type||"scroll-opacity"===t.options.type){let e=t.parallaxScrollDistance*u;"absolute"===t.image.position&&(e-=n),s.transform=`translate3d(0,${e}px,0)`}t.css(t.image.$item,s),t.options.onScroll&&t.options.onScroll.call(t,{section:o,beforeTop:l,beforeTopEnd:r,afterTop:c,beforeBottom:m,beforeBottomEnd:d,afterBottom:g,visiblePercent:f,fromViewportCenter:u})}onResize(){this.coverImage()}}const b=function(e,t,...i){("object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)&&(e=[e]);const o=e.length;let n,a=0;for(;a<o;a+=1)if("object"==typeof t||void 0===t?e[a].jarallax||(e[a].jarallax=new h(e[a],t)):e[a].jarallax&&(n=e[a].jarallax[t].apply(e[a].jarallax,i)),void 0!==n)return n;return e};b.constructor=h;const y=i.jQuery;if(void 0!==y){const e=function(...e){Array.prototype.unshift.call(e,this);const t=b.apply(i,e);return"object"!=typeof t?t:this};e.constructor=b.constructor;const t=y.fn.jarallax;y.fn.jarallax=e,y.fn.jarallax.noConflict=function(){return y.fn.jarallax=t,this}}return e((()=>{b(document.querySelectorAll("[data-jarallax]"))})),b}));class ParallaxImages{constructor(){this.parallaxElements=document.querySelectorAll('.textimagehighglight-parallax--parallax');if(!this.parallaxElements.length)return;window.addEventListener('scroll',()=>this._onScroll(),{passive:!0});this._onScroll()} 76_onScroll(){if(window.matchMedia("only screen and (max-width: 991px)").matches)return;let parallaxElements=document.querySelectorAll('.textimagehighglight-parallax--parallax');for(let i=0;i<parallaxElements.length;i++){let element=parallaxElements[i];let text=element.querySelector('.textimagehighglight-parallax__inner__text');let image=element.querySelector('.textimagehighglight-parallax__inner__image');const offset=Math.min((element.getBoundingClientRect().top-350)/10,30);text.style.transform=`translateY(-${offset}px)`;image.style.transform=`translateY(${offset}px)`}}} 77window.addEventListener("load",(event)=>{new ParallaxImages();jarallax(document.querySelectorAll('.jarallax'),{speed:-0.3})})
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.