1import{f as e}from"./C-yxSQ4o.js";import{f as t,h as n}from"./X-NwOT42.js";import{M as r,U as i,it as a,ot as o,rt as s}from"./B_6Cc6Zx.js";import{m as c}from"./D-i8Vb5I.js";import{t as l}from"./EDyYwMGe.js";import{t as u}from"./DlpAYcNh2.js";import{n as d}from"./gkDHeGlV2.js";import{t as f}from"./C1x9k7IO2.js";import{t as p}from"./C0YRZMwv.js";import{t as m}from"./BOC6ZNE1.js";var h={en:{searchForm:{location:{title:`Location`,where:`Where`,search:`Search destinations`,nearby:`Nearby`,nearbySubtitle:`Find what's around you`,suggestedDestinations:`Suggested destinations`,collapsed:{campgroundsNear:`Campgrounds near {name}`,campgroundsNearby:`Campgrounds nearby`,rvsInMapArea:`RVs in map area`,rvsNear:`RVs near {name}`,rvsNearby:`RVs nearby`}},dates:{title:`Dates`,when:`When`,add:`Add dates`,anyDates:`Any dates`},guests:{title:`Guests`,who:`Who`,add:`Add guests`,count:`0 guests | 1 guest | {n} guests`,petsSuffix:`⢠pets`},rentalType:{title:`Rental type`,allRVs:`All RVs`,drivable:`Drivable`,towable:`Towable`,delivery:`Delivery`,descriptions:{allRVs:`Just looking for a rental?`,drivable:`Drive a motorhome yourself`,towable:`Tow a trailer with your vehicle`,delivery:`Get an RV delivered anywhere`}}}},fr:{searchForm:{location:{title:`Endroit`,where:`Où`,search:`Rechercher un endroit`,nearby:`à proximité`,nearbySubtitle:`Découvrez ce qu'il y a autour de vous`,suggestedDestinations:`Destinations suggérées`,collapsed:{campgroundsNear:`{name} : Campings`,campgroundsNearby:`Campings à proximité`,rvsInMapArea:`VRs sur la carte`,rvsNear:`{name} : VRs`,rvsNearby:`VRs à proximité`}},dates:{title:`Dates`,when:`Quand`,add:`Dates`,anyDates:`Dates flexibles`},guests:{title:`Invités`,who:`Qui`,add:`Qui vient?`,count:`0 invité | 1 invité | {n} invités`,petsSuffix:`⢠animaux`},rentalType:{title:`Type de location`,allRVs:`Tous les VRs`,drivable:`Motorisés`,towable:`Roulottes`,delivery:`Livraison`,descriptions:{allRVs:`Vous cherchez simplement une location?`,drivable:`Conduisez un motorisé vous-même`,towable:`Remorquez une roulotte avec votre véhicule`,delivery:`Faites livrer un VR n'importe où`}}}}};function g(){let g=i(),_=r(),v=u(),y=n(),{isRenderedRvRentalPage:b}=f(),{geolocation:x,isInCaOrUs:S}=l(),{t:C}=d({useScope:`global`,messages:h}),{formatAsShortDateRange:w}=m();function T(){_.value=!0}function E(){_.value=!1}let D=e(()=>[g.value.location?.name,g.value.location?.streetName,g.value.location?.city,g.value.location?.regionCode,g.value.location?.country].filter(Boolean).join(`, `)),O=e(()=>g.value.location?.name?C(`searchForm.location.collapsed.campgroundsNear`,{name:g.value.location.name}):C(`searchForm.location.collapsed.campgroundsNearby`)),k=e(()=>g.value.bounds?C(`searchForm.location.collapsed.rvsInMapArea`):g.value.location?.name?C(`searchForm.location.collapsed.rvsNear`,{name:g.value.location.name}):C(`searchForm.location.collapsed.rvsNearby`)),A=e(()=>{let{start:e,end:t}=g.value.dates??{};return e&&t?w(e,t):C(`searchForm.dates.anyDates`)}),j=e(()=>{let e=g.value.guests;return e?.adults||e?.children||e?.petFriendly?`${C(`searchForm.guests.count`,{n:(e.adults??0)+(e.children??0)})}`:C(`searchForm.guests.add`)}),M=e(()=>p(g.value)),N=e(()=>M.value?C(`searchForm.rentalType.${M.value}`):C(`searchForm.rentalType.allRVs`));async function P({PlaceId:e}){await t(v({name:c.campgrounds_search,query:{...y.query,PlaceId:e,NeLat:void 0,NeLng:void 0,SwLat:void 0,SwLng:void 0,page:void 0}}))}async function F(e={}){await t(v({name:c.rv_search,query:{...b.value?{}:{...y.query},...o(e),Page:e.Page&&e.Page>1?e.Page:void 0}}))}async function I(){await F(Object.fromEntries(s.map(e=>[e,void 0])))}return{appliedRentalType:M,searchData:g,isMenuFilterApplied:_,locationLabel:D,collapsedCampgroundsLocationLabel:O,collapsedRvsLocationLabel:k,collapsedDatesLabel:A,collapsedGuestsLabel:j,collapsedRentalTypeLabel:N,rvSearchApiRequestParams:e(()=>a(g.value,{geolocation:x.value,isInCaOrUs:S.value})),applyMenuFilter:T,clearRvSearchFilters:I,navigateToCampgroundsSearch:P,navigateToRvSearch:F,resetMenuFilter:E}}export{h as n,g as t}; 2//# sourceMappingURL=DXDGbicJ.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.