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GAAA/G,gDAAV2F,GAAA,SAAAkE,IAAAH,sBAXJ7D,SAAA8C,OAAA5F,eAAA,CAAA4F,OAAAjF,cAAA,CAAArD,IAAA,CAAAsI,QADH,KAVR,CA6BO,GACU,GAAA3I,gDAAL2F,GAAA,EAAA7G,oCAAA8G,QAAA,EADLC,SAAA,KAAA9C,eAAA,MAAAW,cAAA,CAAArD,IAAA,OA/BhB,IAqCH,KApOwBI,cAAA,EAAA3B,oCAAAgL,SAAA,CAwO7BjO,CAAAA,oBAAA,WAAAgE,sDAAAkK,EAAA,EAAAtJ,gBACO,IAAAzC,mBAAAyC,cAAA","sources":["webpack://_N_E/./adapters/helpers/Scroll.js","webpack://_N_E/./components/MiniNavigation/MiniNavigation.js","webpack://_N_E/"],"sourcesContent":["let smoothScrollId = null;\nlet smoothScrollStartY = 0;\nlet smoothScrollDeltaY = 0;\nlet smoothScrollStartTime = 0;\nlet smoothScrollDuration = 400;\n\nexport function scrollIntoView(element, options = {}) {\n smoothScrollStartY = window.scrollY || window.pageYOffset || 0;\n smoothScrollDeltaY = element.getBoundingClientRect().top;\n\n const headerElement = document.querySelector('.zone-header');\n const productSubNavElement = document.querySelector('.ob-product-sub-nav');\n\n if (headerElement) {\n smoothScrollDeltaY -= headerElement.getBoundingClientRect().bottom;\n\n if (productSubNavElement) {\n smoothScrollDeltaY -= productSubNavElement.getBoundingClientRect().bottom;\n }\n }\n\n if (options.behavior === 'smooth' && typeof requestAnimationFrame !== 'undefined') {\n smoothScrollStartTime = Date.now();\n\n if (smoothScrollId == null) {\n smoothScrollStep();\n }\n } else {\n if (smoothScrollId != null) {\n cancelAnimationFrame(smoothScrollId);\n smoothScrollId = null;\n }\n\n window.scrollTo(window.scrollX, null);\n }\n}\n\nfunction smoothScrollStep() {\n const elapsed = Date.now() - smoothScrollStartTime;\n const t = elapsed / smoothScrollDuration;\n\n if (t < 1) {\n smoothScrollId = requestAnimationFrame(smoothScrollStep);\n window.scrollTo(window.scrollX, easeInOutQuad(t) * smoothScrollDeltaY + smoothScrollStartY);\n }\n else {\n smoothScrollId = null;\n window.scrollTo(window.scrollX, smoothScrollDeltaY + smoothScrollStartY);\n }\n}\n\nfunction easeInOutQuad(t) {\n return (t < 0.5) ? (2 * t * t) : ((4 - 2 * t) * t - 1);\n}\n","import React, { Component, Fragment } from 'react';\nimport dynamic from 'next/dynamic';\nimport PropTypes, {any} from 'prop-types';\nimport SlideToggle from 'react-slide-toggle';\nimport Block from '../../adapters/helpers/Block';\nimport throttle from 'lodash/throttle';\nimport Modal from 'react-modal';\nimport HierarchyUtils from '../../adapters/helpers/HierarchyUtils';\nimport { scrollIntoView } from '../../adapters/helpers/Scroll';\nimport { MiniNavigationConstants } from '../../adapters/helpers/Constants';\nimport { AnalyticsConstants } from '../../adapters/helpers/ConstantsGA';\nimport { mediaQueryHOC } from '../../adapters/helpers/Hooks';\nconst Image = dynamic(() => import('../Image/Image'));\nconst Icon = dynamic(() => import('../Icon/Icon'));\nimport DOMPurify from 'isomorphic-dompurify';\nclass MiniNavigation extends Component {\n\n _desktopBreakpoint = 992;\n constructor(props) {\n super(props);\n this.block = new Block(props);\n\n this.placeholderTitle = this.block.props.document.fields.placeholderTitle;\n this.renderHierarchy = this.renderHierarchy.bind(this);\n\n this.state = {\n isOpened: false,\n isModalOpen: false,\n closeModal: false,\n modelText: '',\n hoverImage: any,\n }\n }\n\n componentDidMount() {\n window.addEventListener(MiniNavigationConstants.resize, this.handleResizeThrottled);\n }\n\n componentWillUnmount() {\n window.removeEventListener(MiniNavigationConstants.resize, this.handleResizeThrottled);\n }\n\n closeModal = () => {\n document.documentElement.style.overflow = 'auto';\n this.setState({ isModalOpen: false });\n };\n\n openModal = (hoverImage, modelText) => {\n if(modelText && modelText!==''){\n this.setState({ isModalOpen: true, modelText: modelText });\n }\n if(hoverImage){\n this.setState({ isModalOpen: true, hoverImage: hoverImage });\n }\n if (document?.documentElement && hoverImage && modelText) {\n document.documentElement.style.overflow = 'auto';\n }\n };\n\n handleResize() {\n let windowWidth = window.innerWidth;\n\n if (windowWidth >= this._desktopBreakpoint && this.state.isOpened) {\n this.setState({\n isOpened: false,\n });\n }\n }\n\n handleResizeThrottled = throttle(this.handleResize.bind(this), 100);\n\n renderHierarchy(onClickHandler) {\n const hierarchy = this.block.getFieldValue(MiniNavigationConstants.hierarchy);\n const entity = this.props.extraAttributes?.entity;\n let destinations = hierarchy?.fields?.destinations;\n const shownIcon = hierarchy?.fields?.type;\n const isFullBioDescription = hierarchy?.fields?.isFullBioDescription;\n if(!destinations && entity){\n const { relatedLinks } = entity;\n destinations = relatedLinks;\n }\n const { isXSmall, isSmall } = this.props;\n const isMobile = isXSmall || isSmall;\n const customModalStyles = {\n overlay: {\n backgroundColor: 'transparent',\n zIndex: 200\n },\n content: {\n border: 'none',\n top: '50%',\n left: '50%',\n right: 'auto',\n bottom: 'auto',\n fontSize: '1.4rem',\n lineHeight: '2.1rem',\n marginRight: '-50%',\n transform: 'translate(-50%, -50%)',\n maxWidth: isMobile ? '90%' : '70%',\n maxHeight: isMobile ? '85%' : '80%',\n backgroundColor: 'white'\n }\n };\n\n return (\n \n {destinations &&\n \n }\n \n )\n }\n onClickHandlerBtnIcon(event,currentTarget) {\n event.preventDefault();\n if (currentTarget) {\n const currentURL = currentTarget?.fields?.url;\n const type = currentTarget?.fields?.type;\n if(currentURL !== '_blank' && type!=='external') {\n const element = document.querySelector(currentURL);\n scrollIntoView(element, { behavior: MiniNavigationConstants.smooth });\n } else if(type === 'external') { \n window.open(currentURL);\n }\n }\n }\n\n onClickHandler(event) {\n event.preventDefault();\n const currentTarget = event.currentTarget;\n if (currentTarget) {\n const anchorId = currentTarget.getAttribute(MiniNavigationConstants.href);\n if(currentTarget.getAttribute(MiniNavigationConstants.target) !== '_blank') {\n const element = document.querySelector(anchorId);\n scrollIntoView(element, { behavior: MiniNavigationConstants.smooth });\n } else if(currentTarget.getAttribute(MiniNavigationConstants.target) === '_blank') { \n const target = currentTarget.getAttribute(MiniNavigationConstants.target);\n window.open(anchorId, target);\n }\n }\n }\n\n render() {\n const hierarchy = this.block.getFieldValue(MiniNavigationConstants.hierarchy);\n let isEmpty = !hierarchy?.fields?.destinations && !this.props.extraAttributes?.entity?.relatedLinks ? 'empty' : '';\n const iscollapsibleElement = this.props?.document?.fields?.collapsibleElement;\n const className = this.block.getFieldValue(MiniNavigationConstants.classNames);\n const greyBackground = this.block.getFieldValue(MiniNavigationConstants.backgroundGrey) ? 'grey-background' : '';\n\n return (\n
\n {(this.props.isLarge && isEmpty !== 'empty' && !iscollapsibleElement) ? (\n {\n this.setState({ isOpened: true })\n }}\n onCollapsing={() => {\n this.setState({ isOpened: false })\n }}>\n {({ onToggle, setCollapsibleElement }) => (\n \n \n\n
\n {this.renderHierarchy(this.onClickHandler.bind(this))}\n
\n
\n )}\n \n ) : (\n \n {this.renderHierarchy(this.onClickHandler.bind(this))}\n \n )}\n
\n )\n }\n}\n\nexport default mediaQueryHOC(MiniNavigation);\n// This export is for unit testing (do not remove) :\nexport const MiniNavigationTest = MiniNavigation;\n\nMiniNavigation.propTypes = {\n extraAttributes: PropTypes.object,\n entity: PropTypes.object,\n isLarge: PropTypes.bool,\n isXSmall: PropTypes.bool,\n isSmall: PropTypes.bool,\n document: PropTypes.object,\n};\n","\"use strict\";\n(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[6832],{\n\n/***/ 55891:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"z\": function() { return /* binding */ scrollIntoView; }\n/* harmony export */ });\nvar smoothScrollId = null;\nvar smoothScrollStartY = 0;\nvar smoothScrollDeltaY = 0;\nvar smoothScrollStartTime = 0;\nvar smoothScrollDuration = 400;\nfunction scrollIntoView(element) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n smoothScrollStartY = window.scrollY || window.pageYOffset || 0;\n smoothScrollDeltaY = element.getBoundingClientRect().top;\n var headerElement = document.querySelector('.zone-header');\n var productSubNavElement = document.querySelector('.ob-product-sub-nav');\n\n if (headerElement) {\n smoothScrollDeltaY -= headerElement.getBoundingClientRect().bottom;\n\n if (productSubNavElement) {\n smoothScrollDeltaY -= productSubNavElement.getBoundingClientRect().bottom;\n }\n }\n\n if (options.behavior === 'smooth' && typeof requestAnimationFrame !== 'undefined') {\n smoothScrollStartTime = Date.now();\n\n if (smoothScrollId == null) {\n smoothScrollStep();\n }\n } else {\n if (smoothScrollId != null) {\n cancelAnimationFrame(smoothScrollId);\n smoothScrollId = null;\n }\n\n window.scrollTo(window.scrollX, null);\n }\n}\n\nfunction smoothScrollStep() {\n var elapsed = Date.now() - smoothScrollStartTime;\n var t = elapsed / smoothScrollDuration;\n\n if (t < 1) {\n smoothScrollId = requestAnimationFrame(smoothScrollStep);\n window.scrollTo(window.scrollX, easeInOutQuad(t) * smoothScrollDeltaY + smoothScrollStartY);\n } else {\n smoothScrollId = null;\n window.scrollTo(window.scrollX, smoothScrollDeltaY + smoothScrollStartY);\n }\n}\n\nfunction easeInOutQuad(t) {\n return t < 0.5 ? 2 * t * t : (4 - 2 * t) * t - 1;\n}\n\n/***/ }),\n\n/***/ 16832:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"MiniNavigationTest\": function() { return /* binding */ MiniNavigationTest; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12419);\n/* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33227);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88361);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(92191);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(85971);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52715);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(91193);\n/* harmony import */ var _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41539);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(88674);\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(24812);\n/* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(21249);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(92222);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(67294);\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(5152);\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(45697);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var react_slide_toggle__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(5021);\n/* harmony import */ var react_slide_toggle__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(react_slide_toggle__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var _adapters_helpers_Block__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(40483);\n/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(23493);\n/* harmony import */ var lodash_throttle__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(lodash_throttle__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var react_modal__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(83253);\n/* harmony import */ var react_modal__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(react_modal__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var _adapters_helpers_HierarchyUtils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(51926);\n/* harmony import */ var _adapters_helpers_Scroll__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(55891);\n/* harmony import */ var _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(24036);\n/* harmony import */ var _adapters_helpers_ConstantsGA__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(75176);\n/* harmony import */ var _adapters_helpers_Hooks__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(71357);\n/* harmony import */ var isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(29238);\n/* harmony import */ var isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(85893);\n\n\n\n\n\n\n\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6___default()(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6___default()(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5___default()(this, result); }; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Image = next_dynamic__WEBPACK_IMPORTED_MODULE_13___default()(function () {\n return Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 48084));\n}, {\n loadableGenerated: {\n webpack: function webpack() {\n return [/*require.resolve*/(48084)];\n }\n }\n});\nvar Icon = next_dynamic__WEBPACK_IMPORTED_MODULE_13___default()(function () {\n return Promise.resolve(/* import() */).then(__webpack_require__.bind(__webpack_require__, 80713));\n}, {\n loadableGenerated: {\n webpack: function webpack() {\n return [/*require.resolve*/(80713)];\n }\n }\n});\n\n\n\n\nvar MiniNavigation = /*#__PURE__*/function (_Component) {\n _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_4___default()(MiniNavigation, _Component);\n\n var _super = _createSuper(MiniNavigation);\n\n function MiniNavigation(props) {\n var _this;\n\n _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1___default()(this, MiniNavigation);\n\n _this = _super.call(this, props);\n _this._desktopBreakpoint = 992;\n\n _this.closeModal = function () {\n document.documentElement.style.overflow = 'auto';\n\n _this.setState({\n isModalOpen: false\n });\n };\n\n _this.openModal = function (hoverImage, modelText) {\n var _document;\n\n if (modelText && modelText !== '') {\n _this.setState({\n isModalOpen: true,\n modelText: modelText\n });\n }\n\n if (hoverImage) {\n _this.setState({\n isModalOpen: true,\n hoverImage: hoverImage\n });\n }\n\n if (((_document = document) == null ? void 0 : _document.documentElement) && hoverImage && modelText) {\n document.documentElement.style.overflow = 'auto';\n }\n };\n\n _this.handleResizeThrottled = lodash_throttle__WEBPACK_IMPORTED_MODULE_17___default()(_this.handleResize.bind(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3___default()(_this)), 100);\n _this.block = new _adapters_helpers_Block__WEBPACK_IMPORTED_MODULE_16__/* [\"default\"] */ .Z(props);\n _this.placeholderTitle = _this.block.props.document.fields.placeholderTitle;\n _this.renderHierarchy = _this.renderHierarchy.bind(_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3___default()(_this));\n _this.state = {\n isOpened: false,\n isModalOpen: false,\n closeModal: false,\n modelText: '',\n hoverImage: prop_types__WEBPACK_IMPORTED_MODULE_14__.any\n };\n return _this;\n }\n\n _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_2___default()(MiniNavigation, [{\n key: \"componentDidMount\",\n value: function componentDidMount() {\n window.addEventListener(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.resize */ .rM.resize, this.handleResizeThrottled);\n }\n }, {\n key: \"componentWillUnmount\",\n value: function componentWillUnmount() {\n window.removeEventListener(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.resize */ .rM.resize, this.handleResizeThrottled);\n }\n }, {\n key: \"handleResize\",\n value: function handleResize() {\n var windowWidth = window.innerWidth;\n\n if (windowWidth >= this._desktopBreakpoint && this.state.isOpened) {\n this.setState({\n isOpened: false\n });\n }\n }\n }, {\n key: \"renderHierarchy\",\n value: function renderHierarchy(onClickHandler) {\n var _this$props$extraAttr,\n _hierarchy$fields,\n _hierarchy$fields2,\n _hierarchy$fields3,\n _this2 = this;\n\n var hierarchy = this.block.getFieldValue(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.hierarchy */ .rM.hierarchy);\n var entity = (_this$props$extraAttr = this.props.extraAttributes) == null ? void 0 : _this$props$extraAttr.entity;\n var destinations = hierarchy == null ? void 0 : (_hierarchy$fields = hierarchy.fields) == null ? void 0 : _hierarchy$fields.destinations;\n var shownIcon = hierarchy == null ? void 0 : (_hierarchy$fields2 = hierarchy.fields) == null ? void 0 : _hierarchy$fields2.type;\n var isFullBioDescription = hierarchy == null ? void 0 : (_hierarchy$fields3 = hierarchy.fields) == null ? void 0 : _hierarchy$fields3.isFullBioDescription;\n\n if (!destinations && entity) {\n var relatedLinks = entity.relatedLinks;\n destinations = relatedLinks;\n }\n\n var _this$props = this.props,\n isXSmall = _this$props.isXSmall,\n isSmall = _this$props.isSmall;\n var isMobile = isXSmall || isSmall;\n var customModalStyles = {\n overlay: {\n backgroundColor: 'transparent',\n zIndex: 200\n },\n content: {\n border: 'none',\n top: '50%',\n left: '50%',\n right: 'auto',\n bottom: 'auto',\n fontSize: '1.4rem',\n lineHeight: '2.1rem',\n marginRight: '-50%',\n transform: 'translate(-50%, -50%)',\n maxWidth: isMobile ? '90%' : '70%',\n maxHeight: isMobile ? '85%' : '80%',\n backgroundColor: 'white'\n }\n };\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(react__WEBPACK_IMPORTED_MODULE_12__.Fragment, {\n children: destinations && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"ul\", {\n className: \"ob-mini-nav__list\",\n children: destinations.map(function (destination, index) {\n var _destination$fields3, _destination$fields4, _destination$fields5, _this2$state;\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsxs)(react__WEBPACK_IMPORTED_MODULE_12__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsxs)(\"li\", {\n className: \"ob-mini-nav__list-item\",\n onClick: function onClick() {\n var _destination$fields, _destination$fields2;\n\n return _this2.openModal(destination == null ? void 0 : (_destination$fields = destination.fields) == null ? void 0 : _destination$fields.hoverImage, destination == null ? void 0 : (_destination$fields2 = destination.fields) == null ? void 0 : _destination$fields2.fullBioDescription);\n },\n \"data-index\": index,\n children: [_adapters_helpers_HierarchyUtils__WEBPACK_IMPORTED_MODULE_19__/* [\"default\"].renderDestination */ .Z.renderDestination(destination, null, null, onClickHandler), shownIcon === _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.downArrow */ .rM.downArrow && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"chrevonDown-IconAlign\",\n onClick: function onClick(e) {\n return _this2.onClickHandlerBtnIcon(e, destination);\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(Icon, {\n name: _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.chevronDown */ .rM.chevronDown\n })\n }), isFullBioDescription && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsxs)(\"div\", {\n className: \"bio-card-text full-bio\",\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"p\", {\n children: shownIcon\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"nav-bar\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"chrevonDown-IconAlign\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"arrow-up \"\n })\n })]\n })]\n }, index), (destination == null ? void 0 : (_destination$fields3 = destination.fields) == null ? void 0 : _destination$fields3.fullBioDescription) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsxs)((react_modal__WEBPACK_IMPORTED_MODULE_18___default()), {\n isOpen: _this2.state.isModalOpen,\n onRequestClose: _this2.closeModal,\n style: customModalStyles,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"bio-close-button\",\n onClick: _this2.closeModal,\n children: \"X\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n dangerouslySetInnerHTML: {\n __html: isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_23___default().sanitize(_this2.state.modelText)\n }\n })]\n }), (destination == null ? void 0 : (_destination$fields4 = destination.fields) == null ? void 0 : _destination$fields4.isPopupImageNeed) && (destination == null ? void 0 : (_destination$fields5 = destination.fields) == null ? void 0 : _destination$fields5.fullBioDescription) && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsxs)((react_modal__WEBPACK_IMPORTED_MODULE_18___default()), {\n isOpen: _this2.state.isModalOpen,\n onRequestClose: _this2.closeModal,\n style: customModalStyles,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"bio-close-button\",\n onClick: _this2.closeModal,\n children: \"X\"\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(Image, {\n image: (_this2$state = _this2.state) == null ? void 0 : _this2$state.hoverImage\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n dangerouslySetInnerHTML: {\n __html: isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_23___default().sanitize(_this2.state.modelText)\n }\n })]\n })]\n });\n })\n })\n });\n }\n }, {\n key: \"onClickHandlerBtnIcon\",\n value: function onClickHandlerBtnIcon(event, currentTarget) {\n event.preventDefault();\n\n if (currentTarget) {\n var _currentTarget$fields, _currentTarget$fields2;\n\n var currentURL = currentTarget == null ? void 0 : (_currentTarget$fields = currentTarget.fields) == null ? void 0 : _currentTarget$fields.url;\n var type = currentTarget == null ? void 0 : (_currentTarget$fields2 = currentTarget.fields) == null ? void 0 : _currentTarget$fields2.type;\n\n if (currentURL !== '_blank' && type !== 'external') {\n var element = document.querySelector(currentURL);\n (0,_adapters_helpers_Scroll__WEBPACK_IMPORTED_MODULE_25__/* .scrollIntoView */ .z)(element, {\n behavior: _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.smooth */ .rM.smooth\n });\n } else if (type === 'external') {\n window.open(currentURL);\n }\n }\n }\n }, {\n key: \"onClickHandler\",\n value: function onClickHandler(event) {\n event.preventDefault();\n var currentTarget = event.currentTarget;\n\n if (currentTarget) {\n var anchorId = currentTarget.getAttribute(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.href */ .rM.href);\n\n if (currentTarget.getAttribute(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.target */ .rM.target) !== '_blank') {\n var element = document.querySelector(anchorId);\n (0,_adapters_helpers_Scroll__WEBPACK_IMPORTED_MODULE_25__/* .scrollIntoView */ .z)(element, {\n behavior: _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.smooth */ .rM.smooth\n });\n } else if (currentTarget.getAttribute(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.target */ .rM.target) === '_blank') {\n var target = currentTarget.getAttribute(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.target */ .rM.target);\n window.open(anchorId, target);\n }\n }\n }\n }, {\n key: \"render\",\n value: function render() {\n var _hierarchy$fields4,\n _this$props$extraAttr2,\n _this$props$extraAttr3,\n _this$props2,\n _this$props2$document,\n _this$props2$document2,\n _this3 = this;\n\n var hierarchy = this.block.getFieldValue(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.hierarchy */ .rM.hierarchy);\n var isEmpty = !(hierarchy == null ? void 0 : (_hierarchy$fields4 = hierarchy.fields) == null ? void 0 : _hierarchy$fields4.destinations) && !((_this$props$extraAttr2 = this.props.extraAttributes) == null ? void 0 : (_this$props$extraAttr3 = _this$props$extraAttr2.entity) == null ? void 0 : _this$props$extraAttr3.relatedLinks) ? 'empty' : '';\n var iscollapsibleElement = (_this$props2 = this.props) == null ? void 0 : (_this$props2$document = _this$props2.document) == null ? void 0 : (_this$props2$document2 = _this$props2$document.fields) == null ? void 0 : _this$props2$document2.collapsibleElement;\n var className = this.block.getFieldValue(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.classNames */ .rM.classNames);\n var greyBackground = this.block.getFieldValue(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.backgroundGrey */ .rM.backgroundGrey) ? 'grey-background' : '';\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"ob-mini-nav \".concat(className ? className : '', \" \").concat(greyBackground ? greyBackground : '', \" \").concat(isEmpty),\n children: this.props.isLarge && isEmpty !== 'empty' && !iscollapsibleElement ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)((react_slide_toggle__WEBPACK_IMPORTED_MODULE_15___default()), {\n collapsed: true,\n duration: 500,\n onExpanding: function onExpanding() {\n _this3.setState({\n isOpened: true\n });\n },\n onCollapsing: function onCollapsing() {\n _this3.setState({\n isOpened: false\n });\n },\n children: function children(_ref) {\n var onToggle = _ref.onToggle,\n setCollapsibleElement = _ref.setCollapsibleElement;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsxs)(react__WEBPACK_IMPORTED_MODULE_12__.Fragment, {\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsxs)(\"button\", {\n className: \"ob-mini-nav__title event_menu_click\",\n \"aria-expanded\": _this3.state.isOpened,\n \"data-action-detail\": _adapters_helpers_ConstantsGA__WEBPACK_IMPORTED_MODULE_21__/* .AnalyticsConstants.dropdownMenu */ .k.dropdownMenu,\n onClick: onToggle,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"span\", {\n children: _this3.placeholderTitle\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"span\", {\n className: \"\".concat(_this3.state.isOpened ? 'is-open ' : '', \"ob-mini-nav__icon\"),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(Icon, {\n name: _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__/* .MiniNavigationConstants.chevronDown */ .rM.chevronDown\n })\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n ref: setCollapsibleElement,\n children: _this3.renderHierarchy(_this3.onClickHandler.bind(_this3))\n })]\n });\n }\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(react__WEBPACK_IMPORTED_MODULE_12__.Fragment, {\n children: this.renderHierarchy(this.onClickHandler.bind(this))\n })\n });\n }\n }]);\n\n return MiniNavigation;\n}(react__WEBPACK_IMPORTED_MODULE_12__.Component);\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,_adapters_helpers_Hooks__WEBPACK_IMPORTED_MODULE_22__/* .mediaQueryHOC */ .Ui)(MiniNavigation)); // This export is for unit testing (do not remove) :\n\nvar MiniNavigationTest = MiniNavigation;\n\n/***/ })\n\n}]);"],"names":["self","push","__unused_webpack_module","__webpack_exports__","__webpack_require__","d","scrollIntoView","smoothScrollId","smoothScrollStartY","smoothScrollDeltaY","smoothScrollStartTime","element","options","arguments","length","undefined","window","scrollY","pageYOffset","getBoundingClientRect","top","headerElement","document","querySelector","productSubNavElement","bottom","behavior","requestAnimationFrame","Date","now","smoothScrollStep","t","elapsed","scrollTo","scrollX","easeInOutQuad","cancelAnimationFrame","r","MiniNavigationTest","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1___default","n","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_2__","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_createClass_js__WEBPACK_IMPORTED_MODULE_2___default","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3___default","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_4__","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_inherits_js__WEBPACK_IMPORTED_MODULE_4___default","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5__","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_possibleConstructorReturn_js__WEBPACK_IMPORTED_MODULE_5___default","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6___default","react__WEBPACK_IMPORTED_MODULE_12__","next_dynamic__WEBPACK_IMPORTED_MODULE_13__","next_dynamic__WEBPACK_IMPORTED_MODULE_13___default","prop_types__WEBPACK_IMPORTED_MODULE_14__","react_slide_toggle__WEBPACK_IMPORTED_MODULE_15__","react_slide_toggle__WEBPACK_IMPORTED_MODULE_15___default","_adapters_helpers_Block__WEBPACK_IMPORTED_MODULE_16__","lodash_throttle__WEBPACK_IMPORTED_MODULE_17__","lodash_throttle__WEBPACK_IMPORTED_MODULE_17___default","react_modal__WEBPACK_IMPORTED_MODULE_18__","react_modal__WEBPACK_IMPORTED_MODULE_18___default","_adapters_helpers_HierarchyUtils__WEBPACK_IMPORTED_MODULE_19__","_adapters_helpers_Scroll__WEBPACK_IMPORTED_MODULE_25__","_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_20__","_adapters_helpers_ConstantsGA__WEBPACK_IMPORTED_MODULE_21__","_adapters_helpers_Hooks__WEBPACK_IMPORTED_MODULE_22__","isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_23__","isomorphic_dompurify__WEBPACK_IMPORTED_MODULE_23___default","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__","Image","Promise","resolve","then","bind","loadableGenerated","webpack","Icon","MiniNavigation","_Component","hasNativeReflectConstruct","_super","_isNativeReflectConstruct","Reflect","construct","sham","Proxy","Boolean","prototype","valueOf","call","e","result","Super","NewTarget","constructor","apply","props","_this","_desktopBreakpoint","closeModal","documentElement","style","overflow","setState","isModalOpen","openModal","hoverImage","modelText","_document","handleResizeThrottled","handleResize","block","Z","placeholderTitle","fields","renderHierarchy","state","isOpened","any","key","value","addEventListener","rM","resize","removeEventListener","innerWidth","onClickHandler","_this$props$extraAttr","_hierarchy$fields","_hierarchy$fields2","_hierarchy$fields3","_this2","hierarchy","getFieldValue","entity","extraAttributes","destinations","shownIcon","type","isFullBioDescription","relatedLinks","_this$props","isXSmall","isSmall","isMobile","customModalStyles","overlay","backgroundColor","zIndex","content","border","left","right","fontSize","lineHeight","marginRight","transform","maxWidth","maxHeight","jsx","Fragment","children","className","map","destination","index","_destination$fields3","_destination$fields4","_destination$fields5","_this2$state","jsxs","onClick","_destination$fields","_destination$fields2","fullBioDescription","renderDestination","downArrow","onClickHandlerBtnIcon","name","chevronDown","isOpen","onRequestClose","dangerouslySetInnerHTML","__html","sanitize","isPopupImageNeed","image","event","currentTarget","preventDefault","_currentTarget$fields","_currentTarget$fields2","currentURL","url","z","smooth","open","anchorId","getAttribute","href","target","_hierarchy$fields4","_this$props$extraAttr2","_this$props$extraAttr3","_this$props2","_this$props2$document","_this$props2$document2","_this3","isEmpty","iscollapsibleElement","collapsibleElement","classNames","greyBackground","backgroundGrey","concat","isLarge","collapsed","duration","onExpanding","onCollapsing","_ref","onToggle","setCollapsibleElement","k","dropdownMenu","ref","Component","Ui"],"sourceRoot":""}