@hotelcard/ui 0.0.26 → 0.0.27
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +256 -256
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as l, Fragment as xe } from "react/jsx-runtime";
|
|
2
|
-
import
|
|
2
|
+
import St, { useMemo as Ze, useContext as qt, createContext as Gt, forwardRef as Ht, useState as S, useRef as fe, useEffect as re, useCallback as qe } from "react";
|
|
3
3
|
import { useTranslation as Jt } from "react-i18next";
|
|
4
4
|
import { createPortal as Xt } from "react-dom";
|
|
5
5
|
const Kt = { order: "Bestellen", "order-navigation": "Bestellen", "order-hc": "HotelCard bestellen", "my-account": "Mein Konto", search: "Suchen", "back-to-top": "Nach oben" }, Qt = { "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" }, Ut = { "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" }, en = { "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" }, tn = { "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.-" }, nn = { "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" }, an = { 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" }, rn = { 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" }, sn = { "no-results": "Zurzeit entsprechen keine Aufenthalte Ihrer Suche" }, on = "Hotels suchen - HotelCard", ln = "Suchen Sie nach Hotels nach Stadt, Region oder Hotelname", cn = "Suche", dn = "Hotels werden geladen...", un = "Erneut versuchen", hn = "Karte schließen", mn = { 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%." }, fn = { close_search: "Suche schließen", placeholder_anywhere: "Überall", recent_searches: "Letzte Suchen", remove_recent: "Aus letzten Suchen entfernen", all_destinations: "Alle Reiseziele" }, gn = { 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" }, pn = { list: "Liste" }, _n = { properties_found: "{{count}} Unterkünfte gefunden", properties_found_location: "{{location}}: {{count}} Unterkünfte gefunden" }, wn = { 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" }, vn = { home: "Startseite" }, bn = { 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" }, Cn = { 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" }, yn = { hotels: "Hotels", cities: "Städte", regions: "Regionen", countries: "Länder", "no-results": "Keine Ergebnisse gefunden" }, Nn = { 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" }, kn = { apply: "Anwenden", months_selected: "{{count}} Monate" }, xn = { "5_stars": "5 Sterne", "4_stars": "4 Sterne", "3_stars": "3 Sterne", "2_stars": "2 Sterne", not_classified: "Nicht klassifiziert", swiss_lodge: "Swiss Lodge" }, Mn = { 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." }, Ln = { 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" }, $n = { search_failed: "Suche fehlgeschlagen", load_more_failed: "Weitere Hotels konnten nicht geladen werden" }, Dn = { title: "Etwas ist schiefgelaufen", description: "Die Hotels konnten nicht geladen werden. Bitte versuchen Sie es erneut.", retry: "Erneut versuchen" }, Sn = { label: "Seitennavigation", previous: "Vorherige Seite", previous_short: "Zurück", next: "Nächste Seite", next_short: "Weiter", page: "Seite {{page}}" }, Hn = { rating: "Bewertung", price_from: "pro Zimmer & Nacht ab", not_available: "Nicht verfügbar für Ihre Suchkriterien" }, Pn = { new: "Neu" }, Bn = {
|
|
@@ -149,7 +149,7 @@ const Kt = { order: "Bestellen", "order-navigation": "Bestellen", "order-hc": "H
|
|
|
149
149
|
pagination: Br,
|
|
150
150
|
hotel_card: Ar,
|
|
151
151
|
badges: Ir
|
|
152
|
-
},
|
|
152
|
+
}, ut = { de: Bn, en: wa, fr: er, it: Wr };
|
|
153
153
|
function Tr(e, a) {
|
|
154
154
|
const n = a.split(".");
|
|
155
155
|
let r = e;
|
|
@@ -160,16 +160,16 @@ function Tr(e, a) {
|
|
|
160
160
|
}
|
|
161
161
|
return typeof r == "string" ? r : void 0;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
164
|
-
const a =
|
|
163
|
+
function Pt(e) {
|
|
164
|
+
const a = ut[e] || ut.en;
|
|
165
165
|
return (n, r) => Tr(a, n) ?? r ?? n;
|
|
166
166
|
}
|
|
167
|
-
const zr =
|
|
167
|
+
const zr = Pt("de"), Rr = {
|
|
168
168
|
locale: "de",
|
|
169
169
|
currency: "CHF",
|
|
170
170
|
isDesktop: !1,
|
|
171
171
|
t: zr
|
|
172
|
-
},
|
|
172
|
+
}, Bt = Gt(Rr), v2 = ({
|
|
173
173
|
locale: e = "de",
|
|
174
174
|
currency: a = "CHF",
|
|
175
175
|
isDesktop: n = !1,
|
|
@@ -177,14 +177,14 @@ const zr = Bt("de"), Rr = {
|
|
|
177
177
|
children: i
|
|
178
178
|
}) => {
|
|
179
179
|
const s = Ze(
|
|
180
|
-
() => r ??
|
|
180
|
+
() => r ?? Pt(e),
|
|
181
181
|
[e, r]
|
|
182
182
|
), d = Ze(
|
|
183
183
|
() => ({ locale: e, currency: a, isDesktop: n, t: s }),
|
|
184
184
|
[e, a, n, s]
|
|
185
185
|
);
|
|
186
|
-
return /* @__PURE__ */ t(
|
|
187
|
-
},
|
|
186
|
+
return /* @__PURE__ */ t(Bt.Provider, { value: d, children: i });
|
|
187
|
+
}, ce = () => qt(Bt), ge = (e) => `hc-btn-${e}`, ze = Ht(({
|
|
188
188
|
variant: e = "primary",
|
|
189
189
|
size: a = "medium",
|
|
190
190
|
leftIcon: n,
|
|
@@ -201,20 +201,20 @@ const zr = Bt("de"), Rr = {
|
|
|
201
201
|
ref: u,
|
|
202
202
|
style: o,
|
|
203
203
|
className: `${(() => {
|
|
204
|
-
const f = [
|
|
205
|
-
return e === "link" ? (f.push(
|
|
204
|
+
const f = [ge("button")];
|
|
205
|
+
return e === "link" ? (f.push(ge("link")), f.push(ge(a)), f.join(" ")) : c ? (f.push(ge("icon-only")), f.push(ge(a)), f.push(ge(e)), f.join(" ")) : (f.push(ge("standard")), f.push(ge(a)), f.push(ge(e)), f.join(" "));
|
|
206
206
|
})()} ${s}`,
|
|
207
207
|
disabled: d,
|
|
208
208
|
...h,
|
|
209
209
|
children: c ? i : /* @__PURE__ */ l(xe, { children: [
|
|
210
|
-
n && /* @__PURE__ */ t("span", { className:
|
|
211
|
-
/* @__PURE__ */ t("span", { className:
|
|
212
|
-
r && /* @__PURE__ */ t("span", { className:
|
|
210
|
+
n && /* @__PURE__ */ t("span", { className: ge("icon-wrapper"), children: n }),
|
|
211
|
+
/* @__PURE__ */ t("span", { className: ge("text-wrapper"), children: i }),
|
|
212
|
+
r && /* @__PURE__ */ t("span", { className: ge("icon-wrapper"), children: r })
|
|
213
213
|
] })
|
|
214
214
|
}
|
|
215
215
|
));
|
|
216
216
|
ze.displayName = "Button";
|
|
217
|
-
const Be = (e) => `hc-badge-${e}`,
|
|
217
|
+
const Be = (e) => `hc-badge-${e}`, At = ({
|
|
218
218
|
color: e = "primary",
|
|
219
219
|
size: a = "large",
|
|
220
220
|
style: n = "heavy",
|
|
@@ -239,8 +239,8 @@ const Be = (e) => `hc-badge-${e}`, It = ({
|
|
|
239
239
|
/* @__PURE__ */ t("div", { className: h, children: i })
|
|
240
240
|
] });
|
|
241
241
|
};
|
|
242
|
-
|
|
243
|
-
const
|
|
242
|
+
At.displayName = "Badge";
|
|
243
|
+
const de = (e) => `hc-rating-${e}`, Vr = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
244
244
|
/* @__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" }) }),
|
|
245
245
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_full", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
246
246
|
] }), Er = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
@@ -263,7 +263,7 @@ const ce = (e) => `hc-rating-${e}`, Vr = () => /* @__PURE__ */ l("svg", { xmlns:
|
|
|
263
263
|
] }), jr = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
264
264
|
/* @__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" }) }),
|
|
265
265
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_empty", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
266
|
-
] }),
|
|
266
|
+
] }), It = ({
|
|
267
267
|
variant: e = "stars",
|
|
268
268
|
value: a,
|
|
269
269
|
maxValue: n = 5,
|
|
@@ -276,8 +276,8 @@ const ce = (e) => `hc-rating-${e}`, Vr = () => /* @__PURE__ */ l("svg", { xmlns:
|
|
|
276
276
|
}) => {
|
|
277
277
|
const h = Math.min(Math.max(0, a), n), u = Math.floor(h), m = h % 1 >= 0.5, f = n - u - (m ? 1 : 0), _ = () => {
|
|
278
278
|
const p = [
|
|
279
|
-
|
|
280
|
-
|
|
279
|
+
de("star"),
|
|
280
|
+
de(`star--${c}`)
|
|
281
281
|
].filter(Boolean).join(" "), g = [];
|
|
282
282
|
for (let C = 0; C < u; C++)
|
|
283
283
|
g.push(
|
|
@@ -293,32 +293,32 @@ const ce = (e) => `hc-rating-${e}`, Vr = () => /* @__PURE__ */ l("svg", { xmlns:
|
|
|
293
293
|
return g;
|
|
294
294
|
};
|
|
295
295
|
if (e === "stars") {
|
|
296
|
-
const p = [
|
|
296
|
+
const p = [de("starsContainer"), o].filter(Boolean).join(" ");
|
|
297
297
|
return /* @__PURE__ */ l("div", { className: p, children: [
|
|
298
|
-
/* @__PURE__ */ t("div", { className:
|
|
299
|
-
r && /* @__PURE__ */ t("span", { className:
|
|
298
|
+
/* @__PURE__ */ t("div", { className: de("starContainer"), children: _() }),
|
|
299
|
+
r && /* @__PURE__ */ t("span", { className: de("valueDisplay"), children: h.toLocaleString("de-CH") })
|
|
300
300
|
] });
|
|
301
301
|
}
|
|
302
302
|
if (e === "result") {
|
|
303
|
-
const p = [
|
|
303
|
+
const p = [de("resultContainer"), o].filter(Boolean).join(" ");
|
|
304
304
|
return /* @__PURE__ */ l("div", { className: p, children: [
|
|
305
|
-
/* @__PURE__ */ t("span", { className:
|
|
305
|
+
/* @__PURE__ */ t("span", { className: de("resultChar"), children: "N" }),
|
|
306
306
|
/* @__PURE__ */ t("div", { children: _() })
|
|
307
307
|
] });
|
|
308
308
|
}
|
|
309
|
-
const w = [
|
|
309
|
+
const w = [de("blockContainer"), o].filter(Boolean).join(" ");
|
|
310
310
|
return /* @__PURE__ */ l("div", { className: w, children: [
|
|
311
|
-
/* @__PURE__ */ l("div", { className:
|
|
312
|
-
/* @__PURE__ */ l("div", { className:
|
|
313
|
-
i && /* @__PURE__ */ t("span", { className:
|
|
311
|
+
/* @__PURE__ */ l("div", { className: de("blockHeader"), children: [
|
|
312
|
+
/* @__PURE__ */ l("div", { className: de("blockHeaderLeft"), children: [
|
|
313
|
+
i && /* @__PURE__ */ t("span", { className: de("blockName"), children: i }),
|
|
314
314
|
/* @__PURE__ */ t("div", { children: _() })
|
|
315
315
|
] }),
|
|
316
|
-
s && /* @__PURE__ */ t("span", { className:
|
|
316
|
+
s && /* @__PURE__ */ t("span", { className: de("blockDate"), children: s })
|
|
317
317
|
] }),
|
|
318
|
-
d && /* @__PURE__ */ t("p", { className:
|
|
318
|
+
d && /* @__PURE__ */ t("p", { className: de("blockQuote"), children: d })
|
|
319
319
|
] });
|
|
320
320
|
};
|
|
321
|
-
|
|
321
|
+
It.displayName = "Rating";
|
|
322
322
|
const Se = (e) => `hc-divider-${e}`, Fr = ({
|
|
323
323
|
label: e,
|
|
324
324
|
orientation: a = "horizontal",
|
|
@@ -360,7 +360,7 @@ Fr.displayName = "Divider";
|
|
|
360
360
|
const He = (e) => `hc-chip-${e}`, Or = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
361
361
|
/* @__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" }) }),
|
|
362
362
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_chip_close", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
363
|
-
] }),
|
|
363
|
+
] }), Wt = ({
|
|
364
364
|
label: e,
|
|
365
365
|
count: a,
|
|
366
366
|
size: n = "small",
|
|
@@ -398,7 +398,7 @@ const He = (e) => `hc-chip-${e}`, Or = () => /* @__PURE__ */ l("svg", { xmlns: "
|
|
|
398
398
|
}
|
|
399
399
|
);
|
|
400
400
|
};
|
|
401
|
-
|
|
401
|
+
Wt.displayName = "Chip";
|
|
402
402
|
const ne = (e) => `hc-checkbox-${e}`, Zr = ({
|
|
403
403
|
label: e,
|
|
404
404
|
checked: a,
|
|
@@ -545,7 +545,7 @@ const ye = (e) => `hc-radio-${e}`, Yr = ({
|
|
|
545
545
|
);
|
|
546
546
|
};
|
|
547
547
|
Yr.displayName = "RadioButton";
|
|
548
|
-
const
|
|
548
|
+
const at = (e) => `hc-section-${e}`, qr = () => /* @__PURE__ */ t(
|
|
549
549
|
"svg",
|
|
550
550
|
{
|
|
551
551
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -565,17 +565,17 @@ const rt = (e) => `hc-section-${e}`, qr = () => /* @__PURE__ */ t(
|
|
|
565
565
|
onShowAllClick: n,
|
|
566
566
|
className: r = ""
|
|
567
567
|
}) => {
|
|
568
|
-
const i = [
|
|
568
|
+
const i = [at("header"), r].filter(Boolean).join(" ");
|
|
569
569
|
return /* @__PURE__ */ l("div", { className: i, children: [
|
|
570
|
-
/* @__PURE__ */ t("h2", { className:
|
|
571
|
-
a && n && /* @__PURE__ */ l("button", { className:
|
|
570
|
+
/* @__PURE__ */ t("h2", { className: at("title"), children: e }),
|
|
571
|
+
a && n && /* @__PURE__ */ l("button", { className: at("showAllButton"), onClick: n, children: [
|
|
572
572
|
/* @__PURE__ */ t("span", { children: a }),
|
|
573
573
|
/* @__PURE__ */ t(qr, {})
|
|
574
574
|
] })
|
|
575
575
|
] });
|
|
576
576
|
};
|
|
577
577
|
Gr.displayName = "SectionHeader";
|
|
578
|
-
const
|
|
578
|
+
const rt = (e) => `hc-modal-${e}`, Jr = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "18", height: "18", viewBox: "0 0 18 18", fill: "none", children: /* @__PURE__ */ t(
|
|
579
579
|
"path",
|
|
580
580
|
{
|
|
581
581
|
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",
|
|
@@ -590,7 +590,7 @@ const it = (e) => `hc-modal-${e}`, Jr = () => /* @__PURE__ */ t("svg", { xmlns:
|
|
|
590
590
|
showCloseButton: s = !0,
|
|
591
591
|
disableBackdropClick: d = !1
|
|
592
592
|
}) => {
|
|
593
|
-
const c =
|
|
593
|
+
const c = fe(null);
|
|
594
594
|
re(() => {
|
|
595
595
|
const m = (f) => {
|
|
596
596
|
f.key === "Escape" && e && a();
|
|
@@ -603,7 +603,7 @@ const it = (e) => `hc-modal-${e}`, Jr = () => /* @__PURE__ */ t("svg", { xmlns:
|
|
|
603
603
|
m.target === m.currentTarget && !d && a();
|
|
604
604
|
};
|
|
605
605
|
if (!e) return null;
|
|
606
|
-
const h = [
|
|
606
|
+
const h = [rt("content"), i].filter(Boolean).join(" "), u = /* @__PURE__ */ t("div", { className: rt("backdrop"), onClick: o, children: /* @__PURE__ */ l(
|
|
607
607
|
"div",
|
|
608
608
|
{
|
|
609
609
|
ref: c,
|
|
@@ -613,7 +613,7 @@ const it = (e) => `hc-modal-${e}`, Jr = () => /* @__PURE__ */ t("svg", { xmlns:
|
|
|
613
613
|
s && /* @__PURE__ */ t(
|
|
614
614
|
"button",
|
|
615
615
|
{
|
|
616
|
-
className:
|
|
616
|
+
className: rt("closeButton"),
|
|
617
617
|
onClick: a,
|
|
618
618
|
"aria-label": "Close modal",
|
|
619
619
|
children: /* @__PURE__ */ t(Jr, {})
|
|
@@ -626,7 +626,7 @@ const it = (e) => `hc-modal-${e}`, Jr = () => /* @__PURE__ */ t("svg", { xmlns:
|
|
|
626
626
|
return typeof document < "u" ? Xt(u, document.body) : u;
|
|
627
627
|
};
|
|
628
628
|
Xr.displayName = "Modal";
|
|
629
|
-
const O = (e) => `hc-card-${e}`,
|
|
629
|
+
const O = (e) => `hc-card-${e}`, ht = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "9", height: "9", viewBox: "0 0 9 9", fill: "none", children: [
|
|
630
630
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_card_star)", children: /* @__PURE__ */ t(
|
|
631
631
|
"path",
|
|
632
632
|
{
|
|
@@ -635,7 +635,7 @@ const O = (e) => `hc-card-${e}`, mt = () => /* @__PURE__ */ l("svg", { xmlns: "h
|
|
|
635
635
|
}
|
|
636
636
|
) }),
|
|
637
637
|
/* @__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)" }) }) })
|
|
638
|
-
] }), Kr = () => /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 36 38", fill: "#478EFA", className: O("ratingSvg"), children: /* @__PURE__ */ t("path", { d: "M4 0C1.79086 0 0 1.79086 0 4V32V38L9 32H32C34.2091 32 36 30.2091 36 28V0H4Z" }) }), Qr = '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',
|
|
638
|
+
] }), Kr = () => /* @__PURE__ */ t("svg", { width: "24", height: "24", viewBox: "0 0 36 38", fill: "#478EFA", className: O("ratingSvg"), children: /* @__PURE__ */ t("path", { d: "M4 0C1.79086 0 0 1.79086 0 4V32V38L9 32H32C34.2091 32 36 30.2091 36 28V0H4Z" }) }), Qr = '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', mt = (e, a) => Array.from({ length: e }, (n, r) => a(r)), Ur = ({
|
|
639
639
|
image: e,
|
|
640
640
|
imageAlt: a = "",
|
|
641
641
|
label: n,
|
|
@@ -703,7 +703,7 @@ const O = (e) => `hc-card-${e}`, mt = () => /* @__PURE__ */ l("svg", { xmlns: "h
|
|
|
703
703
|
),
|
|
704
704
|
/* @__PURE__ */ t("div", { className: O("shadowOverlay") }),
|
|
705
705
|
d && /* @__PURE__ */ t("div", { className: O("badgeWrapper"), children: /* @__PURE__ */ t(
|
|
706
|
-
|
|
706
|
+
At,
|
|
707
707
|
{
|
|
708
708
|
color: d.variant || "primary",
|
|
709
709
|
size: g ? "large" : "small",
|
|
@@ -714,12 +714,12 @@ const O = (e) => `hc-card-${e}`, mt = () => /* @__PURE__ */ l("svg", { xmlns: "h
|
|
|
714
714
|
/* @__PURE__ */ l("div", { className: O("textContainer"), children: [
|
|
715
715
|
/* @__PURE__ */ t("div", { className: y, children: i !== void 0 && i > 0 ? /* @__PURE__ */ t(xe, { children: i === 6 ? /* @__PURE__ */ t("span", { className: O("swissLodge"), children: p }) : /* @__PURE__ */ t(xe, { children: g ? /* @__PURE__ */ l(xe, { children: [
|
|
716
716
|
/* @__PURE__ */ l("div", { className: O("starsContainer"), children: [
|
|
717
|
-
|
|
717
|
+
mt(Math.floor(i), (A) => /* @__PURE__ */ t(ht, {}, A)),
|
|
718
718
|
s && /* @__PURE__ */ t("span", { className: O("superiorBadge"), children: "(s)" })
|
|
719
719
|
] }),
|
|
720
720
|
/* @__PURE__ */ t("div", { children: E() })
|
|
721
721
|
] }) : /* @__PURE__ */ l(xe, { children: [
|
|
722
|
-
/* @__PURE__ */ t("div", { className: O("starsContainer"), children:
|
|
722
|
+
/* @__PURE__ */ t("div", { className: O("starsContainer"), children: mt(Math.floor(i), (A) => /* @__PURE__ */ t(ht, {}, A)) }),
|
|
723
723
|
s && /* @__PURE__ */ t("span", { className: O("superiorBadge"), children: "(s)" }),
|
|
724
724
|
E()
|
|
725
725
|
] }) }) }) : /* @__PURE__ */ t("div", { className: O("starsPlaceholder"), children: " " }) }),
|
|
@@ -753,7 +753,7 @@ const oe = (e) => `hc-dropdown-${e}`, ei = () => /* @__PURE__ */ t("svg", { widt
|
|
|
753
753
|
placeholder: h = "Select..."
|
|
754
754
|
}) => {
|
|
755
755
|
var H;
|
|
756
|
-
const [u, m] = S(r || ""), [f, _] = S(!1), [w, p] = S(!1), g =
|
|
756
|
+
const [u, m] = S(r || ""), [f, _] = S(!1), [w, p] = S(!1), g = fe(null), C = i !== void 0 ? i : u, y = ((H = e.find((v) => v.value === C)) == null ? void 0 : H.label) || h;
|
|
757
757
|
re(() => {
|
|
758
758
|
const v = (T) => {
|
|
759
759
|
g.current && !g.current.contains(T.target) && _(!1);
|
|
@@ -856,7 +856,7 @@ const le = (e) => `hc-input-${e}`, ni = ({
|
|
|
856
856
|
readOnly: $ = !1,
|
|
857
857
|
inputProps: E
|
|
858
858
|
}) => {
|
|
859
|
-
const [A, H] = S(i), [v, T] = S(!1), x =
|
|
859
|
+
const [A, H] = S(i), [v, T] = S(!1), x = fe(null), D = r !== void 0 ? r : A, I = (X) => {
|
|
860
860
|
const se = X.target.value;
|
|
861
861
|
r === void 0 && H(se), s == null || s(se);
|
|
862
862
|
}, R = () => {
|
|
@@ -923,7 +923,7 @@ const le = (e) => `hc-input-${e}`, ni = ({
|
|
|
923
923
|
] });
|
|
924
924
|
};
|
|
925
925
|
ni.displayName = "Input";
|
|
926
|
-
const
|
|
926
|
+
const ue = (e) => `hc-block-${e}`, ai = ({
|
|
927
927
|
variant: e = "icon",
|
|
928
928
|
visual: a,
|
|
929
929
|
label: n,
|
|
@@ -935,10 +935,10 @@ const de = (e) => `hc-block-${e}`, ai = ({
|
|
|
935
935
|
}) => {
|
|
936
936
|
if (e === "icon") {
|
|
937
937
|
const h = [
|
|
938
|
-
|
|
939
|
-
s &&
|
|
938
|
+
ue("icon"),
|
|
939
|
+
s && ue("icon--clickable"),
|
|
940
940
|
c
|
|
941
|
-
].filter(Boolean).join(" "), u =
|
|
941
|
+
].filter(Boolean).join(" "), u = ue(i === "primary" ? "icon-container--primary" : "icon-container--secondary");
|
|
942
942
|
return /* @__PURE__ */ l(
|
|
943
943
|
"div",
|
|
944
944
|
{
|
|
@@ -948,17 +948,17 @@ const de = (e) => `hc-block-${e}`, ai = ({
|
|
|
948
948
|
tabIndex: s ? 0 : void 0,
|
|
949
949
|
children: [
|
|
950
950
|
/* @__PURE__ */ t("div", { className: u, children: a }),
|
|
951
|
-
/* @__PURE__ */ l("div", { className:
|
|
952
|
-
/* @__PURE__ */ t("div", { className:
|
|
953
|
-
r && /* @__PURE__ */ t("div", { className:
|
|
951
|
+
/* @__PURE__ */ l("div", { className: ue("text-container"), children: [
|
|
952
|
+
/* @__PURE__ */ t("div", { className: ue("icon-label"), children: n }),
|
|
953
|
+
r && /* @__PURE__ */ t("div", { className: ue("icon-description"), children: r })
|
|
954
954
|
] })
|
|
955
955
|
]
|
|
956
956
|
}
|
|
957
957
|
);
|
|
958
958
|
}
|
|
959
959
|
const o = [
|
|
960
|
-
|
|
961
|
-
s &&
|
|
960
|
+
ue("image"),
|
|
961
|
+
s && ue("image--clickable"),
|
|
962
962
|
c
|
|
963
963
|
].filter(Boolean).join(" ");
|
|
964
964
|
return /* @__PURE__ */ l(
|
|
@@ -969,10 +969,10 @@ const de = (e) => `hc-block-${e}`, ai = ({
|
|
|
969
969
|
role: s ? "button" : void 0,
|
|
970
970
|
tabIndex: s ? 0 : void 0,
|
|
971
971
|
children: [
|
|
972
|
-
/* @__PURE__ */ t("div", { className:
|
|
973
|
-
/* @__PURE__ */ l("div", { className:
|
|
974
|
-
/* @__PURE__ */ t("span", { className:
|
|
975
|
-
d && /* @__PURE__ */ t("span", { className:
|
|
972
|
+
/* @__PURE__ */ t("div", { className: ue("image-container"), children: a }),
|
|
973
|
+
/* @__PURE__ */ l("div", { className: ue("footer"), children: [
|
|
974
|
+
/* @__PURE__ */ t("span", { className: ue("image-label"), children: n }),
|
|
975
|
+
d && /* @__PURE__ */ t("span", { className: ue("arrow"), children: "→" })
|
|
976
976
|
] })
|
|
977
977
|
]
|
|
978
978
|
}
|
|
@@ -990,7 +990,7 @@ const Re = (e) => `hc-review-${e}`, ri = ({
|
|
|
990
990
|
return /* @__PURE__ */ l("div", { className: s, children: [
|
|
991
991
|
/* @__PURE__ */ t("div", { className: Re("name"), children: e }),
|
|
992
992
|
/* @__PURE__ */ l("div", { className: Re("frame"), children: [
|
|
993
|
-
/* @__PURE__ */ t("div", { className: Re("stars"), children: /* @__PURE__ */ t(
|
|
993
|
+
/* @__PURE__ */ t("div", { className: Re("stars"), children: /* @__PURE__ */ t(It, { variant: "stars", value: n, size: "medium" }) }),
|
|
994
994
|
/* @__PURE__ */ t("div", { className: Re("quote"), children: r })
|
|
995
995
|
] }),
|
|
996
996
|
/* @__PURE__ */ t("div", { className: Re("date"), children: a })
|
|
@@ -1058,7 +1058,7 @@ const ke = (e) => `hc-faq-${e}`, ii = ({ isOpen: e }) => {
|
|
|
1058
1058
|
}) });
|
|
1059
1059
|
};
|
|
1060
1060
|
si.displayName = "FAQ";
|
|
1061
|
-
const
|
|
1061
|
+
const he = (e) => `hc-benefits-${e}`, oi = ({
|
|
1062
1062
|
title: e = "Ihre Vorteile mit HotelCard",
|
|
1063
1063
|
subtitle: a = "Mit HotelCard sparen Sie bei jedem Aufenthalt",
|
|
1064
1064
|
benefits: n = [
|
|
@@ -1085,26 +1085,26 @@ const ue = (e) => `hc-benefits-${e}`, oi = ({
|
|
|
1085
1085
|
onContactClick: d,
|
|
1086
1086
|
className: c
|
|
1087
1087
|
}) => {
|
|
1088
|
-
const o = [
|
|
1089
|
-
return /* @__PURE__ */ t("section", { className: o, children: /* @__PURE__ */ l("div", { className:
|
|
1090
|
-
/* @__PURE__ */ l("div", { className:
|
|
1091
|
-
/* @__PURE__ */ t("h2", { className:
|
|
1092
|
-
a && /* @__PURE__ */ t("p", { className:
|
|
1088
|
+
const o = [he("section"), c].filter(Boolean).join(" ");
|
|
1089
|
+
return /* @__PURE__ */ t("section", { className: o, children: /* @__PURE__ */ l("div", { className: he("container"), children: [
|
|
1090
|
+
/* @__PURE__ */ l("div", { className: he("header"), children: [
|
|
1091
|
+
/* @__PURE__ */ t("h2", { className: he("title"), children: e }),
|
|
1092
|
+
a && /* @__PURE__ */ t("p", { className: he("subtitle"), children: a })
|
|
1093
1093
|
] }),
|
|
1094
|
-
/* @__PURE__ */ t("div", { className:
|
|
1095
|
-
/* @__PURE__ */ t("h3", { className:
|
|
1096
|
-
h.description && /* @__PURE__ */ t("p", { className:
|
|
1094
|
+
/* @__PURE__ */ t("div", { className: he("grid"), children: n.map((h, u) => /* @__PURE__ */ l("div", { className: he("item"), children: [
|
|
1095
|
+
/* @__PURE__ */ t("h3", { className: he("item-title"), children: h.title }),
|
|
1096
|
+
h.description && /* @__PURE__ */ t("p", { className: he("item-description"), children: h.description })
|
|
1097
1097
|
] }, u)) }),
|
|
1098
|
-
r && /* @__PURE__ */ l("div", { className:
|
|
1099
|
-
/* @__PURE__ */ t("h3", { className:
|
|
1100
|
-
i && /* @__PURE__ */ t("p", { className:
|
|
1098
|
+
r && /* @__PURE__ */ l("div", { className: he("contact-card"), children: [
|
|
1099
|
+
/* @__PURE__ */ t("h3", { className: he("contact-title"), children: r }),
|
|
1100
|
+
i && /* @__PURE__ */ t("p", { className: he("contact-description"), children: i }),
|
|
1101
1101
|
s && /* @__PURE__ */ t(
|
|
1102
1102
|
ze,
|
|
1103
1103
|
{
|
|
1104
1104
|
variant: "secondary",
|
|
1105
1105
|
size: "medium",
|
|
1106
1106
|
onClick: d,
|
|
1107
|
-
className:
|
|
1107
|
+
className: he("contact-btn"),
|
|
1108
1108
|
children: s
|
|
1109
1109
|
}
|
|
1110
1110
|
)
|
|
@@ -1112,7 +1112,7 @@ const ue = (e) => `hc-benefits-${e}`, oi = ({
|
|
|
1112
1112
|
] }) });
|
|
1113
1113
|
};
|
|
1114
1114
|
oi.displayName = "Benefits";
|
|
1115
|
-
const
|
|
1115
|
+
const we = (e) => `hc-pin-${e}`, li = ({ className: e }) => /* @__PURE__ */ t(
|
|
1116
1116
|
"svg",
|
|
1117
1117
|
{
|
|
1118
1118
|
className: e,
|
|
@@ -1134,7 +1134,7 @@ const _e = (e) => `hc-pin-${e}`, li = ({ className: e }) => /* @__PURE__ */ t(
|
|
|
1134
1134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1135
1135
|
children: /* @__PURE__ */ t("path", { d: "M6.66667 13.3333V9.33333H9.33333V13.3333H12.6667V8H14.6667L8 2L1.33333 8H3.33333V13.3333H6.66667Z" })
|
|
1136
1136
|
}
|
|
1137
|
-
), di =
|
|
1137
|
+
), di = Ht(
|
|
1138
1138
|
({
|
|
1139
1139
|
variant: e = "price",
|
|
1140
1140
|
viewed: a = !1,
|
|
@@ -1146,9 +1146,9 @@ const _e = (e) => `hc-pin-${e}`, li = ({ className: e }) => /* @__PURE__ */ t(
|
|
|
1146
1146
|
className: c = ""
|
|
1147
1147
|
}, o) => {
|
|
1148
1148
|
const h = a ? "secondary" : "primary", u = [
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
e === "hotel" &&
|
|
1149
|
+
we("pin"),
|
|
1150
|
+
we(h),
|
|
1151
|
+
e === "hotel" && we("hotel"),
|
|
1152
1152
|
c
|
|
1153
1153
|
].filter(Boolean).join(" "), m = typeof r == "number" ? Math.round(r).toString() : r;
|
|
1154
1154
|
return /* @__PURE__ */ l(
|
|
@@ -1160,12 +1160,12 @@ const _e = (e) => `hc-pin-${e}`, li = ({ className: e }) => /* @__PURE__ */ t(
|
|
|
1160
1160
|
disabled: s,
|
|
1161
1161
|
onClick: d,
|
|
1162
1162
|
children: [
|
|
1163
|
-
/* @__PURE__ */ t("div", { className:
|
|
1164
|
-
/* @__PURE__ */ t("span", { className:
|
|
1165
|
-
/* @__PURE__ */ t("span", { className:
|
|
1166
|
-
i && /* @__PURE__ */ t("div", { className:
|
|
1167
|
-
] }) : /* @__PURE__ */ t(ci, { className:
|
|
1168
|
-
/* @__PURE__ */ t("div", { className:
|
|
1163
|
+
/* @__PURE__ */ t("div", { className: we("body"), children: e === "price" ? /* @__PURE__ */ l(xe, { children: [
|
|
1164
|
+
/* @__PURE__ */ t("span", { className: we("currency"), children: n }),
|
|
1165
|
+
/* @__PURE__ */ t("span", { className: we("price"), children: m }),
|
|
1166
|
+
i && /* @__PURE__ */ t("div", { className: we("favorite-container"), children: /* @__PURE__ */ t(li, { className: we("favorite-icon") }) })
|
|
1167
|
+
] }) : /* @__PURE__ */ t(ci, { className: we("hotel-icon") }) }),
|
|
1168
|
+
/* @__PURE__ */ t("div", { className: we("pointer"), children: /* @__PURE__ */ t("div", { className: we("pointer-inner") }) })
|
|
1169
1169
|
]
|
|
1170
1170
|
}
|
|
1171
1171
|
);
|
|
@@ -1178,7 +1178,7 @@ const b2 = (e, a) => {
|
|
|
1178
1178
|
const i = setTimeout(() => r(e), a);
|
|
1179
1179
|
return () => clearTimeout(i);
|
|
1180
1180
|
}, [e, a]), n;
|
|
1181
|
-
},
|
|
1181
|
+
}, Qe = () => {
|
|
1182
1182
|
const [e, a] = S(
|
|
1183
1183
|
typeof window < "u" ? window.innerWidth : 1024
|
|
1184
1184
|
);
|
|
@@ -1190,10 +1190,10 @@ const b2 = (e, a) => {
|
|
|
1190
1190
|
}, []), {
|
|
1191
1191
|
isDesktop: e >= 1024
|
|
1192
1192
|
};
|
|
1193
|
-
},
|
|
1194
|
-
const { locale: e, currency: a } =
|
|
1193
|
+
}, ot = () => {
|
|
1194
|
+
const { locale: e, currency: a } = ce();
|
|
1195
1195
|
return { locale: e, currency: a };
|
|
1196
|
-
},
|
|
1196
|
+
}, Tt = (e) => {
|
|
1197
1197
|
const { t: a, i18n: n } = Jt(e);
|
|
1198
1198
|
return { t: (i, s, d) => {
|
|
1199
1199
|
let c, o;
|
|
@@ -1266,7 +1266,7 @@ const b2 = (e, a) => {
|
|
|
1266
1266
|
minDate: r,
|
|
1267
1267
|
locale: i = "de-CH"
|
|
1268
1268
|
}) => {
|
|
1269
|
-
const { isDesktop: s } =
|
|
1269
|
+
const { isDesktop: s } = Qe(), [d, c] = S(/* @__PURE__ */ new Date()), o = (N) => e === N, h = (N) => a === N, u = (N) => !e || !a ? !1 : N > e && N < a, m = (N) => new Date(N.getFullYear(), N.getMonth() + 1, 0), f = (N) => new Date(N.getFullYear(), N.getMonth() + 1, 0).getDate(), _ = (N) => {
|
|
1270
1270
|
const V = new Date(N.getFullYear(), N.getMonth(), 1).getDay();
|
|
1271
1271
|
return V === 0 ? 6 : V - 1;
|
|
1272
1272
|
}, w = (N) => N.toLocaleDateString(i, { month: "long", year: "numeric" }), g = (() => {
|
|
@@ -1439,7 +1439,7 @@ const b2 = (e, a) => {
|
|
|
1439
1439
|
onApply: d,
|
|
1440
1440
|
className: c = ""
|
|
1441
1441
|
}) => {
|
|
1442
|
-
const { t: o } =
|
|
1442
|
+
const { t: o } = ce(), { locale: h } = ot(), { isDesktop: u } = Qe(), m = os(h), [f, _] = S(e), [w, p] = S(
|
|
1443
1443
|
e.start ? "dates" : "anytime"
|
|
1444
1444
|
), g = a || [], C = g.length === 0;
|
|
1445
1445
|
re(() => {
|
|
@@ -1578,7 +1578,7 @@ const b2 = (e, a) => {
|
|
|
1578
1578
|
className: d,
|
|
1579
1579
|
icon: c
|
|
1580
1580
|
}) => {
|
|
1581
|
-
const { t: o } =
|
|
1581
|
+
const { t: o } = ce(), { locale: h } = ot(), { isDesktop: u } = Qe(), m = cs(h), [f, _] = S(e), [w, p] = S(!1), [g, C] = S(a || []), y = fe(null);
|
|
1582
1582
|
re(() => {
|
|
1583
1583
|
_((v) => v.start === e.start && v.end === e.end ? v : e), C((v) => {
|
|
1584
1584
|
const T = a || [];
|
|
@@ -1671,7 +1671,7 @@ const b2 = (e, a) => {
|
|
|
1671
1671
|
}
|
|
1672
1672
|
) })
|
|
1673
1673
|
] });
|
|
1674
|
-
},
|
|
1674
|
+
}, ft = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t("path", { d: "M0 10C0 9.48047 0.477679 9.0625 1.07143 9.0625H18.9286C19.5223 9.0625 20 9.48047 20 10C20 10.5195 19.5223 10.9375 18.9286 10.9375H1.07143C0.477679 10.9375 0 10.5195 0 10Z", fill: "currentColor" }) }), gt = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t("path", { d: "M11.0714 2.1875C11.0714 1.66797 10.5938 1.25 10 1.25C9.40625 1.25 8.92857 1.66797 8.92857 2.1875V9.0625H1.07143C0.477679 9.0625 0 9.48047 0 10C0 10.5195 0.477679 10.9375 1.07143 10.9375H8.92857V17.8125C8.92857 18.332 9.40625 18.75 10 18.75C10.5938 18.75 11.0714 18.332 11.0714 17.8125V10.9375H18.9286C19.5223 10.9375 20 10.5195 20 10C20 9.48047 19.5223 9.0625 18.9286 9.0625H11.0714V2.1875Z", fill: "currentColor" }) }), hs = () => /* @__PURE__ */ t(
|
|
1675
1675
|
"svg",
|
|
1676
1676
|
{
|
|
1677
1677
|
className: "hc-guest-content__select-icon",
|
|
@@ -1698,7 +1698,7 @@ const b2 = (e, a) => {
|
|
|
1698
1698
|
childAgeErrors: d = [],
|
|
1699
1699
|
onErrorClear: c
|
|
1700
1700
|
}) => {
|
|
1701
|
-
const { t: o } =
|
|
1701
|
+
const { t: o } = ce(), h = {
|
|
1702
1702
|
adults: o("form.adults", "Adults"),
|
|
1703
1703
|
children: o("form.children", "Children"),
|
|
1704
1704
|
pet: o("form.pet", "Pet"),
|
|
@@ -1744,7 +1744,7 @@ const b2 = (e, a) => {
|
|
|
1744
1744
|
onClick: () => f("adults"),
|
|
1745
1745
|
disabled: e.adults <= 1,
|
|
1746
1746
|
"aria-label": h.decreaseAdults,
|
|
1747
|
-
children: /* @__PURE__ */ t(
|
|
1747
|
+
children: /* @__PURE__ */ t(ft, {})
|
|
1748
1748
|
}
|
|
1749
1749
|
),
|
|
1750
1750
|
/* @__PURE__ */ t("span", { className: "hc-guest-content__counter-value", children: e.adults }),
|
|
@@ -1756,7 +1756,7 @@ const b2 = (e, a) => {
|
|
|
1756
1756
|
onClick: () => m("adults"),
|
|
1757
1757
|
disabled: e.adults >= 10,
|
|
1758
1758
|
"aria-label": h.increaseAdults,
|
|
1759
|
-
children: /* @__PURE__ */ t(
|
|
1759
|
+
children: /* @__PURE__ */ t(gt, {})
|
|
1760
1760
|
}
|
|
1761
1761
|
)
|
|
1762
1762
|
] })
|
|
@@ -1773,7 +1773,7 @@ const b2 = (e, a) => {
|
|
|
1773
1773
|
onClick: () => f("children"),
|
|
1774
1774
|
disabled: e.children <= 0,
|
|
1775
1775
|
"aria-label": h.decreaseChildren,
|
|
1776
|
-
children: /* @__PURE__ */ t(
|
|
1776
|
+
children: /* @__PURE__ */ t(ft, {})
|
|
1777
1777
|
}
|
|
1778
1778
|
),
|
|
1779
1779
|
/* @__PURE__ */ t("span", { className: "hc-guest-content__counter-value", children: e.children }),
|
|
@@ -1785,7 +1785,7 @@ const b2 = (e, a) => {
|
|
|
1785
1785
|
onClick: () => m("children"),
|
|
1786
1786
|
disabled: e.children >= 6,
|
|
1787
1787
|
"aria-label": h.increaseChildren,
|
|
1788
|
-
children: /* @__PURE__ */ t(
|
|
1788
|
+
children: /* @__PURE__ */ t(gt, {})
|
|
1789
1789
|
}
|
|
1790
1790
|
)
|
|
1791
1791
|
] })
|
|
@@ -1867,7 +1867,7 @@ const b2 = (e, a) => {
|
|
|
1867
1867
|
icon: c,
|
|
1868
1868
|
childAgeErrors: o = []
|
|
1869
1869
|
}) => {
|
|
1870
|
-
const { t: h } =
|
|
1870
|
+
const { t: h } = ce(), [u, m] = S(e), [f, _] = S(a), [w, p] = S(!1), g = fe(null), [C, y] = S([]), k = u.adults + u.children;
|
|
1871
1871
|
re(() => {
|
|
1872
1872
|
m(e);
|
|
1873
1873
|
}, [e]), re(() => {
|
|
@@ -1947,7 +1947,7 @@ const b2 = (e, a) => {
|
|
|
1947
1947
|
}, Rs = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: [
|
|
1948
1948
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_location)", 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" }) }),
|
|
1949
1949
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_location", children: /* @__PURE__ */ t("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
1950
|
-
] }), Vs = () => /* @__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" }) }),
|
|
1950
|
+
] }), Vs = () => /* @__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" }) }), pt = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
|
|
1951
1951
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_1151_67394)", 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" }) }),
|
|
1952
1952
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_1151_67394", children: /* @__PURE__ */ t("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
1953
1953
|
] }), Es = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
|
|
@@ -1974,7 +1974,7 @@ const b2 = (e, a) => {
|
|
|
1974
1974
|
disabled: d = !1,
|
|
1975
1975
|
className: c = ""
|
|
1976
1976
|
}) => {
|
|
1977
|
-
const { t: o } =
|
|
1977
|
+
const { t: o } = Tt(), { locale: h } = ot(), [u, m] = S([]), [f, _] = S(!1), [w, p] = S(!1), [g, C] = S(-1), [y, k] = S(!1), z = fe(null), j = fe(null), $ = fe(), E = w || e.trim().length > 0, A = Ze(() => {
|
|
1978
1978
|
const b = u.filter((W) => W.type === "hotel"), P = u.filter((W) => W.type === "city"), J = u.filter((W) => W.type === "region"), Le = u.filter((W) => W.type === "country");
|
|
1979
1979
|
return { hotels: b, cities: P, regions: J, countries: Le };
|
|
1980
1980
|
}, [u]), H = Ze(() => [
|
|
@@ -2072,11 +2072,11 @@ const b2 = (e, a) => {
|
|
|
2072
2072
|
case "country":
|
|
2073
2073
|
return /* @__PURE__ */ t(Zs, {});
|
|
2074
2074
|
case "anywhere":
|
|
2075
|
-
return /* @__PURE__ */ t(
|
|
2075
|
+
return /* @__PURE__ */ t(pt, {});
|
|
2076
2076
|
case "nearme":
|
|
2077
2077
|
return /* @__PURE__ */ t(Es, {});
|
|
2078
2078
|
default:
|
|
2079
|
-
return /* @__PURE__ */ t(
|
|
2079
|
+
return /* @__PURE__ */ t(pt, {});
|
|
2080
2080
|
}
|
|
2081
2081
|
}, V = (b, P) => {
|
|
2082
2082
|
if (!P || P.length < 3)
|
|
@@ -2264,7 +2264,7 @@ const b2 = (e, a) => {
|
|
|
2264
2264
|
value: n,
|
|
2265
2265
|
onChange: r
|
|
2266
2266
|
}) => {
|
|
2267
|
-
const { t: i } =
|
|
2267
|
+
const { t: i } = Tt(), s = [
|
|
2268
2268
|
{ value: "relevance", labelKey: "search:filter.relevance", defaultLabel: "Relevance" },
|
|
2269
2269
|
{ value: "price_asc", labelKey: "search:filter.price-low-high", defaultLabel: "Price low to high" },
|
|
2270
2270
|
{ value: "price_desc", labelKey: "search:filter.price-high-low", defaultLabel: "Price high to low" },
|
|
@@ -2272,7 +2272,7 @@ const b2 = (e, a) => {
|
|
|
2272
2272
|
], d = (c) => {
|
|
2273
2273
|
r(c), a();
|
|
2274
2274
|
};
|
|
2275
|
-
return
|
|
2275
|
+
return St.useEffect(() => {
|
|
2276
2276
|
if (e)
|
|
2277
2277
|
return document.body.style.overflow = "hidden", () => {
|
|
2278
2278
|
document.body.style.overflow = "";
|
|
@@ -2347,7 +2347,7 @@ const b2 = (e, a) => {
|
|
|
2347
2347
|
] }), Lo = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: [
|
|
2348
2348
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_1116_37956)", children: /* @__PURE__ */ t("path", { d: "M20 1.875C20 1.55078 19.832 1.25 19.5586 1.07813C19.2852 0.906252 18.9375 0.890627 18.6484 1.03516L13.7695 3.44141L7.03125 1.14844C6.49609 0.964846 5.91016 1 5.39453 1.23828L0.539063 3.52735C0.210938 3.67969 0 4.01172 0 4.375V18.125C0 18.4453 0.164063 18.7461 0.433594 18.918C0.703125 19.0898 1.04297 19.1094 1.33594 18.9727L6.30859 16.6328L12.9766 18.8555C13.5117 19.0352 14.0898 19 14.6016 18.7578L19.4609 16.4727C19.7891 16.3164 20 15.9883 20 15.625V1.875ZM5.625 3.20703V14.8867L1.875 16.6523V4.97266L5.625 3.20703ZM7.5 15.0547V3.29297L12.5 4.99219V16.7227L7.5 15.0547ZM14.375 5.23438L18.125 3.38281V15.0313L14.375 16.7969V5.23438Z", fill: "#1F2937" }) }),
|
|
2349
2349
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_1116_37956", children: /* @__PURE__ */ t("rect", { width: "20", height: "20", fill: "white" }) }) })
|
|
2350
|
-
] }), $o = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ t("path", { d: "M6.625 0C7.24844 0 7.75 0.501562 7.75 1.125V3H15.25V1.125C15.25 0.501562 15.7516 0 16.375 0C16.9984 0 17.5 0.501562 17.5 1.125V3H19C20.6547 3 22 4.34531 22 6V19.5C22 21.1547 20.6547 22.5 19 22.5H4C2.34531 22.5 1 21.1547 1 19.5V6C1 4.34531 2.34531 3 4 3H5.5V1.125C5.5 0.501562 6.00156 0 6.625 0ZM19 20.25C19.4125 20.25 19.75 19.9125 19.75 19.5V16.5H15.625V20.25H19ZM19.75 14.25V10.5H15.625V14.25H19.75ZM13.375 14.25V10.5H9.625V14.25H13.375ZM7.375 14.25V10.5H3.25V14.25H7.375ZM3.25 16.5V19.5C3.25 19.9125 3.5875 20.25 4 20.25H7.375V16.5H3.25ZM9.625 16.5V20.25H13.375V16.5H9.625ZM6.625 5.25H4C3.5875 5.25 3.25 5.5875 3.25 6V8.25H19.75V6C19.75 5.5875 19.4125 5.25 19 5.25H6.625Z", fill: "#4B5563" }) }), Do = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ t("path", { d: "M8.25 6C8.25 5.00544 8.64509 4.05161 9.34835 3.34835C10.0516 2.64509 11.0054 2.25 12 2.25C12.9946 2.25 13.9484 2.64509 14.6517 3.34835C15.3549 4.05161 15.75 5.00544 15.75 6C15.75 6.99456 15.3549 7.94839 14.6517 8.65165C13.9484 9.35491 12.9946 9.75 12 9.75C11.0054 9.75 10.0516 9.35491 9.34835 8.65165C8.64509 7.94839 8.25 6.99456 8.25 6ZM18 6C18 4.4087 17.3679 2.88258 16.2426 1.75736C15.1174 0.632141 13.5913 0 12 0C10.4087 0 8.88258 0.632141 7.75736 1.75736C6.63214 2.88258 6 4.4087 6 6C6 7.5913 6.63214 9.11742 7.75736 10.2426C8.88258 11.3679 10.4087 12 12 12C13.5913 12 15.1174 11.3679 16.2426 10.2426C17.3679 9.11742 18 7.5913 18 6ZM3.75 22.5C3.75 19.1859 6.43594 16.5 9.75 16.5H14.25C17.5641 16.5 20.25 19.1859 20.25 22.5V22.875C20.25 23.4984 20.7516 24 21.375 24C21.9984 24 22.5 23.4984 22.5 22.875V22.5C22.5 17.9438 18.8062 14.25 14.25 14.25H9.75C5.19375 14.25 1.5 17.9438 1.5 22.5V22.875C1.5 23.4984 2.00156 24 2.625 24C3.24844 24 3.75 23.4984 3.75 22.875V22.5Z", fill: "#4B5563" }) }),
|
|
2350
|
+
] }), $o = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ t("path", { d: "M6.625 0C7.24844 0 7.75 0.501562 7.75 1.125V3H15.25V1.125C15.25 0.501562 15.7516 0 16.375 0C16.9984 0 17.5 0.501562 17.5 1.125V3H19C20.6547 3 22 4.34531 22 6V19.5C22 21.1547 20.6547 22.5 19 22.5H4C2.34531 22.5 1 21.1547 1 19.5V6C1 4.34531 2.34531 3 4 3H5.5V1.125C5.5 0.501562 6.00156 0 6.625 0ZM19 20.25C19.4125 20.25 19.75 19.9125 19.75 19.5V16.5H15.625V20.25H19ZM19.75 14.25V10.5H15.625V14.25H19.75ZM13.375 14.25V10.5H9.625V14.25H13.375ZM7.375 14.25V10.5H3.25V14.25H7.375ZM3.25 16.5V19.5C3.25 19.9125 3.5875 20.25 4 20.25H7.375V16.5H3.25ZM9.625 16.5V20.25H13.375V16.5H9.625ZM6.625 5.25H4C3.5875 5.25 3.25 5.5875 3.25 6V8.25H19.75V6C19.75 5.5875 19.4125 5.25 19 5.25H6.625Z", fill: "#4B5563" }) }), Do = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", children: /* @__PURE__ */ t("path", { d: "M8.25 6C8.25 5.00544 8.64509 4.05161 9.34835 3.34835C10.0516 2.64509 11.0054 2.25 12 2.25C12.9946 2.25 13.9484 2.64509 14.6517 3.34835C15.3549 4.05161 15.75 5.00544 15.75 6C15.75 6.99456 15.3549 7.94839 14.6517 8.65165C13.9484 9.35491 12.9946 9.75 12 9.75C11.0054 9.75 10.0516 9.35491 9.34835 8.65165C8.64509 7.94839 8.25 6.99456 8.25 6ZM18 6C18 4.4087 17.3679 2.88258 16.2426 1.75736C15.1174 0.632141 13.5913 0 12 0C10.4087 0 8.88258 0.632141 7.75736 1.75736C6.63214 2.88258 6 4.4087 6 6C6 7.5913 6.63214 9.11742 7.75736 10.2426C8.88258 11.3679 10.4087 12 12 12C13.5913 12 15.1174 11.3679 16.2426 10.2426C17.3679 9.11742 18 7.5913 18 6ZM3.75 22.5C3.75 19.1859 6.43594 16.5 9.75 16.5H14.25C17.5641 16.5 20.25 19.1859 20.25 22.5V22.875C20.25 23.4984 20.7516 24 21.375 24C21.9984 24 22.5 23.4984 22.5 22.875V22.5C22.5 17.9438 18.8062 14.25 14.25 14.25H9.75C5.19375 14.25 1.5 17.9438 1.5 22.5V22.875C1.5 23.4984 2.00156 24 2.625 24C3.24844 24 3.75 23.4984 3.75 22.875V22.5Z", fill: "#4B5563" }) }), _t = () => /* @__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" }) }), y2 = ({
|
|
2351
2351
|
onSearch: e,
|
|
2352
2352
|
onGuestChange: a,
|
|
2353
2353
|
onQueryChange: n,
|
|
@@ -2370,7 +2370,7 @@ const b2 = (e, a) => {
|
|
|
2370
2370
|
hideViewToggle: k = !1,
|
|
2371
2371
|
compact: z = !1
|
|
2372
2372
|
}) => {
|
|
2373
|
-
const { isDesktop: j } =
|
|
2373
|
+
const { isDesktop: j } = Qe(), { t: $ } = ce(), [E, A] = S(m), [H, v] = S(f), [T, x] = S(_), [D, I] = S(w), [R, N] = S(p), [V, U] = S([]);
|
|
2374
2374
|
re(() => {
|
|
2375
2375
|
v(f), A(m), I(w), N(p);
|
|
2376
2376
|
}, [f, m, w, p]);
|
|
@@ -2506,7 +2506,7 @@ const b2 = (e, a) => {
|
|
|
2506
2506
|
className: q.clearButton,
|
|
2507
2507
|
onClick: se,
|
|
2508
2508
|
"aria-label": $("label.clear", "Clear date"),
|
|
2509
|
-
children: /* @__PURE__ */ t(
|
|
2509
|
+
children: /* @__PURE__ */ t(_t, {})
|
|
2510
2510
|
}
|
|
2511
2511
|
)
|
|
2512
2512
|
] }),
|
|
@@ -2533,7 +2533,7 @@ const b2 = (e, a) => {
|
|
|
2533
2533
|
className: q.clearButton,
|
|
2534
2534
|
onClick: Me,
|
|
2535
2535
|
"aria-label": $("label.clear", "Clear guests"),
|
|
2536
|
-
children: /* @__PURE__ */ t(
|
|
2536
|
+
children: /* @__PURE__ */ t(_t, {})
|
|
2537
2537
|
}
|
|
2538
2538
|
)
|
|
2539
2539
|
] }),
|
|
@@ -2614,7 +2614,7 @@ const b2 = (e, a) => {
|
|
|
2614
2614
|
)
|
|
2615
2615
|
] })
|
|
2616
2616
|
] });
|
|
2617
|
-
}, So = 5,
|
|
2617
|
+
}, So = 5, wt = 50, vt = 'data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="400" height="300" fill="%23e5e7eb"%3E%3Crect width="400" height="300" /%3E%3C/svg%3E', Ho = () => /* @__PURE__ */ l("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: [
|
|
2618
2618
|
/* @__PURE__ */ t("g", { clipPath: "url(#clip0_building)", children: /* @__PURE__ */ t("path", { d: "M0.75 0C0.334375 0 0 0.334375 0 0.75C0 1.16562 0.334375 1.5 0.75 1.5H1V14.5H0.75C0.334375 14.5 0 14.8344 0 15.25C0 15.6656 0.334375 16 0.75 16H15.25C15.6656 16 16 15.6656 16 15.25C16 14.8344 15.6656 14.5 15.25 14.5H15V1.5H15.25C15.6656 1.5 16 1.16562 16 0.75C16 0.334375 15.6656 0 15.25 0H0.75ZM13.5 14.5H9V12H10.5C10.775 12 11.0031 11.775 10.9594 11.5031C10.7219 10.0844 9.4875 9 8 9C6.5125 9 5.27813 10.0813 5.04063 11.5031C4.99375 11.775 5.22188 12 5.5 12H7V14.5H2.5V1.5H13.5V14.5ZM4.5 3C4.225 3 4 3.225 4 3.5V4.5C4 4.775 4.225 5 4.5 5H5.5C5.775 5 6 4.775 6 4.5V3.5C6 3.225 5.775 3 5.5 3H4.5ZM7 3.5V4.5C7 4.775 7.225 5 7.5 5H8.5C8.775 5 9 4.775 9 4.5V3.5C9 3.225 8.775 3 8.5 3H7.5C7.225 3 7 3.225 7 3.5ZM10.5 3C10.225 3 10 3.225 10 3.5V4.5C10 4.775 10.225 5 10.5 5H11.5C11.775 5 12 4.775 12 4.5V3.5C12 3.225 11.775 3 11.5 3H10.5ZM4 6.5V7.5C4 7.775 4.225 8 4.5 8H5.5C5.775 8 6 7.775 6 7.5V6.5C6 6.225 5.775 6 5.5 6H4.5C4.225 6 4 6.225 4 6.5ZM7.5 6C7.225 6 7 6.225 7 6.5V7.5C7 7.775 7.225 8 7.5 8H8.5C8.775 8 9 7.775 9 7.5V6.5C9 6.225 8.775 6 8.5 6H7.5ZM10 6.5V7.5C10 7.775 10.225 8 10.5 8H11.5C11.775 8 12 7.775 12 7.5V6.5C12 6.225 11.775 6 11.5 6H10.5C10.225 6 10 6.225 10 6.5Z", fill: "white" }) }),
|
|
2619
2619
|
/* @__PURE__ */ t("defs", { children: /* @__PURE__ */ t("clipPath", { id: "clip0_building", children: /* @__PURE__ */ t("rect", { width: "16", height: "16", fill: "white" }) }) })
|
|
2620
2620
|
] }), Po = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t("path", { d: "M12.5 15L7.5 10L12.5 5", stroke: "#1F2937", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Bo = () => /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t("path", { d: "M7.5 15L12.5 10L7.5 5", stroke: "#1F2937", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) }), Ao = ({ filled: e }) => /* @__PURE__ */ l(
|
|
@@ -2658,9 +2658,9 @@ const b2 = (e, a) => {
|
|
|
2658
2658
|
addToFavorites: "Add to favorites",
|
|
2659
2659
|
previousImage: "Previous image",
|
|
2660
2660
|
nextImage: "Next image"
|
|
2661
|
-
}, d = e.slice(0, So), [c, o] = S(0), [h, u] = S(/* @__PURE__ */ new Set()), [m, f] = S(null), [_, w] = S(null), [p, g] = S(!1), C =
|
|
2661
|
+
}, d = e.slice(0, So), [c, o] = S(0), [h, u] = S(/* @__PURE__ */ new Set()), [m, f] = S(null), [_, w] = S(null), [p, g] = S(!1), C = fe(null), y = (x) => {
|
|
2662
2662
|
u((D) => new Set(D).add(x));
|
|
2663
|
-
}, k = (x) => h.has(x) ?
|
|
2663
|
+
}, k = (x) => h.has(x) ? vt : d[x] || vt, z = () => {
|
|
2664
2664
|
o((x) => x === 0 ? d.length - 1 : x - 1);
|
|
2665
2665
|
}, j = () => {
|
|
2666
2666
|
o((x) => x === d.length - 1 ? 0 : x + 1);
|
|
@@ -2675,7 +2675,7 @@ const b2 = (e, a) => {
|
|
|
2675
2675
|
}, v = (x) => {
|
|
2676
2676
|
if (x.stopPropagation(), g(!1), !m || !_) return;
|
|
2677
2677
|
const D = m - _;
|
|
2678
|
-
D >
|
|
2678
|
+
D > wt ? j() : D < -wt && z(), f(null), w(null);
|
|
2679
2679
|
}, T = (x) => {
|
|
2680
2680
|
x.preventDefault(), x.stopPropagation(), i();
|
|
2681
2681
|
};
|
|
@@ -2767,7 +2767,7 @@ const b2 = (e, a) => {
|
|
|
2767
2767
|
isAvailable: o = !0,
|
|
2768
2768
|
onClick: h
|
|
2769
2769
|
}) => {
|
|
2770
|
-
const { t: u } =
|
|
2770
|
+
const { t: u } = ce(), m = {
|
|
2771
2771
|
ratingExcellent: u("label.rating-excellent", "Excellent"),
|
|
2772
2772
|
ratingVeryGood: u("label.rating-very-good", "Very good"),
|
|
2773
2773
|
ratingGood: u("label.rating-good", "Good"),
|
|
@@ -2872,7 +2872,7 @@ const b2 = (e, a) => {
|
|
|
2872
2872
|
onClick: n
|
|
2873
2873
|
}
|
|
2874
2874
|
)
|
|
2875
|
-
] }), Fo = "_filterRow_17z8r_8", Oo = "_filterRowDisabled_17z8r_22", Zo = "_checkboxLabel_17z8r_46", Yo = "_checkboxButton_17z8r_53", qo = "_checkbox_17z8r_46", Go = "_checkboxBox_17z8r_74", Jo = "_checkboxBoxDisabled_17z8r_96", Xo = "_checkIcon_17z8r_106", Ko = "_filterLabel_17z8r_116", Qo = "_filterLabelDisabled_17z8r_125", Uo = "_filterCount_17z8r_129", el = "_filterCountDisabled_17z8r_138",
|
|
2875
|
+
] }), Fo = "_filterRow_17z8r_8", Oo = "_filterRowDisabled_17z8r_22", Zo = "_checkboxLabel_17z8r_46", Yo = "_checkboxButton_17z8r_53", qo = "_checkbox_17z8r_46", Go = "_checkboxBox_17z8r_74", Jo = "_checkboxBoxDisabled_17z8r_96", Xo = "_checkIcon_17z8r_106", Ko = "_filterLabel_17z8r_116", Qo = "_filterLabelDisabled_17z8r_125", Uo = "_filterCount_17z8r_129", el = "_filterCountDisabled_17z8r_138", pe = {
|
|
2876
2876
|
filterRow: Fo,
|
|
2877
2877
|
filterRowDisabled: Oo,
|
|
2878
2878
|
checkboxLabel: Zo,
|
|
@@ -2885,7 +2885,7 @@ const b2 = (e, a) => {
|
|
|
2885
2885
|
filterLabelDisabled: Qo,
|
|
2886
2886
|
filterCount: Uo,
|
|
2887
2887
|
filterCountDisabled: el
|
|
2888
|
-
},
|
|
2888
|
+
}, Ye = ({
|
|
2889
2889
|
id: e,
|
|
2890
2890
|
label: a,
|
|
2891
2891
|
count: n,
|
|
@@ -2897,24 +2897,24 @@ const b2 = (e, a) => {
|
|
|
2897
2897
|
}) => /* @__PURE__ */ l(
|
|
2898
2898
|
"label",
|
|
2899
2899
|
{
|
|
2900
|
-
className: `${
|
|
2900
|
+
className: `${pe.filterRow} ${i ? pe.filterRowDisabled : ""} ${d}`,
|
|
2901
2901
|
tabIndex: i ? -1 : 0,
|
|
2902
2902
|
"data-track": c,
|
|
2903
2903
|
children: [
|
|
2904
|
-
/* @__PURE__ */ l("div", { className:
|
|
2905
|
-
/* @__PURE__ */ l("div", { className:
|
|
2904
|
+
/* @__PURE__ */ l("div", { className: pe.checkboxLabel, children: [
|
|
2905
|
+
/* @__PURE__ */ l("div", { className: pe.checkboxButton, children: [
|
|
2906
2906
|
/* @__PURE__ */ t(
|
|
2907
2907
|
"input",
|
|
2908
2908
|
{
|
|
2909
2909
|
id: e,
|
|
2910
2910
|
type: "checkbox",
|
|
2911
|
-
className:
|
|
2911
|
+
className: pe.checkbox,
|
|
2912
2912
|
checked: r,
|
|
2913
2913
|
disabled: i,
|
|
2914
2914
|
onChange: s
|
|
2915
2915
|
}
|
|
2916
2916
|
),
|
|
2917
|
-
/* @__PURE__ */ t("span", { className: `${
|
|
2917
|
+
/* @__PURE__ */ t("span", { className: `${pe.checkboxBox} ${i ? pe.checkboxBoxDisabled : ""}`, children: r && /* @__PURE__ */ t("svg", { viewBox: "0 0 12 10", fill: "none", className: pe.checkIcon, children: /* @__PURE__ */ t(
|
|
2918
2918
|
"path",
|
|
2919
2919
|
{
|
|
2920
2920
|
d: "M1 5L4.5 8.5L11 1",
|
|
@@ -2925,12 +2925,12 @@ const b2 = (e, a) => {
|
|
|
2925
2925
|
}
|
|
2926
2926
|
) }) })
|
|
2927
2927
|
] }),
|
|
2928
|
-
/* @__PURE__ */ t("span", { className: `${
|
|
2928
|
+
/* @__PURE__ */ t("span", { className: `${pe.filterLabel} ${i ? pe.filterLabelDisabled : ""}`, children: a })
|
|
2929
2929
|
] }),
|
|
2930
|
-
n !== void 0 && /* @__PURE__ */ t("span", { className: `${
|
|
2930
|
+
n !== void 0 && /* @__PURE__ */ t("span", { className: `${pe.filterCount} ${i ? pe.filterCountDisabled : ""}`, children: n })
|
|
2931
2931
|
]
|
|
2932
2932
|
}
|
|
2933
|
-
), tl = "_section_6jsxa_5", nl = "_header_6jsxa_9", al = "_title_6jsxa_21", rl = "_chevron_6jsxa_29", il = "_chevronExpanded_6jsxa_37", sl = "_content_6jsxa_41", ol = "_contentExpanded_6jsxa_47", ll = "_contentInner_6jsxa_51", cl = "_showAllButton_6jsxa_55", dl = "_showAllChevron_6jsxa_75", ul = "_showAllChevronUp_6jsxa_82",
|
|
2933
|
+
), tl = "_section_6jsxa_5", nl = "_header_6jsxa_9", al = "_title_6jsxa_21", rl = "_chevron_6jsxa_29", il = "_chevronExpanded_6jsxa_37", sl = "_content_6jsxa_41", ol = "_contentExpanded_6jsxa_47", ll = "_contentInner_6jsxa_51", cl = "_showAllButton_6jsxa_55", dl = "_showAllChevron_6jsxa_75", ul = "_showAllChevronUp_6jsxa_82", ve = {
|
|
2934
2934
|
section: tl,
|
|
2935
2935
|
header: nl,
|
|
2936
2936
|
title: al,
|
|
@@ -2952,7 +2952,7 @@ const b2 = (e, a) => {
|
|
|
2952
2952
|
initialItemsToShow: d = 5,
|
|
2953
2953
|
className: c = ""
|
|
2954
2954
|
}) => {
|
|
2955
|
-
const { t: o } =
|
|
2955
|
+
const { t: o } = ce(), [h, u] = S(n), [m, f] = S(!1), _ = r ?? o("filter.show-all", "Show all"), w = i ?? o("filter.show-less", "Show less");
|
|
2956
2956
|
re(() => {
|
|
2957
2957
|
n && !h && u(!0);
|
|
2958
2958
|
}, [n]);
|
|
@@ -2960,21 +2960,21 @@ const b2 = (e, a) => {
|
|
|
2960
2960
|
u(!h);
|
|
2961
2961
|
}, g = () => {
|
|
2962
2962
|
f(!m);
|
|
2963
|
-
}, C =
|
|
2964
|
-
return /* @__PURE__ */ l("div", { className: `${
|
|
2963
|
+
}, C = St.Children.toArray(a), y = s && C.length > d, k = y && !m ? C.slice(0, d) : C;
|
|
2964
|
+
return /* @__PURE__ */ l("div", { className: `${ve.section} ${c}`, children: [
|
|
2965
2965
|
/* @__PURE__ */ l(
|
|
2966
2966
|
"button",
|
|
2967
2967
|
{
|
|
2968
2968
|
type: "button",
|
|
2969
|
-
className:
|
|
2969
|
+
className: ve.header,
|
|
2970
2970
|
onClick: p,
|
|
2971
2971
|
"aria-expanded": h,
|
|
2972
2972
|
children: [
|
|
2973
|
-
/* @__PURE__ */ t("span", { className:
|
|
2973
|
+
/* @__PURE__ */ t("span", { className: ve.title, children: e }),
|
|
2974
2974
|
/* @__PURE__ */ t(
|
|
2975
2975
|
"svg",
|
|
2976
2976
|
{
|
|
2977
|
-
className: `${
|
|
2977
|
+
className: `${ve.chevron} ${h ? ve.chevronExpanded : ""}`,
|
|
2978
2978
|
viewBox: "0 0 24 24",
|
|
2979
2979
|
fill: "none",
|
|
2980
2980
|
"aria-hidden": "true",
|
|
@@ -2996,22 +2996,22 @@ const b2 = (e, a) => {
|
|
|
2996
2996
|
/* @__PURE__ */ t(
|
|
2997
2997
|
"div",
|
|
2998
2998
|
{
|
|
2999
|
-
className: `${
|
|
2999
|
+
className: `${ve.content} ${h ? ve.contentExpanded : ""}`,
|
|
3000
3000
|
"aria-hidden": !h,
|
|
3001
|
-
children: /* @__PURE__ */ l("div", { className:
|
|
3001
|
+
children: /* @__PURE__ */ l("div", { className: ve.contentInner, children: [
|
|
3002
3002
|
k,
|
|
3003
3003
|
y && /* @__PURE__ */ l(
|
|
3004
3004
|
"button",
|
|
3005
3005
|
{
|
|
3006
3006
|
type: "button",
|
|
3007
|
-
className:
|
|
3007
|
+
className: ve.showAllButton,
|
|
3008
3008
|
onClick: g,
|
|
3009
3009
|
children: [
|
|
3010
3010
|
m ? w : _,
|
|
3011
3011
|
/* @__PURE__ */ t(
|
|
3012
3012
|
"svg",
|
|
3013
3013
|
{
|
|
3014
|
-
className: `${
|
|
3014
|
+
className: `${ve.showAllChevron} ${m ? ve.showAllChevronUp : ""}`,
|
|
3015
3015
|
viewBox: "0 0 24 24",
|
|
3016
3016
|
fill: "none",
|
|
3017
3017
|
"aria-hidden": "true",
|
|
@@ -3081,31 +3081,31 @@ const b2 = (e, a) => {
|
|
|
3081
3081
|
onDragEnd: o,
|
|
3082
3082
|
debounceDelay: h = 500
|
|
3083
3083
|
}) => {
|
|
3084
|
-
const { t: u, currency: m } =
|
|
3084
|
+
const { t: u, currency: m } = ce(), f = d ?? m, _ = fe(null), [w, p] = S(null), [g, C] = S(!1), y = fe(n), k = fe(null), [z, j] = S(""), [$, E] = S(""), [A, H] = S(!1), [v, T] = S(!1), x = a - e, D = x > 0 ? (n.min - e) / x * 100 : 0, I = x > 0 ? (n.max - e) / x * 100 : 100, R = Math.max(...s, 1), N = qe((W) => {
|
|
3085
3085
|
const M = W / s.length * 100, F = (W + 1) / s.length * 100;
|
|
3086
3086
|
return M < I && F > D;
|
|
3087
|
-
}, [s.length, D, I]), V = 12, U =
|
|
3087
|
+
}, [s.length, D, I]), V = 12, U = qe((W) => {
|
|
3088
3088
|
i && (k.current && clearTimeout(k.current), k.current = setTimeout(() => {
|
|
3089
3089
|
i(W);
|
|
3090
3090
|
}, h));
|
|
3091
|
-
}, [i, h]), ee =
|
|
3091
|
+
}, [i, h]), ee = qe((W) => {
|
|
3092
3092
|
if (!_.current || !w) return;
|
|
3093
3093
|
const M = _.current.getBoundingClientRect(), F = M.width - V * 2, te = M.left + V, Ce = Math.max(0, Math.min(100, (W - te) / F * 100)), $e = Math.round(e + Ce / 100 * x);
|
|
3094
|
-
let Ee = n.min,
|
|
3094
|
+
let Ee = n.min, dt = n.max;
|
|
3095
3095
|
if (w === "min") {
|
|
3096
|
-
const
|
|
3097
|
-
Ee = Math.max(e,
|
|
3096
|
+
const nt = Math.min($e, n.max - 1);
|
|
3097
|
+
Ee = Math.max(e, nt);
|
|
3098
3098
|
} else {
|
|
3099
|
-
const
|
|
3100
|
-
|
|
3099
|
+
const nt = Math.max($e, n.min + 1);
|
|
3100
|
+
dt = Math.min(a, nt);
|
|
3101
3101
|
}
|
|
3102
|
-
const
|
|
3103
|
-
r(
|
|
3102
|
+
const tt = { min: Ee, max: dt };
|
|
3103
|
+
r(tt), y.current = tt, g || U(tt);
|
|
3104
3104
|
}, [w, e, a, x, n, r, g, U]), ie = (W) => (M) => {
|
|
3105
3105
|
M.preventDefault(), p(W), C(!0), c == null || c();
|
|
3106
3106
|
}, G = (W) => (M) => {
|
|
3107
3107
|
M.preventDefault(), p(W), C(!0), c == null || c();
|
|
3108
|
-
}, X =
|
|
3108
|
+
}, X = qe(() => {
|
|
3109
3109
|
g && i && i(y.current), p(null), C(!1), o == null || o();
|
|
3110
3110
|
}, [g, i, o]);
|
|
3111
3111
|
re(() => {
|
|
@@ -3250,14 +3250,14 @@ const b2 = (e, a) => {
|
|
|
3250
3250
|
onChange: n,
|
|
3251
3251
|
className: r = ""
|
|
3252
3252
|
}) => {
|
|
3253
|
-
const { t: i } =
|
|
3253
|
+
const { t: i } = ce(), s = (c) => {
|
|
3254
3254
|
e.includes(c) ? n(e.filter((o) => o !== c)) : n([...e, c]);
|
|
3255
3255
|
}, 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;
|
|
3256
3256
|
return /* @__PURE__ */ l("div", { className: r, children: [
|
|
3257
3257
|
/* @__PURE__ */ t("div", { className: je.filterList, children: Hl.map((c) => {
|
|
3258
3258
|
const o = a[c.value], h = o === 0 && !e.includes(c.value);
|
|
3259
3259
|
return /* @__PURE__ */ t(
|
|
3260
|
-
|
|
3260
|
+
Ye,
|
|
3261
3261
|
{
|
|
3262
3262
|
id: `category-${c.value}`,
|
|
3263
3263
|
label: c.stars > 0 ? /* @__PURE__ */ t("div", { className: je.starsContainer, children: Array.from({ length: c.stars }).map((u, m) => /* @__PURE__ */ t("svg", { className: je.starIcon, viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ t("path", { d: "M12 0L14.6942 8.2918H23.4127L16.3593 13.4164L19.0534 21.7082L12 16.5836L4.94658 21.7082L7.64074 13.4164L0.587322 8.2918H9.30583L12 0Z" }) }, m)) }) : d(c),
|
|
@@ -3272,7 +3272,7 @@ const b2 = (e, a) => {
|
|
|
3272
3272
|
}) }),
|
|
3273
3273
|
/* @__PURE__ */ t("div", { className: je.footer, children: /* @__PURE__ */ t("span", { className: je.footerText, children: i("filter.hotellerie-suisse", "Classification HotellerieSuisse") }) })
|
|
3274
3274
|
] });
|
|
3275
|
-
}, Pl = "_filterList_1to6r_5", Bl = "_filterRange_1to6r_10", Al = "_footer_1to6r_15", Il = "_footerText_1to6r_21",
|
|
3275
|
+
}, Pl = "_filterList_1to6r_5", Bl = "_filterRange_1to6r_10", Al = "_footer_1to6r_15", Il = "_footerText_1to6r_21", Ge = {
|
|
3276
3276
|
filterList: Pl,
|
|
3277
3277
|
filterRange: Bl,
|
|
3278
3278
|
footer: Al,
|
|
@@ -3290,7 +3290,7 @@ const b2 = (e, a) => {
|
|
|
3290
3290
|
className: r = "",
|
|
3291
3291
|
isPlaceSearchActive: i = !1
|
|
3292
3292
|
}) => {
|
|
3293
|
-
const { t: s } =
|
|
3293
|
+
const { t: s } = ce(), d = (o) => {
|
|
3294
3294
|
e.includes(o) ? n(e.filter((h) => h !== o)) : n([...e, o]);
|
|
3295
3295
|
}, c = (o) => ({
|
|
3296
3296
|
"rating-excellent": s("label.rating-excellent", "Excellent"),
|
|
@@ -3300,15 +3300,15 @@ const b2 = (e, a) => {
|
|
|
3300
3300
|
"rating-none": s("label.rating-none", "No rating")
|
|
3301
3301
|
})[o] ?? o;
|
|
3302
3302
|
return /* @__PURE__ */ l("div", { className: r, children: [
|
|
3303
|
-
/* @__PURE__ */ t("div", { className:
|
|
3303
|
+
/* @__PURE__ */ t("div", { className: Ge.filterList, children: Wl.map((o) => {
|
|
3304
3304
|
const h = a[o.value], u = !i && h === 0 && !e.includes(o.value);
|
|
3305
3305
|
return /* @__PURE__ */ t(
|
|
3306
|
-
|
|
3306
|
+
Ye,
|
|
3307
3307
|
{
|
|
3308
3308
|
id: `review-${o.value}`,
|
|
3309
3309
|
label: /* @__PURE__ */ l(xe, { children: [
|
|
3310
3310
|
c(o.labelKey),
|
|
3311
|
-
o.range && /* @__PURE__ */ l("span", { className:
|
|
3311
|
+
o.range && /* @__PURE__ */ l("span", { className: Ge.filterRange, children: [
|
|
3312
3312
|
" ",
|
|
3313
3313
|
o.range
|
|
3314
3314
|
] })
|
|
@@ -3322,9 +3322,9 @@ const b2 = (e, a) => {
|
|
|
3322
3322
|
o.value
|
|
3323
3323
|
);
|
|
3324
3324
|
}) }),
|
|
3325
|
-
/* @__PURE__ */ t("div", { className:
|
|
3325
|
+
/* @__PURE__ */ t("div", { className: Ge.footer, children: /* @__PURE__ */ t("span", { className: Ge.footerText, children: s("filter.trustyou", "Reviews from TrustYou®") }) })
|
|
3326
3326
|
] });
|
|
3327
|
-
}, Tl = "_filterList_1cd71_5", zl = "_showMoreBtn_1cd71_10", Rl = "_arrowIcon_1cd71_30", Vl = "_arrowUp_1cd71_41",
|
|
3327
|
+
}, Tl = "_filterList_1cd71_5", zl = "_showMoreBtn_1cd71_10", Rl = "_arrowIcon_1cd71_30", Vl = "_arrowUp_1cd71_41", Je = {
|
|
3328
3328
|
filterList: Tl,
|
|
3329
3329
|
showMoreBtn: zl,
|
|
3330
3330
|
arrowIcon: Rl,
|
|
@@ -3335,14 +3335,14 @@ const b2 = (e, a) => {
|
|
|
3335
3335
|
onChange: n,
|
|
3336
3336
|
className: r = ""
|
|
3337
3337
|
}) => {
|
|
3338
|
-
const { t: i } =
|
|
3338
|
+
const { t: i } = ce(), [s, d] = S(!1), c = s ? a : a.slice(0, 5), o = a.length > 5, h = (u) => {
|
|
3339
3339
|
e.includes(u) ? n(e.filter((m) => m !== u)) : n([...e, u]);
|
|
3340
3340
|
};
|
|
3341
|
-
return a.length === 0 ? null : /* @__PURE__ */ l("div", { className: `${
|
|
3341
|
+
return a.length === 0 ? null : /* @__PURE__ */ l("div", { className: `${Je.filterList} ${r}`, children: [
|
|
3342
3342
|
c.map((u) => {
|
|
3343
3343
|
const m = String(u.id), f = u.count === 0 && !e.includes(m);
|
|
3344
3344
|
return /* @__PURE__ */ t(
|
|
3345
|
-
|
|
3345
|
+
Ye,
|
|
3346
3346
|
{
|
|
3347
3347
|
id: `experience-${u.id}`,
|
|
3348
3348
|
label: u.name,
|
|
@@ -3359,16 +3359,16 @@ const b2 = (e, a) => {
|
|
|
3359
3359
|
"button",
|
|
3360
3360
|
{
|
|
3361
3361
|
type: "button",
|
|
3362
|
-
className:
|
|
3362
|
+
className: Je.showMoreBtn,
|
|
3363
3363
|
onClick: () => d(!s),
|
|
3364
3364
|
children: [
|
|
3365
3365
|
s ? i("filter.show-less", "Show less") : i("filter.show-all", "Show all"),
|
|
3366
|
-
/* @__PURE__ */ t("span", { className: `${
|
|
3366
|
+
/* @__PURE__ */ t("span", { className: `${Je.arrowIcon} ${s ? Je.arrowUp : ""}`, children: /* @__PURE__ */ t("svg", { xmlns: "http://www.w3.org/2000/svg", width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", children: /* @__PURE__ */ t("path", { d: "M9.36927 13.9061C9.71908 14.2535 10.2847 14.2535 10.6308 13.9061L16.4069 8.1803C16.7567 7.83285 16.7567 7.27102 16.4069 6.92727C16.0571 6.58352 15.4915 6.57983 15.1454 6.92727L10.0019 12.0247L4.85845 6.92727C4.50864 6.57983 3.94299 6.57983 3.5969 6.92727C3.25081 7.27472 3.24709 7.83655 3.5969 8.1803L9.37299 13.9061H9.36927Z", fill: "currentColor" }) }) })
|
|
3367
3367
|
]
|
|
3368
3368
|
}
|
|
3369
3369
|
)
|
|
3370
3370
|
] });
|
|
3371
|
-
}, El = "_filterList_k73l5_10", jl = "_regionItem_k73l5_16", Fl = "_countryRow_k73l5_22", Ol = "_countryRowExpanded_k73l5_37", Zl = "_countryInfo_k73l5_46", Yl = "_countryName_k73l5_53", ql = "_countBadge_k73l5_61", Gl = "_chevron_k73l5_79", Jl = "_chevronExpanded_k73l5_87", Xl = "_subRegions_k73l5_92", Kl = "_mobileSelectAllActions_k73l5_104", Ql = "_selectAllBtn_k73l5_117", Ul = "_resetAllBtn_k73l5_118",
|
|
3371
|
+
}, El = "_filterList_k73l5_10", jl = "_regionItem_k73l5_16", Fl = "_countryRow_k73l5_22", Ol = "_countryRowExpanded_k73l5_37", Zl = "_countryInfo_k73l5_46", Yl = "_countryName_k73l5_53", ql = "_countBadge_k73l5_61", Gl = "_chevron_k73l5_79", Jl = "_chevronExpanded_k73l5_87", Xl = "_subRegions_k73l5_92", Kl = "_mobileSelectAllActions_k73l5_104", Ql = "_selectAllBtn_k73l5_117", Ul = "_resetAllBtn_k73l5_118", me = {
|
|
3372
3372
|
filterList: El,
|
|
3373
3373
|
regionItem: jl,
|
|
3374
3374
|
countryRow: Fl,
|
|
@@ -3389,7 +3389,7 @@ const b2 = (e, a) => {
|
|
|
3389
3389
|
className: r = "",
|
|
3390
3390
|
isPlaceSearchActive: i = !1
|
|
3391
3391
|
}) => {
|
|
3392
|
-
const { t: s } =
|
|
3392
|
+
const { t: s } = ce(), [d, c] = S(/* @__PURE__ */ new Set(["country_215"])), o = fe(!1);
|
|
3393
3393
|
re(() => {
|
|
3394
3394
|
if (o.current || e.length === 0 || a.length === 0) return;
|
|
3395
3395
|
const m = /* @__PURE__ */ new Set();
|
|
@@ -3406,21 +3406,21 @@ const b2 = (e, a) => {
|
|
|
3406
3406
|
}, u = (m) => {
|
|
3407
3407
|
a.includes(m) ? n(a.filter((f) => f !== m)) : n([...a, m]);
|
|
3408
3408
|
};
|
|
3409
|
-
return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: `${
|
|
3409
|
+
return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: `${me.filterList} ${r}`, children: e.map((m) => {
|
|
3410
3410
|
const f = m.subRegions && m.subRegions.length > 0, _ = d.has(m.value);
|
|
3411
|
-
return /* @__PURE__ */ l("div", { className:
|
|
3411
|
+
return /* @__PURE__ */ l("div", { className: me.regionItem, children: [
|
|
3412
3412
|
/* @__PURE__ */ l(
|
|
3413
3413
|
"button",
|
|
3414
3414
|
{
|
|
3415
3415
|
type: "button",
|
|
3416
|
-
className: `${
|
|
3416
|
+
className: `${me.countryRow} ${_ ? me.countryRowExpanded : ""}`,
|
|
3417
3417
|
onClick: () => h(m.value),
|
|
3418
3418
|
"aria-expanded": _,
|
|
3419
3419
|
disabled: i,
|
|
3420
3420
|
children: [
|
|
3421
|
-
/* @__PURE__ */ l("div", { className:
|
|
3422
|
-
/* @__PURE__ */ t("span", { className:
|
|
3423
|
-
m.count !== void 0 && /* @__PURE__ */ t("span", { className:
|
|
3421
|
+
/* @__PURE__ */ l("div", { className: me.countryInfo, children: [
|
|
3422
|
+
/* @__PURE__ */ t("span", { className: me.countryName, children: m.label }),
|
|
3423
|
+
m.count !== void 0 && /* @__PURE__ */ t("span", { className: me.countBadge, children: m.count })
|
|
3424
3424
|
] }),
|
|
3425
3425
|
f && /* @__PURE__ */ t(
|
|
3426
3426
|
"svg",
|
|
@@ -3430,7 +3430,7 @@ const b2 = (e, a) => {
|
|
|
3430
3430
|
height: "20",
|
|
3431
3431
|
viewBox: "0 0 20 20",
|
|
3432
3432
|
fill: "none",
|
|
3433
|
-
className: `${
|
|
3433
|
+
className: `${me.chevron} ${_ ? me.chevronExpanded : ""}`,
|
|
3434
3434
|
children: /* @__PURE__ */ t("path", { d: "M9.36927 13.9061C9.71908 14.2535 10.2847 14.2535 10.6308 13.9061L16.4069 8.18027C16.7567 7.83283 16.7567 7.271 16.4069 6.92725C16.0571 6.5835 15.4915 6.5798 15.1454 6.92725L10.0019 12.0247L4.85845 6.92725C4.50864 6.5798 3.94299 6.5798 3.5969 6.92725C3.25081 7.2747 3.24709 7.83652 3.5969 8.18027L9.37299 13.9061H9.36927Z", fill: "#6B7280" })
|
|
3435
3435
|
}
|
|
3436
3436
|
)
|
|
@@ -3441,12 +3441,12 @@ const b2 = (e, a) => {
|
|
|
3441
3441
|
const w = m.subRegions.some(
|
|
3442
3442
|
(C) => C.count === void 0 || C.count > 0
|
|
3443
3443
|
), p = m.subRegions.map((C) => C.value), g = p.some((C) => a.includes(C));
|
|
3444
|
-
return /* @__PURE__ */ l("div", { className:
|
|
3444
|
+
return /* @__PURE__ */ l("div", { className: me.mobileSelectAllActions, children: [
|
|
3445
3445
|
/* @__PURE__ */ t(
|
|
3446
3446
|
"button",
|
|
3447
3447
|
{
|
|
3448
3448
|
type: "button",
|
|
3449
|
-
className:
|
|
3449
|
+
className: me.selectAllBtn,
|
|
3450
3450
|
disabled: !w,
|
|
3451
3451
|
onClick: () => {
|
|
3452
3452
|
const C = m.subRegions.filter((k) => k.count === void 0 || k.count > 0).map((k) => k.value), y = Array.from(/* @__PURE__ */ new Set([...a, ...C]));
|
|
@@ -3459,7 +3459,7 @@ const b2 = (e, a) => {
|
|
|
3459
3459
|
"button",
|
|
3460
3460
|
{
|
|
3461
3461
|
type: "button",
|
|
3462
|
-
className:
|
|
3462
|
+
className: me.resetAllBtn,
|
|
3463
3463
|
disabled: !g,
|
|
3464
3464
|
onClick: () => {
|
|
3465
3465
|
n(a.filter((C) => !p.includes(C)));
|
|
@@ -3469,10 +3469,10 @@ const b2 = (e, a) => {
|
|
|
3469
3469
|
)
|
|
3470
3470
|
] });
|
|
3471
3471
|
})(),
|
|
3472
|
-
f && _ && /* @__PURE__ */ t("div", { className:
|
|
3472
|
+
f && _ && /* @__PURE__ */ t("div", { className: me.subRegions, children: m.subRegions.map((w) => {
|
|
3473
3473
|
const p = w.count === 0 && !a.includes(w.value) || i && !a.includes(w.value);
|
|
3474
3474
|
return /* @__PURE__ */ t(
|
|
3475
|
-
|
|
3475
|
+
Ye,
|
|
3476
3476
|
{
|
|
3477
3477
|
id: `region-${w.value}`,
|
|
3478
3478
|
label: w.label,
|
|
@@ -3489,7 +3489,7 @@ const b2 = (e, a) => {
|
|
|
3489
3489
|
}) });
|
|
3490
3490
|
}, ec = "_filterList_pnmpu_5", tc = {
|
|
3491
3491
|
filterList: ec
|
|
3492
|
-
},
|
|
3492
|
+
}, lt = ({
|
|
3493
3493
|
selected: e,
|
|
3494
3494
|
counts: a = {},
|
|
3495
3495
|
options: n = [],
|
|
@@ -3503,7 +3503,7 @@ const b2 = (e, a) => {
|
|
|
3503
3503
|
return n.length === 0 ? null : /* @__PURE__ */ t("div", { className: `${tc.filterList} ${i}`, children: n.map((c) => {
|
|
3504
3504
|
const o = a[c.key], h = o === 0 && !e.includes(c.key);
|
|
3505
3505
|
return /* @__PURE__ */ t(
|
|
3506
|
-
|
|
3506
|
+
Ye,
|
|
3507
3507
|
{
|
|
3508
3508
|
id: `${s}-${c.key}`,
|
|
3509
3509
|
label: c.name,
|
|
@@ -3516,7 +3516,7 @@ const b2 = (e, a) => {
|
|
|
3516
3516
|
c.key
|
|
3517
3517
|
);
|
|
3518
3518
|
}) });
|
|
3519
|
-
}, S2 = (e) => /* @__PURE__ */ t(
|
|
3519
|
+
}, S2 = (e) => /* @__PURE__ */ t(lt, { ...e, trackPrefix: "meals" }), H2 = (e) => /* @__PURE__ */ t(lt, { ...e, trackPrefix: "transport" }), P2 = (e) => /* @__PURE__ */ t(lt, { ...e, trackPrefix: "wellness" }), nc = "_container_ft4s7_5", ac = "_chipsWrapper_ft4s7_10", rc = "_selectedText_ft4s7_16", ic = "_chips_ft4s7_10", sc = "_clearAllBtn_ft4s7_34", Fe = {
|
|
3520
3520
|
container: nc,
|
|
3521
3521
|
chipsWrapper: ac,
|
|
3522
3522
|
selectedText: rc,
|
|
@@ -3528,7 +3528,7 @@ const b2 = (e, a) => {
|
|
|
3528
3528
|
onClearAll: n,
|
|
3529
3529
|
className: r = ""
|
|
3530
3530
|
}) => {
|
|
3531
|
-
const { t: i } =
|
|
3531
|
+
const { t: i } = ce();
|
|
3532
3532
|
return e.length === 0 ? null : /* @__PURE__ */ t("div", { className: `${Fe.container} ${r}`, children: /* @__PURE__ */ l("div", { className: Fe.chipsWrapper, children: [
|
|
3533
3533
|
/* @__PURE__ */ l("p", { className: Fe.selectedText, children: [
|
|
3534
3534
|
i("filter.selected", "Selected:"),
|
|
@@ -3536,7 +3536,7 @@ const b2 = (e, a) => {
|
|
|
3536
3536
|
] }),
|
|
3537
3537
|
/* @__PURE__ */ l("div", { className: Fe.chips, children: [
|
|
3538
3538
|
e.map((s) => /* @__PURE__ */ t(
|
|
3539
|
-
|
|
3539
|
+
Wt,
|
|
3540
3540
|
{
|
|
3541
3541
|
label: s.label,
|
|
3542
3542
|
size: "small",
|
|
@@ -3676,30 +3676,30 @@ function We(e, a) {
|
|
|
3676
3676
|
}
|
|
3677
3677
|
const zt = 6048e5, hc = 864e5, Rt = 6e4, Vt = 36e5;
|
|
3678
3678
|
let mc = {};
|
|
3679
|
-
function
|
|
3679
|
+
function Ue() {
|
|
3680
3680
|
return mc;
|
|
3681
3681
|
}
|
|
3682
3682
|
function Te(e, a) {
|
|
3683
3683
|
var c, o, h, u;
|
|
3684
|
-
const n =
|
|
3684
|
+
const n = Ue(), r = (a == null ? void 0 : a.weekStartsOn) ?? ((o = (c = a == null ? void 0 : a.locale) == null ? void 0 : c.options) == null ? void 0 : o.weekStartsOn) ?? n.weekStartsOn ?? ((u = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : u.weekStartsOn) ?? 0, i = be(e), s = i.getDay(), d = (s < r ? 7 : 0) + s - r;
|
|
3685
3685
|
return i.setDate(i.getDate() - d), i.setHours(0, 0, 0, 0), i;
|
|
3686
3686
|
}
|
|
3687
|
-
function
|
|
3687
|
+
function Ke(e) {
|
|
3688
3688
|
return Te(e, { weekStartsOn: 1 });
|
|
3689
3689
|
}
|
|
3690
3690
|
function Et(e) {
|
|
3691
3691
|
const a = be(e), n = a.getFullYear(), r = We(e, 0);
|
|
3692
3692
|
r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
|
|
3693
|
-
const i =
|
|
3693
|
+
const i = Ke(r), s = We(e, 0);
|
|
3694
3694
|
s.setFullYear(n, 0, 4), s.setHours(0, 0, 0, 0);
|
|
3695
|
-
const d =
|
|
3695
|
+
const d = Ke(s);
|
|
3696
3696
|
return a.getTime() >= i.getTime() ? n + 1 : a.getTime() >= d.getTime() ? n : n - 1;
|
|
3697
3697
|
}
|
|
3698
|
-
function
|
|
3698
|
+
function bt(e) {
|
|
3699
3699
|
const a = be(e);
|
|
3700
3700
|
return a.setHours(0, 0, 0, 0), a;
|
|
3701
3701
|
}
|
|
3702
|
-
function
|
|
3702
|
+
function Ct(e) {
|
|
3703
3703
|
const a = be(e), n = new Date(
|
|
3704
3704
|
Date.UTC(
|
|
3705
3705
|
a.getFullYear(),
|
|
@@ -3714,12 +3714,12 @@ function yt(e) {
|
|
|
3714
3714
|
return n.setUTCFullYear(a.getFullYear()), +e - +n;
|
|
3715
3715
|
}
|
|
3716
3716
|
function fc(e, a) {
|
|
3717
|
-
const n =
|
|
3717
|
+
const n = bt(e), r = bt(a), i = +n - Ct(n), s = +r - Ct(r);
|
|
3718
3718
|
return Math.round((i - s) / hc);
|
|
3719
3719
|
}
|
|
3720
3720
|
function gc(e) {
|
|
3721
3721
|
const a = Et(e), n = We(e, 0);
|
|
3722
|
-
return n.setFullYear(a, 0, 4), n.setHours(0, 0, 0, 0),
|
|
3722
|
+
return n.setFullYear(a, 0, 4), n.setHours(0, 0, 0, 0), Ke(n);
|
|
3723
3723
|
}
|
|
3724
3724
|
function pc(e) {
|
|
3725
3725
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
@@ -3801,7 +3801,7 @@ const vc = {
|
|
|
3801
3801
|
const i = vc[e];
|
|
3802
3802
|
return typeof i == "string" ? r = i : a === 1 ? r = i.one : r = i.other.replace("{{count}}", a.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
3803
3803
|
};
|
|
3804
|
-
function
|
|
3804
|
+
function _e(e) {
|
|
3805
3805
|
return (a = {}) => {
|
|
3806
3806
|
const n = a.width ? String(a.width) : e.defaultWidth;
|
|
3807
3807
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
@@ -3823,15 +3823,15 @@ const Cc = {
|
|
|
3823
3823
|
medium: "{{date}}, {{time}}",
|
|
3824
3824
|
short: "{{date}}, {{time}}"
|
|
3825
3825
|
}, kc = {
|
|
3826
|
-
date:
|
|
3826
|
+
date: _e({
|
|
3827
3827
|
formats: Cc,
|
|
3828
3828
|
defaultWidth: "full"
|
|
3829
3829
|
}),
|
|
3830
|
-
time:
|
|
3830
|
+
time: _e({
|
|
3831
3831
|
formats: yc,
|
|
3832
3832
|
defaultWidth: "full"
|
|
3833
3833
|
}),
|
|
3834
|
-
dateTime:
|
|
3834
|
+
dateTime: _e({
|
|
3835
3835
|
formats: Nc,
|
|
3836
3836
|
defaultWidth: "full"
|
|
3837
3837
|
})
|
|
@@ -4037,7 +4037,7 @@ function Wc(e, a) {
|
|
|
4037
4037
|
if (a(e[n]))
|
|
4038
4038
|
return n;
|
|
4039
4039
|
}
|
|
4040
|
-
function
|
|
4040
|
+
function et(e) {
|
|
4041
4041
|
return (a, n = {}) => {
|
|
4042
4042
|
const r = a.match(e.matchPattern);
|
|
4043
4043
|
if (!r) return null;
|
|
@@ -4117,7 +4117,7 @@ const Tc = /^(\d+)(th|st|nd|rd)?/i, zc = /\d+/i, Rc = {
|
|
|
4117
4117
|
night: /night/i
|
|
4118
4118
|
}
|
|
4119
4119
|
}, Jc = {
|
|
4120
|
-
ordinalNumber:
|
|
4120
|
+
ordinalNumber: et({
|
|
4121
4121
|
matchPattern: Tc,
|
|
4122
4122
|
parsePattern: zc,
|
|
4123
4123
|
valueCallback: (e) => parseInt(e, 10)
|
|
@@ -4170,12 +4170,12 @@ function Xc(e) {
|
|
|
4170
4170
|
return fc(a, wc(a)) + 1;
|
|
4171
4171
|
}
|
|
4172
4172
|
function Kc(e) {
|
|
4173
|
-
const a = be(e), n = +
|
|
4173
|
+
const a = be(e), n = +Ke(a) - +gc(a);
|
|
4174
4174
|
return Math.round(n / zt) + 1;
|
|
4175
4175
|
}
|
|
4176
4176
|
function Ft(e, a) {
|
|
4177
4177
|
var u, m, f, _;
|
|
4178
|
-
const n = be(e), r = n.getFullYear(), i =
|
|
4178
|
+
const n = be(e), r = n.getFullYear(), i = Ue(), s = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((m = (u = a == null ? void 0 : a.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? i.firstWeekContainsDate ?? ((_ = (f = i.locale) == null ? void 0 : f.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, d = We(e, 0);
|
|
4179
4179
|
d.setFullYear(r + 1, 0, s), d.setHours(0, 0, 0, 0);
|
|
4180
4180
|
const c = Te(d, a), o = We(e, 0);
|
|
4181
4181
|
o.setFullYear(r, 0, s), o.setHours(0, 0, 0, 0);
|
|
@@ -4184,7 +4184,7 @@ function Ft(e, a) {
|
|
|
4184
4184
|
}
|
|
4185
4185
|
function Qc(e, a) {
|
|
4186
4186
|
var c, o, h, u;
|
|
4187
|
-
const n =
|
|
4187
|
+
const n = Ue(), r = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((o = (c = a == null ? void 0 : a.locale) == null ? void 0 : c.options) == null ? void 0 : o.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (h = n.locale) == null ? void 0 : h.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, i = Ft(e, a), s = We(e, 0);
|
|
4188
4188
|
return s.setFullYear(i, 0, r), s.setHours(0, 0, 0, 0), Te(s, a);
|
|
4189
4189
|
}
|
|
4190
4190
|
function Uc(e, a) {
|
|
@@ -4256,7 +4256,7 @@ const Pe = {
|
|
|
4256
4256
|
afternoon: "afternoon",
|
|
4257
4257
|
evening: "evening",
|
|
4258
4258
|
night: "night"
|
|
4259
|
-
},
|
|
4259
|
+
}, yt = {
|
|
4260
4260
|
// Era
|
|
4261
4261
|
G: function(e, a, n) {
|
|
4262
4262
|
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
@@ -4731,7 +4731,7 @@ const Pe = {
|
|
|
4731
4731
|
switch (a) {
|
|
4732
4732
|
// Hours and optional minutes
|
|
4733
4733
|
case "X":
|
|
4734
|
-
return
|
|
4734
|
+
return kt(r);
|
|
4735
4735
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
4736
4736
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
4737
4737
|
// so this token always has the same output as `XX`
|
|
@@ -4754,7 +4754,7 @@ const Pe = {
|
|
|
4754
4754
|
switch (a) {
|
|
4755
4755
|
// Hours and optional minutes
|
|
4756
4756
|
case "x":
|
|
4757
|
-
return
|
|
4757
|
+
return kt(r);
|
|
4758
4758
|
// Hours, minutes and optional seconds without `:` delimiter
|
|
4759
4759
|
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
4760
4760
|
// so this token always has the same output as `xx`
|
|
@@ -4779,7 +4779,7 @@ const Pe = {
|
|
|
4779
4779
|
case "O":
|
|
4780
4780
|
case "OO":
|
|
4781
4781
|
case "OOO":
|
|
4782
|
-
return "GMT" +
|
|
4782
|
+
return "GMT" + Nt(r, ":");
|
|
4783
4783
|
// Long
|
|
4784
4784
|
case "OOOO":
|
|
4785
4785
|
default:
|
|
@@ -4794,7 +4794,7 @@ const Pe = {
|
|
|
4794
4794
|
case "z":
|
|
4795
4795
|
case "zz":
|
|
4796
4796
|
case "zzz":
|
|
4797
|
-
return "GMT" +
|
|
4797
|
+
return "GMT" + Nt(r, ":");
|
|
4798
4798
|
// Long
|
|
4799
4799
|
case "zzzz":
|
|
4800
4800
|
default:
|
|
@@ -4812,18 +4812,18 @@ const Pe = {
|
|
|
4812
4812
|
return Z(r, a.length);
|
|
4813
4813
|
}
|
|
4814
4814
|
};
|
|
4815
|
-
function
|
|
4815
|
+
function Nt(e, a = "") {
|
|
4816
4816
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), s = r % 60;
|
|
4817
4817
|
return s === 0 ? n + String(i) : n + String(i) + a + Z(s, 2);
|
|
4818
4818
|
}
|
|
4819
|
-
function
|
|
4819
|
+
function kt(e, a) {
|
|
4820
4820
|
return e % 60 === 0 ? (e > 0 ? "-" : "+") + Z(Math.abs(e) / 60, 2) : Ie(e, a);
|
|
4821
4821
|
}
|
|
4822
4822
|
function Ie(e, a = "") {
|
|
4823
4823
|
const n = e > 0 ? "-" : "+", r = Math.abs(e), i = Z(Math.trunc(r / 60), 2), s = Z(r % 60, 2);
|
|
4824
4824
|
return n + i + a + s;
|
|
4825
4825
|
}
|
|
4826
|
-
const
|
|
4826
|
+
const xt = (e, a) => {
|
|
4827
4827
|
switch (e) {
|
|
4828
4828
|
case "P":
|
|
4829
4829
|
return a.date({ width: "short" });
|
|
@@ -4850,7 +4850,7 @@ const Mt = (e, a) => {
|
|
|
4850
4850
|
}, e1 = (e, a) => {
|
|
4851
4851
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
4852
4852
|
if (!i)
|
|
4853
|
-
return
|
|
4853
|
+
return xt(e, a);
|
|
4854
4854
|
let s;
|
|
4855
4855
|
switch (r) {
|
|
4856
4856
|
case "P":
|
|
@@ -4867,7 +4867,7 @@ const Mt = (e, a) => {
|
|
|
4867
4867
|
s = a.dateTime({ width: "full" });
|
|
4868
4868
|
break;
|
|
4869
4869
|
}
|
|
4870
|
-
return s.replace("{{date}}",
|
|
4870
|
+
return s.replace("{{date}}", xt(r, a)).replace("{{time}}", Ot(i, a));
|
|
4871
4871
|
}, t1 = {
|
|
4872
4872
|
p: Ot,
|
|
4873
4873
|
P: e1
|
|
@@ -4889,7 +4889,7 @@ function l1(e, a, n) {
|
|
|
4889
4889
|
const c1 = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, d1 = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, u1 = /^'([^]*?)'?$/, h1 = /''/g, m1 = /[a-zA-Z]/;
|
|
4890
4890
|
function f1(e, a, n) {
|
|
4891
4891
|
var u, m, f, _, w, p, g, C;
|
|
4892
|
-
const r =
|
|
4892
|
+
const r = Ue(), i = (n == null ? void 0 : n.locale) ?? r.locale ?? jt, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((m = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : m.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((_ = (f = r.locale) == null ? void 0 : f.options) == null ? void 0 : _.firstWeekContainsDate) ?? 1, d = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (w = n == null ? void 0 : n.locale) == null ? void 0 : w.options) == null ? void 0 : p.weekStartsOn) ?? r.weekStartsOn ?? ((C = (g = r.locale) == null ? void 0 : g.options) == null ? void 0 : C.weekStartsOn) ?? 0, c = be(e);
|
|
4893
4893
|
if (!_c(c))
|
|
4894
4894
|
throw new RangeError("Invalid time value");
|
|
4895
4895
|
let o = a.match(d1).map((y) => {
|
|
@@ -4905,7 +4905,7 @@ function f1(e, a, n) {
|
|
|
4905
4905
|
const k = y[0];
|
|
4906
4906
|
if (k === "'")
|
|
4907
4907
|
return { isToken: !1, value: g1(y) };
|
|
4908
|
-
if (
|
|
4908
|
+
if (yt[k])
|
|
4909
4909
|
return { isToken: !0, value: y };
|
|
4910
4910
|
if (k.match(m1))
|
|
4911
4911
|
throw new RangeError(
|
|
@@ -4923,7 +4923,7 @@ function f1(e, a, n) {
|
|
|
4923
4923
|
if (!y.isToken) return y.value;
|
|
4924
4924
|
const k = y.value;
|
|
4925
4925
|
(!(n != null && n.useAdditionalWeekYearTokens) && s1(k) || !(n != null && n.useAdditionalDayOfYearTokens) && i1(k)) && o1(k, a, String(e));
|
|
4926
|
-
const z =
|
|
4926
|
+
const z = yt[k[0]];
|
|
4927
4927
|
return z(c, k, i.localize, h);
|
|
4928
4928
|
}).join("");
|
|
4929
4929
|
}
|
|
@@ -4931,7 +4931,7 @@ function g1(e) {
|
|
|
4931
4931
|
const a = e.match(u1);
|
|
4932
4932
|
return a ? a[1].replace(h1, "'") : e;
|
|
4933
4933
|
}
|
|
4934
|
-
function
|
|
4934
|
+
function Mt(e, a, n) {
|
|
4935
4935
|
const r = Te(e, n), i = Te(a, n);
|
|
4936
4936
|
return +r == +i;
|
|
4937
4937
|
}
|
|
@@ -4966,21 +4966,21 @@ function p1(e, a) {
|
|
|
4966
4966
|
}
|
|
4967
4967
|
return new Date(s + d + c);
|
|
4968
4968
|
}
|
|
4969
|
-
const
|
|
4969
|
+
const Xe = {
|
|
4970
4970
|
dateTimeDelimiter: /[T ]/,
|
|
4971
4971
|
timeZoneDelimiter: /[Z ]/i,
|
|
4972
4972
|
timezone: /([Z+-].*)$/
|
|
4973
4973
|
}, _1 = /^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/, w1 = /^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/, v1 = /^([+-])(\d{2})(?::?(\d{2}))?$/;
|
|
4974
4974
|
function b1(e) {
|
|
4975
|
-
const a = {}, n = e.split(
|
|
4975
|
+
const a = {}, n = e.split(Xe.dateTimeDelimiter);
|
|
4976
4976
|
let r;
|
|
4977
4977
|
if (n.length > 2)
|
|
4978
4978
|
return a;
|
|
4979
|
-
if (/:/.test(n[0]) ? r = n[0] : (a.date = n[0], r = n[1],
|
|
4979
|
+
if (/:/.test(n[0]) ? r = n[0] : (a.date = n[0], r = n[1], Xe.timeZoneDelimiter.test(a.date) && (a.date = e.split(Xe.timeZoneDelimiter)[0], r = e.substr(
|
|
4980
4980
|
a.date.length,
|
|
4981
4981
|
e.length
|
|
4982
4982
|
))), r) {
|
|
4983
|
-
const i =
|
|
4983
|
+
const i = Xe.timezone.exec(r);
|
|
4984
4984
|
i ? (a.time = r.replace(i[1], ""), a.timezone = i[1]) : a.time = r;
|
|
4985
4985
|
}
|
|
4986
4986
|
return a;
|
|
@@ -5014,10 +5014,10 @@ function Oe(e) {
|
|
|
5014
5014
|
function N1(e) {
|
|
5015
5015
|
const a = e.match(w1);
|
|
5016
5016
|
if (!a) return NaN;
|
|
5017
|
-
const n =
|
|
5017
|
+
const n = it(a[1]), r = it(a[2]), i = it(a[3]);
|
|
5018
5018
|
return S1(n, r, i) ? n * Vt + r * Rt + i * 1e3 : NaN;
|
|
5019
5019
|
}
|
|
5020
|
-
function
|
|
5020
|
+
function it(e) {
|
|
5021
5021
|
return e && parseFloat(e.replace(",", ".")) || 0;
|
|
5022
5022
|
}
|
|
5023
5023
|
function k1(e) {
|
|
@@ -5052,7 +5052,7 @@ function S1(e, a, n) {
|
|
|
5052
5052
|
function H1(e, a) {
|
|
5053
5053
|
return a >= 0 && a <= 59;
|
|
5054
5054
|
}
|
|
5055
|
-
const
|
|
5055
|
+
const Lt = {
|
|
5056
5056
|
lessThanXSeconds: {
|
|
5057
5057
|
standalone: {
|
|
5058
5058
|
one: "weniger als 1 Sekunde",
|
|
@@ -5209,7 +5209,7 @@ const $t = {
|
|
|
5209
5209
|
}
|
|
5210
5210
|
}, P1 = (e, a, n) => {
|
|
5211
5211
|
let r;
|
|
5212
|
-
const i = n != null && n.addSuffix ?
|
|
5212
|
+
const i = n != null && n.addSuffix ? Lt[e].withPreposition : Lt[e].standalone;
|
|
5213
5213
|
return typeof i == "string" ? r = i : a === 1 ? r = i.one : r = i.other.replace("{{count}}", String(a)), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : "vor " + r : r;
|
|
5214
5214
|
}, B1 = {
|
|
5215
5215
|
full: "EEEE, do MMMM y",
|
|
@@ -5231,15 +5231,15 @@ const $t = {
|
|
|
5231
5231
|
medium: "{{date}} {{time}}",
|
|
5232
5232
|
short: "{{date}} {{time}}"
|
|
5233
5233
|
}, W1 = {
|
|
5234
|
-
date:
|
|
5234
|
+
date: _e({
|
|
5235
5235
|
formats: B1,
|
|
5236
5236
|
defaultWidth: "full"
|
|
5237
5237
|
}),
|
|
5238
|
-
time:
|
|
5238
|
+
time: _e({
|
|
5239
5239
|
formats: A1,
|
|
5240
5240
|
defaultWidth: "full"
|
|
5241
5241
|
}),
|
|
5242
|
-
dateTime:
|
|
5242
|
+
dateTime: _e({
|
|
5243
5243
|
formats: I1,
|
|
5244
5244
|
defaultWidth: "full"
|
|
5245
5245
|
})
|
|
@@ -5258,7 +5258,7 @@ const $t = {
|
|
|
5258
5258
|
narrow: ["1", "2", "3", "4"],
|
|
5259
5259
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
5260
5260
|
wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"]
|
|
5261
|
-
},
|
|
5261
|
+
}, st = {
|
|
5262
5262
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
5263
5263
|
abbreviated: [
|
|
5264
5264
|
"Jan",
|
|
@@ -5289,7 +5289,7 @@ const $t = {
|
|
|
5289
5289
|
"Dezember"
|
|
5290
5290
|
]
|
|
5291
5291
|
}, E1 = {
|
|
5292
|
-
narrow:
|
|
5292
|
+
narrow: st.narrow,
|
|
5293
5293
|
abbreviated: [
|
|
5294
5294
|
"Jan.",
|
|
5295
5295
|
"Feb.",
|
|
@@ -5304,7 +5304,7 @@ const $t = {
|
|
|
5304
5304
|
"Nov.",
|
|
5305
5305
|
"Dez."
|
|
5306
5306
|
],
|
|
5307
|
-
wide:
|
|
5307
|
+
wide: st.wide
|
|
5308
5308
|
}, j1 = {
|
|
5309
5309
|
narrow: ["S", "M", "D", "M", "D", "F", "S"],
|
|
5310
5310
|
short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
|
|
@@ -5392,7 +5392,7 @@ const $t = {
|
|
|
5392
5392
|
argumentCallback: (e) => e - 1
|
|
5393
5393
|
}),
|
|
5394
5394
|
month: K({
|
|
5395
|
-
values:
|
|
5395
|
+
values: st,
|
|
5396
5396
|
formattingValues: E1,
|
|
5397
5397
|
defaultWidth: "wide"
|
|
5398
5398
|
}),
|
|
@@ -5476,7 +5476,7 @@ const $t = {
|
|
|
5476
5476
|
// will never be matched. Night is matched by `pm`
|
|
5477
5477
|
}
|
|
5478
5478
|
}, id = {
|
|
5479
|
-
ordinalNumber:
|
|
5479
|
+
ordinalNumber: et({
|
|
5480
5480
|
matchPattern: q1,
|
|
5481
5481
|
parsePattern: G1,
|
|
5482
5482
|
valueCallback: (e) => parseInt(e)
|
|
@@ -5605,15 +5605,15 @@ const $t = {
|
|
|
5605
5605
|
medium: "{{date}}, {{time}}",
|
|
5606
5606
|
short: "{{date}}, {{time}}"
|
|
5607
5607
|
}, ud = {
|
|
5608
|
-
date:
|
|
5608
|
+
date: _e({
|
|
5609
5609
|
formats: ld,
|
|
5610
5610
|
defaultWidth: "full"
|
|
5611
5611
|
}),
|
|
5612
|
-
time:
|
|
5612
|
+
time: _e({
|
|
5613
5613
|
formats: cd,
|
|
5614
5614
|
defaultWidth: "full"
|
|
5615
5615
|
}),
|
|
5616
|
-
dateTime:
|
|
5616
|
+
dateTime: _e({
|
|
5617
5617
|
formats: dd,
|
|
5618
5618
|
defaultWidth: "full"
|
|
5619
5619
|
})
|
|
@@ -5808,7 +5808,7 @@ const $t = {
|
|
|
5808
5808
|
night: /nuit/i
|
|
5809
5809
|
}
|
|
5810
5810
|
}, Ad = {
|
|
5811
|
-
ordinalNumber:
|
|
5811
|
+
ordinalNumber: et({
|
|
5812
5812
|
matchPattern: yd,
|
|
5813
5813
|
parsePattern: Nd,
|
|
5814
5814
|
valueCallback: (e) => parseInt(e)
|
|
@@ -5937,19 +5937,19 @@ const $t = {
|
|
|
5937
5937
|
medium: "{{date}} {{time}}",
|
|
5938
5938
|
short: "{{date}} {{time}}"
|
|
5939
5939
|
}, Ed = {
|
|
5940
|
-
date:
|
|
5940
|
+
date: _e({
|
|
5941
5941
|
formats: zd,
|
|
5942
5942
|
defaultWidth: "full"
|
|
5943
5943
|
}),
|
|
5944
|
-
time:
|
|
5944
|
+
time: _e({
|
|
5945
5945
|
formats: Rd,
|
|
5946
5946
|
defaultWidth: "full"
|
|
5947
5947
|
}),
|
|
5948
|
-
dateTime:
|
|
5948
|
+
dateTime: _e({
|
|
5949
5949
|
formats: Vd,
|
|
5950
5950
|
defaultWidth: "full"
|
|
5951
5951
|
})
|
|
5952
|
-
},
|
|
5952
|
+
}, ct = [
|
|
5953
5953
|
"domenica",
|
|
5954
5954
|
"lunedì",
|
|
5955
5955
|
"martedì",
|
|
@@ -5963,31 +5963,31 @@ function jd(e) {
|
|
|
5963
5963
|
case 0:
|
|
5964
5964
|
return "'domenica scorsa alle' p";
|
|
5965
5965
|
default:
|
|
5966
|
-
return "'" +
|
|
5966
|
+
return "'" + ct[e] + " scorso alle' p";
|
|
5967
5967
|
}
|
|
5968
5968
|
}
|
|
5969
|
-
function
|
|
5970
|
-
return "'" +
|
|
5969
|
+
function $t(e) {
|
|
5970
|
+
return "'" + ct[e] + " alle' p";
|
|
5971
5971
|
}
|
|
5972
5972
|
function Fd(e) {
|
|
5973
5973
|
switch (e) {
|
|
5974
5974
|
case 0:
|
|
5975
5975
|
return "'domenica prossima alle' p";
|
|
5976
5976
|
default:
|
|
5977
|
-
return "'" +
|
|
5977
|
+
return "'" + ct[e] + " prossimo alle' p";
|
|
5978
5978
|
}
|
|
5979
5979
|
}
|
|
5980
5980
|
const Od = {
|
|
5981
5981
|
lastWeek: (e, a, n) => {
|
|
5982
5982
|
const r = e.getDay();
|
|
5983
|
-
return
|
|
5983
|
+
return Mt(e, a, n) ? $t(r) : jd(r);
|
|
5984
5984
|
},
|
|
5985
5985
|
yesterday: "'ieri alle' p",
|
|
5986
5986
|
today: "'oggi alle' p",
|
|
5987
5987
|
tomorrow: "'domani alle' p",
|
|
5988
5988
|
nextWeek: (e, a, n) => {
|
|
5989
5989
|
const r = e.getDay();
|
|
5990
|
-
return
|
|
5990
|
+
return Mt(e, a, n) ? $t(r) : Fd(r);
|
|
5991
5991
|
},
|
|
5992
5992
|
other: "P"
|
|
5993
5993
|
}, Zd = (e, a, n, r) => {
|
|
@@ -6202,7 +6202,7 @@ const Od = {
|
|
|
6202
6202
|
night: /notte/i
|
|
6203
6203
|
}
|
|
6204
6204
|
}, h2 = {
|
|
6205
|
-
ordinalNumber:
|
|
6205
|
+
ordinalNumber: et({
|
|
6206
6206
|
matchPattern: e2,
|
|
6207
6207
|
parsePattern: t2,
|
|
6208
6208
|
valueCallback: (e) => parseInt(e, 10)
|
|
@@ -6249,25 +6249,25 @@ const Od = {
|
|
|
6249
6249
|
weekStartsOn: 1,
|
|
6250
6250
|
firstWeekContainsDate: 4
|
|
6251
6251
|
}
|
|
6252
|
-
}, f2 = { de: Yt, en: jt, fr: Id, it: m2 },
|
|
6252
|
+
}, f2 = { de: Yt, en: jt, fr: Id, it: m2 }, Dt = (e, a = "dd. MMM yyyy", n = "de") => {
|
|
6253
6253
|
const r = typeof e == "string" ? p1(e) : e;
|
|
6254
6254
|
return f1(r, a, { locale: f2[n] || Yt });
|
|
6255
6255
|
}, I2 = (e, a, n = "de") => {
|
|
6256
|
-
const r =
|
|
6256
|
+
const r = Dt(e, "dd.", n), i = Dt(a, "dd. MMM yyyy", n);
|
|
6257
6257
|
return `${r} - ${i}`;
|
|
6258
6258
|
}, W2 = (e, a) => e <= 0 ? 0 : Math.round((e - a) / e * 100);
|
|
6259
6259
|
export {
|
|
6260
|
-
|
|
6260
|
+
At as Badge,
|
|
6261
6261
|
oi as Benefits,
|
|
6262
6262
|
ai as Block,
|
|
6263
6263
|
ze as Button,
|
|
6264
6264
|
Hl as CATEGORY_OPTIONS,
|
|
6265
6265
|
Ur as Card,
|
|
6266
6266
|
Zr as Checkbox,
|
|
6267
|
-
|
|
6267
|
+
lt as CheckboxFilter,
|
|
6268
6268
|
cc as ChevronLeftIcon,
|
|
6269
6269
|
dc as ChevronRightIcon,
|
|
6270
|
-
|
|
6270
|
+
Wt as Chip,
|
|
6271
6271
|
k2 as CollapsibleFilterSection,
|
|
6272
6272
|
us as DateSelector,
|
|
6273
6273
|
Fr as Divider,
|
|
@@ -6275,7 +6275,7 @@ export {
|
|
|
6275
6275
|
ss as DualCalendar,
|
|
6276
6276
|
$2 as ExperienceFilter,
|
|
6277
6277
|
si as FAQ,
|
|
6278
|
-
|
|
6278
|
+
Ye as FilterCheckboxItem,
|
|
6279
6279
|
ms as GuestContent,
|
|
6280
6280
|
bs as GuestSelector,
|
|
6281
6281
|
oc as HeartIcon,
|
|
@@ -6294,7 +6294,7 @@ export {
|
|
|
6294
6294
|
x2 as PriceRangeFilter,
|
|
6295
6295
|
Wl as REVIEW_OPTIONS,
|
|
6296
6296
|
Yr as RadioButton,
|
|
6297
|
-
|
|
6297
|
+
It as Rating,
|
|
6298
6298
|
D2 as RegionsFilter,
|
|
6299
6299
|
ri as ReviewCard,
|
|
6300
6300
|
L2 as ReviewsFilter,
|
|
@@ -6306,14 +6306,14 @@ export {
|
|
|
6306
6306
|
P2 as WellnessFilter,
|
|
6307
6307
|
ls as WhenContent,
|
|
6308
6308
|
W2 as calculateDiscount,
|
|
6309
|
-
|
|
6309
|
+
Dt as formatDate,
|
|
6310
6310
|
I2 as formatDateRange,
|
|
6311
6311
|
A2 as formatPrice,
|
|
6312
|
-
|
|
6312
|
+
ut as translations,
|
|
6313
6313
|
b2 as useDebounce,
|
|
6314
|
-
|
|
6315
|
-
|
|
6316
|
-
|
|
6317
|
-
|
|
6314
|
+
Qe as useResponsive,
|
|
6315
|
+
Tt as useTranslation,
|
|
6316
|
+
ce as useUIContext,
|
|
6317
|
+
ot as useWindowData
|
|
6318
6318
|
};
|
|
6319
6319
|
//# sourceMappingURL=index.js.map
|