@hotelcard/ui 0.0.39 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of @hotelcard/ui might be problematic. Click here for more details.
- package/README.md +44 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +493 -493
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,156 +1,156 @@
|
|
|
1
1
|
import { jsx as t, jsxs as s, Fragment as De } from "react/jsx-runtime";
|
|
2
|
-
import Bt, { useMemo as Ee, useContext as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { createPortal as
|
|
5
|
-
const
|
|
6
|
-
button:
|
|
7
|
-
link:
|
|
8
|
-
general:
|
|
9
|
-
label:
|
|
10
|
-
product:
|
|
11
|
-
subheadline:
|
|
12
|
-
form:
|
|
13
|
-
filter:
|
|
14
|
-
headline:
|
|
15
|
-
meta_title:
|
|
16
|
-
meta_description:
|
|
17
|
-
title:
|
|
2
|
+
import Bt, { useMemo as Ee, useContext as Xt, createContext as Ut, forwardRef as It, useState as $, useRef as me, useEffect as le, useCallback as Ue } from "react";
|
|
3
|
+
import { useTranslation as Qt } from "react-i18next";
|
|
4
|
+
import { createPortal as en } from "react-dom";
|
|
5
|
+
const tn = { order: "Bestellen", "order-navigation": "Bestellen", "order-hc": "HotelCard bestellen", "my-account": "Mein Konto", search: "Suchen", "back-to-top": "Nach oben" }, nn = { "member-benefits": "Member Benefits", "view-all-hotels": "Alle Hoteldeals ansehen", "search-by-map": "Kartenansicht", "search-by-region": "Hotels nach Region", "search-by-experience": "Hotels nach Erlebnis", "travel-inspiration": "Reiseinspiration", "booking-tips-and-tricks": "Buchungstipps", home: "Startseite", "all-hotel-deals": "Alle Hotelangebote", "search-results": "Suchergebnisse" }, rn = { "signed-out": "Anmelden und buchen", "room-price": "ab CHF xxx / Zimmer", guarantee: "14 Tage Geld-zurück-Garantie", contact: "Weitere Fragen? Kontaktieren Sie uns.", "breakfast-included": "Frühstück inbegriffen", "free-cancellation": "Kostenlose Stornierung", "suggested-destinations": "Vorgeschlagene Reiseziele", "when-months": "Wann möchtest du reisen?", "hotel-deals-found": "Hotelangebote gefunden", "no-results": "Probieren Sie andere Reiseziele, ändern Sie Ihre Daten oder entfernen Sie einige Filter.", "unavailable-for-selected-days": "Für die ausgewählten Daten nicht verfügbar.", "cant-accommodate-all": "Das Hotel kann nicht alle Gäste beherbergen.", "reset-destination": "Zielsuche zurücksetzen, um Regionen zu filtern" }, an = { "price-from": "ab ", "price-for": "/ Zimmer", "per-room-night": "pro Zimmer & Nacht ab", new: "Neu", anytime: "Jederzeit", anywhere: "Alle Reiseziele", dates: "Datum", flexible: "Flexibel", where: "Wohin", when: "Wann", who: "Wer", nearby: "In der Nähe", hotels: "Hotel", filter: "Filter", sort: "Sortieren", map: "Karte", rating: "Bewertung", "rating-excellent": "Ausgezeichnet", "rating-very-good": "Sehr gut", "rating-good": "Gut", "rating-fair": "Ansprechend", "rating-none": "Keine Bewertung", clear: "Löschen" }, on = { "6m": "6-Monatsabo", "1y": "1-Jahresabo", "2y": "2-Jahresabo", "3y": "3-Jahresabo", "price-6m": "79.-", "price-6m-disc": "59.-", "price-1y": "99.-", "price-1y-disc": "79.-", "price-2y": "198.-", "price-2y-disc": "173.-", "price-3y": "297.-", "price-3y-disc": "247.-", "price-gift": "99.-", "price-gift-disc": "59.-" }, sn = { "your-hc": "Ihre HotelCard", "popular-hotels": "Beliebte Hotelangebote", "no-results": "Probieren Sie andere Reiseziele, ändern Sie Ihre Daten oder entfernen Sie einige Filter.", "sort-by": "Sortieren nach" }, ln = { guests: "Gäste", guest: "Gast", adults: "Erwachsene", children: "Kinder", pet: "Haustier", "age-of-child": "Alter des Kindes", age: "Alter", "age-error": "Bitte wählen Sie das Alter aus" }, cn = { filters: "Filter", destination: "Reiseziel", experience: "Erlebnis", "show-all": "Alle anzeigen", price: "Preis", discount: "Rabatt", services: "Leistungen", meals: "Verpflegung", "hotel-category": "Hotelkategorie", reviews: "Bewertungen", mobility: "Mobilität", "wellness-spa": "Wellness & Spa", "price-high-low": "Preis: absteigend", "price-low-high": "Preis: aufsteigend", "best-rating": "Beste Bewertung", "most-popular": "Beliebt", "newest-hotels": "Neueste", relevance: "Relevanz", selected: "Ausgewählt:", "clear-all": "Alles löschen", options: "Leistungen", "hotellerie-suisse": "Klassifikation HotellerieSuisse", trustyou: "Bewertungen von Reisenden auf Trust You®", "select-all": "Alle auswählen", reset: "Zurücksetzen", "breakfast-included": "Frühstück inbegriffen" }, dn = { "no-results": "Zurzeit entsprechen keine Aufenthalte Ihrer Suche" }, un = "Hotels suchen - HotelCard", hn = "Suchen Sie nach Hotels nach Stadt, Region oder Hotelname", mn = "Suche", fn = "Hotels werden geladen...", gn = "Erneut versuchen", pn = "Karte schließen", wn = { default_title: "Hoteldeals suchen - HotelCard", location_title: "Hotels in {{location}}", region_title: "Hotels in {{region}}", experience_title: "{{experience}} Hotels", default_description: "Entdecken Sie {{count}} Hotels mit exklusiven HotelCard-Rabatten.", location_description: "Finden Sie {{count}} Hotels in {{location}} mit exklusiven Rabatten von bis zu 50%." }, _n = { close_search: "Suche schließen", placeholder_anywhere: "Überall", recent_searches: "Letzte Suchen", remove_recent: "Aus letzten Suchen entfernen", all_destinations: "Alle Reiseziele" }, vn = { open_search: "Suche öffnen", open_filters: "Filter öffnen", switch_to_list: "Zur Listenansicht wechseln", zoom_in: "Vergrößern", zoom_out: "Verkleinern", no_location_data: "Keine Hotels mit Standortdaten verfügbar", hotels_missing_coordinates: "{{count}} Hotels gefunden, aber Koordinaten fehlen", no_hotels_in_area: "Keine Hotels in diesem Gebiet gefunden" }, bn = { list: "Liste" }, Cn = { properties_found: "{{count}} Unterkünfte gefunden", properties_found_location: "{{location}}: {{count}} Unterkünfte gefunden" }, yn = { search_results_breadcrumb: "Suchergebnisse", close: "Schließen", previous_image: "Vorheriges Bild", next_image: "Nächstes Bild", add_to_favorites: "Zu Favoriten hinzufügen", remove_from_favorites: "Aus Favoriten entfernen", list_view: "Zur Listenansicht wechseln", map_view: "Zur Kartenansicht wechseln" }, Nn = { home: "Startseite" }, kn = { decrease_adults: "Erwachsene verringern", increase_adults: "Erwachsene erhöhen", decrease_children: "Kinder verringern", increase_children: "Kinder erhöhen", decrease_infants: "Kleinkinder verringern", increase_infants: "Kleinkinder erhöhen", toggle_infants: "Haustiere umschalten" }, xn = { location_placeholder: "Hotels, Städte, Regionen suchen...", distance_any: "- km", distance_5: "+ 5 km", distance_10: "+ 10 km", distance_20: "+ 20 km", distance_30: "+ 30 km", distance_50: "+ 50 km", searching: "Suche läuft...", reset_filters: "Filter zurücksetzen" }, Mn = { hotels: "Hotels", cities: "Städte", regions: "Regionen", countries: "Länder", "no-results": "Keine Ergebnisse gefunden" }, Ln = { show_filters: "Filter anzeigen", open_filters: "Filter öffnen", filter_by: "Filtern nach:", hotel_rating: "Hotelbewertung", show_results: "{{count}} Ergebnisse anzeigen", apply_filters: "Filter anwenden", close_filters: "Filter schließen", view_in_map: "Auf der Karte anzeigen", popular_filters: "Beliebte Filter", destinations: "Reiseziele", options_title: "Optionen", options: { instant_booking: "Sofort buchbar", pets_allowed: "Haustiere erlaubt", free_cancellation: "Kostenlose Stornierung" }, category: { footer_prefix: "Hotelklassifikation gemäss " }, show_less: "Weniger anzeigen", selected: "Ausgewählt", clear_all: "Alle löschen" }, $n = { apply: "Anwenden", months_selected: "{{count}} Monate" }, Sn = { "5_stars": "5 Sterne", "4_stars": "4 Sterne", "3_stars": "3 Sterne", "2_stars": "2 Sterne", not_classified: "Nicht klassifiziert", swiss_lodge: "Swiss Lodge" }, Hn = { hotels_found: "{{count}} Hotels gefunden", load_more: "Mehr laden", loading: "Laden...", end_of_results: "Sie haben das Ende der Ergebnisse erreicht", no_results: "Keine Hotels gefunden", try_different_search: "Versuchen Sie, Ihre Suchkriterien anzupassen", unavailable_banner_title: "Weitere Hotels, die Sie interessieren könnten", unavailable_banner_description: "Diese Hotels haben derzeit keine Verfügbarkeit, die Ihren Suchkriterien entspricht." }, Dn = { title: "Derzeit sind keine Unterkünfte verfügbar, die Ihren Suchkriterien entsprechen.", subtitle: "Versuchen Sie, Ihre Suchkriterien anzupassen oder die Filter zurückzusetzen", description: "Entdecken Sie verschiedene Reiseziele, ändern Sie Ihre Reisedaten oder entfernen Sie einige Filter.", description_with_filters: "Entdecken Sie verschiedene Reiseziele, ändern Sie Ihre Reisedaten oder entfernen Sie einige Filter.", clear_filters: "Filter zurücksetzen" }, Pn = { search_failed: "Suche fehlgeschlagen", load_more_failed: "Weitere Hotels konnten nicht geladen werden" }, Bn = { title: "Etwas ist schiefgelaufen", description: "Die Hotels konnten nicht geladen werden. Bitte versuchen Sie es erneut.", retry: "Erneut versuchen" }, In = { label: "Seitennavigation", previous: "Vorherige Seite", previous_short: "Zurück", next: "Nächste Seite", next_short: "Weiter", page: "Seite {{page}}" }, An = { rating: "Bewertung", price_from: "pro Zimmer & Nacht ab", not_available: "Nicht verfügbar für Ihre Suchkriterien" }, Wn = { new: "Neu" }, Tn = {
|
|
6
|
+
button: tn,
|
|
7
|
+
link: nn,
|
|
8
|
+
general: rn,
|
|
9
|
+
label: an,
|
|
10
|
+
product: on,
|
|
11
|
+
subheadline: sn,
|
|
12
|
+
form: ln,
|
|
13
|
+
filter: cn,
|
|
14
|
+
headline: dn,
|
|
15
|
+
meta_title: un,
|
|
16
|
+
meta_description: hn,
|
|
17
|
+
title: mn,
|
|
18
18
|
loading: fn,
|
|
19
|
-
retry:
|
|
20
|
-
close_map:
|
|
21
|
-
seo:
|
|
22
|
-
modal:
|
|
23
|
-
map:
|
|
24
|
-
view:
|
|
25
|
-
breadcrumb:
|
|
26
|
-
aria:
|
|
27
|
-
breadcrumb_nav:
|
|
28
|
-
guest_selector:
|
|
29
|
-
search_form:
|
|
30
|
-
dropdown:
|
|
31
|
-
filters:
|
|
32
|
-
date_selector:
|
|
33
|
-
star_rating:
|
|
34
|
-
results:
|
|
35
|
-
no_results:
|
|
36
|
-
errors:
|
|
37
|
-
error:
|
|
38
|
-
pagination:
|
|
39
|
-
hotel_card:
|
|
40
|
-
badges:
|
|
41
|
-
},
|
|
42
|
-
button:
|
|
43
|
-
link:
|
|
44
|
-
general:
|
|
45
|
-
label:
|
|
46
|
-
product:
|
|
47
|
-
subheadline:
|
|
48
|
-
form:
|
|
49
|
-
filter:
|
|
50
|
-
headline:
|
|
51
|
-
meta_title:
|
|
52
|
-
meta_description:
|
|
53
|
-
title:
|
|
54
|
-
loading:
|
|
55
|
-
retry:
|
|
56
|
-
close_map:
|
|
57
|
-
seo:
|
|
58
|
-
modal:
|
|
59
|
-
map:
|
|
60
|
-
view:
|
|
61
|
-
breadcrumb:
|
|
62
|
-
aria:
|
|
63
|
-
breadcrumb_nav:
|
|
64
|
-
guest_selector:
|
|
65
|
-
search_form:
|
|
66
|
-
dropdown:
|
|
67
|
-
filters:
|
|
68
|
-
date_selector:
|
|
69
|
-
star_rating:
|
|
70
|
-
results:
|
|
71
|
-
errors:
|
|
19
|
+
retry: gn,
|
|
20
|
+
close_map: pn,
|
|
21
|
+
seo: wn,
|
|
22
|
+
modal: _n,
|
|
23
|
+
map: vn,
|
|
24
|
+
view: bn,
|
|
25
|
+
breadcrumb: Cn,
|
|
26
|
+
aria: yn,
|
|
27
|
+
breadcrumb_nav: Nn,
|
|
28
|
+
guest_selector: kn,
|
|
29
|
+
search_form: xn,
|
|
30
|
+
dropdown: Mn,
|
|
31
|
+
filters: Ln,
|
|
32
|
+
date_selector: $n,
|
|
33
|
+
star_rating: Sn,
|
|
34
|
+
results: Hn,
|
|
35
|
+
no_results: Dn,
|
|
36
|
+
errors: Pn,
|
|
37
|
+
error: Bn,
|
|
38
|
+
pagination: In,
|
|
39
|
+
hotel_card: An,
|
|
40
|
+
badges: Wn
|
|
41
|
+
}, Vn = { order: "Order", "order-navigation": "Join", "order-hc": "Order HotelCard", "my-account": "My account", search: "Search", "back-to-top": "Back to top" }, En = { "member-benefits": "Member Benefits", "view-all-hotels": "View all hotel deals", "search-by-map": "Map search", "search-by-region": "Hotels by region", "search-by-experience": "Hotels by experience", "travel-inspiration": "Travel inspiration", "booking-tips-and-tricks": "Booking tips", home: "Home", "all-hotel-deals": "All hotel deals", "search-results": "Search results" }, zn = { "signed-out": "Log in and book", "room-price": "from CHF xxx / room", guarantee: "14-day money-back guarantee", contact: "More questions? Contact us.", "breakfast-included": "Breakfast included", "free-cancellation": "Free cancellation", "suggested-destinations": "Not sure where to travel next?", "when-months": "When do you want to go?", "hotel-deals-found": "hotel deals found", "no-results": "Explore different destinations, change your dates, or remove some filters.", "unavailable-for-selected-days": "Unavailable for selected dates.", "cant-accommodate-all": "Hotel can’t accommodate all guests.", "reset-destination": "Reset destination search to use region filters." }, Rn = { "price-from": "from ", "price-for": "/ room", "per-room-night": "per room & night from", new: "New", anytime: "Anytime", anywhere: "All destinations", dates: "Dates", flexible: "Flexible", where: "Where", when: "When", who: "Who", nearby: "Nearby", hotels: "Hotel", filter: "Filter", sort: "Sort", map: "Map", rating: "Rating", "rating-excellent": "Excellent", "rating-very-good": "Very good", "rating-good": "Good", "rating-fair": "Fair", "rating-none": "No rating", clear: "Clear" }, jn = { "6m": "6-month subscription", "1y": "1-year subscription", "2y": "2-year subscription", "3y": "3-year subscription", "price-6m": "79.-", "price-6m-disc": "59.-", "price-1y": "99.-", "price-1y-disc": "79.-", "price-2y": "198.-", "price-2y-disc": "173.-", "price-3y": "297.-", "price-3y-disc": "247.-", "price-gift": "99.-", "price-gift-disc": "59.-" }, Fn = { "your-hc": "Your HotelCard", "popular-hotels": "Popular hotel deals", "no-results": "Explore different destinations, change your dates, or remove some filters.", "sort-by": "Sort by" }, On = { guests: "guests", guest: "guest", adults: "Adults", children: "Children", pet: "Pet", "age-of-child": "Child’s age", age: "Age", "age-error": "Please select age" }, Zn = { filters: "Filters", destination: "Destination", experience: "Experience", "show-all": "Show all", price: "Price", discount: "Discount", services: "Services", meals: "Meals", "hotel-category": "Hotel category", reviews: "Reviews", mobility: "Mobility", "wellness-spa": "Wellness & Spa", "price-high-low": "Price high to low", "price-low-high": "Price low to high", "best-rating": "Best guest rating", "most-popular": "Most popular", "newest-hotels": "Newest", relevance: "Relevance", selected: "Selected:", "clear-all": "Clear all", options: "Options", "hotellerie-suisse": "Classification HotellerieSuisse", trustyou: "Reviews from travelers on TrustYou®", "select-all": "Select all", reset: "Reset", "breakfast-included": "Breakfast included" }, Yn = { "no-results": "No stays match your search right now" }, qn = "Search Hotels - HotelCard", Gn = "Search for hotels by city, region, or hotel name", Jn = "Search", Kn = "Loading hotels...", Xn = "Retry", Un = "Close map", Qn = { default_title: "Search Hotel Deals - HotelCard", location_title: "Hotels in {{location}}", region_title: "Hotels in {{region}}", experience_title: "{{experience}} Hotels", default_description: "Discover {{count}} hotels with exclusive HotelCard discounts.", location_description: "Find {{count}} hotels in {{location}} with exclusive discounts up to 50% off." }, er = { close_search: "Close search", placeholder_anywhere: "Anywhere", recent_searches: "Recent searches", remove_recent: "Remove from recent searches", all_destinations: "All destinations" }, tr = { open_search: "Open search", open_filters: "Open filters", switch_to_list: "Switch to list view", zoom_in: "Zoom in", zoom_out: "Zoom out", no_location_data: "No hotels with location data available", hotels_missing_coordinates: "{{count}} hotels found but missing coordinates", no_hotels_in_area: "No hotels found in this area" }, nr = { list: "List" }, rr = { properties_found: "{{count}} properties found", properties_found_location: "{{location}}: {{count}} properties found" }, ar = { search_results_breadcrumb: "Search results", close: "Close", previous_image: "Previous image", next_image: "Next image", add_to_favorites: "Add to favorites", remove_from_favorites: "Remove from favorites", list_view: "Switch to list view", map_view: "Switch to map view" }, ir = { home: "Home" }, or = { adults_description: "Ages 13 or above", children_description: "Ages 2-12", infants_description: "Under 2", decrease_adults: "Decrease adults", increase_adults: "Increase adults", decrease_children: "Decrease children", increase_children: "Increase children", decrease_infants: "Decrease infants", increase_infants: "Increase infants", toggle_infants: "Toggle pet" }, sr = { location_placeholder: "Search for hotels, cities, regions...", distance_any: "- km", distance_5: "+ 5 km", distance_10: "+ 10 km", distance_20: "+ 20 km", distance_30: "+ 30 km", distance_50: "+ 50 km", searching: "Searching...", reset_filters: "Reset" }, lr = { hotels: "Hotels", cities: "Cities", regions: "Regions", countries: "Countries", "no-results": "No results found" }, cr = { show_filters: "Show filters", open_filters: "Open filters", filter_by: "Filter by:", hotel_rating: "Hotel rating", show_results: "Show {{count}} results", apply_filters: "Apply filters", close_filters: "Close filters", view_in_map: "View in a Map", popular_filters: "Popular filters", show_less: "Show less", selected: "Selected", clear_all: "Clear all", options: { instant_booking: "Immediately bookable", pets_allowed: "Pets allowed", free_cancellation: "Free cancellation" } }, dr = { apply: "Apply", months_selected: "{{count}} months" }, ur = { "5_stars": "5 stars", "4_stars": "4 stars", "3_stars": "3 stars", "2_stars": "2 stars", not_classified: "Not classified", swiss_lodge: "Swiss Lodge" }, hr = { hotels_found: "{{count}} hotels found", load_more: "Load more", loading: "Loading...", end_of_results: "You've reached the end of results", no_results: "No hotels found", try_different_search: "Try adjusting your search criteria", unavailable_banner_title: "More hotels that might interest you", unavailable_banner_description: "These hotels don't currently have availability matching your search criteria." }, mr = { search_failed: "Search failed", load_more_failed: "Failed to load more hotels" }, fr = { title: "Something went wrong", description: "We couldn't load the hotels. Please try again.", retry: "Try again" }, gr = { title: "No stays match your search right now.", description: "Explore different destinations, change your dates, or remove some filters.", description_with_filters: "Explore different destinations, change your dates, or remove some filters.", clear_filters: "Clear all filters" }, pr = { label: "Pagination", previous: "Previous page", previous_short: "Previous", next: "Next page", next_short: "Next", page: "Page {{page}}" }, wr = { rating: "Rating", price_from: "per room & night from", not_available: "Not available for your search criteria" }, _r = { new: "New" }, vr = "Clear location", br = "Clear date", Cr = "Clear guests", yr = {
|
|
42
|
+
button: Vn,
|
|
43
|
+
link: En,
|
|
44
|
+
general: zn,
|
|
45
|
+
label: Rn,
|
|
46
|
+
product: jn,
|
|
47
|
+
subheadline: Fn,
|
|
48
|
+
form: On,
|
|
49
|
+
filter: Zn,
|
|
50
|
+
headline: Yn,
|
|
51
|
+
meta_title: qn,
|
|
52
|
+
meta_description: Gn,
|
|
53
|
+
title: Jn,
|
|
54
|
+
loading: Kn,
|
|
55
|
+
retry: Xn,
|
|
56
|
+
close_map: Un,
|
|
57
|
+
seo: Qn,
|
|
58
|
+
modal: er,
|
|
59
|
+
map: tr,
|
|
60
|
+
view: nr,
|
|
61
|
+
breadcrumb: rr,
|
|
62
|
+
aria: ar,
|
|
63
|
+
breadcrumb_nav: ir,
|
|
64
|
+
guest_selector: or,
|
|
65
|
+
search_form: sr,
|
|
66
|
+
dropdown: lr,
|
|
67
|
+
filters: cr,
|
|
68
|
+
date_selector: dr,
|
|
69
|
+
star_rating: ur,
|
|
70
|
+
results: hr,
|
|
71
|
+
errors: mr,
|
|
72
72
|
error: fr,
|
|
73
|
-
no_results:
|
|
74
|
-
pagination:
|
|
75
|
-
hotel_card:
|
|
76
|
-
badges:
|
|
77
|
-
clear_location:
|
|
78
|
-
clear_date:
|
|
79
|
-
clear_guests:
|
|
80
|
-
},
|
|
81
|
-
button:
|
|
82
|
-
link:
|
|
83
|
-
general:
|
|
84
|
-
label:
|
|
85
|
-
product:
|
|
86
|
-
subheadline:
|
|
87
|
-
form:
|
|
88
|
-
filter:
|
|
89
|
-
headline:
|
|
90
|
-
meta_title:
|
|
91
|
-
meta_description:
|
|
92
|
-
title:
|
|
93
|
-
loading:
|
|
94
|
-
retry:
|
|
95
|
-
close_map:
|
|
96
|
-
seo:
|
|
97
|
-
modal:
|
|
98
|
-
map:
|
|
99
|
-
view:
|
|
100
|
-
breadcrumb:
|
|
101
|
-
aria:
|
|
102
|
-
breadcrumb_nav:
|
|
103
|
-
guest_selector:
|
|
104
|
-
search_form:
|
|
105
|
-
dropdown:
|
|
106
|
-
filters:
|
|
107
|
-
date_selector:
|
|
108
|
-
star_rating:
|
|
109
|
-
results:
|
|
110
|
-
no_results:
|
|
111
|
-
errors:
|
|
112
|
-
error:
|
|
113
|
-
pagination:
|
|
114
|
-
hotel_card:
|
|
115
|
-
badges:
|
|
116
|
-
},
|
|
117
|
-
button:
|
|
118
|
-
link:
|
|
119
|
-
general:
|
|
120
|
-
label:
|
|
121
|
-
product:
|
|
122
|
-
subheadline:
|
|
123
|
-
form:
|
|
124
|
-
filter:
|
|
125
|
-
headline:
|
|
73
|
+
no_results: gr,
|
|
74
|
+
pagination: pr,
|
|
75
|
+
hotel_card: wr,
|
|
76
|
+
badges: _r,
|
|
77
|
+
clear_location: vr,
|
|
78
|
+
clear_date: br,
|
|
79
|
+
clear_guests: Cr
|
|
80
|
+
}, Nr = { order: "Commander", "order-navigation": "Commander", "order-hc": "Commander l'HotelCard", "my-account": "Mon compte", search: "Rechercher", "back-to-top": "Haut de page" }, kr = { "member-benefits": "Member Benefits", "view-all-hotels": "Découvrez toutes nos offres", "search-by-map": "Recherche sur la carte", "search-by-region": "Hôtels par région", "search-by-experience": "Hôtels par expérience", "travel-inspiration": "Inspiration voyage", "booking-tips-and-tricks": "Conseils réservation", home: "Accueil", "all-hotel-deals": "Toutes les offres d’hôtels", "search-results": "Résultats de recherche" }, xr = { "signed-out": "Se connecter et réserver", "room-price": "à partir de CHF XXX par chambre", guarantee: "Garantie de remboursement de 14 jours", contact: "D’autres questions ? Contactez-nous.", "breakfast-included": "Petit-déjeuner inclus", "free-cancellation": "Annulation gratuite", "suggested-destinations": "Suggestions de destinations", "when-months": "Quand souhaitez-vous partir ?", "hotel-deals-found": "offres d’hôtel trouvées", "no-results": "Explorez d’autres destinations, modifiez vos dates ou retirez certains filtres.", "unavailable-for-selected-days": "Indisponible aux dates sélectionnées.", "cant-accommodate-all": "L’hôtel ne peut pas accueillir tous les voyageurs.", "reset-destination": "Réinitialiser la destination et filtrer par région" }, Mr = { "price-from": "à partir de ", "price-for": "par chambre", "per-room-night": "par chambre & nuit dès", new: "Nouveau", anytime: "À tout moment", anywhere: "Toutes les destinations", dates: "Dates", flexible: "Flexible", where: "Destination", when: "Quand", who: "Voyageurs", nearby: "À proximité", hotels: "Hôtel", filter: "Filtrer", sort: "Trier", map: "Carte", rating: "Note", "rating-excellent": "Excellent", "rating-very-good": "Très bien", "rating-good": "Bien", "rating-fair": "Moyen", "rating-none": "Aucune notation", clear: "Effacer" }, Lr = { "6m": "Abonnement de 6 mois", "1y": "Abonnement 1 an", "2y": "Abonnement 2 ans", "3y": "Abonnement 3 ans", "price-6m": "79.-", "price-6m-disc": "59.-", "price-1y": "99.-", "price-1y-disc": "79.-", "price-2y": "198.-", "price-2y-disc": "173.-", "price-3y": "297.-", "price-3y-disc": "247.-", "price-gift": "99.-", "price-gift-disc": "59.-" }, $r = { "your-hc": "Votre HotelCard", "popular-hotels": "Offres d’hôtels populaires", "no-results": "Explorez d’autres destinations, modifiez vos dates ou retirez certains filtres.", "sort-by": "Trier par" }, Sr = { guests: "personnes", guest: "personne", adults: "Adultes", children: "Enfants", pet: "Animal domestique", "age-of-child": "Âge de l’enfant", age: "Âge", "age-error": "Veuillez sélectionner l’âge" }, Hr = { filters: "Filtres", destination: "Destination", experience: "Expérience", "show-all": "Tout afficher", price: "Prix", discount: "Réduction", services: "Services", meals: "Repas", "hotel-category": "Catégorie d’hôtel", reviews: "Avis", mobility: "Mobilité", "wellness-spa": "Bien-être & Spa", "price-high-low": "Prix : du plus bas", "price-low-high": "Prix : du plus élevé", "best-rating": "Meilleure note", "most-popular": "Plus populaires", "newest-hotels": "Plus récents", relevance: "Pertinence", selected: "Sélectionné:", "clear-all": "Tout effacer", options: "Services", "hotellerie-suisse": "Classification HotellerieSuisse", trustyou: "Avis de voyageurs sur TrustYou®", "select-all": "Tout sélectionner", reset: "Réinitialiser", "breakfast-included": "Petit-déjeuner inclus" }, Dr = { "no-results": "Aucun séjour ne correspond à votre recherche pour le moment" }, Pr = "Rechercher des hôtels - HotelCard", Br = "Recherchez des hôtels par ville, région ou nom d'hôtel", Ir = "Recherche", Ar = "Chargement des hôtels...", Wr = "Réessayer", Tr = "Fermer la carte", Vr = { default_title: "Rechercher des offres d'hôtels - HotelCard", location_title: "Hôtels à {{location}}", region_title: "Hôtels en {{region}}", experience_title: "Hôtels {{experience}}", default_description: "Découvrez {{count}} hôtels avec des réductions exclusives HotelCard.", location_description: "Trouvez {{count}} hôtels à {{location}} avec des réductions exclusives jusqu'à 50%." }, Er = { close_search: "Fermer la recherche", placeholder_anywhere: "Partout", recent_searches: "Recherches récentes", remove_recent: "Supprimer des recherches récentes", all_destinations: "Toutes les destinations" }, zr = { open_search: "Ouvrir la recherche", open_filters: "Ouvrir les filtres", switch_to_list: "Passer à la vue liste", zoom_in: "Agrandir", zoom_out: "Réduire", no_location_data: "Aucun hôtel avec données de localisation", hotels_missing_coordinates: "{{count}} hôtels trouvés mais coordonnées manquantes", no_hotels_in_area: "Aucun hôtel trouvé dans cette zone" }, Rr = { list: "Liste" }, jr = { properties_found: "{{count}} hébergements trouvés", properties_found_location: "{{location}}: {{count}} hébergements trouvés" }, Fr = { search_results_breadcrumb: "Résultats de la recherche", close: "Fermer", previous_image: "Image précédente", next_image: "Image suivante", add_to_favorites: "Ajouter aux favoris", remove_from_favorites: "Retirer des favoris", list_view: "Passer à la vue liste", map_view: "Passer à la vue carte" }, Or = { home: "Accueil" }, Zr = { decrease_adults: "Diminuer les adultes", increase_adults: "Augmenter les adultes", decrease_children: "Diminuer les enfants", increase_children: "Augmenter les enfants", decrease_infants: "Diminuer les bébés", increase_infants: "Augmenter les bébés", toggle_infants: "Basculer les animaux" }, Yr = { location_placeholder: "Rechercher des hôtels, villes, régions...", distance_any: "- km", distance_5: "+ 5 km", distance_10: "+ 10 km", distance_20: "+ 20 km", distance_30: "+ 30 km", distance_50: "+ 50 km", searching: "Recherche en cours...", reset_filters: "Réinitialiser les filtres" }, qr = { hotels: "Hôtels", cities: "Villes", regions: "Régions", countries: "Pays", "no-results": "Aucun résultat trouvé" }, Gr = { show_filters: "Afficher les filtres", open_filters: "Ouvrir les filtres", filter_by: "Filtrer par:", hotel_rating: "Classement de l'hôtel", show_results: "Afficher {{count}} résultats", apply_filters: "Appliquer les filtres", close_filters: "Fermer les filtres", view_in_map: "Voir sur la carte", popular_filters: "Filtres populaires", destinations: "Destinations", options_title: "Options", options: { instant_booking: "Réservation immédiate", pets_allowed: "Animaux acceptés", free_cancellation: "Annulation gratuite" }, category: { footer_prefix: "Classification hôtelière selon " }, show_less: "Afficher moins", selected: "Sélectionné", clear_all: "Tout effacer" }, Jr = { apply: "Appliquer", months_selected: "{{count}} mois" }, Kr = { "5_stars": "5 étoiles", "4_stars": "4 étoiles", "3_stars": "3 étoiles", "2_stars": "2 étoiles", not_classified: "Non classé", swiss_lodge: "Swiss Lodge" }, Xr = { hotels_found: "{{count}} hôtels trouvés", load_more: "Charger plus", loading: "Chargement...", end_of_results: "Vous avez atteint la fin des résultats", no_results: "Aucun hôtel trouvé", try_different_search: "Essayez d'ajuster vos critères de recherche", unavailable_banner_title: "D'autres hôtels qui pourraient vous intéresser", unavailable_banner_description: "Ces hôtels n'ont actuellement pas de disponibilité correspondant à vos critères de recherche." }, Ur = { title: "Aucun hébergement ne correspond à votre recherche pour le moment.", subtitle: "Essayez d'ajuster vos critères de recherche ou réinitialisez les filtres", description: "Explorez différentes destinations, modifiez vos dates ou supprimez certains filtres.", description_with_filters: "Explorez différentes destinations, modifiez vos dates ou supprimez certains filtres.", clear_filters: "Réinitialiser les filtres" }, Qr = { search_failed: "La recherche a échoué", load_more_failed: "Impossible de charger plus d'hôtels" }, ea = { title: "Une erreur s'est produite", description: "Les hôtels n'ont pas pu être chargés. Veuillez réessayer.", retry: "Réessayer" }, ta = { label: "Pagination", previous: "Page précédente", previous_short: "Précédent", next: "Page suivante", next_short: "Suivant", page: "Page {{page}}" }, na = { rating: "Note", price_from: "par chambre & nuit dès", not_available: "Non disponible selon vos critères de recherche" }, ra = { new: "Nouveau" }, aa = {
|
|
81
|
+
button: Nr,
|
|
82
|
+
link: kr,
|
|
83
|
+
general: xr,
|
|
84
|
+
label: Mr,
|
|
85
|
+
product: Lr,
|
|
86
|
+
subheadline: $r,
|
|
87
|
+
form: Sr,
|
|
88
|
+
filter: Hr,
|
|
89
|
+
headline: Dr,
|
|
90
|
+
meta_title: Pr,
|
|
91
|
+
meta_description: Br,
|
|
92
|
+
title: Ir,
|
|
93
|
+
loading: Ar,
|
|
94
|
+
retry: Wr,
|
|
95
|
+
close_map: Tr,
|
|
96
|
+
seo: Vr,
|
|
97
|
+
modal: Er,
|
|
98
|
+
map: zr,
|
|
99
|
+
view: Rr,
|
|
100
|
+
breadcrumb: jr,
|
|
101
|
+
aria: Fr,
|
|
102
|
+
breadcrumb_nav: Or,
|
|
103
|
+
guest_selector: Zr,
|
|
104
|
+
search_form: Yr,
|
|
105
|
+
dropdown: qr,
|
|
106
|
+
filters: Gr,
|
|
107
|
+
date_selector: Jr,
|
|
108
|
+
star_rating: Kr,
|
|
109
|
+
results: Xr,
|
|
110
|
+
no_results: Ur,
|
|
111
|
+
errors: Qr,
|
|
112
|
+
error: ea,
|
|
113
|
+
pagination: ta,
|
|
114
|
+
hotel_card: na,
|
|
115
|
+
badges: ra
|
|
116
|
+
}, ia = { order: "Ordina ora", "order-navigation": "Ordina ora", "order-hc": "Ordina HotelCard", "my-account": "Il mio profilo", search: "Cerca", "back-to-top": "Torna su" }, oa = { "member-benefits": "Member Benefits", "view-all-hotels": "Tutte le offerte hotel", "search-by-map": "Ricerca sulla mappa", "search-by-region": "Hotel per regione", "search-by-experience": "Hotel per esperienza", "travel-inspiration": "Ispirazioni di viaggio", "booking-tips-and-tricks": "Consigli prenotazione", home: "Home", "all-hotel-deals": "Tutte le offerte hotel", "search-results": "Risultati di ricerca" }, sa = { "signed-out": "Accedi e prenota", "room-price": "a partire da CHF xxx per camera", guarantee: "Garanzia di rimborso di 14 giorni", contact: "Altre domande? Contattaci.", "breakfast-included": "Colazione inclusa", "free-cancellation": "Cancellazione gratuita", "suggested-destinations": "Destinazioni suggerite", "when-months": "Quando vuoi viaggiare?", "hotel-deals-found": "offerte hotel trovate", "no-results": "Prova altre destinazioni, cambia le date o rimuovi qualche filtro.", "unavailable-for-selected-days": "Non disponibile per le date selezionate.", "cant-accommodate-all": "L’hotel non può accogliere tutti gli ospiti.", "reset-destination": "Reimposta la destinazione e filtra per regione" }, la = { "price-from": "a partire da ", "price-for": "per camera", "per-room-night": "per camera e notte da", new: "Nuovo", anytime: "In qualsiasi momento", anywhere: "Tutte le destinazioni", dates: "Date", flexible: "Flessibile", where: "Dove", when: "Date", who: "Chi", nearby: "Nelle vicinanze", hotels: "Hotel", filter: "Filtra", sort: "Ordina", map: "Mappa", rating: "Rating", "rating-excellent": "Eccellente", "rating-very-good": "Ottimo", "rating-good": "Buono", "rating-fair": "Sufficiente", "rating-none": "Nessun voto", clear: "Cancella" }, ca = { "6m": "Abbonamento di 6 mesi", "1y": "Abbonamento 1 anno", "2y": "Abbonamento 2 anni", "3y": "Abbonamento 3 anni", "price-6m": "79.-", "price-6m-disc": "59.-", "price-1y": "99.-", "price-1y-disc": "79.-", "price-2y": "198.-", "price-2y-disc": "173.-", "price-3y": "297.-", "price-3y-disc": "247.-", "price-gift": "99.-", "price-gift-disc": "59.-" }, da = { "your-hc": "La sua HotelCard", "popular-hotels": "Offerte hotel popolari", "no-results": "Prova altre destinazioni, cambia le date o rimuovi qualche filtro.", "sort-by": "Ordina per" }, ua = { guests: "ospiti", guest: "ospite", adults: "Adulti", children: "Bambini", pet: "Animale domestico", "age-of-child": "L'età del bambino", age: "L'età", "age-error": "Seleziona l’età" }, ha = { filters: "Filtri", destination: "Destinazione", experience: "Esperienza", "show-all": "Mostra tutto", price: "Prezzo", discount: "Sconto", services: "Servizi", meals: "Pasti", "hotel-category": "Categoria hotel", reviews: "Recensioni", mobility: "Mobilità", "wellness-spa": "Wellness & Spa", "price-high-low": "Prezzo: dal più basso", "price-low-high": "Prezzo: dal più alto", "best-rating": "Miglior voto", "most-popular": "Più popolari", "newest-hotels": "Più recenti", relevance: "Rilevanza", selected: "Selezionato:", "clear-all": "Cancella tutto", options: "Servizi", "hotellerie-suisse": "Classificazione HotellerieSuisse", trustyou: "Recensioni dei viaggiatori su TrustYou®", "select-all": "Seleziona tutto", reset: "Reimposta", "breakfast-included": "Colazione inclusa" }, ma = { "no-results": "Al momento nessun soggiorno corrisponde alla tua ricerca" }, fa = "Cerca Hotel - HotelCard", ga = "Cerca hotel per città, regione o nome dell'hotel", pa = "Ricerca", wa = "Caricamento hotel...", _a = "Riprova", va = "Chiudi mappa", ba = { default_title: "Cerca offerte hotel - HotelCard", location_title: "Hotel a {{location}}", region_title: "Hotel in {{region}}", experience_title: "Hotel {{experience}}", default_description: "Scopri {{count}} hotel con sconti esclusivi HotelCard.", location_description: "Trova {{count}} hotel a {{location}} con sconti esclusivi fino al 50%." }, Ca = { close_search: "Chiudi ricerca", placeholder_anywhere: "Ovunque", recent_searches: "Ricerche recenti", remove_recent: "Rimuovi dalle ricerche recenti", all_destinations: "Tutte le destinazioni" }, ya = { open_search: "Apri ricerca", open_filters: "Apri filtri", switch_to_list: "Passa alla vista elenco", zoom_in: "Ingrandisci", zoom_out: "Riduci", no_location_data: "Nessun hotel con dati di posizione", hotels_missing_coordinates: "{{count}} hotel trovati ma coordinate mancanti", no_hotels_in_area: "Nessun hotel trovato in questa zona" }, Na = { list: "Lista" }, ka = { properties_found: "{{count}} strutture trovate", properties_found_location: "{{location}}: {{count}} strutture trovate" }, xa = { search_results_breadcrumb: "Risultati della ricerca", close: "Chiudi", previous_image: "Immagine precedente", next_image: "Immagine successiva", add_to_favorites: "Aggiungi ai preferiti", remove_from_favorites: "Rimuovi dai preferiti", list_view: "Passa alla vista elenco", map_view: "Passa alla vista mappa" }, Ma = { home: "Home" }, La = { decrease_adults: "Diminuisci adulti", increase_adults: "Aumenta adulti", decrease_children: "Diminuisci bambini", increase_children: "Aumenta bambini", decrease_infants: "Diminuisci neonati", increase_infants: "Aumenta neonati", toggle_infants: "Attiva/disattiva animali" }, $a = { location_placeholder: "Cerca hotel, città, regioni...", distance_any: "- km", distance_5: "+ 5 km", distance_10: "+ 10 km", distance_20: "+ 20 km", distance_30: "+ 30 km", distance_50: "+ 50 km", searching: "Ricerca in corso...", reset_filters: "Ripristina filtri" }, Sa = { hotels: "Hotel", cities: "Città", regions: "Regioni", countries: "Paesi", "no-results": "Nessun risultato trovato" }, Ha = { show_filters: "Mostra filtri", open_filters: "Apri filtri", filter_by: "Filtra per:", hotel_rating: "Categoria hotel", show_results: "Mostra {{count}} risultati", apply_filters: "Applica filtri", close_filters: "Chiudi filtri", view_in_map: "Visualizza sulla mappa", popular_filters: "Filtri popolari", destinations: "Destinazioni", options_title: "Opzioni", options: { instant_booking: "Prenotazione immediata", pets_allowed: "Animali ammessi", free_cancellation: "Cancellazione gratuita" }, category: { footer_prefix: "Classificazione alberghiera secondo " }, show_less: "Mostra meno", selected: "Selezionato", clear_all: "Cancella tutto" }, Da = { apply: "Applica", months_selected: "{{count}} mesi" }, Pa = { "5_stars": "5 stelle", "4_stars": "4 stelle", "3_stars": "3 stelle", "2_stars": "2 stelle", not_classified: "Non classificato", swiss_lodge: "Swiss Lodge" }, Ba = { hotels_found: "{{count}} hotel trovati", load_more: "Carica altri", loading: "Caricamento...", end_of_results: "Hai raggiunto la fine dei risultati", no_results: "Nessun hotel trovato", try_different_search: "Prova a modificare i criteri di ricerca", unavailable_banner_title: "Altri hotel che potrebbero interessarti", unavailable_banner_description: "Questi hotel non hanno attualmente disponibilità corrispondente ai tuoi criteri di ricerca." }, Ia = { title: "Al momento non ci sono alloggi che corrispondono ai criteri di ricerca.", subtitle: "Prova a modificare i criteri di ricerca o ripristina i filtri", description: "Esplora diverse destinazioni, modifica le date o rimuovi alcuni filtri.", description_with_filters: "Esplora diverse destinazioni, modifica le date o rimuovi alcuni filtri.", clear_filters: "Ripristina filtri" }, Aa = { search_failed: "Ricerca fallita", load_more_failed: "Impossibile caricare altri hotel" }, Wa = { title: "Qualcosa è andato storto", description: "Non è stato possibile caricare gli hotel. Riprova.", retry: "Riprova" }, Ta = { label: "Paginazione", previous: "Pagina precedente", previous_short: "Precedente", next: "Pagina successiva", next_short: "Successivo", page: "Pagina {{page}}" }, Va = { rating: "Valutazione", price_from: "per camera e notte da", not_available: "Non disponibile per i tuoi criteri di ricerca" }, Ea = { new: "Nuovo" }, za = {
|
|
117
|
+
button: ia,
|
|
118
|
+
link: oa,
|
|
119
|
+
general: sa,
|
|
120
|
+
label: la,
|
|
121
|
+
product: ca,
|
|
122
|
+
subheadline: da,
|
|
123
|
+
form: ua,
|
|
124
|
+
filter: ha,
|
|
125
|
+
headline: ma,
|
|
126
126
|
meta_title: fa,
|
|
127
|
-
meta_description:
|
|
128
|
-
title:
|
|
129
|
-
loading:
|
|
130
|
-
retry:
|
|
131
|
-
close_map:
|
|
132
|
-
seo:
|
|
133
|
-
modal:
|
|
134
|
-
map:
|
|
135
|
-
view:
|
|
136
|
-
breadcrumb:
|
|
137
|
-
aria:
|
|
138
|
-
breadcrumb_nav:
|
|
139
|
-
guest_selector:
|
|
140
|
-
search_form:
|
|
141
|
-
dropdown:
|
|
142
|
-
filters:
|
|
143
|
-
date_selector:
|
|
144
|
-
star_rating:
|
|
145
|
-
results:
|
|
146
|
-
no_results:
|
|
147
|
-
errors:
|
|
148
|
-
error:
|
|
149
|
-
pagination:
|
|
150
|
-
hotel_card:
|
|
151
|
-
badges:
|
|
152
|
-
}, mt = { de:
|
|
153
|
-
function
|
|
127
|
+
meta_description: ga,
|
|
128
|
+
title: pa,
|
|
129
|
+
loading: wa,
|
|
130
|
+
retry: _a,
|
|
131
|
+
close_map: va,
|
|
132
|
+
seo: ba,
|
|
133
|
+
modal: Ca,
|
|
134
|
+
map: ya,
|
|
135
|
+
view: Na,
|
|
136
|
+
breadcrumb: ka,
|
|
137
|
+
aria: xa,
|
|
138
|
+
breadcrumb_nav: Ma,
|
|
139
|
+
guest_selector: La,
|
|
140
|
+
search_form: $a,
|
|
141
|
+
dropdown: Sa,
|
|
142
|
+
filters: Ha,
|
|
143
|
+
date_selector: Da,
|
|
144
|
+
star_rating: Pa,
|
|
145
|
+
results: Ba,
|
|
146
|
+
no_results: Ia,
|
|
147
|
+
errors: Aa,
|
|
148
|
+
error: Wa,
|
|
149
|
+
pagination: Ta,
|
|
150
|
+
hotel_card: Va,
|
|
151
|
+
badges: Ea
|
|
152
|
+
}, mt = { de: Tn, en: yr, fr: aa, it: za };
|
|
153
|
+
function Ra(e, r) {
|
|
154
154
|
const n = r.split(".");
|
|
155
155
|
let a = e;
|
|
156
156
|
for (const i of n) {
|
|
@@ -162,15 +162,15 @@ function ja(e, r) {
|
|
|
162
162
|
}
|
|
163
163
|
function At(e) {
|
|
164
164
|
const r = mt[e] || mt.en;
|
|
165
|
-
return (n, a) =>
|
|
165
|
+
return (n, a) => Ra(r, n) ?? a ?? n;
|
|
166
166
|
}
|
|
167
|
-
const
|
|
167
|
+
const ja = At("de"), Fa = {
|
|
168
168
|
locale: "de",
|
|
169
169
|
currency: "CHF",
|
|
170
170
|
isDesktop: !1,
|
|
171
171
|
apiBaseUrl: "",
|
|
172
|
-
t:
|
|
173
|
-
}, Wt =
|
|
172
|
+
t: ja
|
|
173
|
+
}, Wt = Ut(Fa), f5 = ({
|
|
174
174
|
locale: e = "de",
|
|
175
175
|
currency: r = "CHF",
|
|
176
176
|
isDesktop: n = !1,
|
|
@@ -186,7 +186,7 @@ const Fa = At("de"), Oa = {
|
|
|
186
186
|
[e, r, n, a, d]
|
|
187
187
|
);
|
|
188
188
|
return /* @__PURE__ */ t(Wt.Provider, { value: c, children: o });
|
|
189
|
-
},
|
|
189
|
+
}, he = () => Xt(Wt), ye = (e) => `hc-btn-${e}`, je = It(({
|
|
190
190
|
variant: e = "primary",
|
|
191
191
|
size: r = "medium",
|
|
192
192
|
leftIcon: n,
|
|
@@ -203,8 +203,8 @@ const Fa = At("de"), Oa = {
|
|
|
203
203
|
ref: h,
|
|
204
204
|
style: l,
|
|
205
205
|
className: `${(() => {
|
|
206
|
-
const
|
|
207
|
-
return e === "link" ? (
|
|
206
|
+
const f = [ye("button")];
|
|
207
|
+
return e === "link" ? (f.push(ye("link")), f.push(ye(r)), f.join(" ")) : c ? (f.push(ye("icon-only")), f.push(ye(r)), f.push(ye(e)), f.join(" ")) : (f.push(ye("standard")), f.push(ye(r)), f.push(ye(e)), f.join(" "));
|
|
208
208
|
})()} ${o}`,
|
|
209
209
|
disabled: d,
|
|
210
210
|
...u,
|
|
@@ -242,10 +242,10 @@ const We = (e) => `hc-badge-${e}`, Tt = ({
|
|
|
242
242
|
] });
|
|
243
243
|
};
|
|
244
244
|
Tt.displayName = "Badge";
|
|
245
|
-
const _e = (e) => `hc-rating-${e}`,
|
|
245
|
+
const _e = (e) => `hc-rating-${e}`, Oa = () => /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
246
246
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_full)", children: /* @__PURE__ */ t("path", { d: "M12.0004 0.5C12.393 0.5 12.7551 0.723172 12.9339 1.07325L16.1402 7.38333L23.1155 8.49482C23.5037 8.55608 23.8265 8.83176 23.9487 9.20809C24.0708 9.58442 23.9705 9.99576 23.6957 10.2758L18.7008 15.2863L19.8045 22.2834C19.8656 22.6728 19.7042 23.0667 19.3857 23.2986C19.0673 23.5305 18.6441 23.5655 18.2951 23.3861L12.0004 20.1742L5.70561 23.3861C5.35663 23.5655 4.93349 23.5305 4.61504 23.2986C4.29659 23.0667 4.13519 22.6772 4.19626 22.2834L5.29555 15.2863L0.305106 10.2758C0.0259198 9.99576 -0.0700504 9.58442 0.0520935 9.20809C0.174237 8.83176 0.492684 8.55608 0.885289 8.49482L7.86058 7.38333L11.0712 1.07325C11.2501 0.723172 11.6121 0.5 12.0047 0.5H12.0004Z", fill: "#FBB041" }) }),
|
|
247
247
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_full", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
248
|
-
] }),
|
|
248
|
+
] }), Za = () => /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
249
249
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "half", children: /* @__PURE__ */ t("rect", { x: "0", y: "0", width: "12", height: "24" }) }) }),
|
|
250
250
|
/* @__PURE__ */ t(
|
|
251
251
|
"path",
|
|
@@ -262,7 +262,7 @@ const _e = (e) => `hc-rating-${e}`, Za = () => /* @__PURE__ */ s("svg", { xmlns:
|
|
|
262
262
|
fill: "#9A5A00"
|
|
263
263
|
}
|
|
264
264
|
)
|
|
265
|
-
] }),
|
|
265
|
+
] }), Ya = () => /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
266
266
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_empty)", children: /* @__PURE__ */ t("path", { d: "M12.0004 0.5C12.393 0.5 12.7551 0.723172 12.9339 1.07325L16.1402 7.38333L23.1155 8.49482C23.5037 8.55608 23.8265 8.83176 23.9487 9.20809C24.0708 9.58442 23.9705 9.99576 23.6957 10.2758L18.7008 15.2863L19.8045 22.2834C19.8656 22.6728 19.7042 23.0667 19.3857 23.2986C19.0673 23.5305 18.6441 23.5655 18.2951 23.3861L12.0004 20.1742L5.70561 23.3861C5.35663 23.5655 4.93349 23.5305 4.61504 23.2986C4.29659 23.0667 4.13519 22.6772 4.19626 22.2834L5.29555 15.2863L0.305106 10.2758C0.0259198 9.99576 -0.0700504 9.58442 0.0520935 9.20809C0.174237 8.83176 0.492684 8.55608 0.885289 8.49482L7.86058 7.38333L11.0712 1.07325C11.2501 0.723172 11.6121 0.5 12.0047 0.5H12.0004ZM12.0004 3.86071L9.47898 8.81426C9.3263 9.11182 9.04275 9.32187 8.71122 9.37438L3.23656 10.2496L7.15389 14.1835C7.38945 14.4198 7.49851 14.7568 7.44616 15.0893L6.58243 20.5811L11.5249 18.0606C11.8215 17.9074 12.1749 17.9074 12.4759 18.0606L17.4183 20.5811L16.5546 15.0893C16.5023 14.7568 16.6113 14.4198 16.8469 14.1835L20.7642 10.2496L15.2895 9.37438C14.958 9.32187 14.6745 9.11182 14.5218 8.81426L12.0004 3.86071Z", fill: "#9A5A00" }) }),
|
|
267
267
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_empty", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
268
268
|
] }), Vt = ({
|
|
@@ -276,21 +276,21 @@ const _e = (e) => `hc-rating-${e}`, Za = () => /* @__PURE__ */ s("svg", { xmlns:
|
|
|
276
276
|
size: c = "medium",
|
|
277
277
|
className: l = ""
|
|
278
278
|
}) => {
|
|
279
|
-
const u = Math.min(Math.max(0, r), n), h = Math.floor(u), m = u % 1 >= 0.5,
|
|
279
|
+
const u = Math.min(Math.max(0, r), n), h = Math.floor(u), m = u % 1 >= 0.5, f = n - h - (m ? 1 : 0), v = () => {
|
|
280
280
|
const _ = [
|
|
281
281
|
_e("star"),
|
|
282
282
|
_e(`star--${c}`)
|
|
283
283
|
].filter(Boolean).join(" "), p = [];
|
|
284
284
|
for (let y = 0; y < h; y++)
|
|
285
285
|
p.push(
|
|
286
|
-
/* @__PURE__ */ t("span", { className: _, children: /* @__PURE__ */ t(
|
|
286
|
+
/* @__PURE__ */ t("span", { className: _, children: /* @__PURE__ */ t(Oa, {}) }, `full-${y}`)
|
|
287
287
|
);
|
|
288
288
|
m && p.push(
|
|
289
|
-
/* @__PURE__ */ t("span", { className: _, children: /* @__PURE__ */ t(
|
|
289
|
+
/* @__PURE__ */ t("span", { className: _, children: /* @__PURE__ */ t(Za, {}) }, "half")
|
|
290
290
|
);
|
|
291
|
-
for (let y = 0; y <
|
|
291
|
+
for (let y = 0; y < f; y++)
|
|
292
292
|
p.push(
|
|
293
|
-
/* @__PURE__ */ t("span", { className: _, children: /* @__PURE__ */ t(
|
|
293
|
+
/* @__PURE__ */ t("span", { className: _, children: /* @__PURE__ */ t(Ya, {}) }, `empty-${y}`)
|
|
294
294
|
);
|
|
295
295
|
return p;
|
|
296
296
|
};
|
|
@@ -321,7 +321,7 @@ const _e = (e) => `hc-rating-${e}`, Za = () => /* @__PURE__ */ s("svg", { xmlns:
|
|
|
321
321
|
] });
|
|
322
322
|
};
|
|
323
323
|
Vt.displayName = "Rating";
|
|
324
|
-
const Be = (e) => `hc-divider-${e}`,
|
|
324
|
+
const Be = (e) => `hc-divider-${e}`, qa = ({
|
|
325
325
|
label: e,
|
|
326
326
|
orientation: r = "horizontal",
|
|
327
327
|
className: n = ""
|
|
@@ -358,8 +358,8 @@ const Be = (e) => `hc-divider-${e}`, Ga = ({
|
|
|
358
358
|
}
|
|
359
359
|
);
|
|
360
360
|
};
|
|
361
|
-
|
|
362
|
-
const Ie = (e) => `hc-chip-${e}`,
|
|
361
|
+
qa.displayName = "Divider";
|
|
362
|
+
const Ie = (e) => `hc-chip-${e}`, Ga = () => /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
363
363
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_chip_close)", children: /* @__PURE__ */ t("path", { d: "M12 2.25C14.5859 2.25 17.0658 3.27723 18.8943 5.10571C20.7228 6.93419 21.75 9.41414 21.75 12C21.75 14.5859 20.7228 17.0658 18.8943 18.8943C17.0658 20.7228 14.5859 21.75 12 21.75C9.41414 21.75 6.93419 20.7228 5.10571 18.8943C3.27723 17.0658 2.25 14.5859 2.25 12C2.25 9.41414 3.27723 6.93419 5.10571 5.10571C6.93419 3.27723 9.41414 2.25 12 2.25ZM12 24C15.1826 24 18.2348 22.7357 20.4853 20.4853C22.7357 18.2348 24 15.1826 24 12C24 8.8174 22.7357 5.76516 20.4853 3.51472C18.2348 1.26428 15.1826 0 12 0C8.8174 0 5.76516 1.26428 3.51472 3.51472C1.26428 5.76516 0 8.8174 0 12C0 15.1826 1.26428 18.2348 3.51472 20.4853C5.76516 22.7357 8.8174 24 12 24ZM7.82812 7.82812C7.3875 8.26875 7.3875 8.98125 7.82812 9.41719L10.4062 11.9953L7.82812 14.5734C7.3875 15.0141 7.3875 15.7266 7.82812 16.1625C8.26875 16.5984 8.98125 16.6031 9.41719 16.1625L11.9953 13.5844L14.5734 16.1625C15.0141 16.6031 15.7266 16.6031 16.1625 16.1625C16.5984 15.7219 16.6031 15.0094 16.1625 14.5734L13.5844 11.9953L16.1625 9.41719C16.6031 8.97656 16.6031 8.26406 16.1625 7.82812C15.7219 7.39219 15.0094 7.3875 14.5734 7.82812L11.9953 10.4062L9.41719 7.82812C8.97656 7.3875 8.26406 7.3875 7.82812 7.82812Z", fill: "currentColor" }) }),
|
|
364
364
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_chip_close", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
365
365
|
] }), Et = ({
|
|
@@ -378,7 +378,7 @@ const Ie = (e) => `hc-chip-${e}`, Ja = () => /* @__PURE__ */ s("svg", { xmlns: "
|
|
|
378
378
|
Ie(`chip--${n}`),
|
|
379
379
|
Ie(`chip--${u}`),
|
|
380
380
|
c
|
|
381
|
-
].filter(Boolean).join(" "), m = [Ie("label"), Ie(`label--${n}`)].join(" "),
|
|
381
|
+
].filter(Boolean).join(" "), m = [Ie("label"), Ie(`label--${n}`)].join(" "), f = [Ie("countBadge"), Ie(`countBadge--${n}`)].join(" ");
|
|
382
382
|
return /* @__PURE__ */ s(
|
|
383
383
|
"button",
|
|
384
384
|
{
|
|
@@ -394,14 +394,14 @@ const Ie = (e) => `hc-chip-${e}`, Ja = () => /* @__PURE__ */ s("svg", { xmlns: "
|
|
|
394
394
|
"aria-label": i ? `Remove filter: ${e}` : e,
|
|
395
395
|
children: [
|
|
396
396
|
/* @__PURE__ */ t("span", { className: m, children: e }),
|
|
397
|
-
r !== void 0 && /* @__PURE__ */ t("span", { className:
|
|
398
|
-
i && /* @__PURE__ */ t("span", { className: Ie("closeIcon"), "aria-hidden": "true", children: /* @__PURE__ */ t(
|
|
397
|
+
r !== void 0 && /* @__PURE__ */ t("span", { className: f, children: r }),
|
|
398
|
+
i && /* @__PURE__ */ t("span", { className: Ie("closeIcon"), "aria-hidden": "true", children: /* @__PURE__ */ t(Ga, {}) })
|
|
399
399
|
]
|
|
400
400
|
}
|
|
401
401
|
);
|
|
402
402
|
};
|
|
403
403
|
Et.displayName = "Chip";
|
|
404
|
-
const ce = (e) => `hc-checkbox-${e}`,
|
|
404
|
+
const ce = (e) => `hc-checkbox-${e}`, Ja = ({
|
|
405
405
|
label: e,
|
|
406
406
|
checked: r,
|
|
407
407
|
defaultChecked: n = !1,
|
|
@@ -413,7 +413,7 @@ const ce = (e) => `hc-checkbox-${e}`, Ka = ({
|
|
|
413
413
|
className: l = "",
|
|
414
414
|
size: u = "medium"
|
|
415
415
|
}) => {
|
|
416
|
-
const [h, m] = $(n), [
|
|
416
|
+
const [h, m] = $(n), [f, v] = $(!1), w = r !== void 0 ? r : h, _ = (B) => {
|
|
417
417
|
const O = B.target.checked;
|
|
418
418
|
r === void 0 && m(O), a == null || a(O);
|
|
419
419
|
}, p = [
|
|
@@ -429,7 +429,7 @@ const ce = (e) => `hc-checkbox-${e}`, Ka = ({
|
|
|
429
429
|
w && ce("box--checked"),
|
|
430
430
|
i && ce("box--disabled"),
|
|
431
431
|
o && !w && ce("box--error"),
|
|
432
|
-
|
|
432
|
+
f && ce("box--focused")
|
|
433
433
|
].filter(Boolean).join(" "), M = [
|
|
434
434
|
ce("input"),
|
|
435
435
|
i && ce("input--disabled")
|
|
@@ -483,8 +483,8 @@ const ce = (e) => `hc-checkbox-${e}`, Ka = ({
|
|
|
483
483
|
e && /* @__PURE__ */ t("span", { className: R, children: e })
|
|
484
484
|
] });
|
|
485
485
|
};
|
|
486
|
-
|
|
487
|
-
const $e = (e) => `hc-radio-${e}`,
|
|
486
|
+
Ja.displayName = "Checkbox";
|
|
487
|
+
const $e = (e) => `hc-radio-${e}`, Ka = ({
|
|
488
488
|
id: e,
|
|
489
489
|
checked: r,
|
|
490
490
|
onChange: n,
|
|
@@ -503,7 +503,7 @@ const $e = (e) => `hc-radio-${e}`, Xa = ({
|
|
|
503
503
|
$e("container"),
|
|
504
504
|
o && $e("container--disabled"),
|
|
505
505
|
d
|
|
506
|
-
].filter(Boolean).join(" "),
|
|
506
|
+
].filter(Boolean).join(" "), f = [
|
|
507
507
|
$e("outerCircle"),
|
|
508
508
|
r && $e("outerCircle--checked"),
|
|
509
509
|
o && $e("outerCircle--disabled")
|
|
@@ -538,7 +538,7 @@ const $e = (e) => `hc-radio-${e}`, Xa = ({
|
|
|
538
538
|
className: $e("hiddenInput")
|
|
539
539
|
}
|
|
540
540
|
),
|
|
541
|
-
/* @__PURE__ */ t("div", { className:
|
|
541
|
+
/* @__PURE__ */ t("div", { className: f }),
|
|
542
542
|
/* @__PURE__ */ t("div", { className: v })
|
|
543
543
|
] }),
|
|
544
544
|
c && /* @__PURE__ */ t("label", { htmlFor: e, className: $e("label"), children: c })
|
|
@@ -546,8 +546,8 @@ const $e = (e) => `hc-radio-${e}`, Xa = ({
|
|
|
546
546
|
}
|
|
547
547
|
);
|
|
548
548
|
};
|
|
549
|
-
|
|
550
|
-
const ot = (e) => `hc-section-${e}`,
|
|
549
|
+
Ka.displayName = "RadioButton";
|
|
550
|
+
const ot = (e) => `hc-section-${e}`, Xa = () => /* @__PURE__ */ t(
|
|
551
551
|
"svg",
|
|
552
552
|
{
|
|
553
553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -561,7 +561,7 @@ const ot = (e) => `hc-section-${e}`, Ua = () => /* @__PURE__ */ t(
|
|
|
561
561
|
strokeLinejoin: "round",
|
|
562
562
|
children: /* @__PURE__ */ t("polyline", { points: "9 18 15 12 9 6" })
|
|
563
563
|
}
|
|
564
|
-
),
|
|
564
|
+
), Ua = ({
|
|
565
565
|
title: e,
|
|
566
566
|
showAllLabel: r,
|
|
567
567
|
onShowAllClick: n,
|
|
@@ -572,18 +572,18 @@ const ot = (e) => `hc-section-${e}`, Ua = () => /* @__PURE__ */ t(
|
|
|
572
572
|
/* @__PURE__ */ t("h2", { className: ot("title"), children: e }),
|
|
573
573
|
r && n && /* @__PURE__ */ s("button", { className: ot("showAllButton"), onClick: n, children: [
|
|
574
574
|
/* @__PURE__ */ t("span", { children: r }),
|
|
575
|
-
/* @__PURE__ */ t(
|
|
575
|
+
/* @__PURE__ */ t(Xa, {})
|
|
576
576
|
] })
|
|
577
577
|
] });
|
|
578
578
|
};
|
|
579
|
-
|
|
580
|
-
const st = (e) => `hc-modal-${e}`,
|
|
579
|
+
Ua.displayName = "SectionHeader";
|
|
580
|
+
const st = (e) => `hc-modal-${e}`, Qa = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ t(
|
|
581
581
|
"path",
|
|
582
582
|
{
|
|
583
583
|
d: "M0.330469 1.91953C-0.110156 1.47891 -0.110156 0.766406 0.330469 0.330469C0.771094 -0.105469 1.48359 -0.110156 1.91953 0.330469L8.99766 7.40859L16.0758 0.330469C16.5164 -0.110156 17.2289 -0.110156 17.6648 0.330469C18.1008 0.771094 18.1055 1.48359 17.6648 1.91953L10.5867 8.99766L17.6648 16.0758C18.1055 16.5164 18.1055 17.2289 17.6648 17.6648C17.2242 18.1008 16.5117 18.1055 16.0758 17.6648L8.99766 10.5867L1.91953 17.6648C1.47891 18.1055 0.766406 18.1055 0.330469 17.6648C-0.105469 17.2242 -0.110156 16.5117 0.330469 16.0758L7.40859 8.99766L0.330469 1.91953Z",
|
|
584
584
|
fill: "currentColor"
|
|
585
585
|
}
|
|
586
|
-
) }),
|
|
586
|
+
) }), ei = ({
|
|
587
587
|
isOpen: e,
|
|
588
588
|
onClose: r,
|
|
589
589
|
children: n,
|
|
@@ -592,10 +592,10 @@ const st = (e) => `hc-modal-${e}`, ei = () => /* @__PURE__ */ t("svg", { xmlns:
|
|
|
592
592
|
showCloseButton: o = !0,
|
|
593
593
|
disableBackdropClick: d = !1
|
|
594
594
|
}) => {
|
|
595
|
-
const c =
|
|
595
|
+
const c = me(null);
|
|
596
596
|
le(() => {
|
|
597
|
-
const m = (
|
|
598
|
-
|
|
597
|
+
const m = (f) => {
|
|
598
|
+
f.key === "Escape" && e && r();
|
|
599
599
|
};
|
|
600
600
|
return e && (document.addEventListener("keydown", m), document.body.style.overflow = "hidden"), () => {
|
|
601
601
|
document.removeEventListener("keydown", m), document.body.style.overflow = "";
|
|
@@ -618,17 +618,17 @@ const st = (e) => `hc-modal-${e}`, ei = () => /* @__PURE__ */ t("svg", { xmlns:
|
|
|
618
618
|
className: st("closeButton"),
|
|
619
619
|
onClick: r,
|
|
620
620
|
"aria-label": "Close modal",
|
|
621
|
-
children: /* @__PURE__ */ t(
|
|
621
|
+
children: /* @__PURE__ */ t(Qa, {})
|
|
622
622
|
}
|
|
623
623
|
),
|
|
624
624
|
n
|
|
625
625
|
]
|
|
626
626
|
}
|
|
627
627
|
) });
|
|
628
|
-
return typeof document < "u" ?
|
|
628
|
+
return typeof document < "u" ? en(h, document.body) : h;
|
|
629
629
|
};
|
|
630
|
-
|
|
631
|
-
const q = (e) => `hc-card-${e}`,
|
|
630
|
+
ei.displayName = "Modal";
|
|
631
|
+
const q = (e) => `hc-card-${e}`, ft = () => /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "9", height: "9", viewBox: "0 0 9 9", fill: "none", children: [
|
|
632
632
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_card_star)", children: /* @__PURE__ */ t(
|
|
633
633
|
"path",
|
|
634
634
|
{
|
|
@@ -637,7 +637,7 @@ const q = (e) => `hc-card-${e}`, gt = () => /* @__PURE__ */ s("svg", { xmlns: "h
|
|
|
637
637
|
}
|
|
638
638
|
) }),
|
|
639
639
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_card_star", children: /* @__PURE__ */ t("rect", { width: "8", height: "8", fill: "white", transform: "translate(0.800049 0.199951)" }) }) })
|
|
640
|
-
] }),
|
|
640
|
+
] }), ti = () => /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 36 38", fill: "#478EFA", className: q("ratingSvg"), children: /* @__PURE__ */ t("path", { d: "M4 0C1.79086 0 0 1.79086 0 4V32V38L9 32H32C34.2091 32 36 30.2091 36 28V0H4Z" }) }), ni = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" fill="%23e5e7eb"%3E%3Crect width="100" height="100" /%3E%3C/svg%3E', gt = (e, r) => Array.from({ length: e }, (n, a) => r(a)), ri = ({
|
|
641
641
|
image: e,
|
|
642
642
|
imageAlt: r = "",
|
|
643
643
|
label: n,
|
|
@@ -650,7 +650,7 @@ const q = (e) => `hc-card-${e}`, gt = () => /* @__PURE__ */ s("svg", { xmlns: "h
|
|
|
650
650
|
variant: u = "mobile",
|
|
651
651
|
hasRating: h,
|
|
652
652
|
withPadding: m = !1,
|
|
653
|
-
withHeight:
|
|
653
|
+
withHeight: f = !1,
|
|
654
654
|
ratingInfo: v,
|
|
655
655
|
context: w,
|
|
656
656
|
swissLodgeLabel: _ = "Swiss Lodge"
|
|
@@ -660,7 +660,7 @@ const q = (e) => `hc-card-${e}`, gt = () => /* @__PURE__ */ s("svg", { xmlns: "h
|
|
|
660
660
|
q(`card--${u}`),
|
|
661
661
|
c && q("card--clickable"),
|
|
662
662
|
m && q("card--withPadding"),
|
|
663
|
-
|
|
663
|
+
f && q("card--withHeight"),
|
|
664
664
|
l
|
|
665
665
|
].filter(Boolean).join(" "), N = [
|
|
666
666
|
q("starsRow"),
|
|
@@ -677,10 +677,10 @@ const q = (e) => `hc-card-${e}`, gt = () => /* @__PURE__ */ s("svg", { xmlns: "h
|
|
|
677
677
|
w === "hotel-deals" && !h && q("price--hotelDealsNoRating"),
|
|
678
678
|
w !== "hotel-deals" && !h && q("price--noRating"),
|
|
679
679
|
w !== "hotel-deals" && h && q("price--regularWithRating")
|
|
680
|
-
].filter(Boolean).join(" "), R = e ||
|
|
680
|
+
].filter(Boolean).join(" "), R = e || ni, B = (W) => {
|
|
681
681
|
c && (W.key === "Enter" || W.key === " ") && (W.preventDefault(), c());
|
|
682
682
|
}, O = () => v ? /* @__PURE__ */ s("span", { className: q("ratingInfo"), children: [
|
|
683
|
-
/* @__PURE__ */ t(
|
|
683
|
+
/* @__PURE__ */ t(ti, {}),
|
|
684
684
|
/* @__PURE__ */ t("span", { className: q("ratingLabel"), children: v.label }),
|
|
685
685
|
/* @__PURE__ */ t("span", { className: q("ratingValue"), children: v.value })
|
|
686
686
|
] }) : null;
|
|
@@ -716,12 +716,12 @@ const q = (e) => `hc-card-${e}`, gt = () => /* @__PURE__ */ s("svg", { xmlns: "h
|
|
|
716
716
|
/* @__PURE__ */ s("div", { className: q("textContainer"), children: [
|
|
717
717
|
/* @__PURE__ */ t("div", { className: N, children: i !== void 0 && i > 0 ? /* @__PURE__ */ t(De, { children: i === 6 ? /* @__PURE__ */ t("span", { className: q("swissLodge"), children: _ }) : /* @__PURE__ */ t(De, { children: p ? /* @__PURE__ */ s(De, { children: [
|
|
718
718
|
/* @__PURE__ */ s("div", { className: q("starsContainer"), children: [
|
|
719
|
-
|
|
719
|
+
gt(Math.floor(i), (W) => /* @__PURE__ */ t(ft, {}, W)),
|
|
720
720
|
o && /* @__PURE__ */ t("span", { className: q("superiorBadge"), children: "(s)" })
|
|
721
721
|
] }),
|
|
722
722
|
/* @__PURE__ */ t("div", { children: O() })
|
|
723
723
|
] }) : /* @__PURE__ */ s(De, { children: [
|
|
724
|
-
/* @__PURE__ */ t("div", { className: q("starsContainer"), children:
|
|
724
|
+
/* @__PURE__ */ t("div", { className: q("starsContainer"), children: gt(Math.floor(i), (W) => /* @__PURE__ */ t(ft, {}, W)) }),
|
|
725
725
|
o && /* @__PURE__ */ t("span", { className: q("superiorBadge"), children: "(s)" }),
|
|
726
726
|
O()
|
|
727
727
|
] }) }) }) : /* @__PURE__ */ t("div", { className: q("starsPlaceholder"), children: " " }) }),
|
|
@@ -732,8 +732,8 @@ const q = (e) => `hc-card-${e}`, gt = () => /* @__PURE__ */ s("svg", { xmlns: "h
|
|
|
732
732
|
}
|
|
733
733
|
);
|
|
734
734
|
};
|
|
735
|
-
|
|
736
|
-
const
|
|
735
|
+
ri.displayName = "Card";
|
|
736
|
+
const ge = (e) => `hc-dropdown-${e}`, ai = () => /* @__PURE__ */ t("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", children: /* @__PURE__ */ t(
|
|
737
737
|
"path",
|
|
738
738
|
{
|
|
739
739
|
d: "M1 1L6 6L11 1",
|
|
@@ -742,7 +742,7 @@ const fe = (e) => `hc-dropdown-${e}`, ii = () => /* @__PURE__ */ t("svg", { widt
|
|
|
742
742
|
strokeLinecap: "round",
|
|
743
743
|
strokeLinejoin: "round"
|
|
744
744
|
}
|
|
745
|
-
) }),
|
|
745
|
+
) }), ii = ({
|
|
746
746
|
options: e = [],
|
|
747
747
|
disabled: r = !1,
|
|
748
748
|
error: n = !1,
|
|
@@ -755,7 +755,7 @@ const fe = (e) => `hc-dropdown-${e}`, ii = () => /* @__PURE__ */ t("svg", { widt
|
|
|
755
755
|
placeholder: u = "Select..."
|
|
756
756
|
}) => {
|
|
757
757
|
var T;
|
|
758
|
-
const [h, m] = $(a || ""), [
|
|
758
|
+
const [h, m] = $(a || ""), [f, v] = $(!1), [w, _] = $(!1), p = me(null), y = i !== void 0 ? i : h, N = ((T = e.find((C) => C.value === y)) == null ? void 0 : T.label) || u;
|
|
759
759
|
le(() => {
|
|
760
760
|
const C = (S) => {
|
|
761
761
|
p.current && !p.current.contains(S.target) && v(!1);
|
|
@@ -765,23 +765,23 @@ const fe = (e) => `hc-dropdown-${e}`, ii = () => /* @__PURE__ */ t("svg", { widt
|
|
|
765
765
|
const M = (C) => {
|
|
766
766
|
i === void 0 && m(C), o == null || o(C), v(!1);
|
|
767
767
|
}, E = (C) => {
|
|
768
|
-
r || (C.key === "Enter" || C.key === " " ? (C.preventDefault(), v(!
|
|
768
|
+
r || (C.key === "Enter" || C.key === " " ? (C.preventDefault(), v(!f)) : C.key === "Escape" && v(!1));
|
|
769
769
|
}, R = [
|
|
770
|
-
|
|
771
|
-
r &&
|
|
770
|
+
ge("container"),
|
|
771
|
+
r && ge("container--disabled"),
|
|
772
772
|
d
|
|
773
773
|
].filter(Boolean).join(" "), B = [
|
|
774
|
-
|
|
775
|
-
n &&
|
|
776
|
-
w && !n &&
|
|
777
|
-
r &&
|
|
778
|
-
|
|
774
|
+
ge("button"),
|
|
775
|
+
n && ge("button--error"),
|
|
776
|
+
w && !n && ge("button--focus"),
|
|
777
|
+
r && ge("button--disabled"),
|
|
778
|
+
f && ge("button--open")
|
|
779
779
|
].filter(Boolean).join(" "), O = [
|
|
780
|
-
|
|
781
|
-
|
|
780
|
+
ge("chevron"),
|
|
781
|
+
f && ge("chevron--open")
|
|
782
782
|
].filter(Boolean).join(" "), W = [
|
|
783
|
-
|
|
784
|
-
|
|
783
|
+
ge("list"),
|
|
784
|
+
f && ge("list--open")
|
|
785
785
|
].filter(Boolean).join(" ");
|
|
786
786
|
return /* @__PURE__ */ s("div", { ref: p, className: R, children: [
|
|
787
787
|
/* @__PURE__ */ s(
|
|
@@ -789,17 +789,17 @@ const fe = (e) => `hc-dropdown-${e}`, ii = () => /* @__PURE__ */ t("svg", { widt
|
|
|
789
789
|
{
|
|
790
790
|
className: B,
|
|
791
791
|
tabIndex: r ? -1 : 0,
|
|
792
|
-
onClick: () => !r && v(!
|
|
792
|
+
onClick: () => !r && v(!f),
|
|
793
793
|
onKeyDown: E,
|
|
794
794
|
onFocus: () => !r && _(!0),
|
|
795
795
|
onBlur: () => _(!1),
|
|
796
796
|
role: "combobox",
|
|
797
797
|
"aria-haspopup": "listbox",
|
|
798
|
-
"aria-expanded":
|
|
798
|
+
"aria-expanded": f,
|
|
799
799
|
"aria-disabled": r,
|
|
800
800
|
children: [
|
|
801
801
|
/* @__PURE__ */ t("span", { children: N }),
|
|
802
|
-
/* @__PURE__ */ t("span", { className: O, children: /* @__PURE__ */ t(
|
|
802
|
+
/* @__PURE__ */ t("span", { className: O, children: /* @__PURE__ */ t(ai, {}) })
|
|
803
803
|
]
|
|
804
804
|
}
|
|
805
805
|
),
|
|
@@ -809,7 +809,7 @@ const fe = (e) => `hc-dropdown-${e}`, ii = () => /* @__PURE__ */ t("svg", { widt
|
|
|
809
809
|
role: "option",
|
|
810
810
|
"aria-selected": y === C.value,
|
|
811
811
|
onClick: () => M(C.value),
|
|
812
|
-
className: `${
|
|
812
|
+
className: `${ge("option")} ${y === C.value ? ge("option--selected") : ""}`,
|
|
813
813
|
children: C.label
|
|
814
814
|
},
|
|
815
815
|
C.value
|
|
@@ -822,7 +822,7 @@ const fe = (e) => `hc-dropdown-${e}`, ii = () => /* @__PURE__ */ t("svg", { widt
|
|
|
822
822
|
value: y,
|
|
823
823
|
onChange: (C) => M(C.target.value),
|
|
824
824
|
disabled: r,
|
|
825
|
-
className:
|
|
825
|
+
className: ge("hiddenSelect"),
|
|
826
826
|
children: [
|
|
827
827
|
!y && /* @__PURE__ */ t("option", { value: "", children: u }),
|
|
828
828
|
e.map((C) => /* @__PURE__ */ t("option", { value: C.value, children: C.label }, C.value))
|
|
@@ -831,8 +831,8 @@ const fe = (e) => `hc-dropdown-${e}`, ii = () => /* @__PURE__ */ t("svg", { widt
|
|
|
831
831
|
)
|
|
832
832
|
] });
|
|
833
833
|
};
|
|
834
|
-
|
|
835
|
-
const pe = (e) => `hc-input-${e}`,
|
|
834
|
+
ii.displayName = "Dropdown";
|
|
835
|
+
const pe = (e) => `hc-input-${e}`, oi = ({
|
|
836
836
|
label: e,
|
|
837
837
|
placeholder: r = "Placeholder",
|
|
838
838
|
helper: n,
|
|
@@ -845,7 +845,7 @@ const pe = (e) => `hc-input-${e}`, si = ({
|
|
|
845
845
|
error: u = !1,
|
|
846
846
|
disabled: h = !1,
|
|
847
847
|
leftIcon: m,
|
|
848
|
-
rightIcon:
|
|
848
|
+
rightIcon: f,
|
|
849
849
|
prefix: v,
|
|
850
850
|
className: w = "",
|
|
851
851
|
inputClassName: _ = "",
|
|
@@ -858,7 +858,7 @@ const pe = (e) => `hc-input-${e}`, si = ({
|
|
|
858
858
|
readOnly: B = !1,
|
|
859
859
|
inputProps: O
|
|
860
860
|
}) => {
|
|
861
|
-
const [W, T] = $(i), [C, S] = $(!1), x =
|
|
861
|
+
const [W, T] = $(i), [C, S] = $(!1), x = me(null), I = a !== void 0 ? a : W, A = (J) => {
|
|
862
862
|
const de = J.target.value;
|
|
863
863
|
a === void 0 && T(de), o == null || o(de);
|
|
864
864
|
}, j = () => {
|
|
@@ -917,15 +917,15 @@ const pe = (e) => `hc-input-${e}`, si = ({
|
|
|
917
917
|
...O
|
|
918
918
|
}
|
|
919
919
|
),
|
|
920
|
-
|
|
920
|
+
f && f
|
|
921
921
|
]
|
|
922
922
|
}
|
|
923
923
|
),
|
|
924
924
|
n && /* @__PURE__ */ t("div", { className: G, children: n })
|
|
925
925
|
] });
|
|
926
926
|
};
|
|
927
|
-
|
|
928
|
-
const ve = (e) => `hc-block-${e}`,
|
|
927
|
+
oi.displayName = "Input";
|
|
928
|
+
const ve = (e) => `hc-block-${e}`, si = ({
|
|
929
929
|
variant: e = "icon",
|
|
930
930
|
visual: r,
|
|
931
931
|
label: n,
|
|
@@ -980,8 +980,8 @@ const ve = (e) => `hc-block-${e}`, li = ({
|
|
|
980
980
|
}
|
|
981
981
|
);
|
|
982
982
|
};
|
|
983
|
-
|
|
984
|
-
const Fe = (e) => `hc-review-${e}`,
|
|
983
|
+
si.displayName = "Block";
|
|
984
|
+
const Fe = (e) => `hc-review-${e}`, li = ({
|
|
985
985
|
name: e,
|
|
986
986
|
date: r,
|
|
987
987
|
rating: n,
|
|
@@ -998,8 +998,8 @@ const Fe = (e) => `hc-review-${e}`, ci = ({
|
|
|
998
998
|
/* @__PURE__ */ t("div", { className: Fe("date"), children: r })
|
|
999
999
|
] });
|
|
1000
1000
|
};
|
|
1001
|
-
|
|
1002
|
-
const He = (e) => `hc-faq-${e}`,
|
|
1001
|
+
li.displayName = "ReviewCard";
|
|
1002
|
+
const He = (e) => `hc-faq-${e}`, ci = ({ isOpen: e }) => {
|
|
1003
1003
|
const r = [
|
|
1004
1004
|
He("chevron"),
|
|
1005
1005
|
e && He("chevron--open")
|
|
@@ -1025,7 +1025,7 @@ const He = (e) => `hc-faq-${e}`, di = ({ isOpen: e }) => {
|
|
|
1025
1025
|
)
|
|
1026
1026
|
}
|
|
1027
1027
|
);
|
|
1028
|
-
},
|
|
1028
|
+
}, di = ({
|
|
1029
1029
|
items: e,
|
|
1030
1030
|
defaultOpenIndex: r = null,
|
|
1031
1031
|
allowMultiple: n = !1,
|
|
@@ -1051,7 +1051,7 @@ const He = (e) => `hc-faq-${e}`, di = ({ isOpen: e }) => {
|
|
|
1051
1051
|
onClick: () => d(u),
|
|
1052
1052
|
"aria-expanded": h,
|
|
1053
1053
|
"aria-controls": `faq-answer-${u}`,
|
|
1054
|
-
rightIcon: /* @__PURE__ */ t("div", { className: He("icon-container"), children: /* @__PURE__ */ t(
|
|
1054
|
+
rightIcon: /* @__PURE__ */ t("div", { className: He("icon-container"), children: /* @__PURE__ */ t(ci, { isOpen: h }) }),
|
|
1055
1055
|
children: /* @__PURE__ */ t("span", { className: He("question-text"), children: l.question })
|
|
1056
1056
|
}
|
|
1057
1057
|
),
|
|
@@ -1059,8 +1059,8 @@ const He = (e) => `hc-faq-${e}`, di = ({ isOpen: e }) => {
|
|
|
1059
1059
|
] }, u);
|
|
1060
1060
|
}) });
|
|
1061
1061
|
};
|
|
1062
|
-
|
|
1063
|
-
const be = (e) => `hc-benefits-${e}`,
|
|
1062
|
+
di.displayName = "FAQ";
|
|
1063
|
+
const be = (e) => `hc-benefits-${e}`, ui = ({
|
|
1064
1064
|
title: e = "Ihre Vorteile mit HotelCard",
|
|
1065
1065
|
subtitle: r = "Mit HotelCard sparen Sie bei jedem Aufenthalt",
|
|
1066
1066
|
benefits: n = [
|
|
@@ -1113,8 +1113,8 @@ const be = (e) => `hc-benefits-${e}`, hi = ({
|
|
|
1113
1113
|
] })
|
|
1114
1114
|
] }) });
|
|
1115
1115
|
};
|
|
1116
|
-
|
|
1117
|
-
const xe = (e) => `hc-pin-${e}`,
|
|
1116
|
+
ui.displayName = "Benefits";
|
|
1117
|
+
const xe = (e) => `hc-pin-${e}`, hi = ({ className: e }) => /* @__PURE__ */ t(
|
|
1118
1118
|
"svg",
|
|
1119
1119
|
{
|
|
1120
1120
|
className: e,
|
|
@@ -1125,7 +1125,7 @@ const xe = (e) => `hc-pin-${e}`, mi = ({ className: e }) => /* @__PURE__ */ t(
|
|
|
1125
1125
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1126
1126
|
children: /* @__PURE__ */ t("path", { d: "M8 14.2333L6.96667 13.2933C3.6 10.24 1.33333 8.18667 1.33333 5.66667C1.33333 3.61333 2.94667 2 5 2C6.16 2 7.27333 2.54 8 3.39333C8.72667 2.54 9.84 2 11 2C13.0533 2 14.6667 3.61333 14.6667 5.66667C14.6667 8.18667 12.4 10.24 9.03333 13.2933L8 14.2333Z" })
|
|
1127
1127
|
}
|
|
1128
|
-
),
|
|
1128
|
+
), mi = ({ className: e }) => /* @__PURE__ */ t(
|
|
1129
1129
|
"svg",
|
|
1130
1130
|
{
|
|
1131
1131
|
className: e,
|
|
@@ -1165,8 +1165,8 @@ const xe = (e) => `hc-pin-${e}`, mi = ({ className: e }) => /* @__PURE__ */ t(
|
|
|
1165
1165
|
/* @__PURE__ */ t("div", { className: xe("body"), children: e === "price" ? /* @__PURE__ */ s(De, { children: [
|
|
1166
1166
|
/* @__PURE__ */ t("span", { className: xe("currency"), children: n }),
|
|
1167
1167
|
/* @__PURE__ */ t("span", { className: xe("price"), children: m }),
|
|
1168
|
-
i && /* @__PURE__ */ t("div", { className: xe("favorite-container"), children: /* @__PURE__ */ t(
|
|
1169
|
-
] }) : /* @__PURE__ */ t(
|
|
1168
|
+
i && /* @__PURE__ */ t("div", { className: xe("favorite-container"), children: /* @__PURE__ */ t(hi, { className: xe("favorite-icon") }) })
|
|
1169
|
+
] }) : /* @__PURE__ */ t(mi, { className: xe("hotel-icon") }) }),
|
|
1170
1170
|
/* @__PURE__ */ t("div", { className: xe("pointer"), children: /* @__PURE__ */ t("div", { className: xe("pointer-inner") }) })
|
|
1171
1171
|
]
|
|
1172
1172
|
}
|
|
@@ -1174,7 +1174,7 @@ const xe = (e) => `hc-pin-${e}`, mi = ({ className: e }) => /* @__PURE__ */ t(
|
|
|
1174
1174
|
}
|
|
1175
1175
|
);
|
|
1176
1176
|
fi.displayName = "Pin";
|
|
1177
|
-
const
|
|
1177
|
+
const g5 = (e, r) => {
|
|
1178
1178
|
const [n, a] = $(e);
|
|
1179
1179
|
return le(() => {
|
|
1180
1180
|
const i = setTimeout(() => a(e), r);
|
|
@@ -1193,10 +1193,10 @@ const f5 = (e, r) => {
|
|
|
1193
1193
|
isDesktop: e >= 1024
|
|
1194
1194
|
};
|
|
1195
1195
|
}, dt = () => {
|
|
1196
|
-
const { locale: e, currency: r } =
|
|
1196
|
+
const { locale: e, currency: r } = he();
|
|
1197
1197
|
return { locale: e, currency: r };
|
|
1198
|
-
},
|
|
1199
|
-
const { t: r, i18n: n } =
|
|
1198
|
+
}, gi = (e) => {
|
|
1199
|
+
const { t: r, i18n: n } = Qt(e);
|
|
1200
1200
|
return { t: (i, o, d) => {
|
|
1201
1201
|
let c, l;
|
|
1202
1202
|
typeof o == "string" ? l = o : (o && (c = o), l = d);
|
|
@@ -1213,7 +1213,7 @@ const f5 = (e, r) => {
|
|
|
1213
1213
|
dropdown: Ci,
|
|
1214
1214
|
"dropdown--open": "_dropdown--open_fbu27_102",
|
|
1215
1215
|
dropdownMobile: yi
|
|
1216
|
-
}, Ni = "
|
|
1216
|
+
}, Ni = "_container_7i6mi_13", ki = "_containerDropdown_7i6mi_22", xi = "_containerExpanded_7i6mi_27", Mi = "_sectionTitle_7i6mi_40", Li = "_header_7i6mi_56", $i = "_tabs_7i6mi_77", Si = "_tab_7i6mi_77", Hi = "_tabActive_7i6mi_108", Di = "_applyButtonContainer_7i6mi_121", Pi = "_content_7i6mi_130", Bi = "_flexibleContent_7i6mi_153", Ii = "_contentHeading_7i6mi_169", Ai = "_monthGrid_7i6mi_184", Wi = "_monthGridMobile_7i6mi_193", Ti = "_monthButton_7i6mi_202", Vi = "_monthButtonDisabled_7i6mi_219", Ei = "_monthButtonSelected_7i6mi_224", zi = "_monthLabel_7i6mi_254", Ri = "_monthYear_7i6mi_264", ji = "_anytimeButton_7i6mi_285", Fi = "_datesContent_7i6mi_297", Oi = "_contentDatesActive_7i6mi_301", Q = {
|
|
1217
1217
|
container: Ni,
|
|
1218
1218
|
containerDropdown: ki,
|
|
1219
1219
|
containerExpanded: xi,
|
|
@@ -1268,7 +1268,7 @@ const f5 = (e, r) => {
|
|
|
1268
1268
|
minDate: a,
|
|
1269
1269
|
locale: i = "de-CH"
|
|
1270
1270
|
}) => {
|
|
1271
|
-
const { isDesktop: o } = rt(), [d, c] = $(/* @__PURE__ */ new Date()), l = (k) => e === k, u = (k) => r === k, h = (k) => !e || !r ? !1 : k > e && k < r, m = (k) => new Date(k.getFullYear(), k.getMonth() + 1, 0),
|
|
1271
|
+
const { isDesktop: o } = rt(), [d, c] = $(/* @__PURE__ */ new Date()), l = (k) => e === k, u = (k) => r === k, h = (k) => !e || !r ? !1 : k > e && k < r, m = (k) => new Date(k.getFullYear(), k.getMonth() + 1, 0), f = (k) => new Date(k.getFullYear(), k.getMonth() + 1, 0).getDate(), v = (k) => {
|
|
1272
1272
|
const Z = new Date(k.getFullYear(), k.getMonth(), 1).getDay();
|
|
1273
1273
|
return Z === 0 ? 6 : Z - 1;
|
|
1274
1274
|
}, w = (k) => k.toLocaleDateString(i, { month: "long", year: "numeric" }), p = (() => {
|
|
@@ -1286,7 +1286,7 @@ const f5 = (e, r) => {
|
|
|
1286
1286
|
}
|
|
1287
1287
|
return te > ne;
|
|
1288
1288
|
}, N = (k) => {
|
|
1289
|
-
const Z = new Date(d.getFullYear(), d.getMonth() + k, 1), ne =
|
|
1289
|
+
const Z = new Date(d.getFullYear(), d.getMonth() + k, 1), ne = f(Z), ae = v(Z), te = [];
|
|
1290
1290
|
for (let G = 0; G < ae; G++)
|
|
1291
1291
|
te.push(/* @__PURE__ */ t("div", { className: F.dayCell }, `empty-${G}`));
|
|
1292
1292
|
for (let G = 1; G <= ne; G++) {
|
|
@@ -1431,7 +1431,7 @@ const f5 = (e, r) => {
|
|
|
1431
1431
|
en: "en-GB",
|
|
1432
1432
|
fr: "fr-CH",
|
|
1433
1433
|
it: "it-CH"
|
|
1434
|
-
})[e] || "de-CH",
|
|
1434
|
+
})[e] || "de-CH", zt = ({
|
|
1435
1435
|
initialDateRange: e = { start: null, end: null },
|
|
1436
1436
|
initialMonthFilter: r = null,
|
|
1437
1437
|
onChange: n,
|
|
@@ -1441,7 +1441,7 @@ const f5 = (e, r) => {
|
|
|
1441
1441
|
onApply: d,
|
|
1442
1442
|
className: c = ""
|
|
1443
1443
|
}) => {
|
|
1444
|
-
const { t: l } =
|
|
1444
|
+
const { t: l } = he(), { locale: u } = dt(), { isDesktop: h } = rt(), m = mo(u), [f, v] = $(e), [w, _] = $(
|
|
1445
1445
|
e.start ? "dates" : "anytime"
|
|
1446
1446
|
), p = r || [], y = p.length === 0;
|
|
1447
1447
|
le(() => {
|
|
@@ -1465,21 +1465,21 @@ const f5 = (e, r) => {
|
|
|
1465
1465
|
const j = p.includes(A) ? p.filter((k) => k !== A) : [...p, A];
|
|
1466
1466
|
v({ start: null, end: null }), n == null || n(null), j.length === 0 ? a == null || a(null) : a == null || a(j);
|
|
1467
1467
|
}, B = () => {
|
|
1468
|
-
w === "anytime" ? p.length === 0 && (n == null || n(null)) :
|
|
1468
|
+
w === "anytime" ? p.length === 0 && (n == null || n(null)) : f.start && f.end && (n == null || n(f)), d == null || d();
|
|
1469
1469
|
}, O = (A) => {
|
|
1470
1470
|
_(A), A === "anytime" && (v({ start: null, end: null }), n == null || n(null)), a == null || a(null);
|
|
1471
1471
|
}, W = () => (/* @__PURE__ */ new Date()).toISOString().split("T")[0], T = (A) => {
|
|
1472
1472
|
const j = new Date(A);
|
|
1473
1473
|
return j.setDate(j.getDate() + 1), j.toISOString().split("T")[0];
|
|
1474
1474
|
}, C = (A) => {
|
|
1475
|
-
if (!
|
|
1475
|
+
if (!f.start || f.start && f.end) {
|
|
1476
1476
|
const j = { start: A, end: null };
|
|
1477
1477
|
v(j), n == null || n(j);
|
|
1478
|
-
} else if (A ===
|
|
1479
|
-
const j = T(A), k = { start:
|
|
1478
|
+
} else if (A === f.start) {
|
|
1479
|
+
const j = T(A), k = { start: f.start, end: j };
|
|
1480
1480
|
v(k), n == null || n(k);
|
|
1481
|
-
} else if (A >
|
|
1482
|
-
const j = { start:
|
|
1481
|
+
} else if (A > f.start) {
|
|
1482
|
+
const j = { start: f.start, end: A };
|
|
1483
1483
|
v(j), n == null || n(j);
|
|
1484
1484
|
} else {
|
|
1485
1485
|
const j = { start: A, end: null };
|
|
@@ -1551,20 +1551,20 @@ const f5 = (e, r) => {
|
|
|
1551
1551
|
] }) : /* @__PURE__ */ t("div", { className: Q.datesContent, children: /* @__PURE__ */ t(
|
|
1552
1552
|
ho,
|
|
1553
1553
|
{
|
|
1554
|
-
startDate:
|
|
1555
|
-
endDate:
|
|
1554
|
+
startDate: f.start,
|
|
1555
|
+
endDate: f.end,
|
|
1556
1556
|
locale: m,
|
|
1557
1557
|
onDateSelect: C,
|
|
1558
1558
|
minDate: W()
|
|
1559
1559
|
}
|
|
1560
1560
|
) }) })
|
|
1561
1561
|
] });
|
|
1562
|
-
},
|
|
1562
|
+
}, fo = (e) => ({
|
|
1563
1563
|
de: "de-CH",
|
|
1564
1564
|
en: "en-GB",
|
|
1565
1565
|
fr: "fr-CH",
|
|
1566
1566
|
it: "it-CH"
|
|
1567
|
-
})[e] || "de-CH",
|
|
1567
|
+
})[e] || "de-CH", go = () => /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ t(
|
|
1568
1568
|
"path",
|
|
1569
1569
|
{
|
|
1570
1570
|
d: "M19 4H18V2H16V4H8V2H6V4H5C3.9 4 3 4.9 3 6V20C3 21.1 3.9 22 5 22H19C20.1 22 21 21.1 21 20V6C21 4.9 20.1 4 19 4ZM19 20H5V9H19V20Z",
|
|
@@ -1580,7 +1580,7 @@ const f5 = (e, r) => {
|
|
|
1580
1580
|
className: d,
|
|
1581
1581
|
icon: c
|
|
1582
1582
|
}) => {
|
|
1583
|
-
const { t: l } =
|
|
1583
|
+
const { t: l } = he(), { locale: u } = dt(), { isDesktop: h } = rt(), m = fo(u), [f, v] = $(e), [w, _] = $(!1), [p, y] = $(r || []), N = me(null);
|
|
1584
1584
|
le(() => {
|
|
1585
1585
|
v((C) => C.start === e.start && C.end === e.end ? C : e), y((C) => {
|
|
1586
1586
|
const S = r || [];
|
|
@@ -1590,14 +1590,14 @@ const f5 = (e, r) => {
|
|
|
1590
1590
|
if (!w) return;
|
|
1591
1591
|
const C = (S) => {
|
|
1592
1592
|
if (N.current && !N.current.contains(S.target)) {
|
|
1593
|
-
const x =
|
|
1593
|
+
const x = f.start && f.end ? f : null, I = p.length ? p : null;
|
|
1594
1594
|
n == null || n(x), a == null || a(I), _(!1), i == null || i(x, I);
|
|
1595
1595
|
}
|
|
1596
1596
|
};
|
|
1597
1597
|
return document.addEventListener("pointerdown", C), () => {
|
|
1598
1598
|
document.removeEventListener("pointerdown", C);
|
|
1599
1599
|
};
|
|
1600
|
-
}, [w,
|
|
1600
|
+
}, [w, f, p, n, a, i]);
|
|
1601
1601
|
const M = Ee(() => {
|
|
1602
1602
|
const C = /* @__PURE__ */ new Date();
|
|
1603
1603
|
return Array.from({ length: 12 }, (S, x) => {
|
|
@@ -1609,9 +1609,9 @@ const f5 = (e, r) => {
|
|
|
1609
1609
|
};
|
|
1610
1610
|
});
|
|
1611
1611
|
}, [m]), E = () => {
|
|
1612
|
-
if (
|
|
1612
|
+
if (f.start && f.end) {
|
|
1613
1613
|
const C = (S) => new Date(S).toLocaleDateString(m, { month: "short", day: "numeric" });
|
|
1614
|
-
return `${C(
|
|
1614
|
+
return `${C(f.start)} - ${C(f.end)}`;
|
|
1615
1615
|
}
|
|
1616
1616
|
if (p.length === 1) {
|
|
1617
1617
|
const C = M.find((S) => S.value === p[0]);
|
|
@@ -1623,7 +1623,7 @@ const f5 = (e, r) => {
|
|
|
1623
1623
|
}, B = (C) => {
|
|
1624
1624
|
y(C || []);
|
|
1625
1625
|
}, O = () => {
|
|
1626
|
-
|
|
1626
|
+
f.start && f.end ? n == null || n(f) : n == null || n(null), a == null || a(p.length ? p : null), _(!1);
|
|
1627
1627
|
}, W = [
|
|
1628
1628
|
Pe.button,
|
|
1629
1629
|
o && Pe["button--disabled"],
|
|
@@ -1642,7 +1642,7 @@ const f5 = (e, r) => {
|
|
|
1642
1642
|
onClick: () => !o && _((C) => !C),
|
|
1643
1643
|
disabled: o,
|
|
1644
1644
|
children: [
|
|
1645
|
-
/* @__PURE__ */ t("span", { className: Pe.icon, children: c || /* @__PURE__ */ t(
|
|
1645
|
+
/* @__PURE__ */ t("span", { className: Pe.icon, children: c || /* @__PURE__ */ t(go, {}) }),
|
|
1646
1646
|
/* @__PURE__ */ t("span", { className: Pe.label, children: E() })
|
|
1647
1647
|
]
|
|
1648
1648
|
}
|
|
@@ -1652,16 +1652,16 @@ const f5 = (e, r) => {
|
|
|
1652
1652
|
{
|
|
1653
1653
|
className: Pe.backdrop,
|
|
1654
1654
|
onClick: () => {
|
|
1655
|
-
const C =
|
|
1655
|
+
const C = f.start && f.end ? f : null, S = p.length ? p : null;
|
|
1656
1656
|
n == null || n(C), a == null || a(S), _(!1), i == null || i(C, S);
|
|
1657
1657
|
},
|
|
1658
1658
|
"aria-hidden": "true"
|
|
1659
1659
|
}
|
|
1660
1660
|
),
|
|
1661
1661
|
/* @__PURE__ */ t("div", { className: T, children: /* @__PURE__ */ t(
|
|
1662
|
-
|
|
1662
|
+
zt,
|
|
1663
1663
|
{
|
|
1664
|
-
initialDateRange:
|
|
1664
|
+
initialDateRange: f,
|
|
1665
1665
|
initialMonthFilter: p.length ? p : null,
|
|
1666
1666
|
onChange: R,
|
|
1667
1667
|
onMonthFilterChange: B,
|
|
@@ -1688,7 +1688,7 @@ const f5 = (e, r) => {
|
|
|
1688
1688
|
}
|
|
1689
1689
|
)
|
|
1690
1690
|
}
|
|
1691
|
-
),
|
|
1691
|
+
), Rt = ({
|
|
1692
1692
|
guests: e,
|
|
1693
1693
|
onChange: r,
|
|
1694
1694
|
petFilter: n = 0,
|
|
@@ -1698,7 +1698,7 @@ const f5 = (e, r) => {
|
|
|
1698
1698
|
childAgeErrors: d = [],
|
|
1699
1699
|
onErrorClear: c
|
|
1700
1700
|
}) => {
|
|
1701
|
-
const { t: l } =
|
|
1701
|
+
const { t: l } = he(), u = {
|
|
1702
1702
|
adults: l("form.adults", "Adults"),
|
|
1703
1703
|
children: l("form.children", "Children"),
|
|
1704
1704
|
pet: l("form.pet", "Pet"),
|
|
@@ -1717,7 +1717,7 @@ const f5 = (e, r) => {
|
|
|
1717
1717
|
[_]: e[_] + 1,
|
|
1718
1718
|
childrenAges: p
|
|
1719
1719
|
});
|
|
1720
|
-
},
|
|
1720
|
+
}, f = (_) => {
|
|
1721
1721
|
if (_ === "adults" && e.adults <= 1 || _ === "children" && e.children <= 0) return;
|
|
1722
1722
|
const p = _ === "children" ? h.slice(0, -1) : h;
|
|
1723
1723
|
r({
|
|
@@ -1741,7 +1741,7 @@ const f5 = (e, r) => {
|
|
|
1741
1741
|
{
|
|
1742
1742
|
type: "button",
|
|
1743
1743
|
className: "hc-guest-content__counter-button",
|
|
1744
|
-
onClick: () =>
|
|
1744
|
+
onClick: () => f("adults"),
|
|
1745
1745
|
disabled: e.adults <= 1,
|
|
1746
1746
|
"aria-label": u.decreaseAdults,
|
|
1747
1747
|
children: /* @__PURE__ */ t(pt, {})
|
|
@@ -1770,7 +1770,7 @@ const f5 = (e, r) => {
|
|
|
1770
1770
|
{
|
|
1771
1771
|
type: "button",
|
|
1772
1772
|
className: "hc-guest-content__counter-button",
|
|
1773
|
-
onClick: () =>
|
|
1773
|
+
onClick: () => f("children"),
|
|
1774
1774
|
disabled: e.children <= 0,
|
|
1775
1775
|
"aria-label": u.decreaseChildren,
|
|
1776
1776
|
children: /* @__PURE__ */ t(pt, {})
|
|
@@ -1867,19 +1867,19 @@ const f5 = (e, r) => {
|
|
|
1867
1867
|
icon: c,
|
|
1868
1868
|
childAgeErrors: l = []
|
|
1869
1869
|
}) => {
|
|
1870
|
-
const { t: u } =
|
|
1870
|
+
const { t: u } = he(), [h, m] = $(e), [f, v] = $(r), [w, _] = $(!1), p = me(null), [y, N] = $([]), M = h.adults + h.children;
|
|
1871
1871
|
le(() => {
|
|
1872
1872
|
m(e);
|
|
1873
1873
|
}, [e]), le(() => {
|
|
1874
1874
|
l.length > 0 && (N(l), _(!0));
|
|
1875
1875
|
}, [l]), le(() => {
|
|
1876
1876
|
const T = (C) => {
|
|
1877
|
-
p.current && !p.current.contains(C.target) && (_(!1), i == null || i(h,
|
|
1877
|
+
p.current && !p.current.contains(C.target) && (_(!1), i == null || i(h, f));
|
|
1878
1878
|
};
|
|
1879
1879
|
return w && document.addEventListener("mousedown", T), () => {
|
|
1880
1880
|
document.removeEventListener("mousedown", T);
|
|
1881
1881
|
};
|
|
1882
|
-
}, [w, h,
|
|
1882
|
+
}, [w, h, f, i]);
|
|
1883
1883
|
const E = (T) => {
|
|
1884
1884
|
m(T), n == null || n(T), T.children !== h.children && N([]);
|
|
1885
1885
|
}, R = (T) => {
|
|
@@ -1913,11 +1913,11 @@ const f5 = (e, r) => {
|
|
|
1913
1913
|
}
|
|
1914
1914
|
),
|
|
1915
1915
|
/* @__PURE__ */ t("div", { className: W, children: /* @__PURE__ */ t(
|
|
1916
|
-
|
|
1916
|
+
Rt,
|
|
1917
1917
|
{
|
|
1918
1918
|
guests: h,
|
|
1919
1919
|
onChange: E,
|
|
1920
|
-
petFilter:
|
|
1920
|
+
petFilter: f,
|
|
1921
1921
|
onPetChange: R,
|
|
1922
1922
|
showPetToggle: !0,
|
|
1923
1923
|
childAgeErrors: y,
|
|
@@ -1974,7 +1974,7 @@ const f5 = (e, r) => {
|
|
|
1974
1974
|
disabled: d = !1,
|
|
1975
1975
|
className: c = ""
|
|
1976
1976
|
}) => {
|
|
1977
|
-
const { t: l } =
|
|
1977
|
+
const { t: l } = gi(), { locale: u } = dt(), [h, m] = $([]), [f, v] = $(!1), [w, _] = $(!1), [p, y] = $(-1), [N, M] = $(!1), E = me(null), R = me(null), B = me(), O = w || e.trim().length > 0, W = Ee(() => {
|
|
1978
1978
|
const b = h.filter((z) => z.type === "hotel"), H = h.filter((z) => z.type === "city"), K = h.filter((z) => z.type === "region"), we = h.filter((z) => z.type === "country");
|
|
1979
1979
|
return { hotels: b, cities: H, regions: K, countries: we };
|
|
1980
1980
|
}, [h]), T = Ee(() => [
|
|
@@ -2043,7 +2043,7 @@ const f5 = (e, r) => {
|
|
|
2043
2043
|
lat: b.latitude,
|
|
2044
2044
|
lng: b.longitude
|
|
2045
2045
|
}, j = (b) => {
|
|
2046
|
-
if (!
|
|
2046
|
+
if (!f || T.length === 0) {
|
|
2047
2047
|
(b.key === "ArrowDown" || b.key === "ArrowUp") && v(!0);
|
|
2048
2048
|
return;
|
|
2049
2049
|
}
|
|
@@ -2084,10 +2084,10 @@ const f5 = (e, r) => {
|
|
|
2084
2084
|
const K = b.toLowerCase(), we = H.toLowerCase(), z = K.indexOf(we);
|
|
2085
2085
|
if (z === -1)
|
|
2086
2086
|
return /* @__PURE__ */ t("span", { children: b });
|
|
2087
|
-
const D = b.slice(0, z),
|
|
2087
|
+
const D = b.slice(0, z), g = b.slice(z, z + H.length), L = b.slice(z + H.length);
|
|
2088
2088
|
return /* @__PURE__ */ s("span", { children: [
|
|
2089
2089
|
D,
|
|
2090
|
-
/* @__PURE__ */ t("span", { className: V.suggestionNameBold, children:
|
|
2090
|
+
/* @__PURE__ */ t("span", { className: V.suggestionNameBold, children: g }),
|
|
2091
2091
|
L
|
|
2092
2092
|
] });
|
|
2093
2093
|
}, ae = 2, te = ae + W.cities.length, G = te + W.regions.length, J = G + W.countries.length, de = h.length > 0, Y = e.length >= 2 && !de && !N;
|
|
@@ -2110,7 +2110,7 @@ const f5 = (e, r) => {
|
|
|
2110
2110
|
className: `${V.input} ${c}`,
|
|
2111
2111
|
"aria-label": "Search location",
|
|
2112
2112
|
"aria-autocomplete": "list",
|
|
2113
|
-
"aria-expanded":
|
|
2113
|
+
"aria-expanded": f,
|
|
2114
2114
|
autoComplete: "off"
|
|
2115
2115
|
}
|
|
2116
2116
|
),
|
|
@@ -2125,7 +2125,7 @@ const f5 = (e, r) => {
|
|
|
2125
2125
|
}
|
|
2126
2126
|
),
|
|
2127
2127
|
N && /* @__PURE__ */ t("div", { className: V.loadingIndicator, children: /* @__PURE__ */ t("span", { children: "..." }) }),
|
|
2128
|
-
|
|
2128
|
+
f && /* @__PURE__ */ s("div", { ref: R, className: V.dropdown, children: [
|
|
2129
2129
|
!de && !Y && /* @__PURE__ */ t("div", { className: V.dropdownHeader, children: l("search:general.suggested-destinations", "Suggested destinations") }),
|
|
2130
2130
|
!de && !Y && /* @__PURE__ */ s("div", { className: V.section, children: [
|
|
2131
2131
|
/* @__PURE__ */ s(
|
|
@@ -2264,11 +2264,11 @@ const f5 = (e, r) => {
|
|
|
2264
2264
|
value: n,
|
|
2265
2265
|
onChange: a
|
|
2266
2266
|
}) => {
|
|
2267
|
-
const { t: i } =
|
|
2268
|
-
{ value: "relevance", labelKey: "
|
|
2269
|
-
{ value: "price_asc", labelKey: "
|
|
2270
|
-
{ value: "price_desc", labelKey: "
|
|
2271
|
-
{ value: "rating", labelKey: "
|
|
2267
|
+
const { t: i } = he(), o = [
|
|
2268
|
+
{ value: "relevance", labelKey: "filter.relevance", defaultLabel: "Relevance" },
|
|
2269
|
+
{ value: "price_asc", labelKey: "filter.price-low-high", defaultLabel: "Price low to high" },
|
|
2270
|
+
{ value: "price_desc", labelKey: "filter.price-high-low", defaultLabel: "Price high to low" },
|
|
2271
|
+
{ value: "rating", labelKey: "filter.best-rating", defaultLabel: "Best guest rating" }
|
|
2272
2272
|
], d = (c) => {
|
|
2273
2273
|
a(c), r();
|
|
2274
2274
|
};
|
|
@@ -2284,7 +2284,7 @@ const f5 = (e, r) => {
|
|
|
2284
2284
|
onClick: (c) => c.stopPropagation(),
|
|
2285
2285
|
children: [
|
|
2286
2286
|
/* @__PURE__ */ s("div", { className: Se.header, children: [
|
|
2287
|
-
/* @__PURE__ */ t("h2", { className: Se.title, children: i("
|
|
2287
|
+
/* @__PURE__ */ t("h2", { className: Se.title, children: i("subheadline.sort-by", "Sort by") }),
|
|
2288
2288
|
/* @__PURE__ */ t(
|
|
2289
2289
|
je,
|
|
2290
2290
|
{
|
|
@@ -2292,7 +2292,7 @@ const f5 = (e, r) => {
|
|
|
2292
2292
|
size: "small",
|
|
2293
2293
|
iconOnly: !0,
|
|
2294
2294
|
onClick: r,
|
|
2295
|
-
"aria-label": i("
|
|
2295
|
+
"aria-label": i("aria.close", "Close"),
|
|
2296
2296
|
children: /* @__PURE__ */ t(ss, {})
|
|
2297
2297
|
}
|
|
2298
2298
|
)
|
|
@@ -2315,15 +2315,15 @@ const f5 = (e, r) => {
|
|
|
2315
2315
|
]
|
|
2316
2316
|
}
|
|
2317
2317
|
) }) : null;
|
|
2318
|
-
}, ls = "_container_1hlf3_15", cs = "_containerCompact_1hlf3_27", ds = "_inputsContainer_1hlf3_37", us = "_inputWrapper_1hlf3_55", hs = "_input_1hlf3_37", ms = "_divider_1hlf3_116",
|
|
2318
|
+
}, ls = "_container_1hlf3_15", cs = "_containerCompact_1hlf3_27", ds = "_inputsContainer_1hlf3_37", us = "_inputWrapper_1hlf3_55", hs = "_input_1hlf3_37", ms = "_divider_1hlf3_116", fs = "_controlWrapper_1hlf3_128", gs = "_control_1hlf3_128", ps = "_buttonWrapper_1hlf3_179", ws = "_mobileContainer_1hlf3_263", _s = "_mobileSummary_1hlf3_271", vs = "_mobileSummaryIcon_1hlf3_291", bs = "_mobileSummaryText_1hlf3_306", Cs = "_mobileSummaryTitle_1hlf3_316", ys = "_mobileSummarySubtitle_1hlf3_331", Ns = "_mobileActionBar_1hlf3_350", ks = "_mobileActionButton_1hlf3_357", xs = "_mobileActionDivider_1hlf3_397", Ms = "_clearButton_1hlf3_408", ee = {
|
|
2319
2319
|
container: ls,
|
|
2320
2320
|
containerCompact: cs,
|
|
2321
2321
|
inputsContainer: ds,
|
|
2322
2322
|
inputWrapper: us,
|
|
2323
2323
|
input: hs,
|
|
2324
2324
|
divider: ms,
|
|
2325
|
-
controlWrapper:
|
|
2326
|
-
control:
|
|
2325
|
+
controlWrapper: fs,
|
|
2326
|
+
control: gs,
|
|
2327
2327
|
buttonWrapper: ps,
|
|
2328
2328
|
mobileContainer: ws,
|
|
2329
2329
|
mobileSummary: _s,
|
|
@@ -2360,7 +2360,7 @@ const f5 = (e, r) => {
|
|
|
2360
2360
|
onFilterClick: u,
|
|
2361
2361
|
onSortClick: h,
|
|
2362
2362
|
initialQuery: m = "",
|
|
2363
|
-
initialGuests:
|
|
2363
|
+
initialGuests: f = { adults: 2, children: 0, childrenAges: [] },
|
|
2364
2364
|
initialPetFilter: v = 0,
|
|
2365
2365
|
initialDateRange: w = null,
|
|
2366
2366
|
initialMonthFilter: _ = null,
|
|
@@ -2370,15 +2370,15 @@ const f5 = (e, r) => {
|
|
|
2370
2370
|
hideViewToggle: M = !1,
|
|
2371
2371
|
compact: E = !1
|
|
2372
2372
|
}) => {
|
|
2373
|
-
const { isDesktop: R } = rt(), { t: B } =
|
|
2373
|
+
const { isDesktop: R } = rt(), { t: B } = he(), [O, W] = $(m), [T, C] = $(f), [S, x] = $(v), [I, A] = $(w), [j, k] = $(_), [Z, ne] = $([]);
|
|
2374
2374
|
le(() => {
|
|
2375
|
-
C(
|
|
2376
|
-
}, [
|
|
2375
|
+
C(f), W(m), A(w), k(_);
|
|
2376
|
+
}, [f, m, w, _]);
|
|
2377
2377
|
const ae = (D) => {
|
|
2378
2378
|
D.preventDefault();
|
|
2379
|
-
const
|
|
2380
|
-
if (
|
|
2381
|
-
ne(
|
|
2379
|
+
const g = G();
|
|
2380
|
+
if (g.length > 0) {
|
|
2381
|
+
ne(g);
|
|
2382
2382
|
return;
|
|
2383
2383
|
}
|
|
2384
2384
|
e({
|
|
@@ -2392,9 +2392,9 @@ const f5 = (e, r) => {
|
|
|
2392
2392
|
}, te = (D) => {
|
|
2393
2393
|
C(D);
|
|
2394
2394
|
}, G = () => {
|
|
2395
|
-
const D = [],
|
|
2395
|
+
const D = [], g = Array.isArray(T.childrenAges) ? T.childrenAges : [];
|
|
2396
2396
|
for (let L = 0; L < T.children; L++) {
|
|
2397
|
-
const X =
|
|
2397
|
+
const X = g[L];
|
|
2398
2398
|
X == null && D.push({
|
|
2399
2399
|
index: L,
|
|
2400
2400
|
message: B("form.age-error")
|
|
@@ -2411,18 +2411,18 @@ const f5 = (e, r) => {
|
|
|
2411
2411
|
});
|
|
2412
2412
|
}, Y = (D) => {
|
|
2413
2413
|
D.stopPropagation();
|
|
2414
|
-
const
|
|
2415
|
-
C(
|
|
2414
|
+
const g = { adults: 2, children: 0, childrenAges: [] };
|
|
2415
|
+
C(g), e({
|
|
2416
2416
|
query: O.trim(),
|
|
2417
|
-
guests:
|
|
2417
|
+
guests: g,
|
|
2418
2418
|
petFilter: S,
|
|
2419
2419
|
dateRange: I,
|
|
2420
2420
|
monthFilter: j
|
|
2421
2421
|
});
|
|
2422
2422
|
}, b = (D) => {
|
|
2423
2423
|
W(D);
|
|
2424
|
-
}, H = (D,
|
|
2425
|
-
A(D), k(
|
|
2424
|
+
}, H = (D, g) => {
|
|
2425
|
+
A(D), k(g);
|
|
2426
2426
|
const L = G();
|
|
2427
2427
|
if (L.length > 0) {
|
|
2428
2428
|
ne(L);
|
|
@@ -2433,14 +2433,14 @@ const f5 = (e, r) => {
|
|
|
2433
2433
|
guests: T,
|
|
2434
2434
|
petFilter: S,
|
|
2435
2435
|
dateRange: D,
|
|
2436
|
-
monthFilter:
|
|
2436
|
+
monthFilter: g
|
|
2437
2437
|
});
|
|
2438
|
-
}, K = (D,
|
|
2439
|
-
C(D), x(
|
|
2438
|
+
}, K = (D, g) => {
|
|
2439
|
+
C(D), x(g);
|
|
2440
2440
|
const L = Array.isArray(D.childrenAges) ? D.childrenAges : [], X = [];
|
|
2441
|
-
for (let
|
|
2442
|
-
const ie = L[
|
|
2443
|
-
ie == null && X.push({ index:
|
|
2441
|
+
for (let fe = 0; fe < D.children; fe++) {
|
|
2442
|
+
const ie = L[fe];
|
|
2443
|
+
ie == null && X.push({ index: fe, message: B("form.age-error") });
|
|
2444
2444
|
}
|
|
2445
2445
|
if (X.length > 0) {
|
|
2446
2446
|
ne(X);
|
|
@@ -2449,7 +2449,7 @@ const f5 = (e, r) => {
|
|
|
2449
2449
|
e({
|
|
2450
2450
|
query: O.trim(),
|
|
2451
2451
|
guests: D,
|
|
2452
|
-
petFilter:
|
|
2452
|
+
petFilter: g,
|
|
2453
2453
|
dateRange: I,
|
|
2454
2454
|
monthFilter: j
|
|
2455
2455
|
});
|
|
@@ -2463,16 +2463,16 @@ const f5 = (e, r) => {
|
|
|
2463
2463
|
value: O,
|
|
2464
2464
|
onChange: b,
|
|
2465
2465
|
onAutocomplete: o,
|
|
2466
|
-
onSubmit: (D,
|
|
2466
|
+
onSubmit: (D, g, L, X, fe) => {
|
|
2467
2467
|
e({
|
|
2468
2468
|
query: X ? D.trim() : "",
|
|
2469
2469
|
guests: T,
|
|
2470
2470
|
petFilter: S,
|
|
2471
2471
|
dateRange: I,
|
|
2472
2472
|
monthFilter: j,
|
|
2473
|
-
coordinates:
|
|
2473
|
+
coordinates: g,
|
|
2474
2474
|
regionsFilter: L ? [`region_${L}`] : [],
|
|
2475
|
-
destinationMode:
|
|
2475
|
+
destinationMode: fe
|
|
2476
2476
|
});
|
|
2477
2477
|
},
|
|
2478
2478
|
placeholder: B("label.anywhere"),
|
|
@@ -2658,7 +2658,7 @@ const f5 = (e, r) => {
|
|
|
2658
2658
|
addToFavorites: "Add to favorites",
|
|
2659
2659
|
previousImage: "Previous image",
|
|
2660
2660
|
nextImage: "Next image"
|
|
2661
|
-
}, d = e.slice(0, Bs), [c, l] = $(0), [u, h] = $(/* @__PURE__ */ new Set()), [m,
|
|
2661
|
+
}, d = e.slice(0, Bs), [c, l] = $(0), [u, h] = $(/* @__PURE__ */ new Set()), [m, f] = $(null), [v, w] = $(null), [_, p] = $(!1), y = me(null), N = (x) => {
|
|
2662
2662
|
h((I) => new Set(I).add(x));
|
|
2663
2663
|
}, M = (x) => u.has(x) ? Ct : d[x] || Ct, E = () => {
|
|
2664
2664
|
l((x) => x === 0 ? d.length - 1 : x - 1);
|
|
@@ -2669,13 +2669,13 @@ const f5 = (e, r) => {
|
|
|
2669
2669
|
}, O = (x) => {
|
|
2670
2670
|
x.preventDefault(), x.stopPropagation(), R();
|
|
2671
2671
|
}, W = (x) => {
|
|
2672
|
-
x.stopPropagation(), w(null),
|
|
2672
|
+
x.stopPropagation(), w(null), f(x.targetTouches[0].clientX), p(!0);
|
|
2673
2673
|
}, T = (x) => {
|
|
2674
2674
|
x.stopPropagation(), m && w(x.targetTouches[0].clientX);
|
|
2675
2675
|
}, C = (x) => {
|
|
2676
2676
|
if (x.stopPropagation(), p(!1), !m || !v) return;
|
|
2677
2677
|
const I = m - v;
|
|
2678
|
-
I > bt ? R() : I < -bt && E(),
|
|
2678
|
+
I > bt ? R() : I < -bt && E(), f(null), w(null);
|
|
2679
2679
|
}, S = (x) => {
|
|
2680
2680
|
x.preventDefault(), x.stopPropagation(), i();
|
|
2681
2681
|
};
|
|
@@ -2767,7 +2767,7 @@ const f5 = (e, r) => {
|
|
|
2767
2767
|
isAvailable: l = !0,
|
|
2768
2768
|
onClick: u
|
|
2769
2769
|
}) => {
|
|
2770
|
-
const { t: h } =
|
|
2770
|
+
const { t: h } = he(), m = {
|
|
2771
2771
|
ratingExcellent: h("label.rating-excellent", "Excellent"),
|
|
2772
2772
|
ratingVeryGood: h("label.rating-very-good", "Very good"),
|
|
2773
2773
|
ratingGood: h("label.rating-good", "Good"),
|
|
@@ -2776,7 +2776,7 @@ const f5 = (e, r) => {
|
|
|
2776
2776
|
priceFrom: h("label.per-room-night", "per room & night from"),
|
|
2777
2777
|
notAvailable: h("general.unavailable-for-selected-days", "Not available"),
|
|
2778
2778
|
swissLodge: "Swiss Lodge"
|
|
2779
|
-
},
|
|
2779
|
+
}, f = (_) => _ >= 4.4 ? m.ratingExcellent : _ >= 4.1 ? m.ratingVeryGood : _ >= 3.8 ? m.ratingGood : _ >= 3.5 ? m.ratingFair : m.rating, v = (_) => {
|
|
2780
2780
|
switch (_) {
|
|
2781
2781
|
case "free-breakfast":
|
|
2782
2782
|
return /* @__PURE__ */ t(Rs, {});
|
|
@@ -2805,7 +2805,7 @@ const f5 = (e, r) => {
|
|
|
2805
2805
|
n && /* @__PURE__ */ t("span", { className: "hc-hotel-card__stars-indicator", children: "(s)" })
|
|
2806
2806
|
] }),
|
|
2807
2807
|
a > 0 && /* @__PURE__ */ s("div", { className: "hc-hotel-card__rating-wrapper", children: [
|
|
2808
|
-
/* @__PURE__ */ t("span", { className: "hc-hotel-card__rating-text", children:
|
|
2808
|
+
/* @__PURE__ */ t("span", { className: "hc-hotel-card__rating-text", children: f(a) }),
|
|
2809
2809
|
/* @__PURE__ */ s("div", { className: "hc-hotel-card__rating-badge", children: [
|
|
2810
2810
|
/* @__PURE__ */ t(Os, {}),
|
|
2811
2811
|
/* @__PURE__ */ t("span", { className: "hc-hotel-card__rating-number", children: a.toFixed(1) })
|
|
@@ -2923,10 +2923,10 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
2923
2923
|
suggestionNameBold: ul,
|
|
2924
2924
|
suggestionMeta: hl,
|
|
2925
2925
|
emptyState: ml
|
|
2926
|
-
},
|
|
2926
|
+
}, fl = () => /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
2927
2927
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_location_content)", children: /* @__PURE__ */ t("path", { d: "M9.75 2.25C11.7391 2.25 13.6468 3.04018 15.0533 4.4467C16.4598 5.85322 17.25 7.76088 17.25 9.75C17.25 11.7391 16.4598 13.6468 15.0533 15.0533C13.6468 16.4598 11.7391 17.25 9.75 17.25C7.76088 17.25 5.85322 16.4598 4.4467 15.0533C3.04018 13.6468 2.25 11.7391 2.25 9.75C2.25 7.76088 3.04018 5.85322 4.4467 4.4467C5.85322 3.04018 7.76088 2.25 9.75 2.25ZM9.75 19.5C12.0375 19.5 14.1422 18.7125 15.8016 17.3953L22.0781 23.6719C22.5187 24.1125 23.2312 24.1125 23.6672 23.6719C24.1031 23.2313 24.1078 22.5188 23.6672 22.0828L17.3953 15.8016C18.7125 14.1422 19.5 12.0375 19.5 9.75C19.5 4.36406 15.1359 0 9.75 0C4.36406 0 0 4.36406 0 9.75C0 15.1359 4.36406 19.5 9.75 19.5ZM13.5 8.25C13.5 6.17812 11.8219 4.5 9.75 4.5C7.67812 4.5 6 6.17812 6 8.25C6 10.5375 8.17969 13.4813 9.21562 14.7469C9.49687 15.0891 10.0031 15.0891 10.2797 14.7469C11.3156 13.4813 13.4953 10.5375 13.4953 8.25H13.5ZM8.25 8.25C8.25 7.85218 8.40804 7.47064 8.68934 7.18934C8.97064 6.90804 9.35217 6.75 9.75 6.75C10.1478 6.75 10.5294 6.90804 10.8107 7.18934C11.092 7.47064 11.25 7.85218 11.25 8.25C11.25 8.64782 11.092 9.02936 10.8107 9.31066C10.5294 9.59196 10.1478 9.75 9.75 9.75C9.35217 9.75 8.97064 9.59196 8.68934 9.31066C8.40804 9.02936 8.25 8.64782 8.25 8.25Z", fill: "currentColor" }) }),
|
|
2928
2928
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_location_content", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
2929
|
-
] }),
|
|
2929
|
+
] }), gl = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "16", viewBox: "0 0 24 16", fill: "none", children: /* @__PURE__ */ t("path", { d: "M8.55417 0C7.84583 0 7.16667 0.279167 6.66667 0.779167L0.391667 7.05833C0.141667 7.30833 0 7.64583 0 8C0 8.35417 0.141667 8.69167 0.391667 8.94167L6.66667 15.2208C7.16667 15.7208 7.84583 16 8.55417 16H21.3333C22.8042 16 24 14.8042 24 13.3333V2.66667C24 1.19583 22.8042 0 21.3333 0H8.55417ZM22 2.66667V13.3333C22 13.7 21.7 14 21.3333 14H8.55417C8.37917 14 8.20833 13.9292 8.08333 13.8042L2.275 8L8.07917 2.19583C8.20417 2.07083 8.375 2 8.55 2H21.3333C21.7 2 22 2.3 22 2.66667ZM11.8375 5.17083C11.4458 5.5625 11.4458 6.19583 11.8375 6.58333L13.25 7.99583L11.8375 9.40833C11.4458 9.8 11.4458 10.4333 11.8375 10.8208C12.2292 11.2083 12.8625 11.2125 13.25 10.8208L14.6625 9.40833L16.075 10.8208C16.4667 11.2125 17.1 11.2125 17.4875 10.8208C17.875 10.4292 17.8792 9.79583 17.4875 9.40833L16.075 7.99583L17.4875 6.58333C17.8792 6.19167 17.8792 5.55833 17.4875 5.17083C17.0958 4.78333 16.4625 4.77917 16.075 5.17083L14.6625 6.58333L13.25 5.17083C12.8583 4.77917 12.225 4.77917 11.8375 5.17083Z", fill: "#1F2937" }) }), yt = () => /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
|
|
2930
2930
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_1151_67394_content)", children: /* @__PURE__ */ t("path", { d: "M8.125 1.875C9.7826 1.875 11.3723 2.53348 12.5444 3.70558C13.7165 4.87768 14.375 6.4674 14.375 8.125C14.375 9.7826 13.7165 11.3723 12.5444 12.5444C11.3723 13.7165 9.7826 14.375 8.125 14.375C6.4674 14.375 4.87768 13.7165 3.70558 12.5444C2.53348 11.3723 1.875 9.7826 1.875 8.125C1.875 6.4674 2.53348 4.87768 3.70558 3.70558C4.87768 2.53348 6.4674 1.875 8.125 1.875ZM8.125 16.25C10.0312 16.25 11.7852 15.5937 13.168 14.4961L18.3984 19.7266C18.7656 20.0937 19.3594 20.0937 19.7227 19.7266C20.0859 19.3594 20.0898 18.7656 19.7227 18.4023L14.4961 13.168C15.5937 11.7852 16.25 10.0312 16.25 8.125C16.25 3.63672 12.6133 0 8.125 0C3.63672 0 0 3.63672 0 8.125C0 12.6133 3.63672 16.25 8.125 16.25ZM11.25 6.875C11.25 5.14844 9.85156 3.75 8.125 3.75C6.39844 3.75 5 5.14844 5 6.875C5 8.78125 6.81641 11.2344 7.67969 12.2891C7.91406 12.5742 8.33594 12.5742 8.56641 12.2891C9.42969 11.2344 11.2461 8.78125 11.2461 6.875H11.25ZM6.875 6.875C6.875 6.54348 7.0067 6.22554 7.24112 5.99112C7.47554 5.7567 7.79348 5.625 8.125 5.625C8.45652 5.625 8.77446 5.7567 9.00888 5.99112C9.2433 6.22554 9.375 6.54348 9.375 6.875C9.375 7.20652 9.2433 7.52446 9.00888 7.75888C8.77446 7.9933 8.45652 8.125 8.125 8.125C7.79348 8.125 7.47554 7.9933 7.24112 7.75888C7.0067 7.52446 6.875 7.20652 6.875 6.875Z", fill: "currentColor" }) }),
|
|
2931
2931
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_1151_67394_content", children: /* @__PURE__ */ t("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
2932
2932
|
] }), pl = () => /* @__PURE__ */ s("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
|
|
@@ -2954,10 +2954,10 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
2954
2954
|
showInput: c = !0,
|
|
2955
2955
|
inputRef: l
|
|
2956
2956
|
}) => {
|
|
2957
|
-
const { t: u, apiBaseUrl: h, locale: m } =
|
|
2958
|
-
const
|
|
2959
|
-
return { hotels:
|
|
2960
|
-
}, [
|
|
2957
|
+
const { t: u, apiBaseUrl: h, locale: m } = he(), [f, v] = $([]), [w, _] = $(-1), [p, y] = $(!1), [N, M] = $(!1), [E, R] = $(!1), B = me(null), O = l || B, W = me(), T = me(null), C = N || e.trim().length > 0, S = Ee(() => {
|
|
2958
|
+
const g = f.filter((ie) => ie.type === "hotel"), L = f.filter((ie) => ie.type === "city"), X = f.filter((ie) => ie.type === "region"), fe = f.filter((ie) => ie.type === "country");
|
|
2959
|
+
return { hotels: g, cities: L, regions: X, countries: fe };
|
|
2960
|
+
}, [f]), x = Ee(() => [
|
|
2961
2961
|
...[
|
|
2962
2962
|
{ type: "anywhere", name: u("label.anywhere") },
|
|
2963
2963
|
{ type: "nearme", name: u("label.nearby") }
|
|
@@ -2966,14 +2966,14 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
2966
2966
|
...S.regions,
|
|
2967
2967
|
...S.countries,
|
|
2968
2968
|
...S.hotels
|
|
2969
|
-
], [S, u]), I = async (
|
|
2970
|
-
if (
|
|
2969
|
+
], [S, u]), I = async (g) => {
|
|
2970
|
+
if (g.length < 2) {
|
|
2971
2971
|
v([]);
|
|
2972
2972
|
return;
|
|
2973
2973
|
}
|
|
2974
2974
|
try {
|
|
2975
2975
|
y(!0);
|
|
2976
|
-
const L = await Ys(
|
|
2976
|
+
const L = await Ys(g, h, m);
|
|
2977
2977
|
v(L), _(-1);
|
|
2978
2978
|
} catch (L) {
|
|
2979
2979
|
console.error("Autocomplete error:", L), v([]);
|
|
@@ -2987,32 +2987,32 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
2987
2987
|
W.current && clearTimeout(W.current);
|
|
2988
2988
|
}), [e]), le(() => {
|
|
2989
2989
|
if (o === "expanded") return;
|
|
2990
|
-
const
|
|
2990
|
+
const g = (L) => {
|
|
2991
2991
|
T.current && !T.current.contains(L.target) && O.current && !O.current.contains(L.target) && R(!1);
|
|
2992
2992
|
};
|
|
2993
|
-
return document.addEventListener("mousedown",
|
|
2993
|
+
return document.addEventListener("mousedown", g), () => document.removeEventListener("mousedown", g);
|
|
2994
2994
|
}, [o]);
|
|
2995
|
-
const A = (
|
|
2996
|
-
r(
|
|
2997
|
-
}, j = (
|
|
2995
|
+
const A = (g) => {
|
|
2996
|
+
r(g.target.value), R(!0);
|
|
2997
|
+
}, j = (g) => {
|
|
2998
2998
|
var L;
|
|
2999
|
-
|
|
3000
|
-
}, k = (
|
|
3001
|
-
if (
|
|
2999
|
+
g.stopPropagation(), r(""), (L = O.current) == null || L.focus();
|
|
3000
|
+
}, k = (g) => {
|
|
3001
|
+
if (g.type === "anywhere") {
|
|
3002
3002
|
r(""), R(!1), n("");
|
|
3003
3003
|
return;
|
|
3004
3004
|
}
|
|
3005
|
-
if (
|
|
3005
|
+
if (g.type === "nearme") {
|
|
3006
3006
|
ne();
|
|
3007
3007
|
return;
|
|
3008
3008
|
}
|
|
3009
|
-
const L =
|
|
3010
|
-
r(X), n(X,
|
|
3011
|
-
}, Z = (
|
|
3012
|
-
if (!(!(
|
|
3009
|
+
const L = g, X = L.name, fe = Z(L), ie = L.type === "region" ? L.id : void 0;
|
|
3010
|
+
r(X), n(X, fe, ie, L.type), R(!1);
|
|
3011
|
+
}, Z = (g) => {
|
|
3012
|
+
if (!(!(g != null && g.latitude) || !(g != null && g.longitude)))
|
|
3013
3013
|
return {
|
|
3014
|
-
lat:
|
|
3015
|
-
lng:
|
|
3014
|
+
lat: g.latitude,
|
|
3015
|
+
lng: g.longitude
|
|
3016
3016
|
};
|
|
3017
3017
|
}, ne = () => {
|
|
3018
3018
|
if (R(!1), !navigator.geolocation) {
|
|
@@ -3020,15 +3020,15 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3020
3020
|
return;
|
|
3021
3021
|
}
|
|
3022
3022
|
navigator.geolocation.getCurrentPosition(
|
|
3023
|
-
(
|
|
3023
|
+
(g) => {
|
|
3024
3024
|
const L = {
|
|
3025
|
-
lat:
|
|
3026
|
-
lng:
|
|
3025
|
+
lat: g.coords.latitude,
|
|
3026
|
+
lng: g.coords.longitude
|
|
3027
3027
|
};
|
|
3028
3028
|
r(u("label.nearby")), n(u("label.nearby"), L);
|
|
3029
3029
|
},
|
|
3030
|
-
(
|
|
3031
|
-
console.warn("Geolocation error:",
|
|
3030
|
+
(g) => {
|
|
3031
|
+
console.warn("Geolocation error:", g.message), r(""), n("");
|
|
3032
3032
|
},
|
|
3033
3033
|
{
|
|
3034
3034
|
enableHighAccuracy: !1,
|
|
@@ -3036,29 +3036,29 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3036
3036
|
maximumAge: 3e5
|
|
3037
3037
|
}
|
|
3038
3038
|
);
|
|
3039
|
-
}, ae = (
|
|
3039
|
+
}, ae = (g) => {
|
|
3040
3040
|
if (!E || x.length === 0) {
|
|
3041
|
-
(
|
|
3041
|
+
(g.key === "ArrowDown" || g.key === "ArrowUp") && R(!0);
|
|
3042
3042
|
return;
|
|
3043
3043
|
}
|
|
3044
|
-
switch (
|
|
3044
|
+
switch (g.key) {
|
|
3045
3045
|
case "ArrowDown":
|
|
3046
|
-
|
|
3046
|
+
g.preventDefault(), _(
|
|
3047
3047
|
(L) => L < x.length - 1 ? L + 1 : L
|
|
3048
3048
|
);
|
|
3049
3049
|
break;
|
|
3050
3050
|
case "ArrowUp":
|
|
3051
|
-
|
|
3051
|
+
g.preventDefault(), _((L) => L > 0 ? L - 1 : -1);
|
|
3052
3052
|
break;
|
|
3053
3053
|
case "Enter":
|
|
3054
|
-
|
|
3054
|
+
g.preventDefault(), w >= 0 && w < x.length && k(x[w]);
|
|
3055
3055
|
break;
|
|
3056
3056
|
case "Escape":
|
|
3057
|
-
|
|
3057
|
+
g.preventDefault(), R(!1), _(-1);
|
|
3058
3058
|
break;
|
|
3059
3059
|
}
|
|
3060
|
-
}, te = (
|
|
3061
|
-
switch (
|
|
3060
|
+
}, te = (g) => {
|
|
3061
|
+
switch (g) {
|
|
3062
3062
|
case "hotel":
|
|
3063
3063
|
return /* @__PURE__ */ t(wl, {});
|
|
3064
3064
|
case "city":
|
|
@@ -3074,29 +3074,29 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3074
3074
|
default:
|
|
3075
3075
|
return /* @__PURE__ */ t(yt, {});
|
|
3076
3076
|
}
|
|
3077
|
-
}, G = (
|
|
3078
|
-
if (
|
|
3079
|
-
return
|
|
3080
|
-
}, J = (
|
|
3077
|
+
}, G = (g) => {
|
|
3078
|
+
if (g)
|
|
3079
|
+
return g.replace(/\s*\(Region\)\s*/gi, "").replace(/\s*common\s*\d+\s*/gi, "").trim();
|
|
3080
|
+
}, J = (g, L) => {
|
|
3081
3081
|
if (!L || L.length < 2)
|
|
3082
|
-
return /* @__PURE__ */ t("span", { children:
|
|
3083
|
-
const X =
|
|
3082
|
+
return /* @__PURE__ */ t("span", { children: g });
|
|
3083
|
+
const X = g.toLowerCase(), fe = L.toLowerCase(), ie = X.indexOf(fe);
|
|
3084
3084
|
if (ie === -1)
|
|
3085
|
-
return /* @__PURE__ */ t("span", { children:
|
|
3086
|
-
const Xe =
|
|
3085
|
+
return /* @__PURE__ */ t("span", { children: g });
|
|
3086
|
+
const Xe = g.slice(0, ie), Ze = g.slice(ie, ie + L.length), Ye = g.slice(ie + L.length);
|
|
3087
3087
|
return /* @__PURE__ */ s("span", { children: [
|
|
3088
3088
|
Xe,
|
|
3089
3089
|
/* @__PURE__ */ t("span", { className: P.suggestionNameBold, children: Ze }),
|
|
3090
3090
|
Ye
|
|
3091
3091
|
] });
|
|
3092
|
-
}, Y = 2, b = Y + S.cities.length, H = b + S.regions.length, K = H + S.countries.length, we =
|
|
3092
|
+
}, Y = 2, b = Y + S.cities.length, H = b + S.regions.length, K = H + S.countries.length, we = f.length > 0, z = e.length >= 2 && !we && !p, D = [
|
|
3093
3093
|
P.container,
|
|
3094
3094
|
o === "expanded" ? P.containerExpanded : P.containerDropdown,
|
|
3095
3095
|
d
|
|
3096
3096
|
].filter(Boolean).join(" ");
|
|
3097
3097
|
return /* @__PURE__ */ s("div", { className: D, children: [
|
|
3098
3098
|
c && /* @__PURE__ */ s("div", { className: P.inputWrapper, children: [
|
|
3099
|
-
/* @__PURE__ */ t("span", { className: `${P.inputIcon} ${C ? P.inputIconActive : ""}`, children: /* @__PURE__ */ t(
|
|
3099
|
+
/* @__PURE__ */ t("span", { className: `${P.inputIcon} ${C ? P.inputIconActive : ""}`, children: /* @__PURE__ */ t(fl, {}) }),
|
|
3100
3100
|
/* @__PURE__ */ t(
|
|
3101
3101
|
"input",
|
|
3102
3102
|
{
|
|
@@ -3128,7 +3128,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3128
3128
|
className: P.clearButton,
|
|
3129
3129
|
onClick: j,
|
|
3130
3130
|
"aria-label": u("label.clear"),
|
|
3131
|
-
children: /* @__PURE__ */ t(
|
|
3131
|
+
children: /* @__PURE__ */ t(gl, {})
|
|
3132
3132
|
}
|
|
3133
3133
|
)
|
|
3134
3134
|
] }),
|
|
@@ -3165,90 +3165,90 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3165
3165
|
] }),
|
|
3166
3166
|
S.cities.length > 0 && /* @__PURE__ */ s("div", { className: P.section, children: [
|
|
3167
3167
|
/* @__PURE__ */ t("div", { className: P.sectionHeader, children: u("dropdown.cities") }),
|
|
3168
|
-
/* @__PURE__ */ t("div", { children: S.cities.map((
|
|
3168
|
+
/* @__PURE__ */ t("div", { children: S.cities.map((g, L) => {
|
|
3169
3169
|
const X = Y + L;
|
|
3170
3170
|
return /* @__PURE__ */ s(
|
|
3171
3171
|
"button",
|
|
3172
3172
|
{
|
|
3173
3173
|
type: "button",
|
|
3174
3174
|
className: `${P.suggestion} ${X === w ? P.suggestionSelected : ""}`,
|
|
3175
|
-
onClick: () => k(
|
|
3175
|
+
onClick: () => k(g),
|
|
3176
3176
|
onMouseEnter: () => _(X),
|
|
3177
3177
|
children: [
|
|
3178
3178
|
/* @__PURE__ */ t("span", { className: P.suggestionIcon, children: te("city") }),
|
|
3179
3179
|
/* @__PURE__ */ s("div", { className: P.suggestionContent, children: [
|
|
3180
|
-
/* @__PURE__ */ t("div", { className: P.suggestionName, children: J(
|
|
3181
|
-
|
|
3180
|
+
/* @__PURE__ */ t("div", { className: P.suggestionName, children: J(g.name, e) }),
|
|
3181
|
+
g.region && G(g.region) && /* @__PURE__ */ t("div", { className: P.suggestionMeta, children: G(g.region) })
|
|
3182
3182
|
] })
|
|
3183
3183
|
]
|
|
3184
3184
|
},
|
|
3185
|
-
`city-${
|
|
3185
|
+
`city-${g.name}-${L}`
|
|
3186
3186
|
);
|
|
3187
3187
|
}) })
|
|
3188
3188
|
] }),
|
|
3189
3189
|
S.regions.length > 0 && /* @__PURE__ */ s("div", { className: P.section, children: [
|
|
3190
3190
|
/* @__PURE__ */ t("div", { className: P.sectionHeader, children: u("dropdown.regions") }),
|
|
3191
|
-
/* @__PURE__ */ t("div", { children: S.regions.map((
|
|
3191
|
+
/* @__PURE__ */ t("div", { children: S.regions.map((g, L) => {
|
|
3192
3192
|
const X = b + L;
|
|
3193
3193
|
return /* @__PURE__ */ s(
|
|
3194
3194
|
"button",
|
|
3195
3195
|
{
|
|
3196
3196
|
type: "button",
|
|
3197
3197
|
className: `${P.suggestion} ${X === w ? P.suggestionSelected : ""}`,
|
|
3198
|
-
onClick: () => k(
|
|
3198
|
+
onClick: () => k(g),
|
|
3199
3199
|
onMouseEnter: () => _(X),
|
|
3200
3200
|
children: [
|
|
3201
3201
|
/* @__PURE__ */ t("span", { className: P.suggestionIcon, children: te("region") }),
|
|
3202
|
-
/* @__PURE__ */ t("div", { className: P.suggestionContent, children: /* @__PURE__ */ t("div", { className: P.suggestionName, children: J(
|
|
3202
|
+
/* @__PURE__ */ t("div", { className: P.suggestionContent, children: /* @__PURE__ */ t("div", { className: P.suggestionName, children: J(g.name, e) }) })
|
|
3203
3203
|
]
|
|
3204
3204
|
},
|
|
3205
|
-
`region-${
|
|
3205
|
+
`region-${g.name}-${L}`
|
|
3206
3206
|
);
|
|
3207
3207
|
}) })
|
|
3208
3208
|
] }),
|
|
3209
3209
|
S.countries.length > 0 && /* @__PURE__ */ s("div", { className: P.section, children: [
|
|
3210
3210
|
/* @__PURE__ */ t("div", { className: P.sectionHeader, children: u("dropdown.countries") }),
|
|
3211
|
-
/* @__PURE__ */ t("div", { children: S.countries.map((
|
|
3211
|
+
/* @__PURE__ */ t("div", { children: S.countries.map((g, L) => {
|
|
3212
3212
|
const X = H + L;
|
|
3213
3213
|
return /* @__PURE__ */ s(
|
|
3214
3214
|
"button",
|
|
3215
3215
|
{
|
|
3216
3216
|
type: "button",
|
|
3217
3217
|
className: `${P.suggestion} ${X === w ? P.suggestionSelected : ""}`,
|
|
3218
|
-
onClick: () => k(
|
|
3218
|
+
onClick: () => k(g),
|
|
3219
3219
|
onMouseEnter: () => _(X),
|
|
3220
3220
|
children: [
|
|
3221
3221
|
/* @__PURE__ */ t("span", { className: P.suggestionIcon, children: te("country") }),
|
|
3222
|
-
/* @__PURE__ */ t("div", { className: P.suggestionContent, children: /* @__PURE__ */ t("div", { className: P.suggestionName, children: J(
|
|
3222
|
+
/* @__PURE__ */ t("div", { className: P.suggestionContent, children: /* @__PURE__ */ t("div", { className: P.suggestionName, children: J(g.name, e) }) })
|
|
3223
3223
|
]
|
|
3224
3224
|
},
|
|
3225
|
-
`country-${
|
|
3225
|
+
`country-${g.name}-${L}`
|
|
3226
3226
|
);
|
|
3227
3227
|
}) })
|
|
3228
3228
|
] }),
|
|
3229
3229
|
S.hotels.length > 0 && /* @__PURE__ */ s("div", { className: P.section, children: [
|
|
3230
3230
|
/* @__PURE__ */ t("div", { className: P.sectionHeader, children: u("dropdown.hotels") }),
|
|
3231
|
-
/* @__PURE__ */ t("div", { children: S.hotels.map((
|
|
3231
|
+
/* @__PURE__ */ t("div", { children: S.hotels.map((g, L) => {
|
|
3232
3232
|
const X = K + L;
|
|
3233
3233
|
return /* @__PURE__ */ s(
|
|
3234
3234
|
"button",
|
|
3235
3235
|
{
|
|
3236
3236
|
type: "button",
|
|
3237
3237
|
className: `${P.suggestion} ${X === w ? P.suggestionSelected : ""}`,
|
|
3238
|
-
onClick: () => k(
|
|
3238
|
+
onClick: () => k(g),
|
|
3239
3239
|
onMouseEnter: () => _(X),
|
|
3240
3240
|
children: [
|
|
3241
3241
|
/* @__PURE__ */ t("span", { className: P.suggestionIcon, children: te("hotel") }),
|
|
3242
3242
|
/* @__PURE__ */ s("div", { className: P.suggestionContent, children: [
|
|
3243
|
-
/* @__PURE__ */ t("div", { className: P.suggestionName, children: J(
|
|
3244
|
-
|
|
3245
|
-
G(
|
|
3246
|
-
|
|
3243
|
+
/* @__PURE__ */ t("div", { className: P.suggestionName, children: J(g.name, e) }),
|
|
3244
|
+
g.city && /* @__PURE__ */ s("div", { className: P.suggestionMeta, children: [
|
|
3245
|
+
G(g.city),
|
|
3246
|
+
g.region && G(g.region) && `, ${G(g.region)}`
|
|
3247
3247
|
] })
|
|
3248
3248
|
] })
|
|
3249
3249
|
]
|
|
3250
3250
|
},
|
|
3251
|
-
`hotel-${
|
|
3251
|
+
`hotel-${g.name}-${L}`
|
|
3252
3252
|
);
|
|
3253
3253
|
}) })
|
|
3254
3254
|
] }),
|
|
@@ -3284,7 +3284,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3284
3284
|
getGuestsDisplay: u,
|
|
3285
3285
|
showHeader: h = !0
|
|
3286
3286
|
}) => {
|
|
3287
|
-
const { t: m } =
|
|
3287
|
+
const { t: m } = he(), [f, v] = $(n), [w, _] = $(a), [p, y] = $(i), [N, M] = $(o), [E, R] = $(d), [B, O] = $(void 0), [W, T] = $([]), [C, S] = $(""), [x, I] = $([]), [A, j] = $("where");
|
|
3288
3288
|
le(() => {
|
|
3289
3289
|
_(a), v(n), R(d), M(o);
|
|
3290
3290
|
}, [a, n, d, o]);
|
|
@@ -3305,7 +3305,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3305
3305
|
return;
|
|
3306
3306
|
}
|
|
3307
3307
|
e({
|
|
3308
|
-
query:
|
|
3308
|
+
query: f,
|
|
3309
3309
|
guests: w,
|
|
3310
3310
|
petFilter: p,
|
|
3311
3311
|
dateRange: N,
|
|
@@ -3346,7 +3346,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3346
3346
|
className: re.collapsibleSection,
|
|
3347
3347
|
children: [
|
|
3348
3348
|
/* @__PURE__ */ t("span", { className: re.collapsibleLabel, children: m("label.where") }),
|
|
3349
|
-
/* @__PURE__ */ t("span", { className: re.collapsibleValue, children:
|
|
3349
|
+
/* @__PURE__ */ t("span", { className: re.collapsibleValue, children: f || m("label.anywhere") })
|
|
3350
3350
|
]
|
|
3351
3351
|
}
|
|
3352
3352
|
),
|
|
@@ -3355,7 +3355,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3355
3355
|
/* @__PURE__ */ t(
|
|
3356
3356
|
Cl,
|
|
3357
3357
|
{
|
|
3358
|
-
value:
|
|
3358
|
+
value: f,
|
|
3359
3359
|
onChange: v,
|
|
3360
3360
|
onSelect: ne,
|
|
3361
3361
|
placeholder: m("label.anywhere"),
|
|
@@ -3377,7 +3377,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3377
3377
|
}
|
|
3378
3378
|
),
|
|
3379
3379
|
A === "when" && /* @__PURE__ */ t("div", { className: re.expandedContent, children: /* @__PURE__ */ t("div", { className: re.whenSection, children: /* @__PURE__ */ t(
|
|
3380
|
-
|
|
3380
|
+
zt,
|
|
3381
3381
|
{
|
|
3382
3382
|
initialDateRange: N || { start: null, end: null },
|
|
3383
3383
|
initialMonthFilter: E,
|
|
@@ -3404,7 +3404,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3404
3404
|
A === "who" && /* @__PURE__ */ t("div", { className: re.expandedContent, children: /* @__PURE__ */ s("div", { className: re.whoGuestSection, children: [
|
|
3405
3405
|
/* @__PURE__ */ t("h2", { className: re.sectionTitle, children: m("label.who") }),
|
|
3406
3406
|
/* @__PURE__ */ t(
|
|
3407
|
-
|
|
3407
|
+
Rt,
|
|
3408
3408
|
{
|
|
3409
3409
|
guests: w,
|
|
3410
3410
|
onChange: ae,
|
|
@@ -3526,14 +3526,14 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3526
3526
|
initialItemsToShow: d = 5,
|
|
3527
3527
|
className: c = ""
|
|
3528
3528
|
}) => {
|
|
3529
|
-
const { t: l } =
|
|
3529
|
+
const { t: l } = he(), [u, h] = $(n), [m, f] = $(!1), v = a ?? l("filter.show-all", "Show all"), w = i ?? l("filter.show-less", "Show less");
|
|
3530
3530
|
le(() => {
|
|
3531
3531
|
n && !u && h(!0);
|
|
3532
3532
|
}, [n]);
|
|
3533
3533
|
const _ = () => {
|
|
3534
3534
|
h(!u);
|
|
3535
3535
|
}, p = () => {
|
|
3536
|
-
|
|
3536
|
+
f(!m);
|
|
3537
3537
|
}, y = Bt.Children.toArray(r), N = o && y.length > d, M = N && !m ? y.slice(0, d) : y;
|
|
3538
3538
|
return /* @__PURE__ */ s("div", { className: `${Me.section} ${c}`, children: [
|
|
3539
3539
|
/* @__PURE__ */ s(
|
|
@@ -3608,7 +3608,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3608
3608
|
}
|
|
3609
3609
|
)
|
|
3610
3610
|
] });
|
|
3611
|
-
}, sc = "_priceRangeWrapper_10ufi_5", lc = "_priceInputs_10ufi_12", cc = "_priceInputWrapper_10ufi_18", dc = "_priceInput_10ufi_12", uc = "_priceInputDivider_10ufi_41", hc = "_histogram_10ufi_48", mc = "_histogramBar_10ufi_56",
|
|
3611
|
+
}, sc = "_priceRangeWrapper_10ufi_5", lc = "_priceInputs_10ufi_12", cc = "_priceInputWrapper_10ufi_18", dc = "_priceInput_10ufi_12", uc = "_priceInputDivider_10ufi_41", hc = "_histogram_10ufi_48", mc = "_histogramBar_10ufi_56", fc = "_histogramBarActive_10ufi_64", gc = "_sliderContainer_10ufi_69", pc = "_sliderTrack_10ufi_75", wc = "_sliderActiveTrack_10ufi_86", _c = "_sliderHandle_10ufi_95", vc = "_sliderHandleActive_10ufi_119", ue = {
|
|
3612
3612
|
priceRangeWrapper: sc,
|
|
3613
3613
|
priceInputs: lc,
|
|
3614
3614
|
priceInputWrapper: cc,
|
|
@@ -3616,8 +3616,8 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3616
3616
|
priceInputDivider: uc,
|
|
3617
3617
|
histogram: hc,
|
|
3618
3618
|
histogramBar: mc,
|
|
3619
|
-
histogramBarActive:
|
|
3620
|
-
sliderContainer:
|
|
3619
|
+
histogramBarActive: fc,
|
|
3620
|
+
sliderContainer: gc,
|
|
3621
3621
|
sliderTrack: pc,
|
|
3622
3622
|
sliderActiveTrack: wc,
|
|
3623
3623
|
sliderHandle: _c,
|
|
@@ -3655,22 +3655,22 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3655
3655
|
onDragEnd: l,
|
|
3656
3656
|
debounceDelay: u = 500
|
|
3657
3657
|
}) => {
|
|
3658
|
-
const { t: h, currency: m } =
|
|
3659
|
-
const D = z / o.length * 100,
|
|
3660
|
-
return D < A &&
|
|
3658
|
+
const { t: h, currency: m } = he(), f = d ?? m, v = me(null), [w, _] = $(null), [p, y] = $(!1), N = me(n), M = me(null), [E, R] = $(""), [B, O] = $(""), [W, T] = $(!1), [C, S] = $(!1), x = r - e, I = x > 0 ? (n.min - e) / x * 100 : 0, A = x > 0 ? (n.max - e) / x * 100 : 100, j = Math.max(...o, 1), k = Ue((z) => {
|
|
3659
|
+
const D = z / o.length * 100, g = (z + 1) / o.length * 100;
|
|
3660
|
+
return D < A && g > I;
|
|
3661
3661
|
}, [o.length, I, A]), Z = 12, ne = Ue((z) => {
|
|
3662
3662
|
i && (M.current && clearTimeout(M.current), M.current = setTimeout(() => {
|
|
3663
3663
|
i(z);
|
|
3664
3664
|
}, u));
|
|
3665
3665
|
}, [i, u]), ae = Ue((z) => {
|
|
3666
3666
|
if (!v.current || !w) return;
|
|
3667
|
-
const D = v.current.getBoundingClientRect(),
|
|
3667
|
+
const D = v.current.getBoundingClientRect(), g = D.width - Z * 2, L = D.left + Z, X = Math.max(0, Math.min(100, (z - L) / g * 100)), fe = Math.round(e + X / 100 * x);
|
|
3668
3668
|
let ie = n.min, Xe = n.max;
|
|
3669
3669
|
if (w === "min") {
|
|
3670
|
-
const Ye = Math.min(
|
|
3670
|
+
const Ye = Math.min(fe, n.max - 1);
|
|
3671
3671
|
ie = Math.max(e, Ye);
|
|
3672
3672
|
} else {
|
|
3673
|
-
const Ye = Math.max(
|
|
3673
|
+
const Ye = Math.max(fe, n.min + 1);
|
|
3674
3674
|
Xe = Math.min(r, Ye);
|
|
3675
3675
|
}
|
|
3676
3676
|
const Ze = { min: ie, max: Xe };
|
|
@@ -3684,10 +3684,10 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3684
3684
|
}, [p, i, l]);
|
|
3685
3685
|
le(() => {
|
|
3686
3686
|
if (!w) return;
|
|
3687
|
-
const z = (
|
|
3688
|
-
ae(
|
|
3689
|
-
}, D = (
|
|
3690
|
-
|
|
3687
|
+
const z = (g) => {
|
|
3688
|
+
ae(g.clientX);
|
|
3689
|
+
}, D = (g) => {
|
|
3690
|
+
g.touches.length > 0 && ae(g.touches[0].clientX);
|
|
3691
3691
|
};
|
|
3692
3692
|
return document.addEventListener("mousemove", z), document.addEventListener("mouseup", J), document.addEventListener("touchmove", D, { passive: !1 }), document.addEventListener("touchend", J), () => {
|
|
3693
3693
|
document.removeEventListener("mousemove", z), document.removeEventListener("mouseup", J), document.removeEventListener("touchmove", D), document.removeEventListener("touchend", J), M.current && clearTimeout(M.current);
|
|
@@ -3707,15 +3707,15 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3707
3707
|
T(!1);
|
|
3708
3708
|
const z = parseInt(E, 10);
|
|
3709
3709
|
if (!isNaN(z)) {
|
|
3710
|
-
const
|
|
3711
|
-
a(
|
|
3710
|
+
const g = { min: Math.max(e, Math.min(z, n.max - 1)), max: n.max };
|
|
3711
|
+
a(g), i && ne(g);
|
|
3712
3712
|
}
|
|
3713
3713
|
}, we = () => {
|
|
3714
3714
|
S(!1);
|
|
3715
3715
|
const z = parseInt(B, 10);
|
|
3716
3716
|
if (!isNaN(z)) {
|
|
3717
|
-
const D = Math.min(r, Math.max(z, n.min + 1)),
|
|
3718
|
-
a(
|
|
3717
|
+
const D = Math.min(r, Math.max(z, n.min + 1)), g = { min: n.min, max: D };
|
|
3718
|
+
a(g), i && ne(g);
|
|
3719
3719
|
}
|
|
3720
3720
|
};
|
|
3721
3721
|
return le(() => () => {
|
|
@@ -3728,7 +3728,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3728
3728
|
type: "text",
|
|
3729
3729
|
inputMode: "numeric",
|
|
3730
3730
|
className: ue.priceInput,
|
|
3731
|
-
value: W ? E : `${
|
|
3731
|
+
value: W ? E : `${f} ${n.min}`,
|
|
3732
3732
|
onChange: b,
|
|
3733
3733
|
onFocus: de,
|
|
3734
3734
|
onBlur: K,
|
|
@@ -3742,7 +3742,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3742
3742
|
type: "text",
|
|
3743
3743
|
inputMode: "numeric",
|
|
3744
3744
|
className: ue.priceInput,
|
|
3745
|
-
value: C ? B : `${
|
|
3745
|
+
value: C ? B : `${f} ${n.max}`,
|
|
3746
3746
|
onChange: H,
|
|
3747
3747
|
onFocus: Y,
|
|
3748
3748
|
onBlur: we,
|
|
@@ -3751,12 +3751,12 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3751
3751
|
) })
|
|
3752
3752
|
] }),
|
|
3753
3753
|
/* @__PURE__ */ t("div", { className: ue.histogram, children: o.map((z, D) => {
|
|
3754
|
-
const
|
|
3754
|
+
const g = z / j * 100, L = k(D);
|
|
3755
3755
|
return /* @__PURE__ */ t(
|
|
3756
3756
|
"div",
|
|
3757
3757
|
{
|
|
3758
3758
|
className: `${ue.histogramBar} ${L ? ue.histogramBarActive : ""}`,
|
|
3759
|
-
style: { height: `${Math.max(
|
|
3759
|
+
style: { height: `${Math.max(g, 10)}%` }
|
|
3760
3760
|
},
|
|
3761
3761
|
D
|
|
3762
3762
|
);
|
|
@@ -3824,7 +3824,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3824
3824
|
onChange: n,
|
|
3825
3825
|
className: a = ""
|
|
3826
3826
|
}) => {
|
|
3827
|
-
const { t: i } =
|
|
3827
|
+
const { t: i } = he(), o = (c) => {
|
|
3828
3828
|
e.includes(c) ? n(e.filter((l) => l !== c)) : n([...e, c]);
|
|
3829
3829
|
}, d = (c) => c.stars > 0 ? null : c.value === "swiss_lodge" ? i("filter.swiss-lodge", "Swiss Lodge") : c.value === "not_classified" ? i("filter.no-category", "No category") : c.label;
|
|
3830
3830
|
return /* @__PURE__ */ s("div", { className: a, children: [
|
|
@@ -3864,7 +3864,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3864
3864
|
className: a = "",
|
|
3865
3865
|
isPlaceSearchActive: i = !1
|
|
3866
3866
|
}) => {
|
|
3867
|
-
const { t: o } =
|
|
3867
|
+
const { t: o } = he(), d = (l) => {
|
|
3868
3868
|
e.includes(l) ? n(e.filter((u) => u !== l)) : n([...e, l]);
|
|
3869
3869
|
}, c = (l) => ({
|
|
3870
3870
|
"rating-excellent": o("label.rating-excellent", "Excellent"),
|
|
@@ -3909,12 +3909,12 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3909
3909
|
onChange: n,
|
|
3910
3910
|
className: a = ""
|
|
3911
3911
|
}) => {
|
|
3912
|
-
const { t: i } =
|
|
3912
|
+
const { t: i } = he(), [o, d] = $(!1), c = o ? r : r.slice(0, 5), l = r.length > 5, u = (h) => {
|
|
3913
3913
|
e.includes(h) ? n(e.filter((m) => m !== h)) : n([...e, h]);
|
|
3914
3914
|
};
|
|
3915
3915
|
return r.length === 0 ? null : /* @__PURE__ */ s("div", { className: `${et.filterList} ${a}`, children: [
|
|
3916
3916
|
c.map((h) => {
|
|
3917
|
-
const m = String(h.id),
|
|
3917
|
+
const m = String(h.id), f = h.count === 0 && !e.includes(m);
|
|
3918
3918
|
return /* @__PURE__ */ t(
|
|
3919
3919
|
Ke,
|
|
3920
3920
|
{
|
|
@@ -3922,7 +3922,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3922
3922
|
label: h.name,
|
|
3923
3923
|
count: h.count > 0 ? h.count : void 0,
|
|
3924
3924
|
checked: e.includes(m),
|
|
3925
|
-
disabled:
|
|
3925
|
+
disabled: f,
|
|
3926
3926
|
onChange: () => u(m),
|
|
3927
3927
|
trackName: `filter-experience-${h.id}`
|
|
3928
3928
|
},
|
|
@@ -3963,25 +3963,25 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3963
3963
|
className: a = "",
|
|
3964
3964
|
isPlaceSearchActive: i = !1
|
|
3965
3965
|
}) => {
|
|
3966
|
-
const { t: o } =
|
|
3966
|
+
const { t: o } = he(), [d, c] = $(/* @__PURE__ */ new Set(["country_215"])), l = me(!1);
|
|
3967
3967
|
le(() => {
|
|
3968
3968
|
if (l.current || e.length === 0 || r.length === 0) return;
|
|
3969
3969
|
const m = /* @__PURE__ */ new Set();
|
|
3970
|
-
e.forEach((
|
|
3970
|
+
e.forEach((f) => {
|
|
3971
3971
|
var v;
|
|
3972
|
-
(v =
|
|
3972
|
+
(v = f.subRegions) != null && v.some((w) => r.includes(w.value)) && m.add(f.value);
|
|
3973
3973
|
}), m.size > 0 && (c(m), l.current = !0);
|
|
3974
3974
|
}, [e, r]);
|
|
3975
3975
|
const u = (m) => {
|
|
3976
|
-
c((
|
|
3977
|
-
const v = new Set(
|
|
3976
|
+
c((f) => {
|
|
3977
|
+
const v = new Set(f);
|
|
3978
3978
|
return v.has(m) ? v.delete(m) : v.add(m), v;
|
|
3979
3979
|
});
|
|
3980
3980
|
}, h = (m) => {
|
|
3981
|
-
r.includes(m) ? n(r.filter((
|
|
3981
|
+
r.includes(m) ? n(r.filter((f) => f !== m)) : n([...r, m]);
|
|
3982
3982
|
};
|
|
3983
3983
|
return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: `${Ce.filterList} ${a}`, children: e.map((m) => {
|
|
3984
|
-
const
|
|
3984
|
+
const f = m.subRegions && m.subRegions.length > 0, v = d.has(m.value);
|
|
3985
3985
|
return /* @__PURE__ */ s("div", { className: Ce.regionItem, children: [
|
|
3986
3986
|
/* @__PURE__ */ s(
|
|
3987
3987
|
"button",
|
|
@@ -3996,7 +3996,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
3996
3996
|
/* @__PURE__ */ t("span", { className: Ce.countryName, children: m.label }),
|
|
3997
3997
|
m.count !== void 0 && /* @__PURE__ */ t("span", { className: Ce.countBadge, children: m.count })
|
|
3998
3998
|
] }),
|
|
3999
|
-
|
|
3999
|
+
f && /* @__PURE__ */ t(
|
|
4000
4000
|
"svg",
|
|
4001
4001
|
{
|
|
4002
4002
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4011,7 +4011,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
4011
4011
|
]
|
|
4012
4012
|
}
|
|
4013
4013
|
),
|
|
4014
|
-
|
|
4014
|
+
f && v && (() => {
|
|
4015
4015
|
const w = m.subRegions.some(
|
|
4016
4016
|
(y) => y.count === void 0 || y.count > 0
|
|
4017
4017
|
), _ = m.subRegions.map((y) => y.value), p = _.some((y) => r.includes(y));
|
|
@@ -4043,7 +4043,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
4043
4043
|
)
|
|
4044
4044
|
] });
|
|
4045
4045
|
})(),
|
|
4046
|
-
|
|
4046
|
+
f && v && /* @__PURE__ */ t("div", { className: Ce.subRegions, children: m.subRegions.map((w) => {
|
|
4047
4047
|
const _ = w.count === 0 && !r.includes(w.value) || i && !r.includes(w.value);
|
|
4048
4048
|
return /* @__PURE__ */ t(
|
|
4049
4049
|
Ke,
|
|
@@ -4102,7 +4102,7 @@ const qs = "_container_qwg4p_16", Gs = "_containerDropdown_qwg4p_23", Js = "_con
|
|
|
4102
4102
|
onClearAll: n,
|
|
4103
4103
|
className: a = ""
|
|
4104
4104
|
}) => {
|
|
4105
|
-
const { t: i } =
|
|
4105
|
+
const { t: i } = he();
|
|
4106
4106
|
return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: `${Ge.container} ${a}`, children: /* @__PURE__ */ s("div", { className: Ge.chipsWrapper, children: [
|
|
4107
4107
|
/* @__PURE__ */ s("p", { className: Ge.selectedText, children: [
|
|
4108
4108
|
i("filter.selected", "Selected:"),
|
|
@@ -4248,7 +4248,7 @@ function Le(e) {
|
|
|
4248
4248
|
function ze(e, r) {
|
|
4249
4249
|
return e instanceof Date ? new e.constructor(r) : new Date(r);
|
|
4250
4250
|
}
|
|
4251
|
-
const
|
|
4251
|
+
const jt = 6048e5, s1 = 864e5, Ft = 6e4, Ot = 36e5;
|
|
4252
4252
|
let l1 = {};
|
|
4253
4253
|
function at() {
|
|
4254
4254
|
return l1;
|
|
@@ -4261,7 +4261,7 @@ function Re(e, r) {
|
|
|
4261
4261
|
function nt(e) {
|
|
4262
4262
|
return Re(e, { weekStartsOn: 1 });
|
|
4263
4263
|
}
|
|
4264
|
-
function
|
|
4264
|
+
function Zt(e) {
|
|
4265
4265
|
const r = Le(e), n = r.getFullYear(), a = ze(e, 0);
|
|
4266
4266
|
a.setFullYear(n + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
4267
4267
|
const i = nt(a), o = ze(e, 0);
|
|
@@ -4292,7 +4292,7 @@ function c1(e, r) {
|
|
|
4292
4292
|
return Math.round((i - o) / s1);
|
|
4293
4293
|
}
|
|
4294
4294
|
function d1(e) {
|
|
4295
|
-
const r =
|
|
4295
|
+
const r = Zt(e), n = ze(e, 0);
|
|
4296
4296
|
return n.setFullYear(r, 0, 4), n.setHours(0, 0, 0, 0), nt(n);
|
|
4297
4297
|
}
|
|
4298
4298
|
function u1(e) {
|
|
@@ -4308,7 +4308,7 @@ function m1(e) {
|
|
|
4308
4308
|
const r = Le(e), n = ze(e, 0);
|
|
4309
4309
|
return n.setFullYear(r.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
4310
4310
|
}
|
|
4311
|
-
const
|
|
4311
|
+
const f1 = {
|
|
4312
4312
|
lessThanXSeconds: {
|
|
4313
4313
|
one: "less than a second",
|
|
4314
4314
|
other: "less than {{count}} seconds"
|
|
@@ -4370,9 +4370,9 @@ const g1 = {
|
|
|
4370
4370
|
one: "almost 1 year",
|
|
4371
4371
|
other: "almost {{count}} years"
|
|
4372
4372
|
}
|
|
4373
|
-
},
|
|
4373
|
+
}, g1 = (e, r, n) => {
|
|
4374
4374
|
let a;
|
|
4375
|
-
const i =
|
|
4375
|
+
const i = f1[e];
|
|
4376
4376
|
return typeof i == "string" ? a = i : r === 1 ? a = i.one : a = i.other.replace("{{count}}", r.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + a : a + " ago" : a;
|
|
4377
4377
|
};
|
|
4378
4378
|
function ke(e) {
|
|
@@ -4727,9 +4727,9 @@ const P1 = /^(\d+)(th|st|nd|rd)?/i, B1 = /\d+/i, I1 = {
|
|
|
4727
4727
|
parsePatterns: F1,
|
|
4728
4728
|
defaultParseWidth: "any"
|
|
4729
4729
|
})
|
|
4730
|
-
},
|
|
4730
|
+
}, Yt = {
|
|
4731
4731
|
code: "en-US",
|
|
4732
|
-
formatDistance:
|
|
4732
|
+
formatDistance: g1,
|
|
4733
4733
|
formatLong: v1,
|
|
4734
4734
|
formatRelative: C1,
|
|
4735
4735
|
localize: S1,
|
|
@@ -4745,11 +4745,11 @@ function Z1(e) {
|
|
|
4745
4745
|
}
|
|
4746
4746
|
function Y1(e) {
|
|
4747
4747
|
const r = Le(e), n = +nt(r) - +d1(r);
|
|
4748
|
-
return Math.round(n /
|
|
4748
|
+
return Math.round(n / jt) + 1;
|
|
4749
4749
|
}
|
|
4750
|
-
function
|
|
4751
|
-
var h, m,
|
|
4752
|
-
const n = Le(e), a = n.getFullYear(), i = at(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((m = (h = r == null ? void 0 : r.locale) == null ? void 0 : h.options) == null ? void 0 : m.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((v = (
|
|
4750
|
+
function qt(e, r) {
|
|
4751
|
+
var h, m, f, v;
|
|
4752
|
+
const n = Le(e), a = n.getFullYear(), i = at(), o = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((m = (h = r == null ? void 0 : r.locale) == null ? void 0 : h.options) == null ? void 0 : m.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((v = (f = i.locale) == null ? void 0 : f.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, d = ze(e, 0);
|
|
4753
4753
|
d.setFullYear(a + 1, 0, o), d.setHours(0, 0, 0, 0);
|
|
4754
4754
|
const c = Re(d, r), l = ze(e, 0);
|
|
4755
4755
|
l.setFullYear(a, 0, o), l.setHours(0, 0, 0, 0);
|
|
@@ -4758,12 +4758,12 @@ function Gt(e, r) {
|
|
|
4758
4758
|
}
|
|
4759
4759
|
function q1(e, r) {
|
|
4760
4760
|
var c, l, u, h;
|
|
4761
|
-
const n = at(), a = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((l = (c = r == null ? void 0 : r.locale) == null ? void 0 : c.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((h = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i =
|
|
4761
|
+
const n = at(), a = (r == null ? void 0 : r.firstWeekContainsDate) ?? ((l = (c = r == null ? void 0 : r.locale) == null ? void 0 : c.options) == null ? void 0 : l.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((h = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : h.firstWeekContainsDate) ?? 1, i = qt(e, r), o = ze(e, 0);
|
|
4762
4762
|
return o.setFullYear(i, 0, a), o.setHours(0, 0, 0, 0), Re(o, r);
|
|
4763
4763
|
}
|
|
4764
4764
|
function G1(e, r) {
|
|
4765
4765
|
const n = Le(e), a = +Re(n, r) - +q1(n, r);
|
|
4766
|
-
return Math.round(a /
|
|
4766
|
+
return Math.round(a / jt) + 1;
|
|
4767
4767
|
}
|
|
4768
4768
|
function U(e, r) {
|
|
4769
4769
|
const n = e < 0 ? "-" : "", a = Math.abs(e).toString().padStart(r, "0");
|
|
@@ -4859,7 +4859,7 @@ const Ae = {
|
|
|
4859
4859
|
},
|
|
4860
4860
|
// Local week-numbering year
|
|
4861
4861
|
Y: function(e, r, n, a) {
|
|
4862
|
-
const i =
|
|
4862
|
+
const i = qt(e, a), o = i > 0 ? i : 1 - i;
|
|
4863
4863
|
if (r === "YY") {
|
|
4864
4864
|
const d = o % 100;
|
|
4865
4865
|
return U(d, 2);
|
|
@@ -4868,7 +4868,7 @@ const Ae = {
|
|
|
4868
4868
|
},
|
|
4869
4869
|
// ISO week-numbering year
|
|
4870
4870
|
R: function(e, r) {
|
|
4871
|
-
const n =
|
|
4871
|
+
const n = Zt(e);
|
|
4872
4872
|
return U(n, r.length);
|
|
4873
4873
|
},
|
|
4874
4874
|
// Extended year. This is a single number designating the year of this calendar system.
|
|
@@ -5409,7 +5409,7 @@ const $t = (e, r) => {
|
|
|
5409
5409
|
default:
|
|
5410
5410
|
return r.date({ width: "full" });
|
|
5411
5411
|
}
|
|
5412
|
-
},
|
|
5412
|
+
}, Gt = (e, r) => {
|
|
5413
5413
|
switch (e) {
|
|
5414
5414
|
case "p":
|
|
5415
5415
|
return r.time({ width: "short" });
|
|
@@ -5441,9 +5441,9 @@ const $t = (e, r) => {
|
|
|
5441
5441
|
o = r.dateTime({ width: "full" });
|
|
5442
5442
|
break;
|
|
5443
5443
|
}
|
|
5444
|
-
return o.replace("{{date}}", $t(a, r)).replace("{{time}}",
|
|
5444
|
+
return o.replace("{{date}}", $t(a, r)).replace("{{time}}", Gt(i, r));
|
|
5445
5445
|
}, K1 = {
|
|
5446
|
-
p:
|
|
5446
|
+
p: Gt,
|
|
5447
5447
|
P: J1
|
|
5448
5448
|
}, X1 = /^D+$/, U1 = /^Y+$/, Q1 = ["D", "DD", "YY", "YYYY"];
|
|
5449
5449
|
function ed(e) {
|
|
@@ -5462,8 +5462,8 @@ function rd(e, r, n) {
|
|
|
5462
5462
|
}
|
|
5463
5463
|
const ad = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, id = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, od = /^'([^]*?)'?$/, sd = /''/g, ld = /[a-zA-Z]/;
|
|
5464
5464
|
function cd(e, r, n) {
|
|
5465
|
-
var h, m,
|
|
5466
|
-
const a = at(), i = (n == null ? void 0 : n.locale) ?? a.locale ??
|
|
5465
|
+
var h, m, f, v, w, _, p, y;
|
|
5466
|
+
const a = at(), i = (n == null ? void 0 : n.locale) ?? a.locale ?? Yt, o = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((m = (h = n == null ? void 0 : n.locale) == null ? void 0 : h.options) == null ? void 0 : m.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((v = (f = a.locale) == null ? void 0 : f.options) == null ? void 0 : v.firstWeekContainsDate) ?? 1, d = (n == null ? void 0 : n.weekStartsOn) ?? ((_ = (w = n == null ? void 0 : n.locale) == null ? void 0 : w.options) == null ? void 0 : _.weekStartsOn) ?? a.weekStartsOn ?? ((y = (p = a.locale) == null ? void 0 : p.options) == null ? void 0 : y.weekStartsOn) ?? 0, c = Le(e);
|
|
5467
5467
|
if (!h1(c))
|
|
5468
5468
|
throw new RangeError("Invalid time value");
|
|
5469
5469
|
let l = r.match(id).map((N) => {
|
|
@@ -5510,7 +5510,7 @@ function St(e, r, n) {
|
|
|
5510
5510
|
return +a == +i;
|
|
5511
5511
|
}
|
|
5512
5512
|
function ud(e, r) {
|
|
5513
|
-
const a =
|
|
5513
|
+
const a = gd(e);
|
|
5514
5514
|
let i;
|
|
5515
5515
|
if (a.date) {
|
|
5516
5516
|
const l = pd(a.date, 2);
|
|
@@ -5544,8 +5544,8 @@ const tt = {
|
|
|
5544
5544
|
dateTimeDelimiter: /[T ]/,
|
|
5545
5545
|
timeZoneDelimiter: /[Z ]/i,
|
|
5546
5546
|
timezone: /([Z+-].*)$/
|
|
5547
|
-
}, hd = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, md = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,
|
|
5548
|
-
function
|
|
5547
|
+
}, hd = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, md = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, fd = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
5548
|
+
function gd(e) {
|
|
5549
5549
|
const r = {}, n = e.split(tt.dateTimeDelimiter);
|
|
5550
5550
|
let a;
|
|
5551
5551
|
if (n.length > 2)
|
|
@@ -5589,17 +5589,17 @@ function _d(e) {
|
|
|
5589
5589
|
const r = e.match(md);
|
|
5590
5590
|
if (!r) return NaN;
|
|
5591
5591
|
const n = lt(r[1]), a = lt(r[2]), i = lt(r[3]);
|
|
5592
|
-
return xd(n, a, i) ? n *
|
|
5592
|
+
return xd(n, a, i) ? n * Ot + a * Ft + i * 1e3 : NaN;
|
|
5593
5593
|
}
|
|
5594
5594
|
function lt(e) {
|
|
5595
5595
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
5596
5596
|
}
|
|
5597
5597
|
function vd(e) {
|
|
5598
5598
|
if (e === "Z") return 0;
|
|
5599
|
-
const r = e.match(
|
|
5599
|
+
const r = e.match(fd);
|
|
5600
5600
|
if (!r) return 0;
|
|
5601
5601
|
const n = r[1] === "+" ? -1 : 1, a = parseInt(r[2]), i = r[3] && parseInt(r[3]) || 0;
|
|
5602
|
-
return Md(a, i) ? n * (a *
|
|
5602
|
+
return Md(a, i) ? n * (a * Ot + i * Ft) : NaN;
|
|
5603
5603
|
}
|
|
5604
5604
|
function bd(e, r, n) {
|
|
5605
5605
|
const a = /* @__PURE__ */ new Date(0);
|
|
@@ -5608,14 +5608,14 @@ function bd(e, r, n) {
|
|
|
5608
5608
|
return a.setUTCDate(a.getUTCDate() + o), a;
|
|
5609
5609
|
}
|
|
5610
5610
|
const Cd = [31, null, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
5611
|
-
function
|
|
5611
|
+
function Jt(e) {
|
|
5612
5612
|
return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
|
|
5613
5613
|
}
|
|
5614
5614
|
function yd(e, r, n) {
|
|
5615
|
-
return r >= 0 && r <= 11 && n >= 1 && n <= (Cd[r] || (
|
|
5615
|
+
return r >= 0 && r <= 11 && n >= 1 && n <= (Cd[r] || (Jt(e) ? 29 : 28));
|
|
5616
5616
|
}
|
|
5617
5617
|
function Nd(e, r) {
|
|
5618
|
-
return r >= 1 && r <= (
|
|
5618
|
+
return r >= 1 && r <= (Jt(e) ? 366 : 365);
|
|
5619
5619
|
}
|
|
5620
5620
|
function kd(e, r, n) {
|
|
5621
5621
|
return r >= 1 && r <= 53 && n >= 0 && n <= 6;
|
|
@@ -6086,7 +6086,7 @@ const Ht = {
|
|
|
6086
6086
|
parsePatterns: Qd,
|
|
6087
6087
|
defaultParseWidth: "any"
|
|
6088
6088
|
})
|
|
6089
|
-
},
|
|
6089
|
+
}, Kt = {
|
|
6090
6090
|
code: "de",
|
|
6091
6091
|
formatDistance: Ld,
|
|
6092
6092
|
formatLong: Dd,
|
|
@@ -6280,19 +6280,19 @@ const Ht = {
|
|
|
6280
6280
|
evening: "du soir",
|
|
6281
6281
|
night: "du matin"
|
|
6282
6282
|
}
|
|
6283
|
-
},
|
|
6283
|
+
}, f2 = (e, r) => {
|
|
6284
6284
|
const n = Number(e), a = r == null ? void 0 : r.unit;
|
|
6285
6285
|
if (n === 0) return "0";
|
|
6286
6286
|
const i = ["year", "week", "hour", "minute", "second"];
|
|
6287
6287
|
let o;
|
|
6288
6288
|
return n === 1 ? o = a && i.includes(a) ? "ère" : "er" : o = "ème", n + o;
|
|
6289
|
-
},
|
|
6289
|
+
}, g2 = ["MMM", "MMMM"], p2 = {
|
|
6290
6290
|
preprocessor: (e, r) => e.getDate() === 1 || !r.some(
|
|
6291
|
-
(a) => a.isToken &&
|
|
6291
|
+
(a) => a.isToken && g2.includes(a.value)
|
|
6292
6292
|
) ? r : r.map(
|
|
6293
6293
|
(a) => a.isToken && a.value === "do" ? { isToken: !0, value: "d" } : a
|
|
6294
6294
|
),
|
|
6295
|
-
ordinalNumber:
|
|
6295
|
+
ordinalNumber: f2,
|
|
6296
6296
|
era: oe({
|
|
6297
6297
|
values: c2,
|
|
6298
6298
|
defaultWidth: "wide"
|
|
@@ -6823,73 +6823,73 @@ const E2 = {
|
|
|
6823
6823
|
weekStartsOn: 1,
|
|
6824
6824
|
firstWeekContainsDate: 4
|
|
6825
6825
|
}
|
|
6826
|
-
}, c5 = { de:
|
|
6826
|
+
}, c5 = { de: Kt, en: Yt, fr: H2, it: l5 }, Pt = (e, r = "dd. MMM yyyy", n = "de") => {
|
|
6827
6827
|
const a = typeof e == "string" ? ud(e) : e;
|
|
6828
|
-
return cd(a, r, { locale: c5[n] ||
|
|
6828
|
+
return cd(a, r, { locale: c5[n] || Kt });
|
|
6829
6829
|
}, D5 = (e, r, n = "de") => {
|
|
6830
6830
|
const a = Pt(e, "dd.", n), i = Pt(r, "dd. MMM yyyy", n);
|
|
6831
6831
|
return `${a} - ${i}`;
|
|
6832
6832
|
}, P5 = (e, r) => e <= 0 ? 0 : Math.round((e - r) / e * 100);
|
|
6833
6833
|
export {
|
|
6834
6834
|
Tt as Badge,
|
|
6835
|
-
|
|
6836
|
-
|
|
6835
|
+
ui as Benefits,
|
|
6836
|
+
si as Block,
|
|
6837
6837
|
je as Button,
|
|
6838
6838
|
Mc as CATEGORY_OPTIONS,
|
|
6839
|
-
|
|
6840
|
-
|
|
6839
|
+
ri as Card,
|
|
6840
|
+
Ja as Checkbox,
|
|
6841
6841
|
ut as CheckboxFilter,
|
|
6842
6842
|
a1 as ChevronLeftIcon,
|
|
6843
6843
|
i1 as ChevronRightIcon,
|
|
6844
6844
|
Et as Chip,
|
|
6845
6845
|
b5 as CollapsibleFilterSection,
|
|
6846
6846
|
po as DateSelector,
|
|
6847
|
-
|
|
6848
|
-
|
|
6847
|
+
qa as Divider,
|
|
6848
|
+
ii as Dropdown,
|
|
6849
6849
|
ho as DualCalendar,
|
|
6850
6850
|
k5 as ExperienceFilter,
|
|
6851
|
-
|
|
6851
|
+
di as FAQ,
|
|
6852
6852
|
Ke as FilterCheckboxItem,
|
|
6853
|
-
|
|
6853
|
+
Rt as GuestContent,
|
|
6854
6854
|
ko as GuestSelector,
|
|
6855
6855
|
n1 as HeartIcon,
|
|
6856
6856
|
_5 as HotelCard,
|
|
6857
6857
|
Zs as HotelCardContent,
|
|
6858
6858
|
Vs as HotelCardImage,
|
|
6859
|
-
|
|
6859
|
+
f5 as HotelCardUIProvider,
|
|
6860
6860
|
y5 as HotelCategoryFilter,
|
|
6861
|
-
|
|
6861
|
+
oi as Input,
|
|
6862
6862
|
Ko as LocationAutocomplete,
|
|
6863
6863
|
M5 as MealsFilter,
|
|
6864
6864
|
p5 as MobileSortModal,
|
|
6865
|
-
|
|
6865
|
+
ei as Modal,
|
|
6866
6866
|
fi as Pin,
|
|
6867
6867
|
o1 as PinIcon,
|
|
6868
6868
|
C5 as PriceRangeFilter,
|
|
6869
6869
|
Dc as REVIEW_OPTIONS,
|
|
6870
|
-
|
|
6870
|
+
Ka as RadioButton,
|
|
6871
6871
|
Vt as Rating,
|
|
6872
6872
|
x5 as RegionsFilter,
|
|
6873
|
-
|
|
6873
|
+
li as ReviewCard,
|
|
6874
6874
|
N5 as ReviewsFilter,
|
|
6875
6875
|
w5 as SearchControlsBar,
|
|
6876
6876
|
v5 as SearchModal,
|
|
6877
6877
|
Tl as SearchModalContent,
|
|
6878
|
-
|
|
6878
|
+
Ua as SectionHeader,
|
|
6879
6879
|
S5 as SelectedFiltersRow,
|
|
6880
6880
|
r1 as StarIcon,
|
|
6881
6881
|
L5 as TransportFilter,
|
|
6882
6882
|
$5 as WellnessFilter,
|
|
6883
|
-
|
|
6883
|
+
zt as WhenContent,
|
|
6884
6884
|
P5 as calculateDiscount,
|
|
6885
6885
|
Pt as formatDate,
|
|
6886
6886
|
D5 as formatDateRange,
|
|
6887
6887
|
H5 as formatPrice,
|
|
6888
6888
|
mt as translations,
|
|
6889
|
-
|
|
6889
|
+
g5 as useDebounce,
|
|
6890
6890
|
rt as useResponsive,
|
|
6891
|
-
|
|
6892
|
-
|
|
6891
|
+
gi as useTranslation,
|
|
6892
|
+
he as useUIContext,
|
|
6893
6893
|
dt as useWindowData
|
|
6894
6894
|
};
|
|
6895
6895
|
//# sourceMappingURL=index.js.map
|