{"version":3,"file":"index.DMybNkGW.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 ...literals,\n tabContentOrigin: '',\n tabContentDestination: '',\n locationTitle: locationLabel || ''\n }), [\n literals,\n locationLabel\n ]);\n return useMemo(()=>({\n literals: formLocationLiterals,\n origin: originInput,\n destination: destinationInput,\n variant: 'select',\n originValidate: originInput.validate,\n destinationValidate: destinationInput.validate\n }), [\n destinationInput,\n formLocationLiterals,\n 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, {\n ...locationInput\n });\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 SearcherFerryHotelDifferentZoneCheckbox from '../../components/different-zone-checkbox/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';\nimport SearcherFlightHotelZoneInput from '../../components/zone-input/index.mjs';\nimport { useSearcherFerryHotelState } from '../../context/index.mjs';\n\nconst SearcherFerryHotelMobileView = ()=>{\n const state = useSearcherFerryHotelState();\n const { differentZoneValue } = state ?? {};\n return /*#__PURE__*/ jsxs(Searcher, {\n \"data-testid\": \"SearcherFerryHotel\",\n children: [\n /*#__PURE__*/ jsx(SearcherItem, {\n children: /*#__PURE__*/ jsx(SearcherFerryHotelLocationInput, {})\n }),\n /*#__PURE__*/ jsx(SearcherItem, {\n children: /*#__PURE__*/ jsx(SearcherFerryHotelDifferentZoneCheckbox, {})\n }),\n differentZoneValue && /*#__PURE__*/ jsx(SearcherItem, {\n children: /*#__PURE__*/ jsx(SearcherFlightHotelZoneInput, {})\n }),\n /*#__PURE__*/ jsx(SearcherItem, {\n children: /*#__PURE__*/ jsx(SearcherFerryHotelDatesInput, {})\n }),\n /*#__PURE__*/ jsx(SearcherItem, {\n children: /*#__PURE__*/ jsx(SearcherFerryHotelAccommodationInput, {})\n }),\n /*#__PURE__*/ jsx(SearcherItem, {\n children: /*#__PURE__*/ jsx(SearcherFerryHotelVehicleInput, {})\n }),\n /*#__PURE__*/ jsx(SearcherFerryHotelButton, {})\n ]\n });\n};\nconst SearcherFerryHotelMobile = (props)=>/*#__PURE__*/ jsx(SearcherFerryHotelForm, {\n ...props,\n children: /*#__PURE__*/ jsx(SearcherFerryHotelMobileView, {})\n });\n\nexport { SearcherFerryHotelMobile as default };\n"],"names":["useLocationInput","props","useSearcherFerryHotelProps","config","literals","locationLabel","originInput","useOriginInput","destinationInput","useDestinationInput","formLocationLiterals","useMemo","SearcherFerryHotelLocationInput","locationInput","jsx","FormLocation","SearcherFerryHotelMobileView","state","useSearcherFerryHotelState","differentZoneValue","jsxs","Searcher","SearcherItem","SearcherFerryHotelDifferentZoneCheckbox","SearcherFlightHotelZoneInput","SearcherFerryHotelDatesInput","SearcherFerryHotelAccommodationInput","SearcherFerryHotelVehicleInput","SearcherFerryHotelButton","SearcherFerryHotelMobile","SearcherFerryHotelForm"],"mappings":"qLAKA,MAAMA,EAAmB,IAAI,CACzB,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,EAAAA,QAAQ,KAAK,CAClC,GAAGP,EACH,iBAAkB,GAClB,sBAAuB,GACvB,cAAeC,GAAiB,EAC5C,GAAY,CACJD,EACAC,CACR,CAAK,EACD,OAAOM,EAAO,QAAC,KAAK,CACZ,SAAUD,EACV,OAAQJ,EACR,YAAaE,EACb,QAAS,SACT,eAAgBF,EAAY,SAC5B,oBAAqBE,EAAiB,QAClD,GAAY,CACJA,EACAE,EACAJ,CACR,CAAK,CACL,EC7BMM,EAAkC,IAAI,CACxC,MAAMC,EAAgBb,IACtB,OAAqBc,EAAAA,IAAIC,EAAc,CACnC,GAAGF,CACX,CAAK,CACL,ECIMG,EAA+B,IAAI,CACrC,MAAMC,EAAQC,IACR,CAAE,mBAAAC,CAAkB,EAAKF,GAAS,GACxC,OAAqBG,EAAAA,KAAKC,EAAU,CAChC,cAAe,qBACf,SAAU,CACQP,EAAAA,IAAIQ,EAAc,CAC5B,SAAwBR,EAAAA,IAAIF,EAAiC,EAAE,CAC/E,CAAa,EACaE,EAAAA,IAAIQ,EAAc,CAC5B,SAAwBR,EAAAA,IAAIS,EAAyC,EAAE,CACvF,CAAa,EACDJ,GAAoCL,EAAG,IAACQ,EAAc,CAClD,SAAwBR,EAAA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