@scbt-ecom/ui 0.117.1 → 0.118.0

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.
Files changed (125) hide show
  1. package/dist/lib/widgets/model/helpers.js +2 -2
  2. package/dist/lib/widgets/model/helpers.js.map +1 -1
  3. package/dist/node_modules/@tanstack/query-core/build/modern/notifyManager.js +1 -1
  4. package/dist/node_modules/@tanstack/query-core/build/modern/notifyManager.js.map +1 -1
  5. package/dist/node_modules/@tanstack/query-core/build/modern/query.js +1 -1
  6. package/dist/node_modules/@tanstack/query-core/build/modern/query.js.map +1 -1
  7. package/dist/node_modules/@tanstack/query-core/build/modern/queryObserver.js +1 -1
  8. package/dist/node_modules/@tanstack/query-core/build/modern/queryObserver.js.map +1 -1
  9. package/dist/node_modules/@tanstack/query-core/build/modern/removable.js +1 -1
  10. package/dist/node_modules/@tanstack/query-core/build/modern/removable.js.map +1 -1
  11. package/dist/node_modules/@tanstack/query-core/build/modern/retryer.js +1 -1
  12. package/dist/node_modules/@tanstack/query-core/build/modern/retryer.js.map +1 -1
  13. package/dist/node_modules/@tanstack/query-core/build/modern/utils.js +1 -1
  14. package/dist/node_modules/@tanstack/query-core/build/modern/utils.js.map +1 -1
  15. package/dist/node_modules/@tanstack/react-query/build/modern/suspense.js +1 -1
  16. package/dist/node_modules/@tanstack/react-query/build/modern/suspense.js.map +1 -1
  17. package/dist/node_modules/rc-slider/es/Handles/Handle.js +1 -1
  18. package/dist/node_modules/rc-slider/es/Handles/Handle.js.map +1 -1
  19. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +1 -1
  20. package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
  21. package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
  22. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
  23. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
  24. package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
  25. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +1 -1
  26. package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
  27. package/dist/node_modules/react-day-picker/dist/esm/components/Button.js.map +1 -1
  28. package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -1
  29. package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
  30. package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
  31. package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
  32. package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
  33. package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
  34. package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
  35. package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
  36. package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
  37. package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
  38. package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
  39. package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
  40. package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
  41. package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
  42. package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
  43. package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
  44. package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
  45. package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
  46. package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
  47. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
  48. package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
  49. package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
  50. package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
  51. package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
  52. package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
  53. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
  54. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
  55. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
  56. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
  57. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
  58. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
  59. package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
  60. package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +1 -1
  61. package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
  62. package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -1
  63. package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
  64. package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
  65. package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
  66. package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
  67. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
  68. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
  69. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +1 -1
  70. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
  71. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
  72. package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
  73. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
  74. package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
  75. package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
  76. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
  77. package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
  78. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
  79. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
  80. package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
  81. package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
  82. package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
  83. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
  84. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -1
  85. package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
  86. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +1 -1
  87. package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
  88. package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
  89. package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
  90. package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +1 -1
  91. package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
  92. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
  93. package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
  94. package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
  95. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
  96. package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
  97. package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
  98. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
  99. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
  100. package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
  101. package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
  102. package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
  103. package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
  104. package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
  105. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +1 -1
  106. package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -1
  107. package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
  108. package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
  109. package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
  110. package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
  111. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +1 -1
  112. package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
  113. package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
  114. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
  115. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
  116. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
  117. package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
  118. package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
  119. package/dist/node_modules/react-day-picker/src/style.css +1 -1
  120. package/dist/node_modules/react-hot-toast/dist/index.js +26 -26
  121. package/dist/node_modules/react-hot-toast/dist/index.js.map +1 -1
  122. package/dist/stats.html +1 -1
  123. package/package.json +100 -100
  124. package/dist/node_modules/@tanstack/query-core/build/modern/timeoutManager.js +0 -2
  125. package/dist/node_modules/@tanstack/query-core/build/modern/timeoutManager.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"getMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonths.js"],"sourcesContent":["import { CalendarDay, CalendarMonth, CalendarWeek } from \"../classes/index.js\";\n/**\n * Returns the months to display in the calendar.\n *\n * This function generates `CalendarMonth` objects for each month to be\n * displayed, including their weeks and days, based on the provided display\n * months and dates.\n *\n * @param displayMonths The months (as dates) to display in the calendar.\n * @param dates The dates to display in the calendar.\n * @param props Options from the DayPicker props context.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of `CalendarMonth` objects representing the months to\n * display.\n */\nexport function getMonths(displayMonths, dates, props, dateLib) {\n const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek, } = dateLib;\n const dayPickerMonths = displayMonths.reduce((months, month) => {\n const firstDateOfFirstWeek = props.broadcastCalendar\n ? startOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? startOfISOWeek(month)\n : startOfWeek(month);\n const lastDateOfLastWeek = props.broadcastCalendar\n ? endOfBroadcastWeek(month)\n : props.ISOWeek\n ? endOfISOWeek(endOfMonth(month))\n : endOfWeek(endOfMonth(month));\n /** The dates to display in the month. */\n const monthDates = dates.filter((date) => {\n return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;\n });\n const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;\n if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {\n const extraDates = dates.filter((date) => {\n const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;\n return (date > lastDateOfLastWeek &&\n date <= addDays(lastDateOfLastWeek, daysToAdd));\n });\n monthDates.push(...extraDates);\n }\n const weeks = monthDates.reduce((weeks, date) => {\n const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);\n const week = weeks.find((week) => week.weekNumber === weekNumber);\n const day = new CalendarDay(date, month, dateLib);\n if (!week) {\n weeks.push(new CalendarWeek(weekNumber, [day]));\n }\n else {\n week.days.push(day);\n }\n return weeks;\n }, []);\n const dayPickerMonth = new CalendarMonth(month, weeks);\n months.push(dayPickerMonth);\n return months;\n }, []);\n if (!props.reverseMonths) {\n return dayPickerMonths;\n }\n else {\n return dayPickerMonths.reverse();\n }\n}\n"],"names":["getMonths","displayMonths","dates","props","dateLib","addDays","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","getISOWeek","getWeek","startOfBroadcastWeek","startOfISOWeek","startOfWeek","dayPickerMonths","months","month","firstDateOfFirstWeek","lastDateOfLastWeek","monthDates","date","nrOfDaysWithFixedWeeks","extraDates","daysToAdd","weeks","weekNumber","week","day","CalendarDay","CalendarWeek","dayPickerMonth","CalendarMonth"],"mappings":"8KAeO,SAASA,EAAUC,EAAeC,EAAOC,EAAOC,EAAS,CAC5D,KAAM,CAAE,QAAAC,EAAS,mBAAAC,EAAoB,aAAAC,EAAc,WAAAC,EAAY,UAAAC,EAAW,WAAAC,EAAY,QAAAC,EAAS,qBAAAC,EAAsB,eAAAC,EAAgB,YAAAC,CAAW,EAAMV,EAChJW,EAAkBd,EAAc,OAAO,CAACe,EAAQC,IAAU,CAC5D,MAAMC,EAAuBf,EAAM,kBAC7BS,EAAqBK,EAAOb,CAAO,EACnCD,EAAM,QACFU,EAAeI,CAAK,EACpBH,EAAYG,CAAK,EACrBE,EAAqBhB,EAAM,kBAC3BG,EAAmBW,CAAK,EACxBd,EAAM,QACFI,EAAaC,EAAWS,CAAK,CAAC,EAC9BR,EAAUD,EAAWS,CAAK,CAAC,EAE/BG,EAAalB,EAAM,OAAQmB,GACtBA,GAAQH,GAAwBG,GAAQF,CAClD,EACKG,EAAyBnB,EAAM,kBAAoB,GAAK,GAC9D,GAAIA,EAAM,YAAciB,EAAW,OAASE,EAAwB,CAChE,MAAMC,EAAarB,EAAM,OAAQmB,GAAS,CACtC,MAAMG,EAAYF,EAAyBF,EAAW,OACtD,OAAQC,EAAOF,GACXE,GAAQhB,EAAQc,EAAoBK,CAAS,CACrD,CAAC,EACDJ,EAAW,KAAK,GAAGG,CAAU,CACjC,CACA,MAAME,EAAQL,EAAW,OAAO,CAACK,EAAOJ,IAAS,CAC7C,MAAMK,EAAavB,EAAM,QAAUO,EAAWW,CAAI,EAAIV,EAAQU,CAAI,EAC5DM,EAAOF,EAAM,KAAME,GAASA,EAAK,aAAeD,CAAU,EAC1DE,EAAM,IAAIC,EAAYR,EAAMJ,EAAOb,CAAO,EAChD,OAAKuB,EAIDA,EAAK,KAAK,KAAKC,CAAG,EAHlBH,EAAM,KAAK,IAAIK,EAAaJ,EAAY,CAACE,CAAG,CAAC,CAAC,EAK3CH,CACX,EAAG,CAAA,CAAE,EACCM,EAAiB,IAAIC,EAAcf,EAAOQ,CAAK,EACrD,OAAAT,EAAO,KAAKe,CAAc,EACnBf,CACX,EAAG,CAAA,CAAE,EACL,OAAKb,EAAM,cAIAY,EAAgB,QAAO,EAHvBA,CAKf","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonths.js"],"sourcesContent":["import { CalendarWeek, CalendarDay, CalendarMonth } from \"../classes/index.js\";\n/**\n * Returns the months to display in the calendar.\n *\n * This function generates `CalendarMonth` objects for each month to be\n * displayed, including their weeks and days, based on the provided display\n * months and dates.\n *\n * @param displayMonths The months (as dates) to display in the calendar.\n * @param dates The dates to display in the calendar.\n * @param props Options from the DayPicker props context.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of `CalendarMonth` objects representing the months to\n * display.\n */\nexport function getMonths(displayMonths, dates, props, dateLib) {\n const { addDays, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, getISOWeek, getWeek, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const dayPickerMonths = displayMonths.reduce((months, month) => {\n const firstDateOfFirstWeek = props.broadcastCalendar\n ? startOfBroadcastWeek(month, dateLib)\n : props.ISOWeek\n ? startOfISOWeek(month)\n : startOfWeek(month);\n const lastDateOfLastWeek = props.broadcastCalendar\n ? endOfBroadcastWeek(month)\n : props.ISOWeek\n ? endOfISOWeek(endOfMonth(month))\n : endOfWeek(endOfMonth(month));\n /** The dates to display in the month. */\n const monthDates = dates.filter((date) => {\n return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;\n });\n const nrOfDaysWithFixedWeeks = props.broadcastCalendar ? 35 : 42;\n if (props.fixedWeeks && monthDates.length < nrOfDaysWithFixedWeeks) {\n const extraDates = dates.filter((date) => {\n const daysToAdd = nrOfDaysWithFixedWeeks - monthDates.length;\n return (date > lastDateOfLastWeek &&\n date <= addDays(lastDateOfLastWeek, daysToAdd));\n });\n monthDates.push(...extraDates);\n }\n const weeks = monthDates.reduce((weeks, date) => {\n const weekNumber = props.ISOWeek ? getISOWeek(date) : getWeek(date);\n const week = weeks.find((week) => week.weekNumber === weekNumber);\n const day = new CalendarDay(date, month, dateLib);\n if (!week) {\n weeks.push(new CalendarWeek(weekNumber, [day]));\n }\n else {\n week.days.push(day);\n }\n return weeks;\n }, []);\n const dayPickerMonth = new CalendarMonth(month, weeks);\n months.push(dayPickerMonth);\n return months;\n }, []);\n if (!props.reverseMonths) {\n return dayPickerMonths;\n }\n else {\n return dayPickerMonths.reverse();\n }\n}\n//# sourceMappingURL=getMonths.js.map"],"names":["getMonths","displayMonths","dates","props","dateLib","addDays","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","getISOWeek","getWeek","startOfBroadcastWeek","startOfISOWeek","startOfWeek","dayPickerMonths","months","month","firstDateOfFirstWeek","lastDateOfLastWeek","monthDates","date","nrOfDaysWithFixedWeeks","extraDates","daysToAdd","weeks","weekNumber","week","day","CalendarDay","CalendarWeek","dayPickerMonth","CalendarMonth"],"mappings":"8KAeO,SAASA,EAAUC,EAAeC,EAAOC,EAAOC,EAAS,CAC5D,KAAM,CAAE,QAAAC,EAAS,mBAAAC,EAAoB,aAAAC,EAAc,WAAAC,EAAY,UAAAC,EAAW,WAAAC,EAAY,QAAAC,EAAS,qBAAAC,EAAsB,eAAAC,EAAgB,YAAAC,CAAW,EAAKV,EAC/IW,EAAkBd,EAAc,OAAO,CAACe,EAAQC,IAAU,CAC5D,MAAMC,EAAuBf,EAAM,kBAC7BS,EAAqBK,EAAOb,CAAO,EACnCD,EAAM,QACFU,EAAeI,CAAK,EACpBH,EAAYG,CAAK,EACrBE,EAAqBhB,EAAM,kBAC3BG,EAAmBW,CAAK,EACxBd,EAAM,QACFI,EAAaC,EAAWS,CAAK,CAAC,EAC9BR,EAAUD,EAAWS,CAAK,CAAC,EAE/BG,EAAalB,EAAM,OAAQmB,GACtBA,GAAQH,GAAwBG,GAAQF,CAClD,EACKG,EAAyBnB,EAAM,kBAAoB,GAAK,GAC9D,GAAIA,EAAM,YAAciB,EAAW,OAASE,EAAwB,CAChE,MAAMC,EAAarB,EAAM,OAAQmB,GAAS,CACtC,MAAMG,EAAYF,EAAyBF,EAAW,OACtD,OAAQC,EAAOF,GACXE,GAAQhB,EAAQc,EAAoBK,CAAS,CACrD,CAAC,EACDJ,EAAW,KAAK,GAAGG,CAAU,CACjC,CACA,MAAME,EAAQL,EAAW,OAAO,CAACK,EAAOJ,IAAS,CAC7C,MAAMK,EAAavB,EAAM,QAAUO,EAAWW,CAAI,EAAIV,EAAQU,CAAI,EAC5DM,EAAOF,EAAM,KAAME,GAASA,EAAK,aAAeD,CAAU,EAC1DE,EAAM,IAAIC,EAAYR,EAAMJ,EAAOb,CAAO,EAChD,OAAKuB,EAIDA,EAAK,KAAK,KAAKC,CAAG,EAHlBH,EAAM,KAAK,IAAIK,EAAaJ,EAAY,CAACE,CAAG,CAAC,CAAC,EAK3CH,CACX,EAAG,CAAA,CAAE,EACCM,EAAiB,IAAIC,EAAcf,EAAOQ,CAAK,EACrD,OAAAT,EAAO,KAAKe,CAAc,EACnBf,CACX,EAAG,CAAA,CAAE,EACL,OAAKb,EAAM,cAIAY,EAAgB,QAAO,EAHvBA,CAKf","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"getNavMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/**\n * Returns the start and end months for calendar navigation.\n *\n * @param props The DayPicker props, including navigation and layout options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A tuple containing the start and end months for navigation.\n */\nexport function getNavMonths(props, dateLib) {\n let { startMonth, endMonth } = props;\n const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, newDate, today, } = dateLib;\n // Handle deprecated code\n const { fromYear, toYear, fromMonth, toMonth } = props;\n if (!startMonth && fromMonth) {\n startMonth = fromMonth;\n }\n if (!startMonth && fromYear) {\n startMonth = dateLib.newDate(fromYear, 0, 1);\n }\n if (!endMonth && toMonth) {\n endMonth = toMonth;\n }\n if (!endMonth && toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (fromYear) {\n startMonth = newDate(fromYear, 0, 1);\n }\n else if (!startMonth && hasYearDropdown) {\n startMonth = startOfYear(addYears(props.today ?? today(), -100));\n }\n if (endMonth) {\n endMonth = endOfMonth(endMonth);\n }\n else if (toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n else if (!endMonth && hasYearDropdown) {\n endMonth = endOfYear(props.today ?? today());\n }\n return [\n startMonth ? startOfDay(startMonth) : startMonth,\n endMonth ? startOfDay(endMonth) : endMonth,\n ];\n}\n"],"names":["getNavMonths","props","dateLib","startMonth","endMonth","startOfYear","startOfDay","startOfMonth","endOfMonth","addYears","endOfYear","newDate","today","fromYear","toYear","fromMonth","toMonth","hasYearDropdown"],"mappings":"AAOO,SAASA,EAAaC,EAAOC,EAAS,CACzC,GAAI,CAAE,WAAAC,EAAY,SAAAC,CAAQ,EAAKH,EAC/B,KAAM,CAAE,YAAAI,EAAa,WAAAC,EAAY,aAAAC,EAAc,WAAAC,EAAY,SAAAC,EAAU,UAAAC,EAAW,QAAAC,EAAS,MAAAC,CAAK,EAAMV,EAE9F,CAAE,SAAAW,EAAU,OAAAC,EAAQ,UAAAC,EAAW,QAAAC,CAAO,EAAKf,EAC7C,CAACE,GAAcY,IACfZ,EAAaY,GAEb,CAACZ,GAAcU,IACfV,EAAaD,EAAQ,QAAQW,EAAU,EAAG,CAAC,GAE3C,CAACT,GAAYY,IACbZ,EAAWY,GAEX,CAACZ,GAAYU,IACbV,EAAWO,EAAQG,EAAQ,GAAI,EAAE,GAErC,MAAMG,EAAkBhB,EAAM,gBAAkB,YAC5CA,EAAM,gBAAkB,iBAC5B,OAAIE,EACAA,EAAaI,EAAaJ,CAAU,EAE/BU,EACLV,EAAaQ,EAAQE,EAAU,EAAG,CAAC,EAE9B,CAACV,GAAcc,IACpBd,EAAaE,EAAYI,EAASR,EAAM,OAASW,EAAK,EAAI,IAAI,CAAC,GAE/DR,EACAA,EAAWI,EAAWJ,CAAQ,EAEzBU,EACLV,EAAWO,EAAQG,EAAQ,GAAI,EAAE,EAE5B,CAACV,GAAYa,IAClBb,EAAWM,EAAUT,EAAM,OAASW,EAAK,CAAE,GAExC,CACHT,GAAaG,EAAWH,CAAU,EAClCC,GAAWE,EAAWF,CAAQ,CACtC,CACA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getNavMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/**\n * Returns the start and end months for calendar navigation.\n *\n * @param props The DayPicker props, including navigation and layout options.\n * @param dateLib The date library to use for date manipulation.\n * @returns A tuple containing the start and end months for navigation.\n */\nexport function getNavMonths(props, dateLib) {\n let { startMonth, endMonth } = props;\n const { startOfYear, startOfDay, startOfMonth, endOfMonth, addYears, endOfYear, newDate, today } = dateLib;\n // Handle deprecated code\n const { fromYear, toYear, fromMonth, toMonth } = props;\n if (!startMonth && fromMonth) {\n startMonth = fromMonth;\n }\n if (!startMonth && fromYear) {\n startMonth = dateLib.newDate(fromYear, 0, 1);\n }\n if (!endMonth && toMonth) {\n endMonth = toMonth;\n }\n if (!endMonth && toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n const hasYearDropdown = props.captionLayout === \"dropdown\" ||\n props.captionLayout === \"dropdown-years\";\n if (startMonth) {\n startMonth = startOfMonth(startMonth);\n }\n else if (fromYear) {\n startMonth = newDate(fromYear, 0, 1);\n }\n else if (!startMonth && hasYearDropdown) {\n startMonth = startOfYear(addYears(props.today ?? today(), -100));\n }\n if (endMonth) {\n endMonth = endOfMonth(endMonth);\n }\n else if (toYear) {\n endMonth = newDate(toYear, 11, 31);\n }\n else if (!endMonth && hasYearDropdown) {\n endMonth = endOfYear(props.today ?? today());\n }\n return [\n startMonth ? startOfDay(startMonth) : startMonth,\n endMonth ? startOfDay(endMonth) : endMonth\n ];\n}\n//# sourceMappingURL=getNavMonth.js.map"],"names":["getNavMonths","props","dateLib","startMonth","endMonth","startOfYear","startOfDay","startOfMonth","endOfMonth","addYears","endOfYear","newDate","today","fromYear","toYear","fromMonth","toMonth","hasYearDropdown"],"mappings":"AAOO,SAASA,EAAaC,EAAOC,EAAS,CACzC,GAAI,CAAE,WAAAC,EAAY,SAAAC,CAAQ,EAAKH,EAC/B,KAAM,CAAE,YAAAI,EAAa,WAAAC,EAAY,aAAAC,EAAc,WAAAC,EAAY,SAAAC,EAAU,UAAAC,EAAW,QAAAC,EAAS,MAAAC,CAAK,EAAKV,EAE7F,CAAE,SAAAW,EAAU,OAAAC,EAAQ,UAAAC,EAAW,QAAAC,CAAO,EAAKf,EAC7C,CAACE,GAAcY,IACfZ,EAAaY,GAEb,CAACZ,GAAcU,IACfV,EAAaD,EAAQ,QAAQW,EAAU,EAAG,CAAC,GAE3C,CAACT,GAAYY,IACbZ,EAAWY,GAEX,CAACZ,GAAYU,IACbV,EAAWO,EAAQG,EAAQ,GAAI,EAAE,GAErC,MAAMG,EAAkBhB,EAAM,gBAAkB,YAC5CA,EAAM,gBAAkB,iBAC5B,OAAIE,EACAA,EAAaI,EAAaJ,CAAU,EAE/BU,EACLV,EAAaQ,EAAQE,EAAU,EAAG,CAAC,EAE9B,CAACV,GAAcc,IACpBd,EAAaE,EAAYI,EAASR,EAAM,OAASW,EAAK,EAAI,IAAI,CAAC,GAE/DR,EACAA,EAAWI,EAAWJ,CAAQ,EAEzBU,EACLV,EAAWO,EAAQG,EAAQ,GAAI,EAAE,EAE5B,CAACV,GAAYa,IAClBb,EAAWM,EAAUT,EAAM,OAASW,EAAK,CAAE,GAExC,CACHT,GAAaG,EAAWH,CAAU,EAClCC,GAAWE,EAAWF,CAAQ,CACtC,CACA","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"getNextFocus.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\n/**\n * Determines the next focusable day in the calendar.\n *\n * This function recursively calculates the next focusable day based on the\n * movement direction and modifiers applied to the days.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDay The currently focused day.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @param attempt The current recursion attempt (used to limit recursion depth).\n * @returns The next focusable day, or `undefined` if no focusable day is found.\n */\nexport function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled &&\n dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n"],"names":["getNextFocus","moveBy","moveDir","refDay","calendarStartMonth","calendarEndMonth","props","dateLib","attempt","focusableDate","getFocusableDate","isDisabled","dateMatchModifiers","isHidden","targetMonth","focusDay","CalendarDay"],"mappings":"qLAoBO,SAASA,EAAaC,EAAQC,EAASC,EAAQC,EAAoBC,EAAkBC,EAAOC,EAASC,EAAU,EAAG,CACrH,GAAIA,EAAU,IAEV,OAEJ,MAAMC,EAAgBC,EAAiBT,EAAQC,EAASC,EAAO,KAAMC,EAAoBC,EAAkBC,EAAOC,CAAO,EACnHI,EAAa,GAAQL,EAAM,UAC7BM,EAAmBH,EAAeH,EAAM,SAAUC,CAAO,GACvDM,EAAW,GAAQP,EAAM,QAAUM,EAAmBH,EAAeH,EAAM,OAAQC,CAAO,GAC1FO,EAAcL,EACdM,EAAW,IAAIC,EAAYP,EAAeK,EAAaP,CAAO,EACpE,MAAI,CAACI,GAAc,CAACE,EACTE,EAGJf,EAAaC,EAAQC,EAASa,EAAUX,EAAoBC,EAAkBC,EAAOC,EAASC,EAAU,CAAC,CACpH","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getNextFocus.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js"],"sourcesContent":["import { CalendarDay } from \"../classes/index.js\";\nimport { dateMatchModifiers } from \"../utils/dateMatchModifiers.js\";\nimport { getFocusableDate } from \"./getFocusableDate.js\";\n/**\n * Determines the next focusable day in the calendar.\n *\n * This function recursively calculates the next focusable day based on the\n * movement direction and modifiers applied to the days.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDay The currently focused day.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param props The DayPicker props, including modifiers and configuration\n * options.\n * @param dateLib The date library to use for date manipulation.\n * @param attempt The current recursion attempt (used to limit recursion depth).\n * @returns The next focusable day, or `undefined` if no focusable day is found.\n */\nexport function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {\n if (attempt > 365) {\n // Limit the recursion to 365 attempts\n return undefined;\n }\n const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);\n const isDisabled = Boolean(props.disabled && dateMatchModifiers(focusableDate, props.disabled, dateLib));\n const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));\n const targetMonth = focusableDate;\n const focusDay = new CalendarDay(focusableDate, targetMonth, dateLib);\n if (!isDisabled && !isHidden) {\n return focusDay;\n }\n // Recursively attempt to find the next focusable date\n return getNextFocus(moveBy, moveDir, focusDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt + 1);\n}\n//# sourceMappingURL=getNextFocus.js.map"],"names":["getNextFocus","moveBy","moveDir","refDay","calendarStartMonth","calendarEndMonth","props","dateLib","attempt","focusableDate","getFocusableDate","isDisabled","dateMatchModifiers","isHidden","targetMonth","focusDay","CalendarDay"],"mappings":"qLAoBO,SAASA,EAAaC,EAAQC,EAASC,EAAQC,EAAoBC,EAAkBC,EAAOC,EAASC,EAAU,EAAG,CACrH,GAAIA,EAAU,IAEV,OAEJ,MAAMC,EAAgBC,EAAiBT,EAAQC,EAASC,EAAO,KAAMC,EAAoBC,EAAkBC,EAAOC,CAAO,EACnHI,EAAa,GAAQL,EAAM,UAAYM,EAAmBH,EAAeH,EAAM,SAAUC,CAAO,GAChGM,EAAW,GAAQP,EAAM,QAAUM,EAAmBH,EAAeH,EAAM,OAAQC,CAAO,GAC1FO,EAAcL,EACdM,EAAW,IAAIC,EAAYP,EAAeK,EAAaP,CAAO,EACpE,MAAI,CAACI,GAAc,CAACE,EACTE,EAGJf,EAAaC,EAAQC,EAASa,EAAUX,EAAoBC,EAAkBC,EAAOC,EAASC,EAAU,CAAC,CACpH","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"getNextMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Returns the next month the user can navigate to, based on the given options.\n *\n * The next month is not always the next calendar month:\n *\n * - If it is after the `calendarEndMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips forward by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next month, or `undefined` if navigation is not possible.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n return addMonths(month, offset);\n}\n"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAiBO,SAASA,EAAaC,EAAqBC,EAAkBC,EAASC,EAAS,CAClF,GAAID,EAAQ,kBACR,OAEJ,KAAM,CAAE,gBAAAE,EAAiB,eAAAC,EAAiB,CAAC,EAAKH,EAC1C,CAAE,aAAAI,EAAc,UAAAC,EAAW,2BAAAC,CAA0B,EAAKL,EAC1DM,EAASL,EAAkBC,EAAiB,EAC5CK,EAAQJ,EAAaN,CAAmB,EAC9C,GAAI,CAACC,EACD,OAAOM,EAAUG,EAAOD,CAAM,EAGlC,GAAI,EADeD,EAA2BP,EAAkBD,CAAmB,EAClEK,GAGjB,OAAOE,EAAUG,EAAOD,CAAM,CAClC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getNextMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Returns the next month the user can navigate to, based on the given options.\n *\n * The next month is not always the next calendar month:\n *\n * - If it is after the `calendarEndMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips forward by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarEndMonth The latest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next month, or `undefined` if navigation is not possible.\n */\nexport function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths = 1 } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? numberOfMonths : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarEndMonth) {\n return addMonths(month, offset);\n }\n const monthsDiff = differenceInCalendarMonths(calendarEndMonth, firstDisplayedMonth);\n if (monthsDiff < numberOfMonths) {\n return undefined;\n }\n return addMonths(month, offset);\n}\n//# sourceMappingURL=getNextMonth.js.map"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAiBO,SAASA,EAAaC,EAAqBC,EAAkBC,EAASC,EAAS,CAClF,GAAID,EAAQ,kBACR,OAEJ,KAAM,CAAE,gBAAAE,EAAiB,eAAAC,EAAiB,CAAC,EAAKH,EAC1C,CAAE,aAAAI,EAAc,UAAAC,EAAW,2BAAAC,CAA0B,EAAKL,EAC1DM,EAASL,EAAkBC,EAAiB,EAC5CK,EAAQJ,EAAaN,CAAmB,EAC9C,GAAI,CAACC,EACD,OAAOM,EAAUG,EAAOD,CAAM,EAGlC,GAAI,EADeD,EAA2BP,EAAkBD,CAAmB,EAClEK,GAGjB,OAAOE,EAAUG,EAAOD,CAAM,CAClC","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"getPreviousMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Returns the previous month the user can navigate to, based on the given\n * options.\n *\n * The previous month is not always the previous calendar month:\n *\n * - If it is before the `calendarStartMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips back by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The previous month, or `undefined` if navigation is not possible.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAkBO,SAASA,EAAiBC,EAAqBC,EAAoBC,EAASC,EAAS,CACxF,GAAID,EAAQ,kBACR,OAEJ,KAAM,CAAE,gBAAAE,EAAiB,eAAAC,CAAc,EAAKH,EACtC,CAAE,aAAAI,EAAc,UAAAC,EAAW,2BAAAC,CAA0B,EAAKL,EAC1DM,EAASL,EAAmBC,GAAkB,EAAK,EACnDK,EAAQJ,EAAaN,CAAmB,EAC9C,GAAI,CAACC,EACD,OAAOM,EAAUG,EAAO,CAACD,CAAM,EAGnC,GAAI,EADeD,EAA2BE,EAAOT,CAAkB,GACrD,GAGlB,OAAOM,EAAUG,EAAO,CAACD,CAAM,CACnC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getPreviousMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Returns the previous month the user can navigate to, based on the given\n * options.\n *\n * The previous month is not always the previous calendar month:\n *\n * - If it is before the `calendarStartMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips back by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The previous month, or `undefined` if navigation is not possible.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n//# sourceMappingURL=getPreviousMonth.js.map"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month"],"mappings":"AAkBO,SAASA,EAAiBC,EAAqBC,EAAoBC,EAASC,EAAS,CACxF,GAAID,EAAQ,kBACR,OAEJ,KAAM,CAAE,gBAAAE,EAAiB,eAAAC,CAAc,EAAKH,EACtC,CAAE,aAAAI,EAAc,UAAAC,EAAW,2BAAAC,CAA0B,EAAKL,EAC1DM,EAASL,EAAmBC,GAAkB,EAAK,EACnDK,EAAQJ,EAAaN,CAAmB,EAC9C,GAAI,CAACC,EACD,OAAOM,EAAUG,EAAO,CAACD,CAAM,EAGnC,GAAI,EADeD,EAA2BE,EAAOT,CAAkB,GACrD,GAGlB,OAAOM,EAAUG,EAAO,CAACD,CAAM,CACnC","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"getStyleForModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js"],"sourcesContent":["import { UI } from \"../UI.js\";\n/**\n * Returns the computed style for a day based on its modifiers.\n *\n * This function merges the base styles for the day with any styles associated\n * with active modifiers.\n *\n * @param dayModifiers The modifiers applied to the day.\n * @param styles The base styles for the calendar elements.\n * @param modifiersStyles The styles associated with specific modifiers.\n * @returns The computed style for the day.\n */\nexport function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {\n let style = { ...styles?.[UI.Day] };\n Object.entries(dayModifiers)\n .filter(([, active]) => active === true)\n .forEach(([modifier]) => {\n style = {\n ...style,\n ...modifiersStyles?.[modifier],\n };\n });\n return style;\n}\n"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","active","modifier"],"mappings":"8BAYO,SAASA,EAAqBC,EAAcC,EAAS,CAAA,EAAIC,EAAkB,CAAA,EAAI,CAClF,IAAIC,EAAQ,CAAE,GAAGF,GAAA,YAAAA,EAASG,EAAG,IAAI,EACjC,cAAO,QAAQJ,CAAY,EACtB,OAAO,CAAC,CAAA,CAAGK,CAAM,IAAMA,IAAW,EAAI,EACtC,QAAQ,CAAC,CAACC,CAAQ,IAAM,CACzBH,EAAQ,CACJ,GAAGA,EACH,GAAGD,GAAA,YAAAA,EAAkBI,EACjC,CACI,CAAC,EACMH,CACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getStyleForModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js"],"sourcesContent":["import { UI } from \"../UI.js\";\n/**\n * Returns the computed style for a day based on its modifiers.\n *\n * This function merges the base styles for the day with any styles associated\n * with active modifiers.\n *\n * @param dayModifiers The modifiers applied to the day.\n * @param styles The base styles for the calendar elements.\n * @param modifiersStyles The styles associated with specific modifiers.\n * @returns The computed style for the day.\n */\nexport function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {\n let style = { ...styles?.[UI.Day] };\n Object.entries(dayModifiers)\n .filter(([, active]) => active === true)\n .forEach(([modifier]) => {\n style = {\n ...style,\n ...modifiersStyles?.[modifier]\n };\n });\n return style;\n}\n//# sourceMappingURL=getStyleForModifiers.js.map"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","active","modifier"],"mappings":"8BAYO,SAASA,EAAqBC,EAAcC,EAAS,CAAA,EAAIC,EAAkB,CAAA,EAAI,CAClF,IAAIC,EAAQ,CAAE,GAAGF,GAAA,YAAAA,EAASG,EAAG,IAAI,EACjC,cAAO,QAAQJ,CAAY,EACtB,OAAO,CAAC,CAAA,CAAGK,CAAM,IAAMA,IAAW,EAAI,EACtC,QAAQ,CAAC,CAACC,CAAQ,IAAM,CACzBH,EAAQ,CACJ,GAAGA,EACH,GAAGD,GAAA,YAAAA,EAAkBI,EACjC,CACI,CAAC,EACMH,CACX","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"getWeekdays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js"],"sourcesContent":["/**\n * Generates a series of 7 days, starting from the beginning of the week, to use\n * for formatting weekday names (e.g., Monday, Tuesday, etc.).\n *\n * @param dateLib The date library to use for date manipulation.\n * @param ISOWeek Whether to use ISO week numbering (weeks start on Monday).\n * @param broadcastCalendar Whether to use the broadcast calendar (weeks start\n * on Monday, but may include adjustments for broadcast-specific rules).\n * @returns An array of 7 dates representing the weekdays.\n */\nexport function getWeekdays(dateLib, ISOWeek, broadcastCalendar) {\n const today = dateLib.today();\n const start = broadcastCalendar\n ? dateLib.startOfBroadcastWeek(today, dateLib)\n : ISOWeek\n ? dateLib.startOfISOWeek(today)\n : dateLib.startOfWeek(today);\n const days = [];\n for (let i = 0; i < 7; i++) {\n const day = dateLib.addDays(start, i);\n days.push(day);\n }\n return days;\n}\n"],"names":["getWeekdays","dateLib","ISOWeek","broadcastCalendar","today","start","days","i","day"],"mappings":"AAUO,SAASA,EAAYC,EAASC,EAASC,EAAmB,CAC7D,MAAMC,EAAQH,EAAQ,MAAK,EACrBI,EAEAH,EACID,EAAQ,eAAeG,CAAK,EAC5BH,EAAQ,YAAYG,CAAK,EAC7BE,EAAO,CAAA,EACb,QAASC,EAAI,EAAGA,EAAI,EAAGA,IAAK,CACxB,MAAMC,EAAMP,EAAQ,QAAQI,EAAOE,CAAC,EACpCD,EAAK,KAAKE,CAAG,CACjB,CACA,OAAOF,CACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getWeekdays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js"],"sourcesContent":["/**\n * Generates a series of 7 days, starting from the beginning of the week, to use\n * for formatting weekday names (e.g., Monday, Tuesday, etc.).\n *\n * @param dateLib The date library to use for date manipulation.\n * @param ISOWeek Whether to use ISO week numbering (weeks start on Monday).\n * @param broadcastCalendar Whether to use the broadcast calendar (weeks start\n * on Monday, but may include adjustments for broadcast-specific rules).\n * @returns An array of 7 dates representing the weekdays.\n */\nexport function getWeekdays(dateLib, ISOWeek, broadcastCalendar) {\n const today = dateLib.today();\n const start = broadcastCalendar\n ? dateLib.startOfBroadcastWeek(today, dateLib)\n : ISOWeek\n ? dateLib.startOfISOWeek(today)\n : dateLib.startOfWeek(today);\n const days = [];\n for (let i = 0; i < 7; i++) {\n const day = dateLib.addDays(start, i);\n days.push(day);\n }\n return days;\n}\n//# sourceMappingURL=getWeekdays.js.map"],"names":["getWeekdays","dateLib","ISOWeek","broadcastCalendar","today","start","days","i","day"],"mappings":"AAUO,SAASA,EAAYC,EAASC,EAASC,EAAmB,CAC7D,MAAMC,EAAQH,EAAQ,MAAK,EACrBI,EAEAH,EACID,EAAQ,eAAeG,CAAK,EAC5BH,EAAQ,YAAYG,CAAK,EAC7BE,EAAO,CAAA,EACb,QAASC,EAAI,EAAGA,EAAI,EAAGA,IAAK,CACxB,MAAMC,EAAMP,EAAQ,QAAQI,EAAOE,CAAC,EACpCD,EAAK,KAAKE,CAAG,CACjB,CACA,OAAOF,CACX","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- function i(e){const t=[];return e.reduce((c,n)=>c.concat(n.weeks.slice()),t.slice())}export{i as getWeeks};
