@react-aria/datepicker 3.0.0-nightly.1502 → 3.0.0-nightly.1514

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/main.js CHANGED
@@ -11,22 +11,6 @@ var $IwcIq$internationalizedmessage = require("@internationalized/message");
11
11
  function $parcel$export(e, n, v, s) {
12
12
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
13
13
  }
14
- function $parcel$exportWildcard(dest, source) {
15
- Object.keys(source).forEach(function(key) {
16
- if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
17
- return;
18
- }
19
-
20
- Object.defineProperty(dest, key, {
21
- enumerable: true,
22
- get: function get() {
23
- return source[key];
24
- }
25
- });
26
- });
27
-
28
- return dest;
29
- }
30
14
  function $parcel$interopDefault(a) {
31
15
  return a && a.__esModule ? a.default : a;
32
16
  }
@@ -36,6 +20,8 @@ $parcel$export(module.exports, "useDateSegment", () => $5c015c6316d1904d$export$
36
20
  $parcel$export(module.exports, "useDateField", () => $4acc2f407c169e55$export$5591b0b878c1a989);
37
21
  $parcel$export(module.exports, "useTimeField", () => $4acc2f407c169e55$export$4c842f6a241dc825);
38
22
  $parcel$export(module.exports, "useDateRangePicker", () => $20f695b1b69e6b9e$export$12fd5f0e9f4bb192);
23
+ $parcel$export(module.exports, "useDisplayNames", () => $934ac650a0aceb4b$export$d42c60378c8168f8);
24
+
39
25
 
40
26
  var $c7d0e80b992ca68a$exports = {};
41
27
  var $aa344be62785b256$exports = {};
@@ -219,7 +205,6 @@ $c7d0e80b992ca68a$exports = {
219
205
 
220
206
 
221
207
 
222
-
223
208
  function $715562ad3b4cced4$export$4a931266a3838b86(state, ref1) {
224
209
  // Open the popover on alt + arrow down
225
210
  let onKeyDown = (e)=>{
@@ -339,6 +324,7 @@ function $4acc2f407c169e55$export$5591b0b878c1a989(props, state, ref) {
339
324
  }, [
340
325
  focusManager
341
326
  ]);
327
+ let domProps = $IwcIq$reactariautils.filterDOMProps(props);
342
328
  return {
343
329
  labelProps: {
344
330
  ...labelProps,
@@ -346,7 +332,7 @@ function $4acc2f407c169e55$export$5591b0b878c1a989(props, state, ref) {
346
332
  focusManager.focusFirst();
347
333
  }
348
334
  },
349
- fieldProps: $IwcIq$reactariautils.mergeProps(fieldDOMProps, groupProps, focusWithinProps),
335
+ fieldProps: $IwcIq$reactariautils.mergeProps(domProps, fieldDOMProps, groupProps, focusWithinProps),
350
336
  descriptionProps: descriptionProps,
351
337
  errorMessageProps: errorMessageProps
352
338
  };
@@ -381,8 +367,9 @@ function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
381
367
  descProps['aria-describedby'],
382
368
  fieldProps['aria-describedby']
383
369
  ].filter(Boolean).join(' ') || undefined;
370
+ let domProps = $IwcIq$reactariautils.filterDOMProps(props);
384
371
  return {
385
- groupProps: $IwcIq$reactariautils.mergeProps(groupProps, fieldProps, descProps, {
372
+ groupProps: $IwcIq$reactariautils.mergeProps(domProps, groupProps, fieldProps, descProps, {
386
373
  role: 'group',
387
374
  'aria-disabled': props.isDisabled || null,
388
375
  'aria-labelledby': labelledBy,
@@ -451,9 +438,6 @@ function $e90ae7c26a69c6b1$export$42df105a73306d51(props, state, ref) {
451
438
 
452
439
 
453
440
 
454
- var $934ac650a0aceb4b$exports = {};
455
-
456
- $parcel$export($934ac650a0aceb4b$exports, "useDisplayNames", () => $934ac650a0aceb4b$export$d42c60378c8168f8);
457
441
 
458
442
 
459
443
 
@@ -858,8 +842,9 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
858
842
  isRequired: props.isRequired,
859
843
  validationState: state.validationState
860
844
  };
845
+ let domProps = $IwcIq$reactariautils.filterDOMProps(props);
861
846
  return {
862
- groupProps: $IwcIq$reactariautils.mergeProps(groupProps, fieldProps, descProps, focusWithinProps, {
847
+ groupProps: $IwcIq$reactariautils.mergeProps(domProps, groupProps, fieldProps, descProps, focusWithinProps, {
863
848
  role: 'group',
864
849
  'aria-disabled': props.isDisabled || null,
865
850
  'aria-describedby': ariaDescribedBy
@@ -919,7 +904,6 @@ function $20f695b1b69e6b9e$export$12fd5f0e9f4bb192(props, state, ref) {
919
904
 
920
905
 
921
906
 
922
- $parcel$exportWildcard(module.exports, $934ac650a0aceb4b$exports);
923
907
 
924
908
 
925
909
  //# sourceMappingURL=main.js.map
package/dist/main.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA+a;;;;ACA3c,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAmc;;;;ACA/d,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAkc;;;;ACA9d,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4Z;;;;ACAxb,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8b;;;;ACA1d,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAqd;;;;ACAjf,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAoe;;;;ACAhgB,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAuc;;;;ACAne,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAic;;;;ACA7d,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAid;;;;ACA7e,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA2c;;;;ACAve,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA0a;;;;ACAtc,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAkc;;;;ACA9d,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA+a;;;;ACA3c,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8c;;;;ACA1e,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAqW;;;;ACAjY,yBAAc,GAAG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xB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;YAC1C,yBAAyB,EAAE,KAAK,CAAC,yBAAyB;YAC1D,mBAAmB,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC,gBAAgB;YACzE,eAAe,EAAE,KAAK,CAAC,eAAe;YACtC,YAAY,EAAE,KAAK,CAAC,YAAY;QAClC,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/datepicker/src/index.ts","packages/@react-aria/datepicker/src/useDatePicker.ts","packages/@react-aria/datepicker/intl/*.js","packages/@react-aria/datepicker/intl/ar-AE.json","packages/@react-aria/datepicker/intl/bg-BG.json","packages/@react-aria/datepicker/intl/cs-CZ.json","packages/@react-aria/datepicker/intl/da-DK.json","packages/@react-aria/datepicker/intl/de-DE.json","packages/@react-aria/datepicker/intl/el-GR.json","packages/@react-aria/datepicker/intl/en-US.json","packages/@react-aria/datepicker/intl/es-ES.json","packages/@react-aria/datepicker/intl/et-EE.json","packages/@react-aria/datepicker/intl/fi-FI.json","packages/@react-aria/datepicker/intl/fr-FR.json","packages/@react-aria/datepicker/intl/he-IL.json","packages/@react-aria/datepicker/intl/hr-HR.json","packages/@react-aria/datepicker/intl/hu-HU.json","packages/@react-aria/datepicker/intl/it-IT.json","packages/@react-aria/datepicker/intl/ja-JP.json","packages/@react-aria/datepicker/intl/ko-KR.json","packages/@react-aria/datepicker/intl/lt-LT.json","packages/@react-aria/datepicker/intl/lv-LV.json","packages/@react-aria/datepicker/intl/nb-NO.json","packages/@react-aria/datepicker/intl/nl-NL.json","packages/@react-aria/datepicker/intl/pl-PL.json","packages/@react-aria/datepicker/intl/pt-BR.json","packages/@react-aria/datepicker/intl/pt-PT.json","packages/@react-aria/datepicker/intl/ro-RO.json","packages/@react-aria/datepicker/intl/ru-RU.json","packages/@react-aria/datepicker/intl/sk-SK.json","packages/@react-aria/datepicker/intl/sl-SI.json","packages/@react-aria/datepicker/intl/sr-SP.json","packages/@react-aria/datepicker/intl/sv-SE.json","packages/@react-aria/datepicker/intl/tr-TR.json","packages/@react-aria/datepicker/intl/uk-UA.json","packages/@react-aria/datepicker/intl/zh-CN.json","packages/@react-aria/datepicker/intl/zh-TW.json","packages/@react-aria/datepicker/src/useDateField.ts","packages/@react-aria/datepicker/src/useDatePickerGroup.ts","packages/@react-aria/datepicker/src/useDateSegment.ts","packages/@react-aria/datepicker/src/useDisplayNames.ts","packages/@react-aria/datepicker/src/useDateRangePicker.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDatePicker} from './useDatePicker';\nexport {useDateSegment} from './useDateSegment';\nexport {useDateField, useTimeField} from './useDateField';\nexport {useDateRangePicker} from './useDateRangePicker';\nexport * from './useDisplayNames';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {roleSymbol} from './useDateField';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DatePickerAria {\n /** Props for the date picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date field and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<HTMLElement>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let date = state.formatValue(locale, {month: 'long'});\n let description = date ? formatMessage('selectedDateDescription', {date}) : '';\n let descProps = useDescription(description);\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n\n return {\n groupProps: mergeProps(groupProps, fieldProps, descProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n let focusManager = createFocusManager(ref);\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n [roleSymbol]: 'presentation',\n 'aria-describedby': ariaDescribedBy,\n value: state.value,\n onChange: state.setValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState,\n autoFocus: props.autoFocus\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateUnavailable: props.isDateUnavailable,\n defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue,\n validationState: state.validationState,\n errorMessage: props.errorMessage\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"calendar\": \"التقويم\",\n \"day\": \"يوم\",\n \"dayPeriod\": \"ص/م\",\n \"endDate\": \"تاريخ الانتهاء\",\n \"era\": \"العصر\",\n \"hour\": \"الساعات\",\n \"minute\": \"الدقائق\",\n \"month\": \"الشهر\",\n \"second\": \"الثواني\",\n \"startDate\": \"تاريخ البدء\",\n \"year\": \"السنة\",\n \"weekday\": \"اليوم\",\n \"timeZoneName\": \"التوقيت\",\n \"selectedDateDescription\": \"التاريخ المحدد: {date}\",\n \"selectedRangeDescription\": \"النطاق المحدد: {startDate} إلى {endDate}\"\n}\n","{\n \"calendar\": \"Календар\",\n \"day\": \"ден\",\n \"dayPeriod\": \"пр.об./сл.об.\",\n \"endDate\": \"Крайна дата\",\n \"era\": \"ера\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месец\",\n \"second\": \"секунда\",\n \"startDate\": \"Начална дата\",\n \"year\": \"година\",\n \"weekday\": \"ден от седмицата\",\n \"timeZoneName\": \"часова зона\",\n \"selectedDateDescription\": \"Избрана дата: {date}\",\n \"selectedRangeDescription\": \"Избран интервал: от {startDate} до {endDate}\"\n}\n","{\n \"calendar\": \"Kalendář\",\n \"day\": \"den\",\n \"dayPeriod\": \"část dne\",\n \"endDate\": \"Konečné datum\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minuta\",\n \"month\": \"měsíc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Počáteční datum\",\n \"year\": \"rok\",\n \"weekday\": \"den v týdnu\",\n \"timeZoneName\": \"časové pásmo\",\n \"selectedDateDescription\": \"Zvolené datum: {date}\",\n \"selectedRangeDescription\": \"Zvolený rozsah: {startDate} až {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Slutdato\",\n \"era\": \"æra\",\n \"hour\": \"time\",\n \"minute\": \"minut\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ugedag\",\n \"timeZoneName\": \"tidszone\",\n \"selectedDateDescription\": \"Valgt dato: {date}\",\n \"selectedRangeDescription\": \"Valgt område: {startDate} til {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"Tag\",\n \"dayPeriod\": \"Tageshälfte\",\n \"endDate\": \"Enddatum\",\n \"era\": \"Epoche\",\n \"hour\": \"Stunde\",\n \"minute\": \"Minute\",\n \"month\": \"Monat\",\n \"second\": \"Sekunde\",\n \"startDate\": \"Anfangsdatum\",\n \"year\": \"Jahr\",\n \"weekday\": \"Wochentag\",\n \"timeZoneName\": \"Zeitzone\",\n \"selectedDateDescription\": \"Ausgewähltes Datum: {date}\",\n \"selectedRangeDescription\": \"Bereich auswählen: {startDate} bis {endDate}\"\n}\n","{\n \"calendar\": \"Ημερολόγιο\",\n \"day\": \"ημέρα\",\n \"dayPeriod\": \"π.μ./μ.μ.\",\n \"endDate\": \"Ημερομηνία λήξης\",\n \"era\": \"περίοδος\",\n \"hour\": \"ώρα\",\n \"minute\": \"λεπτό\",\n \"month\": \"μήνας\",\n \"second\": \"δευτερόλεπτο\",\n \"startDate\": \"Ημερομηνία έναρξης\",\n \"year\": \"έτος\",\n \"weekday\": \"καθημερινή\",\n \"timeZoneName\": \"ζώνη ώρας\",\n \"selectedDateDescription\": \"Επιλεγμένη ημερομηνία: {date}\",\n \"selectedRangeDescription\": \"Επιλεγμένο εύρος: {startDate} έως {endDate}\"\n}\n","{\n \"era\": \"era\",\n \"year\": \"year\",\n \"month\": \"month\",\n \"day\": \"day\",\n \"hour\": \"hour\",\n \"minute\": \"minute\",\n \"second\": \"second\",\n \"dayPeriod\": \"AM/PM\",\n \"calendar\": \"Calendar\",\n \"startDate\": \"Start Date\",\n \"endDate\": \"End Date\",\n \"weekday\": \"day of the week\",\n \"timeZoneName\": \"time zone\",\n \"selectedDateDescription\": \"Selected Date: {date}\",\n \"selectedRangeDescription\": \"Selected Range: {startDate} to {endDate}\",\n \"selectedTimeDescription\": \"Selected Time: {time}\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"day\": \"día\",\n \"dayPeriod\": \"a. m./p. m.\",\n \"endDate\": \"Fecha final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mes\",\n \"second\": \"segundo\",\n \"startDate\": \"Fecha de inicio\",\n \"year\": \"año\",\n \"weekday\": \"día de la semana\",\n \"timeZoneName\": \"zona horaria\",\n \"selectedDateDescription\": \"Fecha seleccionada: {date}\",\n \"selectedRangeDescription\": \"Seleccionar rango: {startDate} a {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"päev\",\n \"dayPeriod\": \"enne/pärast lõunat\",\n \"endDate\": \"Lõppkuupäev\",\n \"era\": \"ajastu\",\n \"hour\": \"tund\",\n \"minute\": \"minut\",\n \"month\": \"kuu\",\n \"second\": \"sekund\",\n \"startDate\": \"Alguskuupäev\",\n \"year\": \"aasta\",\n \"weekday\": \"nädalapäev\",\n \"timeZoneName\": \"ajavöönd\",\n \"selectedDateDescription\": \"Valitud kuupäev: {date}\",\n \"selectedRangeDescription\": \"Valitud vahemik: {startDate} kuni {endDate}\"\n}\n","{\n \"calendar\": \"Kalenteri\",\n \"day\": \"päivä\",\n \"dayPeriod\": \"vuorokaudenaika\",\n \"endDate\": \"Päättymispäivä\",\n \"era\": \"aikakausi\",\n \"hour\": \"tunti\",\n \"minute\": \"minuutti\",\n \"month\": \"kuukausi\",\n \"second\": \"sekunti\",\n \"startDate\": \"Alkamispäivä\",\n \"year\": \"vuosi\",\n \"weekday\": \"viikonpäivä\",\n \"timeZoneName\": \"aikavyöhyke\",\n \"selectedDateDescription\": \"Valittu päivämäärä: {date}\",\n \"selectedRangeDescription\": \"Valittu alue: {startDate} - {endDate}\"\n}\n","{\n \"calendar\": \"Calendrier\",\n \"day\": \"jour\",\n \"dayPeriod\": \"cadran\",\n \"endDate\": \"Date de fin\",\n \"era\": \"ère\",\n \"hour\": \"heure\",\n \"minute\": \"minute\",\n \"month\": \"mois\",\n \"second\": \"seconde\",\n \"startDate\": \"Date de début\",\n \"year\": \"année\",\n \"weekday\": \"jour de la semaine\",\n \"timeZoneName\": \"fuseau horaire\",\n \"selectedDateDescription\": \"Date sélectionnée : {date}\",\n \"selectedRangeDescription\": \"Plage sélectionnée : {startDate} à {endDate}\"\n}\n","{\n \"calendar\": \"לוח שנה\",\n \"day\": \"יום\",\n \"dayPeriod\": \"לפנה״צ/אחה״צ\",\n \"endDate\": \"תאריך סיום\",\n \"era\": \"תקופה\",\n \"hour\": \"שעה\",\n \"minute\": \"דקה\",\n \"month\": \"חודש\",\n \"second\": \"שנייה\",\n \"startDate\": \"תאריך התחלה\",\n \"year\": \"שנה\",\n \"weekday\": \"יום בשבוע\",\n \"timeZoneName\": \"אזור זמן\",\n \"selectedDateDescription\": \"התאריך שנבחר: {date}\",\n \"selectedRangeDescription\": \"הטווח שנבחר: מ-{startDate} ועד {endDate}\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"day\": \"dan\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"era\",\n \"hour\": \"sat\",\n \"minute\": \"minuta\",\n \"month\": \"mjesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum početka\",\n \"year\": \"godina\",\n \"weekday\": \"dan u tjednu\",\n \"timeZoneName\": \"vremenska zona\",\n \"selectedDateDescription\": \"Odabrani datum: {date}\",\n \"selectedRangeDescription\": \"Odabrani raspon: od {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Naptár\",\n \"day\": \"nap\",\n \"dayPeriod\": \"napszak\",\n \"endDate\": \"Befejező dátum\",\n \"era\": \"éra\",\n \"hour\": \"óra\",\n \"minute\": \"perc\",\n \"month\": \"hónap\",\n \"second\": \"másodperc\",\n \"startDate\": \"Kezdő dátum\",\n \"year\": \"év\",\n \"weekday\": \"hét napja\",\n \"timeZoneName\": \"időzóna\",\n \"selectedDateDescription\": \"Kijelölt dátum: {date}\",\n \"selectedRangeDescription\": \"Kijelölt tartomány: {startDate} – {endDate}\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"day\": \"giorno\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data finale\",\n \"era\": \"era\",\n \"hour\": \"ora\",\n \"minute\": \"minuto\",\n \"month\": \"mese\",\n \"second\": \"secondo\",\n \"startDate\": \"Data iniziale\",\n \"year\": \"anno\",\n \"weekday\": \"giorno della settimana\",\n \"timeZoneName\": \"fuso orario\",\n \"selectedDateDescription\": \"Data selezionata: {date}\",\n \"selectedRangeDescription\": \"Intervallo selezionato: da {startDate} a {endDate}\"\n}\n","{\n \"calendar\": \"カレンダー\",\n \"day\": \"日\",\n \"dayPeriod\": \"午前/午後\",\n \"endDate\": \"終了日\",\n \"era\": \"時代\",\n \"hour\": \"時\",\n \"minute\": \"分\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日\",\n \"year\": \"年\",\n \"weekday\": \"曜日\",\n \"timeZoneName\": \"タイムゾーン\",\n \"selectedDateDescription\": \"日付を選択:{date}\",\n \"selectedRangeDescription\": \"範囲を選択:{startDate} から {endDate}\"\n}\n","{\n \"calendar\": \"달력\",\n \"day\": \"일\",\n \"dayPeriod\": \"오전/오후\",\n \"endDate\": \"종료 날짜\",\n \"era\": \"연호\",\n \"hour\": \"시\",\n \"minute\": \"분\",\n \"month\": \"월\",\n \"second\": \"초\",\n \"startDate\": \"시작 날짜\",\n \"year\": \"년\",\n \"weekday\": \"요일\",\n \"timeZoneName\": \"시간대\",\n \"selectedDateDescription\": \"선택한 날짜: {date}\",\n \"selectedRangeDescription\": \"선택한 범위: {startDate} ~ {endDate}\"\n}\n","{\n \"calendar\": \"Kalendorius\",\n \"day\": \"diena\",\n \"dayPeriod\": \"iki pietų / po pietų\",\n \"endDate\": \"Pabaigos data\",\n \"era\": \"era\",\n \"hour\": \"valanda\",\n \"minute\": \"minutė\",\n \"month\": \"mėnuo\",\n \"second\": \"sekundė\",\n \"startDate\": \"Pradžios data\",\n \"year\": \"metai\",\n \"weekday\": \"savaitės diena\",\n \"timeZoneName\": \"laiko juosta\",\n \"selectedDateDescription\": \"Pasirinkta data: {date}\",\n \"selectedRangeDescription\": \"Pasirinktas intervalas: nuo {startDate} iki {endDate}\"\n}\n","{\n \"calendar\": \"Kalendārs\",\n \"day\": \"diena\",\n \"dayPeriod\": \"priekšpusdienā/pēcpusdienā\",\n \"endDate\": \"Beigu datums\",\n \"era\": \"ēra\",\n \"hour\": \"stundas\",\n \"minute\": \"minūtes\",\n \"month\": \"mēnesis\",\n \"second\": \"sekundes\",\n \"startDate\": \"Sākuma datums\",\n \"year\": \"gads\",\n \"weekday\": \"nedēļas diena\",\n \"timeZoneName\": \"laika josla\",\n \"selectedDateDescription\": \"Atlasītais datums: {date}\",\n \"selectedRangeDescription\": \"Atlasītais diapazons: {startDate} līdz {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Sluttdato\",\n \"era\": \"tidsalder\",\n \"hour\": \"time\",\n \"minute\": \"minutt\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ukedag\",\n \"timeZoneName\": \"tidssone\",\n \"selectedDateDescription\": \"Valgt dato: {date}\",\n \"selectedRangeDescription\": \"Valgt område: {startDate} til {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Einddatum\",\n \"era\": \"tijdperk\",\n \"hour\": \"uur\",\n \"minute\": \"minuut\",\n \"month\": \"maand\",\n \"second\": \"seconde\",\n \"startDate\": \"Startdatum\",\n \"year\": \"jaar\",\n \"weekday\": \"dag van de week\",\n \"timeZoneName\": \"tijdzone\",\n \"selectedDateDescription\": \"Geselecteerde datum: {date}\",\n \"selectedRangeDescription\": \"Geselecteerd bereik: {startDate} t/m {endDate}\"\n}\n","{\n \"calendar\": \"Kalendarz\",\n \"day\": \"dzień\",\n \"dayPeriod\": \"rano / po południu / wieczorem\",\n \"endDate\": \"Data końcowa\",\n \"era\": \"era\",\n \"hour\": \"godzina\",\n \"minute\": \"minuta\",\n \"month\": \"miesiąc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Data początkowa\",\n \"year\": \"rok\",\n \"weekday\": \"dzień tygodnia\",\n \"timeZoneName\": \"strefa czasowa\",\n \"selectedDateDescription\": \"Wybrana data: {date}\",\n \"selectedRangeDescription\": \"Wybrany zakres: {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"day\": \"dia\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data inicial\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\",\n \"selectedDateDescription\": \"Data selecionada: {date}\",\n \"selectedRangeDescription\": \"Intervalo selecionado: {startDate} até {endDate}\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"day\": \"dia\",\n \"dayPeriod\": \"am/pm\",\n \"endDate\": \"Data de Término\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data de Início\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\",\n \"selectedDateDescription\": \"Data Selecionada: {data, data, completo}\",\n \"selectedRangeDescription\": \"Selecionar Intervalo: {início, data, longo} a {término, data, longo}\"\n}\n","{\n \"calendar\": \"Calendar\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"startDate\": \"Dată început\",\n \"year\": \"an\",\n \"weekday\": \"ziua din săptămână\",\n \"timeZoneName\": \"fus orar\",\n \"selectedDateDescription\": \"Dată selectată: {date}\",\n \"selectedRangeDescription\": \"Selectaţi raza: {startDate} la {endDate}\"\n}\n","{\n \"calendar\": \"Календарь\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата начала\",\n \"year\": \"год\",\n \"weekday\": \"день недели\",\n \"timeZoneName\": \"часовой пояс\",\n \"selectedDateDescription\": \"Выбранная дата: {date}\",\n \"selectedRangeDescription\": \"Выбранный диапазон: {startDate} – {endDate}\"\n}\n","{\n \"calendar\": \"Kalendár\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"startDate\": \"Dátum začatia\",\n \"year\": \"rok\",\n \"weekday\": \"deň týždňa\",\n \"timeZoneName\": \"časové pásmo\",\n \"selectedDateDescription\": \"Vybratý dátum: {date}\",\n \"selectedRangeDescription\": \"Vybratý rozsah dátumov: {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Koledar\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum začetka\",\n \"year\": \"leto\",\n \"weekday\": \"dan v tednu\",\n \"timeZoneName\": \"časovni pas\",\n \"selectedDateDescription\": \"Izbrani datum: {date}\",\n \"selectedRangeDescription\": \"Izbrani razpon: {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"startDate\": \"Datum početka\",\n \"year\": \"година\",\n \"weekday\": \"дан у недељи\",\n \"timeZoneName\": \"временска зона\",\n \"selectedDateDescription\": \"Izabrani datum: {date}\",\n \"selectedRangeDescription\": \"Izabrani opseg: od {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdatum\",\n \"year\": \"år\",\n \"weekday\": \"veckodag\",\n \"timeZoneName\": \"tidszon\",\n \"selectedDateDescription\": \"Valt datum: {date}\",\n \"selectedRangeDescription\": \"Valt intervall: {startDate} till {endDate}\"\n}\n","{\n \"calendar\": \"Takvim\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"year\": \"yıl\",\n \"weekday\": \"haftanın günü\",\n \"timeZoneName\": \"saat dilimi\",\n \"selectedDateDescription\": \"Seçili Tarih: {date}\",\n \"selectedRangeDescription\": \"Seçili Aralık: {startDate} - {endDate}\"\n}\n","{\n \"calendar\": \"Календар\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата початку\",\n \"year\": \"рік\",\n \"weekday\": \"день тижня\",\n \"timeZoneName\": \"часовий пояс\",\n \"selectedDateDescription\": \"Вибрана дата: {date}\",\n \"selectedRangeDescription\": \"Вибраний діапазон: від {startDate} до {endDate}\"\n}\n","{\n \"calendar\": \"日历\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"结束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"开始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\",\n \"selectedDateDescription\": \"选定的日期: {date}\",\n \"selectedRangeDescription\": \"选定的范围: {startDate} 到 {endDate}\"\n}\n","{\n \"calendar\": \"日曆\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"結束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\",\n \"selectedDateDescription\": \"選取日期: {date}\",\n \"selectedRangeDescription\": \"選取範圍: {startDate} 至 {endDate}\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDatePickerProps, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DateFieldState} from '@react-stately/datepicker';\nimport {HTMLAttributes, RefObject, useEffect, useMemo, useRef} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription} from '@react-aria/utils';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useMessageFormatter} from '@react-aria/i18n';\n\n// Allows this hook to also be used with TimeField\ninterface DateFieldProps<T extends DateValue> extends Omit<AriaDatePickerProps<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue'> {}\n\ninterface DateFieldAria {\n /** Props for the field's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the field grouping element. */\n fieldProps: HTMLAttributes<HTMLElement>,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabel: string,\n ariaLabelledBy: string,\n ariaDescribedBy: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DateFieldState, HookData>();\n\n// Private props that we pass from useDatePicker/useDateRangePicker.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const roleSymbol = '__role_' + Date.now();\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: DateFieldProps<T>, state: DateFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let formatMessage = useMessageFormatter(intlMessages);\n let message = state.maxGranularity === 'hour' ? 'selectedTimeDescription' : 'selectedDateDescription';\n let field = state.maxGranularity === 'hour' ? 'time' : 'date';\n let description = state.value ? formatMessage(message, {[field]: state.formatValue({month: 'long'})}) : '';\n let descProps = useDescription(description);\n\n // If within a date picker or date range picker, the date field will have role=\"presentation\" and an aria-describedby\n // will be passed in that references the value (e.g. entire range). Otherwise, add the field's value description.\n let describedBy = props[roleSymbol] === 'presentation'\n ? fieldProps['aria-describedby']\n : [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n\n // Pass labels and other information to segments.\n hookData.set(state, {\n ariaLabel: props['aria-label'],\n ariaLabelledBy: [props['aria-labelledby'], labelProps.id].filter(Boolean).join(' ') || undefined,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n // When used within a date picker or date range picker, the field gets role=\"presentation\"\n // rather than role=\"group\". Since the date picker/date range picker already has a role=\"group\"\n // with a label and description, and the segments are already labeled by this as well, this\n // avoids very verbose duplicate announcements.\n let fieldDOMProps: HTMLAttributes<HTMLElement>;\n if (props[roleSymbol] === 'presentation') {\n fieldDOMProps = {\n role: 'presentation'\n };\n } else {\n fieldDOMProps = mergeProps(fieldProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n });\n }\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(fieldDOMProps, groupProps, focusWithinProps),\n descriptionProps,\n errorMessageProps\n };\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldProps<T>, state: DateFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n return useDateField(props, state, ref);\n}\n","import {DateFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {getFocusableTreeWalker} from '@react-aria/focus';\nimport {KeyboardEvent} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {RefObject} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DateFieldState, ref: RefObject<HTMLElement>) {\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (e.altKey && (e.key === 'ArrowDown' || e.key === 'ArrowUp') && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as HTMLElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as HTMLElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: HTMLElement;\n do {\n last = walker.lastChild() as HTMLElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.getAttribute('aria-placeholder')) {\n let prev = walker.previousNode() as HTMLElement;\n if (prev && prev.getAttribute('aria-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DateFieldState, DateSegment} from '@react-stately/datepicker';\nimport {getScrollParent, isIOS, isMac, mergeProps, scrollIntoView, useEvent, useId, useLabels} from '@react-aria/utils';\nimport {hookData} from './useDateField';\nimport {NumberParser} from '@internationalized/number';\nimport React, {HTMLAttributes, RefObject, useMemo, useRef} from 'react';\nimport {useDateFormatter, useFilter, useLocale} from '@react-aria/i18n';\nimport {useDisplayNames} from './useDisplayNames';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\ninterface DateSegmentAria {\n /** Props for the segment element. */\n segmentProps: HTMLAttributes<HTMLDivElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a segment in a date field.\n * A date segment displays an individual unit of a date and time, and allows users to edit\n * the value by typing or using the arrow keys to increment and decrement.\n */\nexport function useDateSegment(segment: DateSegment, state: DateFieldState, ref: RefObject<HTMLElement>): DateSegmentAria {\n let enteredKeys = useRef('');\n let {locale, direction} = useLocale();\n let displayNames = useDisplayNames();\n let {ariaLabel, ariaLabelledBy, ariaDescribedBy, focusManager} = hookData.get(state);\n\n let textValue = segment.text;\n let options = useMemo(() => state.dateFormatter.resolvedOptions(), [state.dateFormatter]);\n let monthDateFormatter = useDateFormatter({month: 'long', timeZone: options.timeZone});\n let hourDateFormatter = useDateFormatter({\n hour: 'numeric',\n hour12: options.hour12,\n timeZone: options.timeZone\n });\n\n if (segment.type === 'month') {\n let monthTextValue = monthDateFormatter.format(state.dateValue);\n textValue = monthTextValue !== textValue ? `${textValue} – ${monthTextValue}` : monthTextValue;\n } else if (segment.type === 'hour') {\n textValue = hourDateFormatter.format(state.dateValue);\n }\n\n let {spinButtonProps} = useSpinButton({\n value: segment.value,\n textValue,\n minValue: segment.minValue,\n maxValue: segment.maxValue,\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly || !segment.isEditable,\n isRequired: state.isRequired,\n onIncrement: () => {\n enteredKeys.current = '';\n state.increment(segment.type);\n },\n onDecrement: () => {\n enteredKeys.current = '';\n state.decrement(segment.type);\n },\n onIncrementPage: () => {\n enteredKeys.current = '';\n state.incrementPage(segment.type);\n },\n onDecrementPage: () => {\n enteredKeys.current = '';\n state.decrementPage(segment.type);\n },\n onIncrementToMax: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.maxValue);\n },\n onDecrementToMin: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.minValue);\n }\n });\n\n let parser = useMemo(() => new NumberParser(locale, {maximumFractionDigits: 0}), [locale]);\n\n let backspace = () => {\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly && !segment.isPlaceholder) {\n let newValue = segment.text.slice(0, -1);\n let parsed = parser.parse(newValue);\n if (newValue.length === 0 || parsed === 0) {\n state.clearSegment(segment.type);\n } else {\n state.setSegment(segment.type, parsed);\n }\n enteredKeys.current = newValue;\n } else if (segment.type === 'dayPeriod') {\n state.clearSegment(segment.type);\n }\n };\n\n let onKeyDown = (e) => {\n // Firefox does not fire selectstart for Ctrl/Cmd + A\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1742153\n if (e.key === 'a' && (isMac() ? e.metaKey : e.ctrlKey)) {\n e.preventDefault();\n }\n\n if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext({tabbable: true});\n } else {\n focusManager.focusPrevious({tabbable: true});\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious({tabbable: true});\n } else {\n focusManager.focusNext({tabbable: true});\n }\n break;\n case 'Enter':\n e.preventDefault();\n e.stopPropagation();\n if (segment.isPlaceholder && !state.isReadOnly) {\n state.confirmPlaceholder(segment.type);\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'Tab':\n break;\n case 'Backspace':\n case 'Delete': {\n // Safari on iOS does not fire beforeinput for the backspace key because the cursor is at the start.\n e.preventDefault();\n e.stopPropagation();\n backspace();\n break;\n }\n }\n };\n\n // Safari dayPeriod option doesn't work...\n let {startsWith} = useFilter({sensitivity: 'base'});\n let amPmFormatter = useDateFormatter({hour: 'numeric', hour12: true});\n let am = useMemo(() => {\n let date = new Date();\n date.setHours(0);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let pm = useMemo(() => {\n let date = new Date();\n date.setHours(12);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let onInput = (key: string) => {\n if (state.isDisabled || state.isReadOnly) {\n return;\n }\n\n let newValue = enteredKeys.current + key;\n\n switch (segment.type) {\n case 'dayPeriod':\n if (startsWith(am, key)) {\n state.setSegment('dayPeriod', 0);\n } else if (startsWith(pm, key)) {\n state.setSegment('dayPeriod', 12);\n } else {\n break;\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'day':\n case 'hour':\n case 'minute':\n case 'second':\n case 'month':\n case 'year': {\n if (!parser.isValidPartialNumber(newValue)) {\n return;\n }\n\n let numberValue = parser.parse(newValue);\n let segmentValue = numberValue;\n let allowsZero = segment.minValue === 0;\n if (segment.type === 'hour' && state.dateFormatter.resolvedOptions().hour12) {\n switch (state.dateFormatter.resolvedOptions().hourCycle) {\n case 'h11':\n if (numberValue > 11) {\n segmentValue = parser.parse(key);\n }\n break;\n case 'h12':\n allowsZero = false;\n if (numberValue > 12) {\n segmentValue = parser.parse(key);\n }\n break;\n }\n\n if (segment.value >= 12 && numberValue > 1) {\n numberValue += 12;\n }\n } else if (numberValue > segment.maxValue) {\n segmentValue = parser.parse(key);\n }\n\n if (isNaN(numberValue)) {\n return;\n }\n\n let shouldSetValue = segmentValue !== 0 || allowsZero;\n if (shouldSetValue) {\n state.setSegment(segment.type, segmentValue);\n }\n\n if (Number(numberValue + '0') > segment.maxValue || newValue.length >= String(segment.maxValue).length) {\n enteredKeys.current = '';\n if (shouldSetValue) {\n focusManager.focusNext({tabbable: true});\n }\n } else {\n enteredKeys.current = newValue;\n }\n break;\n }\n }\n };\n\n let onFocus = () => {\n enteredKeys.current = '';\n scrollIntoView(getScrollParent(ref.current) as HTMLElement, ref.current);\n\n // Safari requires that a selection is set or it won't fire input events.\n // Since usePress disables text selection, this won't happen by default.\n ref.current.style.webkitUserSelect = 'text';\n let selection = window.getSelection();\n selection.collapse(ref.current);\n ref.current.style.webkitUserSelect = '';\n };\n\n let compositionRef = useRef('');\n // @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...\n useEvent(ref, 'beforeinput', e => {\n e.preventDefault();\n\n switch (e.inputType) {\n case 'deleteContentBackward':\n case 'deleteContentForward':\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly) {\n backspace();\n }\n break;\n case 'insertCompositionText':\n // insertCompositionText cannot be canceled.\n // Record the current state of the element so we can restore it in the `input` event below.\n compositionRef.current = ref.current.textContent;\n\n // Safari gets stuck in a composition state unless we also assign to the value here.\n // eslint-disable-next-line no-self-assign\n ref.current.textContent = ref.current.textContent;\n break;\n default:\n if (e.data != null) {\n onInput(e.data);\n }\n break;\n }\n });\n\n useEvent(ref, 'input', (e: InputEvent) => {\n let {inputType, data} = e;\n switch (inputType) {\n case 'insertCompositionText':\n // Reset the DOM to how it was in the beforeinput event.\n ref.current.textContent = compositionRef.current;\n\n // Android sometimes fires key presses of letters as composition events. Need to handle am/pm keys here too.\n // Can also happen e.g. with Pinyin keyboard on iOS.\n if (startsWith(am, data) || startsWith(pm, data)) {\n onInput(data);\n }\n break;\n }\n });\n\n // For Android: prevent selection on long press.\n useEvent(ref, 'selectstart', e => {\n e.preventDefault();\n });\n\n // spinbuttons cannot be focused with VoiceOver on iOS.\n let touchPropOverrides = isIOS() || segment.type === 'timeZoneName' ? {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuetext': null,\n 'aria-valuenow': null\n } : {};\n\n // Only apply aria-describedby to the first segment, unless the field is invalid. This avoids it being\n // read every time the user navigates to a new segment.\n let firstSegment = useMemo(() => state.segments.find(s => s.isEditable), [state.segments]);\n if (segment !== firstSegment && state.validationState !== 'invalid') {\n ariaDescribedBy = undefined;\n }\n\n let id = useId();\n let isEditable = !state.isDisabled && !state.isReadOnly && segment.isEditable;\n\n // Prepend the label passed from the field to each segment name.\n // This is needed because VoiceOver on iOS does not announce groups.\n let name = segment.type === 'literal' ? '' : displayNames.of(segment.type);\n let labelProps = useLabels({\n 'aria-label': (ariaLabel ? ariaLabel + ' ' : '') + name,\n 'aria-labelledby': ariaLabelledBy\n });\n\n // Literal segments should not be visible to screen readers. We don't really need any of the above,\n // but the rules of hooks mean hooks cannot be conditional so we have to put this condition here.\n if (segment.type === 'literal') {\n return {\n segmentProps: {\n 'aria-hidden': true\n }\n };\n }\n\n return {\n segmentProps: mergeProps(spinButtonProps, labelProps, {\n id,\n ...touchPropOverrides,\n 'aria-invalid': state.validationState === 'invalid' ? 'true' : undefined,\n 'aria-describedby': ariaDescribedBy,\n 'aria-placeholder': segment.isPlaceholder ? segment.text : undefined,\n 'aria-readonly': state.isReadOnly || !segment.isEditable ? 'true' : undefined,\n contentEditable: isEditable,\n suppressContentEditableWarning: isEditable,\n spellCheck: isEditable ? 'false' : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n // Capitalization was changed in React 17...\n [parseInt(React.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,\n inputMode: state.isDisabled || segment.type === 'dayPeriod' || !isEditable ? undefined : 'numeric',\n tabIndex: state.isDisabled ? undefined : 0,\n onKeyDown,\n onFocus,\n style: {\n caretColor: 'transparent',\n userSelect: 'none',\n WebkitUserSelect: 'none'\n },\n // Prevent pointer events from reaching useDatePickerGroup, and allow native browser behavior to focus the segment.\n onPointerDown(e) {\n e.stopPropagation();\n },\n onMouseDown(e) {\n e.stopPropagation();\n }\n })\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {MessageDictionary} from '@internationalized/message';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\ntype Field = 'era' | 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayPeriod' | 'timeZoneName' | 'weekday';\ninterface DisplayNames {\n of(field: Field): string\n}\n\nexport function useDisplayNames(): DisplayNames {\n let {locale} = useLocale();\n return useMemo(() => {\n // Try to use Intl.DisplayNames if possible. It may be supported in browsers, but not support the dateTimeField\n // type as that was only added in v2. https://github.com/tc39/intl-displaynames-v2\n try {\n // @ts-ignore\n return new Intl.DisplayNames(locale, {type: 'dateTimeField'});\n } catch (err) {\n return new DisplayNamesPolyfill(locale);\n }\n }, [locale]);\n}\n\nclass DisplayNamesPolyfill implements DisplayNames {\n private locale: string;\n private dictionary: MessageDictionary;\n\n constructor(locale: string) {\n this.locale = locale;\n this.dictionary = new MessageDictionary(intlMessages);\n }\n\n of(field: Field): string {\n return this.dictionary.getStringForLocale(field, this.locale);\n }\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, AriaDateRangePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DateRangePickerState} from '@react-stately/datepicker';\nimport {focusManagerSymbol, roleSymbol} from './useDateField';\nimport {HTMLAttributes, RefObject, useMemo} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {RangeCalendarProps} from '@react-types/calendar';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\ninterface DateRangePickerAria {\n /** Props for the date range picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date fields and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the start date field. */\n startFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the end date field. */\n endFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the range calendar within the popover dialog. */\n calendarProps: RangeCalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date range picker combines two DateFields and a RangeCalendar popover to allow\n * users to enter or select a date and time range.\n */\nexport function useDateRangePicker<T extends DateValue>(props: AriaDateRangePickerProps<T>, state: DateRangePickerState, ref: RefObject<HTMLElement>): DateRangePickerAria {\n let formatMessage = useMessageFormatter(intlMessages);\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let range = state.formatValue(locale, {month: 'long'});\n let description = range ? formatMessage('selectedRangeDescription', {startDate: range.start, endDate: range.end}) : '';\n let descProps = useDescription(description);\n\n let startFieldProps = {\n 'aria-label': formatMessage('startDate'),\n 'aria-labelledby': labelledBy\n };\n\n let endFieldProps = {\n 'aria-label': formatMessage('endDate'),\n 'aria-labelledby': labelledBy\n };\n\n let buttonId = useId();\n let dialogId = useId();\n\n let groupProps = useDatePickerGroup(state, ref);\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n let commonFieldProps = {\n [focusManagerSymbol]: focusManager,\n [roleSymbol]: 'presentation',\n 'aria-describedby': ariaDescribedBy,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState\n };\n\n return {\n groupProps: mergeProps(groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n startFieldProps: {\n ...startFieldProps,\n ...commonFieldProps,\n value: state.value?.start,\n onChange: start => state.setDateTime('start', start),\n autoFocus: props.autoFocus\n },\n endFieldProps: {\n ...endFieldProps,\n ...commonFieldProps,\n value: state.value?.end,\n onChange: end => state.setDateTime('end', end)\n },\n descriptionProps,\n errorMessageProps,\n calendarProps: {\n autoFocus: true,\n value: state.dateRange,\n onChange: state.setDateRange,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateUnavailable: props.isDateUnavailable,\n allowsNonContiguousRanges: props.allowsNonContiguousRanges,\n defaultFocusedValue: state.dateRange ? undefined : props.placeholderValue,\n validationState: state.validationState,\n errorMessage: props.errorMessage\n }\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AGAA,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA+a;;;;ACA3c,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAmc;;;;ACA/d,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAkc;;;;ACA9d,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA4Z;;;;ACAxb,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAA8b;;;;ACA1d,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAqd;;;;ACAjf,yBAAc,GAAG,IAAI,CAAC,KAAK,CAAC,CAAoe;;;;ACAhgB,yBAAc,GAAG,IAAI,CAAC,KAAK,C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,CAAkB,GAAlB,IAAW,CAAE,KAAK;YACzB,QAAQ,GAAE,KAAK,GAAI,KAAK,CAAC,WAAW,CAAC,CAAO,QAAE,KAAK;;YACnD,SAAS,EAAE,KAAK,CAAC,SAAS;QAC5B,CAAC;QACD,aAAa,EAAE,CAAC;eACX,aAAa;eACb,gBAAgB;YACnB,KAAK,GAAE,IAAW,GAAX,KAAK,CAAC,KAAK,cAAX,IAAW,KAAX,IAAI,CAAJ,CAAgB,GAAhB,IAAI,CAAJ,CAAgB,GAAhB,IAAW,CAAE,GAAG;YACvB,QAAQ,GAAE,GAAG,GAAI,KAAK,CAAC,WAAW,CAAC,CAAK,MAAE,GAAG;QAC/C,CAAC;0BACD,gBAAgB;2BAChB,iBAAiB;QACjB,aAAa,EAAE,CAAC;YACd,SAAS,EAAE,IAAI;YACf,KAAK,EAAE,KAAK,CAAC,SAAS;YACtB,QAAQ,EAAE,KAAK,CAAC,YAAY;YAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,UAAU,EAAE,KAAK,CAAC,UAAU;YAC5B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;YAC1C,yBAAyB,EAAE,KAAK,CAAC,yBAAyB;YAC1D,mBAAmB,EAAE,KAAK,CAAC,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC,gBAAgB;YACzE,eAAe,EAAE,KAAK,CAAC,eAAe;YACtC,YAAY,EAAE,KAAK,CAAC,YAAY;QAClC,CAAC;IACH,CAAC;AACH,CAAC;;","sources":["packages/@react-aria/datepicker/src/index.ts","packages/@react-aria/datepicker/src/useDatePicker.ts","packages/@react-aria/datepicker/intl/*.js","packages/@react-aria/datepicker/intl/ar-AE.json","packages/@react-aria/datepicker/intl/bg-BG.json","packages/@react-aria/datepicker/intl/cs-CZ.json","packages/@react-aria/datepicker/intl/da-DK.json","packages/@react-aria/datepicker/intl/de-DE.json","packages/@react-aria/datepicker/intl/el-GR.json","packages/@react-aria/datepicker/intl/en-US.json","packages/@react-aria/datepicker/intl/es-ES.json","packages/@react-aria/datepicker/intl/et-EE.json","packages/@react-aria/datepicker/intl/fi-FI.json","packages/@react-aria/datepicker/intl/fr-FR.json","packages/@react-aria/datepicker/intl/he-IL.json","packages/@react-aria/datepicker/intl/hr-HR.json","packages/@react-aria/datepicker/intl/hu-HU.json","packages/@react-aria/datepicker/intl/it-IT.json","packages/@react-aria/datepicker/intl/ja-JP.json","packages/@react-aria/datepicker/intl/ko-KR.json","packages/@react-aria/datepicker/intl/lt-LT.json","packages/@react-aria/datepicker/intl/lv-LV.json","packages/@react-aria/datepicker/intl/nb-NO.json","packages/@react-aria/datepicker/intl/nl-NL.json","packages/@react-aria/datepicker/intl/pl-PL.json","packages/@react-aria/datepicker/intl/pt-BR.json","packages/@react-aria/datepicker/intl/pt-PT.json","packages/@react-aria/datepicker/intl/ro-RO.json","packages/@react-aria/datepicker/intl/ru-RU.json","packages/@react-aria/datepicker/intl/sk-SK.json","packages/@react-aria/datepicker/intl/sl-SI.json","packages/@react-aria/datepicker/intl/sr-SP.json","packages/@react-aria/datepicker/intl/sv-SE.json","packages/@react-aria/datepicker/intl/tr-TR.json","packages/@react-aria/datepicker/intl/uk-UA.json","packages/@react-aria/datepicker/intl/zh-CN.json","packages/@react-aria/datepicker/intl/zh-TW.json","packages/@react-aria/datepicker/src/useDateField.ts","packages/@react-aria/datepicker/src/useDatePickerGroup.ts","packages/@react-aria/datepicker/src/useDateSegment.ts","packages/@react-aria/datepicker/src/useDisplayNames.ts","packages/@react-aria/datepicker/src/useDateRangePicker.ts"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {useDatePicker} from './useDatePicker';\nexport {useDateSegment} from './useDateSegment';\nexport {useDateField, useTimeField} from './useDateField';\nexport {useDateRangePicker} from './useDateRangePicker';\nexport {useDisplayNames} from './useDisplayNames';\n\nexport type {AriaDatePickerProps, AriaDateRangePickerProps} from '@react-types/datepicker';\nexport type {AriaDateFieldProps, DateFieldAria} from './useDateField';\nexport type {DatePickerAria} from './useDatePicker';\nexport type {DateRangePickerAria} from './useDateRangePicker';\nexport type {DateSegmentAria} from './useDateSegment';\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {CalendarProps} from '@react-types/calendar';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DatePickerState} from '@react-stately/datepicker';\nimport {filterDOMProps, mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {HTMLAttributes, RefObject} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {roleSymbol} from './useDateField';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\nexport interface DatePickerAria {\n /** Props for the date picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date field and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the date field. */\n fieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the calendar within the popover dialog. */\n calendarProps: CalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.\n */\nexport function useDatePicker<T extends DateValue>(props: AriaDatePickerProps<T>, state: DatePickerState, ref: RefObject<HTMLElement>): DatePickerAria {\n let buttonId = useId();\n let dialogId = useId();\n let formatMessage = useMessageFormatter(intlMessages);\n\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let date = state.formatValue(locale, {month: 'long'});\n let description = date ? formatMessage('selectedDateDescription', {date}) : '';\n let descProps = useDescription(description);\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let domProps = filterDOMProps(props);\n\n return {\n groupProps: mergeProps(domProps, groupProps, fieldProps, descProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-labelledby': labelledBy,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n let focusManager = createFocusManager(ref);\n focusManager.focusFirst();\n }\n },\n fieldProps: {\n ...fieldProps,\n [roleSymbol]: 'presentation',\n 'aria-describedby': ariaDescribedBy,\n value: state.value,\n onChange: state.setValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState,\n autoFocus: props.autoFocus\n },\n descriptionProps,\n errorMessageProps,\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n calendarProps: {\n autoFocus: true,\n value: state.dateValue,\n onChange: state.setDateValue,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateUnavailable: props.isDateUnavailable,\n defaultFocusedValue: state.dateValue ? undefined : props.placeholderValue,\n validationState: state.validationState,\n errorMessage: props.errorMessage\n }\n };\n}\n","const _temp0 = require(\"./ar-AE.json\");\nconst _temp1 = require(\"./bg-BG.json\");\nconst _temp2 = require(\"./cs-CZ.json\");\nconst _temp3 = require(\"./da-DK.json\");\nconst _temp4 = require(\"./de-DE.json\");\nconst _temp5 = require(\"./el-GR.json\");\nconst _temp6 = require(\"./en-US.json\");\nconst _temp7 = require(\"./es-ES.json\");\nconst _temp8 = require(\"./et-EE.json\");\nconst _temp9 = require(\"./fi-FI.json\");\nconst _temp10 = require(\"./fr-FR.json\");\nconst _temp11 = require(\"./he-IL.json\");\nconst _temp12 = require(\"./hr-HR.json\");\nconst _temp13 = require(\"./hu-HU.json\");\nconst _temp14 = require(\"./it-IT.json\");\nconst _temp15 = require(\"./ja-JP.json\");\nconst _temp16 = require(\"./ko-KR.json\");\nconst _temp17 = require(\"./lt-LT.json\");\nconst _temp18 = require(\"./lv-LV.json\");\nconst _temp19 = require(\"./nb-NO.json\");\nconst _temp20 = require(\"./nl-NL.json\");\nconst _temp21 = require(\"./pl-PL.json\");\nconst _temp22 = require(\"./pt-BR.json\");\nconst _temp23 = require(\"./pt-PT.json\");\nconst _temp24 = require(\"./ro-RO.json\");\nconst _temp25 = require(\"./ru-RU.json\");\nconst _temp26 = require(\"./sk-SK.json\");\nconst _temp27 = require(\"./sl-SI.json\");\nconst _temp28 = require(\"./sr-SP.json\");\nconst _temp29 = require(\"./sv-SE.json\");\nconst _temp30 = require(\"./tr-TR.json\");\nconst _temp31 = require(\"./uk-UA.json\");\nconst _temp32 = require(\"./zh-CN.json\");\nconst _temp33 = require(\"./zh-TW.json\");\nmodule.exports = {\n \"ar-AE\": _temp0,\n \"bg-BG\": _temp1,\n \"cs-CZ\": _temp2,\n \"da-DK\": _temp3,\n \"de-DE\": _temp4,\n \"el-GR\": _temp5,\n \"en-US\": _temp6,\n \"es-ES\": _temp7,\n \"et-EE\": _temp8,\n \"fi-FI\": _temp9,\n \"fr-FR\": _temp10,\n \"he-IL\": _temp11,\n \"hr-HR\": _temp12,\n \"hu-HU\": _temp13,\n \"it-IT\": _temp14,\n \"ja-JP\": _temp15,\n \"ko-KR\": _temp16,\n \"lt-LT\": _temp17,\n \"lv-LV\": _temp18,\n \"nb-NO\": _temp19,\n \"nl-NL\": _temp20,\n \"pl-PL\": _temp21,\n \"pt-BR\": _temp22,\n \"pt-PT\": _temp23,\n \"ro-RO\": _temp24,\n \"ru-RU\": _temp25,\n \"sk-SK\": _temp26,\n \"sl-SI\": _temp27,\n \"sr-SP\": _temp28,\n \"sv-SE\": _temp29,\n \"tr-TR\": _temp30,\n \"uk-UA\": _temp31,\n \"zh-CN\": _temp32,\n \"zh-TW\": _temp33\n}","{\n \"calendar\": \"التقويم\",\n \"day\": \"يوم\",\n \"dayPeriod\": \"ص/م\",\n \"endDate\": \"تاريخ الانتهاء\",\n \"era\": \"العصر\",\n \"hour\": \"الساعات\",\n \"minute\": \"الدقائق\",\n \"month\": \"الشهر\",\n \"second\": \"الثواني\",\n \"startDate\": \"تاريخ البدء\",\n \"year\": \"السنة\",\n \"weekday\": \"اليوم\",\n \"timeZoneName\": \"التوقيت\",\n \"selectedDateDescription\": \"التاريخ المحدد: {date}\",\n \"selectedRangeDescription\": \"النطاق المحدد: {startDate} إلى {endDate}\"\n}\n","{\n \"calendar\": \"Календар\",\n \"day\": \"ден\",\n \"dayPeriod\": \"пр.об./сл.об.\",\n \"endDate\": \"Крайна дата\",\n \"era\": \"ера\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месец\",\n \"second\": \"секунда\",\n \"startDate\": \"Начална дата\",\n \"year\": \"година\",\n \"weekday\": \"ден от седмицата\",\n \"timeZoneName\": \"часова зона\",\n \"selectedDateDescription\": \"Избрана дата: {date}\",\n \"selectedRangeDescription\": \"Избран интервал: от {startDate} до {endDate}\"\n}\n","{\n \"calendar\": \"Kalendář\",\n \"day\": \"den\",\n \"dayPeriod\": \"část dne\",\n \"endDate\": \"Konečné datum\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minuta\",\n \"month\": \"měsíc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Počáteční datum\",\n \"year\": \"rok\",\n \"weekday\": \"den v týdnu\",\n \"timeZoneName\": \"časové pásmo\",\n \"selectedDateDescription\": \"Zvolené datum: {date}\",\n \"selectedRangeDescription\": \"Zvolený rozsah: {startDate} až {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Slutdato\",\n \"era\": \"æra\",\n \"hour\": \"time\",\n \"minute\": \"minut\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ugedag\",\n \"timeZoneName\": \"tidszone\",\n \"selectedDateDescription\": \"Valgt dato: {date}\",\n \"selectedRangeDescription\": \"Valgt område: {startDate} til {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"Tag\",\n \"dayPeriod\": \"Tageshälfte\",\n \"endDate\": \"Enddatum\",\n \"era\": \"Epoche\",\n \"hour\": \"Stunde\",\n \"minute\": \"Minute\",\n \"month\": \"Monat\",\n \"second\": \"Sekunde\",\n \"startDate\": \"Anfangsdatum\",\n \"year\": \"Jahr\",\n \"weekday\": \"Wochentag\",\n \"timeZoneName\": \"Zeitzone\",\n \"selectedDateDescription\": \"Ausgewähltes Datum: {date}\",\n \"selectedRangeDescription\": \"Bereich auswählen: {startDate} bis {endDate}\"\n}\n","{\n \"calendar\": \"Ημερολόγιο\",\n \"day\": \"ημέρα\",\n \"dayPeriod\": \"π.μ./μ.μ.\",\n \"endDate\": \"Ημερομηνία λήξης\",\n \"era\": \"περίοδος\",\n \"hour\": \"ώρα\",\n \"minute\": \"λεπτό\",\n \"month\": \"μήνας\",\n \"second\": \"δευτερόλεπτο\",\n \"startDate\": \"Ημερομηνία έναρξης\",\n \"year\": \"έτος\",\n \"weekday\": \"καθημερινή\",\n \"timeZoneName\": \"ζώνη ώρας\",\n \"selectedDateDescription\": \"Επιλεγμένη ημερομηνία: {date}\",\n \"selectedRangeDescription\": \"Επιλεγμένο εύρος: {startDate} έως {endDate}\"\n}\n","{\n \"era\": \"era\",\n \"year\": \"year\",\n \"month\": \"month\",\n \"day\": \"day\",\n \"hour\": \"hour\",\n \"minute\": \"minute\",\n \"second\": \"second\",\n \"dayPeriod\": \"AM/PM\",\n \"calendar\": \"Calendar\",\n \"startDate\": \"Start Date\",\n \"endDate\": \"End Date\",\n \"weekday\": \"day of the week\",\n \"timeZoneName\": \"time zone\",\n \"selectedDateDescription\": \"Selected Date: {date}\",\n \"selectedRangeDescription\": \"Selected Range: {startDate} to {endDate}\",\n \"selectedTimeDescription\": \"Selected Time: {time}\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"day\": \"día\",\n \"dayPeriod\": \"a. m./p. m.\",\n \"endDate\": \"Fecha final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mes\",\n \"second\": \"segundo\",\n \"startDate\": \"Fecha de inicio\",\n \"year\": \"año\",\n \"weekday\": \"día de la semana\",\n \"timeZoneName\": \"zona horaria\",\n \"selectedDateDescription\": \"Fecha seleccionada: {date}\",\n \"selectedRangeDescription\": \"Seleccionar rango: {startDate} a {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"päev\",\n \"dayPeriod\": \"enne/pärast lõunat\",\n \"endDate\": \"Lõppkuupäev\",\n \"era\": \"ajastu\",\n \"hour\": \"tund\",\n \"minute\": \"minut\",\n \"month\": \"kuu\",\n \"second\": \"sekund\",\n \"startDate\": \"Alguskuupäev\",\n \"year\": \"aasta\",\n \"weekday\": \"nädalapäev\",\n \"timeZoneName\": \"ajavöönd\",\n \"selectedDateDescription\": \"Valitud kuupäev: {date}\",\n \"selectedRangeDescription\": \"Valitud vahemik: {startDate} kuni {endDate}\"\n}\n","{\n \"calendar\": \"Kalenteri\",\n \"day\": \"päivä\",\n \"dayPeriod\": \"vuorokaudenaika\",\n \"endDate\": \"Päättymispäivä\",\n \"era\": \"aikakausi\",\n \"hour\": \"tunti\",\n \"minute\": \"minuutti\",\n \"month\": \"kuukausi\",\n \"second\": \"sekunti\",\n \"startDate\": \"Alkamispäivä\",\n \"year\": \"vuosi\",\n \"weekday\": \"viikonpäivä\",\n \"timeZoneName\": \"aikavyöhyke\",\n \"selectedDateDescription\": \"Valittu päivämäärä: {date}\",\n \"selectedRangeDescription\": \"Valittu alue: {startDate} - {endDate}\"\n}\n","{\n \"calendar\": \"Calendrier\",\n \"day\": \"jour\",\n \"dayPeriod\": \"cadran\",\n \"endDate\": \"Date de fin\",\n \"era\": \"ère\",\n \"hour\": \"heure\",\n \"minute\": \"minute\",\n \"month\": \"mois\",\n \"second\": \"seconde\",\n \"startDate\": \"Date de début\",\n \"year\": \"année\",\n \"weekday\": \"jour de la semaine\",\n \"timeZoneName\": \"fuseau horaire\",\n \"selectedDateDescription\": \"Date sélectionnée : {date}\",\n \"selectedRangeDescription\": \"Plage sélectionnée : {startDate} à {endDate}\"\n}\n","{\n \"calendar\": \"לוח שנה\",\n \"day\": \"יום\",\n \"dayPeriod\": \"לפנה״צ/אחה״צ\",\n \"endDate\": \"תאריך סיום\",\n \"era\": \"תקופה\",\n \"hour\": \"שעה\",\n \"minute\": \"דקה\",\n \"month\": \"חודש\",\n \"second\": \"שנייה\",\n \"startDate\": \"תאריך התחלה\",\n \"year\": \"שנה\",\n \"weekday\": \"יום בשבוע\",\n \"timeZoneName\": \"אזור זמן\",\n \"selectedDateDescription\": \"התאריך שנבחר: {date}\",\n \"selectedRangeDescription\": \"הטווח שנבחר: מ-{startDate} ועד {endDate}\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"day\": \"dan\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"era\",\n \"hour\": \"sat\",\n \"minute\": \"minuta\",\n \"month\": \"mjesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum početka\",\n \"year\": \"godina\",\n \"weekday\": \"dan u tjednu\",\n \"timeZoneName\": \"vremenska zona\",\n \"selectedDateDescription\": \"Odabrani datum: {date}\",\n \"selectedRangeDescription\": \"Odabrani raspon: od {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Naptár\",\n \"day\": \"nap\",\n \"dayPeriod\": \"napszak\",\n \"endDate\": \"Befejező dátum\",\n \"era\": \"éra\",\n \"hour\": \"óra\",\n \"minute\": \"perc\",\n \"month\": \"hónap\",\n \"second\": \"másodperc\",\n \"startDate\": \"Kezdő dátum\",\n \"year\": \"év\",\n \"weekday\": \"hét napja\",\n \"timeZoneName\": \"időzóna\",\n \"selectedDateDescription\": \"Kijelölt dátum: {date}\",\n \"selectedRangeDescription\": \"Kijelölt tartomány: {startDate} – {endDate}\"\n}\n","{\n \"calendar\": \"Calendario\",\n \"day\": \"giorno\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data finale\",\n \"era\": \"era\",\n \"hour\": \"ora\",\n \"minute\": \"minuto\",\n \"month\": \"mese\",\n \"second\": \"secondo\",\n \"startDate\": \"Data iniziale\",\n \"year\": \"anno\",\n \"weekday\": \"giorno della settimana\",\n \"timeZoneName\": \"fuso orario\",\n \"selectedDateDescription\": \"Data selezionata: {date}\",\n \"selectedRangeDescription\": \"Intervallo selezionato: da {startDate} a {endDate}\"\n}\n","{\n \"calendar\": \"カレンダー\",\n \"day\": \"日\",\n \"dayPeriod\": \"午前/午後\",\n \"endDate\": \"終了日\",\n \"era\": \"時代\",\n \"hour\": \"時\",\n \"minute\": \"分\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日\",\n \"year\": \"年\",\n \"weekday\": \"曜日\",\n \"timeZoneName\": \"タイムゾーン\",\n \"selectedDateDescription\": \"日付を選択:{date}\",\n \"selectedRangeDescription\": \"範囲を選択:{startDate} から {endDate}\"\n}\n","{\n \"calendar\": \"달력\",\n \"day\": \"일\",\n \"dayPeriod\": \"오전/오후\",\n \"endDate\": \"종료 날짜\",\n \"era\": \"연호\",\n \"hour\": \"시\",\n \"minute\": \"분\",\n \"month\": \"월\",\n \"second\": \"초\",\n \"startDate\": \"시작 날짜\",\n \"year\": \"년\",\n \"weekday\": \"요일\",\n \"timeZoneName\": \"시간대\",\n \"selectedDateDescription\": \"선택한 날짜: {date}\",\n \"selectedRangeDescription\": \"선택한 범위: {startDate} ~ {endDate}\"\n}\n","{\n \"calendar\": \"Kalendorius\",\n \"day\": \"diena\",\n \"dayPeriod\": \"iki pietų / po pietų\",\n \"endDate\": \"Pabaigos data\",\n \"era\": \"era\",\n \"hour\": \"valanda\",\n \"minute\": \"minutė\",\n \"month\": \"mėnuo\",\n \"second\": \"sekundė\",\n \"startDate\": \"Pradžios data\",\n \"year\": \"metai\",\n \"weekday\": \"savaitės diena\",\n \"timeZoneName\": \"laiko juosta\",\n \"selectedDateDescription\": \"Pasirinkta data: {date}\",\n \"selectedRangeDescription\": \"Pasirinktas intervalas: nuo {startDate} iki {endDate}\"\n}\n","{\n \"calendar\": \"Kalendārs\",\n \"day\": \"diena\",\n \"dayPeriod\": \"priekšpusdienā/pēcpusdienā\",\n \"endDate\": \"Beigu datums\",\n \"era\": \"ēra\",\n \"hour\": \"stundas\",\n \"minute\": \"minūtes\",\n \"month\": \"mēnesis\",\n \"second\": \"sekundes\",\n \"startDate\": \"Sākuma datums\",\n \"year\": \"gads\",\n \"weekday\": \"nedēļas diena\",\n \"timeZoneName\": \"laika josla\",\n \"selectedDateDescription\": \"Atlasītais datums: {date}\",\n \"selectedRangeDescription\": \"Atlasītais diapazons: {startDate} līdz {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Sluttdato\",\n \"era\": \"tidsalder\",\n \"hour\": \"time\",\n \"minute\": \"minutt\",\n \"month\": \"måned\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdato\",\n \"year\": \"år\",\n \"weekday\": \"ukedag\",\n \"timeZoneName\": \"tidssone\",\n \"selectedDateDescription\": \"Valgt dato: {date}\",\n \"selectedRangeDescription\": \"Valgt område: {startDate} til {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"a.m./p.m.\",\n \"endDate\": \"Einddatum\",\n \"era\": \"tijdperk\",\n \"hour\": \"uur\",\n \"minute\": \"minuut\",\n \"month\": \"maand\",\n \"second\": \"seconde\",\n \"startDate\": \"Startdatum\",\n \"year\": \"jaar\",\n \"weekday\": \"dag van de week\",\n \"timeZoneName\": \"tijdzone\",\n \"selectedDateDescription\": \"Geselecteerde datum: {date}\",\n \"selectedRangeDescription\": \"Geselecteerd bereik: {startDate} t/m {endDate}\"\n}\n","{\n \"calendar\": \"Kalendarz\",\n \"day\": \"dzień\",\n \"dayPeriod\": \"rano / po południu / wieczorem\",\n \"endDate\": \"Data końcowa\",\n \"era\": \"era\",\n \"hour\": \"godzina\",\n \"minute\": \"minuta\",\n \"month\": \"miesiąc\",\n \"second\": \"sekunda\",\n \"startDate\": \"Data początkowa\",\n \"year\": \"rok\",\n \"weekday\": \"dzień tygodnia\",\n \"timeZoneName\": \"strefa czasowa\",\n \"selectedDateDescription\": \"Wybrana data: {date}\",\n \"selectedRangeDescription\": \"Wybrany zakres: {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"day\": \"dia\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Data final\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data inicial\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\",\n \"selectedDateDescription\": \"Data selecionada: {date}\",\n \"selectedRangeDescription\": \"Intervalo selecionado: {startDate} até {endDate}\"\n}\n","{\n \"calendar\": \"Calendário\",\n \"day\": \"dia\",\n \"dayPeriod\": \"am/pm\",\n \"endDate\": \"Data de Término\",\n \"era\": \"era\",\n \"hour\": \"hora\",\n \"minute\": \"minuto\",\n \"month\": \"mês\",\n \"second\": \"segundo\",\n \"startDate\": \"Data de Início\",\n \"year\": \"ano\",\n \"weekday\": \"dia da semana\",\n \"timeZoneName\": \"fuso horário\",\n \"selectedDateDescription\": \"Data Selecionada: {data, data, completo}\",\n \"selectedRangeDescription\": \"Selecionar Intervalo: {início, data, longo} a {término, data, longo}\"\n}\n","{\n \"calendar\": \"Calendar\",\n \"day\": \"zi\",\n \"dayPeriod\": \"a.m/p.m.\",\n \"endDate\": \"Dată final\",\n \"era\": \"eră\",\n \"hour\": \"oră\",\n \"minute\": \"minut\",\n \"month\": \"lună\",\n \"second\": \"secundă\",\n \"startDate\": \"Dată început\",\n \"year\": \"an\",\n \"weekday\": \"ziua din săptămână\",\n \"timeZoneName\": \"fus orar\",\n \"selectedDateDescription\": \"Dată selectată: {date}\",\n \"selectedRangeDescription\": \"Selectaţi raza: {startDate} la {endDate}\"\n}\n","{\n \"calendar\": \"Календарь\",\n \"day\": \"день\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Дата окончания\",\n \"era\": \"эра\",\n \"hour\": \"час\",\n \"minute\": \"минута\",\n \"month\": \"месяц\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата начала\",\n \"year\": \"год\",\n \"weekday\": \"день недели\",\n \"timeZoneName\": \"часовой пояс\",\n \"selectedDateDescription\": \"Выбранная дата: {date}\",\n \"selectedRangeDescription\": \"Выбранный диапазон: {startDate} – {endDate}\"\n}\n","{\n \"calendar\": \"Kalendár\",\n \"day\": \"deň\",\n \"dayPeriod\": \"AM/PM\",\n \"endDate\": \"Dátum ukončenia\",\n \"era\": \"letopočet\",\n \"hour\": \"hodina\",\n \"minute\": \"minúta\",\n \"month\": \"mesiac\",\n \"second\": \"sekunda\",\n \"startDate\": \"Dátum začatia\",\n \"year\": \"rok\",\n \"weekday\": \"deň týždňa\",\n \"timeZoneName\": \"časové pásmo\",\n \"selectedDateDescription\": \"Vybratý dátum: {date}\",\n \"selectedRangeDescription\": \"Vybratý rozsah dátumov: {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Koledar\",\n \"day\": \"dan\",\n \"dayPeriod\": \"dop/pop\",\n \"endDate\": \"Datum konca\",\n \"era\": \"doba\",\n \"hour\": \"ura\",\n \"minute\": \"minuta\",\n \"month\": \"mesec\",\n \"second\": \"sekunda\",\n \"startDate\": \"Datum začetka\",\n \"year\": \"leto\",\n \"weekday\": \"dan v tednu\",\n \"timeZoneName\": \"časovni pas\",\n \"selectedDateDescription\": \"Izbrani datum: {date}\",\n \"selectedRangeDescription\": \"Izbrani razpon: {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Kalendar\",\n \"day\": \"дан\",\n \"dayPeriod\": \"пре подне/по подне\",\n \"endDate\": \"Datum završetka\",\n \"era\": \"ера\",\n \"hour\": \"сат\",\n \"minute\": \"минут\",\n \"month\": \"месец\",\n \"second\": \"секунд\",\n \"startDate\": \"Datum početka\",\n \"year\": \"година\",\n \"weekday\": \"дан у недељи\",\n \"timeZoneName\": \"временска зона\",\n \"selectedDateDescription\": \"Izabrani datum: {date}\",\n \"selectedRangeDescription\": \"Izabrani opseg: od {startDate} do {endDate}\"\n}\n","{\n \"calendar\": \"Kalender\",\n \"day\": \"dag\",\n \"dayPeriod\": \"fm/em\",\n \"endDate\": \"Slutdatum\",\n \"era\": \"era\",\n \"hour\": \"timme\",\n \"minute\": \"minut\",\n \"month\": \"månad\",\n \"second\": \"sekund\",\n \"startDate\": \"Startdatum\",\n \"year\": \"år\",\n \"weekday\": \"veckodag\",\n \"timeZoneName\": \"tidszon\",\n \"selectedDateDescription\": \"Valt datum: {date}\",\n \"selectedRangeDescription\": \"Valt intervall: {startDate} till {endDate}\"\n}\n","{\n \"calendar\": \"Takvim\",\n \"day\": \"gün\",\n \"dayPeriod\": \"ÖÖ/ÖS\",\n \"endDate\": \"Bitiş Tarihi\",\n \"era\": \"çağ\",\n \"hour\": \"saat\",\n \"minute\": \"dakika\",\n \"month\": \"ay\",\n \"second\": \"saniye\",\n \"startDate\": \"Başlangıç Tarihi\",\n \"year\": \"yıl\",\n \"weekday\": \"haftanın günü\",\n \"timeZoneName\": \"saat dilimi\",\n \"selectedDateDescription\": \"Seçili Tarih: {date}\",\n \"selectedRangeDescription\": \"Seçili Aralık: {startDate} - {endDate}\"\n}\n","{\n \"calendar\": \"Календар\",\n \"day\": \"день\",\n \"dayPeriod\": \"дп/пп\",\n \"endDate\": \"Дата завершення\",\n \"era\": \"ера\",\n \"hour\": \"година\",\n \"minute\": \"хвилина\",\n \"month\": \"місяць\",\n \"second\": \"секунда\",\n \"startDate\": \"Дата початку\",\n \"year\": \"рік\",\n \"weekday\": \"день тижня\",\n \"timeZoneName\": \"часовий пояс\",\n \"selectedDateDescription\": \"Вибрана дата: {date}\",\n \"selectedRangeDescription\": \"Вибраний діапазон: від {startDate} до {endDate}\"\n}\n","{\n \"calendar\": \"日历\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"结束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"开始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\",\n \"selectedDateDescription\": \"选定的日期: {date}\",\n \"selectedRangeDescription\": \"选定的范围: {startDate} 到 {endDate}\"\n}\n","{\n \"calendar\": \"日曆\",\n \"day\": \"日\",\n \"dayPeriod\": \"上午/下午\",\n \"endDate\": \"結束日期\",\n \"era\": \"纪元\",\n \"hour\": \"小时\",\n \"minute\": \"分钟\",\n \"month\": \"月\",\n \"second\": \"秒\",\n \"startDate\": \"開始日期\",\n \"year\": \"年\",\n \"weekday\": \"工作日\",\n \"timeZoneName\": \"时区\",\n \"selectedDateDescription\": \"選取日期: {date}\",\n \"selectedRangeDescription\": \"選取範圍: {startDate} 至 {endDate}\"\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaDatePickerProps, AriaTimeFieldProps, DateValue, TimeValue} from '@react-types/datepicker';\nimport {createFocusManager, FocusManager} from '@react-aria/focus';\nimport {DateFieldState} from '@react-stately/datepicker';\nimport {filterDOMProps, mergeProps, useDescription} from '@react-aria/utils';\nimport {HTMLAttributes, RefObject, useEffect, useMemo, useRef} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useMessageFormatter} from '@react-aria/i18n';\n\n// Allows this hook to also be used with TimeField\nexport interface AriaDateFieldProps<T extends DateValue> extends Omit<AriaDatePickerProps<T>, 'value' | 'defaultValue' | 'onChange' | 'minValue' | 'maxValue' | 'placeholderValue'> {}\n\nexport interface DateFieldAria {\n /** Props for the field's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the field grouping element. */\n fieldProps: HTMLAttributes<HTMLElement>,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>\n}\n\n// Data that is passed between useDateField and useDateSegment.\ninterface HookData {\n ariaLabel: string,\n ariaLabelledBy: string,\n ariaDescribedBy: string,\n focusManager: FocusManager\n}\n\nexport const hookData = new WeakMap<DateFieldState, HookData>();\n\n// Private props that we pass from useDatePicker/useDateRangePicker.\n// Ideally we'd use a Symbol for this, but React doesn't support them: https://github.com/facebook/react/issues/7552\nexport const roleSymbol = '__role_' + Date.now();\nexport const focusManagerSymbol = '__focusManager_' + Date.now();\n\n/**\n * Provides the behavior and accessibility implementation for a date field component.\n * A date field allows users to enter and edit date and time values using a keyboard.\n * Each part of a date value is displayed in an individually editable segment.\n */\nexport function useDateField<T extends DateValue>(props: AriaDateFieldProps<T>, state: DateFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let groupProps = useDatePickerGroup(state, ref);\n\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let formatMessage = useMessageFormatter(intlMessages);\n let message = state.maxGranularity === 'hour' ? 'selectedTimeDescription' : 'selectedDateDescription';\n let field = state.maxGranularity === 'hour' ? 'time' : 'date';\n let description = state.value ? formatMessage(message, {[field]: state.formatValue({month: 'long'})}) : '';\n let descProps = useDescription(description);\n\n // If within a date picker or date range picker, the date field will have role=\"presentation\" and an aria-describedby\n // will be passed in that references the value (e.g. entire range). Otherwise, add the field's value description.\n let describedBy = props[roleSymbol] === 'presentation'\n ? fieldProps['aria-describedby']\n : [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let propsFocusManager = props[focusManagerSymbol];\n let focusManager = useMemo(() => propsFocusManager || createFocusManager(ref), [propsFocusManager, ref]);\n\n // Pass labels and other information to segments.\n hookData.set(state, {\n ariaLabel: props['aria-label'],\n ariaLabelledBy: [props['aria-labelledby'], labelProps.id].filter(Boolean).join(' ') || undefined,\n ariaDescribedBy: describedBy,\n focusManager\n });\n\n let autoFocusRef = useRef(props.autoFocus);\n\n // When used within a date picker or date range picker, the field gets role=\"presentation\"\n // rather than role=\"group\". Since the date picker/date range picker already has a role=\"group\"\n // with a label and description, and the segments are already labeled by this as well, this\n // avoids very verbose duplicate announcements.\n let fieldDOMProps: HTMLAttributes<HTMLElement>;\n if (props[roleSymbol] === 'presentation') {\n fieldDOMProps = {\n role: 'presentation'\n };\n } else {\n fieldDOMProps = mergeProps(fieldProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || undefined,\n 'aria-describedby': describedBy\n });\n }\n\n useEffect(() => {\n if (autoFocusRef.current) {\n focusManager.focusFirst();\n }\n autoFocusRef.current = false;\n }, [focusManager]);\n\n let domProps = filterDOMProps(props);\n return {\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n fieldProps: mergeProps(domProps, fieldDOMProps, groupProps, focusWithinProps),\n descriptionProps,\n errorMessageProps\n };\n}\n\n/**\n * Provides the behavior and accessibility implementation for a time field component.\n * A time field allows users to enter and edit time values using a keyboard.\n * Each part of a time value is displayed in an individually editable segment.\n */\nexport function useTimeField<T extends TimeValue>(props: AriaTimeFieldProps<T>, state: DateFieldState, ref: RefObject<HTMLElement>): DateFieldAria {\n return useDateField(props, state, ref);\n}\n","import {DateFieldState, DatePickerState, DateRangePickerState} from '@react-stately/datepicker';\nimport {getFocusableTreeWalker} from '@react-aria/focus';\nimport {KeyboardEvent} from '@react-types/shared';\nimport {mergeProps} from '@react-aria/utils';\nimport {RefObject} from 'react';\nimport {usePress} from '@react-aria/interactions';\n\nexport function useDatePickerGroup(state: DatePickerState | DateRangePickerState | DateFieldState, ref: RefObject<HTMLElement>) {\n // Open the popover on alt + arrow down\n let onKeyDown = (e: KeyboardEvent) => {\n if (e.altKey && (e.key === 'ArrowDown' || e.key === 'ArrowUp') && 'setOpen' in state) {\n e.preventDefault();\n e.stopPropagation();\n state.setOpen(true);\n }\n };\n\n // Focus the first placeholder segment from the end on mouse down/touch up in the field.\n let focusLast = () => {\n // Try to find the segment prior to the element that was clicked on.\n let target = window.event?.target as HTMLElement;\n let walker = getFocusableTreeWalker(ref.current, {tabbable: true});\n if (target) {\n walker.currentNode = target;\n target = walker.previousNode() as HTMLElement;\n }\n\n // If no target found, find the last element from the end.\n if (!target) {\n let last: HTMLElement;\n do {\n last = walker.lastChild() as HTMLElement;\n if (last) {\n target = last;\n }\n } while (last);\n }\n\n // Now go backwards until we find an element that is not a placeholder.\n while (target?.getAttribute('aria-placeholder')) {\n let prev = walker.previousNode() as HTMLElement;\n if (prev && prev.getAttribute('aria-placeholder')) {\n target = prev;\n } else {\n break;\n }\n }\n\n if (target) {\n target.focus();\n }\n };\n\n let {pressProps} = usePress({\n onPressStart(e) {\n if (e.pointerType === 'mouse') {\n focusLast();\n }\n },\n onPress(e) {\n if (e.pointerType !== 'mouse') {\n focusLast();\n }\n }\n });\n\n return mergeProps(pressProps, {onKeyDown});\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {DateFieldState, DateSegment} from '@react-stately/datepicker';\nimport {getScrollParent, isIOS, isMac, mergeProps, scrollIntoView, useEvent, useId, useLabels} from '@react-aria/utils';\nimport {hookData} from './useDateField';\nimport {NumberParser} from '@internationalized/number';\nimport React, {HTMLAttributes, RefObject, useMemo, useRef} from 'react';\nimport {useDateFormatter, useFilter, useLocale} from '@react-aria/i18n';\nimport {useDisplayNames} from './useDisplayNames';\nimport {useSpinButton} from '@react-aria/spinbutton';\n\nexport interface DateSegmentAria {\n /** Props for the segment element. */\n segmentProps: HTMLAttributes<HTMLDivElement>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a segment in a date field.\n * A date segment displays an individual unit of a date and time, and allows users to edit\n * the value by typing or using the arrow keys to increment and decrement.\n */\nexport function useDateSegment(segment: DateSegment, state: DateFieldState, ref: RefObject<HTMLElement>): DateSegmentAria {\n let enteredKeys = useRef('');\n let {locale, direction} = useLocale();\n let displayNames = useDisplayNames();\n let {ariaLabel, ariaLabelledBy, ariaDescribedBy, focusManager} = hookData.get(state);\n\n let textValue = segment.text;\n let options = useMemo(() => state.dateFormatter.resolvedOptions(), [state.dateFormatter]);\n let monthDateFormatter = useDateFormatter({month: 'long', timeZone: options.timeZone});\n let hourDateFormatter = useDateFormatter({\n hour: 'numeric',\n hour12: options.hour12,\n timeZone: options.timeZone\n });\n\n if (segment.type === 'month') {\n let monthTextValue = monthDateFormatter.format(state.dateValue);\n textValue = monthTextValue !== textValue ? `${textValue} – ${monthTextValue}` : monthTextValue;\n } else if (segment.type === 'hour') {\n textValue = hourDateFormatter.format(state.dateValue);\n }\n\n let {spinButtonProps} = useSpinButton({\n value: segment.value,\n textValue,\n minValue: segment.minValue,\n maxValue: segment.maxValue,\n isDisabled: state.isDisabled,\n isReadOnly: state.isReadOnly || !segment.isEditable,\n isRequired: state.isRequired,\n onIncrement: () => {\n enteredKeys.current = '';\n state.increment(segment.type);\n },\n onDecrement: () => {\n enteredKeys.current = '';\n state.decrement(segment.type);\n },\n onIncrementPage: () => {\n enteredKeys.current = '';\n state.incrementPage(segment.type);\n },\n onDecrementPage: () => {\n enteredKeys.current = '';\n state.decrementPage(segment.type);\n },\n onIncrementToMax: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.maxValue);\n },\n onDecrementToMin: () => {\n enteredKeys.current = '';\n state.setSegment(segment.type, segment.minValue);\n }\n });\n\n let parser = useMemo(() => new NumberParser(locale, {maximumFractionDigits: 0}), [locale]);\n\n let backspace = () => {\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly && !segment.isPlaceholder) {\n let newValue = segment.text.slice(0, -1);\n let parsed = parser.parse(newValue);\n if (newValue.length === 0 || parsed === 0) {\n state.clearSegment(segment.type);\n } else {\n state.setSegment(segment.type, parsed);\n }\n enteredKeys.current = newValue;\n } else if (segment.type === 'dayPeriod') {\n state.clearSegment(segment.type);\n }\n };\n\n let onKeyDown = (e) => {\n // Firefox does not fire selectstart for Ctrl/Cmd + A\n // https://bugzilla.mozilla.org/show_bug.cgi?id=1742153\n if (e.key === 'a' && (isMac() ? e.metaKey : e.ctrlKey)) {\n e.preventDefault();\n }\n\n if (e.ctrlKey || e.metaKey || e.shiftKey || e.altKey) {\n return;\n }\n\n switch (e.key) {\n case 'ArrowLeft':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusNext({tabbable: true});\n } else {\n focusManager.focusPrevious({tabbable: true});\n }\n break;\n case 'ArrowRight':\n e.preventDefault();\n e.stopPropagation();\n if (direction === 'rtl') {\n focusManager.focusPrevious({tabbable: true});\n } else {\n focusManager.focusNext({tabbable: true});\n }\n break;\n case 'Enter':\n e.preventDefault();\n e.stopPropagation();\n if (segment.isPlaceholder && !state.isReadOnly) {\n state.confirmPlaceholder(segment.type);\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'Tab':\n break;\n case 'Backspace':\n case 'Delete': {\n // Safari on iOS does not fire beforeinput for the backspace key because the cursor is at the start.\n e.preventDefault();\n e.stopPropagation();\n backspace();\n break;\n }\n }\n };\n\n // Safari dayPeriod option doesn't work...\n let {startsWith} = useFilter({sensitivity: 'base'});\n let amPmFormatter = useDateFormatter({hour: 'numeric', hour12: true});\n let am = useMemo(() => {\n let date = new Date();\n date.setHours(0);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let pm = useMemo(() => {\n let date = new Date();\n date.setHours(12);\n return amPmFormatter.formatToParts(date).find(part => part.type === 'dayPeriod').value;\n }, [amPmFormatter]);\n\n let onInput = (key: string) => {\n if (state.isDisabled || state.isReadOnly) {\n return;\n }\n\n let newValue = enteredKeys.current + key;\n\n switch (segment.type) {\n case 'dayPeriod':\n if (startsWith(am, key)) {\n state.setSegment('dayPeriod', 0);\n } else if (startsWith(pm, key)) {\n state.setSegment('dayPeriod', 12);\n } else {\n break;\n }\n focusManager.focusNext({tabbable: true});\n break;\n case 'day':\n case 'hour':\n case 'minute':\n case 'second':\n case 'month':\n case 'year': {\n if (!parser.isValidPartialNumber(newValue)) {\n return;\n }\n\n let numberValue = parser.parse(newValue);\n let segmentValue = numberValue;\n let allowsZero = segment.minValue === 0;\n if (segment.type === 'hour' && state.dateFormatter.resolvedOptions().hour12) {\n switch (state.dateFormatter.resolvedOptions().hourCycle) {\n case 'h11':\n if (numberValue > 11) {\n segmentValue = parser.parse(key);\n }\n break;\n case 'h12':\n allowsZero = false;\n if (numberValue > 12) {\n segmentValue = parser.parse(key);\n }\n break;\n }\n\n if (segment.value >= 12 && numberValue > 1) {\n numberValue += 12;\n }\n } else if (numberValue > segment.maxValue) {\n segmentValue = parser.parse(key);\n }\n\n if (isNaN(numberValue)) {\n return;\n }\n\n let shouldSetValue = segmentValue !== 0 || allowsZero;\n if (shouldSetValue) {\n state.setSegment(segment.type, segmentValue);\n }\n\n if (Number(numberValue + '0') > segment.maxValue || newValue.length >= String(segment.maxValue).length) {\n enteredKeys.current = '';\n if (shouldSetValue) {\n focusManager.focusNext({tabbable: true});\n }\n } else {\n enteredKeys.current = newValue;\n }\n break;\n }\n }\n };\n\n let onFocus = () => {\n enteredKeys.current = '';\n scrollIntoView(getScrollParent(ref.current) as HTMLElement, ref.current);\n\n // Safari requires that a selection is set or it won't fire input events.\n // Since usePress disables text selection, this won't happen by default.\n ref.current.style.webkitUserSelect = 'text';\n let selection = window.getSelection();\n selection.collapse(ref.current);\n ref.current.style.webkitUserSelect = '';\n };\n\n let compositionRef = useRef('');\n // @ts-ignore - TODO: possibly old TS version? doesn't fail in my editor...\n useEvent(ref, 'beforeinput', e => {\n e.preventDefault();\n\n switch (e.inputType) {\n case 'deleteContentBackward':\n case 'deleteContentForward':\n if (parser.isValidPartialNumber(segment.text) && !state.isReadOnly) {\n backspace();\n }\n break;\n case 'insertCompositionText':\n // insertCompositionText cannot be canceled.\n // Record the current state of the element so we can restore it in the `input` event below.\n compositionRef.current = ref.current.textContent;\n\n // Safari gets stuck in a composition state unless we also assign to the value here.\n // eslint-disable-next-line no-self-assign\n ref.current.textContent = ref.current.textContent;\n break;\n default:\n if (e.data != null) {\n onInput(e.data);\n }\n break;\n }\n });\n\n useEvent(ref, 'input', (e: InputEvent) => {\n let {inputType, data} = e;\n switch (inputType) {\n case 'insertCompositionText':\n // Reset the DOM to how it was in the beforeinput event.\n ref.current.textContent = compositionRef.current;\n\n // Android sometimes fires key presses of letters as composition events. Need to handle am/pm keys here too.\n // Can also happen e.g. with Pinyin keyboard on iOS.\n if (startsWith(am, data) || startsWith(pm, data)) {\n onInput(data);\n }\n break;\n }\n });\n\n // For Android: prevent selection on long press.\n useEvent(ref, 'selectstart', e => {\n e.preventDefault();\n });\n\n // spinbuttons cannot be focused with VoiceOver on iOS.\n let touchPropOverrides = isIOS() || segment.type === 'timeZoneName' ? {\n role: 'textbox',\n 'aria-valuemax': null,\n 'aria-valuemin': null,\n 'aria-valuetext': null,\n 'aria-valuenow': null\n } : {};\n\n // Only apply aria-describedby to the first segment, unless the field is invalid. This avoids it being\n // read every time the user navigates to a new segment.\n let firstSegment = useMemo(() => state.segments.find(s => s.isEditable), [state.segments]);\n if (segment !== firstSegment && state.validationState !== 'invalid') {\n ariaDescribedBy = undefined;\n }\n\n let id = useId();\n let isEditable = !state.isDisabled && !state.isReadOnly && segment.isEditable;\n\n // Prepend the label passed from the field to each segment name.\n // This is needed because VoiceOver on iOS does not announce groups.\n let name = segment.type === 'literal' ? '' : displayNames.of(segment.type);\n let labelProps = useLabels({\n 'aria-label': (ariaLabel ? ariaLabel + ' ' : '') + name,\n 'aria-labelledby': ariaLabelledBy\n });\n\n // Literal segments should not be visible to screen readers. We don't really need any of the above,\n // but the rules of hooks mean hooks cannot be conditional so we have to put this condition here.\n if (segment.type === 'literal') {\n return {\n segmentProps: {\n 'aria-hidden': true\n }\n };\n }\n\n return {\n segmentProps: mergeProps(spinButtonProps, labelProps, {\n id,\n ...touchPropOverrides,\n 'aria-invalid': state.validationState === 'invalid' ? 'true' : undefined,\n 'aria-describedby': ariaDescribedBy,\n 'aria-placeholder': segment.isPlaceholder ? segment.text : undefined,\n 'aria-readonly': state.isReadOnly || !segment.isEditable ? 'true' : undefined,\n contentEditable: isEditable,\n suppressContentEditableWarning: isEditable,\n spellCheck: isEditable ? 'false' : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n // Capitalization was changed in React 17...\n [parseInt(React.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,\n inputMode: state.isDisabled || segment.type === 'dayPeriod' || !isEditable ? undefined : 'numeric',\n tabIndex: state.isDisabled ? undefined : 0,\n onKeyDown,\n onFocus,\n style: {\n caretColor: 'transparent',\n userSelect: 'none',\n WebkitUserSelect: 'none'\n },\n // Prevent pointer events from reaching useDatePickerGroup, and allow native browser behavior to focus the segment.\n onPointerDown(e) {\n e.stopPropagation();\n },\n onMouseDown(e) {\n e.stopPropagation();\n }\n })\n };\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {MessageDictionary} from '@internationalized/message';\nimport {useLocale} from '@react-aria/i18n';\nimport {useMemo} from 'react';\n\ntype Field = 'era' | 'year' | 'month' | 'day' | 'hour' | 'minute' | 'second' | 'dayPeriod' | 'timeZoneName' | 'weekday';\ninterface DisplayNames {\n of(field: Field): string\n}\n\n/** @private */\nexport function useDisplayNames(): DisplayNames {\n let {locale} = useLocale();\n return useMemo(() => {\n // Try to use Intl.DisplayNames if possible. It may be supported in browsers, but not support the dateTimeField\n // type as that was only added in v2. https://github.com/tc39/intl-displaynames-v2\n try {\n // @ts-ignore\n return new Intl.DisplayNames(locale, {type: 'dateTimeField'});\n } catch (err) {\n return new DisplayNamesPolyfill(locale);\n }\n }, [locale]);\n}\n\nclass DisplayNamesPolyfill implements DisplayNames {\n private locale: string;\n private dictionary: MessageDictionary;\n\n constructor(locale: string) {\n this.locale = locale;\n this.dictionary = new MessageDictionary(intlMessages);\n }\n\n of(field: Field): string {\n return this.dictionary.getStringForLocale(field, this.locale);\n }\n}\n","/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonProps} from '@react-types/button';\nimport {AriaDatePickerProps, AriaDateRangePickerProps, DateValue} from '@react-types/datepicker';\nimport {AriaDialogProps} from '@react-types/dialog';\nimport {createFocusManager} from '@react-aria/focus';\nimport {DateRangePickerState} from '@react-stately/datepicker';\nimport {filterDOMProps, mergeProps, useDescription, useId} from '@react-aria/utils';\nimport {focusManagerSymbol, roleSymbol} from './useDateField';\nimport {HTMLAttributes, RefObject, useMemo} from 'react';\n// @ts-ignore\nimport intlMessages from '../intl/*.json';\nimport {RangeCalendarProps} from '@react-types/calendar';\nimport {useDatePickerGroup} from './useDatePickerGroup';\nimport {useField} from '@react-aria/label';\nimport {useFocusWithin} from '@react-aria/interactions';\nimport {useLocale, useMessageFormatter} from '@react-aria/i18n';\n\nexport interface DateRangePickerAria {\n /** Props for the date range picker's visible label element, if any. */\n labelProps: HTMLAttributes<HTMLElement>,\n /** Props for the grouping element containing the date fields and button. */\n groupProps: HTMLAttributes<HTMLElement>,\n /** Props for the start date field. */\n startFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the end date field. */\n endFieldProps: AriaDatePickerProps<DateValue>,\n /** Props for the popover trigger button. */\n buttonProps: AriaButtonProps,\n /** Props for the description element, if any. */\n descriptionProps: HTMLAttributes<HTMLElement>,\n /** Props for the error message element, if any. */\n errorMessageProps: HTMLAttributes<HTMLElement>,\n /** Props for the popover dialog. */\n dialogProps: AriaDialogProps,\n /** Props for the range calendar within the popover dialog. */\n calendarProps: RangeCalendarProps<DateValue>\n}\n\n/**\n * Provides the behavior and accessibility implementation for a date picker component.\n * A date range picker combines two DateFields and a RangeCalendar popover to allow\n * users to enter or select a date and time range.\n */\nexport function useDateRangePicker<T extends DateValue>(props: AriaDateRangePickerProps<T>, state: DateRangePickerState, ref: RefObject<HTMLElement>): DateRangePickerAria {\n let formatMessage = useMessageFormatter(intlMessages);\n let {labelProps, fieldProps, descriptionProps, errorMessageProps} = useField({\n ...props,\n labelElementType: 'span'\n });\n\n let labelledBy = fieldProps['aria-labelledby'] || fieldProps.id;\n\n let {locale} = useLocale();\n let range = state.formatValue(locale, {month: 'long'});\n let description = range ? formatMessage('selectedRangeDescription', {startDate: range.start, endDate: range.end}) : '';\n let descProps = useDescription(description);\n\n let startFieldProps = {\n 'aria-label': formatMessage('startDate'),\n 'aria-labelledby': labelledBy\n };\n\n let endFieldProps = {\n 'aria-label': formatMessage('endDate'),\n 'aria-labelledby': labelledBy\n };\n\n let buttonId = useId();\n let dialogId = useId();\n\n let groupProps = useDatePickerGroup(state, ref);\n let {focusWithinProps} = useFocusWithin({\n onBlurWithin() {\n state.confirmPlaceholder();\n }\n });\n\n let ariaDescribedBy = [descProps['aria-describedby'], fieldProps['aria-describedby']].filter(Boolean).join(' ') || undefined;\n let focusManager = useMemo(() => createFocusManager(ref), [ref]);\n let commonFieldProps = {\n [focusManagerSymbol]: focusManager,\n [roleSymbol]: 'presentation',\n 'aria-describedby': ariaDescribedBy,\n minValue: props.minValue,\n maxValue: props.maxValue,\n placeholderValue: props.placeholderValue,\n hideTimeZone: props.hideTimeZone,\n hourCycle: props.hourCycle,\n granularity: props.granularity,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isRequired: props.isRequired,\n validationState: state.validationState\n };\n\n let domProps = filterDOMProps(props);\n\n return {\n groupProps: mergeProps(domProps, groupProps, fieldProps, descProps, focusWithinProps, {\n role: 'group',\n 'aria-disabled': props.isDisabled || null,\n 'aria-describedby': ariaDescribedBy\n }),\n labelProps: {\n ...labelProps,\n onClick: () => {\n focusManager.focusFirst();\n }\n },\n buttonProps: {\n ...descProps,\n id: buttonId,\n excludeFromTabOrder: true,\n 'aria-haspopup': 'dialog',\n 'aria-label': formatMessage('calendar'),\n 'aria-labelledby': `${labelledBy} ${buttonId}`,\n 'aria-describedby': ariaDescribedBy,\n onPress: () => state.setOpen(true)\n },\n dialogProps: {\n id: dialogId,\n 'aria-labelledby': `${labelledBy} ${buttonId}`\n },\n startFieldProps: {\n ...startFieldProps,\n ...commonFieldProps,\n value: state.value?.start,\n onChange: start => state.setDateTime('start', start),\n autoFocus: props.autoFocus\n },\n endFieldProps: {\n ...endFieldProps,\n ...commonFieldProps,\n value: state.value?.end,\n onChange: end => state.setDateTime('end', end)\n },\n descriptionProps,\n errorMessageProps,\n calendarProps: {\n autoFocus: true,\n value: state.dateRange,\n onChange: state.setDateRange,\n minValue: props.minValue,\n maxValue: props.maxValue,\n isDisabled: props.isDisabled,\n isReadOnly: props.isReadOnly,\n isDateUnavailable: props.isDateUnavailable,\n allowsNonContiguousRanges: props.allowsNonContiguousRanges,\n defaultFocusedValue: state.dateRange ? undefined : props.placeholderValue,\n validationState: state.validationState,\n errorMessage: props.errorMessage\n }\n };\n}\n"],"names":[],"version":3,"file":"main.js.map"}