1"use strict";(self.webpackChunkkuraray=self.webpackChunkkuraray||[]).push([[1689],{1689:function(e,t,i){i.r(t),i.d(t,{default:function(){return u}});var n=i(5891);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,l(n.key),n)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==a(t)?t:t+""}var s=window.innerWidth,u=function(){return e=function e(t){var i=this;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.el=t,this.outsideClickBound=!1,this.outsideClickBoundMobNav=!1,this.el){this.mobileMenuBtn=this.el.querySelector("#menu-btn"),this.mobileMenuBtn.addEventListener("click",this.toggleMobileNavigation.bind(this)),this.moveLangNav();var a,o,l,u=(0,n.throttle)(this.onResize.bind(this),n.resizeDelay);window.addEventListener("resize",(function(){window.innerWidth!==s&&u()})),this.className="expanded",this.langNav=this.el.getElementsByClassName("site-header__languagenavigation")[0],this.langNav&&(this.item=this.langNav.children[0],this.item&&(this.buttonEl=this.item.querySelector("button[aria-expanded]"),this.closeButton=this.item.querySelector(".cmp-nav-global__close"),this.arrow=null===(a=this.buttonEl)||void 0===a?void 0:a.querySelector(".cmp-nav-global__icon"),null===(o=this.buttonEl)||void 0===o||o.addEventListener("click",this.expandLangNav.bind(this)),null===(l=this.closeButton)||void 0===l||l.addEventListener("click",this.expandLangNav.bind(this)))),document.addEventListener("keydown",(function(e){e.key===n.ESC&&(i.closeLangNav(e),i.closeMobileNavigation(e))})),this.dynamicPaddingTop()}},t=[{key:"dynamicPaddingTop",value:function(){var e=this.el.clientHeight,t=document.getElementById("header-theme"),i=document.documentElement,n=document.getElementById("side-navigation-trigger-btn");t&&(t.style.paddingTop=e+"px"),i&&(i.style.scrollPaddingTop=e+"px"),n&&null!=n&&n.parentElement&&(n.parentElement.style.top=e+"px")}},{key:"toggleMobileNavigation",value:function(){var e=this.el.querySelector("#navigation-container"),t=this.el.querySelector("#header-logo a"),i=this.el.querySelector("#header-logo_text a");null==e||e.classList.toggle("expanded"),"true"==this.mobileMenuBtn.getAttribute("aria-expanded")?(this.mobileMenuBtn.setAttribute("aria-expanded",!1),this.mobileMenuBtn.classList.remove("icon-close-small"),this.mobileMenuBtn.classList.add("icon-hamburger-menu"),t.tabIndex="0",i&&(i.tabIndex="0")):(this.mobileMenuBtn.setAttribute("aria-expanded",!0),this.mobileMenuBtn.classList.remove("icon-hamburger-menu"),this.mobileMenuBtn.classList.add("icon-close-small"),t.tabIndex="-1",i&&(i.tabIndex="-1")),null!=e&&e.classList.contains("expanded")?(this.outsideClickBoundMobNav||(this.handleOutsideClickBoundMobNav=this.handleOutsideClickMobNav.bind(this),document.addEventListener("click",this.handleOutsideClickBoundMobNav),this.outsideClickBoundMobNav=!0),n.viewPort.isUnderTablet()&&(document.body.style.overflow="hidden")):this.cleanupMobileOutsideClick()}},{key:"closeMobileNavigation",value:function(){"true"===this.mobileMenuBtn.getAttribute("aria-expanded")&&this.toggleMobileNavigation(),this.cleanupMobileOutsideClick()}},{key:"cleanupMobileOutsideClick",value:function(){this.outsideClickBoundMobNav&&this.handleOutsideClickBoundMobNav&&(document.removeEventListener("click",this.handleOutsideClickBoundMobNav),this.outsideClickBoundMobNav=!1),n.viewPort.isUnderTablet()&&(document.body.style.overflow="")}},{key:"onResize",value:function(){this.moveLangNav(),this.dynamicPaddingTop();var e=this.el.querySelector("#navigation-container");n.viewPort.isUnderTablet()&&null!=e&&e.classList.contains("expanded")&&this.closeMobileNavigation()}},{key:"moveLangNav",value:function(){var e=this.el.getElementsByClassName("site-header__languagenavigation")[0],t=this.el.getElementsByClassName("site-header__navigation")[0],i=this.el.getElementsByClassName("site-header__language-select")[0];e&&t&&i&&(n.viewPort.isUnderTablet()?t.prepend(e):i.appendChild(e))}},{key:"expandLangNav",value:function(e){if(this.langNav&&this.buttonEl&&this.arrow){e.preventDefault();var t="true"===this.buttonEl.getAttribute("aria-expanded");this.langNav.classList.toggle(this.className),this.buttonEl.setAttribute("aria-expanded",!t),this.arrow.classList.toggle("icon-chevron-arrow-down"),this.arrow.classList.toggle("icon-chevron-arrow-up"),this.langNav.classList.contains("expanded")?this.outsideClickBound||(this.handleOutsideClickBound=this.handleOutsideClick.bind(this),document.addEventListener("click",this.handleOutsideClickBound),this.outsideClickBound=!0):this.cleanupLangOutsideClick()}}},{key:"closeLangNav",value:function(e){var t;"true"===(null===(t=this.buttonEl)||void 0===t?void 0:t.getAttribute("aria-expanded"))&&this.langNav&&this.expandLangNav(e),this.cleanupLangOutsideClick()}},{key:"cleanupLangOutsideClick",value:function(){this.outsideClickBound&&this.handleOutsideClickBound&&(document.removeEventListener("click",this.handleOutsideClickBound),this.outsideClickBound=!1)}},{key:"handleOutsideClick",value:function(e){e.target.closest(".site-header__languagenavigation")||this.closeLangNav(e)}},{key:"handleOutsideClickMobNav",value:function(e){e.target.closest("#navigation-container")||e.target.closest("#menu-btn")||this.closeMobileNavigation(e)}}],t&&o(e.prototype,t),i&&o(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,i}()}}]);
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.