pixel-react 1.13.89 → 1.13.90

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 (280) hide show
  1. package/README.md +75 -75
  2. package/lib/_virtual/_commonjsHelpers.js +26 -1
  3. package/lib/_virtual/_commonjsHelpers.js.map +1 -1
  4. package/lib/_virtual/immutable.es.js +7 -0
  5. package/lib/_virtual/immutable.es.js.map +1 -0
  6. package/lib/_virtual/index10.js +2 -2
  7. package/lib/_virtual/index11.js +2 -2
  8. package/lib/_virtual/index14.js +4 -0
  9. package/lib/_virtual/index14.js.map +1 -0
  10. package/lib/_virtual/react-is.development2.js +4 -0
  11. package/lib/_virtual/react-is.development2.js.map +1 -0
  12. package/lib/_virtual/react-is.production.min2.js +4 -0
  13. package/lib/_virtual/react-is.production.min2.js.map +1 -0
  14. package/lib/assets/icons/spinner.svg.js +1 -1
  15. package/lib/assets/icons/spinner.svg.js.map +1 -1
  16. package/lib/components/DatePicker/DatePicker.js +4 -1
  17. package/lib/components/DatePicker/DatePicker.js.map +1 -1
  18. package/lib/components/Drawer/Drawer.js +2 -1
  19. package/lib/components/Drawer/Drawer.js.map +1 -1
  20. package/lib/components/Excel/ExcelFile/ExcelFile.d.ts +1 -0
  21. package/lib/components/Excel/ExcelFile/ExcelFile.js +4 -2
  22. package/lib/components/Excel/ExcelFile/ExcelFile.js.map +1 -1
  23. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +1 -0
  24. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js +4 -3
  25. package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.js.map +1 -1
  26. package/lib/index.cjs +7029 -2517
  27. package/lib/index.cjs.map +1 -1
  28. package/lib/index.d.ts +2 -2
  29. package/lib/node_modules/draft-js/lib/AtomicBlockUtils.js +1 -1
  30. package/lib/node_modules/draft-js/lib/BlockMapBuilder.js +1 -1
  31. package/lib/node_modules/draft-js/lib/BlockTree.js +1 -1
  32. package/lib/node_modules/draft-js/lib/CharacterMetadata.js +1 -1
  33. package/lib/node_modules/draft-js/lib/CompositeDraftDecorator.js +1 -1
  34. package/lib/node_modules/draft-js/lib/ContentBlock.js +1 -1
  35. package/lib/node_modules/draft-js/lib/ContentBlockNode.js +1 -1
  36. package/lib/node_modules/draft-js/lib/ContentState.js +1 -1
  37. package/lib/node_modules/draft-js/lib/ContentStateInlineStyle.js +1 -1
  38. package/lib/node_modules/draft-js/lib/DOMObserver.js +1 -1
  39. package/lib/node_modules/draft-js/lib/DefaultDraftBlockRenderMap.js +1 -1
  40. package/lib/node_modules/draft-js/lib/DraftEditorBlockNode.react.js +1 -1
  41. package/lib/node_modules/draft-js/lib/DraftEditorNode.react.js +1 -1
  42. package/lib/node_modules/draft-js/lib/DraftEntity.js +1 -1
  43. package/lib/node_modules/draft-js/lib/DraftEntityInstance.js +1 -1
  44. package/lib/node_modules/draft-js/lib/DraftModifier.js +1 -1
  45. package/lib/node_modules/draft-js/lib/DraftPasteProcessor.js +1 -1
  46. package/lib/node_modules/draft-js/lib/EditorBidiService.js +1 -1
  47. package/lib/node_modules/draft-js/lib/EditorState.js +1 -1
  48. package/lib/node_modules/draft-js/lib/SelectionState.js +1 -1
  49. package/lib/node_modules/draft-js/lib/applyEntityToContentState.js +1 -1
  50. package/lib/node_modules/draft-js/lib/convertFromHTMLToContentBlocks.js +1 -1
  51. package/lib/node_modules/draft-js/lib/convertFromRawToDraftState.js +1 -1
  52. package/lib/node_modules/draft-js/lib/createCharacterList.js +1 -1
  53. package/lib/node_modules/draft-js/lib/decodeInlineStyleRanges.js +1 -1
  54. package/lib/node_modules/draft-js/lib/insertFragmentIntoContentState.js +1 -1
  55. package/lib/node_modules/draft-js/lib/insertTextIntoContentState.js +1 -1
  56. package/lib/node_modules/draft-js/lib/modifyBlockForContentState.js +1 -1
  57. package/lib/node_modules/draft-js/lib/moveBlockInContentState.js +1 -1
  58. package/lib/node_modules/draft-js/lib/randomizeBlockMapKeys.js +1 -1
  59. package/lib/node_modules/draft-js/lib/removeRangeFromContentState.js +1 -1
  60. package/lib/node_modules/draft-js/lib/splitBlockInContentState.js +1 -1
  61. package/lib/node_modules/{immutable → draft-js/node_modules/immutable}/dist/immutable.js +1 -1
  62. package/lib/node_modules/draft-js/node_modules/immutable/dist/immutable.js.map +1 -0
  63. package/lib/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -1
  64. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js +175 -0
  65. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  66. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js +125 -0
  67. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  68. package/lib/node_modules/{react-is → hoist-non-react-statics/node_modules/react-is}/index.js +1 -1
  69. package/lib/node_modules/hoist-non-react-statics/node_modules/react-is/index.js.map +1 -0
  70. package/lib/node_modules/immutable/dist/immutable.es.js +4829 -0
  71. package/lib/node_modules/immutable/dist/immutable.es.js.map +1 -0
  72. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  73. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  74. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  75. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  76. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  77. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  78. package/lib/node_modules/libphonenumber-js/metadata.min.json.js +12 -12
  79. package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
  80. package/lib/node_modules/prop-types/factoryWithTypeCheckers.js +1 -1
  81. package/lib/node_modules/prop-types/index.js +1 -1
  82. package/lib/node_modules/{react-is → prop-types/node_modules/react-is}/cjs/react-is.development.js +1 -1
  83. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
  84. package/lib/node_modules/{react-is → prop-types/node_modules/react-is}/cjs/react-is.production.min.js +1 -1
  85. package/lib/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
  86. package/lib/node_modules/prop-types/node_modules/react-is/index.js +18 -0
  87. package/lib/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
  88. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +17 -112
  89. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
  90. package/lib/node_modules/react-day-picker/dist/esm/UI.js +9 -31
  91. package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
  92. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +6 -9
  93. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
  94. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +1 -6
  95. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
  96. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +1 -5
  97. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
  98. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +51 -55
  99. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
  100. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +1 -1
  101. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
  102. package/lib/node_modules/react-day-picker/dist/esm/components/Day.js +4 -4
  103. package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
  104. package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js +1 -1
  105. package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
  106. package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js +1 -1
  107. package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
  108. package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +1 -1
  109. package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
  110. package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js +1 -1
  111. package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
  112. package/lib/node_modules/react-day-picker/dist/esm/components/Month.js +1 -1
  113. package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
  114. package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +1 -1
  115. package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
  116. package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +1 -1
  117. package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
  118. package/lib/node_modules/react-day-picker/dist/esm/components/Months.js +1 -1
  119. package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
  120. package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +1 -1
  121. package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
  122. package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js +6 -16
  123. package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
  124. package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +1 -1
  125. package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
  126. package/lib/node_modules/react-day-picker/dist/esm/components/Option.js +1 -1
  127. package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
  128. package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +1 -1
  129. package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
  130. package/lib/node_modules/react-day-picker/dist/esm/components/Root.js +2 -7
  131. package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
  132. package/lib/node_modules/react-day-picker/dist/esm/components/Select.js +1 -1
  133. package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
  134. package/lib/node_modules/react-day-picker/dist/esm/components/Week.js +1 -1
  135. package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
  136. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +1 -1
  137. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
  138. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +1 -1
  139. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
  140. package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js +1 -1
  141. package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
  142. package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js +1 -1
  143. package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
  144. package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js +1 -1
  145. package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
  146. package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +1 -1
  147. package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
  148. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +2 -7
  149. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
  150. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +2 -7
  151. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
  152. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +2 -6
  153. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
  154. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +5 -11
  155. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
  156. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +2 -3
  157. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
  158. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +2 -7
  159. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
  160. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +1 -5
  161. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
  162. package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +19 -46
  163. package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
  164. package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +1 -7
  165. package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
  166. package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +1 -8
  167. package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
  168. package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -12
  169. package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
  170. package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
  171. package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
  172. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +2 -11
  173. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
  174. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js +2 -13
  175. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
  176. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +1 -4
  177. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
  178. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +2 -9
  179. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
  180. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -10
  181. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
  182. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +2 -17
  183. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
  184. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +1 -7
  185. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
  186. package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +3 -13
  187. package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
  188. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +1 -15
  189. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -1
  190. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +8 -17
  191. package/lib/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -1
  192. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +1 -7
  193. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
  194. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +7 -20
  195. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
  196. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +6 -13
  197. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
  198. package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +5 -13
  199. package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
  200. package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -11
  201. package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
  202. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +6 -9
  203. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
  204. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +1 -6
  205. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
  206. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +1 -13
  207. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
  208. package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +1 -8
  209. package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
  210. package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +6 -10
  211. package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
  212. package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +5 -9
  213. package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
  214. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +3 -7
  215. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
  216. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +3 -7
  217. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
  218. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +1 -3
  219. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
  220. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js +1 -2
  221. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
  222. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +3 -5
  223. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
  224. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +3 -5
  225. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
  226. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +1 -4
  227. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
  228. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +1 -3
  229. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
  230. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +1 -5
  231. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
  232. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +1 -3
  233. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
  234. package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -9
  235. package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
  236. package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js +2 -10
  237. package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
  238. package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -9
  239. package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
  240. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +1 -9
  241. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
  242. package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js +6 -4
  243. package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
  244. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +1 -14
  245. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
  246. package/lib/node_modules/react-day-picker/dist/esm/{helpers/createGetModifiers.js → useGetModifiers.js} +7 -13
  247. package/lib/node_modules/react-day-picker/dist/esm/useGetModifiers.js.map +1 -0
  248. package/lib/node_modules/react-day-picker/dist/esm/useSelection.js +0 -10
  249. package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
  250. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +8 -10
  251. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
  252. package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +15 -5
  253. package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
  254. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +9 -7
  255. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
  256. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +14 -5
  257. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
  258. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +3 -7
  259. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
  260. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +2 -6
  261. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
  262. package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js +6 -19
  263. package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
  264. package/lib/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js +2 -2
  265. package/lib/node_modules/react-draft-wysiwyg/dist/react-draft-wysiwyg.js.map +1 -1
  266. package/lib/node_modules/react-hook-form/dist/index.esm.js +1609 -1661
  267. package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  268. package/lib/node_modules/webrtc-adapter/src/js/common_shim.js +1 -1
  269. package/lib/node_modules/webrtc-adapter/src/js/common_shim.js.map +1 -1
  270. package/lib/node_modules/webrtc-adapter/src/js/utils.js +4 -6
  271. package/lib/node_modules/webrtc-adapter/src/js/utils.js.map +1 -1
  272. package/lib/tsconfig.tsbuildinfo +1 -1
  273. package/package.json +107 -107
  274. package/lib/node_modules/immutable/dist/immutable.js.map +0 -1
  275. package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +0 -1
  276. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -158
  277. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +0 -1
  278. package/lib/node_modules/react-is/cjs/react-is.development.js.map +0 -1
  279. package/lib/node_modules/react-is/cjs/react-is.production.min.js.map +0 -1
  280. package/lib/node_modules/react-is/index.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"getDates.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["/**\n * Returns all the dates to display in the calendar.\n *\n * This function calculates the range of dates to display based on the provided\n * display months, constraints, and calendar configuration.\n *\n * @param displayMonths The months to display in the calendar.\n * @param maxDate The maximum date to include in the range.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates to display in the calendar.\n */\nexport function getDates(displayMonths, maxDate, props, dateLib) {\n const firstMonth = displayMonths[0];\n const lastMonth = displayMonths[displayMonths.length - 1];\n const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};\n const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const startWeekFirstDate = broadcastCalendar\n ? startOfBroadcastWeek(firstMonth, dateLib)\n : ISOWeek\n ? startOfISOWeek(firstMonth)\n : startOfWeek(firstMonth);\n const endWeekLastDate = broadcastCalendar\n ? endOfBroadcastWeek(lastMonth)\n : ISOWeek\n ? endOfISOWeek(endOfMonth(lastMonth))\n : endOfWeek(endOfMonth(lastMonth));\n const nOfDays = differenceInCalendarDays(endWeekLastDate, startWeekFirstDate);\n const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;\n const dates = [];\n for (let i = 0; i <= nOfDays; i++) {\n const date = addDays(startWeekFirstDate, i);\n if (maxDate && isAfter(date, maxDate)) {\n break;\n }\n dates.push(date);\n }\n // If fixed weeks is enabled, add the extra dates to the array\n const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;\n const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;\n if (fixedWeeks && dates.length < extraDates) {\n const daysToAdd = extraDates - dates.length;\n for (let i = 0; i < daysToAdd; i++) {\n const date = addDays(dates[dates.length - 1], 1);\n dates.push(date);\n }\n }\n return dates;\n}\n//# sourceMappingURL=getDates.js.map"],"names":["getDates","displayMonths","maxDate","props","dateLib","firstMonth","lastMonth","length","ISOWeek","fixedWeeks","broadcastCalendar","addDays","differenceInCalendarDays","differenceInCalendarMonths","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","isAfter","startOfBroadcastWeek","startOfISOWeek","startOfWeek","startWeekFirstDate","endWeekLastDate","nOfDays","nOfMonths","dates","i","date","push","nrOfDaysWithFixedWeeks","extraDates","daysToAdd"],"mappings":"AAGA;;;;;;;;;;;;AAYM,SAAUA,QAAQA,CACtBC,aAAqB,EACrBC,OAAyB,EACzBC,KAA2E,EAC3EC,OAAgB,EAAA;AAEhB,EAAA,MAAMC,UAAU,GAAGJ,aAAa,CAAC,CAAC,CAAC;EACnC,MAAMK,SAAS,GAAGL,aAAa,CAACA,aAAa,CAACM,MAAM,GAAG,CAAC,CAAC;EAEzD,MAAM;IAAEC,OAAO;IAAEC,UAAU;AAAEC,IAAAA;GAAmB,GAAGP,KAAK,IAAI,EAAE;EAC9D,MAAM;IACJQ,OAAO;IACPC,wBAAwB;IACxBC,0BAA0B;IAC1BC,kBAAkB;IAClBC,YAAY;IACZC,UAAU;IACVC,SAAS;IACTC,OAAO;IACPC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGjB,OAAO;EAEX,MAAMkB,kBAAkB,GAAGZ,iBAAiB,GACxCS,oBAAoB,CAACd,UAAU,EAAED,OAAO,CAAC,GACzCI,OAAO,GACLY,cAAc,CAACf,UAAU,CAAC,GAC1BgB,WAAW,CAAChB,UAAU,CAAC;EAE7B,MAAMkB,eAAe,GAAGb,iBAAiB,GACrCI,kBAAkB,CAACR,SAAS,CAAC,GAC7BE,OAAO,GACLO,YAAY,CAACC,UAAU,CAACV,SAAS,CAAC,CAAC,GACnCW,SAAS,CAACD,UAAU,CAACV,SAAS,CAAC,CAAC;AAEtC,EAAA,MAAMkB,OAAO,GAAGZ,wBAAwB,CAACW,eAAe,EAAED,kBAAkB,CAAC;EAC7E,MAAMG,SAAS,GAAGZ,0BAA0B,CAACP,SAAS,EAAED,UAAU,CAAC,GAAG,CAAC;EAEvE,MAAMqB,KAAK,GAAW,EAAE;EACxB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAIH,OAAO,EAAEG,CAAC,EAAE,EAAE;AACjC,IAAA,MAAMC,IAAI,GAAGjB,OAAO,CAACW,kBAAkB,EAAEK,CAAC,CAAC;IAC3C,IAAIzB,OAAO,IAAIgB,OAAO,CAACU,IAAI,EAAE1B,OAAO,CAAC,EAAE;AACrC,MAAA;AACF;AACAwB,IAAAA,KAAK,CAACG,IAAI,CAACD,IAAI,CAAC;AAClB;AAEA;AACA,EAAA,MAAME,sBAAsB,GAAGpB,iBAAiB,GAAG,EAAE,GAAG,EAAE;AAC1D,EAAA,MAAMqB,UAAU,GAAGD,sBAAsB,GAAGL,SAAS;AACrD,EAAA,IAAIhB,UAAU,IAAIiB,KAAK,CAACnB,MAAM,GAAGwB,UAAU,EAAE;AAC3C,IAAA,MAAMC,SAAS,GAAGD,UAAU,GAAGL,KAAK,CAACnB,MAAM;IAC3C,KAAK,IAAIoB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGK,SAAS,EAAEL,CAAC,EAAE,EAAE;AAClC,MAAA,MAAMC,IAAI,GAAGjB,OAAO,CAACe,KAAK,CAACA,KAAK,CAACnB,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAChDmB,MAAAA,KAAK,CAACG,IAAI,CAACD,IAAI,CAAC;AAClB;AACF;AACA,EAAA,OAAOF,KAAK;AACd;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getDates.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDates.js"],"sourcesContent":["/** Return all the dates to display in the calendar. */\nexport function getDates(displayMonths, maxDate, props, dateLib) {\n const firstMonth = displayMonths[0];\n const lastMonth = displayMonths[displayMonths.length - 1];\n const { ISOWeek, fixedWeeks, broadcastCalendar } = props ?? {};\n const { addDays, differenceInCalendarDays, differenceInCalendarMonths, endOfBroadcastWeek, endOfISOWeek, endOfMonth, endOfWeek, isAfter, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const startWeekFirstDate = broadcastCalendar\n ? startOfBroadcastWeek(firstMonth, dateLib)\n : ISOWeek\n ? startOfISOWeek(firstMonth)\n : startOfWeek(firstMonth);\n const endWeekLastDate = broadcastCalendar\n ? endOfBroadcastWeek(lastMonth, dateLib)\n : ISOWeek\n ? endOfISOWeek(endOfMonth(lastMonth))\n : endOfWeek(endOfMonth(lastMonth));\n const nOfDays = differenceInCalendarDays(endWeekLastDate, startWeekFirstDate);\n const nOfMonths = differenceInCalendarMonths(lastMonth, firstMonth) + 1;\n const dates = [];\n for (let i = 0; i <= nOfDays; i++) {\n const date = addDays(startWeekFirstDate, i);\n if (maxDate && isAfter(date, maxDate)) {\n break;\n }\n dates.push(date);\n }\n // If fixed weeks is enabled, add the extra dates to the array\n const nrOfDaysWithFixedWeeks = broadcastCalendar ? 35 : 42;\n const extraDates = nrOfDaysWithFixedWeeks * nOfMonths;\n if (fixedWeeks && dates.length < extraDates) {\n const daysToAdd = extraDates - dates.length;\n for (let i = 0; i < daysToAdd; i++) {\n const date = addDays(dates[dates.length - 1], 1);\n dates.push(date);\n }\n }\n return dates;\n}\n//# sourceMappingURL=getDates.js.map"],"names":["getDates","displayMonths","maxDate","props","dateLib","firstMonth","lastMonth","length","ISOWeek","fixedWeeks","broadcastCalendar","addDays","differenceInCalendarDays","differenceInCalendarMonths","endOfBroadcastWeek","endOfISOWeek","endOfMonth","endOfWeek","isAfter","startOfBroadcastWeek","startOfISOWeek","startOfWeek","startWeekFirstDate","endWeekLastDate","nOfDays","nOfMonths","dates","i","date","push","nrOfDaysWithFixedWeeks","extraDates","daysToAdd"],"mappings":"AAGA;AACM,SAAUA,QAAQA,CACtBC,aAAqB,EACrBC,OAAyB,EACzBC,KAA2E,EAC3EC,OAAgB,EAAA;AAEhB,EAAA,MAAMC,UAAU,GAAGJ,aAAa,CAAC,CAAC,CAAC;EACnC,MAAMK,SAAS,GAAGL,aAAa,CAACA,aAAa,CAACM,MAAM,GAAG,CAAC,CAAC;EAEzD,MAAM;IAAEC,OAAO;IAAEC,UAAU;AAAEC,IAAAA;GAAmB,GAAGP,KAAK,IAAI,EAAE;EAC9D,MAAM;IACJQ,OAAO;IACPC,wBAAwB;IACxBC,0BAA0B;IAC1BC,kBAAkB;IAClBC,YAAY;IACZC,UAAU;IACVC,SAAS;IACTC,OAAO;IACPC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGjB,OAAO;EAEX,MAAMkB,kBAAkB,GAAGZ,iBAAiB,GACxCS,oBAAoB,CAACd,UAAU,EAAED,OAAO,CAAC,GACzCI,OAAO,GACLY,cAAc,CAACf,UAAU,CAAC,GAC1BgB,WAAW,CAAChB,UAAU,CAAC;EAE7B,MAAMkB,eAAe,GAAGb,iBAAiB,GACrCI,kBAAkB,CAACR,SAAS,EAAEF,OAAO,CAAC,GACtCI,OAAO,GACLO,YAAY,CAACC,UAAU,CAACV,SAAS,CAAC,CAAC,GACnCW,SAAS,CAACD,UAAU,CAACV,SAAS,CAAC,CAAC;AAEtC,EAAA,MAAMkB,OAAO,GAAGZ,wBAAwB,CAACW,eAAe,EAAED,kBAAkB,CAAC;EAC7E,MAAMG,SAAS,GAAGZ,0BAA0B,CAACP,SAAS,EAAED,UAAU,CAAC,GAAG,CAAC;EAEvE,MAAMqB,KAAK,GAAW,EAAE;EACxB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,IAAIH,OAAO,EAAEG,CAAC,EAAE,EAAE;AACjC,IAAA,MAAMC,IAAI,GAAGjB,OAAO,CAACW,kBAAkB,EAAEK,CAAC,CAAC;IAC3C,IAAIzB,OAAO,IAAIgB,OAAO,CAACU,IAAI,EAAE1B,OAAO,CAAC,EAAE;AACrC,MAAA;AACF;AACAwB,IAAAA,KAAK,CAACG,IAAI,CAACD,IAAI,CAAC;AAClB;AAEA;AACA,EAAA,MAAME,sBAAsB,GAAGpB,iBAAiB,GAAG,EAAE,GAAG,EAAE;AAC1D,EAAA,MAAMqB,UAAU,GAAGD,sBAAsB,GAAGL,SAAS;AACrD,EAAA,IAAIhB,UAAU,IAAIiB,KAAK,CAACnB,MAAM,GAAGwB,UAAU,EAAE;AAC3C,IAAA,MAAMC,SAAS,GAAGD,UAAU,GAAGL,KAAK,CAACnB,MAAM;IAC3C,KAAK,IAAIoB,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGK,SAAS,EAAEL,CAAC,EAAE,EAAE;AAClC,MAAA,MAAMC,IAAI,GAAGjB,OAAO,CAACe,KAAK,CAACA,KAAK,CAACnB,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC;AAChDmB,MAAAA,KAAK,CAACG,IAAI,CAACD,IAAI,CAAC;AAClB;AACF;AACA,EAAA,OAAOF,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -1,14 +1,11 @@
