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,UAAY,0BAA0B,cAAgB,8BAA8B,YAAc,4BAA4B,SAAW,yBAAyB,OAAS,uBAAuB,UAAY,0BAA0B,UAAY,0BAA0B,YAAc,4BAA4B,eAAiB,+BAA+B,gBAAkB,gCAAgC,WAAa,2BAA2B,WAAa,2BAA2B,kBAAoB,kCAAkC,aAAe,6BAA6B,SAAW,yBAAyB,eAAiB,+BAA+B,UAAY,0BAA0B,cAAgB,8BAA8B,eAAiB,+BAA+B,KAAO,qBAAqB,cAAgB,8BAA8B,YAAc,4BAA4B,gBAAkB,gCAAgC,UAAY,0BAA0B,SAAW,yBAAyB,YAAc,4BAA4B,kBAAoB,kCAAkC,uBAAyB,uCAAuC,OAAS,uBAAuB,UAAY,0BAA0B,SAAW,yBAAyB,eAAiB,+BAA+B,eAAiB,+BAA+B,kBAAoB,kCAAkC,iBAAmB,iCAAiC,gBAAkB,gCAAgC,aAAe,6BAA6B,UAAY,0BAA0B,iBAAmB,iCAAiC,0BAA4B,0CAA0C,qBAAuB,qCAAqC,mBAAqB,mCAAmC,wBAA0B,wCAAwC,oBAAsB,oCAAoC,wBAA0B,wCAAwC,cAAgB,8BAA8B,MAAQ,sBAAsB,aAAe,6BAA6B,gBAAkB,mC","sources":["webpack://_N_E/./src/images/icons/alert_circle.svg","webpack://_N_E/./src/images/icons/new_badge.svg","webpack://_N_E/./node_modules/react-use-draggable-scroll/dist/react-use-draggable-scroll.esm.js","webpack://_N_E/./src/components/layout/TopBar/Search.js","webpack://_N_E/./src/images/icons/arrow_view_more.svg","webpack://_N_E/./src/pages/store/brands/index.js","webpack://_N_E/?5a90","webpack://_N_E/./src/components/layout/TopBar/search.module.scss","webpack://_N_E/./src/pages/store/brands/index.module.scss"],"sourcesContent":["var _path, _path2, _path3;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nvar SvgAlertCircle = function SvgAlertCircle(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 40,\n height: 40,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M33.858 25.74A15 15 0 1 0 6.14 14.26a15 15 0 0 0 27.718 11.48Z\",\n stroke: \"#FFA0CC\",\n strokeWidth: 2.5,\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n })), _path2 || (_path2 = /*#__PURE__*/React.createElement(\"path\", {\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n d: \"M20 25a1.667 1.667 0 1 1 0 3.333A1.667 1.667 0 0 1 20 25Z\",\n fill: \"#FFA0CC\"\n })), _path3 || (_path3 = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M18.75 21.666v1.25h2.5v-1.25h-2.5Zm2.5-8.333a1.25 1.25 0 0 0-2.5 0h2.5Zm0 8.333v-8.333h-2.5v8.333h2.5Z\",\n fill: \"#FFA0CC\"\n })));\n};\n\nexport default SvgAlertCircle;","var _path;\n\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nimport * as React from \"react\";\n\nvar SvgNewBadge = function SvgNewBadge(props) {\n return /*#__PURE__*/React.createElement(\"svg\", _extends({\n width: 7,\n height: 7,\n fill: \"none\",\n xmlns: \"http://www.w3.org/2000/svg\"\n }, props), _path || (_path = /*#__PURE__*/React.createElement(\"path\", {\n d: \"M6.428 6.912H4.88L1.631 2.214v4.698H.263V.09h1.548L5.06 4.815V.09h1.368v6.822Z\",\n fill: \"#fff\"\n })));\n};\n\nexport default SvgNewBadge;","import { useLayoutEffect, useEffect, useRef } from 'react';\n\nvar useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect;\n\nfunction useDraggable(ref, _temp) {\n var _ref = _temp === void 0 ? {} : _temp,\n _ref$decayRate = _ref.decayRate,\n decayRate = _ref$decayRate === void 0 ? 0.95 : _ref$decayRate,\n _ref$safeDisplacement = _ref.safeDisplacement,\n safeDisplacement = _ref$safeDisplacement === void 0 ? 10 : _ref$safeDisplacement,\n _ref$applyRubberBandE = _ref.applyRubberBandEffect,\n applyRubberBandEffect = _ref$applyRubberBandE === void 0 ? false : _ref$applyRubberBandE,\n _ref$activeMouseButto = _ref.activeMouseButton,\n activeMouseButton = _ref$activeMouseButto === void 0 ? \"Left\" : _ref$activeMouseButto,\n _ref$isMounted = _ref.isMounted,\n isMounted = _ref$isMounted === void 0 ? true : _ref$isMounted;\n\n var internalState = useRef({\n isMouseDown: false,\n isDraggingX: false,\n isDraggingY: false,\n initialMouseX: 0,\n initialMouseY: 0,\n lastMouseX: 0,\n lastMouseY: 0,\n scrollSpeedX: 0,\n scrollSpeedY: 0,\n lastScrollX: 0,\n lastScrollY: 0\n });\n var isScrollableAlongX = false;\n var isScrollableAlongY = false;\n var maxHorizontalScroll = 0;\n var maxVerticalScroll = 0;\n var cursorStyleOfWrapperElement;\n var cursorStyleOfChildElements;\n var transformStyleOfChildElements;\n var transitionStyleOfChildElements;\n var timing = 1 / 60 * 1000; // period of most monitors (60fps)\n\n useIsomorphicLayoutEffect(function () {\n if (isMounted) {\n isScrollableAlongX = window.getComputedStyle(ref.current).overflowX === \"scroll\";\n isScrollableAlongY = window.getComputedStyle(ref.current).overflowY === \"scroll\";\n maxHorizontalScroll = ref.current.scrollWidth - ref.current.clientWidth;\n maxVerticalScroll = ref.current.scrollHeight - ref.current.clientHeight;\n cursorStyleOfWrapperElement = window.getComputedStyle(ref.current).cursor;\n cursorStyleOfChildElements = [];\n transformStyleOfChildElements = [];\n transitionStyleOfChildElements = [];\n ref.current.childNodes.forEach(function (child) {\n cursorStyleOfChildElements.push(window.getComputedStyle(child).cursor);\n transformStyleOfChildElements.push(window.getComputedStyle(child).transform === \"none\" ? \"\" : window.getComputedStyle(child).transform);\n transitionStyleOfChildElements.push(window.getComputedStyle(child).transition === \"none\" ? \"\" : window.getComputedStyle(child).transition);\n });\n }\n }, [isMounted]);\n\n var runScroll = function runScroll() {\n var dx = internalState.current.scrollSpeedX * timing;\n var dy = internalState.current.scrollSpeedY * timing;\n var offsetX = ref.current.scrollLeft + dx;\n var offsetY = ref.current.scrollTop + dy;\n ref.current.scrollLeft = offsetX; // eslint-disable-line no-param-reassign\n\n ref.current.scrollTop = offsetY; // eslint-disable-line no-param-reassign\n\n internalState.current.lastScrollX = offsetX;\n internalState.current.lastScrollY = offsetY;\n };\n\n var rubberBandCallback = function rubberBandCallback(e) {\n var dx = e.clientX - internalState.current.initialMouseX;\n var dy = e.clientY - internalState.current.initialMouseY;\n var _ref$current = ref.current,\n clientWidth = _ref$current.clientWidth,\n clientHeight = _ref$current.clientHeight;\n var displacementX = 0;\n var displacementY = 0;\n\n if (isScrollableAlongX && isScrollableAlongY) {\n displacementX = 0.3 * clientWidth * Math.sign(dx) * Math.log10(1.0 + 0.5 * Math.abs(dx) / clientWidth);\n displacementY = 0.3 * clientHeight * Math.sign(dy) * Math.log10(1.0 + 0.5 * Math.abs(dy) / clientHeight);\n } else if (isScrollableAlongX) {\n displacementX = 0.3 * clientWidth * Math.sign(dx) * Math.log10(1.0 + 0.5 * Math.abs(dx) / clientWidth);\n } else if (isScrollableAlongY) {\n displacementY = 0.3 * clientHeight * Math.sign(dy) * Math.log10(1.0 + 0.5 * Math.abs(dy) / clientHeight);\n }\n\n ref.current.childNodes.forEach(function (child) {\n child.style.transform = \"translate3d(\" + displacementX + \"px, \" + displacementY + \"px, 0px)\"; // eslint-disable-line no-param-reassign\n\n child.style.transition = \"transform 0ms\"; // eslint-disable-line no-param-reassign\n });\n };\n\n var recoverChildStyle = function recoverChildStyle() {\n ref.current.childNodes.forEach(function (child, i) {\n child.style.transform = transformStyleOfChildElements[i]; // eslint-disable-line no-param-reassign\n\n child.style.transition = transitionStyleOfChildElements[i]; // eslint-disable-line no-param-reassign\n });\n };\n\n var rubberBandAnimationTimer;\n var keepMovingX;\n var keepMovingY;\n\n var callbackMomentum = function callbackMomentum() {\n var minimumSpeedToTriggerMomentum = 0.05;\n keepMovingX = setInterval(function () {\n var lastScrollSpeedX = internalState.current.scrollSpeedX;\n var newScrollSpeedX = lastScrollSpeedX * decayRate;\n internalState.current.scrollSpeedX = newScrollSpeedX;\n var isAtLeft = ref.current.scrollLeft <= 0;\n var isAtRight = ref.current.scrollLeft >= maxHorizontalScroll;\n var hasReachedHorizontalEdges = isAtLeft || isAtRight;\n runScroll();\n\n if (Math.abs(newScrollSpeedX) < minimumSpeedToTriggerMomentum || internalState.current.isMouseDown || hasReachedHorizontalEdges) {\n internalState.current.scrollSpeedX = 0;\n clearInterval(keepMovingX);\n }\n }, timing);\n keepMovingY = setInterval(function () {\n var lastScrollSpeedY = internalState.current.scrollSpeedY;\n var newScrollSpeedY = lastScrollSpeedY * decayRate;\n internalState.current.scrollSpeedY = newScrollSpeedY;\n var isAtTop = ref.current.scrollTop <= 0;\n var isAtBottom = ref.current.scrollTop >= maxVerticalScroll;\n var hasReachedVerticalEdges = isAtTop || isAtBottom;\n runScroll();\n\n if (Math.abs(newScrollSpeedY) < minimumSpeedToTriggerMomentum || internalState.current.isMouseDown || hasReachedVerticalEdges) {\n internalState.current.scrollSpeedY = 0;\n clearInterval(keepMovingY);\n }\n }, timing);\n internalState.current.isDraggingX = false;\n internalState.current.isDraggingY = false;\n\n if (applyRubberBandEffect) {\n var transitionDurationInMilliseconds = 250;\n ref.current.childNodes.forEach(function (child) {\n child.style.transform = \"translate3d(0px, 0px, 0px)\"; // eslint-disable-line no-param-reassign\n\n child.style.transition = \"transform \" + transitionDurationInMilliseconds + \"ms\"; // eslint-disable-line no-param-reassign\n });\n rubberBandAnimationTimer = setTimeout(recoverChildStyle, transitionDurationInMilliseconds);\n }\n };\n\n var preventClick = function preventClick(e) {\n e.preventDefault();\n e.stopImmediatePropagation(); // e.stopPropagation();\n };\n\n var getIsMousePressActive = function getIsMousePressActive(buttonsCode) {\n return activeMouseButton === \"Left\" && buttonsCode === 1 || activeMouseButton === \"Middle\" && buttonsCode === 4 || activeMouseButton === \"Right\" && buttonsCode === 2;\n };\n\n var onMouseDown = function onMouseDown(e) {\n var isMouseActive = getIsMousePressActive(e.buttons);\n\n if (!isMouseActive) {\n return;\n }\n\n internalState.current.isMouseDown = true;\n internalState.current.lastMouseX = e.clientX;\n internalState.current.lastMouseY = e.clientY;\n internalState.current.initialMouseX = e.clientX;\n internalState.current.initialMouseY = e.clientY;\n };\n\n var onMouseUp = function onMouseUp(e) {\n var isDragging = internalState.current.isDraggingX || internalState.current.isDraggingY;\n var dx = internalState.current.initialMouseX - e.clientX;\n var dy = internalState.current.initialMouseY - e.clientY;\n var isMotionIntentional = Math.abs(dx) > safeDisplacement || Math.abs(dy) > safeDisplacement;\n var isDraggingConfirmed = isDragging && isMotionIntentional;\n\n if (isDraggingConfirmed) {\n ref.current.childNodes.forEach(function (child) {\n child.addEventListener(\"click\", preventClick);\n });\n } else {\n ref.current.childNodes.forEach(function (child) {\n child.removeEventListener(\"click\", preventClick);\n });\n }\n\n internalState.current.isMouseDown = false;\n internalState.current.lastMouseX = 0;\n internalState.current.lastMouseY = 0;\n ref.current.style.cursor = cursorStyleOfWrapperElement; // eslint-disable-line no-param-reassign\n\n ref.current.childNodes.forEach(function (child, i) {\n child.style.cursor = cursorStyleOfChildElements[i]; // eslint-disable-line no-param-reassign\n });\n\n if (isDraggingConfirmed) {\n callbackMomentum();\n }\n };\n\n var onMouseMove = function onMouseMove(e) {\n if (!internalState.current.isMouseDown) {\n return;\n }\n\n e.preventDefault();\n var dx = internalState.current.lastMouseX - e.clientX;\n internalState.current.lastMouseX = e.clientX;\n internalState.current.scrollSpeedX = dx / timing;\n internalState.current.isDraggingX = true;\n var dy = internalState.current.lastMouseY - e.clientY;\n internalState.current.lastMouseY = e.clientY;\n internalState.current.scrollSpeedY = dy / timing;\n internalState.current.isDraggingY = true;\n ref.current.style.cursor = \"grabbing\"; // eslint-disable-line no-param-reassign\n\n ref.current.childNodes.forEach(function (child) {\n child.style.cursor = \"grabbing\"; // eslint-disable-line no-param-reassign\n });\n var isAtLeft = ref.current.scrollLeft <= 0 && isScrollableAlongX;\n var isAtRight = ref.current.scrollLeft >= maxHorizontalScroll && isScrollableAlongX;\n var isAtTop = ref.current.scrollTop <= 0 && isScrollableAlongY;\n var isAtBottom = ref.current.scrollTop >= maxVerticalScroll && isScrollableAlongY;\n var isAtAnEdge = isAtLeft || isAtRight || isAtTop || isAtBottom;\n\n if (isAtAnEdge && applyRubberBandEffect) {\n rubberBandCallback(e);\n }\n\n runScroll();\n };\n\n var handleResize = function handleResize() {\n maxHorizontalScroll = ref.current.scrollWidth - ref.current.clientWidth;\n maxVerticalScroll = ref.current.scrollHeight - ref.current.clientHeight;\n };\n\n useEffect(function () {\n if (isMounted) {\n window.addEventListener(\"mouseup\", onMouseUp);\n window.addEventListener(\"mousemove\", onMouseMove);\n window.addEventListener(\"resize\", handleResize);\n }\n\n return function () {\n window.removeEventListener(\"mouseup\", onMouseUp);\n window.removeEventListener(\"mousemove\", onMouseMove);\n window.removeEventListener(\"resize\", handleResize);\n clearInterval(keepMovingX);\n clearInterval(keepMovingY);\n clearTimeout(rubberBandAnimationTimer);\n };\n }, [isMounted]);\n return {\n events: {\n onMouseDown: onMouseDown\n }\n };\n}\n\nexport { useDraggable };\n//# sourceMappingURL=react-use-draggable-scroll.esm.js.map\n","import classNames from \"classnames\";\nimport useTranslation from 'next-translate/useTranslation';\n\nimport utilStyles from 'styles/utils.module.scss';\nimport styles from 'components/layout/TopBar/search.module.scss';\nimport SearchIcon from 'images/icons/search.svg';\nimport {useEffect, useRef, useState} from \"react\";\nimport {useRouter} from \"next/router\";\nimport CloseIcon from \"images/icons/close.svg\";\n\n\nexport default function Search(props) {\n const { t } = useTranslation('layout-TopBar-Search');\n const {searchText, setSearchText, placeholder} = props;\n const onSubmit = props.onSubmit || function () {\n };\n const [isFocused, setIsFocused] = useState(false);\n const [inputText, setInputText] = useState(searchText);\n\n const router = useRouter();\n\n const onTextChange = (newText) => {\n setSearchText(newText);\n };\n\n const debounceRef = useRef(null);\n const debounceTextChange = () => {\n console.log('debounceTextChange')\n setInputText(inputRef.current.value);\n if (debounceRef.current) clearTimeout(debounceRef.current);\n debounceRef.current = setTimeout(() => {\n onTextChange(inputRef.current.value);\n }, 500);\n };\n\n const inputRef = useRef(null);\n const formRef = useRef(null);\n\n const onDivClick = () => {\n setSearchText('');\n };\n\n useEffect(() => {\n inputRef.current.value = searchText;\n setInputText(searchText);\n }, [searchText]);\n\n const handleSubmit = () => {\n const query = inputRef.current.value;\n setIsFocused(false);\n console.log('onSubmit', query);\n inputRef.current.blur();\n onSubmit(query);\n typeof mixpanel !== 'undefined' && mixpanel.track(\"SearchSubmit\", {query});\n\n };\n\n const resetInput = () => {\n inputRef.current.value = '';\n inputRef.current.focus();\n setInputText('');\n onTextChange('');\n };\n\n return (\n