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jDE,KAAMA,EACN3E,WAAS,EACT6E,SAAS,aACT5E,SAAS,8BACT,WAAUwE,GAEV3M,EAAAA,cAAA,WAASG,UCnB+C,QDmBzBgG,QAASA,GACtCnG,EAAAA,cAAA,MAAI+M,SAAS,QAAQN,GACrBzM,EAAAA,cAAA,QAAMG,UCrB8B,SDsBlCH,EAAAA,cAACC,EAAAA,EAAO,CAACiJ,IAAK8D,MAGlBhN,EAAAA,cAAA,OAAKG,UCzBoE,QDyB/C+H,WAAS,EAAC6E,SAAS,iBAAiB5E,SAAS,6BACrEnI,EAAAA,cAAA,OAAK+M,SAAS,QAAQH,EAAkB5M,EAAAA,cAACiN,EAAAA,EAAoB,CAACnC,SAAU4B,IAAaA,IAE/E,C,sBE5Bd,KAAgB,KAAO,QAAQ,MAAQ,QAAQ,KAAO,Q,iECCvC,MAAMQ,UAA0BC,MAC7CC,WAAAA,GAAoC,IAAxBnI,EAACmG,UAAAjG,OAAA,QAAAkG,IAAAD,UAAA,GAAAA,UAAA,GAAG,mBACdiC,MAAMpI,GACNqI,KAAKC,cAAgBtI,EACrBqI,KAAKtD,KAAO,oBACZsD,KAAK7H,KAP4B,GAQnC,E","sources":["webpack://web-pwa/./src/domain/search/SearchInputIcon.less?d80b","webpack://web-pwa/./src/domain/search/SearchInputIcon.jsx","webpack://web-pwa/./src/domain/header/QuickSearchInput.jsx","webpack://web-pwa/./src/domain/header/QuickSearchInput.less?9e32","webpack://web-pwa/./src/domain/header/SearchInput.less?f742","webpack://web-pwa/./src/domain/header/SearchInput.jsx","webpack://web-pwa/./src/domain/utils/usePrevious.js","webpack://web-pwa/./src/domain/header/ItineraryButton.jsx","webpack://web-pwa/./src/domain/address/AddressHeaderForm.jsx","webpack://web-pwa/./src/domain/address/AddressHeaderForm.less?9671","webpack://web-pwa/./src/domain/seo/FAQ/FaqContainer.jsx","webpack://web-pwa/./src/domain/seo/MetaTags.jsx","webpack://web-pwa/./src/domain/ui/HTMLTextFromMarkdown.jsx","webpack://web-pwa/./src/domain/ui/HTMLTextFromMarkdown.less?88ed","webpack://web-pwa/./src/domain/seo/footer/common/topSearchLayerPages.js","webpack://web-pwa/./src/domain/seo/FAQ/FaqItem.jsx","webpack://web-pwa/./src/domain/seo/FAQ/FaqItem.less?f19d","webpack://web-pwa/./src/domain/seo/FAQ/Faq.less?4d59","webpack://web-pwa/./src/domain/error/PageNotFoundError.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"common\":\"XwtJj\",\"icon\":\"ngGSR\"};","import classnames from 'classnames'\nimport React from 'react'\nimport { useSelector } from 'react-redux'\nimport { selectGeoentityIconFromRouteOptions } from '../../store/poiassets/poiassets.selectors'\nimport SVGIcon from '../svg/SVGIcon'\nimport s from './SearchInputIcon.less'\n\nfunction SearchInputIcon() {\n const { iconId, mob_roundImage } = useSelector(selectGeoentityIconFromRouteOptions)\n if (iconId) return \n return <>>\n}\n\nexport default SearchInputIcon\n","import React, { useCallback, useRef } from 'react'\nimport s from './QuickSearchInput.less'\n\nconst QuickSearchInput = ({ searchInputRef, onChange }) => {\n const quickInputRef = useRef()\n\n const handleChange = useCallback(\n event => {\n searchInputRef.current.focus()\n onChange({ value: event.target.value })\n quickInputRef.current.value = ''\n },\n [searchInputRef, onChange, quickInputRef]\n )\n return \n}\n\nexport default QuickSearchInput\n","// extracted by mini-css-extract-plugin\nexport default {\"root\":\"ofhDU\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"ptu98\",\"transparent\":\"pzs6I\",\"homePageContainer\":\"i7nEr\",\"prefix\":\"PeGRg\",\"field\":\"SLh43\",\"greenPlaceholder\":\"o0B0M\",\"whitePlaceholder\":\"xoOtT\",\"throbber\":\"HB2G0\",\"withIcon\":\"SY57p\",\"btnOk\":\"CN2Sb\"};","import classNames from 'classnames'\nimport React, { forwardRef, useCallback, useEffect, useImperativeHandle, useRef, useState } from 'react'\nimport { useDispatch, useSelector } from 'react-redux'\nimport { ROUTE_SUGGEST } from '../../routes'\nimport { navigateTo } from '../../store/history/history.actions'\nimport { selectCurrentHistoryRoute, selectIsHomePage } from '../../store/history/history.selectors'\nimport { selectHasSearchIconFromRouteOptions } from '../../store/poiassets/poiassets.selectors'\nimport { setSearchTerms } from '../../store/search/searchSlice'\nimport { suggest } from '../../store/suggest/suggest.actions'\nimport { UI_ELEMENTS } from '../../store/ui/ui.constants'\nimport { isGE } from '../Device'\nimport Throbber from '../loading/Throbber'\nimport { isPagelessRoute } from '../router/routeUtils'\nimport SearchInputIcon from '../search/SearchInputIcon'\nimport useUIDisplay from '../ui/useUIDisplay'\nimport { useAction } from '../utils/react-redux'\nimport useDebounce from '../utils/useDebounce'\nimport { usePrevious } from '../utils/usePrevious'\nimport QuickSearchInput from './QuickSearchInput'\nimport s from './SearchInput.less'\n\nconst SearchInput = forwardRef((props, ref) => {\n const {\n value,\n loading,\n onChange,\n onFocus,\n suggestFilterType,\n className,\n placeholder,\n idx = 0,\n prefix,\n hasGreenPlaceholder = false,\n navigateToSuggestOnFocus = true,\n isFirstStepToFill = true,\n transparent\n } = props\n\n const dispatch = useDispatch()\n const [hasFocus, setFocus] = useState(false)\n const route = useSelector(selectCurrentHistoryRoute)\n const hasIcon = useSelector(selectHasSearchIconFromRouteOptions)\n const prevRoute = usePrevious(route)\n const execSuggest = useAction(suggest)\n const execNavigateTo = useAction(navigateTo)\n const [isReady, setIsReady] = useState(false)\n const inputRef = useRef()\n const debouncedValue = useDebounce(value, 250)\n const hasDebouncedValueChangeOnce = useRef(false) // to ignore suggest on first render\n const isBtnOkDisplayed = isGE() && route === ROUTE_SUGGEST && !loading\n const isQuickSearch = isGE() && !hasFocus && (!value || value === '') && isFirstStepToFill\n const inputId = `SearchInput${idx}`\n const { showUI } = useUIDisplay(UI_ELEMENTS.SUGGEST)\n const isHomePage = useSelector(selectIsHomePage)\n\n const onSubmit = useCallback(() => {\n dispatch(setSearchTerms(value))\n return Promise.resolve().then(() => blur())\n }, [value])\n\n useImperativeHandle(ref, () => {\n return { onSubmit }\n })\n\n useEffect(() => {\n if (__BROWSER__) setIsReady(true)\n }, [__BROWSER__])\n\n useEffect(() => {\n if (route !== prevRoute && isPagelessRoute(prevRoute) && !isPagelessRoute(route)) {\n blur()\n }\n }, [route])\n\n const doSuggest = val => {\n dispatch(setSearchTerms(val))\n return execSuggest({ terms: val, suggestFilterType })\n }\n\n useEffect(() => {\n if (hasDebouncedValueChangeOnce.current && hasFocus) {\n doSuggest(debouncedValue)\n }\n hasDebouncedValueChangeOnce.current = true\n }, [hasFocus, debouncedValue])\n\n const handleChange = event => {\n onChange?.({ value: event.target.value })\n }\n\n const handleFocus = useCallback(\n e => {\n setTimeout(() => {\n if (value.length !== 0) e.target.select()\n }, 0)\n if (navigateToSuggestOnFocus) execNavigateTo({ route: ROUTE_SUGGEST })\n showUI()\n onFocus?.()\n setFocus(true)\n },\n [execNavigateTo, showUI, doSuggest, onFocus, setFocus]\n )\n\n const blur = useCallback(() => {\n inputRef?.current?.blur()\n setFocus(false)\n }, [inputRef, setFocus])\n\n return (\n