1
1
  /**
2
2
  * Returns all the days belonging to the calendar by merging the days in the
3
3
  * weeks for each month.
4
- *
5
- * @param calendarMonths The array of calendar months.
6
- * @returns An array of `CalendarDay` objects representing all the days in the
7
- * calendar.
8
4
  */
9
5
  function getDays(calendarMonths) {
10
6
  const initialDays = [];
11
7
  return calendarMonths.reduce((days, month) => {
8
+ const initialDays = [];
12
9
  const weekDays = month.weeks.reduce((weekDays, week) => {
13
10
  return [...weekDays, ...week.days];
14
11
  }, initialDays);
@@ -1 +1 @@
1
- {"version":3,"file":"getDays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n *\n * @param calendarMonths The array of calendar months.\n * @returns An array of `CalendarDay` objects representing all the days in the\n * calendar.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return [...weekDays, ...week.days];\n }, initialDays);\n return [...days, ...weekDays];\n }, initialDays);\n}\n//# sourceMappingURL=getDays.js.map"],"names":["getDays","calendarMonths","initialDays","reduce","days","month","weekDays","weeks","week"],"mappings":"AAEA;;;;;;;;AAQM,SAAUA,OAAOA,CAACC,cAA+B,EAAA;EACrD,MAAMC,WAAW,GAAkB,EAAE;EACrC,OAAOD,cAAc,CAACE,MAAM,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAI;AAC3C,IAAA,MAAMC,QAAQ,GAAkBD,KAAK,CAACE,KAAK,CAACJ,MAAM,CAAC,CAACG,QAAQ,EAAEE,IAAI,KAAI;MACpE,OAAO,CAAC,GAAGF,QAAQ,EAAE,GAAGE,IAAI,CAACJ,IAAI,CAAC;KACnC,EAAEF,WAAW,CAAC;AACf,IAAA,OAAO,CAAC,GAAGE,IAAI,EAAE,GAAGE,QAAQ,CAAC;GAC9B,EAAEJ,WAAW,CAAC;AACjB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getDays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDays.js"],"sourcesContent":["/**\n * Returns all the days belonging to the calendar by merging the days in the\n * weeks for each month.\n */\nexport function getDays(calendarMonths) {\n const initialDays = [];\n return calendarMonths.reduce((days, month) => {\n const initialDays = [];\n const weekDays = month.weeks.reduce((weekDays, week) => {\n return [...weekDays, ...week.days];\n }, initialDays);\n return [...days, ...weekDays];\n }, initialDays);\n}\n//# sourceMappingURL=getDays.js.map"],"names":["getDays","calendarMonths","initialDays","reduce","days","month","weekDays","weeks","week"],"mappings":"AAEA;;;;AAIM,SAAUA,OAAOA,CAACC,cAA+B,EAAA;EACrD,MAAMC,WAAW,GAAkB,EAAE;EACrC,OAAOD,cAAc,CAACE,MAAM,CAAC,CAACC,IAAI,EAAEC,KAAK,KAAI;IAC3C,MAAMH,WAAW,GAAkB,EAAE;AACrC,IAAA,MAAMI,QAAQ,GAAkBD,KAAK,CAACE,KAAK,CAACJ,MAAM,CAAC,CAACG,QAAQ,EAAEE,IAAI,KAAI;MACpE,OAAO,CAAC,GAAGF,QAAQ,EAAE,GAAGE,IAAI,CAACJ,IAAI,CAAC;KACnC,EAAEF,WAAW,CAAC;AACf,IAAA,OAAO,CAAC,GAAGE,IAAI,EAAE,GAAGE,QAAQ,CAAC;GAC9B,EAAEJ,WAAW,CAAC;AACjB;;;;","x_google_ignoreList":[0]}
@@ -1,12 +1,8 @@
1
- import { UI, DayFlag, SelectionState, Animation } from '../UI.js';
1
+ import { UI, DayFlag, SelectionState } from '../UI.js';
2
2
 
3
3
  /**
4
- * Returns the default class names for the UI elements.
4
+ * Get the default class names for the UI elements.
5
5
  *
6
- * This function generates a mapping of default class names for various UI
7
- * elements, day flags, selection states, and animations.
8
- *
9
- * @returns An object containing the default class names.
10
6
  * @group Utilities
11
7
  */
12
8
  function getDefaultClassNames() {
@@ -20,9 +16,6 @@ function getDefaultClassNames() {
20
16
  for (const key in SelectionState) {
21
17
  classNames[SelectionState[key]] = `rdp-${SelectionState[key]}`;
22
18
  }
23
- for (const key in Animation) {
24
- classNames[Animation[key]] = `rdp-${Animation[key]}`;
25
- }
26
19
  return classNames;
27
20
  }
28
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"getDefaultClassNames.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js"],"sourcesContent":["import { UI, DayFlag, SelectionState, Animation } from \"../UI.js\";\n/**\n * Returns the default class names for the UI elements.\n *\n * This function generates a mapping of default class names for various UI\n * elements, day flags, selection states, and animations.\n *\n * @returns An object containing the default class names.\n * @group Utilities\n */\nexport function getDefaultClassNames() {\n const classNames = {};\n for (const key in UI) {\n classNames[UI[key]] =\n `rdp-${UI[key]}`;\n }\n for (const key in DayFlag) {\n classNames[DayFlag[key]] =\n `rdp-${DayFlag[key]}`;\n }\n for (const key in SelectionState) {\n classNames[SelectionState[key]] =\n `rdp-${SelectionState[key]}`;\n }\n for (const key in Animation) {\n classNames[Animation[key]] =\n `rdp-${Animation[key]}`;\n }\n return classNames;\n}\n//# sourceMappingURL=getDefaultClassNames.js.map"],"names":["getDefaultClassNames","classNames","key","UI","DayFlag","SelectionState","Animation"],"mappings":";;AAGA;;;;;;;;;AASM,SAAUA,oBAAoBA,GAAA;EAClC,MAAMC,UAAU,GAAkC,EAAE;AAEpD,EAAA,KAAK,MAAMC,GAAG,IAAIC,EAAE,EAAE;AACpBF,IAAAA,UAAU,CAACE,EAAE,CAACD,GAAsB,CAAC,CAAC,GACpC,CAAA,IAAA,EAAOC,EAAE,CAACD,GAAsB,CAAC,CAAE,CAAA;AACvC;AAEA,EAAA,KAAK,MAAMA,GAAG,IAAIE,OAAO,EAAE;AACzBH,IAAAA,UAAU,CAACG,OAAO,CAACF,GAA2B,CAAC,CAAC,GAC9C,CAAA,IAAA,EAAOE,OAAO,CAACF,GAA2B,CAAC,CAAE,CAAA;AACjD;AAEA,EAAA,KAAK,MAAMA,GAAG,IAAIG,cAAc,EAAE;AAChCJ,IAAAA,UAAU,CAACI,cAAc,CAACH,GAAkC,CAAC,CAAC,GAC5D,CAAA,IAAA,EAAOG,cAAc,CAACH,GAAkC,CAAC,CAAE,CAAA;AAC/D;AAEA,EAAA,KAAK,MAAMA,GAAG,IAAII,SAAS,EAAE;AAC3BL,IAAAA,UAAU,CAACK,SAAS,CAACJ,GAA6B,CAAC,CAAC,GAClD,CAAA,IAAA,EAAOI,SAAS,CAACJ,GAA6B,CAAC,CAAE,CAAA;AACrD;AAEA,EAAA,OAAOD,UAAkC;AAC3C;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getDefaultClassNames.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js"],"sourcesContent":["import { UI, DayFlag, SelectionState } from \"../UI.js\";\n/**\n * Get the default class names for the UI elements.\n *\n * @group Utilities\n */\nexport function getDefaultClassNames() {\n const classNames = {};\n for (const key in UI) {\n classNames[UI[key]] =\n `rdp-${UI[key]}`;\n }\n for (const key in DayFlag) {\n classNames[DayFlag[key]] =\n `rdp-${DayFlag[key]}`;\n }\n for (const key in SelectionState) {\n classNames[SelectionState[key]] =\n `rdp-${SelectionState[key]}`;\n }\n return classNames;\n}\n//# sourceMappingURL=getDefaultClassNames.js.map"],"names":["getDefaultClassNames","classNames","key","UI","DayFlag","SelectionState"],"mappings":";;AAGA;;;;;AAKM,SAAUA,oBAAoBA,GAAA;EAClC,MAAMC,UAAU,GAAkC,EAAE;AAEpD,EAAA,KAAK,MAAMC,GAAG,IAAIC,EAAE,EAAE;AACpBF,IAAAA,UAAU,CAACE,EAAE,CAACD,GAAsB,CAAC,CAAC,GACpC,CAAA,IAAA,EAAOC,EAAE,CAACD,GAAsB,CAAC,CAAE,CAAA;AACvC;AAEA,EAAA,KAAK,MAAMA,GAAG,IAAIE,OAAO,EAAE;AACzBH,IAAAA,UAAU,CAACG,OAAO,CAACF,GAA2B,CAAC,CAAC,GAC9C,CAAA,IAAA,EAAOE,OAAO,CAACF,GAA2B,CAAC,CAAE,CAAA;AACjD;AAEA,EAAA,KAAK,MAAMA,GAAG,IAAIG,cAAc,EAAE;AAChCJ,IAAAA,UAAU,CAACI,cAAc,CAACH,GAAkC,CAAC,CAAC,GAC5D,CAAA,IAAA,EAAOG,cAAc,CAACH,GAAkC,CAAC,CAAE,CAAA;AAC/D;AAEA,EAAA,OAAOD,UAAkC;AAC3C;;;;","x_google_ignoreList":[0]}
@@ -1,13 +1,3 @@
1
- /**
2
- * Returns the months to display in the calendar.
3
- *
4
- * @param firstDisplayedMonth The first month currently displayed in the
5
- * calendar.
6
- * @param calendarEndMonth The latest month the user can navigate to.
7
- * @param props The DayPicker props, including `numberOfMonths`.
8
- * @param dateLib The date library to use for date manipulation.
9
- * @returns An array of dates representing the months to display.
10
- */
11
1
  function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {
12
2
  const {
13
3
  numberOfMonths = 1
@@ -1 +1 @@
1
- {"version":3,"file":"getDisplayMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["/**\n * Returns the months to display in the calendar.\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 props The DayPicker props, including `numberOfMonths`.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dates representing the months to display.\n */\nexport function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n//# sourceMappingURL=getDisplayMonths.js.map"],"names":["getDisplayMonths","firstDisplayedMonth","calendarEndMonth","props","dateLib","numberOfMonths","months","i","month","addMonths","push"],"mappings":"AAGA;;;;;;;;;;AAUM,SAAUA,gBAAgBA,CAC9BC,mBAAyB,EACzBC,gBAAkC,EAClCC,KAA6C,EAC7CC,OAAgB,EAAA;EAEhB,MAAM;AAAEC,IAAAA,cAAc,GAAG;AAAC,GAAE,GAAGF,KAAK;EACpC,MAAMG,MAAM,GAAW,EAAE;EACzB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,cAAc,EAAEE,CAAC,EAAE,EAAE;IACvC,MAAMC,KAAK,GAAGJ,OAAO,CAACK,SAAS,CAACR,mBAAmB,EAAEM,CAAC,CAAC;AACvD,IAAA,IAAIL,gBAAgB,IAAIM,KAAK,GAAGN,gBAAgB,EAAE;AAChD,MAAA;AACF;AACAI,IAAAA,MAAM,CAACI,IAAI,CAACF,KAAK,CAAC;AACpB;AACA,EAAA,OAAOF,MAAM;AACf;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getDisplayMonths.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js"],"sourcesContent":["export function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib) {\n const { numberOfMonths = 1 } = props;\n const months = [];\n for (let i = 0; i < numberOfMonths; i++) {\n const month = dateLib.addMonths(firstDisplayedMonth, i);\n if (calendarEndMonth && month > calendarEndMonth) {\n break;\n }\n months.push(month);\n }\n return months;\n}\n//# sourceMappingURL=getDisplayMonths.js.map"],"names":["getDisplayMonths","firstDisplayedMonth","calendarEndMonth","props","dateLib","numberOfMonths","months","i","month","addMonths","push"],"mappings":"AAGM,SAAUA,gBAAgBA,CAC9BC,mBAAyB,EACzBC,gBAAkC,EAClCC,KAA6C,EAC7CC,OAAgB,EAAA;EAEhB,MAAM;AAAEC,IAAAA,cAAc,GAAG;AAAC,GAAE,GAAGF,KAAK;EACpC,MAAMG,MAAM,GAAW,EAAE;EACzB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,cAAc,EAAEE,CAAC,EAAE,EAAE;IACvC,MAAMC,KAAK,GAAGJ,OAAO,CAACK,SAAS,CAACR,mBAAmB,EAAEM,CAAC,CAAC;AACvD,IAAA,IAAIL,gBAAgB,IAAIM,KAAK,GAAGN,gBAAgB,EAAE;AAChD,MAAA;AACF;AACAI,IAAAA,MAAM,CAACI,IAAI,CAACF,KAAK,CAAC;AACpB;AACA,EAAA,OAAOF,MAAM;AACf;;;;","x_google_ignoreList":[0]}
@@ -1,19 +1,4 @@
1
- /**
2
- * Calculates the next date that should be focused in the calendar.
3
- *
4
- * This function determines the next focusable date based on the movement
5
- * direction, constraints, and calendar configuration.
6
- *
7
- * @param moveBy The unit of movement (e.g., "day", "week").
8
- * @param moveDir The direction of movement ("before" or "after").
9
- * @param refDate The reference date from which to calculate the next focusable
10
- * date.
11
- * @param navStart The earliest date the user can navigate to.
12
- * @param navEnd The latest date the user can navigate to.
13
- * @param props The DayPicker props, including calendar configuration options.
14
- * @param dateLib The date library to use for date manipulation.
15
- * @returns The next focusable date.
16
- */
1
+ /** Return the next date that should be focused. */
17
2
  function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {
18
3
  const {
19
4
  ISOWeek,
@@ -39,7 +24,7 @@ function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dat
39
24
  month: addMonths,
40
25
  year: addYears,
41
26
  startOfWeek: date => broadcastCalendar ? startOfBroadcastWeek(date, dateLib) : ISOWeek ? startOfISOWeek(date) : startOfWeek(date),
42
- endOfWeek: date => broadcastCalendar ? endOfBroadcastWeek(date) : ISOWeek ? endOfISOWeek(date) : endOfWeek(date)
27
+ endOfWeek: date => broadcastCalendar ? endOfBroadcastWeek(date, dateLib) : ISOWeek ? endOfISOWeek(date) : endOfWeek(date)
43
28
  };
44
29
  let focusableDate = moveFns[moveBy](refDate, moveDir === "after" ? 1 : -1);
45
30
  if (moveDir === "before" && navStart) {
@@ -1 +1 @@
1
- {"version":3,"file":"getFocusableDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js"],"sourcesContent":["/**\n * Calculates the next date that should be focused in the calendar.\n *\n * This function determines the next focusable date based on the movement\n * direction, constraints, and calendar configuration.\n *\n * @param moveBy The unit of movement (e.g., \"day\", \"week\").\n * @param moveDir The direction of movement (\"before\" or \"after\").\n * @param refDate The reference date from which to calculate the next focusable\n * date.\n * @param navStart The earliest date the user can navigate to.\n * @param navEnd The latest date the user can navigate to.\n * @param props The DayPicker props, including calendar configuration options.\n * @param dateLib The date library to use for date manipulation.\n * @returns The next focusable date.\n */\nexport function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {\n const { ISOWeek, broadcastCalendar } = props;\n const { addDays, addMonths, addWeeks, addYears, endOfBroadcastWeek, endOfISOWeek, endOfWeek, max, min, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const moveFns = {\n day: addDays,\n week: addWeeks,\n month: addMonths,\n year: addYears,\n startOfWeek: (date) => broadcastCalendar\n ? startOfBroadcastWeek(date, dateLib)\n : ISOWeek\n ? startOfISOWeek(date)\n : startOfWeek(date),\n endOfWeek: (date) => broadcastCalendar\n ? endOfBroadcastWeek(date)\n : ISOWeek\n ? endOfISOWeek(date)\n : endOfWeek(date)\n };\n let focusableDate = moveFns[moveBy](refDate, moveDir === \"after\" ? 1 : -1);\n if (moveDir === \"before\" && navStart) {\n focusableDate = max([navStart, focusableDate]);\n }\n else if (moveDir === \"after\" && navEnd) {\n focusableDate = min([navEnd, focusableDate]);\n }\n return focusableDate;\n}\n//# sourceMappingURL=getFocusableDate.js.map"],"names":["getFocusableDate","moveBy","moveDir","refDate","navStart","navEnd","props","dateLib","ISOWeek","broadcastCalendar","addDays","addMonths","addWeeks","addYears","endOfBroadcastWeek","endOfISOWeek","endOfWeek","max","min","startOfBroadcastWeek","startOfISOWeek","startOfWeek","moveFns","day","week","month","year","date","focusableDate"],"mappings":"AAOA;;;;;;;;;;;;;;;;AAgBM,SAAUA,gBAAgBA,CAC9BC,MAAmB,EACnBC,OAAqB,EACrBC,OAAa,EACbC,QAA0B,EAC1BC,MAAwB,EACxBC,KAA4D,EAC5DC,OAAgB,EAAA;EAEhB,MAAM;IAAEC,OAAO;AAAEC,IAAAA;AAAiB,GAAE,GAAGH,KAAK;EAC5C,MAAM;IACJI,OAAO;IACPC,SAAS;IACTC,QAAQ;IACRC,QAAQ;IACRC,kBAAkB;IAClBC,YAAY;IACZC,SAAS;IACTC,GAAG;IACHC,GAAG;IACHC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGd,OAAO;AACX,EAAA,MAAMe,OAAO,GAAG;AACdC,IAAAA,GAAG,EAAEb,OAAO;AACZc,IAAAA,IAAI,EAAEZ,QAAQ;AACda,IAAAA,KAAK,EAAEd,SAAS;AAChBe,IAAAA,IAAI,EAAEb,QAAQ;IACdQ,WAAW,EAAGM,IAAU,IACtBlB,iBAAiB,GACbU,oBAAoB,CAACQ,IAAI,EAAEpB,OAAO,CAAC,GACnCC,OAAO,GACLY,cAAc,CAACO,IAAI,CAAC,GACpBN,WAAW,CAACM,IAAI,CAAC;AACzBX,IAAAA,SAAS,EAAGW,IAAU,IACpBlB,iBAAiB,GACbK,kBAAkB,CAACa,IAAI,CAAC,GACxBnB,OAAO,GACLO,YAAY,CAACY,IAAI,CAAC,GAClBX,SAAS,CAACW,IAAI;AACvB,GAAA;AAED,EAAA,IAAIC,aAAa,GAAGN,OAAO,CAACrB,MAAM,CAAC,CAACE,OAAO,EAAED,OAAO,KAAK,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC;AAC1E,EAAA,IAAIA,OAAO,KAAK,QAAQ,IAAIE,QAAQ,EAAE;IACpCwB,aAAa,GAAGX,GAAG,CAAC,CAACb,QAAQ,EAAEwB,aAAa,CAAC,CAAC;AAChD,GAAC,MAAM,IAAI1B,OAAO,KAAK,OAAO,IAAIG,MAAM,EAAE;IACxCuB,aAAa,GAAGV,GAAG,CAAC,CAACb,MAAM,EAAEuB,aAAa,CAAC,CAAC;AAC9C;AACA,EAAA,OAAOA,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getFocusableDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js"],"sourcesContent":["/** Return the next date that should be focused. */\nexport function getFocusableDate(moveBy, moveDir, refDate, navStart, navEnd, props, dateLib) {\n const { ISOWeek, broadcastCalendar } = props;\n const { addDays, addMonths, addWeeks, addYears, endOfBroadcastWeek, endOfISOWeek, endOfWeek, max, min, startOfBroadcastWeek, startOfISOWeek, startOfWeek } = dateLib;\n const moveFns = {\n day: addDays,\n week: addWeeks,\n month: addMonths,\n year: addYears,\n startOfWeek: (date) => broadcastCalendar\n ? startOfBroadcastWeek(date, dateLib)\n : ISOWeek\n ? startOfISOWeek(date)\n : startOfWeek(date),\n endOfWeek: (date) => broadcastCalendar\n ? endOfBroadcastWeek(date, dateLib)\n : ISOWeek\n ? endOfISOWeek(date)\n : endOfWeek(date)\n };\n let focusableDate = moveFns[moveBy](refDate, moveDir === \"after\" ? 1 : -1);\n if (moveDir === \"before\" && navStart) {\n focusableDate = max([navStart, focusableDate]);\n }\n else if (moveDir === \"after\" && navEnd) {\n focusableDate = min([navEnd, focusableDate]);\n }\n return focusableDate;\n}\n//# sourceMappingURL=getFocusableDate.js.map"],"names":["getFocusableDate","moveBy","moveDir","refDate","navStart","navEnd","props","dateLib","ISOWeek","broadcastCalendar","addDays","addMonths","addWeeks","addYears","endOfBroadcastWeek","endOfISOWeek","endOfWeek","max","min","startOfBroadcastWeek","startOfISOWeek","startOfWeek","moveFns","day","week","month","year","date","focusableDate"],"mappings":"AAOA;AACM,SAAUA,gBAAgBA,CAC9BC,MAAmB,EACnBC,OAAqB,EACrBC,OAAa,EACbC,QAA0B,EAC1BC,MAAwB,EACxBC,KAA4D,EAC5DC,OAAgB,EAAA;EAEhB,MAAM;IAAEC,OAAO;AAAEC,IAAAA;AAAiB,GAAE,GAAGH,KAAK;EAC5C,MAAM;IACJI,OAAO;IACPC,SAAS;IACTC,QAAQ;IACRC,QAAQ;IACRC,kBAAkB;IAClBC,YAAY;IACZC,SAAS;IACTC,GAAG;IACHC,GAAG;IACHC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGd,OAAO;AACX,EAAA,MAAMe,OAAO,GAAG;AACdC,IAAAA,GAAG,EAAEb,OAAO;AACZc,IAAAA,IAAI,EAAEZ,QAAQ;AACda,IAAAA,KAAK,EAAEd,SAAS;AAChBe,IAAAA,IAAI,EAAEb,QAAQ;IACdQ,WAAW,EAAGM,IAAU,IACtBlB,iBAAiB,GACbU,oBAAoB,CAACQ,IAAI,EAAEpB,OAAO,CAAC,GACnCC,OAAO,GACLY,cAAc,CAACO,IAAI,CAAC,GACpBN,WAAW,CAACM,IAAI,CAAC;IACzBX,SAAS,EAAGW,IAAU,IACpBlB,iBAAiB,GACbK,kBAAkB,CAACa,IAAI,EAAEpB,OAAO,CAAC,GACjCC,OAAO,GACLO,YAAY,CAACY,IAAI,CAAC,GAClBX,SAAS,CAACW,IAAI;AACvB,GAAA;AAED,EAAA,IAAIC,aAAa,GAAGN,OAAO,CAACrB,MAAM,CAAC,CAACE,OAAO,EAAED,OAAO,KAAK,OAAO,GAAG,CAAC,GAAG,EAAE,CAAC;AAC1E,EAAA,IAAIA,OAAO,KAAK,QAAQ,IAAIE,QAAQ,EAAE;IACpCwB,aAAa,GAAGX,GAAG,CAAC,CAACb,QAAQ,EAAEwB,aAAa,CAAC,CAAC;AAChD,GAAC,MAAM,IAAI1B,OAAO,KAAK,OAAO,IAAIG,MAAM,EAAE;IACxCuB,aAAa,GAAGV,GAAG,CAAC,CAACb,MAAM,EAAEuB,aAAa,CAAC,CAAC;AAC9C;AACA,EAAA,OAAOA,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
@@ -1,12 +1,6 @@
1
1
  import * as index from '../formatters/index.js';
2
2
 
3
- /**
4
- * Merges custom formatters from the props with the default formatters.
5
- *
6
- * @param customFormatters The custom formatters provided in the DayPicker
7
- * props.
8
- * @returns The merged formatters object.
9
- */
3
+ /** Return the formatters from the props merged with the default formatters. */
10
4
  function getFormatters(customFormatters) {
11
5
  if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {
12
6
  customFormatters.formatCaption = customFormatters.formatMonthCaption;
@@ -1 +1 @@
1
- {"version":3,"file":"getFormatters.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFormatters.js"],"sourcesContent":["import * as defaultFormatters from \"../formatters/index.js\";\n/**\n * Merges custom formatters from the props with the default formatters.\n *\n * @param customFormatters The custom formatters provided in the DayPicker\n * props.\n * @returns The merged formatters object.\n */\nexport function getFormatters(customFormatters) {\n if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {\n customFormatters.formatCaption = customFormatters.formatMonthCaption;\n }\n if (customFormatters?.formatYearCaption &&\n !customFormatters.formatYearDropdown) {\n customFormatters.formatYearDropdown = customFormatters.formatYearCaption;\n }\n return {\n ...defaultFormatters,\n ...customFormatters\n };\n}\n//# sourceMappingURL=getFormatters.js.map"],"names":["getFormatters","customFormatters","formatMonthCaption","formatCaption","formatYearCaption","formatYearDropdown","defaultFormatters"],"mappings":";;AAGA;;;;;;;AAOM,SAAUA,aAAaA,CAACC,gBAA8C,EAAA;EAC1E,IAAIA,gBAAgB,EAAEC,kBAAkB,IAAI,CAACD,gBAAgB,CAACE,aAAa,EAAE;AAC3EF,IAAAA,gBAAgB,CAACE,aAAa,GAAGF,gBAAgB,CAACC,kBAAkB;AACtE;EACA,IACED,gBAAgB,EAAEG,iBAAiB,IACnC,CAACH,gBAAgB,CAACI,kBAAkB,EACpC;AACAJ,IAAAA,gBAAgB,CAACI,kBAAkB,GAAGJ,gBAAgB,CAACG,iBAAiB;AAC1E;EACA,OAAO;AACL,IAAA,GAAGE,KAAiB;IACpB,GAAGL;AACJ,GAAA;AACH;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getFormatters.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getFormatters.js"],"sourcesContent":["import * as defaultFormatters from \"../formatters/index.js\";\n/** Return the formatters from the props merged with the default formatters. */\nexport function getFormatters(customFormatters) {\n if (customFormatters?.formatMonthCaption && !customFormatters.formatCaption) {\n customFormatters.formatCaption = customFormatters.formatMonthCaption;\n }\n if (customFormatters?.formatYearCaption &&\n !customFormatters.formatYearDropdown) {\n customFormatters.formatYearDropdown = customFormatters.formatYearCaption;\n }\n return {\n ...defaultFormatters,\n ...customFormatters\n };\n}\n//# sourceMappingURL=getFormatters.js.map"],"names":["getFormatters","customFormatters","formatMonthCaption","formatCaption","formatYearCaption","formatYearDropdown","defaultFormatters"],"mappings":";;AAGA;AACM,SAAUA,aAAaA,CAACC,gBAA8C,EAAA;EAC1E,IAAIA,gBAAgB,EAAEC,kBAAkB,IAAI,CAACD,gBAAgB,CAACE,aAAa,EAAE;AAC3EF,IAAAA,gBAAgB,CAACE,aAAa,GAAGF,gBAAgB,CAACC,kBAAkB;AACtE;EACA,IACED,gBAAgB,EAAEG,iBAAiB,IACnC,CAACH,gBAAgB,CAACI,kBAAkB,EACpC;AACAJ,IAAAA,gBAAgB,CAACI,kBAAkB,GAAGJ,gBAAgB,CAACG,iBAAiB;AAC1E;EACA,OAAO;AACL,IAAA,GAAGE,KAAiB;IACpB,GAAGL;AACJ,GAAA;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,14 +1,4 @@
1
- /**
2
- * Determines the initial month to display in the calendar based on the provided
3
- * props.
4
- *
5
- * This function calculates the starting month, considering constraints such as
6
- * `startMonth`, `endMonth`, and the number of months to display.
7
- *
8
- * @param props The DayPicker props, including navigation and date constraints.
9
- * @param dateLib The date library to use for date manipulation.
10
- * @returns The initial month to display.
11
- */
1
+ /** Return the start month based on the props passed to DayPicker. */
12
2
  function getInitialMonth(props, dateLib) {
13
3
  const {
14
4
  month,
@@ -24,12 +14,12 @@ function getInitialMonth(props, dateLib) {
24
14
  addMonths,
25
15
  startOfMonth
26
16
  } = dateLib;
27
- // Adjust the initial month if it is after the endMonth
17
+ // Fix the initialMonth if is after the endMonth
28
18
  if (endMonth && differenceInCalendarMonths(endMonth, initialMonth) < 0) {
29
19
  const offset = -1 * (numberOfMonths - 1);
30
20
  initialMonth = addMonths(endMonth, offset);
31
21
  }
32
- // Adjust the initial month if it is before the startMonth
22
+ // Fix the initialMonth if is before the startMonth
33
23
  if (startMonth && differenceInCalendarMonths(initialMonth, startMonth) < 0) {
34
24
  initialMonth = startMonth;
35
25
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getInitialMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js"],"sourcesContent":["/**\n * Determines the initial month to display in the calendar based on the provided\n * props.\n *\n * This function calculates the starting month, considering constraints such as\n * `startMonth`, `endMonth`, and the number of months to display.\n *\n * @param props The DayPicker props, including navigation and date constraints.\n * @param dateLib The date library to use for date manipulation.\n * @returns The initial month to display.\n */\nexport function getInitialMonth(props, dateLib) {\n const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, endMonth, startMonth } = props;\n let initialMonth = month || defaultMonth || today;\n const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;\n // Adjust the initial month if it is after the endMonth\n if (endMonth && differenceInCalendarMonths(endMonth, initialMonth) < 0) {\n const offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(endMonth, offset);\n }\n // Adjust the initial month if it is before the startMonth\n if (startMonth && differenceInCalendarMonths(initialMonth, startMonth) < 0) {\n initialMonth = startMonth;\n }\n return startOfMonth(initialMonth);\n}\n//# sourceMappingURL=getInitialMonth.js.map"],"names":["getInitialMonth","props","dateLib","month","defaultMonth","today","numberOfMonths","endMonth","startMonth","initialMonth","differenceInCalendarMonths","addMonths","startOfMonth","offset"],"mappings":"AAGA;;;;;;;;;;;AAWM,SAAUA,eAAeA,CAC7BC,KAWC,EACDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,KAAK;IACLC,YAAY;AACZC,IAAAA,KAAK,GAAGH,OAAO,CAACG,KAAK,EAAE;AACvBC,IAAAA,cAAc,GAAG,CAAC;IAClBC,QAAQ;AACRC,IAAAA;AAAU,GACX,GAAGP,KAAK;AACT,EAAA,IAAIQ,YAAY,GAAGN,KAAK,IAAIC,YAAY,IAAIC,KAAK;EACjD,MAAM;IAAEK,0BAA0B;IAAEC,SAAS;AAAEC,IAAAA;AAAY,GAAE,GAAGV,OAAO;AAEvE;EACA,IAAIK,QAAQ,IAAIG,0BAA0B,CAACH,QAAQ,EAAEE,YAAY,CAAC,GAAG,CAAC,EAAE;IACtE,MAAMI,MAAM,GAAG,EAAE,IAAIP,cAAc,GAAG,CAAC,CAAC;AACxCG,IAAAA,YAAY,GAAGE,SAAS,CAACJ,QAAQ,EAAEM,MAAM,CAAC;AAC5C;AACA;EACA,IAAIL,UAAU,IAAIE,0BAA0B,CAACD,YAAY,EAAED,UAAU,CAAC,GAAG,CAAC,EAAE;AAC1EC,IAAAA,YAAY,GAAGD,UAAU;AAC3B;EAEA,OAAOI,YAAY,CAACH,YAAY,CAAC;AACnC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getInitialMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js"],"sourcesContent":["/** Return the start month based on the props passed to DayPicker. */\nexport function getInitialMonth(props, dateLib) {\n const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, endMonth, startMonth } = props;\n let initialMonth = month || defaultMonth || today;\n const { differenceInCalendarMonths, addMonths, startOfMonth } = dateLib;\n // Fix the initialMonth if is after the endMonth\n if (endMonth && differenceInCalendarMonths(endMonth, initialMonth) < 0) {\n const offset = -1 * (numberOfMonths - 1);\n initialMonth = addMonths(endMonth, offset);\n }\n // Fix the initialMonth if is before the startMonth\n if (startMonth && differenceInCalendarMonths(initialMonth, startMonth) < 0) {\n initialMonth = startMonth;\n }\n return startOfMonth(initialMonth);\n}\n//# sourceMappingURL=getInitialMonth.js.map"],"names":["getInitialMonth","props","dateLib","month","defaultMonth","today","numberOfMonths","endMonth","startMonth","initialMonth","differenceInCalendarMonths","addMonths","startOfMonth","offset"],"mappings":"AAGA;AACM,SAAUA,eAAeA,CAC7BC,KAWC,EACDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,KAAK;IACLC,YAAY;AACZC,IAAAA,KAAK,GAAGH,OAAO,CAACG,KAAK,EAAE;AACvBC,IAAAA,cAAc,GAAG,CAAC;IAClBC,QAAQ;AACRC,IAAAA;AAAU,GACX,GAAGP,KAAK;AACT,EAAA,IAAIQ,YAAY,GAAGN,KAAK,IAAIC,YAAY,IAAIC,KAAK;EACjD,MAAM;IAAEK,0BAA0B;IAAEC,SAAS;AAAEC,IAAAA;AAAY,GAAE,GAAGV,OAAO;AAEvE;EACA,IAAIK,QAAQ,IAAIG,0BAA0B,CAACH,QAAQ,EAAEE,YAAY,CAAC,GAAG,CAAC,EAAE;IACtE,MAAMI,MAAM,GAAG,EAAE,IAAIP,cAAc,GAAG,CAAC,CAAC;AACxCG,IAAAA,YAAY,GAAGE,SAAS,CAACJ,QAAQ,EAAEM,MAAM,CAAC;AAC5C;AACA;EACA,IAAIL,UAAU,IAAIE,0BAA0B,CAACD,YAAY,EAAED,UAAU,CAAC,GAAG,CAAC,EAAE;AAC1EC,IAAAA,YAAY,GAAGD,UAAU;AAC3B;EACA,OAAOI,YAAY,CAACH,YAAY,CAAC;AACnC;;;;","x_google_ignoreList":[0]}
@@ -1,18 +1,4 @@
1
- /**
2
- * Returns the months to show in the dropdown.
3
- *
4
- * This function generates a list of months for the current year, formatted
5
- * using the provided formatter, and determines whether each month should be
6
- * disabled based on the navigation range.
7
- *
8
- * @param displayMonth The currently displayed month.
9
- * @param navStart The start date for navigation.
10
- * @param navEnd The end date for navigation.
11
- * @param formatters The formatters to use for formatting the month labels.
12
- * @param dateLib The date library to use for date manipulation.
13
- * @returns An array of dropdown options representing the months, or `undefined`
14
- * if no months are available.
15
- */
1
+ /** Return the months to show in the dropdown. */
16
2
  function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {
17
3
  const {
18
4
  startOfMonth,
@@ -1 +1 @@
1
- {"version":3,"file":"getMonthOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js"],"sourcesContent":["/**\n * Returns the months to show in the dropdown.\n *\n * This function generates a list of months for the current year, formatted\n * using the provided formatter, and determines whether each month should be\n * disabled based on the navigation range.\n *\n * @param displayMonth The currently displayed month.\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 month labels.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dropdown options representing the months, or `undefined`\n * if no months are available.\n */\nexport function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {\n const { startOfMonth, startOfYear, endOfYear, eachMonthOfInterval, getMonth } = dateLib;\n const months = eachMonthOfInterval({\n start: startOfYear(displayMonth),\n end: endOfYear(displayMonth)\n });\n const options = months.map((month) => {\n const label = formatters.formatMonthDropdown(month, dateLib);\n const value = getMonth(month);\n const disabled = (navStart && month < startOfMonth(navStart)) ||\n (navEnd && month > startOfMonth(navEnd)) ||\n false;\n return { value, label, disabled };\n });\n return options;\n}\n//# sourceMappingURL=getMonthOptions.js.map"],"names":["getMonthOptions","displayMonth","navStart","navEnd","formatters","dateLib","startOfMonth","startOfYear","endOfYear","eachMonthOfInterval","getMonth","months","start","end","options","map","month","label","formatMonthDropdown","value","disabled"],"mappings":"AAIA;;;;;;;;;;;;;;;AAeM,SAAUA,eAAeA,CAC7BC,YAAkB,EAClBC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAmD,EACnDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,YAAY;IACZC,WAAW;IACXC,SAAS;IACTC,mBAAmB;AACnBC,IAAAA;AAAQ,GACT,GAAGL,OAAO;EAEX,MAAMM,MAAM,GAAGF,mBAAmB,CAAC;AACjCG,IAAAA,KAAK,EAAEL,WAAW,CAACN,YAAY,CAAC;IAChCY,GAAG,EAAEL,SAAS,CAACP,YAAY;GAC5B,CAAC;AAEF,EAAA,MAAMa,OAAO,GAAGH,MAAM,CAACI,GAAG,CAAEC,KAAK,IAAI;IACnC,MAAMC,KAAK,GAAGb,UAAU,CAACc,mBAAmB,CAACF,KAAK,EAAEX,OAAO,CAAC;AAC5D,IAAA,MAAMc,KAAK,GAAGT,QAAQ,CAACM,KAAK,CAAC;IAC7B,MAAMI,QAAQ,GACXlB,QAAQ,IAAIc,KAAK,GAAGV,YAAY,CAACJ,QAAQ,CAAC,IAC1CC,MAAM,IAAIa,KAAK,GAAGV,YAAY,CAACH,MAAM,CAAE,IACxC,KAAK;IACP,OAAO;MAAEgB,KAAK;MAAEF,KAAK;AAAEG,MAAAA;KAAU;AACnC,GAAC,CAAC;AAEF,EAAA,OAAON,OAAO;AAChB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getMonthOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js"],"sourcesContent":["/** Return the months to show in the dropdown. */\nexport function getMonthOptions(displayMonth, navStart, navEnd, formatters, dateLib) {\n const { startOfMonth, startOfYear, endOfYear, eachMonthOfInterval, getMonth } = dateLib;\n const months = eachMonthOfInterval({\n start: startOfYear(displayMonth),\n end: endOfYear(displayMonth)\n });\n const options = months.map((month) => {\n const label = formatters.formatMonthDropdown(month, dateLib);\n const value = getMonth(month);\n const disabled = (navStart && month < startOfMonth(navStart)) ||\n (navEnd && month > startOfMonth(navEnd)) ||\n false;\n return { value, label, disabled };\n });\n return options;\n}\n//# sourceMappingURL=getMonthOptions.js.map"],"names":["getMonthOptions","displayMonth","navStart","navEnd","formatters","dateLib","startOfMonth","startOfYear","endOfYear","eachMonthOfInterval","getMonth","months","start","end","options","map","month","label","formatMonthDropdown","value","disabled"],"mappings":"AAIA;AACM,SAAUA,eAAeA,CAC7BC,YAAkB,EAClBC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAmD,EACnDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,YAAY;IACZC,WAAW;IACXC,SAAS;IACTC,mBAAmB;AACnBC,IAAAA;AAAQ,GACT,GAAGL,OAAO;EAEX,MAAMM,MAAM,GAAGF,mBAAmB,CAAC;AACjCG,IAAAA,KAAK,EAAEL,WAAW,CAACN,YAAY,CAAC;IAChCY,GAAG,EAAEL,SAAS,CAACP,YAAY;GAC5B,CAAC;AAEF,EAAA,MAAMa,OAAO,GAAGH,MAAM,CAACI,GAAG,CAAEC,KAAK,IAAI;IACnC,MAAMC,KAAK,GAAGb,UAAU,CAACc,mBAAmB,CAACF,KAAK,EAAEX,OAAO,CAAC;AAC5D,IAAA,MAAMc,KAAK,GAAGT,QAAQ,CAACM,KAAK,CAAC;IAC7B,MAAMI,QAAQ,GACXlB,QAAQ,IAAIc,KAAK,GAAGV,YAAY,CAACJ,QAAQ,CAAC,IAC1CC,MAAM,IAAIa,KAAK,GAAGV,YAAY,CAACH,MAAM,CAAE,IACxC,KAAK;IACP,OAAO;MAAEgB,KAAK;MAAEF,KAAK;AAAEG,MAAAA;KAAU;AACnC,GAAC,CAAC;AAEF,EAAA,OAAON,OAAO;AAChB;;;;","x_google_ignoreList":[0]}
@@ -1,22 +1,13 @@
1
1
  import { CalendarDay } from '../classes/CalendarDay.js';
2
- import { CalendarWeek } from '../classes/CalendarWeek.js';
3
2
  import { CalendarMonth } from '../classes/CalendarMonth.js';
3
+ import { CalendarWeek } from '../classes/CalendarWeek.js';
4
+ import '../classes/DateLib.js';
4
5
 
5
- /**
6
- * Returns the months to display in the calendar.
7
- *
8
- * This function generates `CalendarMonth` objects for each month to be
9
- * displayed, including their weeks and days, based on the provided display
10
- * months and dates.
11
- *
12
- * @param displayMonths The months (as dates) to display in the calendar.
13
- * @param dates The dates to display in the calendar.
14
- * @param props Options from the DayPicker props context.
15
- * @param dateLib The date library to use for date manipulation.
16
- * @returns An array of `CalendarMonth` objects representing the months to
17
- * display.
18
- */
19
- function getMonths(displayMonths, dates, props, dateLib) {
6
+ /** Return the months to display in the calendar. */
7
+ function getMonths(/** The months (as dates) to display in the calendar. */
8
+ displayMonths, /** The dates to display in the calendar. */
9
+ dates, /** Options from the props context. */
10
+ props, dateLib) {
20
11
  const {
21
12
  addDays,
22
13
  endOfBroadcastWeek,
@@ -31,7 +22,7 @@ function getMonths(displayMonths, dates, props, dateLib) {
31
22
  } = dateLib;
32
23
  const dayPickerMonths = displayMonths.reduce((months, month) => {
33
24
  const firstDateOfFirstWeek = props.broadcastCalendar ? startOfBroadcastWeek(month, dateLib) : props.ISOWeek ? startOfISOWeek(month) : startOfWeek(month);
34
- const lastDateOfLastWeek = props.broadcastCalendar ? endOfBroadcastWeek(month) : props.ISOWeek ? endOfISOWeek(endOfMonth(month)) : endOfWeek(endOfMonth(month));
25
+ const lastDateOfLastWeek = props.broadcastCalendar ? endOfBroadcastWeek(month, dateLib) : props.ISOWeek ? endOfISOWeek(endOfMonth(month)) : endOfWeek(endOfMonth(month));
35
26
  /** The dates to display in the month. */
36
27
  const monthDates = dates.filter(date => {
37
28
  return date >= firstDateOfFirstWeek && date <= lastDateOfLastWeek;
@@ -1 +1 @@
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","reduce","months","month","firstDateOfFirstWeek","broadcastCalendar","ISOWeek","lastDateOfLastWeek","monthDates","filter","date","nrOfDaysWithFixedWeeks","fixedWeeks","length","extraDates","daysToAdd","push","weeks","weekNumber","week","find","day","CalendarDay","CalendarWeek","days","dayPickerMonth","CalendarMonth","reverseMonths","reverse"],"mappings":";;;;AAIA;;;;;;;;;;;;;;AAcM,SAAUA,SAASA,CACvBC,aAAqB,EACrBC,KAAa,EACbC,KAGC,EACDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,OAAO;IACPC,kBAAkB;IAClBC,YAAY;IACZC,UAAU;IACVC,SAAS;IACTC,UAAU;IACVC,OAAO;IACPC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGV,OAAO;EAEX,MAAMW,eAAe,GAAGd,aAAa,CAACe,MAAM,CAC1C,CAACC,MAAM,EAAEC,KAAK,KAAI;IAChB,MAAMC,oBAAoB,GAAGhB,KAAK,CAACiB,iBAAiB,GAChDR,oBAAoB,CAACM,KAAK,EAAEd,OAAO,CAAC,GACpCD,KAAK,CAACkB,OAAO,GACXR,cAAc,CAACK,KAAK,CAAC,GACrBJ,WAAW,CAACI,KAAK,CAAC;AAExB,IAAA,MAAMI,kBAAkB,GAAGnB,KAAK,CAACiB,iBAAiB,GAC9Cd,kBAAkB,CAACY,KAAK,CAAC,GACzBf,KAAK,CAACkB,OAAO,GACXd,YAAY,CAACC,UAAU,CAACU,KAAK,CAAC,CAAC,GAC/BT,SAAS,CAACD,UAAU,CAACU,KAAK,CAAC,CAAC;AAElC;AACA,IAAA,MAAMK,UAAU,GAAGrB,KAAK,CAACsB,MAAM,CAAEC,IAAI,IAAI;AACvC,MAAA,OAAOA,IAAI,IAAIN,oBAAoB,IAAIM,IAAI,IAAIH,kBAAkB;AACnE,KAAC,CAAC;IAEF,MAAMI,sBAAsB,GAAGvB,KAAK,CAACiB,iBAAiB,GAAG,EAAE,GAAG,EAAE;IAEhE,IAAIjB,KAAK,CAACwB,UAAU,IAAIJ,UAAU,CAACK,MAAM,GAAGF,sBAAsB,EAAE;AAClE,MAAA,MAAMG,UAAU,GAAG3B,KAAK,CAACsB,MAAM,CAAEC,IAAI,IAAI;AACvC,QAAA,MAAMK,SAAS,GAAGJ,sBAAsB,GAAGH,UAAU,CAACK,MAAM;QAC5D,OACEH,IAAI,GAAGH,kBAAkB,IACzBG,IAAI,IAAIpB,OAAO,CAACiB,kBAAkB,EAAEQ,SAAS,CAAC;AAElD,OAAC,CAAC;AACFP,MAAAA,UAAU,CAACQ,IAAI,CAAC,GAAGF,UAAU,CAAC;AAChC;IAEA,MAAMG,KAAK,GAAmBT,UAAU,CAACP,MAAM,CAC7C,CAACgB,KAAK,EAAEP,IAAI,KAAI;AACd,MAAA,MAAMQ,UAAU,GAAG9B,KAAK,CAACkB,OAAO,GAAGX,UAAU,CAACe,IAAI,CAAC,GAAGd,OAAO,CAACc,IAAI,CAAC;AACnE,MAAA,MAAMS,IAAI,GAAGF,KAAK,CAACG,IAAI,CAAED,IAAI,IAAKA,IAAI,CAACD,UAAU,KAAKA,UAAU,CAAC;MAEjE,MAAMG,GAAG,GAAG,IAAIC,WAAW,CAACZ,IAAI,EAAEP,KAAK,EAAEd,OAAO,CAAC;MACjD,IAAI,CAAC8B,IAAI,EAAE;AACTF,QAAAA,KAAK,CAACD,IAAI,CAAC,IAAIO,YAAY,CAACL,UAAU,EAAE,CAACG,GAAG,CAAC,CAAC,CAAC;AACjD,OAAC,MAAM;AACLF,QAAAA,IAAI,CAACK,IAAI,CAACR,IAAI,CAACK,GAAG,CAAC;AACrB;AACA,MAAA,OAAOJ,KAAK;KACb,EACD,EAAE,CACH;IAED,MAAMQ,cAAc,GAAG,IAAIC,aAAa,CAACvB,KAAK,EAAEc,KAAK,CAAC;AACtDf,IAAAA,MAAM,CAACc,IAAI,CAACS,cAAc,CAAC;AAC3B,IAAA,OAAOvB,MAAM;GACd,EACD,EAAE,CACH;AAED,EAAA,IAAI,CAACd,KAAK,CAACuC,aAAa,EAAE;AACxB,IAAA,OAAO3B,eAAe;AACxB,GAAC,MAAM;IACL,OAAOA,eAAe,CAAC4B,OAAO,EAAE;AAClC;AACF;;;;","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/** Return the months to display in the calendar. */\nexport function getMonths(\n/** The months (as dates) to display in the calendar. */\ndisplayMonths, \n/** The dates to display in the calendar. */\ndates, \n/** Options from the props context. */\nprops, 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, dateLib)\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","reduce","months","month","firstDateOfFirstWeek","broadcastCalendar","ISOWeek","lastDateOfLastWeek","monthDates","filter","date","nrOfDaysWithFixedWeeks","fixedWeeks","length","extraDates","daysToAdd","push","weeks","weekNumber","week","find","day","CalendarDay","CalendarWeek","days","dayPickerMonth","CalendarMonth","reverseMonths","reverse"],"mappings":";;;;;AAIA;AACM,SAAUA,SAASA;AAEvBC,aAAqB;AAErBC,KAAa;AAEbC,KAGC,EACDC,OAAgB,EAAA;EAEhB,MAAM;IACJC,OAAO;IACPC,kBAAkB;IAClBC,YAAY;IACZC,UAAU;IACVC,SAAS;IACTC,UAAU;IACVC,OAAO;IACPC,oBAAoB;IACpBC,cAAc;AACdC,IAAAA;AAAW,GACZ,GAAGV,OAAO;EACX,MAAMW,eAAe,GAAGd,aAAa,CAACe,MAAM,CAC1C,CAACC,MAAM,EAAEC,KAAK,KAAI;IAChB,MAAMC,oBAAoB,GAAGhB,KAAK,CAACiB,iBAAiB,GAChDR,oBAAoB,CAACM,KAAK,EAAEd,OAAO,CAAC,GACpCD,KAAK,CAACkB,OAAO,GACXR,cAAc,CAACK,KAAK,CAAC,GACrBJ,WAAW,CAACI,KAAK,CAAC;AAExB,IAAA,MAAMI,kBAAkB,GAAGnB,KAAK,CAACiB,iBAAiB,GAC9Cd,kBAAkB,CAACY,KAAK,EAAEd,OAAO,CAAC,GAClCD,KAAK,CAACkB,OAAO,GACXd,YAAY,CAACC,UAAU,CAACU,KAAK,CAAC,CAAC,GAC/BT,SAAS,CAACD,UAAU,CAACU,KAAK,CAAC,CAAC;AAElC;AACA,IAAA,MAAMK,UAAU,GAAGrB,KAAK,CAACsB,MAAM,CAAEC,IAAI,IAAI;AACvC,MAAA,OAAOA,IAAI,IAAIN,oBAAoB,IAAIM,IAAI,IAAIH,kBAAkB;AACnE,KAAC,CAAC;IAEF,MAAMI,sBAAsB,GAAGvB,KAAK,CAACiB,iBAAiB,GAAG,EAAE,GAAG,EAAE;IAEhE,IAAIjB,KAAK,CAACwB,UAAU,IAAIJ,UAAU,CAACK,MAAM,GAAGF,sBAAsB,EAAE;AAClE,MAAA,MAAMG,UAAU,GAAG3B,KAAK,CAACsB,MAAM,CAAEC,IAAI,IAAI;AACvC,QAAA,MAAMK,SAAS,GAAGJ,sBAAsB,GAAGH,UAAU,CAACK,MAAM;QAC5D,OACEH,IAAI,GAAGH,kBAAkB,IACzBG,IAAI,IAAIpB,OAAO,CAACiB,kBAAkB,EAAEQ,SAAS,CAAC;AAElD,OAAC,CAAC;AACFP,MAAAA,UAAU,CAACQ,IAAI,CAAC,GAAGF,UAAU,CAAC;AAChC;IAEA,MAAMG,KAAK,GAAmBT,UAAU,CAACP,MAAM,CAC7C,CAACgB,KAAK,EAAEP,IAAI,KAAI;AACd,MAAA,MAAMQ,UAAU,GAAG9B,KAAK,CAACkB,OAAO,GAAGX,UAAU,CAACe,IAAI,CAAC,GAAGd,OAAO,CAACc,IAAI,CAAC;AACnE,MAAA,MAAMS,IAAI,GAAGF,KAAK,CAACG,IAAI,CAAED,IAAI,IAAKA,IAAI,CAACD,UAAU,KAAKA,UAAU,CAAC;MAEjE,MAAMG,GAAG,GAAG,IAAIC,WAAW,CAACZ,IAAI,EAAEP,KAAK,EAAEd,OAAO,CAAC;MACjD,IAAI,CAAC8B,IAAI,EAAE;AACTF,QAAAA,KAAK,CAACD,IAAI,CAAC,IAAIO,YAAY,CAACL,UAAU,EAAE,CAACG,GAAG,CAAC,CAAC,CAAC;AACjD,OAAC,MAAM;AACLF,QAAAA,IAAI,CAACK,IAAI,CAACR,IAAI,CAACK,GAAG,CAAC;AACrB;AACA,MAAA,OAAOJ,KAAK;KACb,EACD,EAAE,CACH;IAED,MAAMQ,cAAc,GAAG,IAAIC,aAAa,CAACvB,KAAK,EAAEc,KAAK,CAAC;AACtDf,IAAAA,MAAM,CAACc,IAAI,CAACS,cAAc,CAAC;AAC3B,IAAA,OAAOvB,MAAM;GACd,EACD,EAAE,CACH;AAED,EAAA,IAAI,CAACd,KAAK,CAACuC,aAAa,EAAE;AACxB,IAAA,OAAO3B,eAAe;AACxB,GAAC,MAAM;IACL,OAAOA,eAAe,CAAC4B,OAAO,EAAE;AAClC;AACF;;;;","x_google_ignoreList":[0]}
@@ -1,10 +1,4 @@
1
- /**
2
- * Returns the start and end months for calendar navigation.
3
- *
4
- * @param props The DayPicker props, including navigation and layout options.
5
- * @param dateLib The date library to use for date manipulation.
6
- * @returns A tuple containing the start and end months for navigation.
7
- */
1
+ /** Return the start and end months for the calendar navigation. */
8
2
  function getNavMonths(props, dateLib) {
9
3
  let {
10
4
  startMonth,
@@ -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//# sourceMappingURL=getNavMonth.js.map"],"names":["getNavMonths","props","dateLib","startMonth","endMonth","startOfYear","startOfDay","startOfMonth","endOfMonth","addYears","endOfYear","newDate","today","fromYear","toYear","fromMonth","toMonth","hasYearDropdown","captionLayout"],"mappings":"AAGA;;;;;;;AAOM,SAAUA,YAAYA,CAC1BC,KAYC,EACDC,OAAgB,EAAA;EAEhB,IAAI;IAAEC,UAAU;AAAEC,IAAAA;AAAQ,GAAE,GAAGH,KAAK;EAEpC,MAAM;IACJI,WAAW;IACXC,UAAU;IACVC,YAAY;IACZC,UAAU;IACVC,QAAQ;IACRC,SAAS;IACTC,OAAO;AACPC,IAAAA;AAAK,GACN,GAAGV,OAAO;AAEX;EACA,MAAM;IAAEW,QAAQ;IAAEC,MAAM;IAAEC,SAAS;AAAEC,IAAAA;AAAO,GAAE,GAAGf,KAAK;AACtD,EAAA,IAAI,CAACE,UAAU,IAAIY,SAAS,EAAE;AAC5BZ,IAAAA,UAAU,GAAGY,SAAS;AACxB;AACA,EAAA,IAAI,CAACZ,UAAU,IAAIU,QAAQ,EAAE;IAC3BV,UAAU,GAAGD,OAAO,CAACS,OAAO,CAACE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9C;AACA,EAAA,IAAI,CAACT,QAAQ,IAAIY,OAAO,EAAE;AACxBZ,IAAAA,QAAQ,GAAGY,OAAO;AACpB;AACA,EAAA,IAAI,CAACZ,QAAQ,IAAIU,MAAM,EAAE;IACvBV,QAAQ,GAAGO,OAAO,CAACG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;AACpC;AAEA,EAAA,MAAMG,eAAe,GACnBhB,KAAK,CAACiB,aAAa,KAAK,UAAU,IAClCjB,KAAK,CAACiB,aAAa,KAAK,gBAAgB;AAC1C,EAAA,IAAIf,UAAU,EAAE;AACdA,IAAAA,UAAU,GAAGI,YAAY,CAACJ,UAAU,CAAC;GACtC,MAAM,IAAIU,QAAQ,EAAE;IACnBV,UAAU,GAAGQ,OAAO,CAACE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AACtC,GAAC,MAAM,IAAI,CAACV,UAAU,IAAIc,eAAe,EAAE;AACzCd,IAAAA,UAAU,GAAGE,WAAW,CAACI,QAAQ,CAACR,KAAK,CAACW,KAAK,IAAIA,KAAK,EAAE,EAAE,IAAI,CAAC,CAAC;AAClE;AACA,EAAA,IAAIR,QAAQ,EAAE;AACZA,IAAAA,QAAQ,GAAGI,UAAU,CAACJ,QAAQ,CAAC;GAChC,MAAM,IAAIU,MAAM,EAAE;IACjBV,QAAQ,GAAGO,OAAO,CAACG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;AACpC,GAAC,MAAM,IAAI,CAACV,QAAQ,IAAIa,eAAe,EAAE;IACvCb,QAAQ,GAAGM,SAAS,CAACT,KAAK,CAACW,KAAK,IAAIA,KAAK,EAAE,CAAC;AAC9C;AACA,EAAA,OAAO,CACLT,UAAU,GAAGG,UAAU,CAACH,UAAU,CAAC,GAAGA,UAAU,EAChDC,QAAQ,GAAGE,UAAU,CAACF,QAAQ,CAAC,GAAGA,QAAQ,CAC3C;AACH;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getNavMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js"],"sourcesContent":["/** Return the start and end months for the calendar navigation. */\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","captionLayout"],"mappings":"AAGA;AACM,SAAUA,YAAYA,CAC1BC,KAYC,EACDC,OAAgB,EAAA;EAEhB,IAAI;IAAEC,UAAU;AAAEC,IAAAA;AAAQ,GAAE,GAAGH,KAAK;EAEpC,MAAM;IACJI,WAAW;IACXC,UAAU;IACVC,YAAY;IACZC,UAAU;IACVC,QAAQ;IACRC,SAAS;IACTC,OAAO;AACPC,IAAAA;AAAK,GACN,GAAGV,OAAO;AAEX;EACA,MAAM;IAAEW,QAAQ;IAAEC,MAAM;IAAEC,SAAS;AAAEC,IAAAA;AAAO,GAAE,GAAGf,KAAK;AACtD,EAAA,IAAI,CAACE,UAAU,IAAIY,SAAS,EAAE;AAC5BZ,IAAAA,UAAU,GAAGY,SAAS;AACxB;AACA,EAAA,IAAI,CAACZ,UAAU,IAAIU,QAAQ,EAAE;IAC3BV,UAAU,GAAGD,OAAO,CAACS,OAAO,CAACE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AAC9C;AACA,EAAA,IAAI,CAACT,QAAQ,IAAIY,OAAO,EAAE;AACxBZ,IAAAA,QAAQ,GAAGY,OAAO;AACpB;AACA,EAAA,IAAI,CAACZ,QAAQ,IAAIU,MAAM,EAAE;IACvBV,QAAQ,GAAGO,OAAO,CAACG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;AACpC;AAEA,EAAA,MAAMG,eAAe,GACnBhB,KAAK,CAACiB,aAAa,KAAK,UAAU,IAClCjB,KAAK,CAACiB,aAAa,KAAK,gBAAgB;AAC1C,EAAA,IAAIf,UAAU,EAAE;AACdA,IAAAA,UAAU,GAAGI,YAAY,CAACJ,UAAU,CAAC;GACtC,MAAM,IAAIU,QAAQ,EAAE;IACnBV,UAAU,GAAGQ,OAAO,CAACE,QAAQ,EAAE,CAAC,EAAE,CAAC,CAAC;AACtC,GAAC,MAAM,IAAI,CAACV,UAAU,IAAIc,eAAe,EAAE;AACzCd,IAAAA,UAAU,GAAGE,WAAW,CAACI,QAAQ,CAACR,KAAK,CAACW,KAAK,IAAIA,KAAK,EAAE,EAAE,IAAI,CAAC,CAAC;AAClE;AACA,EAAA,IAAIR,QAAQ,EAAE;AACZA,IAAAA,QAAQ,GAAGI,UAAU,CAACJ,QAAQ,CAAC;GAChC,MAAM,IAAIU,MAAM,EAAE;IACjBV,QAAQ,GAAGO,OAAO,CAACG,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC;AACpC,GAAC,MAAM,IAAI,CAACV,QAAQ,IAAIa,eAAe,EAAE;IACvCb,QAAQ,GAAGM,SAAS,CAACT,KAAK,CAACW,KAAK,IAAIA,KAAK,EAAE,CAAC;AAC9C;AACA,EAAA,OAAO,CACLT,UAAU,GAAGG,UAAU,CAACH,UAAU,CAAC,GAAGA,UAAU,EAChDC,QAAQ,GAAGE,UAAU,CAACF,QAAQ,CAAC,GAAGA,QAAQ,CAC3C;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,30 +1,17 @@
1
+ import { CalendarDay } from '../classes/CalendarDay.js';
2
+ import '../classes/DateLib.js';
1
3
  import { dateMatchModifiers } from '../utils/dateMatchModifiers.js';
2
4
  import { getFocusableDate } from './getFocusableDate.js';
3
- import { CalendarDay } from '../classes/CalendarDay.js';
4
5
 
5
- /**
6
- * Determines the next focusable day in the calendar.
7
- *
8
- * This function recursively calculates the next focusable day based on the
9
- * movement direction and modifiers applied to the days.
10
- *
11
- * @param moveBy The unit of movement (e.g., "day", "week").
12
- * @param moveDir The direction of movement ("before" or "after").
13
- * @param refDay The currently focused day.
14
- * @param calendarStartMonth The earliest month the user can navigate to.
15
- * @param calendarEndMonth The latest month the user can navigate to.
16
- * @param props The DayPicker props, including modifiers and configuration
17
- * options.
18
- * @param dateLib The date library to use for date manipulation.
19
- * @param attempt The current recursion attempt (used to limit recursion depth).
20
- * @returns The next focusable day, or `undefined` if no focusable day is found.
21
- */
22
- function getNextFocus(moveBy, moveDir, refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {
6
+ function getNextFocus(moveBy, moveDir, /** The date that is currently focused. */
7
+ refDay, calendarStartMonth, calendarEndMonth, props, dateLib, attempt = 0) {
23
8
  if (attempt > 365) {
24
9
  // Limit the recursion to 365 attempts
25
10
  return undefined;
26
11
  }
27
- const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date, calendarStartMonth, calendarEndMonth, props, dateLib);
12
+ const focusableDate = getFocusableDate(moveBy, moveDir, refDay.date,
13
+ // should be refDay? or refDay.date?
14
+ calendarStartMonth, calendarEndMonth, props, dateLib);
28
15
  const isDisabled = Boolean(props.disabled && dateMatchModifiers(focusableDate, props.disabled, dateLib));
29
16
  const isHidden = Boolean(props.hidden && dateMatchModifiers(focusableDate, props.hidden, dateLib));
30
17
  const targetMonth = focusableDate;
@@ -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 && 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","undefined","focusableDate","getFocusableDate","date","isDisabled","Boolean","disabled","dateMatchModifiers","isHidden","hidden","targetMonth","focusDay","CalendarDay"],"mappings":";;;;AAWA;;;;;;;;;;;;;;;;;AAiBM,SAAUA,YAAYA,CAC1BC,MAAmB,EACnBC,OAAqB,EACrBC,MAAmB,EACnBC,kBAAoC,EACpCC,gBAAkC,EAClCC,KAGC,EACDC,OAAgB,EAChBC,OAAA,GAAkB,CAAC,EAAA;EAEnB,IAAIA,OAAO,GAAG,GAAG,EAAE;AACjB;AACA,IAAA,OAAOC,SAAS;AAClB;AAEA,EAAA,MAAMC,aAAa,GAAGC,gBAAgB,CACpCV,MAAM,EACNC,OAAO,EACPC,MAAM,CAACS,IAAI,EACXR,kBAAkB,EAClBC,gBAAgB,EAChBC,KAAK,EACLC,OAAO,CACR;AAED,EAAA,MAAMM,UAAU,GAAGC,OAAO,CACxBR,KAAK,CAACS,QAAQ,IAAIC,kBAAkB,CAACN,aAAa,EAAEJ,KAAK,CAACS,QAAQ,EAAER,OAAO,CAAC,CAC7E;AAED,EAAA,MAAMU,QAAQ,GAAGH,OAAO,CACtBR,KAAK,CAACY,MAAM,IAAIF,kBAAkB,CAACN,aAAa,EAAEJ,KAAK,CAACY,MAAM,EAAEX,OAAO,CAAC,CACzE;EAED,MAAMY,WAAW,GAAGT,aAAa;EACjC,MAAMU,QAAQ,GAAG,IAAIC,WAAW,CAACX,aAAa,EAAES,WAAW,EAAEZ,OAAO,CAAC;AAErE,EAAA,IAAI,CAACM,UAAU,IAAI,CAACI,QAAQ,EAAE;AAC5B,IAAA,OAAOG,QAAQ;AACjB;AAEA;AACA,EAAA,OAAOpB,YAAY,CACjBC,MAAM,EACNC,OAAO,EACPkB,QAAQ,EACRhB,kBAAkB,EAClBC,gBAAgB,EAChBC,KAAK,EACLC,OAAO,EACPC,OAAO,GAAG,CAAC,CACZ;AACH;;;;","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\";\nexport function getNextFocus(moveBy, moveDir, \n/** The date that is currently focused. */\nrefDay, 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, // should be refDay? or refDay.date?\n 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","undefined","focusableDate","getFocusableDate","date","isDisabled","Boolean","disabled","dateMatchModifiers","isHidden","hidden","targetMonth","focusDay","CalendarDay"],"mappings":";;;;;AAWM,SAAUA,YAAYA,CAC1BC,MAAmB,EACnBC,OAAqB;AAErBC,MAAmB,EACnBC,kBAAoC,EACpCC,gBAAkC,EAClCC,KAGC,EACDC,OAAgB,EAChBC,OAAA,GAAkB,CAAC,EAAA;EAEnB,IAAIA,OAAO,GAAG,GAAG,EAAE;AACjB;AACA,IAAA,OAAOC,SAAS;AAClB;EAEA,MAAMC,aAAa,GAAGC,gBAAgB,CACpCV,MAAM,EACNC,OAAO,EACPC,MAAM,CAACS,IAAI;AAAE;AACbR,EAAAA,kBAAkB,EAClBC,gBAAgB,EAChBC,KAAK,EACLC,OAAO,CACR;AAED,EAAA,MAAMM,UAAU,GAAGC,OAAO,CACxBR,KAAK,CAACS,QAAQ,IAAIC,kBAAkB,CAACN,aAAa,EAAEJ,KAAK,CAACS,QAAQ,EAAER,OAAO,CAAC,CAC7E;AAED,EAAA,MAAMU,QAAQ,GAAGH,OAAO,CACtBR,KAAK,CAACY,MAAM,IAAIF,kBAAkB,CAACN,aAAa,EAAEJ,KAAK,CAACY,MAAM,EAAEX,OAAO,CAAC,CACzE;EAED,MAAMY,WAAW,GAAGT,aAAa;EACjC,MAAMU,QAAQ,GAAG,IAAIC,WAAW,CAACX,aAAa,EAAES,WAAW,EAAEZ,OAAO,CAAC;AAErE,EAAA,IAAI,CAACM,UAAU,IAAI,CAACI,QAAQ,EAAE;AAC5B,IAAA,OAAOG,QAAQ;AACjB;AAEA;AACA,EAAA,OAAOpB,YAAY,CACjBC,MAAM,EACNC,OAAO,EACPkB,QAAQ,EACRhB,kBAAkB,EAClBC,gBAAgB,EAChBC,KAAK,EACLC,OAAO,EACPC,OAAO,GAAG,CAAC,CACZ;AACH;;;;","x_google_ignoreList":[0]}
@@ -1,19 +1,11 @@
1
1
  /**
2
- * Returns the next month the user can navigate to, based on the given options.
2
+ * Return the next month the user can navigate to according to the given
3
+ * options.
3
4
  *
4
- * The next month is not always the next calendar month:
5
+ * Please note that the next month is not always the next calendar month:
5
6
  *
6
- * - If it is after the `calendarEndMonth`, it returns `undefined`.
7
- * - If paged navigation is enabled, it skips forward by the number of displayed
8
- * months.
9
- *
10
- * @param firstDisplayedMonth The first month currently displayed in the
11
- * calendar.
12
- * @param calendarEndMonth The latest month the user can navigate to.
13
- * @param options Navigation options, including `numberOfMonths` and
14
- * `pagedNavigation`.
15
- * @param dateLib The date library to use for date manipulation.
16
- * @returns The next month, or `undefined` if navigation is not possible.
7
+ * - If after the `calendarEndMonth` range, is `undefined`;
8
+ * - If the navigation is paged , is the number of months displayed ahead.
17
9
  */
18
10
  function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
19
11
  if (options.disableNavigation) {
@@ -37,6 +29,7 @@ function getNextMonth(firstDisplayedMonth, calendarEndMonth, options, dateLib) {
37
29
  if (monthsDiff < numberOfMonths) {
38
30
  return undefined;
39
31
  }
32
+ // Jump forward as the number of months when paged navigation
40
33
  return addMonths(month, offset);
41
34
  }
42
35
 
@@ -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//# sourceMappingURL=getNextMonth.js.map"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","disableNavigation","undefined","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month","monthsDiff"],"mappings":"AAGA;;;;;;;;;;;;;;;;;AAiBM,SAAUA,YAAYA,CAC1BC,mBAAyB,EACzBC,gBAAkC,EAClCC,OAGC,EACDC,OAAgB,EAAA;EAEhB,IAAID,OAAO,CAACE,iBAAiB,EAAE;AAC7B,IAAA,OAAOC,SAAS;AAClB;EACA,MAAM;IAAEC,eAAe;AAAEC,IAAAA,cAAc,GAAG;AAAC,GAAE,GAAGL,OAAO;EACvD,MAAM;IAAEM,YAAY;IAAEC,SAAS;AAAEC,IAAAA;AAA0B,GAAE,GAAGP,OAAO;AACvE,EAAA,MAAMQ,MAAM,GAAGL,eAAe,GAAGC,cAAc,GAAG,CAAC;AACnD,EAAA,MAAMK,KAAK,GAAGJ,YAAY,CAACR,mBAAmB,CAAC;EAE/C,IAAI,CAACC,gBAAgB,EAAE;AACrB,IAAA,OAAOQ,SAAS,CAACG,KAAK,EAAED,MAAM,CAAC;AACjC;AAEA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAC3CT,gBAAgB,EAChBD,mBAAmB,CACpB;EAED,IAAIa,UAAU,GAAGN,cAAc,EAAE;AAC/B,IAAA,OAAOF,SAAS;AAClB;AAEA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAED,MAAM,CAAC;AACjC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getNextMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js"],"sourcesContent":["/**\n * Return the next month the user can navigate to according to the given\n * options.\n *\n * Please note that the next month is not always the next calendar month:\n *\n * - If after the `calendarEndMonth` range, is `undefined`;\n * - If the navigation is paged , is the number of months displayed ahead.\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 // Jump forward as the number of months when paged navigation\n return addMonths(month, offset);\n}\n//# sourceMappingURL=getNextMonth.js.map"],"names":["getNextMonth","firstDisplayedMonth","calendarEndMonth","options","dateLib","disableNavigation","undefined","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month","monthsDiff"],"mappings":"AAGA;;;;;;;;;AASM,SAAUA,YAAYA,CAC1BC,mBAAyB,EACzBC,gBAAkC,EAClCC,OAGC,EACDC,OAAgB,EAAA;EAEhB,IAAID,OAAO,CAACE,iBAAiB,EAAE;AAC7B,IAAA,OAAOC,SAAS;AAClB;EACA,MAAM;IAAEC,eAAe;AAAEC,IAAAA,cAAc,GAAG;AAAC,GAAE,GAAGL,OAAO;EACvD,MAAM;IAAEM,YAAY;IAAEC,SAAS;AAAEC,IAAAA;AAA0B,GAAE,GAAGP,OAAO;AACvE,EAAA,MAAMQ,MAAM,GAAGL,eAAe,GAAGC,cAAc,GAAG,CAAC;AACnD,EAAA,MAAMK,KAAK,GAAGJ,YAAY,CAACR,mBAAmB,CAAC;EAE/C,IAAI,CAACC,gBAAgB,EAAE;AACrB,IAAA,OAAOQ,SAAS,CAACG,KAAK,EAAED,MAAM,CAAC;AACjC;AAEA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAC3CT,gBAAgB,EAChBD,mBAAmB,CACpB;EAED,IAAIa,UAAU,GAAGN,cAAc,EAAE;AAC/B,IAAA,OAAOF,SAAS;AAClB;AAEA;AACA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAED,MAAM,CAAC;AACjC;;;;","x_google_ignoreList":[0]}
@@ -1,20 +1,12 @@
1
1
  /**
2
- * Returns the previous month the user can navigate to, based on the given
2
+ * Return the next previous the user can navigate to, according to the given
3
3
  * options.
4
4
  *
5
- * The previous month is not always the previous calendar month:
5
+ * Please note that the previous month is not always the previous calendar
6
+ * month:
6
7
  *
7
- * - If it is before the `calendarStartMonth`, it returns `undefined`.
8
- * - If paged navigation is enabled, it skips back by the number of displayed
9
- * months.
10
- *
11
- * @param firstDisplayedMonth The first month currently displayed in the
12
- * calendar.
13
- * @param calendarStartMonth The earliest month the user can navigate to.
14
- * @param options Navigation options, including `numberOfMonths` and
15
- * `pagedNavigation`.
16
- * @param dateLib The date library to use for date manipulation.
17
- * @returns The previous month, or `undefined` if navigation is not possible.
8
+ * - If before the `calendarStartMonth` date, is `undefined`;
9
+ * - If the navigation is paged, is the number of months displayed before.
18
10
  */
19
11
  function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {
20
12
  if (options.disableNavigation) {
@@ -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//# sourceMappingURL=getPreviousMonth.js.map"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","disableNavigation","undefined","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month","monthsDiff"],"mappings":"AAGA;;;;;;;;;;;;;;;;;;AAkBM,SAAUA,gBAAgBA,CAC9BC,mBAAyB,EACzBC,kBAAoC,EACpCC,OAGC,EACDC,OAAgB,EAAA;EAEhB,IAAID,OAAO,CAACE,iBAAiB,EAAE;AAC7B,IAAA,OAAOC,SAAS;AAClB;EACA,MAAM;IAAEC,eAAe;AAAEC,IAAAA;AAAc,GAAE,GAAGL,OAAO;EACnD,MAAM;IAAEM,YAAY;IAAEC,SAAS;AAAEC,IAAAA;AAA0B,GAAE,GAAGP,OAAO;EACvE,MAAMQ,MAAM,GAAGL,eAAe,GAAIC,cAAc,IAAI,CAAC,GAAI,CAAC;AAC1D,EAAA,MAAMK,KAAK,GAAGJ,YAAY,CAACR,mBAAmB,CAAC;EAC/C,IAAI,CAACC,kBAAkB,EAAE;AACvB,IAAA,OAAOQ,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AAClC;AACA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAACE,KAAK,EAAEX,kBAAkB,CAAC;EAExE,IAAIY,UAAU,IAAI,CAAC,EAAE;AACnB,IAAA,OAAOR,SAAS;AAClB;AAEA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AAClC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getPreviousMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Return the next previous the user can navigate to, according to the given\n * options.\n *\n * Please note that the previous month is not always the previous calendar\n * month:\n *\n * - If before the `calendarStartMonth` date, is `undefined`;\n * - If the navigation is paged, is the number of months displayed before.\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","disableNavigation","undefined","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month","monthsDiff"],"mappings":"AAGA;;;;;;;;;;AAUM,SAAUA,gBAAgBA,CAC9BC,mBAAyB,EACzBC,kBAAoC,EACpCC,OAGC,EACDC,OAAgB,EAAA;EAEhB,IAAID,OAAO,CAACE,iBAAiB,EAAE;AAC7B,IAAA,OAAOC,SAAS;AAClB;EACA,MAAM;IAAEC,eAAe;AAAEC,IAAAA;AAAc,GAAE,GAAGL,OAAO;EACnD,MAAM;IAAEM,YAAY;IAAEC,SAAS;AAAEC,IAAAA;AAA0B,GAAE,GAAGP,OAAO;EACvE,MAAMQ,MAAM,GAAGL,eAAe,GAAIC,cAAc,IAAI,CAAC,GAAI,CAAC;AAC1D,EAAA,MAAMK,KAAK,GAAGJ,YAAY,CAACR,mBAAmB,CAAC;EAC/C,IAAI,CAACC,kBAAkB,EAAE;AACvB,IAAA,OAAOQ,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AAClC;AACA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAACE,KAAK,EAAEX,kBAAkB,CAAC;EAExE,IAAIY,UAAU,IAAI,CAAC,EAAE;AACnB,IAAA,OAAOR,SAAS;AAClB;AAEA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AAClC;;;;","x_google_ignoreList":[0]}
@@ -1,16 +1,5 @@
1
1
  import { UI } from '../UI.js';
2
2
 
3
- /**
4
- * Returns the computed style for a day based on its modifiers.
5
- *
6
- * This function merges the base styles for the day with any styles associated
7
- * with active modifiers.
8
- *
9
- * @param dayModifiers The modifiers applied to the day.
10
- * @param styles The base styles for the calendar elements.
11
- * @param modifiersStyles The styles associated with specific modifiers.
12
- * @returns The computed style for the day.
13
- */
14
3
  function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {
15
4
  let style = {
16
5
  ...styles?.[UI.Day]
@@ -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//# sourceMappingURL=getStyleForModifiers.js.map"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","Day","Object","entries","filter","active","forEach","modifier"],"mappings":";;AAKA;;;;;;;;;;;AAWM,SAAUA,oBAAoBA,CAClCC,YAAuB,EACvBC,MAAA,GAA0B,EAAE,EAC5BC,eAAA,GAA4C,EAAE,EAAA;AAE9C,EAAA,IAAIC,KAAK,GAAkB;AAAE,IAAA,GAAGF,MAAM,GAAGG,EAAE,CAACC,GAAG;GAAG;EAClDC,MAAM,CAACC,OAAO,CAACP,YAAY,CAAC,CACzBQ,MAAM,CAAC,CAAC,GAAGC,MAAM,CAAC,KAAKA,MAAM,KAAK,IAAI,CAAC,CACvCC,OAAO,CAAC,CAAC,CAACC,QAAQ,CAAC,KAAI;AACtBR,IAAAA,KAAK,GAAG;AACN,MAAA,GAAGA,KAAK;MACR,GAAGD,eAAe,GAAGS,QAAQ;AAC9B,KAAA;AACH,GAAC,CAAC;AACJ,EAAA,OAAOR,KAAK;AACd;;;;","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\";\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","Day","Object","entries","filter","active","forEach","modifier"],"mappings":";;AAKM,SAAUA,oBAAoBA,CAClCC,YAAuB,EACvBC,MAAA,GAA0B,EAAE,EAC5BC,eAAA,GAA4C,EAAE,EAAA;AAE9C,EAAA,IAAIC,KAAK,GAAkB;AAAE,IAAA,GAAGF,MAAM,GAAGG,EAAE,CAACC,GAAG;GAAG;EAClDC,MAAM,CAACC,OAAO,CAACP,YAAY,CAAC,CACzBQ,MAAM,CAAC,CAAC,GAAGC,MAAM,CAAC,KAAKA,MAAM,KAAK,IAAI,CAAC,CACvCC,OAAO,CAAC,CAAC,CAACC,QAAQ,CAAC,KAAI;AACtBR,IAAAA,KAAK,GAAG;AACN,MAAA,GAAGA,KAAK;MACR,GAAGD,eAAe,GAAGS,QAAQ;AAC9B,KAAA;AACH,GAAC,CAAC;AACJ,EAAA,OAAOR,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -1,14 +1,11 @@
1
1
  /**
2
- * Generates a series of 7 days, starting from the beginning of the week, to use
3
- * for formatting weekday names (e.g., Monday, Tuesday, etc.).
4
- *
5
- * @param dateLib The date library to use for date manipulation.
6
- * @param ISOWeek Whether to use ISO week numbering (weeks start on Monday).
7
- * @param broadcastCalendar Whether to use the broadcast calendar (weeks start
8
- * on Monday, but may include adjustments for broadcast-specific rules).
9
- * @returns An array of 7 dates representing the weekdays.
2
+ * Generate a series of 7 days, starting from the week, to use for formatting
3
+ * the weekday names (Monday, Tuesday, etc.).
10
4
  */
11
- function getWeekdays(dateLib, ISOWeek, broadcastCalendar) {
5
+ function getWeekdays(/** The date library. */
6
+ dateLib, /** Use ISOWeek instead of locale/ */
7
+ ISOWeek, /** @since 9.4.0 */
8
+ broadcastCalendar) {
12
9
  const today = dateLib.today();
13
10
  const start = ISOWeek ? dateLib.startOfISOWeek(today) : dateLib.startOfWeek(today);
14
11
  const days = [];
@@ -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//# sourceMappingURL=getWeekdays.js.map"],"names":["getWeekdays","dateLib","ISOWeek","broadcastCalendar","today","start","startOfISOWeek","startOfWeek","days","i","day","addDays","push"],"mappings":"AAEA;;;;;;;;;;AAUM,SAAUA,WAAWA,CACzBC,OAAgB,EAChBC,OAA6B,EAC7BC,iBAAuC,EAAA;AAEvC,EAAA,MAAMC,KAAK,GAAGH,OAAO,CAACG,KAAK,EAAE;EAE7B,MAAMC,KAAK,GAEPH,OAAO,GACLD,OAAO,CAACK,cAAc,CAACF,KAAK,CAAC,GAC7BH,OAAO,CAACM,WAAW,CAACH,KAAK,CAAC;EAEhC,MAAMI,IAAI,GAAW,EAAE;EACvB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC1B,MAAMC,GAAG,GAAGT,OAAO,CAACU,OAAO,CAACN,KAAK,EAAEI,CAAC,CAAC;AACrCD,IAAAA,IAAI,CAACI,IAAI,CAACF,GAAG,CAAC;AAChB;AACA,EAAA,OAAOF,IAAI;AACb;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getWeekdays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js"],"sourcesContent":["/**\n * Generate a series of 7 days, starting from the week, to use for formatting\n * the weekday names (Monday, Tuesday, etc.).\n */\nexport function getWeekdays(\n/** The date library. */\ndateLib, \n/** Use ISOWeek instead of locale/ */\nISOWeek, \n/** @since 9.4.0 */\nbroadcastCalendar) {\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","startOfISOWeek","startOfWeek","days","i","day","addDays","push"],"mappings":"AAEA;;;;AAIM,SAAUA,WAAWA;AAEzBC,OAAgB;AAEhBC,OAA6B;AAE7BC,iBAAuC,EAAA;AAEvC,EAAA,MAAMC,KAAK,GAAGH,OAAO,CAACG,KAAK,EAAE;EAE7B,MAAMC,KAAK,GAEPH,OAAO,GACLD,OAAO,CAACK,cAAc,CAACF,KAAK,CAAC,GAC7BH,OAAO,CAACM,WAAW,CAACH,KAAK,CAAC;EAEhC,MAAMI,IAAI,GAAW,EAAE;EACvB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,CAAC,EAAEA,CAAC,EAAE,EAAE;IAC1B,MAAMC,GAAG,GAAGT,OAAO,CAACU,OAAO,CAACN,KAAK,EAAEI,CAAC,CAAC;AACrCD,IAAAA,IAAI,CAACI,IAAI,CAACF,GAAG,CAAC;AAChB;AACA,EAAA,OAAOF,IAAI;AACb;;;;","x_google_ignoreList":[0]}