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A,EAAA1H,oCAAC8H,QAAA,EAArBC,SACA,GAAArH,gDAAAgH,GAAA,EAACjH,uDAAD,YAAAgE,SAAA,GAAA/D,gDAAAgH,GAAA,EAAA/F,cAAA,CACIY,UAASA,UACToG,QAAQ9E,WACR+E,OAAA7F,aACA8F,YAAaxG,oBAJjByG,YAAAxG,mBADA,EAxBR,OAHR,EAuCH,EAED,CAA2CzC,4BAC7BkJ,YAAA,EADd3G,SAAA","sources":["webpack://_N_E/./node_modules/classnames/index.js","webpack://_N_E/./node_modules/core-js/internals/is-integer.js","webpack://_N_E/./node_modules/core-js/internals/this-number-value.js","webpack://_N_E/./node_modules/core-js/modules/es.number.is-integer.js","webpack://_N_E/./node_modules/core-js/modules/es.number.to-fixed.js","webpack://_N_E/./adapters/helpers/functions.js","webpack://_N_E/./components/ProductsOverview/desktop/CollapsibleProductsOverview.js","webpack://_N_E/"],"sourcesContent":["/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","var isObject = require('../internals/is-object');\n\nvar floor = Math.floor;\n\n// `Number.isInteger` method implementation\n// https://tc39.github.io/ecma262/#sec-number.isinteger\nmodule.exports = function isInteger(it) {\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n","var classof = require('../internals/classof-raw');\n\n// `thisNumberValue` abstract operation\n// https://tc39.github.io/ecma262/#sec-thisnumbervalue\nmodule.exports = function (value) {\n if (typeof value != 'number' && classof(value) != 'Number') {\n throw TypeError('Incorrect invocation');\n }\n return +value;\n};\n","var $ = require('../internals/export');\nvar isInteger = require('../internals/is-integer');\n\n// `Number.isInteger` method\n// https://tc39.github.io/ecma262/#sec-number.isinteger\n$({ target: 'Number', stat: true }, {\n isInteger: isInteger\n});\n","'use strict';\nvar $ = require('../internals/export');\nvar toInteger = require('../internals/to-integer');\nvar thisNumberValue = require('../internals/this-number-value');\nvar repeat = require('../internals/string-repeat');\nvar fails = require('../internals/fails');\n\nvar nativeToFixed = 1.0.toFixed;\nvar floor = Math.floor;\n\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\nvar FORCED = nativeToFixed && (\n 0.00008.toFixed(3) !== '0.000' ||\n 0.9.toFixed(0) !== '1' ||\n 1.255.toFixed(2) !== '1.25' ||\n 1000000000000000128.0.toFixed(0) !== '1000000000000000128'\n) || !fails(function () {\n // V8 ~ Android 4.3-\n nativeToFixed.call({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.github.io/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n // eslint-disable-next-line max-statements\n toFixed: function toFixed(fractionDigits) {\n var number = thisNumberValue(this);\n var fractDigits = toInteger(fractionDigits);\n var data = [0, 0, 0, 0, 0, 0];\n var sign = '';\n var result = '0';\n var e, z, j, k;\n\n var multiply = function (n, c) {\n var index = -1;\n var c2 = c;\n while (++index < 6) {\n c2 += n * data[index];\n data[index] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n };\n\n var divide = function (n) {\n var index = 6;\n var c = 0;\n while (--index >= 0) {\n c += data[index];\n data[index] = floor(c / n);\n c = (c % n) * 1e7;\n }\n };\n\n var dataToString = function () {\n var index = 6;\n var s = '';\n while (--index >= 0) {\n if (s !== '' || index === 0 || data[index] !== 0) {\n var t = String(data[index]);\n s = s === '' ? t : s + repeat.call('0', 7 - t.length) + t;\n }\n } return s;\n };\n\n if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');\n // eslint-disable-next-line no-self-compare\n if (number != number) return 'NaN';\n if (number <= -1e21 || number >= 1e21) return String(number);\n if (number < 0) {\n sign = '-';\n number = -number;\n }\n if (number > 1e-21) {\n e = log(number * pow(2, 69, 1)) - 69;\n z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(0, z);\n j = fractDigits;\n while (j >= 7) {\n multiply(1e7, 0);\n j -= 7;\n }\n multiply(pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(1 << 23);\n j -= 23;\n }\n divide(1 << j);\n multiply(1, 1);\n divide(2);\n result = dataToString();\n } else {\n multiply(0, z);\n multiply(1 << -e, 0);\n result = dataToString() + repeat.call('0', fractDigits);\n }\n }\n if (fractDigits > 0) {\n k = result.length;\n result = sign + (k <= fractDigits\n ? '0.' + repeat.call('0', fractDigits - k) + result\n : result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));\n } else {\n result = sign + result;\n } return result;\n }\n});\n","export function chunk(items, size) {\n if(!Array.isArray(items)\n || items.length === 0\n || !Number.isInteger(size)\n || size === 0) {\n return [];\n }\n\n const chunks = [];\n let chunk = [];\n\n for(let i = 0; i < items.length; i++) {\n chunk.push(items[i]);\n if((i + 1) % size === 0) {\n chunks.push(chunk);\n chunk = [];\n }\n }\n\n if(chunk.length > 0) {\n chunks.push(chunk);\n }\n\n return chunks;\n}\n\nexport function flatten(array) {\n if (!Array.isArray(array)) {\n return [];\n }\n\n return array.reduce((previous, current) => {\n if (Array.isArray(current)){\n return previous.concat(current);\n } else {\n previous.push(current);\n return previous;\n }\n }, []);\n}\n\nexport function minimum(array) {\n if (!Array.isArray(array)) {\n return undefined;\n }\n\n let minimum = undefined;\n\n for(let i = 0; i < array.length; i++) {\n const value = array[i];\n if(typeof value === 'number') {\n if(minimum === undefined || value < minimum) {\n minimum = value;\n }\n }\n }\n\n return minimum;\n}\n\n// function to return N given of items in an Array\nexport function first(array, n) {\n // if passed array is not an array, return empty array\n if (!Array.isArray(array)\n || n <= 0) {\n return [];\n }\n\n //if N number is bigger or equal slice up the entire thing\n if(n >= array.length) {\n return array.slice();\n } else {\n // otherwise return only N numbers of array items\n return array.slice(0, n);\n }\n}\n\nexport function isLater(value) {\n // Return true if today is after the value date\n let result = false\n\n if (value && value instanceof Date) {\n result = new Date() > value;\n } else if (value) {\n result = new Date() > new Date(value)\n }\n\n return result;\n}\n\nexport function isObject(value) {\n return (!!value) && (value.constructor === Object);\n}\n\nexport function findIndex(array, fn) {\n if (!Array.isArray(array)\n || !(typeof fn === 'function')) {\n return undefined;\n }\n for(let i = 0; i < array.length; i++) {\n const element = array[i];\n\n if(fn(element)) {\n return i;\n }\n }\n\n return undefined;\n}\n\nexport function escapeHtml(unsafe) {\n return unsafe\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n .replace(/'/g, ''');\n}\n","import React, { useCallback, useState, useRef, useMemo, Suspense } from 'react';\nimport dynamic from 'next/dynamic';\nimport { CSSTransition } from 'react-transition-group';\nimport { Waypoint } from 'react-waypoint';\nimport PropTypes from 'prop-types';\nimport { chunk, minimum} from '../../../adapters/helpers/functions';\nimport C from 'classnames';\nimport {useIsomorphicLayoutEffect} from '../../../adapters/helpers/Hooks';\nimport Loader from '../../../adapters/helpers/Loader';\nconst SeeMoreButton = dynamic(() => import('../../SeeMoreButton/SeeMoreButton'));\nconst ProductOverview = dynamic(() => import('../ProductOverview'));\n\nfunction makeRows(products, itemsPerLine) {\n return chunk(products, itemsPerLine)\n .map(chunk => {\n const aspectRatios = chunk\n .map((item) =>{ \n if(item?.fields?.mainAsset?.fields){\n item.fields.mainAsset.fields.isPreload = false\n }\n item?.fields?.mainAsset?.fields?.imageRendition?.fields?.aspectRatio});\n\n\n const minAspectRatio = minimum(aspectRatios)\n\n return {aspectRatio: minAspectRatio, items: chunk};\n }).map(row => {\n // Temporary while aspect Ratios are too extreme\n const aspectRatio = row.aspectRatio && Math.max(row.aspectRatio, 0.4);\n return {...row, aspectRatio};\n });\n}\n\nexport default function CollapsibleProductsOverview({\n products,\n seeMoreProductsText,\n seeLessProductsText,\n whiteText,\n itemsPerRow,\n onClickCallback,\n productOverview,\n isRecentlyViewed,\n removeLazyLoad\n}) {\n\n const [isViewedMore, setIsViewedMore] = useState(false);\n const [navHeight, setNavHeight] = useState(0);\n const [isLoaded, setIsLoaded] = useState(false);\n const collapsibleRef = useRef(null);\n const wrapperRef = useRef(null);\n const [isShown, setIsShown] = useState(false);\n\n const onViewMore = useCallback(\n () => {\n setIsViewedMore(prevState => !prevState);\n },\n [],\n );\n\n const handleWaypoint = useCallback(() => {\n setIsShown(true);\n }, []);\n\n const calculateHeight = useCallback(\n () => {\n if (collapsibleRef.current) {\n setNavHeight(collapsibleRef.current.scrollHeight);\n }\n },\n [],\n );\n\n useIsomorphicLayoutEffect(() => {\n if (wrapperRef?.current && isLoaded && !isRecentlyViewed) {\n const seeMoreWrapperClassName = 'ob-collapsible-products-overview-see-more-wrapper';\n const collapsibleWrapperClassName = 'ob-collapsible-products-overview-collapsible';\n const imageWrapperSelector = '.ob-products-overview__overview-image-wrapper-1';\n const productsOverviewRows = Array.from(wrapperRef?.current?.children);\n let imageHeight = 0;\n // The timeout is to give time for the images to load\n let timeout = null;\n timeout = window.setTimeout(() => {\n productsOverviewRows.forEach(productsOverviewRow => {\n if (!productsOverviewRow.classList.contains(seeMoreWrapperClassName)) {\n const productsOverviewList = Array.from(productsOverviewRow.children);\n\n productsOverviewList.forEach((productsOverviewListItem => {\n if (productsOverviewListItem.classList.contains(collapsibleWrapperClassName)) {\n const innerProductsOverviewList = Array.from(productsOverviewListItem.children);\n let innerImageHeight = 0;\n\n innerProductsOverviewList.forEach(innerProductsOverviewListItem => {\n const imageWrapper = innerProductsOverviewListItem.querySelector(imageWrapperSelector);\n const currentImageHeight = imageWrapper.clientHeight;\n innerImageHeight = currentImageHeight > innerImageHeight ? currentImageHeight : innerImageHeight;\n });\n\n // we have to do another loop to make sure every item gets the proper height\n innerProductsOverviewList.forEach(innerProductsOverviewListItem => {\n const imageWrapper = innerProductsOverviewListItem.querySelector(imageWrapperSelector);\n imageWrapper.style.height = `${innerImageHeight}px`;\n });\n }\n\n const imageWrapper = productsOverviewListItem.querySelector(imageWrapperSelector);\n const currentImageHeight = imageWrapper.clientHeight;\n imageHeight = currentImageHeight > imageHeight ? currentImageHeight : imageHeight;\n }));\n\n // we have to do another loop to make sure every item gets the proper height\n productsOverviewList.forEach(productsOverviewListItem => {\n const imageWrapper = productsOverviewListItem.querySelector(imageWrapperSelector);\n imageWrapper.style.height = `${imageHeight}px`;\n });\n }\n });\n }, 500);\n\n return () => {\n window.clearTimeout(timeout)\n }\n }\n },[isLoaded, isViewedMore]);\n\n const fullScreenWidth = useMemo(() => `${(100 / itemsPerRow).toFixed(2)}%`, [itemsPerRow]);\n const rows = useMemo(() => makeRows(products, itemsPerRow), [products, itemsPerRow]);\n const firstRow = useMemo(() => rows.length > 0 && rows[0], [rows]);\n const remainingRows = useMemo(() => rows.length > 1 ? rows.slice(1) : undefined, [rows]);\n\n const Row = useCallback(({row, isShown, isAnimated = false}) => (\n <>\n {row.items.map((item, i) => (\n
\n }>\n \n \n
\n ))}\n \n ), [fullScreenWidth, whiteText]);\n\n return (\n }>\n \n
setIsLoaded(true)}>\n\n {/* Arbitrary numbers */}\n {!!firstRow && \n
\n \n
\n
}\n\n {!!remainingRows &&\n
\n
\n {remainingRows.map((row, i) => (\n }>\n \n \n ))}\n
\n
}\n {!!remainingRows && !!seeMoreProductsText &&\n
\n }>\n \n \n
}\n
\n
\n
\n )\n}\n\nCollapsibleProductsOverview.defaultProps = {\n products: [],\n}\n\nCollapsibleProductsOverview.propTypes = {\n products: PropTypes.array,\n seeMoreProductsText: PropTypes.string,\n seeLessProductsText: PropTypes.string,\n whiteText: PropTypes.bool,\n itemsPerRow: PropTypes.number.isRequired,\n productOverview: PropTypes.any,\n removeLazyLoad: PropTypes.bool,\n onClickCallback: PropTypes.func,\n isRecentlyViewed: PropTypes.bool\n}\n","(self[\"webpackChunk_N_E\"] = self[\"webpackChunk_N_E\"] || []).push([[9985],{\n\n/***/ 94184:\n/***/ (function(module, exports) {\n\nvar __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!\n Copyright (c) 2017 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif ( true && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (true) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\t!(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {\n\t\t\treturn classNames;\n\t\t}).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else {}\n}());\n\n\n/***/ }),\n\n/***/ 18730:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(70111);\n\nvar floor = Math.floor;\n\n// `Number.isInteger` method implementation\n// https://tc39.github.io/ecma262/#sec-number.isinteger\nmodule.exports = function isInteger(it) {\n return !isObject(it) && isFinite(it) && floor(it) === it;\n};\n\n\n/***/ }),\n\n/***/ 50863:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\nvar classof = __webpack_require__(84326);\n\n// `thisNumberValue` abstract operation\n// https://tc39.github.io/ecma262/#sec-thisnumbervalue\nmodule.exports = function (value) {\n if (typeof value != 'number' && classof(value) != 'Number') {\n throw TypeError('Incorrect invocation');\n }\n return +value;\n};\n\n\n/***/ }),\n\n/***/ 33161:\n/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {\n\nvar $ = __webpack_require__(82109);\nvar isInteger = __webpack_require__(18730);\n\n// `Number.isInteger` method\n// https://tc39.github.io/ecma262/#sec-number.isinteger\n$({ target: 'Number', stat: true }, {\n isInteger: isInteger\n});\n\n\n/***/ }),\n\n/***/ 56977:\n/***/ (function(__unused_webpack_module, __unused_webpack_exports, __webpack_require__) {\n\n\"use strict\";\n\nvar $ = __webpack_require__(82109);\nvar toInteger = __webpack_require__(99958);\nvar thisNumberValue = __webpack_require__(50863);\nvar repeat = __webpack_require__(38415);\nvar fails = __webpack_require__(47293);\n\nvar nativeToFixed = 1.0.toFixed;\nvar floor = Math.floor;\n\nvar pow = function (x, n, acc) {\n return n === 0 ? acc : n % 2 === 1 ? pow(x, n - 1, acc * x) : pow(x * x, n / 2, acc);\n};\n\nvar log = function (x) {\n var n = 0;\n var x2 = x;\n while (x2 >= 4096) {\n n += 12;\n x2 /= 4096;\n }\n while (x2 >= 2) {\n n += 1;\n x2 /= 2;\n } return n;\n};\n\nvar FORCED = nativeToFixed && (\n 0.00008.toFixed(3) !== '0.000' ||\n 0.9.toFixed(0) !== '1' ||\n 1.255.toFixed(2) !== '1.25' ||\n 1000000000000000128.0.toFixed(0) !== '1000000000000000128'\n) || !fails(function () {\n // V8 ~ Android 4.3-\n nativeToFixed.call({});\n});\n\n// `Number.prototype.toFixed` method\n// https://tc39.github.io/ecma262/#sec-number.prototype.tofixed\n$({ target: 'Number', proto: true, forced: FORCED }, {\n // eslint-disable-next-line max-statements\n toFixed: function toFixed(fractionDigits) {\n var number = thisNumberValue(this);\n var fractDigits = toInteger(fractionDigits);\n var data = [0, 0, 0, 0, 0, 0];\n var sign = '';\n var result = '0';\n var e, z, j, k;\n\n var multiply = function (n, c) {\n var index = -1;\n var c2 = c;\n while (++index < 6) {\n c2 += n * data[index];\n data[index] = c2 % 1e7;\n c2 = floor(c2 / 1e7);\n }\n };\n\n var divide = function (n) {\n var index = 6;\n var c = 0;\n while (--index >= 0) {\n c += data[index];\n data[index] = floor(c / n);\n c = (c % n) * 1e7;\n }\n };\n\n var dataToString = function () {\n var index = 6;\n var s = '';\n while (--index >= 0) {\n if (s !== '' || index === 0 || data[index] !== 0) {\n var t = String(data[index]);\n s = s === '' ? t : s + repeat.call('0', 7 - t.length) + t;\n }\n } return s;\n };\n\n if (fractDigits < 0 || fractDigits > 20) throw RangeError('Incorrect fraction digits');\n // eslint-disable-next-line no-self-compare\n if (number != number) return 'NaN';\n if (number <= -1e21 || number >= 1e21) return String(number);\n if (number < 0) {\n sign = '-';\n number = -number;\n }\n if (number > 1e-21) {\n e = log(number * pow(2, 69, 1)) - 69;\n z = e < 0 ? number * pow(2, -e, 1) : number / pow(2, e, 1);\n z *= 0x10000000000000;\n e = 52 - e;\n if (e > 0) {\n multiply(0, z);\n j = fractDigits;\n while (j >= 7) {\n multiply(1e7, 0);\n j -= 7;\n }\n multiply(pow(10, j, 1), 0);\n j = e - 1;\n while (j >= 23) {\n divide(1 << 23);\n j -= 23;\n }\n divide(1 << j);\n multiply(1, 1);\n divide(2);\n result = dataToString();\n } else {\n multiply(0, z);\n multiply(1 << -e, 0);\n result = dataToString() + repeat.call('0', fractDigits);\n }\n }\n if (fractDigits > 0) {\n k = result.length;\n result = sign + (k <= fractDigits\n ? '0.' + repeat.call('0', fractDigits - k) + result\n : result.slice(0, k - fractDigits) + '.' + result.slice(k - fractDigits));\n } else {\n result = sign + result;\n } return result;\n }\n});\n\n\n/***/ }),\n\n/***/ 61986:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Kn\": function() { return /* binding */ isObject; },\n/* harmony export */ \"LT\": function() { return /* binding */ minimum; },\n/* harmony export */ \"Ps\": function() { return /* binding */ first; },\n/* harmony export */ \"Xv\": function() { return /* binding */ escapeHtml; },\n/* harmony export */ \"cx\": function() { return /* binding */ findIndex; },\n/* harmony export */ \"en\": function() { return /* binding */ isLater; },\n/* harmony export */ \"yo\": function() { return /* binding */ chunk; }\n/* harmony export */ });\n/* unused harmony export flatten */\n/* harmony import */ var core_js_modules_es_number_is_integer_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(33161);\n/* harmony import */ var core_js_modules_es_number_is_integer_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_is_integer_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(9653);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85827);\n/* harmony import */ var core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_reduce_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41539);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(92222);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(47042);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(74916);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(15306);\n/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_7__);\n\n\n\n\n\n\n\n\nfunction chunk(items, size) {\n if (!Array.isArray(items) || items.length === 0 || !Number.isInteger(size) || size === 0) {\n return [];\n }\n\n var chunks = [];\n var chunk = [];\n\n for (var i = 0; i < items.length; i++) {\n chunk.push(items[i]);\n\n if ((i + 1) % size === 0) {\n chunks.push(chunk);\n chunk = [];\n }\n }\n\n if (chunk.length > 0) {\n chunks.push(chunk);\n }\n\n return chunks;\n}\nfunction flatten(array) {\n if (!Array.isArray(array)) {\n return [];\n }\n\n return array.reduce(function (previous, current) {\n if (Array.isArray(current)) {\n return previous.concat(current);\n } else {\n previous.push(current);\n return previous;\n }\n }, []);\n}\nfunction minimum(array) {\n if (!Array.isArray(array)) {\n return undefined;\n }\n\n var minimum = undefined;\n\n for (var i = 0; i < array.length; i++) {\n var value = array[i];\n\n if (typeof value === 'number') {\n if (minimum === undefined || value < minimum) {\n minimum = value;\n }\n }\n }\n\n return minimum;\n} // function to return N given of items in an Array\n\nfunction first(array, n) {\n // if passed array is not an array, return empty array\n if (!Array.isArray(array) || n <= 0) {\n return [];\n } //if N number is bigger or equal slice up the entire thing\n\n\n if (n >= array.length) {\n return array.slice();\n } else {\n // otherwise return only N numbers of array items\n return array.slice(0, n);\n }\n}\nfunction isLater(value) {\n // Return true if today is after the value date\n var result = false;\n\n if (value && value instanceof Date) {\n result = new Date() > value;\n } else if (value) {\n result = new Date() > new Date(value);\n }\n\n return result;\n}\nfunction isObject(value) {\n return !!value && value.constructor === Object;\n}\nfunction findIndex(array, fn) {\n if (!Array.isArray(array) || !(typeof fn === 'function')) {\n return undefined;\n }\n\n for (var i = 0; i < array.length; i++) {\n var element = array[i];\n\n if (fn(element)) {\n return i;\n }\n }\n\n return undefined;\n}\nfunction escapeHtml(unsafe) {\n return unsafe.replace(/&/g, '&').replace(//g, '>').replace(/\"/g, '"').replace(/'/g, ''');\n}\n\n/***/ }),\n\n/***/ 39985:\n/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {\n\n\"use strict\";\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": function() { return /* binding */ CollapsibleProductsOverview; }\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_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(49337);\n/* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_object_define_properties_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(33321);\n/* harmony import */ var core_js_modules_es_object_define_properties_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_properties_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(69070);\n/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_6__);\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_7__ = __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_7___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_7__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41539);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(88674);\n/* harmony import */ var core_js_modules_es_promise_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_promise_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_from_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91038);\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(78783);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(89554);\n/* harmony import */ var core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_for_each_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(54747);\n/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(56977);\n/* harmony import */ var core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_to_fixed_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(47042);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(67294);\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(5152);\n/* harmony import */ var next_dynamic__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(next_dynamic__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var react_transition_group__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(68665);\n/* harmony import */ var react_waypoint__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(83824);\n/* harmony import */ var _adapters_helpers_functions__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(61986);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(94184);\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var _adapters_helpers_Hooks__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(71357);\n/* harmony import */ var _adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(47322);\n/* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(85893);\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_7___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\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar SeeMoreButton = next_dynamic__WEBPACK_IMPORTED_MODULE_18___default()(function () {\n return __webpack_require__.e(/* import() */ 7363).then(__webpack_require__.bind(__webpack_require__, 37363));\n}, {\n loadableGenerated: {\n webpack: function webpack() {\n return [/*require.resolve*/(37363)];\n }\n }\n});\nvar ProductOverview = next_dynamic__WEBPACK_IMPORTED_MODULE_18___default()(function () {\n return Promise.all(/* import() */[__webpack_require__.e(4885), __webpack_require__.e(8765), __webpack_require__.e(9238), __webpack_require__.e(1664), __webpack_require__.e(8996), __webpack_require__.e(3522)]).then(__webpack_require__.bind(__webpack_require__, 14658));\n}, {\n loadableGenerated: {\n webpack: function webpack() {\n return [/*require.resolve*/(14658)];\n }\n }\n});\n\nfunction makeRows(products, itemsPerLine) {\n return (0,_adapters_helpers_functions__WEBPACK_IMPORTED_MODULE_20__/* .chunk */ .yo)(products, itemsPerLine).map(function (chunk) {\n var aspectRatios = chunk.map(function (item) {\n var _item$fields, _item$fields$mainAsse, _item$fields2, _item$fields2$mainAss, _item$fields2$mainAss2, _item$fields2$mainAss3, _item$fields2$mainAss4;\n\n if (item == null ? void 0 : (_item$fields = item.fields) == null ? void 0 : (_item$fields$mainAsse = _item$fields.mainAsset) == null ? void 0 : _item$fields$mainAsse.fields) {\n item.fields.mainAsset.fields.isPreload = false;\n }\n\n item == null ? void 0 : (_item$fields2 = item.fields) == null ? void 0 : (_item$fields2$mainAss = _item$fields2.mainAsset) == null ? void 0 : (_item$fields2$mainAss2 = _item$fields2$mainAss.fields) == null ? void 0 : (_item$fields2$mainAss3 = _item$fields2$mainAss2.imageRendition) == null ? void 0 : (_item$fields2$mainAss4 = _item$fields2$mainAss3.fields) == null ? void 0 : _item$fields2$mainAss4.aspectRatio;\n });\n var minAspectRatio = (0,_adapters_helpers_functions__WEBPACK_IMPORTED_MODULE_20__/* .minimum */ .LT)(aspectRatios);\n return {\n aspectRatio: minAspectRatio,\n items: chunk\n };\n }).map(function (row) {\n // Temporary while aspect Ratios are too extreme\n var aspectRatio = row.aspectRatio && Math.max(row.aspectRatio, 0.4);\n return _objectSpread(_objectSpread({}, row), {}, {\n aspectRatio: aspectRatio\n });\n });\n}\n\nfunction CollapsibleProductsOverview(_ref) {\n var products = _ref.products,\n seeMoreProductsText = _ref.seeMoreProductsText,\n seeLessProductsText = _ref.seeLessProductsText,\n whiteText = _ref.whiteText,\n itemsPerRow = _ref.itemsPerRow,\n onClickCallback = _ref.onClickCallback,\n productOverview = _ref.productOverview,\n isRecentlyViewed = _ref.isRecentlyViewed,\n removeLazyLoad = _ref.removeLazyLoad;\n\n var _useState = (0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(false),\n isViewedMore = _useState[0],\n setIsViewedMore = _useState[1];\n\n var _useState2 = (0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(0),\n navHeight = _useState2[0],\n setNavHeight = _useState2[1];\n\n var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(false),\n isLoaded = _useState3[0],\n setIsLoaded = _useState3[1];\n\n var collapsibleRef = (0,react__WEBPACK_IMPORTED_MODULE_17__.useRef)(null);\n var wrapperRef = (0,react__WEBPACK_IMPORTED_MODULE_17__.useRef)(null);\n\n var _useState4 = (0,react__WEBPACK_IMPORTED_MODULE_17__.useState)(false),\n isShown = _useState4[0],\n setIsShown = _useState4[1];\n\n var onViewMore = (0,react__WEBPACK_IMPORTED_MODULE_17__.useCallback)(function () {\n setIsViewedMore(function (prevState) {\n return !prevState;\n });\n }, []);\n var handleWaypoint = (0,react__WEBPACK_IMPORTED_MODULE_17__.useCallback)(function () {\n setIsShown(true);\n }, []);\n var calculateHeight = (0,react__WEBPACK_IMPORTED_MODULE_17__.useCallback)(function () {\n if (collapsibleRef.current) {\n setNavHeight(collapsibleRef.current.scrollHeight);\n }\n }, []);\n (0,_adapters_helpers_Hooks__WEBPACK_IMPORTED_MODULE_22__/* .useIsomorphicLayoutEffect */ .LI)(function () {\n if ((wrapperRef == null ? void 0 : wrapperRef.current) && isLoaded && !isRecentlyViewed) {\n var _wrapperRef$current;\n\n var seeMoreWrapperClassName = 'ob-collapsible-products-overview-see-more-wrapper';\n var collapsibleWrapperClassName = 'ob-collapsible-products-overview-collapsible';\n var imageWrapperSelector = '.ob-products-overview__overview-image-wrapper-1';\n var productsOverviewRows = Array.from(wrapperRef == null ? void 0 : (_wrapperRef$current = wrapperRef.current) == null ? void 0 : _wrapperRef$current.children);\n var imageHeight = 0; // The timeout is to give time for the images to load\n\n var timeout = null;\n timeout = window.setTimeout(function () {\n productsOverviewRows.forEach(function (productsOverviewRow) {\n if (!productsOverviewRow.classList.contains(seeMoreWrapperClassName)) {\n var productsOverviewList = Array.from(productsOverviewRow.children);\n productsOverviewList.forEach(function (productsOverviewListItem) {\n if (productsOverviewListItem.classList.contains(collapsibleWrapperClassName)) {\n var innerProductsOverviewList = Array.from(productsOverviewListItem.children);\n var innerImageHeight = 0;\n innerProductsOverviewList.forEach(function (innerProductsOverviewListItem) {\n var imageWrapper = innerProductsOverviewListItem.querySelector(imageWrapperSelector);\n var currentImageHeight = imageWrapper.clientHeight;\n innerImageHeight = currentImageHeight > innerImageHeight ? currentImageHeight : innerImageHeight;\n }); // we have to do another loop to make sure every item gets the proper height\n\n innerProductsOverviewList.forEach(function (innerProductsOverviewListItem) {\n var imageWrapper = innerProductsOverviewListItem.querySelector(imageWrapperSelector);\n imageWrapper.style.height = \"\".concat(innerImageHeight, \"px\");\n });\n }\n\n var imageWrapper = productsOverviewListItem.querySelector(imageWrapperSelector);\n var currentImageHeight = imageWrapper.clientHeight;\n imageHeight = currentImageHeight > imageHeight ? currentImageHeight : imageHeight;\n }); // we have to do another loop to make sure every item gets the proper height\n\n productsOverviewList.forEach(function (productsOverviewListItem) {\n var imageWrapper = productsOverviewListItem.querySelector(imageWrapperSelector);\n imageWrapper.style.height = \"\".concat(imageHeight, \"px\");\n });\n }\n });\n }, 500);\n return function () {\n window.clearTimeout(timeout);\n };\n }\n }, [isLoaded, isViewedMore]);\n var fullScreenWidth = (0,react__WEBPACK_IMPORTED_MODULE_17__.useMemo)(function () {\n return \"\".concat((100 / itemsPerRow).toFixed(2), \"%\");\n }, [itemsPerRow]);\n var rows = (0,react__WEBPACK_IMPORTED_MODULE_17__.useMemo)(function () {\n return makeRows(products, itemsPerRow);\n }, [products, itemsPerRow]);\n var firstRow = (0,react__WEBPACK_IMPORTED_MODULE_17__.useMemo)(function () {\n return rows.length > 0 && rows[0];\n }, [rows]);\n var remainingRows = (0,react__WEBPACK_IMPORTED_MODULE_17__.useMemo)(function () {\n return rows.length > 1 ? rows.slice(1) : undefined;\n }, [rows]);\n var Row = (0,react__WEBPACK_IMPORTED_MODULE_17__.useCallback)(function (_ref2) {\n var row = _ref2.row,\n isShown = _ref2.isShown,\n _ref2$isAnimated = _ref2.isAnimated,\n isAnimated = _ref2$isAnimated === void 0 ? false : _ref2$isAnimated;\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.Fragment, {\n children: row.items.map(function (item, i) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n style: {\n width: fullScreenWidth\n },\n className: \"ob-collapsible-products-overview-product-wrapper\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(react__WEBPACK_IMPORTED_MODULE_17__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_23__[\"default\"], {}),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(ProductOverview, {\n product: item,\n whiteText: whiteText,\n aspectRatio: row.aspectRatio,\n index: i,\n isShown: isShown,\n isRecentlyViewed: isRecentlyViewed,\n isAnimated: isAnimated,\n removeLazyLoad: removeLazyLoad,\n onClickCallback: onClickCallback,\n productOverview: productOverview\n })\n })\n }, i);\n })\n });\n }, [fullScreenWidth, whiteText]);\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(react__WEBPACK_IMPORTED_MODULE_17__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_23__[\"default\"], {}),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(react_transition_group__WEBPACK_IMPORTED_MODULE_25__/* [\"default\"] */ .Z, {\n \"in\": isViewedMore,\n timeout: 800,\n onEntering: calculateHeight,\n onExit: calculateHeight,\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsxs)(\"div\", {\n ref: wrapperRef,\n className: classnames__WEBPACK_IMPORTED_MODULE_21___default()('ob-collapsible-products-overview'),\n onLoad: function onLoad() {\n return setIsLoaded(true);\n },\n children: [!!firstRow && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(react_waypoint__WEBPACK_IMPORTED_MODULE_19__/* .Waypoint */ .h, {\n onEnter: handleWaypoint,\n topOffset: '500px',\n bottomOffset: '300px',\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"ob-collapsible-products-overview-first-line\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(Row, {\n row: firstRow,\n isShown: isShown,\n isAnimated: true\n })\n })\n }), !!remainingRows && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"ob-collapsible-products-overview-collapsible-wrapper\",\n style: {\n height: navHeight\n },\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"ob-collapsible-products-overview-collapsible\",\n ref: collapsibleRef,\n children: remainingRows.map(function (row, i) {\n return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(react__WEBPACK_IMPORTED_MODULE_17__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_23__[\"default\"], {}),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(Row, {\n isShown: true,\n row: row,\n isAnimated: true\n }, i)\n });\n })\n })\n }), !!remainingRows && !!seeMoreProductsText && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(\"div\", {\n className: \"ob-collapsible-products-overview-see-more-wrapper\",\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(react__WEBPACK_IMPORTED_MODULE_17__.Suspense, {\n fallback: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_23__[\"default\"], {}),\n children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__.jsx)(SeeMoreButton, {\n whiteText: whiteText,\n onClick: onViewMore,\n isOpen: isViewedMore,\n seeMoreText: seeMoreProductsText,\n seeLessText: seeLessProductsText\n })\n })\n })]\n })\n })\n });\n}\nCollapsibleProductsOverview.defaultProps = {\n products: []\n};\n\n/***/ })\n\n}]);"],"names":["self","push","module","exports","__WEBPACK_AMD_DEFINE_RESULT__","hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","Array","isArray","inner","apply","key","call","join","default","undefined","__unused_webpack_exports","__webpack_require__","isObject","floor","Math","it","isFinite","classof","value","TypeError","__unused_webpack_module","$","target","stat","isInteger","toInteger","thisNumberValue","repeat","fails","nativeToFixed","toFixed","pow","x","n","acc","log","x2","proto","forced","fractionDigits","e","z","j","k","number","fractDigits","data","sign","result","multiply","c","index","c2","divide","dataToString","s","t","String","RangeError","slice","__webpack_exports__","chunk","items","size","Number","chunks","minimum","array","first","isLater","Date","constructor","Object","findIndex","fn","escapeHtml","unsafe","replace","d","r","CollapsibleProductsOverview","_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_7__","_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_7___default","react__WEBPACK_IMPORTED_MODULE_17__","next_dynamic__WEBPACK_IMPORTED_MODULE_18__","next_dynamic__WEBPACK_IMPORTED_MODULE_18___default","react_transition_group__WEBPACK_IMPORTED_MODULE_25__","react_waypoint__WEBPACK_IMPORTED_MODULE_19__","_adapters_helpers_functions__WEBPACK_IMPORTED_MODULE_20__","classnames__WEBPACK_IMPORTED_MODULE_21__","classnames__WEBPACK_IMPORTED_MODULE_21___default","_adapters_helpers_Hooks__WEBPACK_IMPORTED_MODULE_22__","_adapters_helpers_Loader__WEBPACK_IMPORTED_MODULE_23__","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_24__","ownKeys","object","enumerableOnly","keys","getOwnPropertySymbols","symbols","filter","sym","getOwnPropertyDescriptor","enumerable","_objectSpread","source","forEach","getOwnPropertyDescriptors","defineProperties","defineProperty","SeeMoreButton","then","bind","loadableGenerated","webpack","ProductOverview","Promise","all","_ref","products","seeMoreProductsText","seeLessProductsText","whiteText","itemsPerRow","onClickCallback","productOverview","isRecentlyViewed","removeLazyLoad","_useState","useState","isViewedMore","setIsViewedMore","_useState2","navHeight","setNavHeight","_useState3","isLoaded","setIsLoaded","collapsibleRef","useRef","wrapperRef","_useState4","isShown","setIsShown","onViewMore","useCallback","prevState","handleWaypoint","calculateHeight","current","scrollHeight","LI","_wrapperRef$current","imageWrapperSelector","productsOverviewRows","from","children","imageHeight","timeout","window","setTimeout","productsOverviewRow","classList","contains","productsOverviewList","productsOverviewListItem","innerProductsOverviewList","innerImageHeight","innerProductsOverviewListItem","currentImageHeight","imageWrapper","querySelector","clientHeight","style","height","concat","clearTimeout","fullScreenWidth","useMemo","rows","yo","map","aspectRatios","item","_item$fields","_item$fields$mainAsse","_item$fields2","_item$fields2$mainAss","_item$fields2$mainAss2","_item$fields2$mainAss3","_item$fields2$mainAss4","fields","mainAsset","isPreload","imageRendition","aspectRatio","LT","row","max","firstRow","remainingRows","Row","_ref2","_ref2$isAnimated","isAnimated","jsx","Fragment","width","className","Suspense","fallback","product","Z","onEntering","onExit","jsxs","ref","onLoad","h","onEnter","topOffset","bottomOffset","onClick","isOpen","seeMoreText","seeLessText","defaultProps"],"sourceRoot":""}