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AAoBqB,OAAAA,CAAAA,QAChB8E,SAAU,EACVC,SAAU/F,kDAAA3D,MAAc,CAF5B0C,SAAAiB,kDAAAgG,IAAA","sources":["webpack://_N_E/./adapters/helpers/Hooks.js","webpack://_N_E/./components/GalleryBlock/GalleryBlock.js","webpack://_N_E/"],"sourcesContent":["import React, { useState, useEffect, useLayoutEffect } from 'react';\n\n// https://github.com/streamich/react-use/blob/master/docs/useIsomorphicLayoutEffect.md\nexport const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\n\nexport function useMatchMedia(mediaQueryString, initialValue = null) {\n const [match, setMatch] = useState(initialValue);\n\n useEffect(\n () => {\n if(!window.matchMedia) {\n return;\n }\n\n function handleMatch(event) {\n setMatch(event.matches);\n }\n\n const matchMedia = window.matchMedia(mediaQueryString);\n\n setMatch(matchMedia.matches);\n matchMedia.addListener(handleMatch);\n\n return () => {\n matchMedia.removeListener(handleMatch);\n };\n },\n [mediaQueryString]\n );\n\n return match;\n}\n\nexport const mediaQueryHOC = (Component) => {\n function MediaQueryHOC(props) {\n const isXSmall = useMatchMedia('(max-width: 375px)');\n const isSmall = useMatchMedia('(max-width: 479px)');\n const isMedium = useMatchMedia('(max-width: 767px)');\n const isLarge = useMatchMedia('(max-width: 991px)');\n const isXLarge = useMatchMedia('(max-width: 1023px)');\n return (\n \n );\n }\n return MediaQueryHOC;\n};\n\nlet listeners = [];\nlet state = { currentProductIndex: 0};\n\n\nconst setState = (newState) => {\n state = { ...state, ...newState };\n listeners.forEach((listener) => {\n listener(state);\n });\n};\n\nexport const updateCurrentProductIndex = () => {\n const newListener = useState()[1];\n useEffect(() => {\n listeners.push(newListener);\n }, []);\n return [state, setState];\n};\n","import React, { useState, useCallback, useRef, Suspense } from 'react';\nimport dynamic from 'next/dynamic';\nimport PropTypes from 'prop-types';\nimport Block from '../../adapters/helpers/Block';\nimport VideoPlayer from '../VideoPlayer/VideoPlayer';\nimport { CSSTransition } from 'react-transition-group';\nimport { GalleryBlockConstants } from '../../adapters/helpers/Constants';\nimport {mediaQueryHOC} from '../../adapters/helpers/Hooks';\nconst Heading = dynamic(() => import('../Heading/Heading'));\nconst Image = dynamic(() => import('../Image/Image'));\nconst Icon = dynamic(() => import('../Icon/Icon'));\nimport Loader from '../../adapters/helpers/Loader';\n\nfunction Gallery(props) {\n const { extraAttributes, isMedium } = props;\n\n return (extraAttributes && extraAttributes.entity && extraAttributes.entity.gallery) ?\n renderGalleryBlock(extraAttributes.entity, isMedium, props) :\n '';\n}\n\nfunction getRoundedWidth(width) {\n let widthValue;\n\n if(width == GalleryBlockConstants.full) {\n widthValue = 100;\n }\n\n else if(width == GalleryBlockConstants.large) {\n widthValue = 58.333333;\n }\n\n else if(width == GalleryBlockConstants.small) {\n widthValue = 41.666666;\n }\n\n return widthValue;\n}\n\nfunction defineGallery(galleryItems, showMoreItems) {\n if (galleryItems && galleryItems.length > 1) {\n return (\n }>\n
\n {\n galleryItems.slice(1).map((product, productIndex) => (\n
\n {product.fields.mainAsset.fields.contentType === GalleryBlockConstants.cloudinaryImage ? (\n }>\n \n \n ) : (\n \n )}\n
\n ))\n }\n
\n
\n )\n }\n\n else {\n return;\n }\n}\n\nfunction renderGalleryBlock(entity, isMobile, props) {\n const galleryBlock = new Block(props);\n\n let [showMoreItems, setShowMoreItems] = useState(false);\n const collapsibleRef = useRef(null);\n const [collapsibleHeight, setCollapsibleHeight] = useState(0);\n\n const customClassNames = galleryBlock.getFieldValue(GalleryBlockConstants.classNames);\n const className = 'gallery ' + (customClassNames ? customClassNames : '');\n const titleValue = galleryBlock.getFieldValue(GalleryBlockConstants.title);\n const isWhiteText = className.includes(GalleryBlockConstants.whiteText);\n\n const anchorId = galleryBlock.getFieldValue(GalleryBlockConstants.anchorId);\n const seeMoreButtonLabel = galleryBlock.getFieldValue(GalleryBlockConstants.seeMoreButtonLabel)\n const seeLessButtonLabel = galleryBlock.getFieldValue(GalleryBlockConstants.seeLessButtonLabel)\n const [buttonLabel, setButtonLabel] = useState(seeMoreButtonLabel);\n\n let galleryItemsJson = [];\n if (entity.gallery) {\n galleryItemsJson = entity.gallery;\n }\n\n let galleryItems = defineGallery(galleryItemsJson, showMoreItems);\n let mainGalleryItem = null;\n if (galleryItemsJson && galleryItemsJson.length > 0) {\n mainGalleryItem = galleryItemsJson[0].fields.mainAsset;\n \n if (isMobile && galleryItemsJson[0].fields.mobileAsset) {\n mainGalleryItem = galleryItemsJson[0].fields.mobileAsset;\n }\n }\n\n const _handleClickShowItems = useCallback(() => {\n setShowMoreItems(!showMoreItems);\n if (showMoreItems == false) {\n setButtonLabel(seeLessButtonLabel);\n } else {\n setButtonLabel(seeMoreButtonLabel);\n }\n }, [showMoreItems]);\n\n const _calculateHeight = useCallback(\n () => {\n if (collapsibleRef.current) {\n setCollapsibleHeight(collapsibleRef.current.scrollHeight);\n }\n },\n [],\n );\n\n return (\n
\n\n {mainGalleryItem.fields.contentType === 'cloudinaryImage' ? (\n }>\n \n
\n {titleValue}\n
\n\n {/* See more button */}\n \n \n
\n ) : (\n
\n {titleValue}\n \n
\n )\n }\n }>\n \n
\n
\n
\n {galleryItems}\n
\n
\n
\n
\n
\n
\n )\n}\n\nexport default mediaQueryHOC(Gallery);\n// This export is for unit testing (do not remove) :\nexport const GalleryBlockTest = Gallery;\n\nGallery.propTypes = {\n document: PropTypes.object,\n isMedium: PropTypes.bool\n};","\"use strict\";\n(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[6496],{\n\n/***/ 71357:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"LI\": function() { return /* binding */ useIsomorphicLayoutEffect; },\n/* harmony export */ \"Ui\": function() { return /* binding */ mediaQueryHOC; },\n/* harmony export */ \"ag\": function() { return /* binding */ useMatchMedia; },\n/* harmony export */ \"y3\": function() { return /* binding */ updateCurrentProductIndex; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(47941);\n/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(82526);\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57327);\n/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(38880);\n/* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54747);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49337);\n/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_object_define_properties_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33321);\n/* harmony import */ var core_js_modules_es_object_define_properties_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_properties_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(69070);\n/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_7__);\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_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(930);\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_defineProperty_js__WEBPACK_IMPORTED_MODULE_8___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_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(89554);\n/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(41539);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(67294);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(85893);\n\n\n\n\n\n\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_8___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\n\n // https://github.com/streamich/react-use/blob/master/docs/useIsomorphicLayoutEffect.md\n\n\nvar useIsomorphicLayoutEffect = true ? react__WEBPACK_IMPORTED_MODULE_11__.useLayoutEffect : 0;\nfunction useMatchMedia(mediaQueryString) {\n var initialValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_11__.useState)(initialValue),\n match = _useState[0],\n setMatch = _useState[1];\n\n (0,react__WEBPACK_IMPORTED_MODULE_11__.useEffect)(function () {\n if (!window.matchMedia) {\n return;\n }\n\n function handleMatch(event) {\n setMatch(event.matches);\n }\n\n var matchMedia = window.matchMedia(mediaQueryString);\n setMatch(matchMedia.matches);\n matchMedia.addListener(handleMatch);\n return function () {\n matchMedia.removeListener(handleMatch);\n };\n }, [mediaQueryString]);\n return match;\n}\nvar mediaQueryHOC = function mediaQueryHOC(Component) {\n function MediaQueryHOC(props) {\n var isXSmall = useMatchMedia('(max-width: 375px)');\n var isSmall = useMatchMedia('(max-width: 479px)');\n var isMedium = useMatchMedia('(max-width: 767px)');\n var isLarge = useMatchMedia('(max-width: 991px)');\n var isXLarge = useMatchMedia('(max-width: 1023px)');\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__.jsx)(Component, _objectSpread({\n isXSmall: isXSmall,\n isSmall: isSmall,\n isMedium: isMedium,\n isLarge: isLarge,\n isXLarge: isXLarge\n }, props));\n }\n\n return MediaQueryHOC;\n};\nvar listeners = [];\nvar state = {\n currentProductIndex: 0\n};\n\nvar setState = function setState(newState) {\n state = _objectSpread(_objectSpread({}, state), newState);\n listeners.forEach(function (listener) {\n listener(state);\n });\n};\n\nvar updateCurrentProductIndex = function updateCurrentProductIndex() {\n var newListener = (0,react__WEBPACK_IMPORTED_MODULE_11__.useState)()[1];\n (0,react__WEBPACK_IMPORTED_MODULE_11__.useEffect)(function () {\n listeners.push(newListener);\n }, []);\n return [state, setState];\n};\n\n/***/ }),\n\n/***/ 6496:\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 */ \"GalleryBlockTest\": function() { return /* binding */ GalleryBlockTest; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(41539);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88674);\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(37268);\n/* harmony import */ var core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_small_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21249);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(47042);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(26699);\n/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32023);\n/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(67294);\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(5152);\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(45697);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _adapters_helpers_Block__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(40483);\n/* harmony import */ var _VideoPlayer_VideoPlayer__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(65509);\n/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(68665);\n/* harmony import */ var _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24036);\n/* harmony import */ var _adapters_helpers_Hooks__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(71357);\n/* harmony import */ var _adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(47322);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(85893);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar Heading = next_dynamic__WEBPACK_IMPORTED_MODULE_8___default()(function () {\n return __webpack_require__.e(/* import() */ 2116).then(__webpack_require__.bind(__webpack_require__, 92116));\n}, {\n loadableGenerated: {\n webpack: function webpack() {\n return [/*require.resolve*/(92116)];\n }\n }\n});\nvar Image = next_dynamic__WEBPACK_IMPORTED_MODULE_8___default()(function () {\n return __webpack_require__.e(/* import() */ 8084).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_8___default()(function () {\n return __webpack_require__.e(/* import() */ 713).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\nfunction Gallery(props) {\n var extraAttributes = props.extraAttributes,\n isMedium = props.isMedium;\n return extraAttributes && extraAttributes.entity && extraAttributes.entity.gallery ? renderGalleryBlock(extraAttributes.entity, isMedium, props) : '';\n}\n\nfunction getRoundedWidth(width) {\n var widthValue;\n\n if (width == _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.full */ .yU.full) {\n widthValue = 100;\n } else if (width == _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.large */ .yU.large) {\n widthValue = 58.333333;\n } else if (width == _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.small */ .yU.small) {\n widthValue = 41.666666;\n }\n\n return widthValue;\n}\n\nfunction defineGallery(galleryItems, showMoreItems) {\n if (galleryItems && galleryItems.length > 1) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(react__WEBPACK_IMPORTED_MODULE_7__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {}),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"div\", {\n className: 'ob-gallery__masonry ' + (showMoreItems ? '' : 'gallery-hidden'),\n children: galleryItems.slice(1).map(function (product, productIndex) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"div\", {\n className: 'grid-item',\n style: {\n width: getRoundedWidth(product.fields.width) + '%'\n },\n children: product.fields.mainAsset.fields.contentType === _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.cloudinaryImage */ .yU.cloudinaryImage ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(react__WEBPACK_IMPORTED_MODULE_7__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {}),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(Image, {\n noLazyLoad: true,\n image: product.fields.mainAsset,\n ariaHidden: !showMoreItems\n })\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_VideoPlayer_VideoPlayer__WEBPACK_IMPORTED_MODULE_11__/* [\"default\"] */ .Z, {\n video: product.fields.mainAsset.fields\n })\n }, 'product-' + productIndex);\n })\n })\n });\n } else {\n return;\n }\n}\n\nfunction renderGalleryBlock(entity, isMobile, props) {\n var galleryBlock = new _adapters_helpers_Block__WEBPACK_IMPORTED_MODULE_10__/* [\"default\"] */ .Z(props);\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(false),\n showMoreItems = _useState[0],\n setShowMoreItems = _useState[1];\n\n var collapsibleRef = (0,react__WEBPACK_IMPORTED_MODULE_7__.useRef)(null);\n\n var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(0),\n collapsibleHeight = _useState2[0],\n setCollapsibleHeight = _useState2[1];\n\n var customClassNames = galleryBlock.getFieldValue(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.classNames */ .yU.classNames);\n var className = 'gallery ' + (customClassNames ? customClassNames : '');\n var titleValue = galleryBlock.getFieldValue(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.title */ .yU.title);\n var isWhiteText = className.includes(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.whiteText */ .yU.whiteText);\n var anchorId = galleryBlock.getFieldValue(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.anchorId */ .yU.anchorId);\n var seeMoreButtonLabel = galleryBlock.getFieldValue(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.seeMoreButtonLabel */ .yU.seeMoreButtonLabel);\n var seeLessButtonLabel = galleryBlock.getFieldValue(_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.seeLessButtonLabel */ .yU.seeLessButtonLabel);\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_7__.useState)(seeMoreButtonLabel),\n buttonLabel = _useState3[0],\n setButtonLabel = _useState3[1];\n\n var galleryItemsJson = [];\n\n if (entity.gallery) {\n galleryItemsJson = entity.gallery;\n }\n\n var galleryItems = defineGallery(galleryItemsJson, showMoreItems);\n var mainGalleryItem = null;\n\n if (galleryItemsJson && galleryItemsJson.length > 0) {\n mainGalleryItem = galleryItemsJson[0].fields.mainAsset;\n\n if (isMobile && galleryItemsJson[0].fields.mobileAsset) {\n mainGalleryItem = galleryItemsJson[0].fields.mobileAsset;\n }\n }\n\n var _handleClickShowItems = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function () {\n setShowMoreItems(!showMoreItems);\n\n if (showMoreItems == false) {\n setButtonLabel(seeLessButtonLabel);\n } else {\n setButtonLabel(seeMoreButtonLabel);\n }\n }, [showMoreItems]);\n\n var _calculateHeight = (0,react__WEBPACK_IMPORTED_MODULE_7__.useCallback)(function () {\n if (collapsibleRef.current) {\n setCollapsibleHeight(collapsibleRef.current.scrollHeight);\n }\n }, []);\n\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(\"div\", {\n className: \"ob-gallery \".concat(className),\n id: anchorId,\n children: [mainGalleryItem.fields.contentType === 'cloudinaryImage' ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(react__WEBPACK_IMPORTED_MODULE_7__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {}),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(Image, {\n image: mainGalleryItem,\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"div\", {\n className: \"ob-gallery__wrapper\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(Heading, {\n whiteText: isWhiteText,\n tag: \"h2\",\n children: titleValue\n })\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(\"button\", {\n onClick: _handleClickShowItems,\n className: \"ob-link ob-gallery__button primaryGrey see-more-button event_button_click\",\n \"aria-expanded\": showMoreItems,\n \"data-action-detail\": buttonLabel,\n children: [showMoreItems ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(Icon, {\n name: _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.minus6 */ .yU.minus6,\n roundedIcon: _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.blue */ .yU.blue,\n viewBox: 6\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(Icon, {\n name: _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.plus */ .yU.plus,\n roundedIcon: _adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__/* .GalleryBlockConstants.blue */ .yU.blue,\n viewBox: 10\n }), buttonLabel]\n })]\n })\n }) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsxs)(\"div\", {\n className: 'ob-gallery__wrapper--video',\n children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(Heading, {\n whiteText: isWhiteText,\n tag: \"h2\",\n children: titleValue\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_VideoPlayer_VideoPlayer__WEBPACK_IMPORTED_MODULE_11__/* [\"default\"] */ .Z, {\n video: mainGalleryItem.fields\n })]\n }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(react__WEBPACK_IMPORTED_MODULE_7__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_14__[\"default\"], {}),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(react_transition_group__WEBPACK_IMPORTED_MODULE_16__/* [\"default\"] */ .Z, {\n \"in\": showMoreItems,\n timeout: 800,\n onEntering: _calculateHeight,\n onExit: _calculateHeight,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"div\", {\n className: \"ob-gallery__container\",\n \"aria-hidden\": !showMoreItems,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"div\", {\n className: \"ob-gallery__container-collapsible-wrapper\",\n style: {\n height: collapsibleHeight\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__.jsx)(\"div\", {\n ref: collapsibleRef,\n className: \"ob-gallery__container-collapsible\",\n children: galleryItems\n })\n })\n })\n })\n })]\n });\n}\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ((0,_adapters_helpers_Hooks__WEBPACK_IMPORTED_MODULE_13__/* .mediaQueryHOC */ .Ui)(Gallery)); // This export is for unit testing (do not remove) :\n\nvar GalleryBlockTest = Gallery;\nGallery.propTypes = {\n document: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().object),\n isMedium: (prop_types__WEBPACK_IMPORTED_MODULE_9___default().bool)\n};\n\n/***/ })\n\n}]);"],"names":["self","push","__unused_webpack_module","__webpack_exports__","__webpack_require__","d","useIsomorphicLayoutEffect","mediaQueryHOC","useMatchMedia","updateCurrentProductIndex","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__","_home_runner_work_mw_mt_oralb_com_cs_cz_mw_mt_oralb_com_cs_cz_node_modules_next_dist_compiled_babel_runtime_helpers_defineProperty_js__WEBPACK_IMPORTED_MODULE_8___default","n","react__WEBPACK_IMPORTED_MODULE_11__","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_12__","ownKeys","object","enumerableOnly","keys","Object","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","apply","_objectSpread","target","i","arguments","length","source","forEach","key","getOwnPropertyDescriptors","defineProperties","defineProperty","useLayoutEffect","mediaQueryString","initialValue","undefined","_useState","useState","match","setMatch","useEffect","window","matchMedia","matches","addListener","handleMatch","removeListener","event","Component","props","isXSmall","isSmall","isMedium","isLarge","isXLarge","jsx","listeners","state","currentProductIndex","setState","newState","listener","newListener","r","GalleryBlockTest","react__WEBPACK_IMPORTED_MODULE_7__","next_dynamic__WEBPACK_IMPORTED_MODULE_8__","next_dynamic__WEBPACK_IMPORTED_MODULE_8___default","prop_types__WEBPACK_IMPORTED_MODULE_9__","prop_types__WEBPACK_IMPORTED_MODULE_9___default","_adapters_helpers_Block__WEBPACK_IMPORTED_MODULE_10__","_VideoPlayer_VideoPlayer__WEBPACK_IMPORTED_MODULE_11__","react_transition_group__WEBPACK_IMPORTED_MODULE_16__","_adapters_helpers_Constants__WEBPACK_IMPORTED_MODULE_12__","_adapters_helpers_Hooks__WEBPACK_IMPORTED_MODULE_13__","_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_14__","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_15__","Heading","e","then","bind","loadableGenerated","webpack","Image","Icon","Gallery","entity","isMobile","galleryItems","galleryBlock","showMoreItems","setShowMoreItems","collapsibleRef","_useState2","collapsibleHeight","setCollapsibleHeight","className","titleValue","isWhiteText","anchorId","seeMoreButtonLabel","seeLessButtonLabel","_useState3","buttonLabel","setButtonLabel","galleryItemsJson","mainGalleryItem","_handleClickShowItems","_calculateHeight","extraAttributes","gallery","Z","useRef","customClassNames","getFieldValue","yU","classNames","title","includes","whiteText","Suspense","fallback","children","slice","map","product","productIndex","width","widthValue","style","getRoundedWidth","fields","full","large","small","mainAsset","contentType","cloudinaryImage","noLazyLoad","image","ariaHidden","video","mobileAsset","useCallback","current","scrollHeight","jsxs","concat","id","tag","onClick","name","minus6","roundedIcon","blue","viewBox","plus","timeout","onEntering","onExit","height","ref","Ui","propTypes","document","bool"],"sourceRoot":""}