{"version":3,"file":"index.DBYm3Xsk.js","sources":["../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/accommodation-input/views/desktop/hooks/useAccommodationInput.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/accommodation-input/views/desktop/index.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/button/views/desktop/index.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/dates-input/views/desktop/hooks/useDatesInput.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/dates-input/views/desktop/index.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/destination-input/index.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/origin-input/index.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/views/desktop/styled.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/views/desktop/index.js"],"sourcesContent":["import { useSearcherTrainHotelProps } from '../../../../../context/index.js';\nimport useAccommodationInput from '../../../hooks/useAccommodationInput.js';\n\nconst useAccommodationInputDesktop = ()=>{\n const { config } = useSearcherTrainHotelProps();\n const { onModal = false } = config ?? {};\n return {\n ...useAccommodationInput(),\n tooltipOptions: {\n strategy: onModal ? 'fixed' : undefined\n }\n };\n};\n\nexport { useAccommodationInputDesktop as default };\n//# sourceMappingURL=useAccommodationInput.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport { FormAccommodationWithDiscountsDesktop } from '@babylon/ui-kit-forms/components/inputs/accommodation/variants/with-discounts/views/desktop';\nimport useAccommodationInputDesktop from './hooks/useAccommodationInput.js';\n\nconst SearcherTrainHotelAccommodationInputDesktop = ()=>/*#__PURE__*/ jsx(FormAccommodationWithDiscountsDesktop, {\n ...useAccommodationInputDesktop()\n });\n\nexport { SearcherTrainHotelAccommodationInputDesktop as default };\n//# sourceMappingURL=index.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport SearcherButtonDesktop from '../../../../../../others/searcher/searcher-button/views/desktop/index.js';\nimport useButton from '../../hooks/useButton.js';\n\nconst SearcherTrainHotelButtonDesktop = ()=>/*#__PURE__*/ jsx(SearcherButtonDesktop, {\n ...useButton()\n });\n\nexport { SearcherTrainHotelButtonDesktop as default };\n//# sourceMappingURL=index.js.map\n","import { useSearcherDatesRangeDesktop } from '../../../../../../../../hooks/inputs/useSearcherDates.js';\nimport { useSearcherTrainHotelProps } from '../../../../../context/index.js';\nimport useDatesInput from '../../../hooks/useDatesInput.js';\n\nconst useDatesInputDesktop = ()=>{\n const { config } = useSearcherTrainHotelProps();\n const { literals, onModal = false } = config ?? {};\n const { calendarLabel = '' } = literals ?? {};\n return useSearcherDatesRangeDesktop({\n ...useDatesInput(),\n label: calendarLabel,\n showMonths: onModal ? 1 : 2,\n options: {\n static: onModal\n }\n });\n};\n\nexport { useDatesInputDesktop as default };\n//# sourceMappingURL=useDatesInput.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport { FormCalendarDesktop } from '@babylon/ui-kit-forms/components/inputs/calendar/views/desktop';\nimport useDatesInputDesktop from './hooks/useDatesInput.js';\n\nconst SearcherTrainHotelDatesInputDesktop = ()=>/*#__PURE__*/ jsx(FormCalendarDesktop, {\n ...useDatesInputDesktop()\n });\n\nexport { SearcherTrainHotelDatesInputDesktop as default };\n//# sourceMappingURL=index.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport { FormAutocompleteDesktop } from '@babylon/ui-kit-forms/components/inputs/autocomplete/views/desktop';\nimport useDestinationInput from './hooks/useDestinationInput.js';\n\nconst SearcherTrainHotelDestinationInputDesktop = ()=>/*#__PURE__*/ jsx(FormAutocompleteDesktop, {\n ...useDestinationInput()\n });\n\nexport { SearcherTrainHotelDestinationInputDesktop as default };\n//# sourceMappingURL=index.js.map\n","import { jsx } from 'react/jsx-runtime';\nimport { FormAutocompleteDesktop } from '@babylon/ui-kit-forms/components/inputs/autocomplete/views/desktop';\nimport useOriginInput from './hooks/useOriginInput.js';\n\nconst SearcherTrainHotelOriginInputDesktop = ()=>/*#__PURE__*/ jsx(FormAutocompleteDesktop, {\n ...useOriginInput()\n });\n\nexport { SearcherTrainHotelOriginInputDesktop as default };\n//# sourceMappingURL=index.js.map\n","import styled from 'styled-components';\nimport { SearcherItem } from '../../../../others/searcher/styled.js';\n\nconst SearcherTrainHotelCalendarItem = /*#__PURE__*/ styled(SearcherItem).withConfig({\n displayName: \"SearcherTrainHotelCalendarItem\"\n})([\n ``,\n `{max-width:calc(100% - (20% * 3) - 150px - (var(--division-gap) * 2));}`\n], ({ theme })=>theme.media.desktop.up);\n\nexport { SearcherTrainHotelCalendarItem };\n//# sourceMappingURL=styled.js.map\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport Searcher from '../../../../others/searcher/index.js';\nimport { SearcherItem, SearcherItemWithMaxWidth } from '../../../../others/searcher/styled.js';\nimport SearcherTrainHotelAccommodationInputDesktop from '../../components/accommodation-input/views/desktop/index.js';\nimport SearcherTrainHotelButtonDesktop from '../../components/button/views/desktop/index.js';\nimport SearcherTrainHotelDatesInputDesktop from '../../components/dates-input/views/desktop/index.js';\nimport SearcherTrainHotelDestinationInputDesktop from '../../components/destination-input/index.js';\nimport SearcherTrainHotelOriginInputDesktop from '../../components/origin-input/index.js';\nimport SearcherTrainHotelForm from '../../components/searcher-form/index.js';\nimport { useSearcherTrainHotelProps } from '../../context/index.js';\nimport { SearcherTrainHotelCalendarItem } from './styled.js';\n\nconst SearcherTrainHotelDesktopView = ()=>{\n const props = useSearcherTrainHotelProps();\n const { config, destination } = props ?? {};\n const { hideDestination = false, onModal = false } = config ?? {};\n return /*#__PURE__*/ jsxs(Searcher, {\n \"data-testid\": \"SearcherTrainHotel\",\n middleProps: {\n $isModal: onModal\n },\n children: [\n /*#__PURE__*/ jsx(SearcherItem, {\n $variant: \"larger\",\n children: /*#__PURE__*/ jsx(SearcherTrainHotelOriginInputDesktop, {})\n }),\n (!hideDestination || !destination) && /*#__PURE__*/ jsx(SearcherItem, {\n $variant: \"larger\",\n children: /*#__PURE__*/ jsx(SearcherTrainHotelDestinationInputDesktop, {})\n }),\n /*#__PURE__*/ jsx(SearcherTrainHotelCalendarItem, {\n $variant: \"larger\",\n $grow: true,\n children: /*#__PURE__*/ jsx(SearcherTrainHotelDatesInputDesktop, {})\n }),\n /*#__PURE__*/ jsx(SearcherItemWithMaxWidth, {\n $variant: \"larger\",\n children: /*#__PURE__*/ jsx(SearcherTrainHotelAccommodationInputDesktop, {})\n }),\n /*#__PURE__*/ jsx(SearcherTrainHotelButtonDesktop, {})\n ]\n });\n};\nconst SearcherTrainHotelDesktop = (props)=>/*#__PURE__*/ jsx(SearcherTrainHotelForm, {\n ...props,\n children: /*#__PURE__*/ jsx(SearcherTrainHotelDesktopView, {})\n });\n\nexport { SearcherTrainHotelDesktop as default };\n//# sourceMappingURL=index.js.map\n"],"names":["useAccommodationInputDesktop","config","useSearcherTrainHotelProps","onModal","useAccommodationInput","SearcherTrainHotelAccommodationInputDesktop","jsx","FormAccommodationWithDiscountsDesktop","SearcherTrainHotelButtonDesktop","SearcherButtonDesktop","useButton","useDatesInputDesktop","literals","calendarLabel","useSearcherDatesRangeDesktop","useDatesInput","SearcherTrainHotelDatesInputDesktop","FormCalendarDesktop","SearcherTrainHotelDestinationInputDesktop","FormAutocompleteDesktop","useDestinationInput","SearcherTrainHotelOriginInputDesktop","useOriginInput","SearcherTrainHotelCalendarItem","styled","SearcherItem","theme","SearcherTrainHotelDesktopView","props","destination","hideDestination","jsxs","Searcher","SearcherItemWithMaxWidth","SearcherTrainHotelDesktop","SearcherTrainHotelForm"],"mappings":"oRAGA,MAAMA,EAA+B,IAAI,CACrC,KAAM,CAAE,OAAAC,CAAQ,EAAGC,EAA4B,EACzC,CAAE,QAAAC,EAAU,EAAO,EAAGF,GAAU,CAAE,EACxC,MAAO,CACH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