https://www.bkkgs.de/_assets/bfed1638687f5a7f635b354abab9e36d/JavaScript/472.1e2d62646c1b3041dff3.js
1"use strict";(self.webpackChunkbkkgs=self.webpackChunkbkkgs||[]).push([[472,776],{1472:(e,o,t)=>{t.r(o),t.d(o,{DownloadFilter1:()=>s,default:()=>l});var n=t(6776),i=t(4002);class s{init(){const e=this,o=[],t=i(".download-center--1"),s=i(".download-center__filter"),l=i(".download-center__info-button"),r=new n.JumpToAnchor;if(l.on({click:function(e){const o=i(e.target),t=o.closest(".download-center").find(".tx-powermail").eq(0);r.jumpToElement(t),o.removeClass("download-center__info-button--show")}}),s.length>0){const o=s.find(".download-center__filter-category"),n=s.find(".download-center__filter-text"),i=JSON.parse(downloadCenterCategories);i.pop(),i.length>0&&i.forEach((function(e){o.append(`<option value="${e.uid}">${e.title}</option>`)})),o.on("change",(function(){e.processedFilter(o.val(),n.val()),t.find(".form__checkbox-downloadcenter:checked").trigger("click")})),n.on("keyup",(function(){e.processedFilter(o.val(),n.val()),t.find(".form__checkbox-downloadcenter:checked").trigger("click")}))}t.find(".tx-powermail").addClass("tx-powermail--hide"),t.find(".form__checkbox-downloadcenter").on("click",(function(){if(i(this).prop("checked"))-1===o.indexOf(i(this).val())&&o.push(i(this).val());else{const e=o.indexOf(i(this).val());-1!==e&&o.splice(e,1)}i(this).closest(".download-center__item").toggleClass("download-center__item--selected",!!i(this).prop("checked")),i(".download-center__info-button").toggleClass("download-center__info-button--show",!!(o.length>0)),o.length>0?(t.find(".tx-powermail").removeClass("tx-powermail--hide"),t.find('input[name="tx_powermail_pi1[field][dokumente]"]').val(o.join(", "))):(t.find(".tx-powermail").addClass("tx-powermail--hide"),t.find('input[name="tx_powermail_pi1[field][dokumente]"]').val(""))}))}processedFilter(e,o){const t=this,n=i(".download-center .collapse-block__item");if(0===parseInt(e)&&""===o)return n.removeClass("download-center__item--hide"),!0;n.each((function(){if(t.isSearchedCategory(i(this),e)&&t.isSearchedText(i(this),o))return i(this).removeClass("download-center__item--hide"),!0;i(this).addClass("download-center__item--hide")}))}isSearchedCategory(e,o){return 0===parseInt(o)||void 0!==e.attr("data-download-category")&&-1!==e.attr("data-download-category").search(`'${o}'`)}isSearchedText(e,o){if(""===o)return!0;const t=e.find(".medownload__item--title-container").html(),n=e.find(".medownload__item--description-container").html();return"string"==typeof t&&-1!==t.search(new RegExp(o,"i"))||"string"==typeof n&&-1!==n.search(new RegExp(o,"i"))}}const l=s},6776:(e,o,t)=>{t.r(o),t.d(o,{JumpToAnchor:()=>s,default:()=>l});var n=t(4002),i=t(4002);class s{constructor(e={}){this.options=n.extend({selectors:{toTop:".btn--to-top, .btn--to-top-fixed",anchor:'a[href*="#"][href*="'+window.location.host+'"],a[href^="/"][href*="#"]:not([href^="//"]),a[href^="#"]',pageHeader:".page-header"},classes:{bodyHeaderScrolling:"is--header-scrolling",bodyOnScrolling:"is--btn-to-top"},scrollTime:2e3,additionalOffsetTop:10,ticking:!1,scrollBreakpoint:.9},e)}init(){this.addEvents()}addEvents(){const e=this;n(e.options.selectors.toTop).on({click:function(o){o.preventDefault(),e.jumpToTop()}}),n(e.options.selectors.anchor).on({click:function(o){const t=n(this),i=t.attr("href").substring(t.attr("href").indexOf("#"));if(i.length>1){const t=document.querySelector(i);t&&(o.preventDefault(),e.jumpToElement(t))}}}),e.addIsHeaderScrolling(window.scrollY),n(document).on("scroll",(function(){const o=window.scrollY;e.ticking||window.requestAnimationFrame((function(){e.addIsHeaderScrolling(o),e.ticking=!1})),e.ticking=!0}))}jumpToTop(){n("html, body").animate({scrollTop:0},this.options.scrollTime)}jumpToElement(e){let o=e;if(e instanceof i){if(0===e.length)return;o=e[0]}if(o instanceof Element){const e=o.getBoundingClientRect().top+window.scrollY-this.calculateHeaderOffset();window.scrollTo({top:e,behavior:"smooth"})}}calculateHeaderOffset(){const e=this;let o=0;return n(e.options.selectors.pageHeader).length>0&&(n("body").hasClass(e.options.classes.bodyHeaderScrolling)?o=n(e.options.selectors.pageHeader).outerHeight()+e.options.additionalOffsetTop:(n("body").addClass(e.options.classes.bodyHeaderScrolling),o=n(e.options.selectors.pageHeader).outerHeight()+e.options.additionalOffsetTop,n("body").removeClass(e.options.classes.bodyHeaderScrolling))),o}addIsHeaderScrolling(e){const o=window.innerHeight/this.options.scrollBreakpoint,t=n(document).height()-n(window).innerHeight()-e;e>=o?t>250?n("body").addClass(this.options.classes.bodyOnScrolling):t<150&&n("body").removeClass(this.options.classes.bodyOnScrolling):n("body").removeClass(this.options.classes.bodyOnScrolling)}}const l=s}}]); 2//# sourceMappingURL=472.1e2d62646c1b3041dff3.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.