1
+ function i(e){const t=[];return e.reduce((n,r)=>[...n,...r.weeks],t)}export{i as getWeeks};
2
2
  //# sourceMappingURL=getWeeks.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/**\n * Returns an array of calendar weeks from an array of calendar months.\n *\n * @param months The array of calendar months.\n * @returns An array of calendar weeks.\n */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return weeks.concat(month.weeks.slice());\n }, initialWeeks.slice());\n}\n"],"names":["getWeeks","months","initialWeeks","weeks","month"],"mappings":"AAMO,SAASA,EAASC,EAAQ,CAC7B,MAAMC,EAAe,CAAA,EACrB,OAAOD,EAAO,OAAO,CAACE,EAAOC,IAClBD,EAAM,OAAOC,EAAM,MAAM,MAAK,CAAE,EACxCF,EAAa,OAAO,CAC3B","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/**\n * Returns an array of calendar weeks from an array of calendar months.\n *\n * @param months The array of calendar months.\n * @returns An array of calendar weeks.\n */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return [...weeks, ...month.weeks];\n }, initialWeeks);\n}\n//# sourceMappingURL=getWeeks.js.map"],"names":["getWeeks","months","initialWeeks","weeks","month"],"mappings":"AAMO,SAASA,EAASC,EAAQ,CAC7B,MAAMC,EAAe,CAAA,EACrB,OAAOD,EAAO,OAAO,CAACE,EAAOC,IAClB,CAAC,GAAGD,EAAO,GAAGC,EAAM,KAAK,EACjCF,CAAY,CACnB","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- function g(a,s,o,t,i=!1){if(!a||!s)return;const{startOfYear:l,endOfYear:u,addYears:Y,getYear:d,isBefore:c,isSameYear:p}=t,m=l(a),n=u(s),r=[];let e=m;for(;c(e,n)||p(e,n);)r.push(e),e=Y(e,1);return i&&r.reverse(),r.map(f=>{const O=o.formatYearDropdown(f,t);return{value:d(f),label:O,disabled:!1}})}export{g as getYearOptions};
