{"version":3,"sources":["webpack:///./node_modules/@reactiveonline/frontend_shared_components/components/layout/header/Header_v6.js","webpack:///./node_modules/@reactiveonline/frontend_shared_components/components/layout/header/navigations/TopHeaderNavigation.js","webpack:///./node_modules/@reactiveonline/frontend_shared_components/components/layout/shared/LanguageSelector.js","webpack:///./node_modules/@reactiveonline/frontend_shared_components/components/layout/header/navigations/SimpleMenu.js","webpack:///./node_modules/@reactiveonline/frontend_shared_components/components/layout/header/MobileTopHeader.js","webpack:///./node_modules/@reactiveonline/frontend_shared_components/components/layout/header/TopHeader.js","webpack:///./node_modules/@reactiveonline/frontend_shared_components/components/layout/header/Breadcrumbs.js","webpack:///./node_modules/@reactiveonline/frontend_shared_components/components/layout/header/navigations/VerticalNavigationStyles.js","webpack:///./node_modules/@reactiveonline/frontend_shared_components/components/layout/header/navigations/VerticalNavigation.js"],"names":["Header","_ref","appProps","HeaderIcons","ProductSearch","BelowHeaderPlacement","document","getElementById","verticalMenu","parseFloat","headerHeight","getElementsByClassName","length","offsetHeight","undefined","style","top","concat","createElement","Fragment","id","className","marginLeft","preferences","logo","target","href","rootPath","rel","site_name","currentDevice","onClick","visibility","opacity","zIndex","translations","products","product_list_title","onMouseLeave","navigation","header_menu","keyword","breadcrumbs","_slicedToArray","arr","i","Array","isArray","_arrayWithHoles","r","l","t","Symbol","iterator","e","n","u","a","f","o","call","next","Object","done","push","value","return","_iterableToArrayLimit","minLen","_arrayLikeToArray","prototype","toString","slice","constructor","name","from","test","_unsupportedIterableToArray","TypeError","_nonIterableRest","len","arr2","TopHeaderNavigation","_useState2","setHeaderRerenderer","_useState4","setMainNavHover","frontendStyles","currentPath","window","location","pathname","_navigationItemHrefClass","item","children","renderedNavigation","items","map","index","link","itemTranslation","find","locale","currentLocale","linkStyles","fontFamily","textStyles","fontSize","fontWeight","paddingLeft","paddingRight","color","topHeader","backgroundColor","navWithLink","openNewPage","dangerouslySetInnerHTML","__html","title","navNoLink","key","navigationItemHrefClass","prefixLink","height","_typeof","ownKeys","keys","getOwnPropertySymbols","filter","getOwnPropertyDescriptor","enumerable","apply","_objectSpread","arguments","forEach","_defineProperty","getOwnPropertyDescriptors","defineProperties","defineProperty","obj","arg","input","hint","prim","toPrimitive","res","String","Number","_toPrimitive","_toPropertyKey","configurable","writable","LanguageSelector","openLocales","setOpenLocales","hover","setHover","currentLanguage","languages","code","addEventListener","escFunction","removeEventListener","event","position","icon","prevState","src","general","colorScheme","onMouseEnter","path","changeLocalePath","search","entityWithTranslatableId","entityWithTranslatableSlugType","entityBlogArchiveSlug","entityBlogCategorySlug","presentation","_toConsumableArray","_arrayWithoutHoles","iter","_iterableToArray","_nonIterableSpread","SimpleMenu","currentHeaderHeight","navigationState","setNavigationState","_useState6","_useState8","subNavItemHover","setSubNavItemHover","navRef","menuItemOpener","openerProps","current","navItem","childrenIds","c","menuItemCloser","closerProps","depth","recursivelyRenderChildren","navigationClass","itemVisibility","currentNavigationLink","headerNavigation","submenuItemColorHover","submenuItemColor","submenuItemBackgroundHover","submenuItemBackground","submenu","submenuOpen","menuWrapper","child","childTranslation","currentChildNavigationLink","width","h5styles","letterSpacing","lineHeight","textTransform","padding","requiresLogin","currentUserEmail","navigationItem","MobileTopHeader","navClass","mobMenuButton","setMobMenuButton","mobileMenu","setMobileMenu","paddingTop","paddingBottom","TopHeader","navWrapper","top_header_menu","Breadcrumbs","breadcrumb","last","VerticalNavigationStyles","left","childSubmenu","VerticalNavigation","setHeaderHeight","topHeaderHeight","setTopHeaderHeight","setCurrentHeaderHeight","mainNavHover","_useState10","headerRerenderer","_useState12","showMenuItem","setShowMenuItem","_useState14","split","megamenuWrapper","submenuBackground","h6styles","calculateHeaderHeight","colorHover","backgroundHover","background"],"mappings":"kHAAA,8GAMe,SAASA,EAAOC,GAC7B,IAAIC,EAAWD,EAAKC,SAChBC,EAAcD,EAASC,YACzBC,EAAgBF,EAASE,cACzBC,EAAuBH,EAASG,qBAelC,OAdA,qBAAU,WACR,GAAsD,MAAlDC,SAASC,eAAe,u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Ac,IAAMC,SAAU,KAAM,IAAKgF,EAAOe,EAAcK,EAAW,QASUmF,EAA0B7G,EAAM,oBAC9J,CACE,OAAO,IAEX,IACA,OAAoB,IAAM3E,cAAc,MAAO,CAC7CG,UAAW,kBACV0E,EACL,C","file":"js/3-ba1bc6c02fd1567c0f48.chunk.js","sourcesContent":["import React, { useEffect } from 'react';\nimport TopHeader from './TopHeader';\nimport Breadcrumbs from './Breadcrumbs';\nimport VerticalNavigation from './navigations/VerticalNavigation';\nimport Logo from '../shared/Logo';\nimport LanguageSelector from '../shared/LanguageSelector';\nexport default function Header(_ref) {\n var appProps = _ref.appProps;\n var HeaderIcons = appProps.HeaderIcons,\n ProductSearch = appProps.ProductSearch,\n BelowHeaderPlacement = appProps.BelowHeaderPlacement;\n useEffect(function () {\n if (document.getElementById('vertical-navigation') != null) {\n var verticalMenu = document.getElementById('vertical-navigation');\n var headerHeight = parseFloat(appProps.headerHeight);\n var topHeaderHeight;\n topHeaderHeight = 0;\n if (document.getElementsByClassName('top_header').length > 0) {\n topHeaderHeight = document.getElementsByClassName('top_header')[0].offsetHeight;\n }\n if (verticalMenu !== undefined) {\n document.getElementById('vertical-navigation').style.top = \"\".concat(appProps.headerHeight, \"px\");\n }\n }\n }, []);\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n id: \"above_everything\"\n }), /*#__PURE__*/React.createElement(TopHeader, {\n appProps: appProps\n }), /*#__PURE__*/React.createElement(\"header\", {\n className: \"header_wrapper\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"header_row main-container header_v6\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"logo_wrapper\",\n style: {\n marginLeft: 60\n }\n }, appProps.preferences.logo ? /*#__PURE__*/React.createElement(Logo, {\n appProps: appProps,\n target: '_self',\n logo: appProps.preferences.logo\n }) : /*#__PURE__*/React.createElement(\"div\", {\n className: \"site-name-logo\"\n }, /*#__PURE__*/React.createElement(\"a\", {\n href: appProps.rootPath,\n rel: \"nofollow noindex\"\n }, appProps.preferences.site_name ? appProps.preferences.site_name : ''))), /*#__PURE__*/React.createElement(\"div\", {\n className: \"navigation\"\n }, appProps.currentDevice === 'desktop' && /*#__PURE__*/React.createElement(\"div\", {\n className: \"vertical-menu\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"menu-opener pointer\",\n onClick: function onClick() {\n document.getElementById('vertical-navigation-overlay').style.visibility = 'visible';\n document.getElementById('vertical-navigation-overlay').style.opacity = '1';\n document.getElementById('vertical-navigation-overlay').style.zIndex = 10;\n document.getElementById('vertical-navigation').style.visibility = 'visible';\n document.getElementById('vertical-navigation').style.opacity = '1';\n document.getElementById('vertical-navigation').style.zIndex = 10;\n }\n }, appProps.translations.products.product_list_title), /*#__PURE__*/React.createElement(\"div\", {\n id: \"vertical-navigation-overlay\"\n }), /*#__PURE__*/React.createElement(\"div\", {\n id: \"vertical-navigation\",\n onMouseLeave: function onMouseLeave() {\n document.getElementById('vertical-navigation-overlay').style.visibility = 'hidden';\n document.getElementById('vertical-navigation-overlay').style.opacity = '0';\n document.getElementById('vertical-navigation-overlay').style.zIndex = '-1';\n document.getElementById('vertical-navigation').style.visibility = 'hidden';\n document.getElementById('vertical-navigation').style.opacity = '0';\n document.getElementById('vertical-navigation').style.zIndex = '-1';\n }\n }, /*#__PURE__*/React.createElement(VerticalNavigation, {\n appProps: appProps,\n navigation: appProps.navigation.header_menu\n }))), /*#__PURE__*/React.createElement(ProductSearch, {\n appProps: appProps,\n keyword: appProps.keyword\n })), /*#__PURE__*/React.createElement(\"div\", {\n className: \"header-icons\",\n id: \"header-icons-ajax-container\"\n }, /*#__PURE__*/React.createElement(HeaderIcons, {\n appProps: appProps\n })))), BelowHeaderPlacement && /*#__PURE__*/React.createElement(BelowHeaderPlacement, {\n appProps: appProps\n }), /*#__PURE__*/React.createElement(Breadcrumbs, {\n breadcrumbs: appProps.breadcrumbs\n }), /*#__PURE__*/React.createElement(\"div\", {\n id: \"below_header\"\n }));\n}","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nimport React, { useState, useEffect } from 'react';\nimport SimpleMenu from './SimpleMenu';\nimport { prefixLink as _prefixLink } from '../../../../utils';\nexport default function TopHeaderNavigation(_ref) {\n var appProps = _ref.appProps,\n navigation = _ref.navigation;\n var _useState = useState(null),\n _useState2 = _slicedToArray(_useState, 2),\n headerRerenderer = _useState2[0],\n setHeaderRerenderer = _useState2[1];\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n mainNavHover = _useState4[0],\n setMainNavHover = _useState4[1];\n var frontendStyles = appProps.frontendStyles;\n var currentPath = window.location.pathname;\n function _navigationItemHrefClass(item) {\n return item.children.length > 0 ? 'has_submenu' : '';\n }\n var renderedNavigation = navigation && navigation.items.map(function (item, index) {\n var link = _prefixLink(item, appProps);\n if (link !== null) {\n var itemTranslation = item.translations.find(function (t) {\n return t.locale === appProps.currentLocale;\n });\n var currentNavigationLink = '/' + appProps.currentLocale + itemTranslation.link;\n var linkStyles = {\n fontFamily: frontendStyles.textStyles.fontFamily,\n fontSize: frontendStyles.textStyles.fontSize,\n fontWeight: frontendStyles.textStyles.fontWeight,\n paddingLeft: 10,\n paddingRight: 10,\n color: frontendStyles.topHeader.color,\n backgroundColor: frontendStyles.topHeader.backgroundColor\n };\n var navWithLink = /*#__PURE__*/React.createElement(\"a\", {\n className: \"flex-box items-center \".concat(_navigationItemHrefClass(item), \" \"),\n style: linkStyles,\n href: link,\n rel: \"nofollow noindex noreferrer\",\n target: item.openNewPage ? '_blank' : '_self',\n dangerouslySetInnerHTML: {\n __html: itemTranslation.title\n }\n });\n var navNoLink = /*#__PURE__*/React.createElement(\"div\", {\n className: \"no-link flex-box items-center pointer \".concat(_navigationItemHrefClass(item), \" \"),\n style: linkStyles,\n dangerouslySetInnerHTML: {\n __html: itemTranslation.title\n }\n });\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: index\n }, /*#__PURE__*/React.createElement(SimpleMenu, {\n appProps: appProps,\n navigation: navigation,\n currentPath: currentPath,\n frontendStyles: frontendStyles,\n item: item,\n itemTranslation: itemTranslation,\n link: link,\n navWithLink: navWithLink,\n navNoLink: navNoLink,\n navigationItemHrefClass: function navigationItemHrefClass(e) {\n return _navigationItemHrefClass(e);\n },\n prefixLink: function prefixLink(e) {\n return _prefixLink(e, appProps);\n },\n setMainNavHover: setMainNavHover,\n setHeaderRerenderer: setHeaderRerenderer,\n topHeader: true\n }));\n } else {\n return null;\n }\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"top-header-navigation-wrapper flex-1\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"flex-box\",\n style: {\n height: '100%'\n }\n }, renderedNavigation));\n}","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nimport React, { useState, useEffect, useCallback } from 'react';\nexport default function LanguageSelector(_ref) {\n var appProps = _ref.appProps;\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n openLocales = _useState2[0],\n setOpenLocales = _useState2[1];\n var _useState3 = useState(null),\n _useState4 = _slicedToArray(_useState3, 2),\n hover = _useState4[0],\n setHover = _useState4[1];\n var currentLanguage = appProps.languages.filter(function (l) {\n return l.code === appProps.currentLocale;\n })[0];\n useEffect(function () {\n document.addEventListener(\"keydown\", escFunction, false);\n return function () {\n document.removeEventListener(\"keydown\", escFunction, false);\n };\n }, []);\n var escFunction = useCallback(function (event) {\n if (event.key === \"Escape\") {\n setOpenLocales(false);\n }\n }, []);\n function changeLocale(locale) {\n var path = \"\".concat(appProps.changeLocalePath, \"?locale=\").concat(locale, \"&redirect_url=\").concat(window.location.pathname + window.location.search);\n if (appProps.currentLocale) {\n path += \"&prev_locale=\".concat(appProps.currentLocale);\n }\n if (appProps.entityWithTranslatableId) {\n path += \"&entity_id=\".concat(appProps.entityWithTranslatableId, \"&entity_type=\").concat(appProps.entityWithTranslatableSlugType);\n }\n if (appProps.entityBlogArchiveSlug) {\n path += \"&blog_archive_slug=\".concat(appProps.entityBlogArchiveSlug);\n }\n if (appProps.entityBlogCategorySlug) {\n path += \"&blog_category_slug=\".concat(appProps.entityBlogCategorySlug);\n }\n window.location.href = path;\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"language-switcher\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"language-switcher-select\",\n style: {\n position: 'relative'\n }\n }, currentLanguage.icon && /*#__PURE__*/React.createElement(\"div\", {\n className: \"current-lang pointer\",\n onClick: function onClick() {\n return setOpenLocales(function (prevState) {\n return !prevState;\n });\n }\n }, currentLanguage && /*#__PURE__*/React.createElement(\"img\", {\n src: currentLanguage.icon,\n style: {\n 'maxHeight': 30\n }\n })), openLocales && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"open-locales-box-overlay\",\n onClick: function onClick() {\n return setOpenLocales(false);\n }\n }), /*#__PURE__*/React.createElement(\"div\", {\n className: \"open-locales-box flex-box flex-column\"\n }, appProps.languages.map(function (l, index) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: index,\n style: _objectSpread(_objectSpread({}, appProps.currentLocale === l.code ? {\n color: appProps.frontendStyles.general.colorScheme\n } : {}), hover === l.code ? {\n color: appProps.frontendStyles.general.colorScheme\n } : {}),\n className: \"locale-box-item pointer\",\n onMouseEnter: function onMouseEnter() {\n return setHover(l.code);\n },\n onMouseLeave: function onMouseLeave() {\n return setHover(false);\n },\n onClick: function onClick() {\n return changeLocale(l.code);\n }\n }, l.presentation);\n }))))));\n}","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nimport React, { useState, useRef } from 'react';\nimport { HeaderNavigationStyles } from './HeaderNavigationStyles';\nexport default function SimpleMenu(_ref) {\n var appProps = _ref.appProps,\n navigation = _ref.navigation,\n currentPath = _ref.currentPath,\n frontendStyles = _ref.frontendStyles,\n currentHeaderHeight = _ref.currentHeaderHeight,\n item = _ref.item,\n itemTranslation = _ref.itemTranslation,\n link = _ref.link,\n navWithLink = _ref.navWithLink,\n navNoLink = _ref.navNoLink,\n navigationItemHrefClass = _ref.navigationItemHrefClass,\n prefixLink = _ref.prefixLink,\n setMainNavHover = _ref.setMainNavHover,\n setHeaderRerenderer = _ref.setHeaderRerenderer;\n var _useState = useState([]),\n _useState2 = _slicedToArray(_useState, 2),\n navigationState = _useState2[0],\n setNavigationState = _useState2[1];\n var _useState3 = useState({}),\n _useState4 = _slicedToArray(_useState3, 2),\n showMenuItem = _useState4[0],\n setShowMenuItem = _useState4[1];\n var _useState5 = useState({}),\n _useState6 = _slicedToArray(_useState5, 2),\n showSubmenuItem = _useState6[0],\n setShowSubmenuItem = _useState6[1];\n var _useState7 = useState(null),\n _useState8 = _slicedToArray(_useState7, 2),\n subNavItemHover = _useState8[0],\n setSubNavItemHover = _useState8[1];\n var navRef = useRef(null);\n function menuItemOpener(openerProps) {\n setMainNavHover(openerProps.id);\n setSubNavItemHover(openerProps.id);\n navRef.current = openerProps;\n if (navigationState.length === 0) {\n setNavigationState(function (prevState) {\n return [].concat(_toConsumableArray(prevState), [openerProps]);\n });\n } else {\n if (navigationState.find(function (navItem) {\n return navItem.id === navRef.current.id || navItem.childrenIds.find(function (c) {\n return c === navRef.current.id;\n });\n })) {\n setNavigationState(function (prevState) {\n return [].concat(_toConsumableArray(prevState), [openerProps]);\n });\n }\n }\n }\n function menuItemCloser(closerProps) {\n setMainNavHover(null);\n setSubNavItemHover(null);\n if (navigationState.find(function (navItem) {\n return navItem.id === navRef.current.id;\n })) {\n setNavigationState(function (prevState) {\n return prevState.filter(function (item) {\n return item.depth < closerProps.depth;\n });\n });\n }\n }\n function recursivelyRenderChildren(item, navigationClass) {\n var depth = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;\n var itemVisibility = navigationState.find(function (navItem) {\n return navItem.id === item.id || navItem.children && navItem.children.find(function (c) {\n return c.id === item.id;\n });\n });\n var itemTranslation = item.translations.find(function (t) {\n return t.locale === appProps.currentLocale;\n });\n var currentNavigationLink = '/' + appProps.currentLocale + itemTranslation.link;\n return /*#__PURE__*/React.createElement(React.Fragment, null, itemVisibility && /*#__PURE__*/React.createElement(\"div\", {\n className: \"simple-menu \".concat(navigationClass === 'child-submenu' ? '' : navigationClass, \" \"),\n style: _objectSpread(_objectSpread(_objectSpread({\n top: '100%',\n color: currentPath === currentNavigationLink || subNavItemHover === item.id ? frontendStyles.headerNavigation.submenuItemColorHover : frontendStyles.headerNavigation.submenuItemColor,\n backgroundColor: currentPath === currentNavigationLink || subNavItemHover === item.id ? frontendStyles.headerNavigation.submenuItemBackgroundHover : frontendStyles.headerNavigation.submenuItemBackground\n }, navigationClass === 'submenu' ? HeaderNavigationStyles.submenu : {}), itemVisibility ? HeaderNavigationStyles.submenuOpen : {}), navigationClass === 'child-submenu' ? {} : HeaderNavigationStyles.menuWrapper)\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(navigationClass === 'child-submenu' ? 'child-submenu flex-box flex-column' : 'child-submenu-recursive')\n }, item.children.map(function (child, index) {\n var childTranslation = child.translations.find(function (t) {\n return t.locale === appProps.currentLocale;\n });\n var link = prefixLink(child, appProps);\n var currentChildNavigationLink = '/' + appProps.currentLocale + childTranslation.link;\n var linkStyles = {\n width: '100%',\n fontFamily: frontendStyles.h5styles.fontFamily,\n fontSize: frontendStyles.h5styles.fontSize,\n fontWeight: frontendStyles.h5styles.fontWeight,\n letterSpacing: frontendStyles.h5styles.letterSpacing,\n lineHeight: frontendStyles.h5styles.lineHeight,\n textTransform: frontendStyles.h5styles.textTransform,\n padding: 10,\n color: currentPath === currentChildNavigationLink || subNavItemHover === child.id ? frontendStyles.headerNavigation.submenuItemColorHover : frontendStyles.headerNavigation.submenuItemColor,\n backgroundColor: currentPath === currentChildNavigationLink || subNavItemHover === child.id ? frontendStyles.headerNavigation.submenuItemBackgroundHover : frontendStyles.headerNavigation.submenuItemBackground\n };\n var navWithLink = /*#__PURE__*/React.createElement(\"a\", {\n className: navigationItemHrefClass(child),\n style: linkStyles,\n href: link,\n rel: \"nofollow noindex noreferrer\",\n target: child.openNewPage ? '_blank' : '_self',\n dangerouslySetInnerHTML: {\n __html: childTranslation.title\n }\n });\n var navNoLink = /*#__PURE__*/React.createElement(\"div\", {\n className: \"pointer \".concat(navigationItemHrefClass(child)),\n style: linkStyles,\n dangerouslySetInnerHTML: {\n __html: childTranslation.title\n }\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n key: index,\n onMouseEnter: function onMouseEnter() {\n return menuItemOpener({\n id: child.id,\n depth: depth + 1,\n childrenIds: child.children.map(function (i) {\n return i.id;\n })\n });\n },\n onMouseLeave: function onMouseLeave() {\n return menuItemCloser({\n id: child.id,\n depth: depth + 1,\n childrenIds: child.children.map(function (i) {\n return i.id;\n })\n });\n },\n className: \"flex-box content-start\",\n style: _objectSpread(_objectSpread({\n position: 'relative'\n }, navigationClass === 'submenu' ? HeaderNavigationStyles.submenu : {}), itemVisibility ? HeaderNavigationStyles.submenuOpen : {})\n }, !child.requiresLogin ? /*#__PURE__*/React.createElement(React.Fragment, null, \" \", link ? navWithLink : navNoLink, \" \") : /*#__PURE__*/React.createElement(React.Fragment, null, appProps.currentUserEmail && /*#__PURE__*/React.createElement(React.Fragment, null, \" \", link ? navWithLink : navNoLink, \" \")), recursivelyRenderChildren(child, 'child-submenu', depth + 1));\n }))));\n }\n return /*#__PURE__*/React.createElement(React.Fragment, null, item.children.length >= 0 && /*#__PURE__*/React.createElement(React.Fragment, null, !item.requiresLogin ? /*#__PURE__*/React.createElement(\"div\", {\n style: HeaderNavigationStyles.navigationItem,\n className: \"navigation-item flex-box items-center main-level simple-menu-nav\",\n onMouseEnter: function onMouseEnter() {\n return menuItemOpener({\n id: item.id,\n depth: 0,\n childrenIds: item.children.map(function (i) {\n return i.id;\n })\n });\n },\n onMouseLeave: function onMouseLeave() {\n return menuItemCloser({\n id: item.id,\n depth: 0,\n childrenIds: item.children.map(function (i) {\n return i.id;\n })\n });\n }\n }, itemTranslation && /*#__PURE__*/React.createElement(React.Fragment, null, \" \", link ? navWithLink : navNoLink, \" \"), recursivelyRenderChildren(item, 'submenu', 0)) : /*#__PURE__*/React.createElement(React.Fragment, null, appProps.currentUserEmail && /*#__PURE__*/React.createElement(\"div\", {\n style: HeaderNavigationStyles.navigationItem,\n className: \"navigation-item flex-box items-center main-level simple-menu-nav\",\n onMouseEnter: function onMouseEnter() {\n return menuItemOpener({\n id: item.id,\n depth: 0,\n childrenIds: item.children.map(function (i) {\n return i.id;\n })\n });\n },\n onMouseLeave: function onMouseLeave() {\n return menuItemCloser({\n id: item.id,\n depth: 0,\n childrenIds: item.children.map(function (i) {\n return i.id;\n })\n });\n }\n }, itemTranslation && /*#__PURE__*/React.createElement(React.Fragment, null, \" \", link ? navWithLink : navNoLink, \" \"), recursivelyRenderChildren(item, 'submenu', 0)))));\n}","function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nimport React, { useState } from 'react';\nimport TopHeaderNavigation from './navigations/TopHeaderNavigation';\nexport default function MobileTopHeader(_ref) {\n var appProps = _ref.appProps,\n navigation = _ref.navigation,\n navClass = _ref.navClass;\n var _useState = useState(false),\n _useState2 = _slicedToArray(_useState, 2),\n mobMenuButton = _useState2[0],\n setMobMenuButton = _useState2[1];\n var _useState3 = useState(false),\n _useState4 = _slicedToArray(_useState3, 2),\n mobileMenu = _useState4[0],\n setMobileMenu = _useState4[1];\n return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(\"div\", {\n className: \"navigation mobile-nav\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n style: {\n color: appProps.frontendStyles.topHeader.color,\n paddingTop: 10,\n paddingBottom: 10\n },\n className: \"top-nav-button \".concat(mobMenuButton ? 'close_icon' : 'menu_icon'),\n onClick: function onClick() {\n setMobMenuButton(function (prevState) {\n return !prevState;\n });\n setMobileMenu(function (prevState) {\n return !prevState;\n });\n }\n }), mobileMenu && /*#__PURE__*/React.createElement(TopHeaderNavigation, {\n appProps: appProps,\n navigation: navigation,\n navClass: \"mobile animated fadeIn \".concat(navClass)\n })));\n}","import React from 'react';\nimport TopHeaderNavigation from './navigations/TopHeaderNavigation';\nimport LanguageSelector from '../shared/LanguageSelector';\nimport MobileTopHeader from './MobileTopHeader';\nexport default function TopHeader(_ref) {\n var appProps = _ref.appProps;\n var navWrapper = /*#__PURE__*/React.createElement(\"div\", {\n className: \"navigation flex-1\"\n }, /*#__PURE__*/React.createElement(TopHeaderNavigation, {\n appProps: appProps,\n navigation: appProps.navigation.top_header_menu,\n navClass: \"top-header-navigation \".concat(appProps.currentDevice != 'desktop' && 'mobile animated fadeIn')\n }));\n if (appProps.currentDevice != 'desktop') navWrapper = /*#__PURE__*/React.createElement(MobileTopHeader, {\n appProps: appProps,\n navigation: appProps.navigation.top_header_menu\n });\n return /*#__PURE__*/React.createElement(React.Fragment, null, (appProps.languages.length > 1 || appProps.navigation.top_header_menu) && /*#__PURE__*/React.createElement(\"div\", {\n className: \"top_header\",\n style: {\n backgroundColor: appProps.frontendStyles.topHeader.backgroundColor,\n height: appProps.currentDevice != 'desktop' ? '100%' : 40\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"main-container\",\n style: {\n height: '100%'\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"top_header_contents\",\n style: {\n height: '100%'\n }\n }, appProps.navigation.top_header_menu && navWrapper, appProps.languages.length > 1 && /*#__PURE__*/React.createElement(\"div\", {\n className: \"languages_wrapper top-header\"\n }, /*#__PURE__*/React.createElement(LanguageSelector, {\n appProps: appProps\n }))))));\n}","import React from 'react';\nexport default function Breadcrumbs(_ref) {\n var breadcrumbs = _ref.breadcrumbs;\n return /*#__PURE__*/React.createElement(React.Fragment, null, breadcrumbs && breadcrumbs.length > 0 && /*#__PURE__*/React.createElement(\"div\", {\n className: \"breadcrumb-wrapper main-container flex-box\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"breadcrumb-layer flex-box flex-wrap\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"breadcrumb-inner\"\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"breadcrumb flex-box flex-wrap items-center\"\n }, breadcrumbs.map(function (breadcrumb, index) {\n if (breadcrumb) {\n return /*#__PURE__*/React.createElement(\"div\", {\n key: index,\n className: \"breadcrumb-item\"\n }, breadcrumb.href !== null ? /*#__PURE__*/React.createElement(\"a\", {\n rel: \"nofollow noindex noreferrer\",\n href: breadcrumb.href\n }, breadcrumb.title) : /*#__PURE__*/React.createElement(\"span\", null, breadcrumb.title), !breadcrumb.last && /*#__PURE__*/React.createElement(\"i\", {\n className: \"right_icon\"\n }));\n } else {\n return null;\n }\n }))))));\n}","export var VerticalNavigationStyles = {\n navigationItem: {\n position: 'relative'\n },\n submenu: {\n position: 'absolute',\n left: '20%',\n visibility: 'hidden',\n opacity: 0,\n zIndex: 10,\n width: '80%'\n },\n submenuOpen: {\n visibility: 'visible',\n opacity: 1\n },\n childSubmenu: {\n padding: 0\n }\n};","function _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nimport React, { useState, useEffect } from 'react';\nimport { VerticalNavigationStyles } from './VerticalNavigationStyles';\nimport { prefixLink } from '../../../../utils';\nexport default function VerticalNavigation(_ref) {\n var appProps = _ref.appProps,\n navigation = _ref.navigation,\n verticalMenu = _ref.verticalMenu;\n var _useState = useState(0),\n _useState2 = _slicedToArray(_useState, 2),\n headerHeight = _useState2[0],\n setHeaderHeight = _useState2[1];\n var _useState3 = useState(0),\n _useState4 = _slicedToArray(_useState3, 2),\n topHeaderHeight = _useState4[0],\n setTopHeaderHeight = _useState4[1];\n var _useState5 = useState(0),\n _useState6 = _slicedToArray(_useState5, 2),\n currentHeaderHeight = _useState6[0],\n setCurrentHeaderHeight = _useState6[1];\n var _useState7 = useState(null),\n _useState8 = _slicedToArray(_useState7, 2),\n mainNavHover = _useState8[0],\n setMainNavHover = _useState8[1];\n var _useState9 = useState(null),\n _useState10 = _slicedToArray(_useState9, 2),\n headerRerenderer = _useState10[0],\n setHeaderRerenderer = _useState10[1];\n var _useState11 = useState(null),\n _useState12 = _slicedToArray(_useState11, 2),\n showMenuItem = _useState12[0],\n setShowMenuItem = _useState12[1];\n var _useState13 = useState(null),\n _useState14 = _slicedToArray(_useState13, 2),\n subNavItemHover = _useState14[0],\n setSubNavItemHover = _useState14[1];\n var frontendStyles = appProps.frontendStyles;\n var currentPath = window.location.pathname;\n useEffect(function () {\n calculateHeaderHeight();\n }, [headerRerenderer]);\n function calculateHeaderHeight() {\n if (document.getElementsByClassName('header_wrapper')[0] != undefined) {\n setHeaderHeight(document.getElementsByClassName('header_wrapper')[0].offsetHeight);\n }\n if (document.getElementsByClassName('top_header')[0] != undefined) {\n setTopHeaderHeight(document.getElementsByClassName('top_header')[0].offsetHeight);\n }\n if (headerHeight && topHeaderHeight) {\n setCurrentHeaderHeight(headerHeight + topHeaderHeight);\n } else {\n setCurrentHeaderHeight(headerHeight);\n }\n }\n function navigationItemHrefClass(item) {\n return item.children.length > 0 ? 'has_submenu' : '';\n }\n function menuItemCloser() {\n setMainNavHover(null);\n setSubNavItemHover(null);\n setHeaderRerenderer(null);\n }\n function menuItemOpener(id) {\n setMainNavHover(id);\n setShowMenuItem(id);\n setSubNavItemHover(id);\n setHeaderRerenderer(id);\n }\n function recursivelyRenderChildren(item, navigationClass) {\n var itemTranslation = item.translations.find(function (t) {\n return t.locale === appProps.currentLocale;\n });\n var currentNavigationLink = '/' + appProps.currentLocale + itemTranslation.link;\n return /*#__PURE__*/React.createElement(React.Fragment, null, showMenuItem && /*#__PURE__*/React.createElement(\"div\", {\n className: \" \".concat(navigationClass === 'child-submenu' ? '' : navigationClass),\n style: _objectSpread(_objectSpread(_objectSpread({\n top: 0,\n marginLeft: frontendStyles.headerNavigation.padding && parseFloat(frontendStyles.headerNavigation.padding.split(' ')[1]) / 2,\n color: currentPath === currentNavigationLink || subNavItemHover === item.id ? frontendStyles.headerNavigation.submenuItemColorHover : frontendStyles.headerNavigation.submenuItemColor,\n backgroundColor: currentPath === currentNavigationLink || subNavItemHover === item.id ? frontendStyles.headerNavigation.submenuItemBackgroundHover : frontendStyles.headerNavigation.submenuItemBackground\n }, navigationClass === 'vertical-submenu' ? VerticalNavigationStyles.submenu : {}), showMenuItem == item.id ? VerticalNavigationStyles.submenuOpen : {}), navigationClass === 'child-submenu' ? {} : VerticalNavigationStyles.megamenuWrapper)\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"\".concat(navigationClass === 'child-submenu' ? 'child-submenu flex-box flex-wrap' : ''),\n style: {\n backgroundColor: frontendStyles.headerNavigation.submenuBackground,\n width: '100%',\n padding: 20\n }\n }, /*#__PURE__*/React.createElement(\"div\", {\n className: \"flex-box flex-wrap\",\n style: {\n backgroundColor: frontendStyles.headerNavigation.submenuBackground,\n width: '100%'\n }\n }, item.children.map(function (child, index) {\n var childTranslation = child.translations.find(function (t) {\n return t.locale === appProps.currentLocale;\n });\n var link = prefixLink(child, appProps);\n var currentChildNavigationLink = '/' + appProps.currentLocale + childTranslation.link;\n var linkStyles = {\n paddingLeft: 15,\n paddingRight: 15,\n paddingTop: 5,\n paddingBottom: 5,\n fontFamily: frontendStyles.h6styles.fontFamily,\n fontSize: frontendStyles.h6styles.fontSize,\n fontWeight: frontendStyles.h6styles.fontWeight,\n letterSpacing: frontendStyles.h6styles.letterSpacing,\n lineHeight: frontendStyles.h6styles.lineHeight,\n textTransform: frontendStyles.h6styles.textTransform,\n color: currentPath === currentChildNavigationLink || subNavItemHover === child.id ? frontendStyles.headerNavigation.submenuItemColorHover : frontendStyles.headerNavigation.submenuItemColor,\n backgroundColor: currentPath === currentChildNavigationLink || subNavItemHover === child.id ? frontendStyles.headerNavigation.submenuItemBackgroundHover : frontendStyles.headerNavigation.submenuItemBackground\n };\n var navWithLink = /*#__PURE__*/React.createElement(\"a\", {\n className: navigationItemHrefClass(child),\n style: linkStyles,\n onMouseEnter: function onMouseEnter() {\n return setSubNavItemHover(child.id);\n },\n onMouseLeave: function onMouseLeave() {\n return setSubNavItemHover(child.id);\n },\n href: link,\n rel: \"nofollow noindex noreferrer\",\n target: child.openNewPage ? '_blank' : '_self',\n dangerouslySetInnerHTML: {\n __html: childTranslation.title\n }\n });\n var navNoLink = /*#__PURE__*/React.createElement(\"div\", {\n className: \"pointer \".concat(navigationItemHrefClass(child)),\n onMouseEnter: function onMouseEnter() {\n return setSubNavItemHover(child.id);\n },\n onMouseLeave: function onMouseLeave() {\n return setSubNavItemHover(child.id);\n },\n style: linkStyles,\n dangerouslySetInnerHTML: {\n __html: childTranslation.title\n }\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n key: index,\n className: \"flex-box content-start flex-column\",\n style: _objectSpread(_objectSpread({}, {\n width: 'calc(100%/3)'\n }), navigationClass === 'child-submenu' ? {\n width: '100%'\n } : {})\n }, !child.requiresLogin ? /*#__PURE__*/React.createElement(React.Fragment, null, \" \", link ? navWithLink : navNoLink, \" \") : /*#__PURE__*/React.createElement(React.Fragment, null, appProps.currentUserEmail && /*#__PURE__*/React.createElement(React.Fragment, null, \" \", link ? navWithLink : navNoLink, \" \")), child.children.length > 0 ? recursivelyRenderChildren(child, 'child-submenu') : null);\n })))));\n }\n var renderedNavigation = navigation && navigation.items.map(function (item, index) {\n var link = prefixLink(item, appProps);\n if (link !== null) {\n var itemTranslation = item.translations.find(function (t) {\n return t.locale === appProps.currentLocale;\n });\n var currentNavigationLink = '/' + appProps.currentLocale + itemTranslation.link;\n var linkStyles = {\n width: '100%',\n fontFamily: frontendStyles.h5styles.fontFamily,\n fontSize: frontendStyles.h5styles.fontSize,\n fontWeight: frontendStyles.h5styles.fontWeight,\n letterSpacing: frontendStyles.h5styles.letterSpacing,\n lineHeight: frontendStyles.h5styles.lineHeight,\n textTransform: frontendStyles.h5styles.textTransform,\n padding: frontendStyles.headerNavigation.padding,\n color: currentPath === currentNavigationLink || mainNavHover === item.id ? frontendStyles.headerNavigation.colorHover : frontendStyles.headerNavigation.color,\n backgroundColor: currentPath === currentNavigationLink || mainNavHover === item.id ? frontendStyles.headerNavigation.backgroundHover : frontendStyles.headerNavigation.background\n };\n var navWithLink = /*#__PURE__*/React.createElement(\"a\", {\n className: \"flex-box items-center \".concat(navigationItemHrefClass(item), \" \").concat(mainNavHover ? 'active' : '', \" \"),\n style: linkStyles,\n href: link,\n rel: \"nofollow noindex noreferrer\",\n target: item.openNewPage ? '_blank' : '_self',\n dangerouslySetInnerHTML: {\n __html: itemTranslation.title\n }\n });\n var navNoLink = /*#__PURE__*/React.createElement(\"div\", {\n className: \"no-link flex-box items-center pointer \".concat(navigationItemHrefClass(item), \" \"),\n style: linkStyles,\n dangerouslySetInnerHTML: {\n __html: itemTranslation.title\n }\n });\n return /*#__PURE__*/React.createElement(React.Fragment, {\n key: index\n }, /*#__PURE__*/React.createElement(\"div\", {\n style: {\n width: '20%'\n }\n }, item.children.length >= 0 && /*#__PURE__*/React.createElement(React.Fragment, null, !item.requiresLogin ? /*#__PURE__*/React.createElement(\"div\", {\n style: VerticalNavigationStyles.navigationItem,\n className: \"navigation-item flex-box items-center main-level\",\n onMouseEnter: function onMouseEnter() {\n return menuItemOpener(item.id);\n },\n onMouseLeave: function onMouseLeave() {\n return menuItemCloser(item.id);\n }\n }, itemTranslation && /*#__PURE__*/React.createElement(React.Fragment, null, \" \", link ? navWithLink : navNoLink, \" \")) : /*#__PURE__*/React.createElement(React.Fragment, null, appProps.currentUserEmail && /*#__PURE__*/React.createElement(\"div\", {\n style: VerticalNavigationStyles.navigationItem,\n className: \"navigation-item flex-box items-center main-level\",\n onMouseEnter: function onMouseEnter() {\n return menuItemOpener(item.id);\n },\n onMouseLeave: function onMouseLeave() {\n return menuItemCloser(item.id);\n }\n }, itemTranslation && /*#__PURE__*/React.createElement(React.Fragment, null, \" \", link ? navWithLink : navNoLink, \" \"))))), recursivelyRenderChildren(item, 'vertical-submenu'));\n } else {\n return null;\n }\n });\n return /*#__PURE__*/React.createElement(\"div\", {\n className: \"main-container\"\n }, renderedNavigation);\n}"],"sourceRoot":""}