{"version":3,"file":"index.Ba1gExXp.js","sources":["../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/accommodation-input/views/mobile/index.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/button/views/mobile/index.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/dates-input/views/mobile/hooks/useDatesInput.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/dates-input/views/mobile/index.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/location-input/hooks/useLocationInput.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/components/location-input/index.js","../../../../../../../node_modules/@babylon/ui-kit-searchers/components/searchers/searcher-train-hotel/views/mobile/index.js"],"sourcesContent":["import { jsx } from 'react/jsx-runtime';\nimport { FormAccommodationWithDiscountsMobile } from '@babylon/ui-kit-forms/components/inputs/accommodation/variants/with-discounts/views/mobile';\nimport useAccommodationInput from '../../hooks/useAccommodationInput.js';\n\nconst SearcherTrainHotelAccommodationInputMobile = ()=>/*#__PURE__*/ jsx(FormAccommodationWithDiscountsMobile, {\n ...useAccommodationInput()\n });\n\nexport { SearcherTrainHotelAccommodationInputMobile as default };\n","import { jsx } from 'react/jsx-runtime';\nimport SearcherButtonMobile from '../../../../../../others/searcher/searcher-button/views/mobile/index.js';\nimport useButton from '../../hooks/useButton.js';\n\nconst SearcherTrainHotelButtonMobile = ()=>/*#__PURE__*/ jsx(SearcherButtonMobile, {\n ...useButton()\n });\n\nexport { SearcherTrainHotelButtonMobile as default };\n","import { useSearcherDatesRangeMobile } from '../../../../../../../../hooks/inputs/useSearcherDates.js';\nimport { useSearcherTrainHotelProps } from '../../../../../context/index.js';\nimport useDatesInput from '../../../hooks/useDatesInput.js';\n\nconst useDatesInputMobile = ()=>{\n const { config } = useSearcherTrainHotelProps();\n const { literals, onModal = false } = config ?? {};\n const { checkIn = '', checkOut = '', checkInLabel = '', accept = '' } = literals ?? {};\n return useSearcherDatesRangeMobile({\n ...useDatesInput(),\n startDateLabel: checkIn,\n endDateLabel: checkOut,\n modalTitle: checkInLabel,\n modalConfirm: accept,\n showMonths: onModal ? 1 : 2,\n options: {\n static: onModal\n }\n });\n};\n\nexport { useDatesInputMobile as default };\n","import { jsx } from 'react/jsx-runtime';\nimport { FormCalendarMobile } from '@babylon/ui-kit-forms/components/inputs/calendar/views/mobile';\nimport useDatesInputMobile from './hooks/useDatesInput.js';\n\nconst SearcherTrainHotelDatesInputMobile = ()=>/*#__PURE__*/ jsx(FormCalendarMobile, {\n ...useDatesInputMobile()\n });\n\nexport { SearcherTrainHotelDatesInputMobile as default };\n","import { useSearcherTrainHotelProps } from '../../../context/index.js';\nimport useDestinationInput from '../../destination-input/hooks/useDestinationInput.js';\nimport useOriginInput from '../../origin-input/hooks/useOriginInput.js';\n\nconst useLocationInput = ()=>{\n const { config } = useSearcherTrainHotelProps();\n const { literals } = config ?? {};\n const originInput = useOriginInput();\n const destinationInput = useDestinationInput();\n return {\n literals,\n origin: originInput,\n destination: destinationInput,\n originValidate: originInput.validate,\n destinationValidate: destinationInput.validate\n };\n};\n\nexport { useLocationInput as default };\n","import { jsx } from 'react/jsx-runtime';\nimport { FormLocationMobile } from '@babylon/ui-kit-forms/components/inputs/location/views/mobile';\nimport useLocationInput from './hooks/useLocationInput.js';\n\nconst SearcherTrainHotelLocationInputMobile = ()=>/*#__PURE__*/ jsx(FormLocationMobile, {\n ...useLocationInput()\n });\n\nexport { SearcherTrainHotelLocationInputMobile as default };\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport Searcher from '../../../../others/searcher/index.js';\nimport { SearcherItem } from '../../../../others/searcher/styled.js';\nimport SearcherTrainHotelAccommodationInputMobile from '../../components/accommodation-input/views/mobile/index.js';\nimport SearcherTrainHotelButtonMobile from '../../components/button/views/mobile/index.js';\nimport SearcherTrainHotelDatesInputMobile from '../../components/dates-input/views/mobile/index.js';\nimport SearcherTrainHotelLocationInputMobile from '../../components/location-input/index.js';\nimport SearcherTrainHotelForm from '../../components/searcher-form/index.js';\n\nconst SearcherTrainHotelMobileView = ()=>/*#__PURE__*/ jsxs(Searcher, {\n \"data-testid\": \"SearcherTrainHotel\",\n children: [\n /*#__PURE__*/ jsx(SearcherItem, {\n children: /*#__PURE__*/ jsx(SearcherTrainHotelLocationInputMobile, {})\n }),\n /*#__PURE__*/ jsx(SearcherItem, {\n children: /*#__PURE__*/ jsx(SearcherTrainHotelDatesInputMobile, {})\n }),\n /*#__PURE__*/ jsx(SearcherItem, {\n children: /*#__PURE__*/ jsx(SearcherTrainHotelAccommodationInputMobile, {})\n }),\n /*#__PURE__*/ jsx(SearcherTrainHotelButtonMobile, {})\n ]\n });\nconst SearcherTrainHotelMobile = (props)=>/*#__PURE__*/ jsx(SearcherTrainHotelForm, {\n ...props,\n children: /*#__PURE__*/ jsx(SearcherTrainHotelMobileView, {})\n });\n\nexport { SearcherTrainHotelMobile as default };\n"],"names":["SearcherTrainHotelAccommodationInputMobile","jsx","FormAccommodationWithDiscountsMobile","useAccommodationInput","SearcherTrainHotelButtonMobile","SearcherButtonMobile","useButton","useDatesInputMobile","config","useSearcherTrainHotelProps","literals","onModal","checkIn","checkOut","checkInLabel","accept","useSearcherDatesRangeMobile","useDatesInput","SearcherTrainHotelDatesInputMobile","FormCalendarMobile","useLocationInput","originInput","useOriginInput","destinationInput","useDestinationInput","SearcherTrainHotelLocationInputMobile","FormLocationMobile","SearcherTrainHotelMobileView","jsxs","Searcher","SearcherItem","SearcherTrainHotelMobile","props","SearcherTrainHotelForm"],"mappings":"0QAIA,MAAMA,EAA6C,IAAkBC,EAAG,IAACC,EAAsC,CACvG,GAAGC,EAAuB,CAClC,CAAK,ECFCC,EAAiC,IAAkBH,EAAG,IAACI,EAAsB,CAC3E,GAAGC,EAAW,CACtB,CAAK,ECFCC,EAAsB,IAAI,CAC5B,KAAM,CAAE,OAA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