1
+ function O(r,a,f,t){if(!r||!a)return;const{startOfYear:i,endOfYear:u,addYears:Y,getYear:d,isBefore:l,isSameYear:c}=t,p=i(r),s=u(a),n=[];let e=p;for(;l(e,s)||c(e,s);)n.push(e),e=Y(e,1);return n.map(o=>{const m=f.formatYearDropdown(o,t);return{value:d(o),label:m,disabled:!1}})}export{O as getYearOptions};
2
2
  //# sourceMappingURL=getYearOptions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/**\n * Returns the years to display in the dropdown.\n *\n * This function generates a list of years between the navigation start and end\n * dates, formatted using the provided formatter.\n *\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the year labels.\n * @param dateLib The date library to use for date manipulation.\n * @param reverse If true, reverses the order of the years (descending).\n * @returns An array of dropdown options representing the years, or `undefined`\n * if `navStart` or `navEnd` is not provided.\n */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib, reverse = false) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, addYears, getYear, isBefore, isSameYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = [];\n let year = firstNavYear;\n while (isBefore(year, lastNavYear) || isSameYear(year, lastNavYear)) {\n years.push(year);\n year = addYears(year, 1);\n }\n if (reverse)\n years.reverse();\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false,\n };\n });\n}\n"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","reverse","startOfYear","endOfYear","addYears","getYear","isBefore","isSameYear","firstNavYear","lastNavYear","years","year","label"],"mappings":"AAcO,SAASA,EAAeC,EAAUC,EAAQC,EAAYC,EAASC,EAAU,GAAO,CAGnF,GAFI,CAACJ,GAED,CAACC,EACD,OACJ,KAAM,CAAE,YAAAI,EAAa,UAAAC,EAAW,SAAAC,EAAU,QAAAC,EAAS,SAAAC,EAAU,WAAAC,CAAU,EAAKP,EACtEQ,EAAeN,EAAYL,CAAQ,EACnCY,EAAcN,EAAUL,CAAM,EAC9BY,EAAQ,CAAA,EACd,IAAIC,EAAOH,EACX,KAAOF,EAASK,EAAMF,CAAW,GAAKF,EAAWI,EAAMF,CAAW,GAC9DC,EAAM,KAAKC,CAAI,EACfA,EAAOP,EAASO,EAAM,CAAC,EAE3B,OAAIV,GACAS,EAAM,QAAO,EACVA,EAAM,IAAKC,GAAS,CACvB,MAAMC,EAAQb,EAAW,mBAAmBY,EAAMX,CAAO,EACzD,MAAO,CACH,MAAOK,EAAQM,CAAI,EACnB,MAAAC,EACA,SAAU,EACtB,CACI,CAAC,CACL","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/**\n * Returns the years to display in the dropdown.\n *\n * This function generates a list of years between the navigation start and end\n * dates, formatted using the provided formatter.\n *\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the year labels.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dropdown options representing the years, or `undefined`\n * if `navStart` or `navEnd` is not provided.\n */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, addYears, getYear, isBefore, isSameYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = [];\n let year = firstNavYear;\n while (isBefore(year, lastNavYear) || isSameYear(year, lastNavYear)) {\n years.push(year);\n year = addYears(year, 1);\n }\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false\n };\n });\n}\n//# sourceMappingURL=getYearOptions.js.map"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","startOfYear","endOfYear","addYears","getYear","isBefore","isSameYear","firstNavYear","lastNavYear","years","year","label"],"mappings":"AAaO,SAASA,EAAeC,EAAUC,EAAQC,EAAYC,EAAS,CAGlE,GAFI,CAACH,GAED,CAACC,EACD,OACJ,KAAM,CAAE,YAAAG,EAAa,UAAAC,EAAW,SAAAC,EAAU,QAAAC,EAAS,SAAAC,EAAU,WAAAC,CAAU,EAAKN,EACtEO,EAAeN,EAAYJ,CAAQ,EACnCW,EAAcN,EAAUJ,CAAM,EAC9BW,EAAQ,CAAA,EACd,IAAIC,EAAOH,EACX,KAAOF,EAASK,EAAMF,CAAW,GAAKF,EAAWI,EAAMF,CAAW,GAC9DC,EAAM,KAAKC,CAAI,EACfA,EAAOP,EAASO,EAAM,CAAC,EAE3B,OAAOD,EAAM,IAAKC,GAAS,CACvB,MAAMC,EAAQZ,EAAW,mBAAmBW,EAAMV,CAAO,EACzD,MAAO,CACH,MAAOI,EAAQM,CAAI,EACnB,MAAAC,EACA,SAAU,EACtB,CACI,CAAC,CACL","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Returns the start date of the week in the broadcast calendar.\n *\n * The broadcast week starts on Monday. If the first day of the month is not a\n * Monday, this function calculates the previous Monday as the start of the\n * broadcast week.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the start of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The start date of the broadcast week.\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","dayOfWeek"],"mappings":"AAYO,SAASA,EAAqBC,EAAMC,EAAS,CAChD,MAAMC,EAAeD,EAAQ,aAAaD,CAAI,EACxCG,EAAYD,EAAa,OAAM,EACrC,OAAIC,IAAc,EACPD,EAEFC,IAAc,EACZF,EAAQ,QAAQC,EAAc,GAAK,CAAC,EAGpCD,EAAQ,QAAQC,EAAc,IAAMC,EAAY,EAAE,CAEjE","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Returns the start date of the week in the broadcast calendar.\n *\n * The broadcast week starts on Monday. If the first day of the month is not a\n * Monday, this function calculates the previous Monday as the start of the\n * broadcast week.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the start of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The start date of the broadcast week.\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n//# sourceMappingURL=startOfBroadcastWeek.js.map"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","dayOfWeek"],"mappings":"AAYO,SAASA,EAAqBC,EAAMC,EAAS,CAChD,MAAMC,EAAeD,EAAQ,aAAaD,CAAI,EACxCG,EAAYD,EAAa,OAAM,EACrC,OAAIC,IAAc,EACPD,EAEFC,IAAc,EACZF,EAAQ,QAAQC,EAAc,GAAK,CAAC,EAGpCD,EAAQ,QAAQC,EAAc,IAAMC,EAAY,EAAE,CAEjE","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * This hook allows a component to support both controlled and uncontrolled\n * states by determining whether the `controlledValue` is provided. If it is\n * undefined, the hook falls back to using the internal state.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param defaultValue The initial value for the uncontrolled state.\n * @param controlledValue The value for the controlled state. If undefined, the\n * component will use the uncontrolled state.\n * @returns A tuple where the first element is the current value (either\n * controlled or uncontrolled) and the second element is a setter function to\n * update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState"],"mappings":"iCAuBO,SAASA,EAAmBC,EAAcC,EAAiB,CAC9D,KAAM,CAACC,EAAmBC,CAAQ,EAAIC,EAASJ,CAAY,EAE3D,MAAO,CADOC,IAAoB,OAAYC,EAAoBD,EACnDE,CAAQ,CAC3B","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * This hook allows a component to support both controlled and uncontrolled\n * states by determining whether the `controlledValue` is provided. If it is\n * undefined, the hook falls back to using the internal state.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param defaultValue The initial value for the uncontrolled state.\n * @param controlledValue The value for the controlled state. If undefined, the\n * component will use the uncontrolled state.\n * @returns A tuple where the first element is the current value (either\n * controlled or uncontrolled) and the second element is a setter function to\n * update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n//# sourceMappingURL=useControlledValue.js.map"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState"],"mappings":"iCAuBO,SAASA,EAAmBC,EAAcC,EAAiB,CAC9D,KAAM,CAACC,EAAmBC,CAAQ,EAAIC,EAASJ,CAAY,EAE3D,MAAO,CADOC,IAAoB,OAAYC,EAAoBD,EACnDE,CAAQ,CAC3B","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import{labelDay as o,labelDayButton as l}from"./labelDayButton.js";import{labelCaption as t,labelGrid as b}from"./labelGrid.js";import{labelGridcell as m}from"./labelGridcell.js";import{labelMonthDropdown as f}from"./labelMonthDropdown.js";import{labelNav as n}from"./labelNav.js";import{labelNext as u}from"./labelNext.js";import{labelPrevious as N}from"./labelPrevious.js";import{labelWeekday as y}from"./labelWeekday.js";import{labelWeekNumber as v}from"./labelWeekNumber.js";import{labelWeekNumberHeader as G}from"./labelWeekNumberHeader.js";import{labelYearDropdown as h}from"./labelYearDropdown.js";export{t as labelCaption,o as labelDay,l as labelDayButton,b as labelGrid,m as labelGridcell,f as labelMonthDropdown,n as labelNav,u as labelNext,N as labelPrevious,v as labelWeekNumber,G as labelWeekNumberHeader,y as labelWeekday,h as labelYearDropdown};
