Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-aria/calendar

Package Overview
Dependencies
Maintainers
2
Versions
607
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/calendar - npm Package Compare versions

Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.2

1258

dist/main.js

@@ -1,777 +0,671 @@

var {
usePress
} = require("@react-aria/interactions");
var $iAkYs$reactarialiveannouncer = require("@react-aria/live-announcer");
var $iAkYs$reactariautils = require("@react-aria/utils");
var $iAkYs$reactariai18n = require("@react-aria/i18n");
var $iAkYs$internationalizeddate = require("@internationalized/date");
var $iAkYs$react = require("react");
var $iAkYs$reactariainteractions = require("@react-aria/interactions");
var {
mergeProps,
useDescription,
useId,
useUpdateEffect,
useEvent,
useLabels,
focusWithoutScrolling
} = require("@react-aria/utils");
function $parcel$exportWildcard(dest, source) {
Object.keys(source).forEach(function(key) {
if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
return;
}
var {
useMemo,
useRef,
useEffect
} = require("react");
Object.defineProperty(dest, key, {
enumerable: true,
get: function get() {
return source[key];
}
});
});
var {
useDateFormatter,
useMessageFormatter,
useLocale
} = require("@react-aria/i18n");
return dest;
}
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
var $e3681a09276f447e$exports = {};
var {
endOfMonth,
isSameDay,
startOfMonth,
toDate,
isEqualDay,
isSameMonth,
isToday
} = require("@internationalized/date");
$parcel$export($e3681a09276f447e$exports, "useCalendar", () => $e3681a09276f447e$export$3ee915f8151bd4f1);
var {
announce
} = require("@react-aria/live-announcer");
var _babelRuntimeHelpersInteropRequireDefault = $parcel$interopDefault(require("@babel/runtime/helpers/interopRequireDefault"));
var $d8244729bef971a6$exports = {};
var $5a796e2da7accb4a$exports = {};
$5a796e2da7accb4a$exports = JSON.parse("{\"dateSelected\":\"تم تحديد {date, date, full}\",\"finishRangeSelectionPrompt\":\"انقر لإنهاء عملية تحديد نطاق التاريخ\",\"next\":\"التالي\",\"previous\":\"السابق\",\"selectedDateDescription\":\"التاريخ المحدد: {date, date, full}\",\"selectedRangeDescription\":\"النطاق المحدد: {start, date, long} إلى {end, date, long}\",\"startRangeSelectionPrompt\":\"انقر لبدء عملية تحديد نطاق التاريخ\",\"todayDate\":\"اليوم، {date, date, full}\",\"todayDateSelected\":\"اليوم، تم تحديد {date, date, full}\"}");
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ar-AE.json
var $f45e45cadce9cd3c568d7b277ef435$exports = {};
$f45e45cadce9cd3c568d7b277ef435$exports = JSON.parse("{\"dateSelected\":\"تم تحديد {date, date, full}\",\"finishRangeSelectionPrompt\":\"انقر لإنهاء عملية تحديد نطاق التاريخ\",\"next\":\"التالي\",\"previous\":\"السابق\",\"selectedDateDescription\":\"التاريخ المحدد: {date, date, full}\",\"selectedRangeDescription\":\"النطاق المحدد: {start, date, long} إلى {end, date, long}\",\"startRangeSelectionPrompt\":\"انقر لبدء عملية تحديد نطاق التاريخ\",\"todayDate\":\"اليوم، {date, date, full}\",\"todayDateSelected\":\"اليوم، تم تحديد {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/bg-BG.json
var $bdf0f6034d0a3806494c0ac556dcb9a$exports = {};
$bdf0f6034d0a3806494c0ac556dcb9a$exports = JSON.parse("{\"dateSelected\":\"избрани {date, date, full}\",\"finishRangeSelectionPrompt\":\"Натиснете, за да довършите избора на времеви интервал\",\"next\":\"Напред\",\"previous\":\"Назад\",\"selectedDateDescription\":\"Избрана дата: {date, date, full}\",\"selectedRangeDescription\":\"Избран интервал: от {start, date, long} до {end, date, long}\",\"startRangeSelectionPrompt\":\"Натиснете, за да пристъпите към избора на времеви интервал\",\"todayDate\":\"Днес {date, date, full}\",\"todayDateSelected\":\"Днес са избрани {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/cs-CZ.json
var $d774c4230cc8c18e69a1d71874b7$exports = {};
$d774c4230cc8c18e69a1d71874b7$exports = JSON.parse("{\"dateSelected\":\"Vybráno: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknutím dokončíte výběr rozsahu dat\",\"next\":\"Další\",\"previous\":\"Předchozí\",\"selectedDateDescription\":\"Zvolené datum: {date, date, full}\",\"selectedRangeDescription\":\"Zvolený rozsah: {start, date, long} až {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknutím zahájíte výběr rozsahu dat\",\"todayDate\":\"Dnes, {date, date, full}\",\"todayDateSelected\":\"Vybrán dnešek: {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/da-DK.json
var $b0cfbbb8dedaa3a82089fcb3c206fa70$exports = {};
$b0cfbbb8dedaa3a82089fcb3c206fa70$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valgt\",\"finishRangeSelectionPrompt\":\"Klik for at fuldføre valg af datoområde\",\"next\":\"Næste\",\"previous\":\"Forrige\",\"selectedDateDescription\":\"Valgt dato: {date, date, full}\",\"selectedRangeDescription\":\"Valgt område: {start, date, long} til {end, date, long}\",\"startRangeSelectionPrompt\":\"Klik for at starte valg af datoområde\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} valgt\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/de-DE.json
var $bbc5179cfb9178714006c60e49eb71$exports = {};
$bbc5179cfb9178714006c60e49eb71$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} ausgewählt\",\"finishRangeSelectionPrompt\":\"Klicken, um die Auswahl des Datumsbereichs zu beenden\",\"next\":\"Weiter\",\"previous\":\"Zurück\",\"selectedDateDescription\":\"Ausgewähltes Datum: {date, date, full}\",\"selectedRangeDescription\":\"Bereich auswählen: {start, date, long} bis {end, date, long}\",\"startRangeSelectionPrompt\":\"Klicken, um die Auswahl des Datumsbereichs zu beginnen\",\"todayDate\":\"Heute, {date, date, full}\",\"todayDateSelected\":\"Heute, {date, date, full} ausgewählt\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/el-GR.json
var $eeca26f0f20f8653fbf55c606$exports = {};
$eeca26f0f20f8653fbf55c606$exports = JSON.parse("{\"dateSelected\":\"Επιλέχτηκε {date, date, full}\",\"finishRangeSelectionPrompt\":\"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών\",\"next\":\"Επόμενο\",\"previous\":\"Προηγούμενο\",\"selectedDateDescription\":\"Επιλεγμένη ημερομηνία: {date, date, full}\",\"selectedRangeDescription\":\"Επιλεγμένο εύρος: {start, date, long} έως {end, date, long}\",\"startRangeSelectionPrompt\":\"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών\",\"todayDate\":\"Σήμερα, {date, date, full}\",\"todayDateSelected\":\"Σήμερα, επιλέχτηκε {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/en-US.json
var $af1446bd47b40213f2bd5f9caf2d1d30$exports = {};
$af1446bd47b40213f2bd5f9caf2d1d30$exports = JSON.parse("{\"previous\":\"Previous\",\"next\":\"Next\",\"selectedDateDescription\":\"Selected Date: {date, date, full}\",\"selectedRangeDescription\":\"Selected Range: {start, date, long} to {end, date, long}\",\"todayDate\":\"Today, {date, date, full}\",\"todayDateSelected\":\"Today, {date, date, full} selected\",\"dateSelected\":\"{date, date, full} selected\",\"startRangeSelectionPrompt\":\"Click to start selecting date range\",\"finishRangeSelectionPrompt\":\"Click to finish selecting date range\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/es-ES.json
var $c531b70f59996561c81c31f081cf94d5$exports = {};
$c531b70f59996561c81c31f081cf94d5$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} seleccionado\",\"finishRangeSelectionPrompt\":\"Haga clic para terminar de seleccionar rango de fechas\",\"next\":\"Siguiente\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Fecha seleccionada: {date, date, full}\",\"selectedRangeDescription\":\"Seleccionar rango: {start, date, long} a {end, date, long}\",\"startRangeSelectionPrompt\":\"Haga clic para comenzar a seleccionar un rango de fechas\",\"todayDate\":\"Hoy, {date, date, full}\",\"todayDateSelected\":\"Hoy, {date, date, full} seleccionado\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/et-EE.json
var $eb8316b956bfa6e56335a3cd74583f$exports = {};
$eb8316b956bfa6e56335a3cd74583f$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valitud\",\"finishRangeSelectionPrompt\":\"Klõpsake kuupäevavahemiku valimise lõpetamiseks\",\"next\":\"Järgmine\",\"previous\":\"Eelmine\",\"selectedDateDescription\":\"Valitud kuupäev: {date, date, full}\",\"selectedRangeDescription\":\"Valitud vahemik: {start, date, long} kuni {end, date, long}\",\"startRangeSelectionPrompt\":\"Klõpsake kuupäevavahemiku valimiseks\",\"todayDate\":\"Täna {date, date, full}\",\"todayDateSelected\":\"Täna {date, date, full} valitud\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/fi-FI.json
var $f6a706481b0b2dc4adad5b1880946ff$exports = {};
$f6a706481b0b2dc4adad5b1880946ff$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valittu\",\"finishRangeSelectionPrompt\":\"Lopeta päivämääräalueen valinta napsauttamalla tätä.\",\"next\":\"Seuraava\",\"previous\":\"Edellinen\",\"selectedDateDescription\":\"Valittu päivämäärä: {date, date, full}\",\"selectedRangeDescription\":\"Valittu alue: {start, date, long} - {end, date, long}\",\"startRangeSelectionPrompt\":\"Aloita päivämääräalueen valinta napsauttamalla tätä.\",\"todayDate\":\"Tänään, {date, date, full}\",\"todayDateSelected\":\"Tänään, {date, date, full} valittu\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/fr-FR.json
var $cee76874e4b659414e42bf91b4c50754$exports = {};
$cee76874e4b659414e42bf91b4c50754$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} sélectionné\",\"finishRangeSelectionPrompt\":\"Cliquer pour finir de sélectionner la plage de dates\",\"next\":\"Suivant\",\"previous\":\"Précédent\",\"selectedDateDescription\":\"Date sélectionnée : {date, date, full}\",\"selectedRangeDescription\":\"Plage sélectionnée : {start, date, long} à {end, date, long}\",\"startRangeSelectionPrompt\":\"Cliquer pour commencer à sélectionner la plage de dates\",\"todayDate\":\"Aujourd’hui, {date, date, full}\",\"todayDateSelected\":\"Aujourd’hui, {date, date, full} sélectionné\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/he-IL.json
var $d87045760e06330f93adc4f6198997$exports = {};
$d87045760e06330f93adc4f6198997$exports = JSON.parse("{\"dateSelected\":\"התאריך {date, date, full} שנבחר\",\"finishRangeSelectionPrompt\":\"חץ כדי לסיים את בחירת טווח התאריכים\",\"next\":\"הבא\",\"previous\":\"הקודם\",\"selectedDateDescription\":\"התאריך שנבחר: {date, date, full}\",\"selectedRangeDescription\":\"הטווח שנבחר: מ-{start, date, long} ועד {end, date, long}\",\"startRangeSelectionPrompt\":\"לחץ כדי להתחיל בבחירת טווח התאריכים\",\"todayDate\":\"היום, {date, date, full}\",\"todayDateSelected\":\"היום, התאריך {date, date, full} שנבחר\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/hr-HR.json
var $ee413075d146e3244d11a0e95b12e$exports = {};
$ee413075d146e3244d11a0e95b12e$exports = JSON.parse("{\"dateSelected\":\"Odabran {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite da dovršite raspon odabranih datuma\",\"next\":\"Sljedeći\",\"previous\":\"Prethodni\",\"selectedDateDescription\":\"Odabrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Odabrani raspon: od {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite da započnete raspon odabranih datuma\",\"todayDate\":\"Danas, {date, date, full}\",\"todayDateSelected\":\"Danas, odabran {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/hu-HU.json
var $d18c3f5a6825bdf60d9684149563fb7$exports = {};
$d18c3f5a6825bdf60d9684149563fb7$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} kijelölve\",\"finishRangeSelectionPrompt\":\"Kattintson a dátumtartomány kijelölésének befejezéséhez\",\"next\":\"Következő\",\"previous\":\"Előző\",\"selectedDateDescription\":\"Kijelölt dátum: {date, date, full}\",\"selectedRangeDescription\":\"Kijelölt tartomány: {start, date, long} – {end, date, long}\",\"startRangeSelectionPrompt\":\"Kattintson a dátumtartomány kijelölésének indításához\",\"todayDate\":\"Ma, {date, date, full}\",\"todayDateSelected\":\"Ma, {date, date, full} kijelölve\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/it-IT.json
var $df66cf2256db421f2dcef54c13cf2c7$exports = {};
$df66cf2256db421f2dcef54c13cf2c7$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selezionato\",\"finishRangeSelectionPrompt\":\"Fai clic per completare la selezione dell’intervallo di date\",\"next\":\"Successivo\",\"previous\":\"Precedente\",\"selectedDateDescription\":\"Data selezionata: {date, date, full}\",\"selectedRangeDescription\":\"Intervallo selezionato: da {start, date, long} a {end, date, long}\",\"startRangeSelectionPrompt\":\"Fai clic per selezionare l’intervallo di date\",\"todayDate\":\"Oggi, {date, date, full}\",\"todayDateSelected\":\"Oggi, {date, date, full} selezionato\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ja-JP.json
var $dac0ddeae7d6c34de0fcefae547189$exports = {};
$dac0ddeae7d6c34de0fcefae547189$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} を選択\",\"finishRangeSelectionPrompt\":\"クリックして日付範囲の選択を終了\",\"next\":\"次へ\",\"previous\":\"前へ\",\"selectedDateDescription\":\"日付を選択:{date, date, full}\",\"selectedRangeDescription\":\"範囲を選択:{start, date, long} から {end, date, long}\",\"startRangeSelectionPrompt\":\"クリックして日付範囲の選択を開始\",\"todayDate\":\"本日、{date, date, full}\",\"todayDateSelected\":\"本日、{date, date, full} を選択\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ko-KR.json
var $c3b959b59ccbe182a939de6136$exports = {};
$c3b959b59ccbe182a939de6136$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} 선택함\",\"finishRangeSelectionPrompt\":\"날짜 범위 선택을 완료하려면 클릭하십시오.\",\"next\":\"다음\",\"previous\":\"이전\",\"selectedDateDescription\":\"선택한 날짜: {date, date, full}\",\"selectedRangeDescription\":\"선택한 범위: {start, date, long} ~ {end, date, long}\",\"startRangeSelectionPrompt\":\"날짜 범위 선택을 시작하려면 클릭하십시오.\",\"todayDate\":\"오늘, {date, date, full}\",\"todayDateSelected\":\"오늘, {date, date, full} 선택함\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/lt-LT.json
var $ccf6a1ee038460b3d682fe6caf0ac620$exports = {};
$ccf6a1ee038460b3d682fe6caf0ac620$exports = JSON.parse("{\"dateSelected\":\"Pasirinkta {date, date, full}\",\"finishRangeSelectionPrompt\":\"Spustelėkite, kad baigtumėte pasirinkti datų intervalą\",\"next\":\"Paskesnis\",\"previous\":\"Ankstesnis\",\"selectedDateDescription\":\"Pasirinkta data: {date, date, full}\",\"selectedRangeDescription\":\"Pasirinktas intervalas: nuo {start, date, long} iki {end, date, long}\",\"startRangeSelectionPrompt\":\"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą\",\"todayDate\":\"Šiandien, {date, date, full}\",\"todayDateSelected\":\"Šiandien, pasirinkta {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/lv-LV.json
var $ae8ccc894943bddf2166bbfae6$exports = {};
$ae8ccc894943bddf2166bbfae6$exports = JSON.parse("{\"dateSelected\":\"Atlasīts {date, date, full}\",\"finishRangeSelectionPrompt\":\"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi\",\"next\":\"Tālāk\",\"previous\":\"Atpakaļ\",\"selectedDateDescription\":\"Atlasītais datums: {date, date, full}\",\"selectedRangeDescription\":\"Atlasītais diapazons: {start, date, long} līdz {end, date, long}\",\"startRangeSelectionPrompt\":\"Noklikšķiniet, lai sāktu datumu diapazona atlasi\",\"todayDate\":\"Šodiena, {date, date, full}\",\"todayDateSelected\":\"Atlasīta šodiena, {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/nb-NO.json
var $fea14a0f53ecd185b1dab361692d7f65$exports = {};
$fea14a0f53ecd185b1dab361692d7f65$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valgt\",\"finishRangeSelectionPrompt\":\"Klikk for å fullføre valg av datoområde\",\"next\":\"Neste\",\"previous\":\"Forrige\",\"selectedDateDescription\":\"Valgt dato: {date, date, full}\",\"selectedRangeDescription\":\"Valgt område: {start, date, long} til {end, date, long}\",\"startRangeSelectionPrompt\":\"Klikk for å starte valg av datoområde\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} valgt\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/nl-NL.json
var $a50d2621c6244e65d9ef9b02a64add01$exports = {};
$a50d2621c6244e65d9ef9b02a64add01$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} geselecteerd\",\"finishRangeSelectionPrompt\":\"Klik om de selectie van het datumbereik te voltooien\",\"next\":\"Volgende\",\"previous\":\"Vorige\",\"selectedDateDescription\":\"Geselecteerde datum: {date, date, full}\",\"selectedRangeDescription\":\"Geselecteerd bereik: {start, date, long} t/m {end, date, long}\",\"startRangeSelectionPrompt\":\"Klik om het datumbereik te selecteren\",\"todayDate\":\"Vandaag, {date, date, full}\",\"todayDateSelected\":\"Vandaag, {date, date, full} geselecteerd\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/pl-PL.json
var $f2d23b4b01b266614bc7babb272a1607$exports = {};
$f2d23b4b01b266614bc7babb272a1607$exports = JSON.parse("{\"dateSelected\":\"Wybrano {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknij, aby zakończyć wybór zakresu dat\",\"next\":\"Dalej\",\"previous\":\"Wstecz\",\"selectedDateDescription\":\"Wybrana data: {date, date, full}\",\"selectedRangeDescription\":\"Wybrany zakres: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknij, aby rozpocząć wybór zakresu dat\",\"todayDate\":\"Dzisiaj {date, date, full}\",\"todayDateSelected\":\"Dzisiaj wybrano {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/pt-BR.json
var $e963f1978b8e534aca4cd36b160de$exports = {};
$e963f1978b8e534aca4cd36b160de$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selecionado\",\"finishRangeSelectionPrompt\":\"Clique para concluir a seleção do intervalo de datas\",\"next\":\"Próximo\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Data selecionada: {date, date, full}\",\"selectedRangeDescription\":\"Intervalo selecionado: {start, date, long} até {end, date, long}\",\"startRangeSelectionPrompt\":\"Clique para iniciar a seleção do intervalo de datas\",\"todayDate\":\"Hoje, {date, date, full}\",\"todayDateSelected\":\"Hoje, {date, date, full} selecionado\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/pt-PT.json
var $cb966e61762a2f3a2b17168908d3abf$exports = {};
$cb966e61762a2f3a2b17168908d3abf$exports = JSON.parse("{\"dateSelected\":\"{data, data, completo} selecionado\",\"finishRangeSelectionPrompt\":\"Clique para terminar de selecionar o intervalo de datas\",\"next\":\"Próximo\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Data Selecionada: {data, data, completo}\",\"selectedRangeDescription\":\"Selecionar Intervalo: {início, data, longo} a {término, data, longo}\",\"startRangeSelectionPrompt\":\"Clique para começar a selecionar o intervalo de datas\",\"todayDate\":\"Hoje, {date, date, full}\",\"todayDateSelected\":\"Hoje, {date, date, full} selecionado\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ro-RO.json
var $e5a27c807bf530b7053529614092ec81$exports = {};
$e5a27c807bf530b7053529614092ec81$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selectată\",\"finishRangeSelectionPrompt\":\"Apăsaţi pentru a finaliza selecţia razei pentru dată\",\"next\":\"Următorul\",\"previous\":\"Înainte\",\"selectedDateDescription\":\"Dată selectată: {date, date, full}\",\"selectedRangeDescription\":\"Selectaţi raza: {start, date, long} la {end, date, long}\",\"startRangeSelectionPrompt\":\"Apăsaţi pentru a începe selecţia razei pentru dată\",\"todayDate\":\"Astăzi, {date, date, full}\",\"todayDateSelected\":\"Dată, {date, date, full} selectată\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ru-RU.json
var $b509722b3a1e293032af8cd3812ceae$exports = {};
$b509722b3a1e293032af8cd3812ceae$exports = JSON.parse("{\"dateSelected\":\"выбрано {date, date, full}\",\"finishRangeSelectionPrompt\":\"Щелкните, чтобы завершить выбор диапазона дат\",\"next\":\"Далее\",\"previous\":\"Назад\",\"selectedDateDescription\":\"Выбранная дата: {date, date, full}\",\"selectedRangeDescription\":\"Выбранный диапазон: {start, date, long} – {end, date, long}\",\"startRangeSelectionPrompt\":\"Щелкните, чтобы начать выбор диапазона дат\",\"todayDate\":\"Сегодня, {date, date, full}\",\"todayDateSelected\":\"Сегодня, выбрано {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/sk-SK.json
var $a89a1b295b13c7010d774e1851f45b08$exports = {};
$a89a1b295b13c7010d774e1851f45b08$exports = JSON.parse("{\"dateSelected\":\"Vybratý dátum {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknutím dokončíte výber rozsahu dátumov\",\"next\":\"Nasledujúce\",\"previous\":\"Predchádzajúce\",\"selectedDateDescription\":\"Vybratý dátum: {date, date, full}\",\"selectedRangeDescription\":\"Vybratý rozsah dátumov: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknutím spustíte výber rozsahu dátumov\",\"todayDate\":\"Dnešný dátum, {date, date, full}\",\"todayDateSelected\":\"Vybratý dnešný dátum, {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/sl-SI.json
var $d6ed0f6e5486502035883b517e0dd65$exports = {};
$d6ed0f6e5486502035883b517e0dd65$exports = JSON.parse("{\"dateSelected\":\"izbrano: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite za dokončanje izbire datumskega obsega\",\"next\":\"Naprej\",\"previous\":\"Nazaj\",\"selectedDateDescription\":\"Izbrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Izbrani razpon: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite za začetek izbire datumskega obsega\",\"todayDate\":\"Danes, {date, date, full}\",\"todayDateSelected\":\"Danes, izbrano: {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/sr-SP.json
var $a6096cd99c270ae0f1a5f4f0a98$exports = {};
$a6096cd99c270ae0f1a5f4f0a98$exports = JSON.parse("{\"dateSelected\":\"Izabran {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite da dovršite opseg izabranih datuma\",\"next\":\"Sledeći\",\"previous\":\"Prethodni\",\"selectedDateDescription\":\"Izabrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Izabrani opseg: od {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite da započnete opseg izabranih datuma\",\"todayDate\":\"Danas, {date, date, full}\",\"todayDateSelected\":\"Danas, izabran {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/sv-SE.json
var $f8cb71cf0912b7bed3b52c521a8421ba$exports = {};
$f8cb71cf0912b7bed3b52c521a8421ba$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} har valts\",\"finishRangeSelectionPrompt\":\"Klicka för att avsluta val av datumintervall\",\"next\":\"Nästa\",\"previous\":\"Föregående\",\"selectedDateDescription\":\"Valt datum: {date, date, full}\",\"selectedRangeDescription\":\"Valt intervall: {start, date, long} till {end, date, long}\",\"startRangeSelectionPrompt\":\"Klicka för att välja datumintervall\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} har valts\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/tr-TR.json
var $bdc4691151758bbe4e2432c460e0126$exports = {};
$bdc4691151758bbe4e2432c460e0126$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} seçildi\",\"finishRangeSelectionPrompt\":\"Tarih aralığı seçimini tamamlamak için tıklayın\",\"next\":\"Sonraki\",\"previous\":\"Önceki\",\"selectedDateDescription\":\"Seçili Tarih: {date, date, full}\",\"selectedRangeDescription\":\"Seçili Aralık: {start, date, long} - {end, date, long}\",\"startRangeSelectionPrompt\":\"Tarih aralığı seçimini başlatmak için tıklayın\",\"todayDate\":\"Bugün, {date, date, full}\",\"todayDateSelected\":\"Bugün, {date, date, full} seçildi\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/uk-UA.json
var $e7847564079fb003b130b357b54530f$exports = {};
$e7847564079fb003b130b357b54530f$exports = JSON.parse("{\"dateSelected\":\"Вибрано: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Натисніть, щоб завершити вибір діапазону дат\",\"next\":\"Наступний\",\"previous\":\"Попередній\",\"selectedDateDescription\":\"Вибрана дата: {date, date, full}\",\"selectedRangeDescription\":\"Вибраний діапазон: від {start, date, long} до {end, date, long}\",\"startRangeSelectionPrompt\":\"Натисніть, щоб почати вибір діапазону дат\",\"todayDate\":\"Сьогодні: {date, date, full}\",\"todayDateSelected\":\"Сьогодні вибрано: {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/zh-CN.json
var $e69406c909e273299264a98afd57$exports = {};
$e69406c909e273299264a98afd57$exports = JSON.parse("{\"dateSelected\":\"已选择 {date, date, full}\",\"finishRangeSelectionPrompt\":\"单击以完成选择日期范围\",\"next\":\"下一页\",\"previous\":\"上一页\",\"selectedDateDescription\":\"选定的日期: {date, date, full}\",\"selectedRangeDescription\":\"选定的范围: {start, date, long} 到 {end, date, long}\",\"startRangeSelectionPrompt\":\"单击以开始选择日期范围\",\"todayDate\":\"今天({date, date, full})\",\"todayDateSelected\":\"已选择今天({date, date, full})\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/zh-TW.json
var $d78eedb3a175c715df9a9d3f11816f3$exports = {};
$d78eedb3a175c715df9a9d3f11816f3$exports = JSON.parse("{\"dateSelected\":\"已選取 {date, date, full}\",\"finishRangeSelectionPrompt\":\"按一下以完成選取日期範圍\",\"next\":\"下一頁\",\"previous\":\"上一頁\",\"selectedDateDescription\":\"選取日期: {date, date, full}\",\"selectedRangeDescription\":\"選取範圍: {start, date, long} 至 {end, date, long}\",\"startRangeSelectionPrompt\":\"按一下以開始選取日期範圍\",\"todayDate\":\"今日,{date, date, full}\",\"todayDateSelected\":\"今日,已選取 {date, date, full}\"}");
// @ts-ignore
const $a0c93a4d85895b0e0023de74b9af13$var$intlMessages = {
"ar-AE": _babelRuntimeHelpersInteropRequireDefault($f45e45cadce9cd3c568d7b277ef435$exports).default,
"bg-BG": _babelRuntimeHelpersInteropRequireDefault($bdf0f6034d0a3806494c0ac556dcb9a$exports).default,
"cs-CZ": _babelRuntimeHelpersInteropRequireDefault($d774c4230cc8c18e69a1d71874b7$exports).default,
"da-DK": _babelRuntimeHelpersInteropRequireDefault($b0cfbbb8dedaa3a82089fcb3c206fa70$exports).default,
"de-DE": _babelRuntimeHelpersInteropRequireDefault($bbc5179cfb9178714006c60e49eb71$exports).default,
"el-GR": _babelRuntimeHelpersInteropRequireDefault($eeca26f0f20f8653fbf55c606$exports).default,
"en-US": _babelRuntimeHelpersInteropRequireDefault($af1446bd47b40213f2bd5f9caf2d1d30$exports).default,
"es-ES": _babelRuntimeHelpersInteropRequireDefault($c531b70f59996561c81c31f081cf94d5$exports).default,
"et-EE": _babelRuntimeHelpersInteropRequireDefault($eb8316b956bfa6e56335a3cd74583f$exports).default,
"fi-FI": _babelRuntimeHelpersInteropRequireDefault($f6a706481b0b2dc4adad5b1880946ff$exports).default,
"fr-FR": _babelRuntimeHelpersInteropRequireDefault($cee76874e4b659414e42bf91b4c50754$exports).default,
"he-IL": _babelRuntimeHelpersInteropRequireDefault($d87045760e06330f93adc4f6198997$exports).default,
"hr-HR": _babelRuntimeHelpersInteropRequireDefault($ee413075d146e3244d11a0e95b12e$exports).default,
"hu-HU": _babelRuntimeHelpersInteropRequireDefault($d18c3f5a6825bdf60d9684149563fb7$exports).default,
"it-IT": _babelRuntimeHelpersInteropRequireDefault($df66cf2256db421f2dcef54c13cf2c7$exports).default,
"ja-JP": _babelRuntimeHelpersInteropRequireDefault($dac0ddeae7d6c34de0fcefae547189$exports).default,
"ko-KR": _babelRuntimeHelpersInteropRequireDefault($c3b959b59ccbe182a939de6136$exports).default,
"lt-LT": _babelRuntimeHelpersInteropRequireDefault($ccf6a1ee038460b3d682fe6caf0ac620$exports).default,
"lv-LV": _babelRuntimeHelpersInteropRequireDefault($ae8ccc894943bddf2166bbfae6$exports).default,
"nb-NO": _babelRuntimeHelpersInteropRequireDefault($fea14a0f53ecd185b1dab361692d7f65$exports).default,
"nl-NL": _babelRuntimeHelpersInteropRequireDefault($a50d2621c6244e65d9ef9b02a64add01$exports).default,
"pl-PL": _babelRuntimeHelpersInteropRequireDefault($f2d23b4b01b266614bc7babb272a1607$exports).default,
"pt-BR": _babelRuntimeHelpersInteropRequireDefault($e963f1978b8e534aca4cd36b160de$exports).default,
"pt-PT": _babelRuntimeHelpersInteropRequireDefault($cb966e61762a2f3a2b17168908d3abf$exports).default,
"ro-RO": _babelRuntimeHelpersInteropRequireDefault($e5a27c807bf530b7053529614092ec81$exports).default,
"ru-RU": _babelRuntimeHelpersInteropRequireDefault($b509722b3a1e293032af8cd3812ceae$exports).default,
"sk-SK": _babelRuntimeHelpersInteropRequireDefault($a89a1b295b13c7010d774e1851f45b08$exports).default,
"sl-SI": _babelRuntimeHelpersInteropRequireDefault($d6ed0f6e5486502035883b517e0dd65$exports).default,
"sr-SP": _babelRuntimeHelpersInteropRequireDefault($a6096cd99c270ae0f1a5f4f0a98$exports).default,
"sv-SE": _babelRuntimeHelpersInteropRequireDefault($f8cb71cf0912b7bed3b52c521a8421ba$exports).default,
"tr-TR": _babelRuntimeHelpersInteropRequireDefault($bdc4691151758bbe4e2432c460e0126$exports).default,
"uk-UA": _babelRuntimeHelpersInteropRequireDefault($e7847564079fb003b130b357b54530f$exports).default,
"zh-CN": _babelRuntimeHelpersInteropRequireDefault($e69406c909e273299264a98afd57$exports).default,
"zh-TW": _babelRuntimeHelpersInteropRequireDefault($d78eedb3a175c715df9a9d3f11816f3$exports).default
};
const $a0c93a4d85895b0e0023de74b9af13$export$calendarIds = new WeakMap();
var $384191f017eeec79$exports = {};
$384191f017eeec79$exports = JSON.parse("{\"dateSelected\":\"избрани {date, date, full}\",\"finishRangeSelectionPrompt\":\"Натиснете, за да довършите избора на времеви интервал\",\"next\":\"Напред\",\"previous\":\"Назад\",\"selectedDateDescription\":\"Избрана дата: {date, date, full}\",\"selectedRangeDescription\":\"Избран интервал: от {start, date, long} до {end, date, long}\",\"startRangeSelectionPrompt\":\"Натиснете, за да пристъпите към избора на времеви интервал\",\"todayDate\":\"Днес {date, date, full}\",\"todayDateSelected\":\"Днес са избрани {date, date, full}\"}");
function $a0c93a4d85895b0e0023de74b9af13$export$useSelectedDateDescription(state) {
let formatMessage = useMessageFormatter($a0c93a4d85895b0e0023de74b9af13$var$intlMessages);
let start, end;
if ('highlightedRange' in state) {
({
start,
end
} = state.highlightedRange || {});
} else {
start = end = state.value;
}
var $b20193b93fb822d2$exports = {};
$b20193b93fb822d2$exports = JSON.parse("{\"dateSelected\":\"Vybráno: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknutím dokončíte výběr rozsahu dat\",\"next\":\"Další\",\"previous\":\"Předchozí\",\"selectedDateDescription\":\"Zvolené datum: {date, date, full}\",\"selectedRangeDescription\":\"Zvolený rozsah: {start, date, long} až {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknutím zahájíte výběr rozsahu dat\",\"todayDate\":\"Dnes, {date, date, full}\",\"todayDateSelected\":\"Vybrán dnešek: {date, date, full}\"}");
let anchorDate = 'anchorDate' in state ? state.anchorDate : null;
return useMemo(() => {
// No message if currently selecting a range, or there is nothing highlighted.
if (!anchorDate && start && end) {
// Use a single date message if the start and end dates are the same day,
// otherwise include both dates.
if (isSameDay(start, end)) {
return formatMessage('selectedDateDescription', {
date: toDate(start, state.timeZone)
});
} else {
return formatMessage('selectedRangeDescription', {
start: toDate(start, state.timeZone),
end: toDate(end, state.timeZone)
});
}
}
return '';
}, [start, end, anchorDate, state.timeZone, formatMessage]);
}
var $51044774270b0ecb$exports = {};
$51044774270b0ecb$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valgt\",\"finishRangeSelectionPrompt\":\"Klik for at fuldføre valg af datoområde\",\"next\":\"Næste\",\"previous\":\"Forrige\",\"selectedDateDescription\":\"Valgt dato: {date, date, full}\",\"selectedRangeDescription\":\"Valgt område: {start, date, long} til {end, date, long}\",\"startRangeSelectionPrompt\":\"Klik for at starte valg af datoområde\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} valgt\"}");
function $a0c93a4d85895b0e0023de74b9af13$export$useVisibleRangeDescription(startDate, endDate, timeZone) {
let monthFormatter = useDateFormatter({
month: 'long',
year: 'numeric',
era: startDate.calendar.identifier !== 'gregory' ? 'long' : undefined,
calendar: startDate.calendar.identifier
});
let dateFormatter = useDateFormatter({
dateStyle: 'long',
calendar: startDate.calendar.identifier
});
return useMemo(() => {
// Special case for month granularity. Format as a single month if only a
// single month is visible, otherwise format as a range of months.
if (isSameDay(startDate, startOfMonth(startDate))) {
if (isSameDay(endDate, endOfMonth(startDate))) {
return monthFormatter.format(startDate.toDate(timeZone));
} else if (isSameDay(endDate, endOfMonth(endDate))) {
return monthFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
}
}
return dateFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
}, [startDate, endDate, monthFormatter, dateFormatter, timeZone]);
}
var $24e3e5b6427eaa40$exports = {};
$24e3e5b6427eaa40$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} ausgewählt\",\"finishRangeSelectionPrompt\":\"Klicken, um die Auswahl des Datumsbereichs zu beenden\",\"next\":\"Weiter\",\"previous\":\"Zurück\",\"selectedDateDescription\":\"Ausgewähltes Datum: {date, date, full}\",\"selectedRangeDescription\":\"Bereich auswählen: {start, date, long} bis {end, date, long}\",\"startRangeSelectionPrompt\":\"Klicken, um die Auswahl des Datumsbereichs zu beginnen\",\"todayDate\":\"Heute, {date, date, full}\",\"todayDateSelected\":\"Heute, {date, date, full} ausgewählt\"}");
// @ts-ignore
const $a5539aeb508d7ff28dd5626dbcfe28d1$var$intlMessages = {
"ar-AE": _babelRuntimeHelpersInteropRequireDefault($f45e45cadce9cd3c568d7b277ef435$exports).default,
"bg-BG": _babelRuntimeHelpersInteropRequireDefault($bdf0f6034d0a3806494c0ac556dcb9a$exports).default,
"cs-CZ": _babelRuntimeHelpersInteropRequireDefault($d774c4230cc8c18e69a1d71874b7$exports).default,
"da-DK": _babelRuntimeHelpersInteropRequireDefault($b0cfbbb8dedaa3a82089fcb3c206fa70$exports).default,
"de-DE": _babelRuntimeHelpersInteropRequireDefault($bbc5179cfb9178714006c60e49eb71$exports).default,
"el-GR": _babelRuntimeHelpersInteropRequireDefault($eeca26f0f20f8653fbf55c606$exports).default,
"en-US": _babelRuntimeHelpersInteropRequireDefault($af1446bd47b40213f2bd5f9caf2d1d30$exports).default,
"es-ES": _babelRuntimeHelpersInteropRequireDefault($c531b70f59996561c81c31f081cf94d5$exports).default,
"et-EE": _babelRuntimeHelpersInteropRequireDefault($eb8316b956bfa6e56335a3cd74583f$exports).default,
"fi-FI": _babelRuntimeHelpersInteropRequireDefault($f6a706481b0b2dc4adad5b1880946ff$exports).default,
"fr-FR": _babelRuntimeHelpersInteropRequireDefault($cee76874e4b659414e42bf91b4c50754$exports).default,
"he-IL": _babelRuntimeHelpersInteropRequireDefault($d87045760e06330f93adc4f6198997$exports).default,
"hr-HR": _babelRuntimeHelpersInteropRequireDefault($ee413075d146e3244d11a0e95b12e$exports).default,
"hu-HU": _babelRuntimeHelpersInteropRequireDefault($d18c3f5a6825bdf60d9684149563fb7$exports).default,
"it-IT": _babelRuntimeHelpersInteropRequireDefault($df66cf2256db421f2dcef54c13cf2c7$exports).default,
"ja-JP": _babelRuntimeHelpersInteropRequireDefault($dac0ddeae7d6c34de0fcefae547189$exports).default,
"ko-KR": _babelRuntimeHelpersInteropRequireDefault($c3b959b59ccbe182a939de6136$exports).default,
"lt-LT": _babelRuntimeHelpersInteropRequireDefault($ccf6a1ee038460b3d682fe6caf0ac620$exports).default,
"lv-LV": _babelRuntimeHelpersInteropRequireDefault($ae8ccc894943bddf2166bbfae6$exports).default,
"nb-NO": _babelRuntimeHelpersInteropRequireDefault($fea14a0f53ecd185b1dab361692d7f65$exports).default,
"nl-NL": _babelRuntimeHelpersInteropRequireDefault($a50d2621c6244e65d9ef9b02a64add01$exports).default,
"pl-PL": _babelRuntimeHelpersInteropRequireDefault($f2d23b4b01b266614bc7babb272a1607$exports).default,
"pt-BR": _babelRuntimeHelpersInteropRequireDefault($e963f1978b8e534aca4cd36b160de$exports).default,
"pt-PT": _babelRuntimeHelpersInteropRequireDefault($cb966e61762a2f3a2b17168908d3abf$exports).default,
"ro-RO": _babelRuntimeHelpersInteropRequireDefault($e5a27c807bf530b7053529614092ec81$exports).default,
"ru-RU": _babelRuntimeHelpersInteropRequireDefault($b509722b3a1e293032af8cd3812ceae$exports).default,
"sk-SK": _babelRuntimeHelpersInteropRequireDefault($a89a1b295b13c7010d774e1851f45b08$exports).default,
"sl-SI": _babelRuntimeHelpersInteropRequireDefault($d6ed0f6e5486502035883b517e0dd65$exports).default,
"sr-SP": _babelRuntimeHelpersInteropRequireDefault($a6096cd99c270ae0f1a5f4f0a98$exports).default,
"sv-SE": _babelRuntimeHelpersInteropRequireDefault($f8cb71cf0912b7bed3b52c521a8421ba$exports).default,
"tr-TR": _babelRuntimeHelpersInteropRequireDefault($bdc4691151758bbe4e2432c460e0126$exports).default,
"uk-UA": _babelRuntimeHelpersInteropRequireDefault($e7847564079fb003b130b357b54530f$exports).default,
"zh-CN": _babelRuntimeHelpersInteropRequireDefault($e69406c909e273299264a98afd57$exports).default,
"zh-TW": _babelRuntimeHelpersInteropRequireDefault($d78eedb3a175c715df9a9d3f11816f3$exports).default
};
function $a5539aeb508d7ff28dd5626dbcfe28d1$export$useCalendarBase(props, state) {
let formatMessage = useMessageFormatter($a5539aeb508d7ff28dd5626dbcfe28d1$var$intlMessages);
let calendarId = useId(props.id);
let visibleRangeDescription = $a0c93a4d85895b0e0023de74b9af13$export$useVisibleRangeDescription(state.visibleRange.start, state.visibleRange.end, state.timeZone); // Announce when the visible date range changes
var $54ced6a1cb383152$exports = {};
$54ced6a1cb383152$exports = JSON.parse("{\"dateSelected\":\"Επιλέχτηκε {date, date, full}\",\"finishRangeSelectionPrompt\":\"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών\",\"next\":\"Επόμενο\",\"previous\":\"Προηγούμενο\",\"selectedDateDescription\":\"Επιλεγμένη ημερομηνία: {date, date, full}\",\"selectedRangeDescription\":\"Επιλεγμένο εύρος: {start, date, long} έως {end, date, long}\",\"startRangeSelectionPrompt\":\"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών\",\"todayDate\":\"Σήμερα, {date, date, full}\",\"todayDateSelected\":\"Σήμερα, επιλέχτηκε {date, date, full}\"}");
useUpdateEffect(() => {
// only when pressing the Previous or Next button
if (!state.isFocused) {
announce(visibleRangeDescription);
}
}, [visibleRangeDescription]); // Announce when the selected value changes
let selectedDateDescription = $a0c93a4d85895b0e0023de74b9af13$export$useSelectedDateDescription(state);
useUpdateEffect(() => {
if (selectedDateDescription) {
announce(selectedDateDescription, 'polite', 4000);
} // handle an update to the caption that describes the currently selected range, to announce the new value
var $40a6e8d07df45132$exports = {};
$40a6e8d07df45132$exports = JSON.parse("{\"previous\":\"Previous\",\"next\":\"Next\",\"selectedDateDescription\":\"Selected Date: {date, date, full}\",\"selectedRangeDescription\":\"Selected Range: {start, date, long} to {end, date, long}\",\"todayDate\":\"Today, {date, date, full}\",\"todayDateSelected\":\"Today, {date, date, full} selected\",\"dateSelected\":\"{date, date, full} selected\",\"startRangeSelectionPrompt\":\"Click to start selecting date range\",\"finishRangeSelectionPrompt\":\"Click to finish selecting date range\"}");
}, [selectedDateDescription]);
let descriptionProps = useDescription(visibleRangeDescription); // Label the child grid elements by the group element if it is labelled.
$a0c93a4d85895b0e0023de74b9af13$export$calendarIds.set(state, props['aria-label'] || props['aria-labelledby'] ? calendarId : null);
return {
calendarProps: mergeProps(descriptionProps, {
role: 'group',
id: calendarId,
'aria-label': props['aria-label'],
'aria-labelledby': props['aria-labelledby']
}),
nextButtonProps: {
onPress: () => state.focusNextPage(),
'aria-label': formatMessage('next'),
isDisabled: props.isDisabled || state.isNextVisibleRangeInvalid()
},
prevButtonProps: {
onPress: () => state.focusPreviousPage(),
'aria-label': formatMessage('previous'),
isDisabled: props.isDisabled || state.isPreviousVisibleRangeInvalid()
}
};
}
var $ca5170af67fbccc4$exports = {};
$ca5170af67fbccc4$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} seleccionado\",\"finishRangeSelectionPrompt\":\"Haga clic para terminar de seleccionar rango de fechas\",\"next\":\"Siguiente\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Fecha seleccionada: {date, date, full}\",\"selectedRangeDescription\":\"Seleccionar rango: {start, date, long} a {end, date, long}\",\"startRangeSelectionPrompt\":\"Haga clic para comenzar a seleccionar un rango de fechas\",\"todayDate\":\"Hoy, {date, date, full}\",\"todayDateSelected\":\"Hoy, {date, date, full} seleccionado\"}");
function useCalendar(props, state) {
return $a5539aeb508d7ff28dd5626dbcfe28d1$export$useCalendarBase(props, state);
}
exports.useCalendar = useCalendar;
var $ac7b3bd2e10f366c$exports = {};
$ac7b3bd2e10f366c$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valitud\",\"finishRangeSelectionPrompt\":\"Klõpsake kuupäevavahemiku valimise lõpetamiseks\",\"next\":\"Järgmine\",\"previous\":\"Eelmine\",\"selectedDateDescription\":\"Valitud kuupäev: {date, date, full}\",\"selectedRangeDescription\":\"Valitud vahemik: {start, date, long} kuni {end, date, long}\",\"startRangeSelectionPrompt\":\"Klõpsake kuupäevavahemiku valimiseks\",\"todayDate\":\"Täna {date, date, full}\",\"todayDateSelected\":\"Täna {date, date, full} valitud\"}");
function useRangeCalendar(props, state, ref) {
let res = $a5539aeb508d7ff28dd5626dbcfe28d1$export$useCalendarBase(props, state);
res.nextButtonProps.id = useId();
res.prevButtonProps.id = useId(); // We need to ignore virtual pointer events from VoiceOver due to these bugs.
// https://bugs.webkit.org/show_bug.cgi?id=222627
// https://bugs.webkit.org/show_bug.cgi?id=223202
// usePress also does this and waits for the following click event before firing.
// We need to match that here otherwise this will fire before the press event in
// useCalendarCell, causing range selection to not work properly.
let isVirtualClick = useRef(false);
useEvent(useRef(window), 'pointerdown', e => {
isVirtualClick.current = e.width === 0 && e.height === 0;
}); // Stop range selection when pressing or releasing a pointer outside the calendar body,
// except when pressing the next or previous buttons to switch months.
var $2c3a2a2adc02a2ee$exports = {};
$2c3a2a2adc02a2ee$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valittu\",\"finishRangeSelectionPrompt\":\"Lopeta päivämääräalueen valinta napsauttamalla tätä.\",\"next\":\"Seuraava\",\"previous\":\"Edellinen\",\"selectedDateDescription\":\"Valittu päivämäärä: {date, date, full}\",\"selectedRangeDescription\":\"Valittu alue: {start, date, long} - {end, date, long}\",\"startRangeSelectionPrompt\":\"Aloita päivämääräalueen valinta napsauttamalla tätä.\",\"todayDate\":\"Tänään, {date, date, full}\",\"todayDateSelected\":\"Tänään, {date, date, full} valittu\"}");
let endDragging = e => {
var _document$getElementB, _document$getElementB2;
if (isVirtualClick.current) {
isVirtualClick.current = false;
return;
}
var $5e50b61eeb7954b9$exports = {};
$5e50b61eeb7954b9$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} sélectionné\",\"finishRangeSelectionPrompt\":\"Cliquer pour finir de sélectionner la plage de dates\",\"next\":\"Suivant\",\"previous\":\"Précédent\",\"selectedDateDescription\":\"Date sélectionnée : {date, date, full}\",\"selectedRangeDescription\":\"Plage sélectionnée : {start, date, long} à {end, date, long}\",\"startRangeSelectionPrompt\":\"Cliquer pour commencer à sélectionner la plage de dates\",\"todayDate\":\"Aujourd’hui, {date, date, full}\",\"todayDateSelected\":\"Aujourd’hui, {date, date, full} sélectionné\"}");
state.setDragging(false);
if (!state.anchorDate) {
return;
}
var $df2be0f85aa039c9$exports = {};
$df2be0f85aa039c9$exports = JSON.parse("{\"dateSelected\":\"התאריך {date, date, full} שנבחר\",\"finishRangeSelectionPrompt\":\"חץ כדי לסיים את בחירת טווח התאריכים\",\"next\":\"הבא\",\"previous\":\"הקודם\",\"selectedDateDescription\":\"התאריך שנבחר: {date, date, full}\",\"selectedRangeDescription\":\"הטווח שנבחר: מ-{start, date, long} ועד {end, date, long}\",\"startRangeSelectionPrompt\":\"לחץ כדי להתחיל בבחירת טווח התאריכים\",\"todayDate\":\"היום, {date, date, full}\",\"todayDateSelected\":\"היום, התאריך {date, date, full} שנבחר\"}");
let target = e.target;
let body = document.getElementById(res.calendarProps.id);
if ((!body.contains(target) || target.getAttribute('role') !== 'button') && !((_document$getElementB = document.getElementById(res.nextButtonProps.id)) != null && _document$getElementB.contains(target)) && !((_document$getElementB2 = document.getElementById(res.prevButtonProps.id)) != null && _document$getElementB2.contains(target))) {
state.selectFocusedDate();
}
};
var $87288c2b00d3795f$exports = {};
$87288c2b00d3795f$exports = JSON.parse("{\"dateSelected\":\"Odabran {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite da dovršite raspon odabranih datuma\",\"next\":\"Sljedeći\",\"previous\":\"Prethodni\",\"selectedDateDescription\":\"Odabrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Odabrani raspon: od {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite da započnete raspon odabranih datuma\",\"todayDate\":\"Danas, {date, date, full}\",\"todayDateSelected\":\"Danas, odabran {date, date, full}\"}");
useEvent(useRef(window), 'pointerup', endDragging);
useEvent(useRef(window), 'pointercancel', endDragging); // Prevent touch scrolling while dragging
useEvent(ref, 'touchmove', e => {
if (state.isDragging) {
e.preventDefault();
}
}, {
passive: false,
capture: true
});
return res;
}
var $bb8da523f9d4a76e$exports = {};
$bb8da523f9d4a76e$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} kijelölve\",\"finishRangeSelectionPrompt\":\"Kattintson a dátumtartomány kijelölésének befejezéséhez\",\"next\":\"Következő\",\"previous\":\"Előző\",\"selectedDateDescription\":\"Kijelölt dátum: {date, date, full}\",\"selectedRangeDescription\":\"Kijelölt tartomány: {start, date, long} – {end, date, long}\",\"startRangeSelectionPrompt\":\"Kattintson a dátumtartomány kijelölésének indításához\",\"todayDate\":\"Ma, {date, date, full}\",\"todayDateSelected\":\"Ma, {date, date, full} kijelölve\"}");
exports.useRangeCalendar = useRangeCalendar;
function useCalendarGrid(props, state) {
let {
isReadOnly = false,
isDisabled = false,
startDate = state.visibleRange.start,
endDate = state.visibleRange.end
} = props;
let {
direction
} = useLocale();
var $29e507ba517044f4$exports = {};
$29e507ba517044f4$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selezionato\",\"finishRangeSelectionPrompt\":\"Fai clic per completare la selezione dell’intervallo di date\",\"next\":\"Successivo\",\"previous\":\"Precedente\",\"selectedDateDescription\":\"Data selezionata: {date, date, full}\",\"selectedRangeDescription\":\"Intervallo selezionato: da {start, date, long} a {end, date, long}\",\"startRangeSelectionPrompt\":\"Fai clic per selezionare l’intervallo di date\",\"todayDate\":\"Oggi, {date, date, full}\",\"todayDateSelected\":\"Oggi, {date, date, full} selezionato\"}");
let onKeyDown = e => {
switch (e.key) {
case 'Enter':
case ' ':
e.preventDefault();
state.selectFocusedDate();
break;
case 'PageUp':
e.preventDefault();
var $f4ae65e14ed14d47$exports = {};
$f4ae65e14ed14d47$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} を選択\",\"finishRangeSelectionPrompt\":\"クリックして日付範囲の選択を終了\",\"next\":\"次へ\",\"previous\":\"前へ\",\"selectedDateDescription\":\"日付を選択:{date, date, full}\",\"selectedRangeDescription\":\"範囲を選択:{start, date, long} から {end, date, long}\",\"startRangeSelectionPrompt\":\"クリックして日付範囲の選択を開始\",\"todayDate\":\"本日、{date, date, full}\",\"todayDateSelected\":\"本日、{date, date, full} を選択\"}");
if (e.shiftKey) {
state.focusPreviousSection();
} else {
state.focusPreviousPage();
}
break;
var $f5adde60396d643f$exports = {};
$f5adde60396d643f$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} 선택함\",\"finishRangeSelectionPrompt\":\"날짜 범위 선택을 완료하려면 클릭하십시오.\",\"next\":\"다음\",\"previous\":\"이전\",\"selectedDateDescription\":\"선택한 날짜: {date, date, full}\",\"selectedRangeDescription\":\"선택한 범위: {start, date, long} ~ {end, date, long}\",\"startRangeSelectionPrompt\":\"날짜 범위 선택을 시작하려면 클릭하십시오.\",\"todayDate\":\"오늘, {date, date, full}\",\"todayDateSelected\":\"오늘, {date, date, full} 선택함\"}");
case 'PageDown':
e.preventDefault();
if (e.shiftKey) {
state.focusNextSection();
} else {
state.focusNextPage();
}
var $089ee8a8811f8669$exports = {};
$089ee8a8811f8669$exports = JSON.parse("{\"dateSelected\":\"Pasirinkta {date, date, full}\",\"finishRangeSelectionPrompt\":\"Spustelėkite, kad baigtumėte pasirinkti datų intervalą\",\"next\":\"Paskesnis\",\"previous\":\"Ankstesnis\",\"selectedDateDescription\":\"Pasirinkta data: {date, date, full}\",\"selectedRangeDescription\":\"Pasirinktas intervalas: nuo {start, date, long} iki {end, date, long}\",\"startRangeSelectionPrompt\":\"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą\",\"todayDate\":\"Šiandien, {date, date, full}\",\"todayDateSelected\":\"Šiandien, pasirinkta {date, date, full}\"}");
break;
case 'End':
e.preventDefault();
state.focusPageEnd();
break;
var $08ba1a59d94622ef$exports = {};
$08ba1a59d94622ef$exports = JSON.parse("{\"dateSelected\":\"Atlasīts {date, date, full}\",\"finishRangeSelectionPrompt\":\"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi\",\"next\":\"Tālāk\",\"previous\":\"Atpakaļ\",\"selectedDateDescription\":\"Atlasītais datums: {date, date, full}\",\"selectedRangeDescription\":\"Atlasītais diapazons: {start, date, long} līdz {end, date, long}\",\"startRangeSelectionPrompt\":\"Noklikšķiniet, lai sāktu datumu diapazona atlasi\",\"todayDate\":\"Šodiena, {date, date, full}\",\"todayDateSelected\":\"Atlasīta šodiena, {date, date, full}\"}");
case 'Home':
e.preventDefault();
state.focusPageStart();
break;
case 'ArrowLeft':
e.preventDefault();
var $435ddc115337117a$exports = {};
$435ddc115337117a$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valgt\",\"finishRangeSelectionPrompt\":\"Klikk for å fullføre valg av datoområde\",\"next\":\"Neste\",\"previous\":\"Forrige\",\"selectedDateDescription\":\"Valgt dato: {date, date, full}\",\"selectedRangeDescription\":\"Valgt område: {start, date, long} til {end, date, long}\",\"startRangeSelectionPrompt\":\"Klikk for å starte valg av datoområde\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} valgt\"}");
if (direction === 'rtl') {
state.focusNextDay();
} else {
state.focusPreviousDay();
}
break;
var $aa77fded39f4a4b2$exports = {};
$aa77fded39f4a4b2$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} geselecteerd\",\"finishRangeSelectionPrompt\":\"Klik om de selectie van het datumbereik te voltooien\",\"next\":\"Volgende\",\"previous\":\"Vorige\",\"selectedDateDescription\":\"Geselecteerde datum: {date, date, full}\",\"selectedRangeDescription\":\"Geselecteerd bereik: {start, date, long} t/m {end, date, long}\",\"startRangeSelectionPrompt\":\"Klik om het datumbereik te selecteren\",\"todayDate\":\"Vandaag, {date, date, full}\",\"todayDateSelected\":\"Vandaag, {date, date, full} geselecteerd\"}");
case 'ArrowUp':
e.preventDefault();
state.focusPreviousRow();
break;
case 'ArrowRight':
e.preventDefault();
var $b8c760745f934bb0$exports = {};
$b8c760745f934bb0$exports = JSON.parse("{\"dateSelected\":\"Wybrano {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknij, aby zakończyć wybór zakresu dat\",\"next\":\"Dalej\",\"previous\":\"Wstecz\",\"selectedDateDescription\":\"Wybrana data: {date, date, full}\",\"selectedRangeDescription\":\"Wybrany zakres: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknij, aby rozpocząć wybór zakresu dat\",\"todayDate\":\"Dzisiaj {date, date, full}\",\"todayDateSelected\":\"Dzisiaj wybrano {date, date, full}\"}");
if (direction === 'rtl') {
state.focusPreviousDay();
} else {
state.focusNextDay();
}
break;
var $b2da89c4fbbd7ff2$exports = {};
$b2da89c4fbbd7ff2$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selecionado\",\"finishRangeSelectionPrompt\":\"Clique para concluir a seleção do intervalo de datas\",\"next\":\"Próximo\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Data selecionada: {date, date, full}\",\"selectedRangeDescription\":\"Intervalo selecionado: {start, date, long} até {end, date, long}\",\"startRangeSelectionPrompt\":\"Clique para iniciar a seleção do intervalo de datas\",\"todayDate\":\"Hoje, {date, date, full}\",\"todayDateSelected\":\"Hoje, {date, date, full} selecionado\"}");
case 'ArrowDown':
e.preventDefault();
state.focusNextRow();
break;
case 'Escape':
// Cancel the selection.
if ('setAnchorDate' in state) {
e.preventDefault();
state.setAnchorDate(null);
}
var $8b9a5688c3eb394c$exports = {};
$8b9a5688c3eb394c$exports = JSON.parse("{\"dateSelected\":\"{data, data, completo} selecionado\",\"finishRangeSelectionPrompt\":\"Clique para terminar de selecionar o intervalo de datas\",\"next\":\"Próximo\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Data Selecionada: {data, data, completo}\",\"selectedRangeDescription\":\"Selecionar Intervalo: {início, data, longo} a {término, data, longo}\",\"startRangeSelectionPrompt\":\"Clique para começar a selecionar o intervalo de datas\",\"todayDate\":\"Hoje, {date, date, full}\",\"todayDateSelected\":\"Hoje, {date, date, full} selecionado\"}");
break;
}
};
let selectedDateDescription = $a0c93a4d85895b0e0023de74b9af13$export$useSelectedDateDescription(state);
let descriptionProps = useDescription(selectedDateDescription);
let visibleRangeDescription = $a0c93a4d85895b0e0023de74b9af13$export$useVisibleRangeDescription(startDate, endDate, state.timeZone);
let labelProps = useLabels({
'aria-label': visibleRangeDescription,
'aria-labelledby': $a0c93a4d85895b0e0023de74b9af13$export$calendarIds.get(state)
});
return {
gridProps: mergeProps(descriptionProps, labelProps, {
role: 'grid',
'aria-readonly': isReadOnly || null,
'aria-disabled': isDisabled || null,
'aria-multiselectable': 'highlightedRange' in state || undefined,
onKeyDown,
onFocus: () => state.setFocused(true),
onBlur: () => state.setFocused(false)
})
};
}
var $06c9c864c795c9d9$exports = {};
$06c9c864c795c9d9$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selectată\",\"finishRangeSelectionPrompt\":\"Apăsaţi pentru a finaliza selecţia razei pentru dată\",\"next\":\"Următorul\",\"previous\":\"Înainte\",\"selectedDateDescription\":\"Dată selectată: {date, date, full}\",\"selectedRangeDescription\":\"Selectaţi raza: {start, date, long} la {end, date, long}\",\"startRangeSelectionPrompt\":\"Apăsaţi pentru a începe selecţia razei pentru dată\",\"todayDate\":\"Astăzi, {date, date, full}\",\"todayDateSelected\":\"Dată, {date, date, full} selectată\"}");
exports.useCalendarGrid = useCalendarGrid;
// @ts-ignore
const $c3ce80c33f2602f3bb3139f1ecb53537$var$intlMessages = {
"ar-AE": _babelRuntimeHelpersInteropRequireDefault($f45e45cadce9cd3c568d7b277ef435$exports).default,
"bg-BG": _babelRuntimeHelpersInteropRequireDefault($bdf0f6034d0a3806494c0ac556dcb9a$exports).default,
"cs-CZ": _babelRuntimeHelpersInteropRequireDefault($d774c4230cc8c18e69a1d71874b7$exports).default,
"da-DK": _babelRuntimeHelpersInteropRequireDefault($b0cfbbb8dedaa3a82089fcb3c206fa70$exports).default,
"de-DE": _babelRuntimeHelpersInteropRequireDefault($bbc5179cfb9178714006c60e49eb71$exports).default,
"el-GR": _babelRuntimeHelpersInteropRequireDefault($eeca26f0f20f8653fbf55c606$exports).default,
"en-US": _babelRuntimeHelpersInteropRequireDefault($af1446bd47b40213f2bd5f9caf2d1d30$exports).default,
"es-ES": _babelRuntimeHelpersInteropRequireDefault($c531b70f59996561c81c31f081cf94d5$exports).default,
"et-EE": _babelRuntimeHelpersInteropRequireDefault($eb8316b956bfa6e56335a3cd74583f$exports).default,
"fi-FI": _babelRuntimeHelpersInteropRequireDefault($f6a706481b0b2dc4adad5b1880946ff$exports).default,
"fr-FR": _babelRuntimeHelpersInteropRequireDefault($cee76874e4b659414e42bf91b4c50754$exports).default,
"he-IL": _babelRuntimeHelpersInteropRequireDefault($d87045760e06330f93adc4f6198997$exports).default,
"hr-HR": _babelRuntimeHelpersInteropRequireDefault($ee413075d146e3244d11a0e95b12e$exports).default,
"hu-HU": _babelRuntimeHelpersInteropRequireDefault($d18c3f5a6825bdf60d9684149563fb7$exports).default,
"it-IT": _babelRuntimeHelpersInteropRequireDefault($df66cf2256db421f2dcef54c13cf2c7$exports).default,
"ja-JP": _babelRuntimeHelpersInteropRequireDefault($dac0ddeae7d6c34de0fcefae547189$exports).default,
"ko-KR": _babelRuntimeHelpersInteropRequireDefault($c3b959b59ccbe182a939de6136$exports).default,
"lt-LT": _babelRuntimeHelpersInteropRequireDefault($ccf6a1ee038460b3d682fe6caf0ac620$exports).default,
"lv-LV": _babelRuntimeHelpersInteropRequireDefault($ae8ccc894943bddf2166bbfae6$exports).default,
"nb-NO": _babelRuntimeHelpersInteropRequireDefault($fea14a0f53ecd185b1dab361692d7f65$exports).default,
"nl-NL": _babelRuntimeHelpersInteropRequireDefault($a50d2621c6244e65d9ef9b02a64add01$exports).default,
"pl-PL": _babelRuntimeHelpersInteropRequireDefault($f2d23b4b01b266614bc7babb272a1607$exports).default,
"pt-BR": _babelRuntimeHelpersInteropRequireDefault($e963f1978b8e534aca4cd36b160de$exports).default,
"pt-PT": _babelRuntimeHelpersInteropRequireDefault($cb966e61762a2f3a2b17168908d3abf$exports).default,
"ro-RO": _babelRuntimeHelpersInteropRequireDefault($e5a27c807bf530b7053529614092ec81$exports).default,
"ru-RU": _babelRuntimeHelpersInteropRequireDefault($b509722b3a1e293032af8cd3812ceae$exports).default,
"sk-SK": _babelRuntimeHelpersInteropRequireDefault($a89a1b295b13c7010d774e1851f45b08$exports).default,
"sl-SI": _babelRuntimeHelpersInteropRequireDefault($d6ed0f6e5486502035883b517e0dd65$exports).default,
"sr-SP": _babelRuntimeHelpersInteropRequireDefault($a6096cd99c270ae0f1a5f4f0a98$exports).default,
"sv-SE": _babelRuntimeHelpersInteropRequireDefault($f8cb71cf0912b7bed3b52c521a8421ba$exports).default,
"tr-TR": _babelRuntimeHelpersInteropRequireDefault($bdc4691151758bbe4e2432c460e0126$exports).default,
"uk-UA": _babelRuntimeHelpersInteropRequireDefault($e7847564079fb003b130b357b54530f$exports).default,
"zh-CN": _babelRuntimeHelpersInteropRequireDefault($e69406c909e273299264a98afd57$exports).default,
"zh-TW": _babelRuntimeHelpersInteropRequireDefault($d78eedb3a175c715df9a9d3f11816f3$exports).default
var $d60861d10f45274d$exports = {};
$d60861d10f45274d$exports = JSON.parse("{\"dateSelected\":\"выбрано {date, date, full}\",\"finishRangeSelectionPrompt\":\"Щелкните, чтобы завершить выбор диапазона дат\",\"next\":\"Далее\",\"previous\":\"Назад\",\"selectedDateDescription\":\"Выбранная дата: {date, date, full}\",\"selectedRangeDescription\":\"Выбранный диапазон: {start, date, long} – {end, date, long}\",\"startRangeSelectionPrompt\":\"Щелкните, чтобы начать выбор диапазона дат\",\"todayDate\":\"Сегодня, {date, date, full}\",\"todayDateSelected\":\"Сегодня, выбрано {date, date, full}\"}");
var $2391d5f00466c509$exports = {};
$2391d5f00466c509$exports = JSON.parse("{\"dateSelected\":\"Vybratý dátum {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknutím dokončíte výber rozsahu dátumov\",\"next\":\"Nasledujúce\",\"previous\":\"Predchádzajúce\",\"selectedDateDescription\":\"Vybratý dátum: {date, date, full}\",\"selectedRangeDescription\":\"Vybratý rozsah dátumov: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknutím spustíte výber rozsahu dátumov\",\"todayDate\":\"Dnešný dátum, {date, date, full}\",\"todayDateSelected\":\"Vybratý dnešný dátum, {date, date, full}\"}");
var $103a58d15b3da323$exports = {};
$103a58d15b3da323$exports = JSON.parse("{\"dateSelected\":\"izbrano: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite za dokončanje izbire datumskega obsega\",\"next\":\"Naprej\",\"previous\":\"Nazaj\",\"selectedDateDescription\":\"Izbrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Izbrani razpon: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite za začetek izbire datumskega obsega\",\"todayDate\":\"Danes, {date, date, full}\",\"todayDateSelected\":\"Danes, izbrano: {date, date, full}\"}");
var $46d4ef3738634dd6$exports = {};
$46d4ef3738634dd6$exports = JSON.parse("{\"dateSelected\":\"Izabran {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite da dovršite opseg izabranih datuma\",\"next\":\"Sledeći\",\"previous\":\"Prethodni\",\"selectedDateDescription\":\"Izabrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Izabrani opseg: od {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite da započnete opseg izabranih datuma\",\"todayDate\":\"Danas, {date, date, full}\",\"todayDateSelected\":\"Danas, izabran {date, date, full}\"}");
var $ffd52992acc326cd$exports = {};
$ffd52992acc326cd$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} har valts\",\"finishRangeSelectionPrompt\":\"Klicka för att avsluta val av datumintervall\",\"next\":\"Nästa\",\"previous\":\"Föregående\",\"selectedDateDescription\":\"Valt datum: {date, date, full}\",\"selectedRangeDescription\":\"Valt intervall: {start, date, long} till {end, date, long}\",\"startRangeSelectionPrompt\":\"Klicka för att välja datumintervall\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} har valts\"}");
var $4f6e14cf86d7166e$exports = {};
$4f6e14cf86d7166e$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} seçildi\",\"finishRangeSelectionPrompt\":\"Tarih aralığı seçimini tamamlamak için tıklayın\",\"next\":\"Sonraki\",\"previous\":\"Önceki\",\"selectedDateDescription\":\"Seçili Tarih: {date, date, full}\",\"selectedRangeDescription\":\"Seçili Aralık: {start, date, long} - {end, date, long}\",\"startRangeSelectionPrompt\":\"Tarih aralığı seçimini başlatmak için tıklayın\",\"todayDate\":\"Bugün, {date, date, full}\",\"todayDateSelected\":\"Bugün, {date, date, full} seçildi\"}");
var $b185c047e8e8097b$exports = {};
$b185c047e8e8097b$exports = JSON.parse("{\"dateSelected\":\"Вибрано: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Натисніть, щоб завершити вибір діапазону дат\",\"next\":\"Наступний\",\"previous\":\"Попередній\",\"selectedDateDescription\":\"Вибрана дата: {date, date, full}\",\"selectedRangeDescription\":\"Вибраний діапазон: від {start, date, long} до {end, date, long}\",\"startRangeSelectionPrompt\":\"Натисніть, щоб почати вибір діапазону дат\",\"todayDate\":\"Сьогодні: {date, date, full}\",\"todayDateSelected\":\"Сьогодні вибрано: {date, date, full}\"}");
var $b1da19cba07c8ea0$exports = {};
$b1da19cba07c8ea0$exports = JSON.parse("{\"dateSelected\":\"已选择 {date, date, full}\",\"finishRangeSelectionPrompt\":\"单击以完成选择日期范围\",\"next\":\"下一页\",\"previous\":\"上一页\",\"selectedDateDescription\":\"选定的日期: {date, date, full}\",\"selectedRangeDescription\":\"选定的范围: {start, date, long} 到 {end, date, long}\",\"startRangeSelectionPrompt\":\"单击以开始选择日期范围\",\"todayDate\":\"今天({date, date, full})\",\"todayDateSelected\":\"已选择今天({date, date, full})\"}");
var $57d343e6c1bd3d2a$exports = {};
$57d343e6c1bd3d2a$exports = JSON.parse("{\"dateSelected\":\"已選取 {date, date, full}\",\"finishRangeSelectionPrompt\":\"按一下以完成選取日期範圍\",\"next\":\"下一頁\",\"previous\":\"上一頁\",\"selectedDateDescription\":\"選取日期: {date, date, full}\",\"selectedRangeDescription\":\"選取範圍: {start, date, long} 至 {end, date, long}\",\"startRangeSelectionPrompt\":\"按一下以開始選取日期範圍\",\"todayDate\":\"今日,{date, date, full}\",\"todayDateSelected\":\"今日,已選取 {date, date, full}\"}");
$d8244729bef971a6$exports = {
"ar-AE": $5a796e2da7accb4a$exports,
"bg-BG": $384191f017eeec79$exports,
"cs-CZ": $b20193b93fb822d2$exports,
"da-DK": $51044774270b0ecb$exports,
"de-DE": $24e3e5b6427eaa40$exports,
"el-GR": $54ced6a1cb383152$exports,
"en-US": $40a6e8d07df45132$exports,
"es-ES": $ca5170af67fbccc4$exports,
"et-EE": $ac7b3bd2e10f366c$exports,
"fi-FI": $2c3a2a2adc02a2ee$exports,
"fr-FR": $5e50b61eeb7954b9$exports,
"he-IL": $df2be0f85aa039c9$exports,
"hr-HR": $87288c2b00d3795f$exports,
"hu-HU": $bb8da523f9d4a76e$exports,
"it-IT": $29e507ba517044f4$exports,
"ja-JP": $f4ae65e14ed14d47$exports,
"ko-KR": $f5adde60396d643f$exports,
"lt-LT": $089ee8a8811f8669$exports,
"lv-LV": $08ba1a59d94622ef$exports,
"nb-NO": $435ddc115337117a$exports,
"nl-NL": $aa77fded39f4a4b2$exports,
"pl-PL": $b8c760745f934bb0$exports,
"pt-BR": $b2da89c4fbbd7ff2$exports,
"pt-PT": $8b9a5688c3eb394c$exports,
"ro-RO": $06c9c864c795c9d9$exports,
"ru-RU": $d60861d10f45274d$exports,
"sk-SK": $2391d5f00466c509$exports,
"sl-SI": $103a58d15b3da323$exports,
"sr-SP": $46d4ef3738634dd6$exports,
"sv-SE": $ffd52992acc326cd$exports,
"tr-TR": $4f6e14cf86d7166e$exports,
"uk-UA": $b185c047e8e8097b$exports,
"zh-CN": $b1da19cba07c8ea0$exports,
"zh-TW": $57d343e6c1bd3d2a$exports
};
function useCalendarCell(props, state, ref) {
let {
date,
isDisabled
} = props;
let formatMessage = useMessageFormatter($c3ce80c33f2602f3bb3139f1ecb53537$var$intlMessages);
let dateFormatter = useDateFormatter({
weekday: 'long',
day: 'numeric',
month: 'long',
year: 'numeric',
era: date.calendar.identifier !== 'gregory' ? 'long' : undefined,
timeZone: state.timeZone
});
let isSelected = state.isSelected(date);
let isFocused = state.isCellFocused(date);
isDisabled = isDisabled || state.isCellDisabled(date); // For performance, reuse the same date object as before if the new date prop is the same.
// This allows subsequent useMemo results to be reused.
let lastDate = useRef(null);
if (lastDate.current && isEqualDay(date, lastDate.current)) {
date = lastDate.current;
}
lastDate.current = date;
let nativeDate = useMemo(() => date.toDate(state.timeZone), [date, state.timeZone]); // aria-label should be localize Day of week, Month, Day and Year without Time.
const $d676cc5de606f747$export$3ddff89c59628ee7 = new WeakMap();
function $d676cc5de606f747$export$b6df97c887c38e1a(state) {
let formatMessage = $iAkYs$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($d8244729bef971a6$exports)));
let start, end;
if ('highlightedRange' in state) ({ start: start , end: end } = state.highlightedRange || {
});
else start = end = state.value;
let anchorDate = 'anchorDate' in state ? state.anchorDate : null;
return $iAkYs$react.useMemo(()=>{
// No message if currently selecting a range, or there is nothing highlighted.
if (!anchorDate && start && end) {
// Use a single date message if the start and end dates are the same day,
// otherwise include both dates.
if ($iAkYs$internationalizeddate.isSameDay(start, end)) return formatMessage('selectedDateDescription', {
date: $iAkYs$internationalizeddate.toDate(start, state.timeZone)
});
else return formatMessage('selectedRangeDescription', {
start: $iAkYs$internationalizeddate.toDate(start, state.timeZone),
end: $iAkYs$internationalizeddate.toDate(end, state.timeZone)
});
}
return '';
}, [
start,
end,
anchorDate,
state.timeZone,
formatMessage
]);
}
function $d676cc5de606f747$export$31afe65d91ef6e8(startDate, endDate, timeZone) {
let monthFormatter = $iAkYs$reactariai18n.useDateFormatter({
month: 'long',
year: 'numeric',
era: startDate.calendar.identifier !== 'gregory' ? 'long' : undefined,
calendar: startDate.calendar.identifier
});
let dateFormatter = $iAkYs$reactariai18n.useDateFormatter({
dateStyle: 'long',
calendar: startDate.calendar.identifier
});
return $iAkYs$react.useMemo(()=>{
// Special case for month granularity. Format as a single month if only a
// single month is visible, otherwise format as a range of months.
if ($iAkYs$internationalizeddate.isSameDay(startDate, $iAkYs$internationalizeddate.startOfMonth(startDate))) {
if ($iAkYs$internationalizeddate.isSameDay(endDate, $iAkYs$internationalizeddate.endOfMonth(startDate))) return monthFormatter.format(startDate.toDate(timeZone));
else if ($iAkYs$internationalizeddate.isSameDay(endDate, $iAkYs$internationalizeddate.endOfMonth(endDate))) return monthFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
}
return dateFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
}, [
startDate,
endDate,
monthFormatter,
dateFormatter,
timeZone
]);
}
let isDateToday = isToday(date, state.timeZone);
let label = useMemo(() => {
if (isDateToday) {
// If date is today, set appropriate string depending on selected state:
return formatMessage(isSelected ? 'todayDateSelected' : 'todayDate', {
date: nativeDate
});
} else if (isSelected) {
// If date is selected but not today:
return formatMessage('dateSelected', {
date: nativeDate
});
}
return dateFormatter.format(nativeDate);
}, [dateFormatter, nativeDate, formatMessage, isSelected, isDateToday]); // When a cell is focused and this is a range calendar, add a prompt to help
// screenreader users know that they are in a range selection mode.
if ('anchorDate' in state && isFocused && !state.isReadOnly) {
let rangeSelectionPrompt = ''; // If selection has started add "click to finish selecting range"
if (state.anchorDate) {
rangeSelectionPrompt = formatMessage('finishRangeSelectionPrompt'); // Otherwise, add "click to start selecting range" prompt
} else {
rangeSelectionPrompt = formatMessage('startRangeSelectionPrompt');
} // Append to aria-label
function $e83b13bece3ba719$export$d652b3ea2d672d5b(props, state) {
let formatMessage = $iAkYs$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($d8244729bef971a6$exports)));
let calendarId = $iAkYs$reactariautils.useId(props.id);
let visibleRangeDescription = $d676cc5de606f747$export$31afe65d91ef6e8(state.visibleRange.start, state.visibleRange.end, state.timeZone);
// Announce when the visible date range changes
$iAkYs$reactariautils.useUpdateEffect(()=>{
// only when pressing the Previous or Next button
if (!state.isFocused) $iAkYs$reactarialiveannouncer.announce(visibleRangeDescription);
}, [
visibleRangeDescription
]);
// Announce when the selected value changes
let selectedDateDescription = $d676cc5de606f747$export$b6df97c887c38e1a(state);
$iAkYs$reactariautils.useUpdateEffect(()=>{
if (selectedDateDescription) $iAkYs$reactarialiveannouncer.announce(selectedDateDescription, 'polite', 4000);
// handle an update to the caption that describes the currently selected range, to announce the new value
}, [
selectedDateDescription
]);
let descriptionProps = $iAkYs$reactariautils.useDescription(visibleRangeDescription);
// Label the child grid elements by the group element if it is labelled.
$d676cc5de606f747$export$3ddff89c59628ee7.set(state, props['aria-label'] || props['aria-labelledby'] ? calendarId : null);
return {
calendarProps: $iAkYs$reactariautils.mergeProps(descriptionProps, {
role: 'group',
id: calendarId,
'aria-label': props['aria-label'],
'aria-labelledby': props['aria-labelledby']
}),
nextButtonProps: {
onPress: ()=>state.focusNextPage()
,
'aria-label': formatMessage('next'),
isDisabled: props.isDisabled || state.isNextVisibleRangeInvalid()
},
prevButtonProps: {
onPress: ()=>state.focusPreviousPage()
,
'aria-label': formatMessage('previous'),
isDisabled: props.isDisabled || state.isPreviousVisibleRangeInvalid()
}
};
}
if (rangeSelectionPrompt) {
label = label + " (" + rangeSelectionPrompt + ")";
}
}
let isAnchorPressed = useRef(false);
let isRangeBoundaryPressed = useRef(false);
let touchDragTimerRef = useRef(null);
let {
pressProps,
isPressed
} = usePress({
// When dragging to select a range, we don't want dragging over the original anchor
// again to trigger onPressStart. Cancel presses immediately when the pointer exits.
shouldCancelOnPointerExit: 'anchorDate' in state && !!state.anchorDate,
preventFocusOnPress: true,
isDisabled,
function $e3681a09276f447e$export$3ee915f8151bd4f1(props, state) {
return $e83b13bece3ba719$export$d652b3ea2d672d5b(props, state);
}
onPressStart(e) {
if ('highlightedRange' in state && !state.anchorDate && (e.pointerType === 'mouse' || e.pointerType === 'touch')) {
// Allow dragging the start or end date of a range to modify it
// rather than starting a new selection.
if (state.highlightedRange) {
if (isSameDay(date, state.highlightedRange.start)) {
state.setAnchorDate(state.highlightedRange.end);
state.setFocusedDate(date);
state.setDragging(true);
isRangeBoundaryPressed.current = true;
var $5d091326d9b974e9$exports = {};
$parcel$export($5d091326d9b974e9$exports, "useRangeCalendar", () => $5d091326d9b974e9$export$87e0539f600c24e5);
function $5d091326d9b974e9$export$87e0539f600c24e5(props, state, ref) {
let res = $e83b13bece3ba719$export$d652b3ea2d672d5b(props, state);
res.nextButtonProps.id = $iAkYs$reactariautils.useId();
res.prevButtonProps.id = $iAkYs$reactariautils.useId();
// We need to ignore virtual pointer events from VoiceOver due to these bugs.
// https://bugs.webkit.org/show_bug.cgi?id=222627
// https://bugs.webkit.org/show_bug.cgi?id=223202
// usePress also does this and waits for the following click event before firing.
// We need to match that here otherwise this will fire before the press event in
// useCalendarCell, causing range selection to not work properly.
let isVirtualClick = $iAkYs$react.useRef(false);
$iAkYs$reactariautils.useEvent($iAkYs$react.useRef(window), 'pointerdown', (e)=>{
isVirtualClick.current = e.width === 0 && e.height === 0;
});
// Stop range selection when pressing or releasing a pointer outside the calendar body,
// except when pressing the next or previous buttons to switch months.
let endDragging = (e)=>{
if (isVirtualClick.current) {
isVirtualClick.current = false;
return;
} else if (isSameDay(date, state.highlightedRange.end)) {
state.setAnchorDate(state.highlightedRange.start);
state.setFocusedDate(date);
state.setDragging(true);
isRangeBoundaryPressed.current = true;
return;
}
}
state.setDragging(false);
if (!state.anchorDate) return;
let target = e.target;
let body = document.getElementById(res.calendarProps.id);
if ((!body.contains(target) || target.getAttribute('role') !== 'button') && !document.getElementById(res.nextButtonProps.id)?.contains(target) && !document.getElementById(res.prevButtonProps.id)?.contains(target)) state.selectFocusedDate();
};
$iAkYs$reactariautils.useEvent($iAkYs$react.useRef(window), 'pointerup', endDragging);
$iAkYs$reactariautils.useEvent($iAkYs$react.useRef(window), 'pointercancel', endDragging);
// Prevent touch scrolling while dragging
$iAkYs$reactariautils.useEvent(ref, 'touchmove', (e)=>{
if (state.isDragging) e.preventDefault();
}, {
passive: false,
capture: true
});
return res;
}
let startDragging = () => {
state.setDragging(true);
touchDragTimerRef.current = null;
state.selectDate(date);
state.setFocusedDate(date);
isAnchorPressed.current = true;
}; // Start selection on mouse/touch down so users can drag to select a range.
// On touch, delay dragging to determine if the user really meant to scroll.
var $b60ea74e616e97d8$exports = {};
if (e.pointerType === 'touch') {
touchDragTimerRef.current = setTimeout(startDragging, 200);
} else {
startDragging();
$parcel$export($b60ea74e616e97d8$exports, "useCalendarGrid", () => $b60ea74e616e97d8$export$cb95147730a423f5);
function $b60ea74e616e97d8$export$cb95147730a423f5(props, state) {
let { isReadOnly: isReadOnly = false , isDisabled: isDisabled = false , startDate: startDate = state.visibleRange.start , endDate: endDate = state.visibleRange.end } = props;
let { direction: direction } = $iAkYs$reactariai18n.useLocale();
let onKeyDown = (e)=>{
switch(e.key){
case 'Enter':
case ' ':
e.preventDefault();
state.selectFocusedDate();
break;
case 'PageUp':
e.preventDefault();
if (e.shiftKey) state.focusPreviousSection();
else state.focusPreviousPage();
break;
case 'PageDown':
e.preventDefault();
if (e.shiftKey) state.focusNextSection();
else state.focusNextPage();
break;
case 'End':
e.preventDefault();
state.focusPageEnd();
break;
case 'Home':
e.preventDefault();
state.focusPageStart();
break;
case 'ArrowLeft':
e.preventDefault();
if (direction === 'rtl') state.focusNextDay();
else state.focusPreviousDay();
break;
case 'ArrowUp':
e.preventDefault();
state.focusPreviousRow();
break;
case 'ArrowRight':
e.preventDefault();
if (direction === 'rtl') state.focusPreviousDay();
else state.focusNextDay();
break;
case 'ArrowDown':
e.preventDefault();
state.focusNextRow();
break;
case 'Escape':
// Cancel the selection.
if ('setAnchorDate' in state) {
e.preventDefault();
state.setAnchorDate(null);
}
break;
}
}
},
};
let selectedDateDescription = $d676cc5de606f747$export$b6df97c887c38e1a(state);
let descriptionProps = $iAkYs$reactariautils.useDescription(selectedDateDescription);
let visibleRangeDescription = $d676cc5de606f747$export$31afe65d91ef6e8(startDate, endDate, state.timeZone);
let labelProps = $iAkYs$reactariautils.useLabels({
'aria-label': visibleRangeDescription,
'aria-labelledby': $d676cc5de606f747$export$3ddff89c59628ee7.get(state)
});
return {
gridProps: $iAkYs$reactariautils.mergeProps(descriptionProps, labelProps, {
role: 'grid',
'aria-readonly': isReadOnly || null,
'aria-disabled': isDisabled || null,
'aria-multiselectable': 'highlightedRange' in state || undefined,
onKeyDown: onKeyDown,
onFocus: ()=>state.setFocused(true)
,
onBlur: ()=>state.setFocused(false)
})
};
}
onPressEnd() {
isRangeBoundaryPressed.current = false;
isAnchorPressed.current = false;
clearTimeout(touchDragTimerRef.current);
touchDragTimerRef.current = null;
},
onPress() {
// For non-range selection, always select on press up.
if (!('anchorDate' in state)) {
state.selectDate(date);
state.setFocusedDate(date);
}
},
var $56cf0bd4c5080ff3$exports = {};
onPressUp(e) {
// If the user tapped quickly, the date won't be selected yet and the
// timer will still be in progress. In this case, select the date on touch up.
// Timer is cleared in onPressEnd.
if ('anchorDate' in state && touchDragTimerRef.current) {
state.selectDate(date);
state.setFocusedDate(date);
}
$parcel$export($56cf0bd4c5080ff3$exports, "useCalendarCell", () => $56cf0bd4c5080ff3$export$136073280381448e);
if ('anchorDate' in state) {
if (isRangeBoundaryPressed.current) {
// When clicking on the start or end date of an already selected range,
// start a new selection on press up to also allow dragging the date to
// change the existing range.
state.setAnchorDate(date);
} else if (state.anchorDate && !isAnchorPressed.current) {
// When releasing a drag or pressing the end date of a range, select it.
state.selectDate(date);
state.setFocusedDate(date);
} else if (e.pointerType === 'keyboard' && !state.anchorDate) {
// For range selection, auto-advance the focused date by one if using keyboard.
// This gives an indication that you're selecting a range rather than a single date.
// For mouse, this is unnecessary because users will see the indication on hover. For screen readers,
// there will be an announcement to "click to finish selecting range" (above).
state.selectDate(date);
let nextDay = date.add({
days: 1
});
if (isSameMonth(date, nextDay)) {
state.setFocusedDate(nextDay);
}
} else if (e.pointerType === 'virtual') {
// For screen readers, just select the date on click.
state.selectDate(date);
state.setFocusedDate(date);
}
}
}
});
let tabIndex = null;
if (!isDisabled) {
tabIndex = isSameDay(date, state.focusedDate) ? 0 : -1;
} // Focus the button in the DOM when the state updates.
useEffect(() => {
if (isFocused && ref.current) {
focusWithoutScrolling(ref.current);
function $56cf0bd4c5080ff3$export$136073280381448e(props, state, ref) {
let { date: date , isDisabled: isDisabled } = props;
let formatMessage = $iAkYs$reactariai18n.useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($d8244729bef971a6$exports)));
let dateFormatter = $iAkYs$reactariai18n.useDateFormatter({
weekday: 'long',
day: 'numeric',
month: 'long',
year: 'numeric',
era: date.calendar.identifier !== 'gregory' ? 'long' : undefined,
timeZone: state.timeZone
});
let isSelected = state.isSelected(date);
let isFocused = state.isCellFocused(date);
isDisabled = isDisabled || state.isCellDisabled(date);
// For performance, reuse the same date object as before if the new date prop is the same.
// This allows subsequent useMemo results to be reused.
let lastDate = $iAkYs$react.useRef(null);
if (lastDate.current && $iAkYs$internationalizeddate.isEqualDay(date, lastDate.current)) date = lastDate.current;
lastDate.current = date;
let nativeDate = $iAkYs$react.useMemo(()=>date.toDate(state.timeZone)
, [
date,
state.timeZone
]);
// aria-label should be localize Day of week, Month, Day and Year without Time.
let isDateToday = $iAkYs$internationalizeddate.isToday(date, state.timeZone);
let label = $iAkYs$react.useMemo(()=>{
if (isDateToday) // If date is today, set appropriate string depending on selected state:
return formatMessage(isSelected ? 'todayDateSelected' : 'todayDate', {
date: nativeDate
});
else if (isSelected) // If date is selected but not today:
return formatMessage('dateSelected', {
date: nativeDate
});
return dateFormatter.format(nativeDate);
}, [
dateFormatter,
nativeDate,
formatMessage,
isSelected,
isDateToday
]);
// When a cell is focused and this is a range calendar, add a prompt to help
// screenreader users know that they are in a range selection mode.
if ('anchorDate' in state && isFocused && !state.isReadOnly) {
let rangeSelectionPrompt = '';
// If selection has started add "click to finish selecting range"
if (state.anchorDate) rangeSelectionPrompt = formatMessage('finishRangeSelectionPrompt');
else rangeSelectionPrompt = formatMessage('startRangeSelectionPrompt');
// Append to aria-label
if (rangeSelectionPrompt) label = `${label} (${rangeSelectionPrompt})`;
}
}, [isFocused, ref]);
return {
cellProps: {
role: 'gridcell',
'aria-disabled': isDisabled || null,
'aria-selected': isSelected
},
buttonProps: mergeProps(pressProps, {
onFocus() {
if (!isDisabled) {
state.setFocusedDate(date);
let isAnchorPressed = $iAkYs$react.useRef(false);
let isRangeBoundaryPressed = $iAkYs$react.useRef(false);
let touchDragTimerRef = $iAkYs$react.useRef(null);
let { pressProps: pressProps , isPressed: isPressed } = $iAkYs$reactariainteractions.usePress({
// When dragging to select a range, we don't want dragging over the original anchor
// again to trigger onPressStart. Cancel presses immediately when the pointer exits.
shouldCancelOnPointerExit: 'anchorDate' in state && !!state.anchorDate,
preventFocusOnPress: true,
isDisabled: isDisabled,
onPressStart (e) {
if ('highlightedRange' in state && !state.anchorDate && (e.pointerType === 'mouse' || e.pointerType === 'touch')) {
// Allow dragging the start or end date of a range to modify it
// rather than starting a new selection.
if (state.highlightedRange) {
if ($iAkYs$internationalizeddate.isSameDay(date, state.highlightedRange.start)) {
state.setAnchorDate(state.highlightedRange.end);
state.setFocusedDate(date);
state.setDragging(true);
isRangeBoundaryPressed.current = true;
return;
} else if ($iAkYs$internationalizeddate.isSameDay(date, state.highlightedRange.end)) {
state.setAnchorDate(state.highlightedRange.start);
state.setFocusedDate(date);
state.setDragging(true);
isRangeBoundaryPressed.current = true;
return;
}
}
let startDragging = ()=>{
state.setDragging(true);
touchDragTimerRef.current = null;
state.selectDate(date);
state.setFocusedDate(date);
isAnchorPressed.current = true;
};
// Start selection on mouse/touch down so users can drag to select a range.
// On touch, delay dragging to determine if the user really meant to scroll.
if (e.pointerType === 'touch') touchDragTimerRef.current = setTimeout(startDragging, 200);
else startDragging();
}
},
onPressEnd () {
isRangeBoundaryPressed.current = false;
isAnchorPressed.current = false;
clearTimeout(touchDragTimerRef.current);
touchDragTimerRef.current = null;
},
onPress () {
// For non-range selection, always select on press up.
if (!('anchorDate' in state)) {
state.selectDate(date);
state.setFocusedDate(date);
}
},
onPressUp (e) {
// If the user tapped quickly, the date won't be selected yet and the
// timer will still be in progress. In this case, select the date on touch up.
// Timer is cleared in onPressEnd.
if ('anchorDate' in state && touchDragTimerRef.current) {
state.selectDate(date);
state.setFocusedDate(date);
}
if ('anchorDate' in state) {
if (isRangeBoundaryPressed.current) // When clicking on the start or end date of an already selected range,
// start a new selection on press up to also allow dragging the date to
// change the existing range.
state.setAnchorDate(date);
else if (state.anchorDate && !isAnchorPressed.current) {
// When releasing a drag or pressing the end date of a range, select it.
state.selectDate(date);
state.setFocusedDate(date);
} else if (e.pointerType === 'keyboard' && !state.anchorDate) {
// For range selection, auto-advance the focused date by one if using keyboard.
// This gives an indication that you're selecting a range rather than a single date.
// For mouse, this is unnecessary because users will see the indication on hover. For screen readers,
// there will be an announcement to "click to finish selecting range" (above).
state.selectDate(date);
let nextDay = date.add({
days: 1
});
if ($iAkYs$internationalizeddate.isSameMonth(date, nextDay)) state.setFocusedDate(nextDay);
} else if (e.pointerType === 'virtual') {
// For screen readers, just select the date on click.
state.selectDate(date);
state.setFocusedDate(date);
}
}
}
},
});
let tabIndex = null;
if (!isDisabled) tabIndex = $iAkYs$internationalizeddate.isSameDay(date, state.focusedDate) ? 0 : -1;
// Focus the button in the DOM when the state updates.
$iAkYs$react.useEffect(()=>{
if (isFocused && ref.current) $iAkYs$reactariautils.focusWithoutScrolling(ref.current);
}, [
isFocused,
ref
]);
return {
cellProps: {
role: 'gridcell',
'aria-disabled': isDisabled || null,
'aria-selected': isSelected
},
buttonProps: $iAkYs$reactariautils.mergeProps(pressProps, {
onFocus () {
if (!isDisabled) state.setFocusedDate(date);
},
tabIndex: tabIndex,
role: 'button',
'aria-disabled': isDisabled || null,
'aria-label': label,
onPointerEnter (e) {
// Highlight the date on hover or drag over a date when selecting a range.
if ('highlightDate' in state && (e.pointerType !== 'touch' || state.isDragging)) state.highlightDate(date);
},
onPointerDown (e) {
// This is necessary on touch devices to allow dragging
// outside the original pressed element.
// (JSDOM does not support this)
if ('releasePointerCapture' in e.target) e.target.releasePointerCapture(e.pointerId);
},
onContextMenu (e) {
// Prevent context menu on long press.
e.preventDefault();
}
}),
isPressed: isPressed
};
}
tabIndex,
role: 'button',
'aria-disabled': isDisabled || null,
'aria-label': label,
onPointerEnter(e) {
// Highlight the date on hover or drag over a date when selecting a range.
if ('highlightDate' in state && (e.pointerType !== 'touch' || state.isDragging)) {
state.highlightDate(date);
}
},
var $ea5b2d3474793c1e$exports = {};
onPointerDown(e) {
// This is necessary on touch devices to allow dragging
// outside the original pressed element.
// (JSDOM does not support this)
if ('releasePointerCapture' in e.target) {
e.target.releasePointerCapture(e.pointerId);
$parcel$export($ea5b2d3474793c1e$exports, "useCalendarTableHeader", () => $ea5b2d3474793c1e$export$2d550ec8e081e40b);
function $ea5b2d3474793c1e$export$2d550ec8e081e40b() {
return {
columnHeaderProps: {
scope: 'col'
}
},
};
}
onContextMenu(e) {
// Prevent context menu on long press.
e.preventDefault();
}
}),
isPressed
};
}
var $5846e2bed8e6d78d$exports = {};
exports.useCalendarCell = useCalendarCell;
function useCalendarTableHeader() {
return {
columnHeaderProps: {
scope: 'col'
}
};
}
$parcel$exportWildcard(module.exports, $e3681a09276f447e$exports);
$parcel$exportWildcard(module.exports, $5d091326d9b974e9$exports);
$parcel$exportWildcard(module.exports, $b60ea74e616e97d8$exports);
$parcel$exportWildcard(module.exports, $56cf0bd4c5080ff3$exports);
$parcel$exportWildcard(module.exports, $ea5b2d3474793c1e$exports);
$parcel$exportWildcard(module.exports, $5846e2bed8e6d78d$exports);
exports.useCalendarTableHeader = useCalendarTableHeader;
//# sourceMappingURL=main.js.map

@@ -1,724 +0,650 @@

import { usePress } from "@react-aria/interactions";
import { mergeProps, useDescription, useId, useUpdateEffect, useEvent, useLabels, focusWithoutScrolling } from "@react-aria/utils";
import { useMemo, useRef, useEffect } from "react";
import { useDateFormatter, useMessageFormatter, useLocale } from "@react-aria/i18n";
import { endOfMonth, isSameDay, startOfMonth, toDate, isEqualDay, isSameMonth, isToday } from "@internationalized/date";
import { announce } from "@react-aria/live-announcer";
import _babelRuntimeHelpersEsmInteropRequireDefault from "@babel/runtime/helpers/esm/interopRequireDefault";
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ar-AE.json
var $b3d1873a10b51c61e0fe53054ebdeb$exports = {};
$b3d1873a10b51c61e0fe53054ebdeb$exports = JSON.parse("{\"dateSelected\":\"تم تحديد {date, date, full}\",\"finishRangeSelectionPrompt\":\"انقر لإنهاء عملية تحديد نطاق التاريخ\",\"next\":\"التالي\",\"previous\":\"السابق\",\"selectedDateDescription\":\"التاريخ المحدد: {date, date, full}\",\"selectedRangeDescription\":\"النطاق المحدد: {start, date, long} إلى {end, date, long}\",\"startRangeSelectionPrompt\":\"انقر لبدء عملية تحديد نطاق التاريخ\",\"todayDate\":\"اليوم، {date, date, full}\",\"todayDateSelected\":\"اليوم، تم تحديد {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/bg-BG.json
var $d270120dd3675c3f0f2f5207baa387d6$exports = {};
$d270120dd3675c3f0f2f5207baa387d6$exports = JSON.parse("{\"dateSelected\":\"избрани {date, date, full}\",\"finishRangeSelectionPrompt\":\"Натиснете, за да довършите избора на времеви интервал\",\"next\":\"Напред\",\"previous\":\"Назад\",\"selectedDateDescription\":\"Избрана дата: {date, date, full}\",\"selectedRangeDescription\":\"Избран интервал: от {start, date, long} до {end, date, long}\",\"startRangeSelectionPrompt\":\"Натиснете, за да пристъпите към избора на времеви интервал\",\"todayDate\":\"Днес {date, date, full}\",\"todayDateSelected\":\"Днес са избрани {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/cs-CZ.json
var $f2859539a632d104d935b1f8d79d34$exports = {};
$f2859539a632d104d935b1f8d79d34$exports = JSON.parse("{\"dateSelected\":\"Vybráno: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknutím dokončíte výběr rozsahu dat\",\"next\":\"Další\",\"previous\":\"Předchozí\",\"selectedDateDescription\":\"Zvolené datum: {date, date, full}\",\"selectedRangeDescription\":\"Zvolený rozsah: {start, date, long} až {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknutím zahájíte výběr rozsahu dat\",\"todayDate\":\"Dnes, {date, date, full}\",\"todayDateSelected\":\"Vybrán dnešek: {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/da-DK.json
var $a6b461c9add3e239a7f9688a896f$exports = {};
$a6b461c9add3e239a7f9688a896f$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valgt\",\"finishRangeSelectionPrompt\":\"Klik for at fuldføre valg af datoområde\",\"next\":\"Næste\",\"previous\":\"Forrige\",\"selectedDateDescription\":\"Valgt dato: {date, date, full}\",\"selectedRangeDescription\":\"Valgt område: {start, date, long} til {end, date, long}\",\"startRangeSelectionPrompt\":\"Klik for at starte valg af datoområde\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} valgt\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/de-DE.json
var $ecb7bac46525204a5a0ba5e9b90678f$exports = {};
$ecb7bac46525204a5a0ba5e9b90678f$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} ausgewählt\",\"finishRangeSelectionPrompt\":\"Klicken, um die Auswahl des Datumsbereichs zu beenden\",\"next\":\"Weiter\",\"previous\":\"Zurück\",\"selectedDateDescription\":\"Ausgewähltes Datum: {date, date, full}\",\"selectedRangeDescription\":\"Bereich auswählen: {start, date, long} bis {end, date, long}\",\"startRangeSelectionPrompt\":\"Klicken, um die Auswahl des Datumsbereichs zu beginnen\",\"todayDate\":\"Heute, {date, date, full}\",\"todayDateSelected\":\"Heute, {date, date, full} ausgewählt\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/el-GR.json
var $c8d883b68b00e9f39ef71f6038c8e9ba$exports = {};
$c8d883b68b00e9f39ef71f6038c8e9ba$exports = JSON.parse("{\"dateSelected\":\"Επιλέχτηκε {date, date, full}\",\"finishRangeSelectionPrompt\":\"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών\",\"next\":\"Επόμενο\",\"previous\":\"Προηγούμενο\",\"selectedDateDescription\":\"Επιλεγμένη ημερομηνία: {date, date, full}\",\"selectedRangeDescription\":\"Επιλεγμένο εύρος: {start, date, long} έως {end, date, long}\",\"startRangeSelectionPrompt\":\"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών\",\"todayDate\":\"Σήμερα, {date, date, full}\",\"todayDateSelected\":\"Σήμερα, επιλέχτηκε {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/en-US.json
var $ac06706e559d76298edf15cb628964a3$exports = {};
$ac06706e559d76298edf15cb628964a3$exports = JSON.parse("{\"previous\":\"Previous\",\"next\":\"Next\",\"selectedDateDescription\":\"Selected Date: {date, date, full}\",\"selectedRangeDescription\":\"Selected Range: {start, date, long} to {end, date, long}\",\"todayDate\":\"Today, {date, date, full}\",\"todayDateSelected\":\"Today, {date, date, full} selected\",\"dateSelected\":\"{date, date, full} selected\",\"startRangeSelectionPrompt\":\"Click to start selecting date range\",\"finishRangeSelectionPrompt\":\"Click to finish selecting date range\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/es-ES.json
var $f1f132a4617eec58dc48e2c3f9a$exports = {};
$f1f132a4617eec58dc48e2c3f9a$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} seleccionado\",\"finishRangeSelectionPrompt\":\"Haga clic para terminar de seleccionar rango de fechas\",\"next\":\"Siguiente\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Fecha seleccionada: {date, date, full}\",\"selectedRangeDescription\":\"Seleccionar rango: {start, date, long} a {end, date, long}\",\"startRangeSelectionPrompt\":\"Haga clic para comenzar a seleccionar un rango de fechas\",\"todayDate\":\"Hoy, {date, date, full}\",\"todayDateSelected\":\"Hoy, {date, date, full} seleccionado\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/et-EE.json
var $a5cb449787362ba2de4e4924f88b$exports = {};
$a5cb449787362ba2de4e4924f88b$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valitud\",\"finishRangeSelectionPrompt\":\"Klõpsake kuupäevavahemiku valimise lõpetamiseks\",\"next\":\"Järgmine\",\"previous\":\"Eelmine\",\"selectedDateDescription\":\"Valitud kuupäev: {date, date, full}\",\"selectedRangeDescription\":\"Valitud vahemik: {start, date, long} kuni {end, date, long}\",\"startRangeSelectionPrompt\":\"Klõpsake kuupäevavahemiku valimiseks\",\"todayDate\":\"Täna {date, date, full}\",\"todayDateSelected\":\"Täna {date, date, full} valitud\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/fi-FI.json
var $a13eb2ade8e373fd2bc52082$exports = {};
$a13eb2ade8e373fd2bc52082$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valittu\",\"finishRangeSelectionPrompt\":\"Lopeta päivämääräalueen valinta napsauttamalla tätä.\",\"next\":\"Seuraava\",\"previous\":\"Edellinen\",\"selectedDateDescription\":\"Valittu päivämäärä: {date, date, full}\",\"selectedRangeDescription\":\"Valittu alue: {start, date, long} - {end, date, long}\",\"startRangeSelectionPrompt\":\"Aloita päivämääräalueen valinta napsauttamalla tätä.\",\"todayDate\":\"Tänään, {date, date, full}\",\"todayDateSelected\":\"Tänään, {date, date, full} valittu\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/fr-FR.json
var $fed74c7501751e185712ca861bf5e1a3$exports = {};
$fed74c7501751e185712ca861bf5e1a3$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} sélectionné\",\"finishRangeSelectionPrompt\":\"Cliquer pour finir de sélectionner la plage de dates\",\"next\":\"Suivant\",\"previous\":\"Précédent\",\"selectedDateDescription\":\"Date sélectionnée : {date, date, full}\",\"selectedRangeDescription\":\"Plage sélectionnée : {start, date, long} à {end, date, long}\",\"startRangeSelectionPrompt\":\"Cliquer pour commencer à sélectionner la plage de dates\",\"todayDate\":\"Aujourd’hui, {date, date, full}\",\"todayDateSelected\":\"Aujourd’hui, {date, date, full} sélectionné\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/he-IL.json
var $f571638c72ac25246aa6686003de6eef$exports = {};
$f571638c72ac25246aa6686003de6eef$exports = JSON.parse("{\"dateSelected\":\"התאריך {date, date, full} שנבחר\",\"finishRangeSelectionPrompt\":\"חץ כדי לסיים את בחירת טווח התאריכים\",\"next\":\"הבא\",\"previous\":\"הקודם\",\"selectedDateDescription\":\"התאריך שנבחר: {date, date, full}\",\"selectedRangeDescription\":\"הטווח שנבחר: מ-{start, date, long} ועד {end, date, long}\",\"startRangeSelectionPrompt\":\"לחץ כדי להתחיל בבחירת טווח התאריכים\",\"todayDate\":\"היום, {date, date, full}\",\"todayDateSelected\":\"היום, התאריך {date, date, full} שנבחר\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/hr-HR.json
var $a75c5d1428c2b2365d73e03edc3c18d$exports = {};
$a75c5d1428c2b2365d73e03edc3c18d$exports = JSON.parse("{\"dateSelected\":\"Odabran {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite da dovršite raspon odabranih datuma\",\"next\":\"Sljedeći\",\"previous\":\"Prethodni\",\"selectedDateDescription\":\"Odabrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Odabrani raspon: od {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite da započnete raspon odabranih datuma\",\"todayDate\":\"Danas, {date, date, full}\",\"todayDateSelected\":\"Danas, odabran {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/hu-HU.json
var $b0acd367e0ac8f6bcf73c1f7a16b435d$exports = {};
$b0acd367e0ac8f6bcf73c1f7a16b435d$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} kijelölve\",\"finishRangeSelectionPrompt\":\"Kattintson a dátumtartomány kijelölésének befejezéséhez\",\"next\":\"Következő\",\"previous\":\"Előző\",\"selectedDateDescription\":\"Kijelölt dátum: {date, date, full}\",\"selectedRangeDescription\":\"Kijelölt tartomány: {start, date, long} – {end, date, long}\",\"startRangeSelectionPrompt\":\"Kattintson a dátumtartomány kijelölésének indításához\",\"todayDate\":\"Ma, {date, date, full}\",\"todayDateSelected\":\"Ma, {date, date, full} kijelölve\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/it-IT.json
var $fc4b4136a6738764e9a040f9cd661b$exports = {};
$fc4b4136a6738764e9a040f9cd661b$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selezionato\",\"finishRangeSelectionPrompt\":\"Fai clic per completare la selezione dell’intervallo di date\",\"next\":\"Successivo\",\"previous\":\"Precedente\",\"selectedDateDescription\":\"Data selezionata: {date, date, full}\",\"selectedRangeDescription\":\"Intervallo selezionato: da {start, date, long} a {end, date, long}\",\"startRangeSelectionPrompt\":\"Fai clic per selezionare l’intervallo di date\",\"todayDate\":\"Oggi, {date, date, full}\",\"todayDateSelected\":\"Oggi, {date, date, full} selezionato\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ja-JP.json
var $e820e8059e43233b28daa04ff39dc0$exports = {};
$e820e8059e43233b28daa04ff39dc0$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} を選択\",\"finishRangeSelectionPrompt\":\"クリックして日付範囲の選択を終了\",\"next\":\"次へ\",\"previous\":\"前へ\",\"selectedDateDescription\":\"日付を選択:{date, date, full}\",\"selectedRangeDescription\":\"範囲を選択:{start, date, long} から {end, date, long}\",\"startRangeSelectionPrompt\":\"クリックして日付範囲の選択を開始\",\"todayDate\":\"本日、{date, date, full}\",\"todayDateSelected\":\"本日、{date, date, full} を選択\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ko-KR.json
var $cbde4ca9eba9467e036b5f7ff231225d$exports = {};
$cbde4ca9eba9467e036b5f7ff231225d$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} 선택함\",\"finishRangeSelectionPrompt\":\"날짜 범위 선택을 완료하려면 클릭하십시오.\",\"next\":\"다음\",\"previous\":\"이전\",\"selectedDateDescription\":\"선택한 날짜: {date, date, full}\",\"selectedRangeDescription\":\"선택한 범위: {start, date, long} ~ {end, date, long}\",\"startRangeSelectionPrompt\":\"날짜 범위 선택을 시작하려면 클릭하십시오.\",\"todayDate\":\"오늘, {date, date, full}\",\"todayDateSelected\":\"오늘, {date, date, full} 선택함\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/lt-LT.json
var $cf816c695d5ed3af1393be09906df9cc$exports = {};
$cf816c695d5ed3af1393be09906df9cc$exports = JSON.parse("{\"dateSelected\":\"Pasirinkta {date, date, full}\",\"finishRangeSelectionPrompt\":\"Spustelėkite, kad baigtumėte pasirinkti datų intervalą\",\"next\":\"Paskesnis\",\"previous\":\"Ankstesnis\",\"selectedDateDescription\":\"Pasirinkta data: {date, date, full}\",\"selectedRangeDescription\":\"Pasirinktas intervalas: nuo {start, date, long} iki {end, date, long}\",\"startRangeSelectionPrompt\":\"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą\",\"todayDate\":\"Šiandien, {date, date, full}\",\"todayDateSelected\":\"Šiandien, pasirinkta {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/lv-LV.json
var $dd3751d90515e59dc9ccc1fe97fa3cf2$exports = {};
$dd3751d90515e59dc9ccc1fe97fa3cf2$exports = JSON.parse("{\"dateSelected\":\"Atlasīts {date, date, full}\",\"finishRangeSelectionPrompt\":\"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi\",\"next\":\"Tālāk\",\"previous\":\"Atpakaļ\",\"selectedDateDescription\":\"Atlasītais datums: {date, date, full}\",\"selectedRangeDescription\":\"Atlasītais diapazons: {start, date, long} līdz {end, date, long}\",\"startRangeSelectionPrompt\":\"Noklikšķiniet, lai sāktu datumu diapazona atlasi\",\"todayDate\":\"Šodiena, {date, date, full}\",\"todayDateSelected\":\"Atlasīta šodiena, {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/nb-NO.json
var $ca83791cb2c2bcaf9ec9bc6cdf5dada$exports = {};
$ca83791cb2c2bcaf9ec9bc6cdf5dada$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valgt\",\"finishRangeSelectionPrompt\":\"Klikk for å fullføre valg av datoområde\",\"next\":\"Neste\",\"previous\":\"Forrige\",\"selectedDateDescription\":\"Valgt dato: {date, date, full}\",\"selectedRangeDescription\":\"Valgt område: {start, date, long} til {end, date, long}\",\"startRangeSelectionPrompt\":\"Klikk for å starte valg av datoområde\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} valgt\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/nl-NL.json
var $ae20ff20c3663360f5e0f530b4d3a$exports = {};
$ae20ff20c3663360f5e0f530b4d3a$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} geselecteerd\",\"finishRangeSelectionPrompt\":\"Klik om de selectie van het datumbereik te voltooien\",\"next\":\"Volgende\",\"previous\":\"Vorige\",\"selectedDateDescription\":\"Geselecteerde datum: {date, date, full}\",\"selectedRangeDescription\":\"Geselecteerd bereik: {start, date, long} t/m {end, date, long}\",\"startRangeSelectionPrompt\":\"Klik om het datumbereik te selecteren\",\"todayDate\":\"Vandaag, {date, date, full}\",\"todayDateSelected\":\"Vandaag, {date, date, full} geselecteerd\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/pl-PL.json
var $ebc67cae7dd114ffff5ac7ea895$exports = {};
$ebc67cae7dd114ffff5ac7ea895$exports = JSON.parse("{\"dateSelected\":\"Wybrano {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknij, aby zakończyć wybór zakresu dat\",\"next\":\"Dalej\",\"previous\":\"Wstecz\",\"selectedDateDescription\":\"Wybrana data: {date, date, full}\",\"selectedRangeDescription\":\"Wybrany zakres: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknij, aby rozpocząć wybór zakresu dat\",\"todayDate\":\"Dzisiaj {date, date, full}\",\"todayDateSelected\":\"Dzisiaj wybrano {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/pt-BR.json
var $c64e56df4203b3b3d07$exports = {};
$c64e56df4203b3b3d07$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selecionado\",\"finishRangeSelectionPrompt\":\"Clique para concluir a seleção do intervalo de datas\",\"next\":\"Próximo\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Data selecionada: {date, date, full}\",\"selectedRangeDescription\":\"Intervalo selecionado: {start, date, long} até {end, date, long}\",\"startRangeSelectionPrompt\":\"Clique para iniciar a seleção do intervalo de datas\",\"todayDate\":\"Hoje, {date, date, full}\",\"todayDateSelected\":\"Hoje, {date, date, full} selecionado\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/pt-PT.json
var $e246c58307d1ccea9d00a5ca69c034$exports = {};
$e246c58307d1ccea9d00a5ca69c034$exports = JSON.parse("{\"dateSelected\":\"{data, data, completo} selecionado\",\"finishRangeSelectionPrompt\":\"Clique para terminar de selecionar o intervalo de datas\",\"next\":\"Próximo\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Data Selecionada: {data, data, completo}\",\"selectedRangeDescription\":\"Selecionar Intervalo: {início, data, longo} a {término, data, longo}\",\"startRangeSelectionPrompt\":\"Clique para começar a selecionar o intervalo de datas\",\"todayDate\":\"Hoje, {date, date, full}\",\"todayDateSelected\":\"Hoje, {date, date, full} selecionado\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ro-RO.json
var $cfbe9ab4205a731e02558d5bd6dae4b$exports = {};
$cfbe9ab4205a731e02558d5bd6dae4b$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selectată\",\"finishRangeSelectionPrompt\":\"Apăsaţi pentru a finaliza selecţia razei pentru dată\",\"next\":\"Următorul\",\"previous\":\"Înainte\",\"selectedDateDescription\":\"Dată selectată: {date, date, full}\",\"selectedRangeDescription\":\"Selectaţi raza: {start, date, long} la {end, date, long}\",\"startRangeSelectionPrompt\":\"Apăsaţi pentru a începe selecţia razei pentru dată\",\"todayDate\":\"Astăzi, {date, date, full}\",\"todayDateSelected\":\"Dată, {date, date, full} selectată\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/ru-RU.json
var $e28d4bd0f24e47931dfe0f4ce5a$exports = {};
$e28d4bd0f24e47931dfe0f4ce5a$exports = JSON.parse("{\"dateSelected\":\"выбрано {date, date, full}\",\"finishRangeSelectionPrompt\":\"Щелкните, чтобы завершить выбор диапазона дат\",\"next\":\"Далее\",\"previous\":\"Назад\",\"selectedDateDescription\":\"Выбранная дата: {date, date, full}\",\"selectedRangeDescription\":\"Выбранный диапазон: {start, date, long} – {end, date, long}\",\"startRangeSelectionPrompt\":\"Щелкните, чтобы начать выбор диапазона дат\",\"todayDate\":\"Сегодня, {date, date, full}\",\"todayDateSelected\":\"Сегодня, выбрано {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/sk-SK.json
var $f1fa21db7f5bd96e96134309d1cbdad8$exports = {};
$f1fa21db7f5bd96e96134309d1cbdad8$exports = JSON.parse("{\"dateSelected\":\"Vybratý dátum {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknutím dokončíte výber rozsahu dátumov\",\"next\":\"Nasledujúce\",\"previous\":\"Predchádzajúce\",\"selectedDateDescription\":\"Vybratý dátum: {date, date, full}\",\"selectedRangeDescription\":\"Vybratý rozsah dátumov: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknutím spustíte výber rozsahu dátumov\",\"todayDate\":\"Dnešný dátum, {date, date, full}\",\"todayDateSelected\":\"Vybratý dnešný dátum, {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/sl-SI.json
var $d209f467d457081b504031d7e42c06b$exports = {};
$d209f467d457081b504031d7e42c06b$exports = JSON.parse("{\"dateSelected\":\"izbrano: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite za dokončanje izbire datumskega obsega\",\"next\":\"Naprej\",\"previous\":\"Nazaj\",\"selectedDateDescription\":\"Izbrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Izbrani razpon: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite za začetek izbire datumskega obsega\",\"todayDate\":\"Danes, {date, date, full}\",\"todayDateSelected\":\"Danes, izbrano: {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/sr-SP.json
var $a9e31f7026f3c098c7f5a39df248d1dc$exports = {};
$a9e31f7026f3c098c7f5a39df248d1dc$exports = JSON.parse("{\"dateSelected\":\"Izabran {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite da dovršite opseg izabranih datuma\",\"next\":\"Sledeći\",\"previous\":\"Prethodni\",\"selectedDateDescription\":\"Izabrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Izabrani opseg: od {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite da započnete opseg izabranih datuma\",\"todayDate\":\"Danas, {date, date, full}\",\"todayDateSelected\":\"Danas, izabran {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/sv-SE.json
var $e8e0dd29381b632189fca24cc639d3$exports = {};
$e8e0dd29381b632189fca24cc639d3$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} har valts\",\"finishRangeSelectionPrompt\":\"Klicka för att avsluta val av datumintervall\",\"next\":\"Nästa\",\"previous\":\"Föregående\",\"selectedDateDescription\":\"Valt datum: {date, date, full}\",\"selectedRangeDescription\":\"Valt intervall: {start, date, long} till {end, date, long}\",\"startRangeSelectionPrompt\":\"Klicka för att välja datumintervall\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} har valts\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/tr-TR.json
var $b439a507d0c0b745fc06364611f52fe0$exports = {};
$b439a507d0c0b745fc06364611f52fe0$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} seçildi\",\"finishRangeSelectionPrompt\":\"Tarih aralığı seçimini tamamlamak için tıklayın\",\"next\":\"Sonraki\",\"previous\":\"Önceki\",\"selectedDateDescription\":\"Seçili Tarih: {date, date, full}\",\"selectedRangeDescription\":\"Seçili Aralık: {start, date, long} - {end, date, long}\",\"startRangeSelectionPrompt\":\"Tarih aralığı seçimini başlatmak için tıklayın\",\"todayDate\":\"Bugün, {date, date, full}\",\"todayDateSelected\":\"Bugün, {date, date, full} seçildi\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/uk-UA.json
var $c02b819666304673ecaffd2664761e$exports = {};
$c02b819666304673ecaffd2664761e$exports = JSON.parse("{\"dateSelected\":\"Вибрано: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Натисніть, щоб завершити вибір діапазону дат\",\"next\":\"Наступний\",\"previous\":\"Попередній\",\"selectedDateDescription\":\"Вибрана дата: {date, date, full}\",\"selectedRangeDescription\":\"Вибраний діапазон: від {start, date, long} до {end, date, long}\",\"startRangeSelectionPrompt\":\"Натисніть, щоб почати вибір діапазону дат\",\"todayDate\":\"Сьогодні: {date, date, full}\",\"todayDateSelected\":\"Сьогодні вибрано: {date, date, full}\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/zh-CN.json
var $a72fb3ab2102fad411126e39d859f888$exports = {};
$a72fb3ab2102fad411126e39d859f888$exports = JSON.parse("{\"dateSelected\":\"已选择 {date, date, full}\",\"finishRangeSelectionPrompt\":\"单击以完成选择日期范围\",\"next\":\"下一页\",\"previous\":\"上一页\",\"selectedDateDescription\":\"选定的日期: {date, date, full}\",\"selectedRangeDescription\":\"选定的范围: {start, date, long} 到 {end, date, long}\",\"startRangeSelectionPrompt\":\"单击以开始选择日期范围\",\"todayDate\":\"今天({date, date, full})\",\"todayDateSelected\":\"已选择今天({date, date, full})\"}");
// ASSET: /Users/govett/dev/react-spectrum-v3/packages/@react-aria/calendar/intl/zh-TW.json
var $b53d528acee5b284c723b73129884718$exports = {};
$b53d528acee5b284c723b73129884718$exports = JSON.parse("{\"dateSelected\":\"已選取 {date, date, full}\",\"finishRangeSelectionPrompt\":\"按一下以完成選取日期範圍\",\"next\":\"下一頁\",\"previous\":\"上一頁\",\"selectedDateDescription\":\"選取日期: {date, date, full}\",\"selectedRangeDescription\":\"選取範圍: {start, date, long} 至 {end, date, long}\",\"startRangeSelectionPrompt\":\"按一下以開始選取日期範圍\",\"todayDate\":\"今日,{date, date, full}\",\"todayDateSelected\":\"今日,已選取 {date, date, full}\"}");
// @ts-ignore
const $ef45684272bee3ee80a1ecef1f413f$var$intlMessages = {
"ar-AE": _babelRuntimeHelpersEsmInteropRequireDefault($b3d1873a10b51c61e0fe53054ebdeb$exports).default,
"bg-BG": _babelRuntimeHelpersEsmInteropRequireDefault($d270120dd3675c3f0f2f5207baa387d6$exports).default,
"cs-CZ": _babelRuntimeHelpersEsmInteropRequireDefault($f2859539a632d104d935b1f8d79d34$exports).default,
"da-DK": _babelRuntimeHelpersEsmInteropRequireDefault($a6b461c9add3e239a7f9688a896f$exports).default,
"de-DE": _babelRuntimeHelpersEsmInteropRequireDefault($ecb7bac46525204a5a0ba5e9b90678f$exports).default,
"el-GR": _babelRuntimeHelpersEsmInteropRequireDefault($c8d883b68b00e9f39ef71f6038c8e9ba$exports).default,
"en-US": _babelRuntimeHelpersEsmInteropRequireDefault($ac06706e559d76298edf15cb628964a3$exports).default,
"es-ES": _babelRuntimeHelpersEsmInteropRequireDefault($f1f132a4617eec58dc48e2c3f9a$exports).default,
"et-EE": _babelRuntimeHelpersEsmInteropRequireDefault($a5cb449787362ba2de4e4924f88b$exports).default,
"fi-FI": _babelRuntimeHelpersEsmInteropRequireDefault($a13eb2ade8e373fd2bc52082$exports).default,
"fr-FR": _babelRuntimeHelpersEsmInteropRequireDefault($fed74c7501751e185712ca861bf5e1a3$exports).default,
"he-IL": _babelRuntimeHelpersEsmInteropRequireDefault($f571638c72ac25246aa6686003de6eef$exports).default,
"hr-HR": _babelRuntimeHelpersEsmInteropRequireDefault($a75c5d1428c2b2365d73e03edc3c18d$exports).default,
"hu-HU": _babelRuntimeHelpersEsmInteropRequireDefault($b0acd367e0ac8f6bcf73c1f7a16b435d$exports).default,
"it-IT": _babelRuntimeHelpersEsmInteropRequireDefault($fc4b4136a6738764e9a040f9cd661b$exports).default,
"ja-JP": _babelRuntimeHelpersEsmInteropRequireDefault($e820e8059e43233b28daa04ff39dc0$exports).default,
"ko-KR": _babelRuntimeHelpersEsmInteropRequireDefault($cbde4ca9eba9467e036b5f7ff231225d$exports).default,
"lt-LT": _babelRuntimeHelpersEsmInteropRequireDefault($cf816c695d5ed3af1393be09906df9cc$exports).default,
"lv-LV": _babelRuntimeHelpersEsmInteropRequireDefault($dd3751d90515e59dc9ccc1fe97fa3cf2$exports).default,
"nb-NO": _babelRuntimeHelpersEsmInteropRequireDefault($ca83791cb2c2bcaf9ec9bc6cdf5dada$exports).default,
"nl-NL": _babelRuntimeHelpersEsmInteropRequireDefault($ae20ff20c3663360f5e0f530b4d3a$exports).default,
"pl-PL": _babelRuntimeHelpersEsmInteropRequireDefault($ebc67cae7dd114ffff5ac7ea895$exports).default,
"pt-BR": _babelRuntimeHelpersEsmInteropRequireDefault($c64e56df4203b3b3d07$exports).default,
"pt-PT": _babelRuntimeHelpersEsmInteropRequireDefault($e246c58307d1ccea9d00a5ca69c034$exports).default,
"ro-RO": _babelRuntimeHelpersEsmInteropRequireDefault($cfbe9ab4205a731e02558d5bd6dae4b$exports).default,
"ru-RU": _babelRuntimeHelpersEsmInteropRequireDefault($e28d4bd0f24e47931dfe0f4ce5a$exports).default,
"sk-SK": _babelRuntimeHelpersEsmInteropRequireDefault($f1fa21db7f5bd96e96134309d1cbdad8$exports).default,
"sl-SI": _babelRuntimeHelpersEsmInteropRequireDefault($d209f467d457081b504031d7e42c06b$exports).default,
"sr-SP": _babelRuntimeHelpersEsmInteropRequireDefault($a9e31f7026f3c098c7f5a39df248d1dc$exports).default,
"sv-SE": _babelRuntimeHelpersEsmInteropRequireDefault($e8e0dd29381b632189fca24cc639d3$exports).default,
"tr-TR": _babelRuntimeHelpersEsmInteropRequireDefault($b439a507d0c0b745fc06364611f52fe0$exports).default,
"uk-UA": _babelRuntimeHelpersEsmInteropRequireDefault($c02b819666304673ecaffd2664761e$exports).default,
"zh-CN": _babelRuntimeHelpersEsmInteropRequireDefault($a72fb3ab2102fad411126e39d859f888$exports).default,
"zh-TW": _babelRuntimeHelpersEsmInteropRequireDefault($b53d528acee5b284c723b73129884718$exports).default
};
const $ef45684272bee3ee80a1ecef1f413f$export$calendarIds = new WeakMap();
import {announce as $fMuHj$announce} from "@react-aria/live-announcer";
import {useId as $fMuHj$useId, useUpdateEffect as $fMuHj$useUpdateEffect, useDescription as $fMuHj$useDescription, mergeProps as $fMuHj$mergeProps, useEvent as $fMuHj$useEvent, useLabels as $fMuHj$useLabels, focusWithoutScrolling as $fMuHj$focusWithoutScrolling} from "@react-aria/utils";
import {useMessageFormatter as $fMuHj$useMessageFormatter, useDateFormatter as $fMuHj$useDateFormatter, useLocale as $fMuHj$useLocale} from "@react-aria/i18n";
import {isSameDay as $fMuHj$isSameDay, toDate as $fMuHj$toDate, startOfMonth as $fMuHj$startOfMonth, endOfMonth as $fMuHj$endOfMonth, isEqualDay as $fMuHj$isEqualDay, isToday as $fMuHj$isToday, isSameMonth as $fMuHj$isSameMonth} from "@internationalized/date";
import {useMemo as $fMuHj$useMemo, useRef as $fMuHj$useRef, useEffect as $fMuHj$useEffect} from "react";
import {usePress as $fMuHj$usePress} from "@react-aria/interactions";
function $ef45684272bee3ee80a1ecef1f413f$export$useSelectedDateDescription(state) {
let formatMessage = useMessageFormatter($ef45684272bee3ee80a1ecef1f413f$var$intlMessages);
let start, end;
function $parcel$export(e, n, v, s) {
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
}
function $parcel$interopDefault(a) {
return a && a.__esModule ? a.default : a;
}
var $e887a1fb79d9897c$exports = {};
if ('highlightedRange' in state) {
({
start,
end
} = state.highlightedRange || {});
} else {
start = end = state.value;
}
$parcel$export($e887a1fb79d9897c$exports, "useCalendar", () => $e887a1fb79d9897c$export$3ee915f8151bd4f1);
let anchorDate = 'anchorDate' in state ? state.anchorDate : null;
return useMemo(() => {
// No message if currently selecting a range, or there is nothing highlighted.
if (!anchorDate && start && end) {
// Use a single date message if the start and end dates are the same day,
// otherwise include both dates.
if (isSameDay(start, end)) {
return formatMessage('selectedDateDescription', {
date: toDate(start, state.timeZone)
});
} else {
return formatMessage('selectedRangeDescription', {
start: toDate(start, state.timeZone),
end: toDate(end, state.timeZone)
});
}
}
return '';
}, [start, end, anchorDate, state.timeZone, formatMessage]);
}
var $5b4ce6a94ce0b71e$exports = {};
var $3f196f0e4eac3c3e$exports = {};
$3f196f0e4eac3c3e$exports = JSON.parse("{\"dateSelected\":\"تم تحديد {date, date, full}\",\"finishRangeSelectionPrompt\":\"انقر لإنهاء عملية تحديد نطاق التاريخ\",\"next\":\"التالي\",\"previous\":\"السابق\",\"selectedDateDescription\":\"التاريخ المحدد: {date, date, full}\",\"selectedRangeDescription\":\"النطاق المحدد: {start, date, long} إلى {end, date, long}\",\"startRangeSelectionPrompt\":\"انقر لبدء عملية تحديد نطاق التاريخ\",\"todayDate\":\"اليوم، {date, date, full}\",\"todayDateSelected\":\"اليوم، تم تحديد {date, date, full}\"}");
function $ef45684272bee3ee80a1ecef1f413f$export$useVisibleRangeDescription(startDate, endDate, timeZone) {
let monthFormatter = useDateFormatter({
month: 'long',
year: 'numeric',
era: startDate.calendar.identifier !== 'gregory' ? 'long' : undefined,
calendar: startDate.calendar.identifier
});
let dateFormatter = useDateFormatter({
dateStyle: 'long',
calendar: startDate.calendar.identifier
});
return useMemo(() => {
// Special case for month granularity. Format as a single month if only a
// single month is visible, otherwise format as a range of months.
if (isSameDay(startDate, startOfMonth(startDate))) {
if (isSameDay(endDate, endOfMonth(startDate))) {
return monthFormatter.format(startDate.toDate(timeZone));
} else if (isSameDay(endDate, endOfMonth(endDate))) {
return monthFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
}
}
return dateFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
}, [startDate, endDate, monthFormatter, dateFormatter, timeZone]);
}
var $8aae80b09186378b$exports = {};
$8aae80b09186378b$exports = JSON.parse("{\"dateSelected\":\"избрани {date, date, full}\",\"finishRangeSelectionPrompt\":\"Натиснете, за да довършите избора на времеви интервал\",\"next\":\"Напред\",\"previous\":\"Назад\",\"selectedDateDescription\":\"Избрана дата: {date, date, full}\",\"selectedRangeDescription\":\"Избран интервал: от {start, date, long} до {end, date, long}\",\"startRangeSelectionPrompt\":\"Натиснете, за да пристъпите към избора на времеви интервал\",\"todayDate\":\"Днес {date, date, full}\",\"todayDateSelected\":\"Днес са избрани {date, date, full}\"}");
// @ts-ignore
const $aab29d25852cbc1abfc898cac6554dc5$var$intlMessages = {
"ar-AE": _babelRuntimeHelpersEsmInteropRequireDefault($b3d1873a10b51c61e0fe53054ebdeb$exports).default,
"bg-BG": _babelRuntimeHelpersEsmInteropRequireDefault($d270120dd3675c3f0f2f5207baa387d6$exports).default,
"cs-CZ": _babelRuntimeHelpersEsmInteropRequireDefault($f2859539a632d104d935b1f8d79d34$exports).default,
"da-DK": _babelRuntimeHelpersEsmInteropRequireDefault($a6b461c9add3e239a7f9688a896f$exports).default,
"de-DE": _babelRuntimeHelpersEsmInteropRequireDefault($ecb7bac46525204a5a0ba5e9b90678f$exports).default,
"el-GR": _babelRuntimeHelpersEsmInteropRequireDefault($c8d883b68b00e9f39ef71f6038c8e9ba$exports).default,
"en-US": _babelRuntimeHelpersEsmInteropRequireDefault($ac06706e559d76298edf15cb628964a3$exports).default,
"es-ES": _babelRuntimeHelpersEsmInteropRequireDefault($f1f132a4617eec58dc48e2c3f9a$exports).default,
"et-EE": _babelRuntimeHelpersEsmInteropRequireDefault($a5cb449787362ba2de4e4924f88b$exports).default,
"fi-FI": _babelRuntimeHelpersEsmInteropRequireDefault($a13eb2ade8e373fd2bc52082$exports).default,
"fr-FR": _babelRuntimeHelpersEsmInteropRequireDefault($fed74c7501751e185712ca861bf5e1a3$exports).default,
"he-IL": _babelRuntimeHelpersEsmInteropRequireDefault($f571638c72ac25246aa6686003de6eef$exports).default,
"hr-HR": _babelRuntimeHelpersEsmInteropRequireDefault($a75c5d1428c2b2365d73e03edc3c18d$exports).default,
"hu-HU": _babelRuntimeHelpersEsmInteropRequireDefault($b0acd367e0ac8f6bcf73c1f7a16b435d$exports).default,
"it-IT": _babelRuntimeHelpersEsmInteropRequireDefault($fc4b4136a6738764e9a040f9cd661b$exports).default,
"ja-JP": _babelRuntimeHelpersEsmInteropRequireDefault($e820e8059e43233b28daa04ff39dc0$exports).default,
"ko-KR": _babelRuntimeHelpersEsmInteropRequireDefault($cbde4ca9eba9467e036b5f7ff231225d$exports).default,
"lt-LT": _babelRuntimeHelpersEsmInteropRequireDefault($cf816c695d5ed3af1393be09906df9cc$exports).default,
"lv-LV": _babelRuntimeHelpersEsmInteropRequireDefault($dd3751d90515e59dc9ccc1fe97fa3cf2$exports).default,
"nb-NO": _babelRuntimeHelpersEsmInteropRequireDefault($ca83791cb2c2bcaf9ec9bc6cdf5dada$exports).default,
"nl-NL": _babelRuntimeHelpersEsmInteropRequireDefault($ae20ff20c3663360f5e0f530b4d3a$exports).default,
"pl-PL": _babelRuntimeHelpersEsmInteropRequireDefault($ebc67cae7dd114ffff5ac7ea895$exports).default,
"pt-BR": _babelRuntimeHelpersEsmInteropRequireDefault($c64e56df4203b3b3d07$exports).default,
"pt-PT": _babelRuntimeHelpersEsmInteropRequireDefault($e246c58307d1ccea9d00a5ca69c034$exports).default,
"ro-RO": _babelRuntimeHelpersEsmInteropRequireDefault($cfbe9ab4205a731e02558d5bd6dae4b$exports).default,
"ru-RU": _babelRuntimeHelpersEsmInteropRequireDefault($e28d4bd0f24e47931dfe0f4ce5a$exports).default,
"sk-SK": _babelRuntimeHelpersEsmInteropRequireDefault($f1fa21db7f5bd96e96134309d1cbdad8$exports).default,
"sl-SI": _babelRuntimeHelpersEsmInteropRequireDefault($d209f467d457081b504031d7e42c06b$exports).default,
"sr-SP": _babelRuntimeHelpersEsmInteropRequireDefault($a9e31f7026f3c098c7f5a39df248d1dc$exports).default,
"sv-SE": _babelRuntimeHelpersEsmInteropRequireDefault($e8e0dd29381b632189fca24cc639d3$exports).default,
"tr-TR": _babelRuntimeHelpersEsmInteropRequireDefault($b439a507d0c0b745fc06364611f52fe0$exports).default,
"uk-UA": _babelRuntimeHelpersEsmInteropRequireDefault($c02b819666304673ecaffd2664761e$exports).default,
"zh-CN": _babelRuntimeHelpersEsmInteropRequireDefault($a72fb3ab2102fad411126e39d859f888$exports).default,
"zh-TW": _babelRuntimeHelpersEsmInteropRequireDefault($b53d528acee5b284c723b73129884718$exports).default
};
function $aab29d25852cbc1abfc898cac6554dc5$export$useCalendarBase(props, state) {
let formatMessage = useMessageFormatter($aab29d25852cbc1abfc898cac6554dc5$var$intlMessages);
let calendarId = useId(props.id);
let visibleRangeDescription = $ef45684272bee3ee80a1ecef1f413f$export$useVisibleRangeDescription(state.visibleRange.start, state.visibleRange.end, state.timeZone); // Announce when the visible date range changes
var $c737bc907c0f0bd4$exports = {};
$c737bc907c0f0bd4$exports = JSON.parse("{\"dateSelected\":\"Vybráno: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknutím dokončíte výběr rozsahu dat\",\"next\":\"Další\",\"previous\":\"Předchozí\",\"selectedDateDescription\":\"Zvolené datum: {date, date, full}\",\"selectedRangeDescription\":\"Zvolený rozsah: {start, date, long} až {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknutím zahájíte výběr rozsahu dat\",\"todayDate\":\"Dnes, {date, date, full}\",\"todayDateSelected\":\"Vybrán dnešek: {date, date, full}\"}");
useUpdateEffect(() => {
// only when pressing the Previous or Next button
if (!state.isFocused) {
announce(visibleRangeDescription);
}
}, [visibleRangeDescription]); // Announce when the selected value changes
let selectedDateDescription = $ef45684272bee3ee80a1ecef1f413f$export$useSelectedDateDescription(state);
useUpdateEffect(() => {
if (selectedDateDescription) {
announce(selectedDateDescription, 'polite', 4000);
} // handle an update to the caption that describes the currently selected range, to announce the new value
var $d7f72b2ec0382e6e$exports = {};
$d7f72b2ec0382e6e$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valgt\",\"finishRangeSelectionPrompt\":\"Klik for at fuldføre valg af datoområde\",\"next\":\"Næste\",\"previous\":\"Forrige\",\"selectedDateDescription\":\"Valgt dato: {date, date, full}\",\"selectedRangeDescription\":\"Valgt område: {start, date, long} til {end, date, long}\",\"startRangeSelectionPrompt\":\"Klik for at starte valg af datoområde\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} valgt\"}");
}, [selectedDateDescription]);
let descriptionProps = useDescription(visibleRangeDescription); // Label the child grid elements by the group element if it is labelled.
$ef45684272bee3ee80a1ecef1f413f$export$calendarIds.set(state, props['aria-label'] || props['aria-labelledby'] ? calendarId : null);
return {
calendarProps: mergeProps(descriptionProps, {
role: 'group',
id: calendarId,
'aria-label': props['aria-label'],
'aria-labelledby': props['aria-labelledby']
}),
nextButtonProps: {
onPress: () => state.focusNextPage(),
'aria-label': formatMessage('next'),
isDisabled: props.isDisabled || state.isNextVisibleRangeInvalid()
},
prevButtonProps: {
onPress: () => state.focusPreviousPage(),
'aria-label': formatMessage('previous'),
isDisabled: props.isDisabled || state.isPreviousVisibleRangeInvalid()
}
};
}
var $44feb83034d724a2$exports = {};
$44feb83034d724a2$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} ausgewählt\",\"finishRangeSelectionPrompt\":\"Klicken, um die Auswahl des Datumsbereichs zu beenden\",\"next\":\"Weiter\",\"previous\":\"Zurück\",\"selectedDateDescription\":\"Ausgewähltes Datum: {date, date, full}\",\"selectedRangeDescription\":\"Bereich auswählen: {start, date, long} bis {end, date, long}\",\"startRangeSelectionPrompt\":\"Klicken, um die Auswahl des Datumsbereichs zu beginnen\",\"todayDate\":\"Heute, {date, date, full}\",\"todayDateSelected\":\"Heute, {date, date, full} ausgewählt\"}");
export function useCalendar(props, state) {
return $aab29d25852cbc1abfc898cac6554dc5$export$useCalendarBase(props, state);
}
export function useRangeCalendar(props, state, ref) {
let res = $aab29d25852cbc1abfc898cac6554dc5$export$useCalendarBase(props, state);
res.nextButtonProps.id = useId();
res.prevButtonProps.id = useId(); // We need to ignore virtual pointer events from VoiceOver due to these bugs.
// https://bugs.webkit.org/show_bug.cgi?id=222627
// https://bugs.webkit.org/show_bug.cgi?id=223202
// usePress also does this and waits for the following click event before firing.
// We need to match that here otherwise this will fire before the press event in
// useCalendarCell, causing range selection to not work properly.
let isVirtualClick = useRef(false);
useEvent(useRef(window), 'pointerdown', e => {
isVirtualClick.current = e.width === 0 && e.height === 0;
}); // Stop range selection when pressing or releasing a pointer outside the calendar body,
// except when pressing the next or previous buttons to switch months.
var $824169eabaf39a4d$exports = {};
$824169eabaf39a4d$exports = JSON.parse("{\"dateSelected\":\"Επιλέχτηκε {date, date, full}\",\"finishRangeSelectionPrompt\":\"Κάντε κλικ για να ολοκληρώσετε την επιλογή εύρους ημερομηνιών\",\"next\":\"Επόμενο\",\"previous\":\"Προηγούμενο\",\"selectedDateDescription\":\"Επιλεγμένη ημερομηνία: {date, date, full}\",\"selectedRangeDescription\":\"Επιλεγμένο εύρος: {start, date, long} έως {end, date, long}\",\"startRangeSelectionPrompt\":\"Κάντε κλικ για να ξεκινήσετε την επιλογή εύρους ημερομηνιών\",\"todayDate\":\"Σήμερα, {date, date, full}\",\"todayDateSelected\":\"Σήμερα, επιλέχτηκε {date, date, full}\"}");
let endDragging = e => {
var _document$getElementB, _document$getElementB2;
if (isVirtualClick.current) {
isVirtualClick.current = false;
return;
}
var $c7daa608974c0189$exports = {};
$c7daa608974c0189$exports = JSON.parse("{\"previous\":\"Previous\",\"next\":\"Next\",\"selectedDateDescription\":\"Selected Date: {date, date, full}\",\"selectedRangeDescription\":\"Selected Range: {start, date, long} to {end, date, long}\",\"todayDate\":\"Today, {date, date, full}\",\"todayDateSelected\":\"Today, {date, date, full} selected\",\"dateSelected\":\"{date, date, full} selected\",\"startRangeSelectionPrompt\":\"Click to start selecting date range\",\"finishRangeSelectionPrompt\":\"Click to finish selecting date range\"}");
state.setDragging(false);
if (!state.anchorDate) {
return;
}
var $a0350ecbc8b9e157$exports = {};
$a0350ecbc8b9e157$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} seleccionado\",\"finishRangeSelectionPrompt\":\"Haga clic para terminar de seleccionar rango de fechas\",\"next\":\"Siguiente\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Fecha seleccionada: {date, date, full}\",\"selectedRangeDescription\":\"Seleccionar rango: {start, date, long} a {end, date, long}\",\"startRangeSelectionPrompt\":\"Haga clic para comenzar a seleccionar un rango de fechas\",\"todayDate\":\"Hoy, {date, date, full}\",\"todayDateSelected\":\"Hoy, {date, date, full} seleccionado\"}");
let target = e.target;
let body = document.getElementById(res.calendarProps.id);
if ((!body.contains(target) || target.getAttribute('role') !== 'button') && !((_document$getElementB = document.getElementById(res.nextButtonProps.id)) != null && _document$getElementB.contains(target)) && !((_document$getElementB2 = document.getElementById(res.prevButtonProps.id)) != null && _document$getElementB2.contains(target))) {
state.selectFocusedDate();
}
};
var $41f16b9235d0224e$exports = {};
$41f16b9235d0224e$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valitud\",\"finishRangeSelectionPrompt\":\"Klõpsake kuupäevavahemiku valimise lõpetamiseks\",\"next\":\"Järgmine\",\"previous\":\"Eelmine\",\"selectedDateDescription\":\"Valitud kuupäev: {date, date, full}\",\"selectedRangeDescription\":\"Valitud vahemik: {start, date, long} kuni {end, date, long}\",\"startRangeSelectionPrompt\":\"Klõpsake kuupäevavahemiku valimiseks\",\"todayDate\":\"Täna {date, date, full}\",\"todayDateSelected\":\"Täna {date, date, full} valitud\"}");
useEvent(useRef(window), 'pointerup', endDragging);
useEvent(useRef(window), 'pointercancel', endDragging); // Prevent touch scrolling while dragging
useEvent(ref, 'touchmove', e => {
if (state.isDragging) {
e.preventDefault();
}
}, {
passive: false,
capture: true
});
return res;
}
export function useCalendarGrid(props, state) {
let {
isReadOnly = false,
isDisabled = false,
startDate = state.visibleRange.start,
endDate = state.visibleRange.end
} = props;
let {
direction
} = useLocale();
var $30d71ad94c2d8688$exports = {};
$30d71ad94c2d8688$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valittu\",\"finishRangeSelectionPrompt\":\"Lopeta päivämääräalueen valinta napsauttamalla tätä.\",\"next\":\"Seuraava\",\"previous\":\"Edellinen\",\"selectedDateDescription\":\"Valittu päivämäärä: {date, date, full}\",\"selectedRangeDescription\":\"Valittu alue: {start, date, long} - {end, date, long}\",\"startRangeSelectionPrompt\":\"Aloita päivämääräalueen valinta napsauttamalla tätä.\",\"todayDate\":\"Tänään, {date, date, full}\",\"todayDateSelected\":\"Tänään, {date, date, full} valittu\"}");
let onKeyDown = e => {
switch (e.key) {
case 'Enter':
case ' ':
e.preventDefault();
state.selectFocusedDate();
break;
case 'PageUp':
e.preventDefault();
var $bec0d67649ced856$exports = {};
$bec0d67649ced856$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} sélectionné\",\"finishRangeSelectionPrompt\":\"Cliquer pour finir de sélectionner la plage de dates\",\"next\":\"Suivant\",\"previous\":\"Précédent\",\"selectedDateDescription\":\"Date sélectionnée : {date, date, full}\",\"selectedRangeDescription\":\"Plage sélectionnée : {start, date, long} à {end, date, long}\",\"startRangeSelectionPrompt\":\"Cliquer pour commencer à sélectionner la plage de dates\",\"todayDate\":\"Aujourd’hui, {date, date, full}\",\"todayDateSelected\":\"Aujourd’hui, {date, date, full} sélectionné\"}");
if (e.shiftKey) {
state.focusPreviousSection();
} else {
state.focusPreviousPage();
}
break;
var $c150c6d3011a2275$exports = {};
$c150c6d3011a2275$exports = JSON.parse("{\"dateSelected\":\"התאריך {date, date, full} שנבחר\",\"finishRangeSelectionPrompt\":\"חץ כדי לסיים את בחירת טווח התאריכים\",\"next\":\"הבא\",\"previous\":\"הקודם\",\"selectedDateDescription\":\"התאריך שנבחר: {date, date, full}\",\"selectedRangeDescription\":\"הטווח שנבחר: מ-{start, date, long} ועד {end, date, long}\",\"startRangeSelectionPrompt\":\"לחץ כדי להתחיל בבחירת טווח התאריכים\",\"todayDate\":\"היום, {date, date, full}\",\"todayDateSelected\":\"היום, התאריך {date, date, full} שנבחר\"}");
case 'PageDown':
e.preventDefault();
if (e.shiftKey) {
state.focusNextSection();
} else {
state.focusNextPage();
}
var $f44bb3850ed617ea$exports = {};
$f44bb3850ed617ea$exports = JSON.parse("{\"dateSelected\":\"Odabran {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite da dovršite raspon odabranih datuma\",\"next\":\"Sljedeći\",\"previous\":\"Prethodni\",\"selectedDateDescription\":\"Odabrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Odabrani raspon: od {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite da započnete raspon odabranih datuma\",\"todayDate\":\"Danas, {date, date, full}\",\"todayDateSelected\":\"Danas, odabran {date, date, full}\"}");
break;
case 'End':
e.preventDefault();
state.focusPageEnd();
break;
var $ab01611c0bfb097c$exports = {};
$ab01611c0bfb097c$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} kijelölve\",\"finishRangeSelectionPrompt\":\"Kattintson a dátumtartomány kijelölésének befejezéséhez\",\"next\":\"Következő\",\"previous\":\"Előző\",\"selectedDateDescription\":\"Kijelölt dátum: {date, date, full}\",\"selectedRangeDescription\":\"Kijelölt tartomány: {start, date, long} – {end, date, long}\",\"startRangeSelectionPrompt\":\"Kattintson a dátumtartomány kijelölésének indításához\",\"todayDate\":\"Ma, {date, date, full}\",\"todayDateSelected\":\"Ma, {date, date, full} kijelölve\"}");
case 'Home':
e.preventDefault();
state.focusPageStart();
break;
case 'ArrowLeft':
e.preventDefault();
var $f08f739aeee610f5$exports = {};
$f08f739aeee610f5$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selezionato\",\"finishRangeSelectionPrompt\":\"Fai clic per completare la selezione dell’intervallo di date\",\"next\":\"Successivo\",\"previous\":\"Precedente\",\"selectedDateDescription\":\"Data selezionata: {date, date, full}\",\"selectedRangeDescription\":\"Intervallo selezionato: da {start, date, long} a {end, date, long}\",\"startRangeSelectionPrompt\":\"Fai clic per selezionare l’intervallo di date\",\"todayDate\":\"Oggi, {date, date, full}\",\"todayDateSelected\":\"Oggi, {date, date, full} selezionato\"}");
if (direction === 'rtl') {
state.focusNextDay();
} else {
state.focusPreviousDay();
}
break;
var $0811ee592887695d$exports = {};
$0811ee592887695d$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} を選択\",\"finishRangeSelectionPrompt\":\"クリックして日付範囲の選択を終了\",\"next\":\"次へ\",\"previous\":\"前へ\",\"selectedDateDescription\":\"日付を選択:{date, date, full}\",\"selectedRangeDescription\":\"範囲を選択:{start, date, long} から {end, date, long}\",\"startRangeSelectionPrompt\":\"クリックして日付範囲の選択を開始\",\"todayDate\":\"本日、{date, date, full}\",\"todayDateSelected\":\"本日、{date, date, full} を選択\"}");
case 'ArrowUp':
e.preventDefault();
state.focusPreviousRow();
break;
case 'ArrowRight':
e.preventDefault();
var $8364319cfaffff6b$exports = {};
$8364319cfaffff6b$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} 선택함\",\"finishRangeSelectionPrompt\":\"날짜 범위 선택을 완료하려면 클릭하십시오.\",\"next\":\"다음\",\"previous\":\"이전\",\"selectedDateDescription\":\"선택한 날짜: {date, date, full}\",\"selectedRangeDescription\":\"선택한 범위: {start, date, long} ~ {end, date, long}\",\"startRangeSelectionPrompt\":\"날짜 범위 선택을 시작하려면 클릭하십시오.\",\"todayDate\":\"오늘, {date, date, full}\",\"todayDateSelected\":\"오늘, {date, date, full} 선택함\"}");
if (direction === 'rtl') {
state.focusPreviousDay();
} else {
state.focusNextDay();
}
break;
var $a3c1c579108f9e2f$exports = {};
$a3c1c579108f9e2f$exports = JSON.parse("{\"dateSelected\":\"Pasirinkta {date, date, full}\",\"finishRangeSelectionPrompt\":\"Spustelėkite, kad baigtumėte pasirinkti datų intervalą\",\"next\":\"Paskesnis\",\"previous\":\"Ankstesnis\",\"selectedDateDescription\":\"Pasirinkta data: {date, date, full}\",\"selectedRangeDescription\":\"Pasirinktas intervalas: nuo {start, date, long} iki {end, date, long}\",\"startRangeSelectionPrompt\":\"Spustelėkite, kad pradėtumėte pasirinkti datų intervalą\",\"todayDate\":\"Šiandien, {date, date, full}\",\"todayDateSelected\":\"Šiandien, pasirinkta {date, date, full}\"}");
case 'ArrowDown':
e.preventDefault();
state.focusNextRow();
break;
case 'Escape':
// Cancel the selection.
if ('setAnchorDate' in state) {
e.preventDefault();
state.setAnchorDate(null);
}
var $cca172a89ca64f1a$exports = {};
$cca172a89ca64f1a$exports = JSON.parse("{\"dateSelected\":\"Atlasīts {date, date, full}\",\"finishRangeSelectionPrompt\":\"Noklikšķiniet, lai pabeigtu datumu diapazona atlasi\",\"next\":\"Tālāk\",\"previous\":\"Atpakaļ\",\"selectedDateDescription\":\"Atlasītais datums: {date, date, full}\",\"selectedRangeDescription\":\"Atlasītais diapazons: {start, date, long} līdz {end, date, long}\",\"startRangeSelectionPrompt\":\"Noklikšķiniet, lai sāktu datumu diapazona atlasi\",\"todayDate\":\"Šodiena, {date, date, full}\",\"todayDateSelected\":\"Atlasīta šodiena, {date, date, full}\"}");
break;
}
};
let selectedDateDescription = $ef45684272bee3ee80a1ecef1f413f$export$useSelectedDateDescription(state);
let descriptionProps = useDescription(selectedDateDescription);
let visibleRangeDescription = $ef45684272bee3ee80a1ecef1f413f$export$useVisibleRangeDescription(startDate, endDate, state.timeZone);
let labelProps = useLabels({
'aria-label': visibleRangeDescription,
'aria-labelledby': $ef45684272bee3ee80a1ecef1f413f$export$calendarIds.get(state)
});
return {
gridProps: mergeProps(descriptionProps, labelProps, {
role: 'grid',
'aria-readonly': isReadOnly || null,
'aria-disabled': isDisabled || null,
'aria-multiselectable': 'highlightedRange' in state || undefined,
onKeyDown,
onFocus: () => state.setFocused(true),
onBlur: () => state.setFocused(false)
})
};
}
// @ts-ignore
const $d88d16e98d90deb4488fdab10eee7838$var$intlMessages = {
"ar-AE": _babelRuntimeHelpersEsmInteropRequireDefault($b3d1873a10b51c61e0fe53054ebdeb$exports).default,
"bg-BG": _babelRuntimeHelpersEsmInteropRequireDefault($d270120dd3675c3f0f2f5207baa387d6$exports).default,
"cs-CZ": _babelRuntimeHelpersEsmInteropRequireDefault($f2859539a632d104d935b1f8d79d34$exports).default,
"da-DK": _babelRuntimeHelpersEsmInteropRequireDefault($a6b461c9add3e239a7f9688a896f$exports).default,
"de-DE": _babelRuntimeHelpersEsmInteropRequireDefault($ecb7bac46525204a5a0ba5e9b90678f$exports).default,
"el-GR": _babelRuntimeHelpersEsmInteropRequireDefault($c8d883b68b00e9f39ef71f6038c8e9ba$exports).default,
"en-US": _babelRuntimeHelpersEsmInteropRequireDefault($ac06706e559d76298edf15cb628964a3$exports).default,
"es-ES": _babelRuntimeHelpersEsmInteropRequireDefault($f1f132a4617eec58dc48e2c3f9a$exports).default,
"et-EE": _babelRuntimeHelpersEsmInteropRequireDefault($a5cb449787362ba2de4e4924f88b$exports).default,
"fi-FI": _babelRuntimeHelpersEsmInteropRequireDefault($a13eb2ade8e373fd2bc52082$exports).default,
"fr-FR": _babelRuntimeHelpersEsmInteropRequireDefault($fed74c7501751e185712ca861bf5e1a3$exports).default,
"he-IL": _babelRuntimeHelpersEsmInteropRequireDefault($f571638c72ac25246aa6686003de6eef$exports).default,
"hr-HR": _babelRuntimeHelpersEsmInteropRequireDefault($a75c5d1428c2b2365d73e03edc3c18d$exports).default,
"hu-HU": _babelRuntimeHelpersEsmInteropRequireDefault($b0acd367e0ac8f6bcf73c1f7a16b435d$exports).default,
"it-IT": _babelRuntimeHelpersEsmInteropRequireDefault($fc4b4136a6738764e9a040f9cd661b$exports).default,
"ja-JP": _babelRuntimeHelpersEsmInteropRequireDefault($e820e8059e43233b28daa04ff39dc0$exports).default,
"ko-KR": _babelRuntimeHelpersEsmInteropRequireDefault($cbde4ca9eba9467e036b5f7ff231225d$exports).default,
"lt-LT": _babelRuntimeHelpersEsmInteropRequireDefault($cf816c695d5ed3af1393be09906df9cc$exports).default,
"lv-LV": _babelRuntimeHelpersEsmInteropRequireDefault($dd3751d90515e59dc9ccc1fe97fa3cf2$exports).default,
"nb-NO": _babelRuntimeHelpersEsmInteropRequireDefault($ca83791cb2c2bcaf9ec9bc6cdf5dada$exports).default,
"nl-NL": _babelRuntimeHelpersEsmInteropRequireDefault($ae20ff20c3663360f5e0f530b4d3a$exports).default,
"pl-PL": _babelRuntimeHelpersEsmInteropRequireDefault($ebc67cae7dd114ffff5ac7ea895$exports).default,
"pt-BR": _babelRuntimeHelpersEsmInteropRequireDefault($c64e56df4203b3b3d07$exports).default,
"pt-PT": _babelRuntimeHelpersEsmInteropRequireDefault($e246c58307d1ccea9d00a5ca69c034$exports).default,
"ro-RO": _babelRuntimeHelpersEsmInteropRequireDefault($cfbe9ab4205a731e02558d5bd6dae4b$exports).default,
"ru-RU": _babelRuntimeHelpersEsmInteropRequireDefault($e28d4bd0f24e47931dfe0f4ce5a$exports).default,
"sk-SK": _babelRuntimeHelpersEsmInteropRequireDefault($f1fa21db7f5bd96e96134309d1cbdad8$exports).default,
"sl-SI": _babelRuntimeHelpersEsmInteropRequireDefault($d209f467d457081b504031d7e42c06b$exports).default,
"sr-SP": _babelRuntimeHelpersEsmInteropRequireDefault($a9e31f7026f3c098c7f5a39df248d1dc$exports).default,
"sv-SE": _babelRuntimeHelpersEsmInteropRequireDefault($e8e0dd29381b632189fca24cc639d3$exports).default,
"tr-TR": _babelRuntimeHelpersEsmInteropRequireDefault($b439a507d0c0b745fc06364611f52fe0$exports).default,
"uk-UA": _babelRuntimeHelpersEsmInteropRequireDefault($c02b819666304673ecaffd2664761e$exports).default,
"zh-CN": _babelRuntimeHelpersEsmInteropRequireDefault($a72fb3ab2102fad411126e39d859f888$exports).default,
"zh-TW": _babelRuntimeHelpersEsmInteropRequireDefault($b53d528acee5b284c723b73129884718$exports).default
var $c8514384d7c4ceb1$exports = {};
$c8514384d7c4ceb1$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} valgt\",\"finishRangeSelectionPrompt\":\"Klikk for å fullføre valg av datoområde\",\"next\":\"Neste\",\"previous\":\"Forrige\",\"selectedDateDescription\":\"Valgt dato: {date, date, full}\",\"selectedRangeDescription\":\"Valgt område: {start, date, long} til {end, date, long}\",\"startRangeSelectionPrompt\":\"Klikk for å starte valg av datoområde\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} valgt\"}");
var $ca85a2f2a3280f5f$exports = {};
$ca85a2f2a3280f5f$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} geselecteerd\",\"finishRangeSelectionPrompt\":\"Klik om de selectie van het datumbereik te voltooien\",\"next\":\"Volgende\",\"previous\":\"Vorige\",\"selectedDateDescription\":\"Geselecteerde datum: {date, date, full}\",\"selectedRangeDescription\":\"Geselecteerd bereik: {start, date, long} t/m {end, date, long}\",\"startRangeSelectionPrompt\":\"Klik om het datumbereik te selecteren\",\"todayDate\":\"Vandaag, {date, date, full}\",\"todayDateSelected\":\"Vandaag, {date, date, full} geselecteerd\"}");
var $dea2afcf85d0e8db$exports = {};
$dea2afcf85d0e8db$exports = JSON.parse("{\"dateSelected\":\"Wybrano {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknij, aby zakończyć wybór zakresu dat\",\"next\":\"Dalej\",\"previous\":\"Wstecz\",\"selectedDateDescription\":\"Wybrana data: {date, date, full}\",\"selectedRangeDescription\":\"Wybrany zakres: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknij, aby rozpocząć wybór zakresu dat\",\"todayDate\":\"Dzisiaj {date, date, full}\",\"todayDateSelected\":\"Dzisiaj wybrano {date, date, full}\"}");
var $0931c07997219b4c$exports = {};
$0931c07997219b4c$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selecionado\",\"finishRangeSelectionPrompt\":\"Clique para concluir a seleção do intervalo de datas\",\"next\":\"Próximo\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Data selecionada: {date, date, full}\",\"selectedRangeDescription\":\"Intervalo selecionado: {start, date, long} até {end, date, long}\",\"startRangeSelectionPrompt\":\"Clique para iniciar a seleção do intervalo de datas\",\"todayDate\":\"Hoje, {date, date, full}\",\"todayDateSelected\":\"Hoje, {date, date, full} selecionado\"}");
var $77d3363930db2a1e$exports = {};
$77d3363930db2a1e$exports = JSON.parse("{\"dateSelected\":\"{data, data, completo} selecionado\",\"finishRangeSelectionPrompt\":\"Clique para terminar de selecionar o intervalo de datas\",\"next\":\"Próximo\",\"previous\":\"Anterior\",\"selectedDateDescription\":\"Data Selecionada: {data, data, completo}\",\"selectedRangeDescription\":\"Selecionar Intervalo: {início, data, longo} a {término, data, longo}\",\"startRangeSelectionPrompt\":\"Clique para começar a selecionar o intervalo de datas\",\"todayDate\":\"Hoje, {date, date, full}\",\"todayDateSelected\":\"Hoje, {date, date, full} selecionado\"}");
var $c1d0b2591740ac34$exports = {};
$c1d0b2591740ac34$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} selectată\",\"finishRangeSelectionPrompt\":\"Apăsaţi pentru a finaliza selecţia razei pentru dată\",\"next\":\"Următorul\",\"previous\":\"Înainte\",\"selectedDateDescription\":\"Dată selectată: {date, date, full}\",\"selectedRangeDescription\":\"Selectaţi raza: {start, date, long} la {end, date, long}\",\"startRangeSelectionPrompt\":\"Apăsaţi pentru a începe selecţia razei pentru dată\",\"todayDate\":\"Astăzi, {date, date, full}\",\"todayDateSelected\":\"Dată, {date, date, full} selectată\"}");
var $5f663a0bdcff9906$exports = {};
$5f663a0bdcff9906$exports = JSON.parse("{\"dateSelected\":\"выбрано {date, date, full}\",\"finishRangeSelectionPrompt\":\"Щелкните, чтобы завершить выбор диапазона дат\",\"next\":\"Далее\",\"previous\":\"Назад\",\"selectedDateDescription\":\"Выбранная дата: {date, date, full}\",\"selectedRangeDescription\":\"Выбранный диапазон: {start, date, long} – {end, date, long}\",\"startRangeSelectionPrompt\":\"Щелкните, чтобы начать выбор диапазона дат\",\"todayDate\":\"Сегодня, {date, date, full}\",\"todayDateSelected\":\"Сегодня, выбрано {date, date, full}\"}");
var $43ed715e7998cf2d$exports = {};
$43ed715e7998cf2d$exports = JSON.parse("{\"dateSelected\":\"Vybratý dátum {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknutím dokončíte výber rozsahu dátumov\",\"next\":\"Nasledujúce\",\"previous\":\"Predchádzajúce\",\"selectedDateDescription\":\"Vybratý dátum: {date, date, full}\",\"selectedRangeDescription\":\"Vybratý rozsah dátumov: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknutím spustíte výber rozsahu dátumov\",\"todayDate\":\"Dnešný dátum, {date, date, full}\",\"todayDateSelected\":\"Vybratý dnešný dátum, {date, date, full}\"}");
var $bce8ca85baad4459$exports = {};
$bce8ca85baad4459$exports = JSON.parse("{\"dateSelected\":\"izbrano: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite za dokončanje izbire datumskega obsega\",\"next\":\"Naprej\",\"previous\":\"Nazaj\",\"selectedDateDescription\":\"Izbrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Izbrani razpon: {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite za začetek izbire datumskega obsega\",\"todayDate\":\"Danes, {date, date, full}\",\"todayDateSelected\":\"Danes, izbrano: {date, date, full}\"}");
var $57038fc70c102ee8$exports = {};
$57038fc70c102ee8$exports = JSON.parse("{\"dateSelected\":\"Izabran {date, date, full}\",\"finishRangeSelectionPrompt\":\"Kliknite da dovršite opseg izabranih datuma\",\"next\":\"Sledeći\",\"previous\":\"Prethodni\",\"selectedDateDescription\":\"Izabrani datum: {date, date, full}\",\"selectedRangeDescription\":\"Izabrani opseg: od {start, date, long} do {end, date, long}\",\"startRangeSelectionPrompt\":\"Kliknite da započnete opseg izabranih datuma\",\"todayDate\":\"Danas, {date, date, full}\",\"todayDateSelected\":\"Danas, izabran {date, date, full}\"}");
var $4d5306c2016cf5bd$exports = {};
$4d5306c2016cf5bd$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} har valts\",\"finishRangeSelectionPrompt\":\"Klicka för att avsluta val av datumintervall\",\"next\":\"Nästa\",\"previous\":\"Föregående\",\"selectedDateDescription\":\"Valt datum: {date, date, full}\",\"selectedRangeDescription\":\"Valt intervall: {start, date, long} till {end, date, long}\",\"startRangeSelectionPrompt\":\"Klicka för att välja datumintervall\",\"todayDate\":\"I dag, {date, date, full}\",\"todayDateSelected\":\"I dag, {date, date, full} har valts\"}");
var $4f57ab41f7d7d113$exports = {};
$4f57ab41f7d7d113$exports = JSON.parse("{\"dateSelected\":\"{date, date, full} seçildi\",\"finishRangeSelectionPrompt\":\"Tarih aralığı seçimini tamamlamak için tıklayın\",\"next\":\"Sonraki\",\"previous\":\"Önceki\",\"selectedDateDescription\":\"Seçili Tarih: {date, date, full}\",\"selectedRangeDescription\":\"Seçili Aralık: {start, date, long} - {end, date, long}\",\"startRangeSelectionPrompt\":\"Tarih aralığı seçimini başlatmak için tıklayın\",\"todayDate\":\"Bugün, {date, date, full}\",\"todayDateSelected\":\"Bugün, {date, date, full} seçildi\"}");
var $a7d08336e26cad0d$exports = {};
$a7d08336e26cad0d$exports = JSON.parse("{\"dateSelected\":\"Вибрано: {date, date, full}\",\"finishRangeSelectionPrompt\":\"Натисніть, щоб завершити вибір діапазону дат\",\"next\":\"Наступний\",\"previous\":\"Попередній\",\"selectedDateDescription\":\"Вибрана дата: {date, date, full}\",\"selectedRangeDescription\":\"Вибраний діапазон: від {start, date, long} до {end, date, long}\",\"startRangeSelectionPrompt\":\"Натисніть, щоб почати вибір діапазону дат\",\"todayDate\":\"Сьогодні: {date, date, full}\",\"todayDateSelected\":\"Сьогодні вибрано: {date, date, full}\"}");
var $635e9e2a3362c81a$exports = {};
$635e9e2a3362c81a$exports = JSON.parse("{\"dateSelected\":\"已选择 {date, date, full}\",\"finishRangeSelectionPrompt\":\"单击以完成选择日期范围\",\"next\":\"下一页\",\"previous\":\"上一页\",\"selectedDateDescription\":\"选定的日期: {date, date, full}\",\"selectedRangeDescription\":\"选定的范围: {start, date, long} 到 {end, date, long}\",\"startRangeSelectionPrompt\":\"单击以开始选择日期范围\",\"todayDate\":\"今天({date, date, full})\",\"todayDateSelected\":\"已选择今天({date, date, full})\"}");
var $b69e2d0b00c31d77$exports = {};
$b69e2d0b00c31d77$exports = JSON.parse("{\"dateSelected\":\"已選取 {date, date, full}\",\"finishRangeSelectionPrompt\":\"按一下以完成選取日期範圍\",\"next\":\"下一頁\",\"previous\":\"上一頁\",\"selectedDateDescription\":\"選取日期: {date, date, full}\",\"selectedRangeDescription\":\"選取範圍: {start, date, long} 至 {end, date, long}\",\"startRangeSelectionPrompt\":\"按一下以開始選取日期範圍\",\"todayDate\":\"今日,{date, date, full}\",\"todayDateSelected\":\"今日,已選取 {date, date, full}\"}");
$5b4ce6a94ce0b71e$exports = {
"ar-AE": $3f196f0e4eac3c3e$exports,
"bg-BG": $8aae80b09186378b$exports,
"cs-CZ": $c737bc907c0f0bd4$exports,
"da-DK": $d7f72b2ec0382e6e$exports,
"de-DE": $44feb83034d724a2$exports,
"el-GR": $824169eabaf39a4d$exports,
"en-US": $c7daa608974c0189$exports,
"es-ES": $a0350ecbc8b9e157$exports,
"et-EE": $41f16b9235d0224e$exports,
"fi-FI": $30d71ad94c2d8688$exports,
"fr-FR": $bec0d67649ced856$exports,
"he-IL": $c150c6d3011a2275$exports,
"hr-HR": $f44bb3850ed617ea$exports,
"hu-HU": $ab01611c0bfb097c$exports,
"it-IT": $f08f739aeee610f5$exports,
"ja-JP": $0811ee592887695d$exports,
"ko-KR": $8364319cfaffff6b$exports,
"lt-LT": $a3c1c579108f9e2f$exports,
"lv-LV": $cca172a89ca64f1a$exports,
"nb-NO": $c8514384d7c4ceb1$exports,
"nl-NL": $ca85a2f2a3280f5f$exports,
"pl-PL": $dea2afcf85d0e8db$exports,
"pt-BR": $0931c07997219b4c$exports,
"pt-PT": $77d3363930db2a1e$exports,
"ro-RO": $c1d0b2591740ac34$exports,
"ru-RU": $5f663a0bdcff9906$exports,
"sk-SK": $43ed715e7998cf2d$exports,
"sl-SI": $bce8ca85baad4459$exports,
"sr-SP": $57038fc70c102ee8$exports,
"sv-SE": $4d5306c2016cf5bd$exports,
"tr-TR": $4f57ab41f7d7d113$exports,
"uk-UA": $a7d08336e26cad0d$exports,
"zh-CN": $635e9e2a3362c81a$exports,
"zh-TW": $b69e2d0b00c31d77$exports
};
export function useCalendarCell(props, state, ref) {
let {
date,
isDisabled
} = props;
let formatMessage = useMessageFormatter($d88d16e98d90deb4488fdab10eee7838$var$intlMessages);
let dateFormatter = useDateFormatter({
weekday: 'long',
day: 'numeric',
month: 'long',
year: 'numeric',
era: date.calendar.identifier !== 'gregory' ? 'long' : undefined,
timeZone: state.timeZone
});
let isSelected = state.isSelected(date);
let isFocused = state.isCellFocused(date);
isDisabled = isDisabled || state.isCellDisabled(date); // For performance, reuse the same date object as before if the new date prop is the same.
// This allows subsequent useMemo results to be reused.
let lastDate = useRef(null);
if (lastDate.current && isEqualDay(date, lastDate.current)) {
date = lastDate.current;
}
lastDate.current = date;
let nativeDate = useMemo(() => date.toDate(state.timeZone), [date, state.timeZone]); // aria-label should be localize Day of week, Month, Day and Year without Time.
let isDateToday = isToday(date, state.timeZone);
let label = useMemo(() => {
if (isDateToday) {
// If date is today, set appropriate string depending on selected state:
return formatMessage(isSelected ? 'todayDateSelected' : 'todayDate', {
date: nativeDate
});
} else if (isSelected) {
// If date is selected but not today:
return formatMessage('dateSelected', {
date: nativeDate
});
}
const $d8d55ab39ff37410$export$3ddff89c59628ee7 = new WeakMap();
function $d8d55ab39ff37410$export$b6df97c887c38e1a(state) {
let formatMessage = $fMuHj$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($5b4ce6a94ce0b71e$exports)));
let start, end;
if ('highlightedRange' in state) ({ start: start , end: end } = state.highlightedRange || {
});
else start = end = state.value;
let anchorDate = 'anchorDate' in state ? state.anchorDate : null;
return $fMuHj$useMemo(()=>{
// No message if currently selecting a range, or there is nothing highlighted.
if (!anchorDate && start && end) {
// Use a single date message if the start and end dates are the same day,
// otherwise include both dates.
if ($fMuHj$isSameDay(start, end)) return formatMessage('selectedDateDescription', {
date: $fMuHj$toDate(start, state.timeZone)
});
else return formatMessage('selectedRangeDescription', {
start: $fMuHj$toDate(start, state.timeZone),
end: $fMuHj$toDate(end, state.timeZone)
});
}
return '';
}, [
start,
end,
anchorDate,
state.timeZone,
formatMessage
]);
}
function $d8d55ab39ff37410$export$31afe65d91ef6e8(startDate, endDate, timeZone) {
let monthFormatter = $fMuHj$useDateFormatter({
month: 'long',
year: 'numeric',
era: startDate.calendar.identifier !== 'gregory' ? 'long' : undefined,
calendar: startDate.calendar.identifier
});
let dateFormatter = $fMuHj$useDateFormatter({
dateStyle: 'long',
calendar: startDate.calendar.identifier
});
return $fMuHj$useMemo(()=>{
// Special case for month granularity. Format as a single month if only a
// single month is visible, otherwise format as a range of months.
if ($fMuHj$isSameDay(startDate, $fMuHj$startOfMonth(startDate))) {
if ($fMuHj$isSameDay(endDate, $fMuHj$endOfMonth(startDate))) return monthFormatter.format(startDate.toDate(timeZone));
else if ($fMuHj$isSameDay(endDate, $fMuHj$endOfMonth(endDate))) return monthFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
}
return dateFormatter.formatRange(startDate.toDate(timeZone), endDate.toDate(timeZone));
}, [
startDate,
endDate,
monthFormatter,
dateFormatter,
timeZone
]);
}
return dateFormatter.format(nativeDate);
}, [dateFormatter, nativeDate, formatMessage, isSelected, isDateToday]); // When a cell is focused and this is a range calendar, add a prompt to help
// screenreader users know that they are in a range selection mode.
if ('anchorDate' in state && isFocused && !state.isReadOnly) {
let rangeSelectionPrompt = ''; // If selection has started add "click to finish selecting range"
if (state.anchorDate) {
rangeSelectionPrompt = formatMessage('finishRangeSelectionPrompt'); // Otherwise, add "click to start selecting range" prompt
} else {
rangeSelectionPrompt = formatMessage('startRangeSelectionPrompt');
} // Append to aria-label
if (rangeSelectionPrompt) {
label = label + " (" + rangeSelectionPrompt + ")";
}
}
function $67840124b1f8d8bc$export$d652b3ea2d672d5b(props, state) {
let formatMessage = $fMuHj$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($5b4ce6a94ce0b71e$exports)));
let calendarId = $fMuHj$useId(props.id);
let visibleRangeDescription = $d8d55ab39ff37410$export$31afe65d91ef6e8(state.visibleRange.start, state.visibleRange.end, state.timeZone);
// Announce when the visible date range changes
$fMuHj$useUpdateEffect(()=>{
// only when pressing the Previous or Next button
if (!state.isFocused) $fMuHj$announce(visibleRangeDescription);
}, [
visibleRangeDescription
]);
// Announce when the selected value changes
let selectedDateDescription = $d8d55ab39ff37410$export$b6df97c887c38e1a(state);
$fMuHj$useUpdateEffect(()=>{
if (selectedDateDescription) $fMuHj$announce(selectedDateDescription, 'polite', 4000);
// handle an update to the caption that describes the currently selected range, to announce the new value
}, [
selectedDateDescription
]);
let descriptionProps = $fMuHj$useDescription(visibleRangeDescription);
// Label the child grid elements by the group element if it is labelled.
$d8d55ab39ff37410$export$3ddff89c59628ee7.set(state, props['aria-label'] || props['aria-labelledby'] ? calendarId : null);
return {
calendarProps: $fMuHj$mergeProps(descriptionProps, {
role: 'group',
id: calendarId,
'aria-label': props['aria-label'],
'aria-labelledby': props['aria-labelledby']
}),
nextButtonProps: {
onPress: ()=>state.focusNextPage()
,
'aria-label': formatMessage('next'),
isDisabled: props.isDisabled || state.isNextVisibleRangeInvalid()
},
prevButtonProps: {
onPress: ()=>state.focusPreviousPage()
,
'aria-label': formatMessage('previous'),
isDisabled: props.isDisabled || state.isPreviousVisibleRangeInvalid()
}
};
}
let isAnchorPressed = useRef(false);
let isRangeBoundaryPressed = useRef(false);
let touchDragTimerRef = useRef(null);
let {
pressProps,
isPressed
} = usePress({
// When dragging to select a range, we don't want dragging over the original anchor
// again to trigger onPressStart. Cancel presses immediately when the pointer exits.
shouldCancelOnPointerExit: 'anchorDate' in state && !!state.anchorDate,
preventFocusOnPress: true,
isDisabled,
onPressStart(e) {
if ('highlightedRange' in state && !state.anchorDate && (e.pointerType === 'mouse' || e.pointerType === 'touch')) {
// Allow dragging the start or end date of a range to modify it
// rather than starting a new selection.
if (state.highlightedRange) {
if (isSameDay(date, state.highlightedRange.start)) {
state.setAnchorDate(state.highlightedRange.end);
state.setFocusedDate(date);
state.setDragging(true);
isRangeBoundaryPressed.current = true;
function $e887a1fb79d9897c$export$3ee915f8151bd4f1(props, state) {
return $67840124b1f8d8bc$export$d652b3ea2d672d5b(props, state);
}
var $c7b5bc9340158c8c$exports = {};
$parcel$export($c7b5bc9340158c8c$exports, "useRangeCalendar", () => $c7b5bc9340158c8c$export$87e0539f600c24e5);
function $c7b5bc9340158c8c$export$87e0539f600c24e5(props, state, ref) {
let res = $67840124b1f8d8bc$export$d652b3ea2d672d5b(props, state);
res.nextButtonProps.id = $fMuHj$useId();
res.prevButtonProps.id = $fMuHj$useId();
// We need to ignore virtual pointer events from VoiceOver due to these bugs.
// https://bugs.webkit.org/show_bug.cgi?id=222627
// https://bugs.webkit.org/show_bug.cgi?id=223202
// usePress also does this and waits for the following click event before firing.
// We need to match that here otherwise this will fire before the press event in
// useCalendarCell, causing range selection to not work properly.
let isVirtualClick = $fMuHj$useRef(false);
$fMuHj$useEvent($fMuHj$useRef(window), 'pointerdown', (e)=>{
isVirtualClick.current = e.width === 0 && e.height === 0;
});
// Stop range selection when pressing or releasing a pointer outside the calendar body,
// except when pressing the next or previous buttons to switch months.
let endDragging = (e)=>{
if (isVirtualClick.current) {
isVirtualClick.current = false;
return;
} else if (isSameDay(date, state.highlightedRange.end)) {
state.setAnchorDate(state.highlightedRange.start);
state.setFocusedDate(date);
state.setDragging(true);
isRangeBoundaryPressed.current = true;
return;
}
}
state.setDragging(false);
if (!state.anchorDate) return;
let target = e.target;
let body = document.getElementById(res.calendarProps.id);
if ((!body.contains(target) || target.getAttribute('role') !== 'button') && !document.getElementById(res.nextButtonProps.id)?.contains(target) && !document.getElementById(res.prevButtonProps.id)?.contains(target)) state.selectFocusedDate();
};
$fMuHj$useEvent($fMuHj$useRef(window), 'pointerup', endDragging);
$fMuHj$useEvent($fMuHj$useRef(window), 'pointercancel', endDragging);
// Prevent touch scrolling while dragging
$fMuHj$useEvent(ref, 'touchmove', (e)=>{
if (state.isDragging) e.preventDefault();
}, {
passive: false,
capture: true
});
return res;
}
let startDragging = () => {
state.setDragging(true);
touchDragTimerRef.current = null;
state.selectDate(date);
state.setFocusedDate(date);
isAnchorPressed.current = true;
}; // Start selection on mouse/touch down so users can drag to select a range.
// On touch, delay dragging to determine if the user really meant to scroll.
var $420573fe31d1a62d$exports = {};
if (e.pointerType === 'touch') {
touchDragTimerRef.current = setTimeout(startDragging, 200);
} else {
startDragging();
$parcel$export($420573fe31d1a62d$exports, "useCalendarGrid", () => $420573fe31d1a62d$export$cb95147730a423f5);
function $420573fe31d1a62d$export$cb95147730a423f5(props, state) {
let { isReadOnly: isReadOnly = false , isDisabled: isDisabled = false , startDate: startDate = state.visibleRange.start , endDate: endDate = state.visibleRange.end } = props;
let { direction: direction } = $fMuHj$useLocale();
let onKeyDown = (e)=>{
switch(e.key){
case 'Enter':
case ' ':
e.preventDefault();
state.selectFocusedDate();
break;
case 'PageUp':
e.preventDefault();
if (e.shiftKey) state.focusPreviousSection();
else state.focusPreviousPage();
break;
case 'PageDown':
e.preventDefault();
if (e.shiftKey) state.focusNextSection();
else state.focusNextPage();
break;
case 'End':
e.preventDefault();
state.focusPageEnd();
break;
case 'Home':
e.preventDefault();
state.focusPageStart();
break;
case 'ArrowLeft':
e.preventDefault();
if (direction === 'rtl') state.focusNextDay();
else state.focusPreviousDay();
break;
case 'ArrowUp':
e.preventDefault();
state.focusPreviousRow();
break;
case 'ArrowRight':
e.preventDefault();
if (direction === 'rtl') state.focusPreviousDay();
else state.focusNextDay();
break;
case 'ArrowDown':
e.preventDefault();
state.focusNextRow();
break;
case 'Escape':
// Cancel the selection.
if ('setAnchorDate' in state) {
e.preventDefault();
state.setAnchorDate(null);
}
break;
}
}
},
};
let selectedDateDescription = $d8d55ab39ff37410$export$b6df97c887c38e1a(state);
let descriptionProps = $fMuHj$useDescription(selectedDateDescription);
let visibleRangeDescription = $d8d55ab39ff37410$export$31afe65d91ef6e8(startDate, endDate, state.timeZone);
let labelProps = $fMuHj$useLabels({
'aria-label': visibleRangeDescription,
'aria-labelledby': $d8d55ab39ff37410$export$3ddff89c59628ee7.get(state)
});
return {
gridProps: $fMuHj$mergeProps(descriptionProps, labelProps, {
role: 'grid',
'aria-readonly': isReadOnly || null,
'aria-disabled': isDisabled || null,
'aria-multiselectable': 'highlightedRange' in state || undefined,
onKeyDown: onKeyDown,
onFocus: ()=>state.setFocused(true)
,
onBlur: ()=>state.setFocused(false)
})
};
}
onPressEnd() {
isRangeBoundaryPressed.current = false;
isAnchorPressed.current = false;
clearTimeout(touchDragTimerRef.current);
touchDragTimerRef.current = null;
},
onPress() {
// For non-range selection, always select on press up.
if (!('anchorDate' in state)) {
state.selectDate(date);
state.setFocusedDate(date);
}
},
var $6c48f226d1849f29$exports = {};
onPressUp(e) {
// If the user tapped quickly, the date won't be selected yet and the
// timer will still be in progress. In this case, select the date on touch up.
// Timer is cleared in onPressEnd.
if ('anchorDate' in state && touchDragTimerRef.current) {
state.selectDate(date);
state.setFocusedDate(date);
}
$parcel$export($6c48f226d1849f29$exports, "useCalendarCell", () => $6c48f226d1849f29$export$136073280381448e);
if ('anchorDate' in state) {
if (isRangeBoundaryPressed.current) {
// When clicking on the start or end date of an already selected range,
// start a new selection on press up to also allow dragging the date to
// change the existing range.
state.setAnchorDate(date);
} else if (state.anchorDate && !isAnchorPressed.current) {
// When releasing a drag or pressing the end date of a range, select it.
state.selectDate(date);
state.setFocusedDate(date);
} else if (e.pointerType === 'keyboard' && !state.anchorDate) {
// For range selection, auto-advance the focused date by one if using keyboard.
// This gives an indication that you're selecting a range rather than a single date.
// For mouse, this is unnecessary because users will see the indication on hover. For screen readers,
// there will be an announcement to "click to finish selecting range" (above).
state.selectDate(date);
let nextDay = date.add({
days: 1
});
if (isSameMonth(date, nextDay)) {
state.setFocusedDate(nextDay);
}
} else if (e.pointerType === 'virtual') {
// For screen readers, just select the date on click.
state.selectDate(date);
state.setFocusedDate(date);
}
}
}
});
let tabIndex = null;
if (!isDisabled) {
tabIndex = isSameDay(date, state.focusedDate) ? 0 : -1;
} // Focus the button in the DOM when the state updates.
useEffect(() => {
if (isFocused && ref.current) {
focusWithoutScrolling(ref.current);
function $6c48f226d1849f29$export$136073280381448e(props, state, ref) {
let { date: date , isDisabled: isDisabled } = props;
let formatMessage = $fMuHj$useMessageFormatter((/*@__PURE__*/$parcel$interopDefault($5b4ce6a94ce0b71e$exports)));
let dateFormatter = $fMuHj$useDateFormatter({
weekday: 'long',
day: 'numeric',
month: 'long',
year: 'numeric',
era: date.calendar.identifier !== 'gregory' ? 'long' : undefined,
timeZone: state.timeZone
});
let isSelected = state.isSelected(date);
let isFocused = state.isCellFocused(date);
isDisabled = isDisabled || state.isCellDisabled(date);
// For performance, reuse the same date object as before if the new date prop is the same.
// This allows subsequent useMemo results to be reused.
let lastDate = $fMuHj$useRef(null);
if (lastDate.current && $fMuHj$isEqualDay(date, lastDate.current)) date = lastDate.current;
lastDate.current = date;
let nativeDate = $fMuHj$useMemo(()=>date.toDate(state.timeZone)
, [
date,
state.timeZone
]);
// aria-label should be localize Day of week, Month, Day and Year without Time.
let isDateToday = $fMuHj$isToday(date, state.timeZone);
let label = $fMuHj$useMemo(()=>{
if (isDateToday) // If date is today, set appropriate string depending on selected state:
return formatMessage(isSelected ? 'todayDateSelected' : 'todayDate', {
date: nativeDate
});
else if (isSelected) // If date is selected but not today:
return formatMessage('dateSelected', {
date: nativeDate
});
return dateFormatter.format(nativeDate);
}, [
dateFormatter,
nativeDate,
formatMessage,
isSelected,
isDateToday
]);
// When a cell is focused and this is a range calendar, add a prompt to help
// screenreader users know that they are in a range selection mode.
if ('anchorDate' in state && isFocused && !state.isReadOnly) {
let rangeSelectionPrompt = '';
// If selection has started add "click to finish selecting range"
if (state.anchorDate) rangeSelectionPrompt = formatMessage('finishRangeSelectionPrompt');
else rangeSelectionPrompt = formatMessage('startRangeSelectionPrompt');
// Append to aria-label
if (rangeSelectionPrompt) label = `${label} (${rangeSelectionPrompt})`;
}
}, [isFocused, ref]);
return {
cellProps: {
role: 'gridcell',
'aria-disabled': isDisabled || null,
'aria-selected': isSelected
},
buttonProps: mergeProps(pressProps, {
onFocus() {
if (!isDisabled) {
state.setFocusedDate(date);
let isAnchorPressed = $fMuHj$useRef(false);
let isRangeBoundaryPressed = $fMuHj$useRef(false);
let touchDragTimerRef = $fMuHj$useRef(null);
let { pressProps: pressProps , isPressed: isPressed } = $fMuHj$usePress({
// When dragging to select a range, we don't want dragging over the original anchor
// again to trigger onPressStart. Cancel presses immediately when the pointer exits.
shouldCancelOnPointerExit: 'anchorDate' in state && !!state.anchorDate,
preventFocusOnPress: true,
isDisabled: isDisabled,
onPressStart (e) {
if ('highlightedRange' in state && !state.anchorDate && (e.pointerType === 'mouse' || e.pointerType === 'touch')) {
// Allow dragging the start or end date of a range to modify it
// rather than starting a new selection.
if (state.highlightedRange) {
if ($fMuHj$isSameDay(date, state.highlightedRange.start)) {
state.setAnchorDate(state.highlightedRange.end);
state.setFocusedDate(date);
state.setDragging(true);
isRangeBoundaryPressed.current = true;
return;
} else if ($fMuHj$isSameDay(date, state.highlightedRange.end)) {
state.setAnchorDate(state.highlightedRange.start);
state.setFocusedDate(date);
state.setDragging(true);
isRangeBoundaryPressed.current = true;
return;
}
}
let startDragging = ()=>{
state.setDragging(true);
touchDragTimerRef.current = null;
state.selectDate(date);
state.setFocusedDate(date);
isAnchorPressed.current = true;
};
// Start selection on mouse/touch down so users can drag to select a range.
// On touch, delay dragging to determine if the user really meant to scroll.
if (e.pointerType === 'touch') touchDragTimerRef.current = setTimeout(startDragging, 200);
else startDragging();
}
},
onPressEnd () {
isRangeBoundaryPressed.current = false;
isAnchorPressed.current = false;
clearTimeout(touchDragTimerRef.current);
touchDragTimerRef.current = null;
},
onPress () {
// For non-range selection, always select on press up.
if (!('anchorDate' in state)) {
state.selectDate(date);
state.setFocusedDate(date);
}
},
onPressUp (e) {
// If the user tapped quickly, the date won't be selected yet and the
// timer will still be in progress. In this case, select the date on touch up.
// Timer is cleared in onPressEnd.
if ('anchorDate' in state && touchDragTimerRef.current) {
state.selectDate(date);
state.setFocusedDate(date);
}
if ('anchorDate' in state) {
if (isRangeBoundaryPressed.current) // When clicking on the start or end date of an already selected range,
// start a new selection on press up to also allow dragging the date to
// change the existing range.
state.setAnchorDate(date);
else if (state.anchorDate && !isAnchorPressed.current) {
// When releasing a drag or pressing the end date of a range, select it.
state.selectDate(date);
state.setFocusedDate(date);
} else if (e.pointerType === 'keyboard' && !state.anchorDate) {
// For range selection, auto-advance the focused date by one if using keyboard.
// This gives an indication that you're selecting a range rather than a single date.
// For mouse, this is unnecessary because users will see the indication on hover. For screen readers,
// there will be an announcement to "click to finish selecting range" (above).
state.selectDate(date);
let nextDay = date.add({
days: 1
});
if ($fMuHj$isSameMonth(date, nextDay)) state.setFocusedDate(nextDay);
} else if (e.pointerType === 'virtual') {
// For screen readers, just select the date on click.
state.selectDate(date);
state.setFocusedDate(date);
}
}
}
},
});
let tabIndex = null;
if (!isDisabled) tabIndex = $fMuHj$isSameDay(date, state.focusedDate) ? 0 : -1;
// Focus the button in the DOM when the state updates.
$fMuHj$useEffect(()=>{
if (isFocused && ref.current) $fMuHj$focusWithoutScrolling(ref.current);
}, [
isFocused,
ref
]);
return {
cellProps: {
role: 'gridcell',
'aria-disabled': isDisabled || null,
'aria-selected': isSelected
},
buttonProps: $fMuHj$mergeProps(pressProps, {
onFocus () {
if (!isDisabled) state.setFocusedDate(date);
},
tabIndex: tabIndex,
role: 'button',
'aria-disabled': isDisabled || null,
'aria-label': label,
onPointerEnter (e) {
// Highlight the date on hover or drag over a date when selecting a range.
if ('highlightDate' in state && (e.pointerType !== 'touch' || state.isDragging)) state.highlightDate(date);
},
onPointerDown (e) {
// This is necessary on touch devices to allow dragging
// outside the original pressed element.
// (JSDOM does not support this)
if ('releasePointerCapture' in e.target) e.target.releasePointerCapture(e.pointerId);
},
onContextMenu (e) {
// Prevent context menu on long press.
e.preventDefault();
}
}),
isPressed: isPressed
};
}
tabIndex,
role: 'button',
'aria-disabled': isDisabled || null,
'aria-label': label,
onPointerEnter(e) {
// Highlight the date on hover or drag over a date when selecting a range.
if ('highlightDate' in state && (e.pointerType !== 'touch' || state.isDragging)) {
state.highlightDate(date);
}
},
var $bd214751887b9f61$exports = {};
onPointerDown(e) {
// This is necessary on touch devices to allow dragging
// outside the original pressed element.
// (JSDOM does not support this)
if ('releasePointerCapture' in e.target) {
e.target.releasePointerCapture(e.pointerId);
$parcel$export($bd214751887b9f61$exports, "useCalendarTableHeader", () => $bd214751887b9f61$export$2d550ec8e081e40b);
function $bd214751887b9f61$export$2d550ec8e081e40b() {
return {
columnHeaderProps: {
scope: 'col'
}
},
};
}
onContextMenu(e) {
// Prevent context menu on long press.
e.preventDefault();
}
}),
isPressed
};
}
export function useCalendarTableHeader() {
return {
columnHeaderProps: {
scope: 'col'
}
};
}
var $01fc4528c6443a6c$exports = {};
export {$e887a1fb79d9897c$export$3ee915f8151bd4f1 as useCalendar, $c7b5bc9340158c8c$export$87e0539f600c24e5 as useRangeCalendar, $420573fe31d1a62d$export$cb95147730a423f5 as useCalendarGrid, $6c48f226d1849f29$export$136073280381448e as useCalendarCell, $bd214751887b9f61$export$2d550ec8e081e40b as useCalendarTableHeader};
//# sourceMappingURL=module.js.map
{
"name": "@react-aria/calendar",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.2",
"description": "Spectrum UI components in React",

@@ -21,11 +21,11 @@ "license": "Apache-2.0",

"@babel/runtime": "^7.6.2",
"@internationalized/date": "3.0.0-alpha.1",
"@react-aria/i18n": "^3.3.4",
"@react-aria/interactions": "^3.7.0",
"@react-aria/live-announcer": "^3.0.0",
"@react-aria/utils": "^3.10.0",
"@react-stately/calendar": "3.0.0-alpha.1",
"@react-types/button": "^3.1.0",
"@react-types/calendar": "3.0.0-alpha.1",
"@react-types/shared": "^3.10.0",
"@internationalized/date": "3.0.0-alpha.2",
"@react-aria/i18n": "^3.3.5",
"@react-aria/interactions": "^3.8.0",
"@react-aria/live-announcer": "^3.0.2",
"@react-aria/utils": "^3.11.1",
"@react-stately/calendar": "3.0.0-alpha.2",
"@react-types/button": "^3.4.2",
"@react-types/calendar": "3.0.0-alpha.2",
"@react-types/shared": "^3.11.0",
"date-fns": "^1.30.1"

@@ -40,3 +40,3 @@ },

},
"gitHead": "16fc29ac722793ffaea083f13760d82ab341cc8d"
"gitHead": "54c2366c4f31bd4bf619126131cd583c12972acc"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc