1"use strict";(self.webpackChunkaem_maven_archetype=self.webpackChunkaem_maven_archetype||[]).push([[4709],{9027:function(t,e,a){a.r(e),a.d(e,{Tabs:function(){return l},init:function(){return d}});var n=a(4692),i=a.n(n),o=a(3278),s=a(7293);a(6356);const r=t=>{if(""!==window.location.hash&&window.location.hash.indexOf("tab_")>0){const e=window.location.hash.split("tab_")[1],a=(0,s.JW)("#"+e,".responsive-row",t.module),n=t.contentSection[0];if(console.log("ariaLabel",n),n&&(t=>{let e;i()(".cmp-header-v2")?i()(window).width()<1024&&(e=i()(".cmp-header-v2").outerHeight()):e=i()(window).width()<1024?i()(".megamenumobile").outerHeight():i()(".megamenu").outerHeight(),i()(window).scrollTop(t.module.offset().top-e)})(t),a.length){a.focus();let e=a;return t.isMobile&&t.isVertical&&(e=t.accordionButton.filter('[aria-controls="'+a.attr("aria-controls")+'"]')),e.trigger("click",{force:!0}),!0}}return!1},c=t=>{const e={end:35,home:36,left:37,up:38,right:39,down:40,delete:46,enter:13,space:32},a={37:-1,38:-1,39:1,40:1};function n(e,a,n){if(!e.hasClass("tab__item--active")||a){o(),e.addClass("tab__item--active").attr("aria-selected","true").attr("tabindex","0");const i=e.attr("aria-controls");t.contentPanels.filter("#"+i).removeAttr("tabindex").parent().addClass("tab__panel--active"),t.accordionButton.filter("[aria-controls="+i+"]").attr("aria-expanded",!0),n&&(window.location.hash="tab_"+e.attr("id")),a||e.focus()}}function o(){t.tabItems.removeClass("tab__item--active").attr("aria-selected",!1).attr("tabindex","-1"),t.contentPanels.attr("tabindex","-1"),t.accordionButton.children("button").attr("aria-expanded",!1),t.sectionPanels.removeClass("tab__panel--active"),t.isVertical&&(t.module.removeClass("open"),t.contentSection.removeClass("slide--open"))}function c(n){const o=n.keyCode;let s=!1;t.isVertical?o!==e.up&&o!==e.down||(n.preventDefault(),s=!0):o!==e.left&&o!==e.right||(s=!0),s&&function(n){const o=n.keyCode;if(a[o]){const s=i()(n.target),r=t.tabItems.index(s);void 0!==r&&(t.tabItems[r+a[o]]?i()(t.tabItems[r+a[o]]).focus():o===e.left||o===e.up?t.tabItems.last().focus():o!==e.right&&o!==e.down||t.tabItems.first().focus())}}(n)}i()('a[href*="tab_"]').on("click",(function(e){if(i()(this).attr("href").split("#")[0]==window.location.href){e.preventDefault(),e.stopPropagation();const a=i()(this).attr("href").split("tab_")[1];n((0,s.JW)("#"+a,".responsive-row",t.module),!1,!0)}})),t.accordionButton.on("click",(function(e,a){e.preventDefault(),e.stopPropagation();const n=!a||a.deeplink,o=i()(this).attr("aria-controls"),s=i()(this).parent(),r=i()(this).children("button"),c=i()(this).siblings(".content__component"),l=t.tabItems.filter("[aria-controls="+o+"]");s.hasClass("tab__panel--active")?(s.removeClass("tab__panel--active"),r.attr("aria-expanded",!1),c.attr("tabindex","-1"),l.removeClass("tab__item--active").attr("tabindex","-1"),t.isVertical&&(t.module.removeClass("open"),t.contentSection.removeClass("slide--open"))):(s.addClass("tab__panel--active"),r.attr("aria-expanded",!0),c.removeAttr("tabindex"),l.addClass("tab__item--active").attr("tabindex","0"),t.isVertical&&(t.module.addClass("open"),t.contentSection.addClass("slide--open")),n&&(window.location.hash="tab_"+l.attr("id")))})),t.isVertical&&t.mobilePanelReturn.on("click",(function(e){e.preventDefault(),e.stopPropagation();const a=i()(this).parent().parent(),n=i()(this).siblings(".content__component"),o=a.children("[aria-controls]").attr("aria-controls"),s=t.tabItems.filter("[aria-controls="+o+"]");a.removeClass("tab__panel--active"),n.attr("tabindex","-1").attr("aria-selected",!1),s.removeClass("tab__item--active").attr("aria-selected",!1).attr("tabindex","-1"),t.contentSection.removeClass("slide--open"),t.module.removeClass("open")})),t.tabItems.on("click",(function(t,e){t.preventDefault(),t.stopPropagation();const a=!!e&&e.force,o=!e||e.deeplink;n(i()(this),a,o),this.scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"})})),t.tabItems.on("keydown",(function(a){switch(a.keyCode){case e.end:a.preventDefault(),t.tabItems.last().focus();break;case e.home:a.preventDefault(),t.tabItems.first().focus();break;case e.up:case e.down:c(a)}})),t.tabItems.on("keyup",(function(t){switch(t.keyCode){case e.left:case e.right:c(t);break;case e.enter:case e.space:i()(t.target).click()}})),i()(window).on("resize",(function(){window.matchMedia("(max-width: 1023px)").matches&&!t.isMobile?(t.isMobile=!0,o(),r(t)||t.isVertical||t.accordionButton.first().trigger("click",{deeplink:!1})):!window.matchMedia("(max-width: 1023px)").matches&&t.isMobile&&(t.isMobile=!1,o(),r(t)||t.tabItems.first().trigger("click",{force:!0,deeplink:!1}))}
1))},l=t=>{const e=i()(t),a={module:e,isVertical:e.hasClass("vertical"),isMobile:window.matchMedia("(max-width: 1023px)").matches,sectionPanels:(0,s.JW)(".tab__panel",".responsive-row",e),contentPanels:(0,s.JW)(".content__component",".responsive-row",e),contentSection:(0,s.JW)(".content__section",".responsive-row",e),tabItems:(0,s.JW)(".tab__item",".responsive-row",e),accordionButton:(0,s.JW)(".title--secondary",".responsive-row",e),mobilePanelReturn:(0,s.JW)(".close__panel","responsive-row",e),tabContainer:e.find(".tabs__container"),scrollLine:e.find(".tabs__container .tabs__scroll-line")};c(a),(t=>{r(t)||!t.isVertical||t.isMobile||t.tabItems.first().trigger("click",{force:!0,deeplink:!1})})(a)},d=()=>{(0,o.Eu)("tabs",l)}}}]);
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.