1
+ import{labelCaption as o,labelGrid as l}from"./labelGrid.js";import{labelGridcell as t}from"./labelGridcell.js";import{labelDay as p,labelDayButton as m}from"./labelDayButton.js";import{labelNav as f}from"./labelNav.js";import{labelMonthDropdown as n}from"./labelMonthDropdown.js";import{labelNext as u}from"./labelNext.js";import{labelPrevious as N}from"./labelPrevious.js";import{labelWeekday as y}from"./labelWeekday.js";import{labelWeekNumber as v}from"./labelWeekNumber.js";import{labelWeekNumberHeader as G}from"./labelWeekNumberHeader.js";import{labelYearDropdown as h}from"./labelYearDropdown.js";export{o as labelCaption,p as labelDay,m as labelDayButton,l as labelGrid,t as labelGridcell,n as labelMonthDropdown,f as labelNav,u as labelNext,N as labelPrevious,v as labelWeekNumber,G as labelWeekNumberHeader,y as labelWeekday,h as labelYearDropdown};
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"labelDayButton.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelDayButton.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a day button.\n *\n * Use the `modifiers` argument to provide additional context for the label,\n * such as indicating if the day is \"today\" or \"selected.\"\n *\n * @defaultValue The formatted date.\n * @param date - The date to format.\n * @param modifiers - The modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the day button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelDayButton(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers.today)\n label = `Today, ${label}`;\n if (modifiers.selected)\n label = `${label}, selected`;\n return label;\n}\n/**\n * @ignore\n * @deprecated Use `labelDayButton` instead.\n */\nexport const labelDay = labelDayButton;\n"],"names":["labelDayButton","date","modifiers","options","dateLib","label","DateLib","labelDay"],"mappings":"gDAgBO,SAASA,EAAeC,EAAMC,EAAWC,EAASC,EAAS,CAC9D,IAAIC,GAASD,GAAW,IAAIE,EAAQH,CAAO,GAAG,OAAOF,EAAM,MAAM,EACjE,OAAIC,EAAU,QACVG,EAAQ,UAAUA,CAAK,IACvBH,EAAU,WACVG,EAAQ,GAAGA,CAAK,cACbA,CACX,CAKY,MAACE,EAAWP","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelDayButton.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelDayButton.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a day button.\n *\n * Use the `modifiers` argument to provide additional context for the label,\n * such as indicating if the day is \"today\" or \"selected.\"\n *\n * @defaultValue The formatted date.\n * @param date - The date to format.\n * @param modifiers - The modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the day button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelDayButton(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers.today)\n label = `Today, ${label}`;\n if (modifiers.selected)\n label = `${label}, selected`;\n return label;\n}\n/**\n * @ignore\n * @deprecated Use `labelDayButton` instead.\n */\nexport const labelDay = labelDayButton;\n//# sourceMappingURL=labelDayButton.js.map"],"names":["labelDayButton","date","modifiers","options","dateLib","label","DateLib","labelDay"],"mappings":"gDAgBO,SAASA,EAAeC,EAAMC,EAAWC,EAASC,EAAS,CAC9D,IAAIC,GAASD,GAAW,IAAIE,EAAQH,CAAO,GAAG,OAAOF,EAAM,MAAM,EACjE,OAAIC,EAAU,QACVG,EAAQ,UAAUA,CAAK,IACvBH,EAAU,WACVG,EAAQ,GAAGA,CAAK,cACbA,CACX,CAKY,MAACE,EAAWP","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelGrid.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGrid.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for the month grid, which is announced when entering\n * the grid.\n *\n * @defaultValue `LLLL y` (e.g., \"November 2022\").\n * @param date - The date representing the month.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the month grid.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGrid(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"LLLL y\");\n}\n/**\n * @ignore\n * @deprecated Use {@link labelGrid} instead.\n */\nexport const labelCaption = labelGrid;\n"],"names":["labelGrid","date","options","dateLib","DateLib","labelCaption"],"mappings":"gDAaO,SAASA,EAAUC,EAAMC,EAASC,EAAS,CAC9C,OAAQA,GAAW,IAAIC,EAAQF,CAAO,GAAG,OAAOD,EAAM,QAAQ,CAClE,CAKY,MAACI,EAAeL","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelGrid.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGrid.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for the month grid, which is announced when entering\n * the grid.\n *\n * @defaultValue `LLLL y` (e.g., \"November 2022\").\n * @param date - The date representing the month.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the month grid.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGrid(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"LLLL y\");\n}\n/**\n * @ignore\n * @deprecated Use {@link labelGrid} instead.\n */\nexport const labelCaption = labelGrid;\n//# sourceMappingURL=labelGrid.js.map"],"names":["labelGrid","date","options","dateLib","DateLib","labelCaption"],"mappings":"gDAaO,SAASA,EAAUC,EAAMC,EAASC,EAAS,CAC9C,OAAQA,GAAW,IAAIC,EAAQF,CAAO,GAAG,OAAOD,EAAM,QAAQ,CAClE,CAKY,MAACI,EAAeL","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelGridcell.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGridcell.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the label for a day grid cell when the calendar is not interactive.\n *\n * @param date - The date to format.\n * @param modifiers - Optional modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The label for the day grid cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGridcell(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Today, ${label}`;\n }\n return label;\n}\n"],"names":["labelGridcell","date","modifiers","options","dateLib","label","DateLib"],"mappings":"gDAYO,SAASA,EAAcC,EAAMC,EAAWC,EAASC,EAAS,CAC7D,IAAIC,GAASD,GAAW,IAAIE,EAAQH,CAAO,GAAG,OAAOF,EAAM,MAAM,EACjE,OAAIC,GAAA,MAAAA,EAAW,QACXG,EAAQ,UAAUA,CAAK,IAEpBA,CACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelGridcell.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGridcell.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the label for a day grid cell when the calendar is not interactive.\n *\n * @param date - The date to format.\n * @param modifiers - Optional modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The label for the day grid cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGridcell(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Today, ${label}`;\n }\n return label;\n}\n//# sourceMappingURL=labelGridcell.js.map"],"names":["labelGridcell","date","modifiers","options","dateLib","label","DateLib"],"mappings":"gDAYO,SAASA,EAAcC,EAAMC,EAAWC,EAASC,EAAS,CAC7D,IAAIC,GAASD,GAAW,IAAIE,EAAQH,CAAO,GAAG,OAAOF,EAAM,MAAM,EACjE,OAAIC,GAAA,MAAAA,EAAW,QACXG,EAAQ,UAAUA,CAAK,IAEpBA,CACX","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the months dropdown.\n *\n * @defaultValue `\"Choose the Month\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the months dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelMonthDropdown(_options) {\n return \"Choose the Month\";\n}\n"],"names":["labelMonthDropdown","_options"],"mappings":"AASO,SAASA,EAAmBC,EAAU,CACzC,MAAO,kBACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the months dropdown.\n *\n * @defaultValue `\"Choose the Month\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the months dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelMonthDropdown(options) {\n return \"Choose the Month\";\n}\n//# sourceMappingURL=labelMonthDropdown.js.map"],"names":["labelMonthDropdown","options"],"mappings":"AASO,SAASA,EAAmBC,EAAS,CACxC,MAAO,kBACX","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelNav.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNav.js"],"sourcesContent":["/**\n * Generates the ARIA label for the navigation toolbar.\n *\n * @defaultValue `\"\"`\n * @returns The ARIA label for the navigation toolbar.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNav() {\n return \"\";\n}\n"],"names":["labelNav"],"mappings":"AAQO,SAASA,GAAW,CACvB,MAAO,EACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelNav.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNav.js"],"sourcesContent":["/**\n * Generates the ARIA label for the navigation toolbar.\n *\n * @defaultValue `\"\"`\n * @returns The ARIA label for the navigation toolbar.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNav() {\n return \"\";\n}\n//# sourceMappingURL=labelNav.js.map"],"names":["labelNav"],"mappings":"AAQO,SAASA,GAAW,CACvB,MAAO,EACX","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelNext.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNext.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"next month\" button.\n *\n * @defaultValue `\"Go to the Next Month\"`\n * @param month - The date representing the next month, or `undefined` if there\n * is no next month.\n * @returns The ARIA label for the \"next month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNext(_month) {\n return \"Go to the Next Month\";\n}\n"],"names":["labelNext","_month"],"mappings":"AAUO,SAASA,EAAUC,EAAQ,CAC9B,MAAO,sBACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelNext.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNext.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"next month\" button.\n *\n * @defaultValue `\"Go to the Next Month\"`\n * @param month - The date representing the next month, or `undefined` if there\n * is no next month.\n * @returns The ARIA label for the \"next month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNext(month) {\n return \"Go to the Next Month\";\n}\n//# sourceMappingURL=labelNext.js.map"],"names":["labelNext","month"],"mappings":"AAUO,SAASA,EAAUC,EAAO,CAC7B,MAAO,sBACX","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelPrevious.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelPrevious.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"previous month\" button.\n *\n * @defaultValue `\"Go to the Previous Month\"`\n * @param month - The date representing the previous month, or `undefined` if\n * there is no previous month.\n * @returns The ARIA label for the \"previous month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelPrevious(_month) {\n return \"Go to the Previous Month\";\n}\n"],"names":["labelPrevious","_month"],"mappings":"AAUO,SAASA,EAAcC,EAAQ,CAClC,MAAO,0BACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelPrevious.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelPrevious.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"previous month\" button.\n *\n * @defaultValue `\"Go to the Previous Month\"`\n * @param month - The date representing the previous month, or `undefined` if\n * there is no previous month.\n * @returns The ARIA label for the \"previous month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelPrevious(month) {\n return \"Go to the Previous Month\";\n}\n//# sourceMappingURL=labelPrevious.js.map"],"names":["labelPrevious","month"],"mappings":"AAUO,SAASA,EAAcC,EAAO,CACjC,MAAO,0BACX","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number cell (the first cell in a row).\n *\n * @defaultValue `Week ${weekNumber}`\n * @param weekNumber - The number of the week.\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumber(weekNumber, _options) {\n return `Week ${weekNumber}`;\n}\n"],"names":["labelWeekNumber","weekNumber","_options"],"mappings":"AAUO,SAASA,EAAgBC,EAAYC,EAAU,CAClD,MAAO,QAAQD,CAAU,EAC7B","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number cell (the first cell in a row).\n *\n * @defaultValue `Week ${weekNumber}`\n * @param weekNumber - The number of the week.\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumber(weekNumber, options) {\n return `Week ${weekNumber}`;\n}\n//# sourceMappingURL=labelWeekNumber.js.map"],"names":["labelWeekNumber","weekNumber","options"],"mappings":"AAUO,SAASA,EAAgBC,EAAYC,EAAS,CACjD,MAAO,QAAQD,CAAU,EAC7B","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number header element.\n *\n * @defaultValue `\"Week Number\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumberHeader(_options) {\n return \"Week Number\";\n}\n"],"names":["labelWeekNumberHeader","_options"],"mappings":"AASO,SAASA,EAAsBC,EAAU,CAC5C,MAAO,aACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number header element.\n *\n * @defaultValue `\"Week Number\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumberHeader(options) {\n return \"Week Number\";\n}\n//# sourceMappingURL=labelWeekNumberHeader.js.map"],"names":["labelWeekNumberHeader","options"],"mappings":"AASO,SAASA,EAAsBC,EAAS,CAC3C,MAAO,aACX","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelWeekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekday.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a weekday column header.\n *\n * @defaultValue `\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"`\n * @param date - The date representing the weekday.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the weekday column header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekday(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"cccc\");\n}\n"],"names":["labelWeekday","date","options","dateLib","DateLib"],"mappings":"gDAYO,SAASA,EAAaC,EAAMC,EAASC,EAAS,CACjD,OAAQA,GAAW,IAAIC,EAAQF,CAAO,GAAG,OAAOD,EAAM,MAAM,CAChE","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelWeekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekday.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a weekday column header.\n *\n * @defaultValue `\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"`\n * @param date - The date representing the weekday.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the weekday column header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekday(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"cccc\");\n}\n//# sourceMappingURL=labelWeekday.js.map"],"names":["labelWeekday","date","options","dateLib","DateLib"],"mappings":"gDAYO,SAASA,EAAaC,EAAMC,EAASC,EAAS,CACjD,OAAQA,GAAW,IAAIC,EAAQF,CAAO,GAAG,OAAOD,EAAM,MAAM,CAChE","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the years dropdown.\n *\n * @defaultValue `\"Choose the Year\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the years dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelYearDropdown(_options) {\n return \"Choose the Year\";\n}\n"],"names":["labelYearDropdown","_options"],"mappings":"AASO,SAASA,EAAkBC,EAAU,CACxC,MAAO,iBACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the years dropdown.\n *\n * @defaultValue `\"Choose the Year\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the years dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelYearDropdown(options) {\n return \"Choose the Year\";\n}\n//# sourceMappingURL=labelYearDropdown.js.map"],"names":["labelYearDropdown","options"],"mappings":"AASO,SAASA,EAAkBC,EAAS,CACvC,MAAO,iBACX","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useMulti.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useMulti","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","isSelected","date","d","min","max","triggerDate","modifiers","e","newDates"],"mappings":"sEAUO,SAASA,EAASC,EAAOC,EAAS,CACrC,KAAM,CAAE,SAAUC,EAAmB,SAAAC,EAAU,SAAAC,CAAQ,EAAMJ,EACvD,CAACK,EAAoBC,CAAW,EAAIC,EAAmBL,EAAmBE,EAAWF,EAAoB,MAAS,EAClHM,EAAYJ,EAAgCF,EAArBG,EACvB,CAAE,UAAAI,CAAS,EAAKR,EAChBS,EAAcC,IACTH,GAAA,YAAAA,EAAU,KAAMI,GAAMH,EAAUG,EAAGD,CAAI,KAAM,GAElD,CAAE,IAAAE,EAAK,IAAAC,CAAG,EAAKd,EA8BrB,MAAO,CACH,SAAAQ,EACA,OA/BW,CAACO,EAAaC,EAAWC,IAAM,CAC1C,IAAIC,EAAW,CAAC,GAAIV,GAAY,CAAA,CAAG,EACnC,GAAIE,EAAWK,CAAW,EAAG,CAKzB,IAJIP,GAAA,YAAAA,EAAU,UAAWK,GAIrBV,IAAYK,GAAA,YAAAA,EAAU,UAAW,EAEjC,OAEJU,EAAWV,GAAA,YAAAA,EAAU,OAAQI,GAAM,CAACH,EAAUG,EAAGG,CAAW,EAChE,MAEQP,GAAA,YAAAA,EAAU,UAAWM,EAErBI,EAAW,CAACH,CAAW,EAIvBG,EAAW,CAAC,GAAGA,EAAUH,CAAW,EAG5C,OAAKX,GACDE,EAAYY,CAAQ,EAExBd,GAAA,MAAAA,EAAWc,EAAUH,EAAaC,EAAWC,GACtCC,CACX,EAII,WAAAR,CACR,CACA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useMulti.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useMulti.js.map"],"names":["useMulti","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","isSelected","date","d","min","max","triggerDate","modifiers","e","newDates"],"mappings":"sEAUO,SAASA,EAASC,EAAOC,EAAS,CACrC,KAAM,CAAE,SAAUC,EAAmB,SAAAC,EAAU,SAAAC,CAAQ,EAAKJ,EACtD,CAACK,EAAoBC,CAAW,EAAIC,EAAmBL,EAAmBE,EAAWF,EAAoB,MAAS,EAClHM,EAAYJ,EAAgCF,EAArBG,EACvB,CAAE,UAAAI,CAAS,EAAKR,EAChBS,EAAcC,IACTH,GAAA,YAAAA,EAAU,KAAMI,GAAMH,EAAUG,EAAGD,CAAI,KAAM,GAElD,CAAE,IAAAE,EAAK,IAAAC,CAAG,EAAKd,EA8BrB,MAAO,CACH,SAAAQ,EACA,OA/BW,CAACO,EAAaC,EAAWC,IAAM,CAC1C,IAAIC,EAAW,CAAC,GAAIV,GAAY,CAAA,CAAG,EACnC,GAAIE,EAAWK,CAAW,EAAG,CAKzB,IAJIP,GAAA,YAAAA,EAAU,UAAWK,GAIrBV,IAAYK,GAAA,YAAAA,EAAU,UAAW,EAEjC,OAEJU,EAAWV,GAAA,YAAAA,EAAU,OAAQI,GAAM,CAACH,EAAUG,EAAGG,CAAW,EAChE,MAEQP,GAAA,YAAAA,EAAU,UAAWM,EAErBI,EAAW,CAACH,CAAW,EAIvBG,EAAW,CAAC,GAAGA,EAAUH,CAAW,EAG5C,OAAKX,GACDE,EAAYY,CAAQ,EAExBd,GAAA,MAAAA,EAAWc,EAAUH,EAAaC,EAAWC,GACtCC,CACX,EAII,WAAAR,CACR,CACA","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useRange","props","dateLib","disabled","excludeDisabled","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","triggerDate","modifiers","e","min","max","newRange","addToRange","rangeContainsModifiers","date","rangeIncludesDate"],"mappings":"wQAYO,SAASA,EAASC,EAAOC,EAAS,CACrC,KAAM,CAAE,SAAAC,EAAU,gBAAAC,EAAiB,SAAUC,EAAmB,SAAAC,EAAU,SAAAC,CAAQ,EAAMN,EAClF,CAACO,EAAoBC,CAAW,EAAIC,EAAmBL,EAAmBE,EAAWF,EAAoB,MAAS,EAClHM,EAAYJ,EAAgCF,EAArBG,EAoB7B,MAAO,CACH,SAAAG,EACA,OApBW,CAACC,EAAaC,EAAWC,IAAM,CAC1C,KAAM,CAAE,IAAAC,EAAK,IAAAC,CAAG,EAAKf,EACfgB,EAAWL,EACXM,EAAWN,EAAaD,EAAUI,EAAKC,EAAKV,EAAUJ,CAAO,EAC7D,OACN,OAAIE,GAAmBD,IAAYc,GAAA,MAAAA,EAAU,OAAQA,EAAS,IACtDE,EAAuB,CAAE,KAAMF,EAAS,KAAM,GAAIA,EAAS,EAAE,EAAId,EAAUD,CAAO,IAElFe,EAAS,KAAOL,EAChBK,EAAS,GAAK,QAGjBV,GACDE,EAAYQ,CAAQ,EAExBV,GAAA,MAAAA,EAAWU,EAAUL,EAAaC,EAAWC,GACtCG,CACX,EAII,WAtBgBG,GAAST,GAAYU,EAAkBV,EAAUS,EAAM,GAAOlB,CAAO,CAuB7F,CACA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useRange.js.map"],"names":["useRange","props","dateLib","disabled","excludeDisabled","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","triggerDate","modifiers","e","min","max","newRange","addToRange","rangeContainsModifiers","date","rangeIncludesDate"],"mappings":"wQAYO,SAASA,EAASC,EAAOC,EAAS,CACrC,KAAM,CAAE,SAAAC,EAAU,gBAAAC,EAAiB,SAAUC,EAAmB,SAAAC,EAAU,SAAAC,CAAQ,EAAKN,EACjF,CAACO,EAAoBC,CAAW,EAAIC,EAAmBL,EAAmBE,EAAWF,EAAoB,MAAS,EAClHM,EAAYJ,EAAgCF,EAArBG,EAoB7B,MAAO,CACH,SAAAG,EACA,OApBW,CAACC,EAAaC,EAAWC,IAAM,CAC1C,KAAM,CAAE,IAAAC,EAAK,IAAAC,CAAG,EAAKf,EACfgB,EAAWL,EACXM,EAAWN,EAAaD,EAAUI,EAAKC,EAAKV,EAAUJ,CAAO,EAC7D,OACN,OAAIE,GAAmBD,IAAYc,GAAA,MAAAA,EAAU,OAAQA,EAAS,IACtDE,EAAuB,CAAE,KAAMF,EAAS,KAAM,GAAIA,EAAS,EAAE,EAAId,EAAUD,CAAO,IAElFe,EAAS,KAAOL,EAChBK,EAAS,GAAK,QAGjBV,GACDE,EAAYQ,CAAQ,EAExBV,GAAA,MAAAA,EAAWU,EAAUL,EAAaC,EAAWC,GACtCG,CACX,EAII,WAtBgBG,GAAST,GAAYU,EAAkBV,EAAUS,EAAM,GAAOlB,CAAO,CAuB7F,CACA","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useSingle.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useSingle","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","triggerDate","modifiers","e","newDate","compareDate"],"mappings":"sEAUO,SAASA,EAAUC,EAAOC,EAAS,CACtC,KAAM,CAAE,SAAUC,EAAmB,SAAAC,EAAU,SAAAC,CAAQ,EAAMJ,EACvD,CAACK,EAAoBC,CAAW,EAAIC,EAAmBL,EAAmBE,EAAWF,EAAoB,MAAS,EAClHM,EAAYJ,EAAgCF,EAArBG,EACvB,CAAE,UAAAI,CAAS,EAAKR,EAqBtB,MAAO,CACH,SAAAO,EACA,OAnBW,CAACE,EAAaC,EAAWC,IAAM,CAC1C,IAAIC,EAAUH,EACd,MAAI,CAACP,GAAYK,GAAYA,GAAYC,EAAUC,EAAaF,CAAQ,IAEpEK,EAAU,QAETT,GACDE,EAAYO,CAAO,EAGnBT,GAAA,MAAAA,EAAWS,EAASH,EAAaC,EAAWC,GAKzCC,CACX,EAII,WAvBgBC,GACTN,EAAWC,EAAUD,EAAUM,CAAW,EAAI,EAuB7D,CACA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useSingle.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useSingle.js.map"],"names":["useSingle","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","triggerDate","modifiers","e","newDate","compareDate"],"mappings":"sEAUO,SAASA,EAAUC,EAAOC,EAAS,CACtC,KAAM,CAAE,SAAUC,EAAmB,SAAAC,EAAU,SAAAC,CAAQ,EAAKJ,EACtD,CAACK,EAAoBC,CAAW,EAAIC,EAAmBL,EAAmBE,EAAWF,EAAoB,MAAS,EAClHM,EAAYJ,EAAgCF,EAArBG,EACvB,CAAE,UAAAI,CAAS,EAAKR,EAqBtB,MAAO,CACH,SAAAO,EACA,OAnBW,CAACE,EAAaC,EAAWC,IAAM,CAC1C,IAAIC,EAAUH,EACd,MAAI,CAACP,GAAYK,GAAYA,GAAYC,EAAUC,EAAaF,CAAQ,IAEpEK,EAAU,QAETT,GACDE,EAAYO,CAAO,EAGnBT,GAAA,MAAAA,EAAWS,EAASH,EAAaC,EAAWC,GAKzCC,CACX,EAII,WAvBgBC,GACTN,EAAWC,EAAUD,EAAUM,CAAW,EAAI,EAuB7D,CACA","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import{useRef as q,useLayoutEffect as z}from"react";import{Animation as o}from"./UI.js";const l=e=>e instanceof HTMLElement?e:null,w=e=>[...e.querySelectorAll("[data-animated-month]")??[]],I=e=>l(e.querySelector("[data-animated-month]")),S=e=>l(e.querySelector("[data-animated-caption]")),A=e=>l(e.querySelector("[data-animated-weeks]")),B=e=>l(e.querySelector("[data-animated-nav]")),P=e=>l(e.querySelector("[data-animated-weekdays]"));function D(e,b,{classNames:s,months:a,focused:g,dateLib:H}){const p=q(null),h=q(a),v=q(!1);z(()=>{const f=h.current;if(h.current=a,!b||!e.current||!(e.current instanceof HTMLElement)||a.length===0||f.length===0||a.length!==f.length)return;const M=H.isSameMonth(a[0].date,f[0].date),u=H.isAfter(a[0].date,f[0].date),m=u?s[o.caption_after_enter]:s[o.caption_before_enter],L=u?s[o.weeks_after_enter]:s[o.weeks_before_enter],x=p.current,_=e.current.cloneNode(!0);if(_ instanceof HTMLElement?(w(_).forEach(t=>{if(!(t instanceof HTMLElement))return;const c=I(t);c&&t.contains(c)&&t.removeChild(c);const n=S(t);n&&n.classList.remove(m);const r=A(t);r&&r.classList.remove(L)}),p.current=_):p.current=null,v.current||M||g)return;const k=x instanceof HTMLElement?w(x):[],d=w(e.current);if(d!=null&&d.every(i=>i instanceof HTMLElement)&&k&&k.every(i=>i instanceof HTMLElement)){v.current=!0,e.current.style.isolation="isolate";const i=B(e.current);i&&(i.style.zIndex="1"),d.forEach((t,c)=>{const n=k[c];if(!n)return;t.style.position="relative",t.style.overflow="hidden";const r=S(t);r&&r.classList.add(m);const y=A(t);y&&y.classList.add(L);const W=()=>{v.current=!1,e.current&&(e.current.style.isolation=""),i&&(i.style.zIndex=""),r&&r.classList.remove(m),y&&y.classList.remove(L),t.style.position="",t.style.overflow="",t.contains(n)&&t.removeChild(n)};n.style.pointerEvents="none",n.style.position="absolute",n.style.overflow="hidden",n.setAttribute("aria-hidden","true");const C=P(n);C&&(C.style.opacity="0");const E=S(n);E&&(E.classList.add(u?s[o.caption_before_exit]:s[o.caption_after_exit]),E.addEventListener("animationend",W));const T=A(n);T&&T.classList.add(u?s[o.weeks_before_exit]:s[o.weeks_after_exit]),t.insertBefore(n,t.firstChild)})}})}export{D as useAnimation};
1
+ import{useRef as q,useLayoutEffect as z}from"react";import{Animation as o}from"./UI.js";const l=e=>e instanceof HTMLElement?e:null,w=e=>[...e.querySelectorAll("[data-animated-month]")??[]],I=e=>l(e.querySelector("[data-animated-month]")),h=e=>l(e.querySelector("[data-animated-caption]")),S=e=>l(e.querySelector("[data-animated-weeks]")),B=e=>l(e.querySelector("[data-animated-nav]")),P=e=>l(e.querySelector("[data-animated-weekdays]"));function D(e,M,{classNames:s,months:a,focused:b,dateLib:A}){const y=q(null),H=q(a),p=q(!1);z(()=>{const f=H.current;if(H.current=a,!M||!e.current||!(e.current instanceof HTMLElement)||a.length===0||f.length===0||a.length!==f.length)return;const g=A.isSameMonth(a[0].date,f[0].date),u=A.isAfter(a[0].date,f[0].date),v=u?s[o.caption_after_enter]:s[o.caption_before_enter],m=u?s[o.weeks_after_enter]:s[o.weeks_before_enter],x=y.current,L=e.current.cloneNode(!0);if(L instanceof HTMLElement?(w(L).forEach(t=>{if(!(t instanceof HTMLElement))return;const c=I(t);c&&t.contains(c)&&t.removeChild(c);const n=h(t);n&&n.classList.remove(v);const r=S(t);r&&r.classList.remove(m)}),y.current=L):y.current=null,p.current||g||b)return;const _=x instanceof HTMLElement?w(x):[],E=w(e.current);if(E&&E.every(i=>i instanceof HTMLElement)&&_&&_.every(i=>i instanceof HTMLElement)){p.current=!0,e.current.style.isolation="isolate";const i=B(e.current);i&&(i.style.zIndex="1"),E.forEach((t,c)=>{const n=_[c];if(!n)return;t.style.position="relative",t.style.overflow="hidden";const r=h(t);r&&r.classList.add(v);const d=S(t);d&&d.classList.add(m);const W=()=>{p.current=!1,e.current&&(e.current.style.isolation=""),i&&(i.style.zIndex=""),r&&r.classList.remove(v),d&&d.classList.remove(m),t.style.position="",t.style.overflow="",t.contains(n)&&t.removeChild(n)};n.style.pointerEvents="none",n.style.position="absolute",n.style.overflow="hidden",n.setAttribute("aria-hidden","true");const C=P(n);C&&(C.style.opacity="0");const k=h(n);k&&(k.classList.add(u?s[o.caption_before_exit]:s[o.caption_after_exit]),k.addEventListener("animationend",W));const T=S(n);T&&T.classList.add(u?s[o.weeks_before_exit]:s[o.weeks_after_exit]),t.insertBefore(n,t.firstChild)})}})}export{D as useAnimation};
2
2
  //# sourceMappingURL=useAnimation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useAnimation.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useAnimation.js"],"sourcesContent":["import { useLayoutEffect, useRef } from \"react\";\nimport { Animation } from \"./UI.js\";\nconst asHtmlElement = (element) => {\n if (element instanceof HTMLElement)\n return element;\n return null;\n};\nconst queryMonthEls = (element) => [\n ...(element.querySelectorAll(\"[data-animated-month]\") ?? []),\n];\nconst queryMonthEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-month]\"));\nconst queryCaptionEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-caption]\"));\nconst queryWeeksEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weeks]\"));\nconst queryNavEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-nav]\"));\nconst queryWeekdaysEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weekdays]\"));\n/**\n * Handles animations for transitioning between months in the DayPicker\n * component.\n *\n * @private\n * @param rootElRef - A reference to the root element of the DayPicker\n * component.\n * @param enabled - Whether animations are enabled.\n * @param options - Configuration options for the animation, including class\n * names, months, focused day, and the date utility library.\n */\nexport function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib, }) {\n const previousRootElSnapshotRef = useRef(null);\n const previousMonthsRef = useRef(months);\n const animatingRef = useRef(false);\n useLayoutEffect(() => {\n // get previous months before updating the previous months ref\n const previousMonths = previousMonthsRef.current;\n // update previous months ref for next effect trigger\n previousMonthsRef.current = months;\n if (!enabled ||\n !rootElRef.current ||\n // safety check because the ref can be set to anything by consumers\n !(rootElRef.current instanceof HTMLElement) ||\n // validation required for the animation to work as expected\n months.length === 0 ||\n previousMonths.length === 0 ||\n months.length !== previousMonths.length) {\n return;\n }\n const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);\n const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);\n const captionAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.caption_after_enter]\n : classNames[Animation.caption_before_enter];\n const weeksAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.weeks_after_enter]\n : classNames[Animation.weeks_before_enter];\n // get previous root element snapshot before updating the snapshot ref\n const previousRootElSnapshot = previousRootElSnapshotRef.current;\n // update snapshot for next effect trigger\n const rootElSnapshot = rootElRef.current.cloneNode(true);\n if (rootElSnapshot instanceof HTMLElement) {\n // if this effect is triggered while animating, we need to clean up the new root snapshot\n // to put it in the same state as when not animating, to correctly animate the next month change\n const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);\n currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {\n if (!(currentMonthElSnapshot instanceof HTMLElement))\n return;\n // remove the old month snapshots from the new root snapshot\n const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);\n if (previousMonthElSnapshot &&\n currentMonthElSnapshot.contains(previousMonthElSnapshot)) {\n currentMonthElSnapshot.removeChild(previousMonthElSnapshot);\n }\n // remove animation classes from the new month snapshots\n const captionEl = queryCaptionEl(currentMonthElSnapshot);\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthElSnapshot);\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n });\n previousRootElSnapshotRef.current = rootElSnapshot;\n }\n else {\n previousRootElSnapshotRef.current = null;\n }\n if (animatingRef.current ||\n isSameMonth ||\n // skip animation if a day is focused because it can cause issues to the animation and is better for a11y\n focused) {\n return;\n }\n const previousMonthEls = previousRootElSnapshot instanceof HTMLElement\n ? queryMonthEls(previousRootElSnapshot)\n : [];\n const currentMonthEls = queryMonthEls(rootElRef.current);\n if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&\n previousMonthEls &&\n previousMonthEls.every((el) => el instanceof HTMLElement)) {\n animatingRef.current = true;\n const cleanUpFunctions = [];\n // set isolation to isolate to isolate the stacking context during animation\n rootElRef.current.style.isolation = \"isolate\";\n // set z-index to 1 to ensure the nav is clickable over the other elements being animated\n const navEl = queryNavEl(rootElRef.current);\n if (navEl) {\n navEl.style.zIndex = \"1\";\n }\n currentMonthEls.forEach((currentMonthEl, index) => {\n const previousMonthEl = previousMonthEls[index];\n if (!previousMonthEl) {\n return;\n }\n // animate new displayed month\n currentMonthEl.style.position = \"relative\";\n currentMonthEl.style.overflow = \"hidden\";\n const captionEl = queryCaptionEl(currentMonthEl);\n if (captionEl) {\n captionEl.classList.add(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthEl);\n if (weeksEl) {\n weeksEl.classList.add(weeksAnimationClass);\n }\n // animate new displayed month end\n const cleanUp = () => {\n animatingRef.current = false;\n if (rootElRef.current) {\n rootElRef.current.style.isolation = \"\";\n }\n if (navEl) {\n navEl.style.zIndex = \"\";\n }\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n currentMonthEl.style.position = \"\";\n currentMonthEl.style.overflow = \"\";\n if (currentMonthEl.contains(previousMonthEl)) {\n currentMonthEl.removeChild(previousMonthEl);\n }\n };\n cleanUpFunctions.push(cleanUp);\n // animate old displayed month\n previousMonthEl.style.pointerEvents = \"none\";\n previousMonthEl.style.position = \"absolute\";\n previousMonthEl.style.overflow = \"hidden\";\n previousMonthEl.setAttribute(\"aria-hidden\", \"true\");\n // hide the weekdays container of the old month and only the new one\n const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);\n if (previousWeekdaysEl) {\n previousWeekdaysEl.style.opacity = \"0\";\n }\n const previousCaptionEl = queryCaptionEl(previousMonthEl);\n if (previousCaptionEl) {\n previousCaptionEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.caption_before_exit]\n : classNames[Animation.caption_after_exit]);\n previousCaptionEl.addEventListener(\"animationend\", cleanUp);\n }\n const previousWeeksEl = queryWeeksEl(previousMonthEl);\n if (previousWeeksEl) {\n previousWeeksEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.weeks_before_exit]\n : classNames[Animation.weeks_after_exit]);\n }\n currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);\n });\n }\n });\n}\n"],"names":["asHtmlElement","element","queryMonthEls","queryMonthEl","queryCaptionEl","queryWeeksEl","queryNavEl","queryWeekdaysEl","useAnimation","rootElRef","enabled","classNames","months","focused","dateLib","previousRootElSnapshotRef","useRef","previousMonthsRef","animatingRef","useLayoutEffect","previousMonths","isSameMonth","isAfterPreviousMonth","captionAnimationClass","Animation","weeksAnimationClass","previousRootElSnapshot","rootElSnapshot","currentMonthElSnapshot","previousMonthElSnapshot","captionEl","weeksEl","previousMonthEls","currentMonthEls","el","navEl","currentMonthEl","index","previousMonthEl","cleanUp","previousWeekdaysEl","previousCaptionEl","previousWeeksEl"],"mappings":"wFAEA,MAAMA,EAAiBC,GACfA,aAAmB,YACZA,EACJ,KAELC,EAAiBD,GAAY,CAC/B,GAAIA,EAAQ,iBAAiB,uBAAuB,GAAK,CAAA,CAC7D,EACME,EAAgBF,GAAYD,EAAcC,EAAQ,cAAc,uBAAuB,CAAC,EACxFG,EAAkBH,GAAYD,EAAcC,EAAQ,cAAc,yBAAyB,CAAC,EAC5FI,EAAgBJ,GAAYD,EAAcC,EAAQ,cAAc,uBAAuB,CAAC,EACxFK,EAAcL,GAAYD,EAAcC,EAAQ,cAAc,qBAAqB,CAAC,EACpFM,EAAmBN,GAAYD,EAAcC,EAAQ,cAAc,0BAA0B,CAAC,EAY7F,SAASO,EAAaC,EAAWC,EAAS,CAAE,WAAAC,EAAY,OAAAC,EAAQ,QAAAC,EAAS,QAAAC,GAAY,CACxF,MAAMC,EAA4BC,EAAO,IAAI,EACvCC,EAAoBD,EAAOJ,CAAM,EACjCM,EAAeF,EAAO,EAAK,EACjCG,EAAgB,IAAM,CAElB,MAAMC,EAAiBH,EAAkB,QAGzC,GADAA,EAAkB,QAAUL,EACxB,CAACF,GACD,CAACD,EAAU,SAEX,EAAEA,EAAU,mBAAmB,cAE/BG,EAAO,SAAW,GAClBQ,EAAe,SAAW,GAC1BR,EAAO,SAAWQ,EAAe,OACjC,OAEJ,MAAMC,EAAcP,EAAQ,YAAYF,EAAO,CAAC,EAAE,KAAMQ,EAAe,CAAC,EAAE,IAAI,EACxEE,EAAuBR,EAAQ,QAAQF,EAAO,CAAC,EAAE,KAAMQ,EAAe,CAAC,EAAE,IAAI,EAC7EG,EAAwBD,EACxBX,EAAWa,EAAU,mBAAmB,EACxCb,EAAWa,EAAU,oBAAoB,EACzCC,EAAsBH,EACtBX,EAAWa,EAAU,iBAAiB,EACtCb,EAAWa,EAAU,kBAAkB,EAEvCE,EAAyBX,EAA0B,QAEnDY,EAAiBlB,EAAU,QAAQ,UAAU,EAAI,EA6BvD,GA5BIkB,aAA0B,aAGMzB,EAAcyB,CAAc,EACpC,QAASC,GAA2B,CACxD,GAAI,EAAEA,aAAkC,aACpC,OAEJ,MAAMC,EAA0B1B,EAAayB,CAAsB,EAC/DC,GACAD,EAAuB,SAASC,CAAuB,GACvDD,EAAuB,YAAYC,CAAuB,EAG9D,MAAMC,EAAY1B,EAAewB,CAAsB,EACnDE,GACAA,EAAU,UAAU,OAAOP,CAAqB,EAEpD,MAAMQ,EAAU1B,EAAauB,CAAsB,EAC/CG,GACAA,EAAQ,UAAU,OAAON,CAAmB,CAEpD,CAAC,EACDV,EAA0B,QAAUY,GAGpCZ,EAA0B,QAAU,KAEpCG,EAAa,SACbG,GAEAR,EACA,OAEJ,MAAMmB,EAAmBN,aAAkC,YACrDxB,EAAcwB,CAAsB,EACpC,CAAA,EACAO,EAAkB/B,EAAcO,EAAU,OAAO,EACvD,GAAIwB,GAAA,MAAAA,EAAiB,MAAOC,GAAOA,aAAc,cAC7CF,GACAA,EAAiB,MAAOE,GAAOA,aAAc,WAAW,EAAG,CAC3DhB,EAAa,QAAU,GAGvBT,EAAU,QAAQ,MAAM,UAAY,UAEpC,MAAM0B,EAAQ7B,EAAWG,EAAU,OAAO,EACtC0B,IACAA,EAAM,MAAM,OAAS,KAEzBF,EAAgB,QAAQ,CAACG,EAAgBC,IAAU,CAC/C,MAAMC,EAAkBN,EAAiBK,CAAK,EAC9C,GAAI,CAACC,EACD,OAGJF,EAAe,MAAM,SAAW,WAChCA,EAAe,MAAM,SAAW,SAChC,MAAMN,EAAY1B,EAAegC,CAAc,EAC3CN,GACAA,EAAU,UAAU,IAAIP,CAAqB,EAEjD,MAAMQ,EAAU1B,EAAa+B,CAAc,EACvCL,GACAA,EAAQ,UAAU,IAAIN,CAAmB,EAG7C,MAAMc,EAAU,IAAM,CAClBrB,EAAa,QAAU,GACnBT,EAAU,UACVA,EAAU,QAAQ,MAAM,UAAY,IAEpC0B,IACAA,EAAM,MAAM,OAAS,IAErBL,GACAA,EAAU,UAAU,OAAOP,CAAqB,EAEhDQ,GACAA,EAAQ,UAAU,OAAON,CAAmB,EAEhDW,EAAe,MAAM,SAAW,GAChCA,EAAe,MAAM,SAAW,GAC5BA,EAAe,SAASE,CAAe,GACvCF,EAAe,YAAYE,CAAe,CAElD,EAGAA,EAAgB,MAAM,cAAgB,OACtCA,EAAgB,MAAM,SAAW,WACjCA,EAAgB,MAAM,SAAW,SACjCA,EAAgB,aAAa,cAAe,MAAM,EAElD,MAAME,EAAqBjC,EAAgB+B,CAAe,EACtDE,IACAA,EAAmB,MAAM,QAAU,KAEvC,MAAMC,EAAoBrC,EAAekC,CAAe,EACpDG,IACAA,EAAkB,UAAU,IAAInB,EAC1BX,EAAWa,EAAU,mBAAmB,EACxCb,EAAWa,EAAU,kBAAkB,CAAC,EAC9CiB,EAAkB,iBAAiB,eAAgBF,CAAO,GAE9D,MAAMG,EAAkBrC,EAAaiC,CAAe,EAChDI,GACAA,EAAgB,UAAU,IAAIpB,EACxBX,EAAWa,EAAU,iBAAiB,EACtCb,EAAWa,EAAU,gBAAgB,CAAC,EAEhDY,EAAe,aAAaE,EAAiBF,EAAe,UAAU,CAC1E,CAAC,CACL,CACJ,CAAC,CACL","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useAnimation.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useAnimation.js"],"sourcesContent":["import { useLayoutEffect, useRef } from \"react\";\nimport { Animation } from \"./UI.js\";\nconst asHtmlElement = (element) => {\n if (element instanceof HTMLElement)\n return element;\n return null;\n};\nconst queryMonthEls = (element) => [\n ...(element.querySelectorAll(\"[data-animated-month]\") ?? [])\n];\nconst queryMonthEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-month]\"));\nconst queryCaptionEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-caption]\"));\nconst queryWeeksEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weeks]\"));\nconst queryNavEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-nav]\"));\nconst queryWeekdaysEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weekdays]\"));\n/**\n * Handles animations for transitioning between months in the DayPicker\n * component.\n *\n * @private\n * @param rootElRef - A reference to the root element of the DayPicker\n * component.\n * @param enabled - Whether animations are enabled.\n * @param options - Configuration options for the animation, including class\n * names, months, focused day, and the date utility library.\n */\nexport function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib }) {\n const previousRootElSnapshotRef = useRef(null);\n const previousMonthsRef = useRef(months);\n const animatingRef = useRef(false);\n useLayoutEffect(() => {\n // get previous months before updating the previous months ref\n const previousMonths = previousMonthsRef.current;\n // update previous months ref for next effect trigger\n previousMonthsRef.current = months;\n if (!enabled ||\n !rootElRef.current ||\n // safety check because the ref can be set to anything by consumers\n !(rootElRef.current instanceof HTMLElement) ||\n // validation required for the animation to work as expected\n months.length === 0 ||\n previousMonths.length === 0 ||\n months.length !== previousMonths.length) {\n return;\n }\n const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);\n const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);\n const captionAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.caption_after_enter]\n : classNames[Animation.caption_before_enter];\n const weeksAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.weeks_after_enter]\n : classNames[Animation.weeks_before_enter];\n // get previous root element snapshot before updating the snapshot ref\n const previousRootElSnapshot = previousRootElSnapshotRef.current;\n // update snapshot for next effect trigger\n const rootElSnapshot = rootElRef.current.cloneNode(true);\n if (rootElSnapshot instanceof HTMLElement) {\n // if this effect is triggered while animating, we need to clean up the new root snapshot\n // to put it in the same state as when not animating, to correctly animate the next month change\n const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);\n currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {\n if (!(currentMonthElSnapshot instanceof HTMLElement))\n return;\n // remove the old month snapshots from the new root snapshot\n const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);\n if (previousMonthElSnapshot &&\n currentMonthElSnapshot.contains(previousMonthElSnapshot)) {\n currentMonthElSnapshot.removeChild(previousMonthElSnapshot);\n }\n // remove animation classes from the new month snapshots\n const captionEl = queryCaptionEl(currentMonthElSnapshot);\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthElSnapshot);\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n });\n previousRootElSnapshotRef.current = rootElSnapshot;\n }\n else {\n previousRootElSnapshotRef.current = null;\n }\n if (animatingRef.current ||\n isSameMonth ||\n // skip animation if a day is focused because it can cause issues to the animation and is better for a11y\n focused) {\n return;\n }\n const previousMonthEls = previousRootElSnapshot instanceof HTMLElement\n ? queryMonthEls(previousRootElSnapshot)\n : [];\n const currentMonthEls = queryMonthEls(rootElRef.current);\n if (currentMonthEls &&\n currentMonthEls.every((el) => el instanceof HTMLElement) &&\n previousMonthEls &&\n previousMonthEls.every((el) => el instanceof HTMLElement)) {\n animatingRef.current = true;\n const cleanUpFunctions = [];\n // set isolation to isolate to isolate the stacking context during animation\n rootElRef.current.style.isolation = \"isolate\";\n // set z-index to 1 to ensure the nav is clickable over the other elements being animated\n const navEl = queryNavEl(rootElRef.current);\n if (navEl) {\n navEl.style.zIndex = \"1\";\n }\n currentMonthEls.forEach((currentMonthEl, index) => {\n const previousMonthEl = previousMonthEls[index];\n if (!previousMonthEl) {\n return;\n }\n // animate new displayed month\n currentMonthEl.style.position = \"relative\";\n currentMonthEl.style.overflow = \"hidden\";\n const captionEl = queryCaptionEl(currentMonthEl);\n if (captionEl) {\n captionEl.classList.add(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthEl);\n if (weeksEl) {\n weeksEl.classList.add(weeksAnimationClass);\n }\n // animate new displayed month end\n const cleanUp = () => {\n animatingRef.current = false;\n if (rootElRef.current) {\n rootElRef.current.style.isolation = \"\";\n }\n if (navEl) {\n navEl.style.zIndex = \"\";\n }\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n currentMonthEl.style.position = \"\";\n currentMonthEl.style.overflow = \"\";\n if (currentMonthEl.contains(previousMonthEl)) {\n currentMonthEl.removeChild(previousMonthEl);\n }\n };\n cleanUpFunctions.push(cleanUp);\n // animate old displayed month\n previousMonthEl.style.pointerEvents = \"none\";\n previousMonthEl.style.position = \"absolute\";\n previousMonthEl.style.overflow = \"hidden\";\n previousMonthEl.setAttribute(\"aria-hidden\", \"true\");\n // hide the weekdays container of the old month and only the new one\n const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);\n if (previousWeekdaysEl) {\n previousWeekdaysEl.style.opacity = \"0\";\n }\n const previousCaptionEl = queryCaptionEl(previousMonthEl);\n if (previousCaptionEl) {\n previousCaptionEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.caption_before_exit]\n : classNames[Animation.caption_after_exit]);\n previousCaptionEl.addEventListener(\"animationend\", cleanUp);\n }\n const previousWeeksEl = queryWeeksEl(previousMonthEl);\n if (previousWeeksEl) {\n previousWeeksEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.weeks_before_exit]\n : classNames[Animation.weeks_after_exit]);\n }\n currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);\n });\n }\n });\n}\n//# sourceMappingURL=useAnimation.js.map"],"names":["asHtmlElement","element","queryMonthEls","queryMonthEl","queryCaptionEl","queryWeeksEl","queryNavEl","queryWeekdaysEl","useAnimation","rootElRef","enabled","classNames","months","focused","dateLib","previousRootElSnapshotRef","useRef","previousMonthsRef","animatingRef","useLayoutEffect","previousMonths","isSameMonth","isAfterPreviousMonth","captionAnimationClass","Animation","weeksAnimationClass","previousRootElSnapshot","rootElSnapshot","currentMonthElSnapshot","previousMonthElSnapshot","captionEl","weeksEl","previousMonthEls","currentMonthEls","el","navEl","currentMonthEl","index","previousMonthEl","cleanUp","previousWeekdaysEl","previousCaptionEl","previousWeeksEl"],"mappings":"wFAEA,MAAMA,EAAiBC,GACfA,aAAmB,YACZA,EACJ,KAELC,EAAiBD,GAAY,CAC/B,GAAIA,EAAQ,iBAAiB,uBAAuB,GAAK,CAAA,CAC7D,EACME,EAAgBF,GAAYD,EAAcC,EAAQ,cAAc,uBAAuB,CAAC,EACxFG,EAAkBH,GAAYD,EAAcC,EAAQ,cAAc,yBAAyB,CAAC,EAC5FI,EAAgBJ,GAAYD,EAAcC,EAAQ,cAAc,uBAAuB,CAAC,EACxFK,EAAcL,GAAYD,EAAcC,EAAQ,cAAc,qBAAqB,CAAC,EACpFM,EAAmBN,GAAYD,EAAcC,EAAQ,cAAc,0BAA0B,CAAC,EAY7F,SAASO,EAAaC,EAAWC,EAAS,CAAE,WAAAC,EAAY,OAAAC,EAAQ,QAAAC,EAAS,QAAAC,GAAW,CACvF,MAAMC,EAA4BC,EAAO,IAAI,EACvCC,EAAoBD,EAAOJ,CAAM,EACjCM,EAAeF,EAAO,EAAK,EACjCG,EAAgB,IAAM,CAElB,MAAMC,EAAiBH,EAAkB,QAGzC,GADAA,EAAkB,QAAUL,EACxB,CAACF,GACD,CAACD,EAAU,SAEX,EAAEA,EAAU,mBAAmB,cAE/BG,EAAO,SAAW,GAClBQ,EAAe,SAAW,GAC1BR,EAAO,SAAWQ,EAAe,OACjC,OAEJ,MAAMC,EAAcP,EAAQ,YAAYF,EAAO,CAAC,EAAE,KAAMQ,EAAe,CAAC,EAAE,IAAI,EACxEE,EAAuBR,EAAQ,QAAQF,EAAO,CAAC,EAAE,KAAMQ,EAAe,CAAC,EAAE,IAAI,EAC7EG,EAAwBD,EACxBX,EAAWa,EAAU,mBAAmB,EACxCb,EAAWa,EAAU,oBAAoB,EACzCC,EAAsBH,EACtBX,EAAWa,EAAU,iBAAiB,EACtCb,EAAWa,EAAU,kBAAkB,EAEvCE,EAAyBX,EAA0B,QAEnDY,EAAiBlB,EAAU,QAAQ,UAAU,EAAI,EA6BvD,GA5BIkB,aAA0B,aAGMzB,EAAcyB,CAAc,EACpC,QAASC,GAA2B,CACxD,GAAI,EAAEA,aAAkC,aACpC,OAEJ,MAAMC,EAA0B1B,EAAayB,CAAsB,EAC/DC,GACAD,EAAuB,SAASC,CAAuB,GACvDD,EAAuB,YAAYC,CAAuB,EAG9D,MAAMC,EAAY1B,EAAewB,CAAsB,EACnDE,GACAA,EAAU,UAAU,OAAOP,CAAqB,EAEpD,MAAMQ,EAAU1B,EAAauB,CAAsB,EAC/CG,GACAA,EAAQ,UAAU,OAAON,CAAmB,CAEpD,CAAC,EACDV,EAA0B,QAAUY,GAGpCZ,EAA0B,QAAU,KAEpCG,EAAa,SACbG,GAEAR,EACA,OAEJ,MAAMmB,EAAmBN,aAAkC,YACrDxB,EAAcwB,CAAsB,EACpC,CAAA,EACAO,EAAkB/B,EAAcO,EAAU,OAAO,EACvD,GAAIwB,GACAA,EAAgB,MAAOC,GAAOA,aAAc,WAAW,GACvDF,GACAA,EAAiB,MAAOE,GAAOA,aAAc,WAAW,EAAG,CAC3DhB,EAAa,QAAU,GAGvBT,EAAU,QAAQ,MAAM,UAAY,UAEpC,MAAM0B,EAAQ7B,EAAWG,EAAU,OAAO,EACtC0B,IACAA,EAAM,MAAM,OAAS,KAEzBF,EAAgB,QAAQ,CAACG,EAAgBC,IAAU,CAC/C,MAAMC,EAAkBN,EAAiBK,CAAK,EAC9C,GAAI,CAACC,EACD,OAGJF,EAAe,MAAM,SAAW,WAChCA,EAAe,MAAM,SAAW,SAChC,MAAMN,EAAY1B,EAAegC,CAAc,EAC3CN,GACAA,EAAU,UAAU,IAAIP,CAAqB,EAEjD,MAAMQ,EAAU1B,EAAa+B,CAAc,EACvCL,GACAA,EAAQ,UAAU,IAAIN,CAAmB,EAG7C,MAAMc,EAAU,IAAM,CAClBrB,EAAa,QAAU,GACnBT,EAAU,UACVA,EAAU,QAAQ,MAAM,UAAY,IAEpC0B,IACAA,EAAM,MAAM,OAAS,IAErBL,GACAA,EAAU,UAAU,OAAOP,CAAqB,EAEhDQ,GACAA,EAAQ,UAAU,OAAON,CAAmB,EAEhDW,EAAe,MAAM,SAAW,GAChCA,EAAe,MAAM,SAAW,GAC5BA,EAAe,SAASE,CAAe,GACvCF,EAAe,YAAYE,CAAe,CAElD,EAGAA,EAAgB,MAAM,cAAgB,OACtCA,EAAgB,MAAM,SAAW,WACjCA,EAAgB,MAAM,SAAW,SACjCA,EAAgB,aAAa,cAAe,MAAM,EAElD,MAAME,EAAqBjC,EAAgB+B,CAAe,EACtDE,IACAA,EAAmB,MAAM,QAAU,KAEvC,MAAMC,EAAoBrC,EAAekC,CAAe,EACpDG,IACAA,EAAkB,UAAU,IAAInB,EAC1BX,EAAWa,EAAU,mBAAmB,EACxCb,EAAWa,EAAU,kBAAkB,CAAC,EAC9CiB,EAAkB,iBAAiB,eAAgBF,CAAO,GAE9D,MAAMG,EAAkBrC,EAAaiC,CAAe,EAChDI,GACAA,EAAgB,UAAU,IAAIpB,EACxBX,EAAWa,EAAU,iBAAiB,EACtCb,EAAWa,EAAU,gBAAgB,CAAC,EAEhDY,EAAe,aAAaE,EAAiBF,EAAe,UAAU,CAC1E,CAAC,CACL,CACJ,CAAC,CACL","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useCalendar.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/**\n * Provides the calendar object to work with the calendar in custom components.\n *\n * @private\n * @param props - The DayPicker props related to calendar configuration.\n * @param dateLib - The date utility library instance.\n * @returns The calendar object containing displayed days, weeks, months, and\n * navigation methods.\n */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n // biome-ignore lint/correctness/useExhaustiveDependencies: change the initial month when the time zone changes.\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n setFirstMonth(newInitialMonth);\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);\n /** The dates displayed in the calendar. */\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, props, dateLib);\n /** The Months displayed in the calendar. */\n const months = getMonths(displayMonths, dates, props, dateLib);\n /** The Weeks displayed in the calendar. */\n const weeks = getWeeks(months);\n /** The Days displayed in the calendar. */\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay,\n };\n return calendar;\n}\n"],"names":["useCalendar","props","dateLib","navStart","navEnd","getNavMonths","startOfMonth","endOfMonth","initialMonth","getInitialMonth","firstMonth","setFirstMonth","useControlledValue","useEffect","newInitialMonth","displayMonths","getDisplayMonths","dates","getDates","months","getMonths","weeks","getWeeks","days","getDays","previousMonth","getPreviousMonth","nextMonth","getNextMonth","disableNavigation","onMonthChange","isDayInCalendar","day","week","d","goToMonth","date","newMonth"],"mappings":"6lBAoBO,SAASA,EAAYC,EAAOC,EAAS,CACxC,KAAM,CAACC,EAAUC,CAAM,EAAIC,EAAaJ,EAAOC,CAAO,EAChD,CAAE,aAAAI,EAAc,WAAAC,CAAU,EAAKL,EAC/BM,EAAeC,EAAgBR,EAAOE,EAAUC,EAAQF,CAAO,EAC/D,CAACQ,EAAYC,CAAa,EAAIC,EAAmBJ,EAEvDP,EAAM,MAAQO,EAAe,MAAS,EAEtCK,EAAU,IAAM,CACZ,MAAMC,EAAkBL,EAAgBR,EAAOE,EAAUC,EAAQF,CAAO,EACxES,EAAcG,CAAe,CACjC,EAAG,CAACb,EAAM,QAAQ,CAAC,EAEnB,MAAMc,EAAgBC,EAAiBN,EAAYN,EAAQH,EAAOC,CAAO,EAEnEe,EAAQC,EAASH,EAAed,EAAM,SAAWM,EAAWN,EAAM,QAAQ,EAAI,OAAWA,EAAOC,CAAO,EAEvGiB,EAASC,EAAUL,EAAeE,EAAOhB,EAAOC,CAAO,EAEvDmB,EAAQC,EAASH,CAAM,EAEvBI,EAAOC,EAAQL,CAAM,EACrBM,EAAgBC,EAAiBhB,EAAYP,EAAUF,EAAOC,CAAO,EACrEyB,EAAYC,EAAalB,EAAYN,EAAQH,EAAOC,CAAO,EAC3D,CAAE,kBAAA2B,EAAmB,cAAAC,CAAa,EAAK7B,EACvC8B,EAAmBC,GAAQX,EAAM,KAAMY,GAASA,EAAK,KAAK,KAAMC,GAAMA,EAAE,UAAUF,CAAG,CAAC,CAAC,EACvFG,EAAaC,GAAS,CACxB,GAAIP,EACA,OAEJ,IAAIQ,EAAW/B,EAAa8B,CAAI,EAE5BjC,GAAYkC,EAAW/B,EAAaH,CAAQ,IAC5CkC,EAAW/B,EAAaH,CAAQ,GAGhCC,GAAUiC,EAAW/B,EAAaF,CAAM,IACxCiC,EAAW/B,EAAaF,CAAM,GAElCO,EAAc0B,CAAQ,EACtBP,GAAA,MAAAA,EAAgBO,EACpB,EAmBA,MAXiB,CACb,OAAAlB,EACA,MAAAE,EACA,KAAAE,EACA,SAAApB,EACA,OAAAC,EACA,cAAAqB,EACA,UAAAE,EACA,UAAAQ,EACA,QAhBaH,GAAQ,CAEjBD,EAAgBC,CAAG,GAGvBG,EAAUH,EAAI,IAAI,CACtB,CAWJ,CAEA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useCalendar.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/**\n * Provides the calendar object to work with the calendar in custom components.\n *\n * @private\n * @param props - The DayPicker props related to calendar configuration.\n * @param dateLib - The date utility library instance.\n * @returns The calendar object containing displayed days, weeks, months, and\n * navigation methods.\n */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n setFirstMonth(newInitialMonth);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);\n /** The dates displayed in the calendar. */\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, props, dateLib);\n /** The Months displayed in the calendar. */\n const months = getMonths(displayMonths, dates, props, dateLib);\n /** The Weeks displayed in the calendar. */\n const weeks = getWeeks(months);\n /** The Days displayed in the calendar. */\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay\n };\n return calendar;\n}\n//# sourceMappingURL=useCalendar.js.map"],"names":["useCalendar","props","dateLib","navStart","navEnd","getNavMonths","startOfMonth","endOfMonth","initialMonth","getInitialMonth","firstMonth","setFirstMonth","useControlledValue","useEffect","newInitialMonth","displayMonths","getDisplayMonths","dates","getDates","months","getMonths","weeks","getWeeks","days","getDays","previousMonth","getPreviousMonth","nextMonth","getNextMonth","disableNavigation","onMonthChange","isDayInCalendar","day","week","d","goToMonth","date","newMonth"],"mappings":"6lBAoBO,SAASA,EAAYC,EAAOC,EAAS,CACxC,KAAM,CAACC,EAAUC,CAAM,EAAIC,EAAaJ,EAAOC,CAAO,EAChD,CAAE,aAAAI,EAAc,WAAAC,CAAU,EAAKL,EAC/BM,EAAeC,EAAgBR,EAAOE,EAAUC,EAAQF,CAAO,EAC/D,CAACQ,EAAYC,CAAa,EAAIC,EAAmBJ,EAEvDP,EAAM,MAAQO,EAAe,MAAS,EACtCK,EAAU,IAAM,CACZ,MAAMC,EAAkBL,EAAgBR,EAAOE,EAAUC,EAAQF,CAAO,EACxES,EAAcG,CAAe,CAEjC,EAAG,CAACb,EAAM,QAAQ,CAAC,EAEnB,MAAMc,EAAgBC,EAAiBN,EAAYN,EAAQH,EAAOC,CAAO,EAEnEe,EAAQC,EAASH,EAAed,EAAM,SAAWM,EAAWN,EAAM,QAAQ,EAAI,OAAWA,EAAOC,CAAO,EAEvGiB,EAASC,EAAUL,EAAeE,EAAOhB,EAAOC,CAAO,EAEvDmB,EAAQC,EAASH,CAAM,EAEvBI,EAAOC,EAAQL,CAAM,EACrBM,EAAgBC,EAAiBhB,EAAYP,EAAUF,EAAOC,CAAO,EACrEyB,EAAYC,EAAalB,EAAYN,EAAQH,EAAOC,CAAO,EAC3D,CAAE,kBAAA2B,EAAmB,cAAAC,CAAa,EAAK7B,EACvC8B,EAAmBC,GAAQX,EAAM,KAAMY,GAASA,EAAK,KAAK,KAAMC,GAAMA,EAAE,UAAUF,CAAG,CAAC,CAAC,EACvFG,EAAaC,GAAS,CACxB,GAAIP,EACA,OAEJ,IAAIQ,EAAW/B,EAAa8B,CAAI,EAE5BjC,GAAYkC,EAAW/B,EAAaH,CAAQ,IAC5CkC,EAAW/B,EAAaH,CAAQ,GAGhCC,GAAUiC,EAAW/B,EAAaF,CAAM,IACxCiC,EAAW/B,EAAaF,CAAM,GAElCO,EAAc0B,CAAQ,EACtBP,GAAA,MAAAA,EAAgBO,EACpB,EAmBA,MAXiB,CACb,OAAAlB,EACA,MAAAE,EACA,KAAAE,EACA,SAAApB,EACA,OAAAC,EACA,cAAAqB,EACA,UAAAE,EACA,UAAAQ,EACA,QAhBaH,GAAQ,CAEjBD,EAAgBC,CAAG,GAGvBG,EAAUH,EAAI,IAAI,CACtB,CAWJ,CAEA","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useDayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n"],"names":["dayPickerContext","createContext","useDayPicker","context","useContext"],"mappings":"sDAEY,MAACA,EAAmBC,EAAc,MAAS,EAahD,SAASC,GAAe,CAC3B,MAAMC,EAAUC,EAAWJ,CAAgB,EAC3C,GAAIG,IAAY,OACZ,MAAM,IAAI,MAAM,wDAAwD,EAE5E,OAAOA,CACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useDayPicker.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useDayPicker.js"],"sourcesContent":["import { createContext, useContext } from \"react\";\n/** @ignore */\nexport const dayPickerContext = createContext(undefined);\n/**\n * Provides access to the DayPicker context, which includes properties and\n * methods to interact with the DayPicker component. This hook must be used\n * within a custom component.\n *\n * @template T - Use this type to refine the returned context type with a\n * specific selection mode.\n * @returns The context to work with DayPicker.\n * @throws {Error} If the hook is used outside of a DayPicker provider.\n * @group Hooks\n * @see https://daypicker.dev/guides/custom-components\n */\nexport function useDayPicker() {\n const context = useContext(dayPickerContext);\n if (context === undefined) {\n throw new Error(\"useDayPicker() must be used within a custom component.\");\n }\n return context;\n}\n//# sourceMappingURL=useDayPicker.js.map"],"names":["dayPickerContext","createContext","useDayPicker","context","useContext"],"mappings":"sDAEY,MAACA,EAAmBC,EAAc,MAAS,EAahD,SAASC,GAAe,CAC3B,MAAMC,EAAUC,EAAWJ,CAAgB,EAC3C,GAAIG,IAAY,OACZ,MAAM,IAAI,MAAM,wDAAwD,EAE5E,OAAOA,CACX","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus,\n };\n return useFocus;\n}\n"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","focusedDay","setFocused","day","moveBy","moveDir","nextFocus","getNextFocus"],"mappings":"mKAiBO,SAASA,EAASC,EAAOC,EAAUC,EAAcC,EAAYC,EAAS,CACzE,KAAM,CAAE,UAAAC,CAAS,EAAKL,EAChB,CAACM,EAAaC,CAAc,EAAIC,EAAQ,EACxCC,EAAcC,EAAqBT,EAAS,KAAMC,EAAcC,IAAe,IAAM,IAAQG,CAAW,EACxG,CAACK,EAAYC,CAAU,EAAIJ,EAASH,EAAYI,EAAc,MAAS,EAwB7E,MAPiB,CACb,cAJmBI,GACZ,GAAQJ,GAAA,MAAAA,EAAa,UAAUI,IAItC,WAAAD,EACA,QAASD,EACT,KApBS,IAAM,CACfJ,EAAeI,CAAU,EACzBC,EAAW,MAAS,CACxB,EAkBI,UAjBc,CAACE,EAAQC,IAAY,CACnC,GAAI,CAACJ,EACD,OACJ,MAAMK,EAAYC,EAAaH,EAAQC,EAASJ,EAAYV,EAAS,SAAUA,EAAS,OAAQD,EAAOI,CAAO,EACzGY,IAELf,EAAS,QAAQe,CAAS,EAC1BJ,EAAWI,CAAS,EACxB,CAUJ,CAEA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useFocus.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useFocus.js"],"sourcesContent":["import { useState } from \"react\";\nimport { calculateFocusTarget } from \"./helpers/calculateFocusTarget.js\";\nimport { getNextFocus } from \"./helpers/getNextFocus.js\";\n/**\n * Manages focus behavior for the DayPicker component, including setting,\n * moving, and blurring focus on calendar days.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param calendar - The calendar object containing the displayed days and\n * months.\n * @param getModifiers - A function to retrieve modifiers for a given day.\n * @param isSelected - A function to check if a date is selected.\n * @param dateLib - The date utility library instance.\n * @returns An object containing focus-related methods and the currently focused\n * day.\n */\nexport function useFocus(props, calendar, getModifiers, isSelected, dateLib) {\n const { autoFocus } = props;\n const [lastFocused, setLastFocused] = useState();\n const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);\n const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);\n const blur = () => {\n setLastFocused(focusedDay);\n setFocused(undefined);\n };\n const moveFocus = (moveBy, moveDir) => {\n if (!focusedDay)\n return;\n const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);\n if (!nextFocus)\n return;\n calendar.goToDay(nextFocus);\n setFocused(nextFocus);\n };\n const isFocusTarget = (day) => {\n return Boolean(focusTarget?.isEqualTo(day));\n };\n const useFocus = {\n isFocusTarget,\n setFocused,\n focused: focusedDay,\n blur,\n moveFocus\n };\n return useFocus;\n}\n//# sourceMappingURL=useFocus.js.map"],"names":["useFocus","props","calendar","getModifiers","isSelected","dateLib","autoFocus","lastFocused","setLastFocused","useState","focusTarget","calculateFocusTarget","focusedDay","setFocused","day","moveBy","moveDir","nextFocus","getNextFocus"],"mappings":"mKAiBO,SAASA,EAASC,EAAOC,EAAUC,EAAcC,EAAYC,EAAS,CACzE,KAAM,CAAE,UAAAC,CAAS,EAAKL,EAChB,CAACM,EAAaC,CAAc,EAAIC,EAAQ,EACxCC,EAAcC,EAAqBT,EAAS,KAAMC,EAAcC,IAAe,IAAM,IAAQG,CAAW,EACxG,CAACK,EAAYC,CAAU,EAAIJ,EAASH,EAAYI,EAAc,MAAS,EAwB7E,MAPiB,CACb,cAJmBI,GACZ,GAAQJ,GAAA,MAAAA,EAAa,UAAUI,IAItC,WAAAD,EACA,QAASD,EACT,KApBS,IAAM,CACfJ,EAAeI,CAAU,EACzBC,EAAW,MAAS,CACxB,EAkBI,UAjBc,CAACE,EAAQC,IAAY,CACnC,GAAI,CAACJ,EACD,OACJ,MAAMK,EAAYC,EAAaH,EAAQC,EAASJ,EAAYV,EAAS,SAAUA,EAAS,OAAQD,EAAOI,CAAO,EACzGY,IAELf,EAAS,QAAQe,CAAS,EAC1BJ,EAAWI,CAAS,EACxB,CAUJ,CAEA","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useSelection.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange"],"mappings":"2JAaO,SAASA,EAAaC,EAAOC,EAAS,CACzC,MAAMC,EAASC,EAAUH,EAAOC,CAAO,EACjCG,EAAQC,EAASL,EAAOC,CAAO,EAC/BK,EAAQC,EAASP,EAAOC,CAAO,EACrC,OAAQD,EAAM,KAAI,CACd,IAAK,SACD,OAAOE,EACX,IAAK,WACD,OAAOE,EACX,IAAK,QACD,OAAOE,EACX,QACI,MACZ,CACA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useSelection.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useSelection.js"],"sourcesContent":["import { useMulti } from \"./selection/useMulti.js\";\nimport { useRange } from \"./selection/useRange.js\";\nimport { useSingle } from \"./selection/useSingle.js\";\n/**\n * Determines the appropriate selection hook to use based on the selection mode\n * and returns the corresponding selection object.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns The selection object for the specified mode, or `undefined` if no\n * mode is set.\n */\nexport function useSelection(props, dateLib) {\n const single = useSingle(props, dateLib);\n const multi = useMulti(props, dateLib);\n const range = useRange(props, dateLib);\n switch (props.mode) {\n case \"single\":\n return single;\n case \"multiple\":\n return multi;\n case \"range\":\n return range;\n default:\n return undefined;\n }\n}\n//# sourceMappingURL=useSelection.js.map"],"names":["useSelection","props","dateLib","single","useSingle","multi","useMulti","range","useRange"],"mappings":"2JAaO,SAASA,EAAaC,EAAOC,EAAS,CACzC,MAAMC,EAASC,EAAUH,EAAOC,CAAO,EACjCG,EAAQC,EAASL,EAAOC,CAAO,EAC/BK,EAAQC,EAASP,EAAOC,CAAO,EACrC,OAAQD,EAAM,KAAI,CACd,IAAK,SACD,OAAOE,EACX,IAAK,WACD,OAAOE,EACX,IAAK,QACD,OAAOE,EACX,QACI,MACZ,CACA","x_google_ignoreList":[0]}
