{"version":3,"file":"index.62063113.js","sources":["../../../../../../../node_modules/@babylon/ui-kit-searchers/esm/components/searchers/searcher-ferry-hotel/components/location-input/useLocationInput.mjs","../../../../../../../node_modules/@babylon/ui-kit-searchers/esm/components/searchers/searcher-ferry-hotel/components/location-input/index.mjs","../../../../../../../node_modules/@babylon/ui-kit-searchers/esm/components/searchers/searcher-ferry-hotel/views/mobile/index.mjs"],"sourcesContent":["import { useMemo } from 'react';\nimport { useSearcherFerryHotelProps } from '../../context/index.mjs';\nimport useDestinationInput from '../destination-input/useDestinationInput.mjs';\nimport useOriginInput from '../origin-input/useOriginInput.mjs';\n\nconst useLocationInput = () => {\n const props = useSearcherFerryHotelProps();\n const { config } = props ?? {};\n const { literals } = config ?? {};\n const { locationLabel = \"\" } = literals ?? {};\n const originInput = useOriginInput();\n const destinationInput = useDestinationInput();\n const formLocationLiterals = useMemo(\n () => ({\n ...literals,\n tabContentOrigin: \"\",\n tabContentDestination: \"\",\n locationTitle: locationLabel || \"\"\n }),\n [literals, locationLabel]\n );\n return useMemo(\n () => ({\n literals: formLocationLiterals,\n origin: originInput,\n destination: destinationInput,\n variant: \"select\",\n originValidate: originInput.validate,\n destinationValidate: destinationInput.validate\n }),\n [destinationInput, formLocationLiterals, originInput]\n );\n};\n\nexport { useLocationInput as default };\n","import { jsx } from 'react/jsx-runtime';\nimport { FormLocation } from '@babylon/ui-kit-forms/components/inputs/location';\nimport useLocationInput from './useLocationInput.mjs';\n\nconst SearcherFerryHotelLocationInput = () => {\n const locationInput = useLocationInput();\n return /* @__PURE__ */ jsx(FormLocation, { ...locationInput });\n};\n\nexport { SearcherFerryHotelLocationInput as default };\n","import { jsx, jsxs } from 'react/jsx-runtime';\nimport { Searcher } from '../../../../others/searcher/index.mjs';\nimport { SearcherItem } from '../../../../others/searcher/styled.mjs';\nimport SearcherFerryHotelAccommodationInput from '../../components/accommodation-input/index.mjs';\nimport SearcherFerryHotelButton from '../../components/button/index.mjs';\nimport SearcherFerryHotelDatesInput from '../../components/dates-input/index.mjs';\nimport SearcherFerryHotelLocationInput from '../../components/location-input/index.mjs';\nimport SearcherFerryHotelForm from '../../components/searcher-form/index.mjs';\nimport SearcherFerryHotelVehicleInput from '../../components/vehicle-input/index.mjs';\n\nconst SearcherFerryHotelMobileView = () => /* @__PURE__ */ jsxs(Searcher, { \"data-testid\": \"SearcherFerryHotel\", children: [\n /* @__PURE__ */ jsx(SearcherItem, { children: /* @__PURE__ */ jsx(SearcherFerryHotelLocationInput, {}) }),\n /* @__PURE__ */ jsx(SearcherItem, { children: /* @__PURE__ */ jsx(SearcherFerryHotelDatesInput, {}) }),\n /* @__PURE__ */ jsx(SearcherItem, { children: /* @__PURE__ */ jsx(SearcherFerryHotelAccommodationInput, {}) }),\n /* @__PURE__ */ jsx(SearcherItem, { children: /* @__PURE__ */ jsx(SearcherFerryHotelVehicleInput, {}) }),\n /* @__PURE__ */ jsx(SearcherFerryHotelButton, {})\n] });\nconst SearcherFerryHotelMobile = (props) => /* @__PURE__ */ jsx(SearcherFerryHotelForm, { ...props, children: /* @__PURE__ */ jsx(SearcherFerryHotelMobileView, {}) });\n\nexport { SearcherFerryHotelMobile as default };\n"],"names":["useLocationInput","props","useSearcherFerryHotelProps","config","literals","locationLabel","originInput","useOriginInput","destinationInput","useDestinationInput","formLocationLiterals","useMemo","SearcherFerryHotelLocationInput","locationInput","jsx","FormLocation","SearcherFerryHotelMobileView","jsxs","Searcher","SearcherItem","SearcherFerryHotelDatesInput","SearcherFerryHotelAccommodationInput","SearcherFerryHotelVehicleInput","SearcherFerryHotelButton","SearcherFerryHotelMobile","SearcherFerryHotelForm"],"mappings":"gKAKA,MAAMA,EAAmB,IAAM,CAC7B,MAAMC,EAAQC,IACR,CAAE,OAAAC,CAAM,EAAKF,GAAS,GACtB,CAAE,SAAAG,CAAQ,EAAKD,GAAU,GACzB,CAAE,cAAAE,EAAgB,IAAOD,GAAY,CAAA,EACrCE,EAAcC,IACdC,EAAmBC,IACnBC,EAAuBC,EA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