@@ -1,2 +1,2 @@
1
- import{defaultDateLib as p}from"../classes/DateLib.js";function y(o,D,s=0,l=0,r=!1,u=p){const{from:e,to:i}=D||{},{isSameDay:n,isAfter:m,isBefore:c}=u;let f;if(!e&&!i)f={from:o,to:s>0?void 0:o};else if(e&&!i)n(e,o)?s===0?f={from:e,to:o}:r?f={from:e,to:void 0}:f=void 0:c(o,e)?f={from:o,to:e}:f={from:e,to:o};else if(e&&i)if(n(e,o)&&n(i,o))r?f={from:e,to:i}:f=void 0;else if(n(e,o))f={from:e,to:s>0?void 0:o};else if(n(i,o))f={from:o,to:s>0?void 0:o};else if(c(o,e))f={from:o,to:i};else if(m(o,e))f={from:e,to:o};else if(m(o,i))f={from:e,to:o};else throw new Error("Invalid range");if(f!=null&&f.from&&(f!=null&&f.to)){const t=u.differenceInCalendarDays(f.to,f.from);l>0&&t>l?f={from:o,to:void 0}:s>1&&t<s&&(f={from:o,to:void 0})}return f}export{y as addToRange};
1
+ import{defaultDateLib as p}from"../classes/DateLib.js";function y(o,D,n=0,l=0,r=!1,u=p){const{from:e,to:i}=D||{},{isSameDay:s,isAfter:m,isBefore:c}=u;let f;if(!e&&!i)f={from:o,to:n>0?void 0:o};else if(e&&!i)s(e,o)?r?f={from:e,to:void 0}:f=void 0:c(o,e)?f={from:o,to:e}:f={from:e,to:o};else if(e&&i)if(s(e,o)&&s(i,o))r?f={from:e,to:i}:f=void 0;else if(s(e,o))f={from:e,to:n>0?void 0:o};else if(s(i,o))f={from:o,to:n>0?void 0:o};else if(c(o,e))f={from:o,to:i};else if(m(o,e))f={from:e,to:o};else if(m(o,i))f={from:e,to:o};else throw new Error("Invalid range");if(f!=null&&f.from&&(f!=null&&f.to)){const t=u.differenceInCalendarDays(f.to,f.from);l>0&&t>l?f={from:o,to:void 0}:n>1&&t<n&&(f={from:o,to:void 0})}return f}export{y as addToRange};
2
2
  //# sourceMappingURL=addToRange.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"addToRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (min === 0) {\n range = { from, to: date };\n }\n else if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","diff"],"mappings":"uDAcO,SAASA,EAAWC,EAAMC,EAAcC,EAAM,EAAGC,EAAM,EAAGC,EAAW,GAAOC,EAAUC,EAAgB,CACzG,KAAM,CAAE,KAAAC,EAAM,GAAAC,CAAE,EAAKP,GAAgB,CAAA,EAC/B,CAAE,UAAAQ,EAAW,QAAAC,EAAS,SAAAC,CAAQ,EAAKN,EACzC,IAAIO,EACJ,GAAI,CAACL,GAAQ,CAACC,EAEVI,EAAQ,CAAE,KAAMZ,EAAM,GAAIE,EAAM,EAAI,OAAYF,CAAI,UAE/CO,GAAQ,CAACC,EAEVC,EAAUF,EAAMP,CAAI,EAEhBE,IAAQ,EACRU,EAAQ,CAAE,KAAAL,EAAM,GAAIP,CAAI,EAEnBI,EACLQ,EAAQ,CAAE,KAAAL,EAAM,GAAI,MAAS,EAG7BK,EAAQ,OAGPD,EAASX,EAAMO,CAAI,EAExBK,EAAQ,CAAE,KAAMZ,EAAM,GAAIO,CAAI,EAI9BK,EAAQ,CAAE,KAAAL,EAAM,GAAIP,CAAI,UAGvBO,GAAQC,EAEb,GAAIC,EAAUF,EAAMP,CAAI,GAAKS,EAAUD,EAAIR,CAAI,EAEvCI,EACAQ,EAAQ,CAAE,KAAAL,EAAM,GAAAC,CAAE,EAGlBI,EAAQ,eAGPH,EAAUF,EAAMP,CAAI,EAEzBY,EAAQ,CAAE,KAAAL,EAAM,GAAIL,EAAM,EAAI,OAAYF,CAAI,UAEzCS,EAAUD,EAAIR,CAAI,EAEvBY,EAAQ,CAAE,KAAMZ,EAAM,GAAIE,EAAM,EAAI,OAAYF,CAAI,UAE/CW,EAASX,EAAMO,CAAI,EAExBK,EAAQ,CAAE,KAAMZ,EAAM,GAAIQ,CAAE,UAEvBE,EAAQV,EAAMO,CAAI,EAEvBK,EAAQ,CAAE,KAAAL,EAAM,GAAIP,CAAI,UAEnBU,EAAQV,EAAMQ,CAAE,EAErBI,EAAQ,CAAE,KAAAL,EAAM,GAAIP,CAAI,MAGxB,OAAM,IAAI,MAAM,eAAe,EAIvC,GAAIY,GAAA,MAAAA,EAAO,OAAQA,GAAA,MAAAA,EAAO,IAAI,CAC1B,MAAMC,EAAOR,EAAQ,yBAAyBO,EAAM,GAAIA,EAAM,IAAI,EAC9DT,EAAM,GAAKU,EAAOV,EAClBS,EAAQ,CAAE,KAAMZ,EAAM,GAAI,MAAS,EAE9BE,EAAM,GAAKW,EAAOX,IACvBU,EAAQ,CAAE,KAAMZ,EAAM,GAAI,MAAS,EAE3C,CACA,OAAOY,CACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"addToRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n//# sourceMappingURL=addToRange.js.map"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","diff"],"mappings":"uDAcO,SAASA,EAAWC,EAAMC,EAAcC,EAAM,EAAGC,EAAM,EAAGC,EAAW,GAAOC,EAAUC,EAAgB,CACzG,KAAM,CAAE,KAAAC,EAAM,GAAAC,CAAE,EAAKP,GAAgB,CAAA,EAC/B,CAAE,UAAAQ,EAAW,QAAAC,EAAS,SAAAC,CAAQ,EAAKN,EACzC,IAAIO,EACJ,GAAI,CAACL,GAAQ,CAACC,EAEVI,EAAQ,CAAE,KAAMZ,EAAM,GAAIE,EAAM,EAAI,OAAYF,CAAI,UAE/CO,GAAQ,CAACC,EAEVC,EAAUF,EAAMP,CAAI,EAEhBI,EACAQ,EAAQ,CAAE,KAAAL,EAAM,GAAI,MAAS,EAG7BK,EAAQ,OAGPD,EAASX,EAAMO,CAAI,EAExBK,EAAQ,CAAE,KAAMZ,EAAM,GAAIO,CAAI,EAI9BK,EAAQ,CAAE,KAAAL,EAAM,GAAIP,CAAI,UAGvBO,GAAQC,EAEb,GAAIC,EAAUF,EAAMP,CAAI,GAAKS,EAAUD,EAAIR,CAAI,EAEvCI,EACAQ,EAAQ,CAAE,KAAAL,EAAM,GAAAC,CAAE,EAGlBI,EAAQ,eAGPH,EAAUF,EAAMP,CAAI,EAEzBY,EAAQ,CAAE,KAAAL,EAAM,GAAIL,EAAM,EAAI,OAAYF,CAAI,UAEzCS,EAAUD,EAAIR,CAAI,EAEvBY,EAAQ,CAAE,KAAMZ,EAAM,GAAIE,EAAM,EAAI,OAAYF,CAAI,UAE/CW,EAASX,EAAMO,CAAI,EAExBK,EAAQ,CAAE,KAAMZ,EAAM,GAAIQ,CAAE,UAEvBE,EAAQV,EAAMO,CAAI,EAEvBK,EAAQ,CAAE,KAAAL,EAAM,GAAIP,CAAI,UAEnBU,EAAQV,EAAMQ,CAAE,EAErBI,EAAQ,CAAE,KAAAL,EAAM,GAAIP,CAAI,MAGxB,OAAM,IAAI,MAAM,eAAe,EAIvC,GAAIY,GAAA,MAAAA,EAAO,OAAQA,GAAA,MAAAA,EAAO,IAAI,CAC1B,MAAMC,EAAOR,EAAQ,yBAAyBO,EAAM,GAAIA,EAAM,IAAI,EAC9DT,EAAM,GAAKU,EAAOV,EAClBS,EAAQ,CAAE,KAAMZ,EAAM,GAAI,MAAS,EAE9BE,EAAM,GAAKW,EAAOX,IACvBU,EAAQ,CAAE,KAAMZ,EAAM,GAAI,MAAS,EAE3C,CACA,OAAOY,CACX","x_google_ignoreList":[0]}