pixel-react 1.15.11 → 1.15.13

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 (256) hide show
  1. package/README.md +75 -75
  2. package/lib/ThirdPartyPackages/JanusGateway.js +5 -2
  3. package/lib/ThirdPartyPackages/JanusGateway.js.map +1 -1
  4. package/lib/_virtual/index10.js +2 -2
  5. package/lib/_virtual/index12.js +2 -2
  6. package/lib/_virtual/index9.js +2 -2
  7. package/lib/assets/icons/spinner.svg.js +1 -1
  8. package/lib/assets/icons/spinner.svg.js.map +1 -1
  9. package/lib/components/Editor/Editor.js +69 -26
  10. package/lib/components/Editor/Editor.js.map +1 -1
  11. package/lib/components/Editor/VariableDropdown.js +2 -2
  12. package/lib/components/Editor/calculateDropdownPosition.d.ts +7 -0
  13. package/lib/components/Editor/calculateDropdownPosition.js +31 -0
  14. package/lib/components/Editor/calculateDropdownPosition.js.map +1 -0
  15. package/lib/index.cjs +7312 -4600
  16. package/lib/index.cjs.map +1 -1
  17. package/lib/index.d.ts +2 -1
  18. package/lib/index.js +2 -2
  19. package/lib/node_modules/@date-fns/tz/date/index.js +19 -1
  20. package/lib/node_modules/@date-fns/tz/date/index.js.map +1 -1
  21. package/lib/node_modules/@date-fns/tz/date/mini.js +6 -34
  22. package/lib/node_modules/@date-fns/tz/date/mini.js.map +1 -1
  23. package/lib/node_modules/@date-fns/tz/tzOffset/index.js +5 -6
  24. package/lib/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -1
  25. package/lib/node_modules/janus-gateway/npm/dist/janus.es.js +3241 -0
  26. package/lib/node_modules/janus-gateway/npm/dist/janus.es.js.map +1 -0
  27. package/lib/node_modules/js-beautify/js/src/css/beautifier.js +1 -1
  28. package/lib/node_modules/js-beautify/js/src/css/index.js +1 -1
  29. package/lib/node_modules/js-beautify/js/src/css/options.js +1 -1
  30. package/lib/node_modules/js-beautify/js/src/html/beautifier.js +1 -1
  31. package/lib/node_modules/js-beautify/js/src/html/index.js +1 -1
  32. package/lib/node_modules/js-beautify/js/src/html/options.js +1 -1
  33. package/lib/node_modules/js-beautify/js/src/html/tokenizer.js +1 -1
  34. package/lib/node_modules/js-beautify/js/src/javascript/beautifier.js +1 -1
  35. package/lib/node_modules/js-beautify/js/src/javascript/options.js +1 -1
  36. package/lib/node_modules/js-beautify/js/src/javascript/tokenizer.js +1 -1
  37. package/lib/node_modules/libphonenumber-js/es6/AsYouType.js +82 -115
  38. package/lib/node_modules/libphonenumber-js/es6/AsYouType.js.map +1 -1
  39. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js +58 -68
  40. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternMatcher.js.map +1 -1
  41. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js +23 -36
  42. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.PatternParser.js.map +1 -1
  43. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js +9 -13
  44. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.complete.js.map +1 -1
  45. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js +187 -226
  46. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.js.map +1 -1
  47. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js +27 -21
  48. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeFormatter.util.js.map +1 -1
  49. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js +117 -150
  50. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeParser.js.map +1 -1
  51. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js +38 -57
  52. package/lib/node_modules/libphonenumber-js/es6/AsYouTypeState.js.map +1 -1
  53. package/lib/node_modules/libphonenumber-js/es6/ParseError.js +109 -70
  54. package/lib/node_modules/libphonenumber-js/es6/ParseError.js.map +1 -1
  55. package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js +57 -72
  56. package/lib/node_modules/libphonenumber-js/es6/PhoneNumber.js.map +1 -1
  57. package/lib/node_modules/libphonenumber-js/es6/constants.js +9 -15
  58. package/lib/node_modules/libphonenumber-js/es6/constants.js.map +1 -1
  59. package/lib/node_modules/libphonenumber-js/es6/format.js +93 -67
  60. package/lib/node_modules/libphonenumber-js/es6/format.js.map +1 -1
  61. package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js +1 -0
  62. package/lib/node_modules/libphonenumber-js/es6/formatIncompletePhoneNumber.js.map +1 -1
  63. package/lib/node_modules/libphonenumber-js/es6/getCountries.js.map +1 -1
  64. package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +1 -0
  65. package/lib/node_modules/libphonenumber-js/es6/helpers/RFC3966.js.map +1 -1
  66. package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +1 -1
  67. package/lib/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js.map +1 -1
  68. package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +10 -49
  69. package/lib/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js.map +1 -1
  70. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +32 -20
  71. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js.map +1 -1
  72. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +4 -5
  73. package/lib/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js.map +1 -1
  74. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +18 -25
  75. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js.map +1 -1
  76. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +11 -12
  77. package/lib/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js.map +1 -1
  78. package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +11 -13
  79. package/lib/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js.map +1 -1
  80. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +11 -21
  81. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js.map +1 -1
  82. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +11 -12
  83. package/lib/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js.map +1 -1
  84. package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +12 -15
  85. package/lib/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js.map +1 -1
  86. package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +1 -1
  87. package/lib/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js.map +1 -1
  88. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +4 -4
  89. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js.map +1 -1
  90. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +35 -59
  91. package/lib/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js.map +1 -1
  92. package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +2 -2
  93. package/lib/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js.map +1 -1
  94. package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +36 -38
  95. package/lib/node_modules/libphonenumber-js/es6/helpers/getNumberType.js.map +1 -1
  96. package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +1 -0
  97. package/lib/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js.map +1 -1
  98. package/lib/node_modules/libphonenumber-js/es6/helpers/isObject.js.map +1 -1
  99. package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +10 -14
  100. package/lib/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js.map +1 -1
  101. package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +4 -4
  102. package/lib/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js.map +1 -1
  103. package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +27 -22
  104. package/lib/node_modules/libphonenumber-js/es6/helpers/parseDigits.js.map +1 -1
  105. package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +6 -6
  106. package/lib/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js.map +1 -1
  107. package/lib/node_modules/libphonenumber-js/es6/isPossible.js +7 -6
  108. package/lib/node_modules/libphonenumber-js/es6/isPossible.js.map +1 -1
  109. package/lib/node_modules/libphonenumber-js/es6/isValid.js +5 -6
  110. package/lib/node_modules/libphonenumber-js/es6/isValid.js.map +1 -1
  111. package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +26 -44
  112. package/lib/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js.map +1 -1
  113. package/lib/node_modules/libphonenumber-js/es6/metadata.js +69 -120
  114. package/lib/node_modules/libphonenumber-js/es6/metadata.js.map +1 -1
  115. package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js +68 -87
  116. package/lib/node_modules/libphonenumber-js/es6/normalizeArguments.js.map +1 -1
  117. package/lib/node_modules/libphonenumber-js/es6/parse.js +40 -58
  118. package/lib/node_modules/libphonenumber-js/es6/parse.js.map +1 -1
  119. package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +36 -32
  120. package/lib/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js.map +1 -1
  121. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber.js.map +1 -1
  122. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +26 -44
  123. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js.map +1 -1
  124. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +28 -46
  125. package/lib/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js.map +1 -1
  126. package/lib/node_modules/libphonenumber-js/es6/tools/semver-compare.js.map +1 -1
  127. package/lib/node_modules/libphonenumber-js/metadata.min.json.js +18 -18
  128. package/lib/node_modules/libphonenumber-js/metadata.min.json.js.map +1 -1
  129. package/lib/node_modules/prop-types/index.js +1 -1
  130. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js +64 -88
  131. package/lib/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -1
  132. package/lib/node_modules/react-day-picker/dist/esm/UI.js.map +1 -1
  133. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -1
  134. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -1
  135. package/lib/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -1
  136. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js +6 -71
  137. package/lib/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -1
  138. package/lib/node_modules/react-day-picker/dist/esm/components/Button.js.map +1 -1
  139. package/lib/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -1
  140. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js +14 -18
  141. package/lib/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -1
  142. package/lib/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -1
  143. package/lib/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -1
  144. package/lib/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -1
  145. package/lib/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -1
  146. package/lib/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -1
  147. package/lib/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -1
  148. package/lib/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -1
  149. package/lib/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -1
  150. package/lib/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -1
  151. package/lib/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -1
  152. package/lib/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -1
  153. package/lib/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -1
  154. package/lib/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -1
  155. package/lib/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -1
  156. package/lib/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -1
  157. package/lib/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -1
  158. package/lib/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -1
  159. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -1
  160. package/lib/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -1
  161. package/lib/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -1
  162. package/lib/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -1
  163. package/lib/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -1
  164. package/lib/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -1
  165. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +2 -3
  166. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -1
  167. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -1
  168. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -1
  169. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -1
  170. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -1
  171. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -1
  172. package/lib/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -1
  173. package/lib/node_modules/react-day-picker/dist/esm/formatters/index.js +1 -1
  174. package/lib/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -1
  175. package/lib/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -1
  176. package/lib/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -1
  177. package/lib/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -1
  178. package/lib/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -1
  179. package/lib/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -1
  180. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -1
  181. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -1
  182. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js +4 -4
  183. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -1
  184. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -1
  185. package/lib/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -1
  186. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -1
  187. package/lib/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -1
  188. package/lib/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -1
  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.map +1 -1
  191. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -1
  192. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -1
  193. package/lib/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -1
  194. package/lib/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -1
  195. package/lib/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -1
  196. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -1
  197. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +2 -2
  198. package/lib/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -1
  199. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +11 -9
  200. package/lib/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -1
  201. package/lib/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -1
  202. package/lib/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -1
  203. package/lib/node_modules/react-day-picker/dist/esm/labels/index.js +2 -2
  204. package/lib/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -1
  205. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +2 -3
  206. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -1
  207. package/lib/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -1
  208. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +1 -1
  209. package/lib/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -1
  210. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -1
  211. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js +1 -1
  212. package/lib/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -1
  213. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +1 -1
  214. package/lib/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -1
  215. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +1 -1
  216. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -1
  217. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +1 -1
  218. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -1
  219. package/lib/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -1
  220. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +1 -1
  221. package/lib/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -1
  222. package/lib/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -1
  223. package/lib/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -1
  224. package/lib/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -1
  225. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js +1 -1
  226. package/lib/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -1
  227. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js +1 -1
  228. package/lib/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -1
  229. package/lib/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -1
  230. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js +0 -6
  231. package/lib/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -1
  232. package/lib/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -1
  233. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js +1 -6
  234. package/lib/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -1
  235. package/lib/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -1
  236. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -1
  237. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -1
  238. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -1
  239. package/lib/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -1
  240. package/lib/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -1
  241. package/lib/node_modules/react-hook-form/dist/index.esm.js +44 -67
  242. package/lib/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
  243. package/lib/node_modules/react-virtuoso/dist/index.js +1200 -1246
  244. package/lib/node_modules/react-virtuoso/dist/index.js.map +1 -1
  245. package/lib/node_modules/ua-parser-js/src/ua-parser.js +71 -85
  246. package/lib/node_modules/ua-parser-js/src/ua-parser.js.map +1 -1
  247. package/lib/styles.css +1 -1
  248. package/lib/styles.css.map +1 -1
  249. package/lib/tsconfig.tsbuildinfo +1 -1
  250. package/lib/validations/regex.js +6 -1
  251. package/lib/validations/regex.js.map +1 -1
  252. package/package.json +106 -106
  253. package/lib/node_modules/@date-fns/tz/tzName/index.js +0 -40
  254. package/lib/node_modules/@date-fns/tz/tzName/index.js.map +0 -1
  255. package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js +0 -64
  256. package/lib/node_modules/react-day-picker/node_modules/date-fns/eachYearOfInterval.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"getPreviousMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Returns the previous month the user can navigate to, based on the given\n * options.\n *\n * The previous month is not always the previous calendar month:\n *\n * - If it is before the `calendarStartMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips back by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The previous month, or `undefined` if navigation is not possible.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","disableNavigation","undefined","pagedNavigation","numberOfMonths","startOfMonth","addMonths","differenceInCalendarMonths","offset","month","monthsDiff"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,gBAAgBA,CAACC,mBAAmB,EAAEC,kBAAkB,EAAEC,OAAO,EAAEC,OAAO,EAAE;EACxF,IAAID,OAAO,CAACE,iBAAiB,EAAE;AAC3B,IAAA,OAAOC,SAAS;AACpB,EAAA;EACA,MAAM;IAAEC,eAAe;AAAEC,IAAAA;AAAe,GAAC,GAAGL,OAAO;EACnD,MAAM;IAAEM,YAAY;IAAEC,SAAS;AAAEC,IAAAA;AAA2B,GAAC,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;AACrB,IAAA,OAAOQ,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AACpC,EAAA;AACA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAACE,KAAK,EAAEX,kBAAkB,CAAC;EACxE,IAAIY,UAAU,IAAI,CAAC,EAAE;AACjB,IAAA,OAAOR,SAAS;AACpB,EAAA;AACA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AACpC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getPreviousMonth.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js"],"sourcesContent":["/**\n * Returns the previous month the user can navigate to, based on the given\n * options.\n *\n * The previous month is not always the previous calendar month:\n *\n * - If it is before the `calendarStartMonth`, it returns `undefined`.\n * - If paged navigation is enabled, it skips back by the number of displayed\n * months.\n *\n * @param firstDisplayedMonth The first month currently displayed in the\n * calendar.\n * @param calendarStartMonth The earliest month the user can navigate to.\n * @param options Navigation options, including `numberOfMonths` and\n * `pagedNavigation`.\n * @param dateLib The date library to use for date manipulation.\n * @returns The previous month, or `undefined` if navigation is not possible.\n */\nexport function getPreviousMonth(firstDisplayedMonth, calendarStartMonth, options, dateLib) {\n if (options.disableNavigation) {\n return undefined;\n }\n const { pagedNavigation, numberOfMonths } = options;\n const { startOfMonth, addMonths, differenceInCalendarMonths } = dateLib;\n const offset = pagedNavigation ? (numberOfMonths ?? 1) : 1;\n const month = startOfMonth(firstDisplayedMonth);\n if (!calendarStartMonth) {\n return addMonths(month, -offset);\n }\n const monthsDiff = differenceInCalendarMonths(month, calendarStartMonth);\n if (monthsDiff <= 0) {\n return undefined;\n }\n return addMonths(month, -offset);\n}\n//# sourceMappingURL=getPreviousMonth.js.map"],"names":["getPreviousMonth","firstDisplayedMonth","calendarStartMonth","options","dateLib","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,EAAA;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,EAAA;AACA,EAAA,MAAME,UAAU,GAAGH,0BAA0B,CAACE,KAAK,EAAEX,kBAAkB,CAAC;EAExE,IAAIY,UAAU,IAAI,CAAC,EAAE;AACnB,IAAA,OAAOR,SAAS;AAClB,EAAA;AAEA,EAAA,OAAOI,SAAS,CAACG,KAAK,EAAE,CAACD,MAAM,CAAC;AAClC;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"getStyleForModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js"],"sourcesContent":["import { UI } from \"../UI.js\";\n/**\n * Returns the computed style for a day based on its modifiers.\n *\n * This function merges the base styles for the day with any styles associated\n * with active modifiers.\n *\n * @param dayModifiers The modifiers applied to the day.\n * @param styles The base styles for the calendar elements.\n * @param modifiersStyles The styles associated with specific modifiers.\n * @returns The computed style for the day.\n */\nexport function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {\n let style = { ...styles?.[UI.Day] };\n Object.entries(dayModifiers)\n .filter(([, active]) => active === true)\n .forEach(([modifier]) => {\n style = {\n ...style,\n ...modifiersStyles?.[modifier],\n };\n });\n return style;\n}\n"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","Day","Object","entries","filter","active","forEach","modifier"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,oBAAoBA,CAACC,YAAY,EAAEC,MAAM,GAAG,EAAE,EAAEC,eAAe,GAAG,EAAE,EAAE;AAClF,EAAA,IAAIC,KAAK,GAAG;AAAE,IAAA,GAAGF,MAAM,GAAGG,EAAE,CAACC,GAAG;GAAG;EACnCC,MAAM,CAACC,OAAO,CAACP,YAAY,CAAC,CACvBQ,MAAM,CAAC,CAAC,GAAGC,MAAM,CAAC,KAAKA,MAAM,KAAK,IAAI,CAAC,CACvCC,OAAO,CAAC,CAAC,CAACC,QAAQ,CAAC,KAAK;AACzBR,IAAAA,KAAK,GAAG;AACJ,MAAA,GAAGA,KAAK;MACR,GAAGD,eAAe,GAAGS,QAAQ;KAChC;AACL,EAAA,CAAC,CAAC;AACF,EAAA,OAAOR,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getStyleForModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js"],"sourcesContent":["import { UI } from \"../UI.js\";\n/**\n * Returns the computed style for a day based on its modifiers.\n *\n * This function merges the base styles for the day with any styles associated\n * with active modifiers.\n *\n * @param dayModifiers The modifiers applied to the day.\n * @param styles The base styles for the calendar elements.\n * @param modifiersStyles The styles associated with specific modifiers.\n * @returns The computed style for the day.\n */\nexport function getStyleForModifiers(dayModifiers, styles = {}, modifiersStyles = {}) {\n let style = { ...styles?.[UI.Day] };\n Object.entries(dayModifiers)\n .filter(([, active]) => active === true)\n .forEach(([modifier]) => {\n style = {\n ...style,\n ...modifiersStyles?.[modifier]\n };\n });\n return style;\n}\n//# sourceMappingURL=getStyleForModifiers.js.map"],"names":["getStyleForModifiers","dayModifiers","styles","modifiersStyles","style","UI","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,EAAA,CAAC,CAAC;AACJ,EAAA,OAAOR,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"getWeekdays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js"],"sourcesContent":["/**\n * Generates a series of 7 days, starting from the beginning of the week, to use\n * for formatting weekday names (e.g., Monday, Tuesday, etc.).\n *\n * @param dateLib The date library to use for date manipulation.\n * @param ISOWeek Whether to use ISO week numbering (weeks start on Monday).\n * @param broadcastCalendar Whether to use the broadcast calendar (weeks start\n * on Monday, but may include adjustments for broadcast-specific rules).\n * @returns An array of 7 dates representing the weekdays.\n */\nexport function getWeekdays(dateLib, ISOWeek, broadcastCalendar) {\n const today = dateLib.today();\n const start = broadcastCalendar\n ? dateLib.startOfBroadcastWeek(today, dateLib)\n : ISOWeek\n ? dateLib.startOfISOWeek(today)\n : dateLib.startOfWeek(today);\n const days = [];\n for (let i = 0; i < 7; i++) {\n const day = dateLib.addDays(start, i);\n days.push(day);\n }\n return days;\n}\n"],"names":["getWeekdays","dateLib","ISOWeek","broadcastCalendar","today","start","startOfISOWeek","startOfWeek","days","i","day","addDays","push"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,WAAWA,CAACC,OAAO,EAAEC,OAAO,EAAEC,iBAAiB,EAAE;AAC7D,EAAA,MAAMC,KAAK,GAAGH,OAAO,CAACG,KAAK,EAAE;EAC7B,MAAMC,KAAK,GAELH,OAAO,GACHD,OAAO,CAACK,cAAc,CAACF,KAAK,CAAC,GAC7BH,OAAO,CAACM,WAAW,CAACH,KAAK,CAAC;EACpC,MAAMI,IAAI,GAAG,EAAE;EACf,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAG,CAAC,EAAEA,CAAC,EAAE,EAAE;IACxB,MAAMC,GAAG,GAAGT,OAAO,CAACU,OAAO,CAACN,KAAK,EAAEI,CAAC,CAAC;AACrCD,IAAAA,IAAI,CAACI,IAAI,CAACF,GAAG,CAAC;AAClB,EAAA;AACA,EAAA,OAAOF,IAAI;AACf;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getWeekdays.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js"],"sourcesContent":["/**\n * Generates a series of 7 days, starting from the beginning of the week, to use\n * for formatting weekday names (e.g., Monday, Tuesday, etc.).\n *\n * @param dateLib The date library to use for date manipulation.\n * @param ISOWeek Whether to use ISO week numbering (weeks start on Monday).\n * @param broadcastCalendar Whether to use the broadcast calendar (weeks start\n * on Monday, but may include adjustments for broadcast-specific rules).\n * @returns An array of 7 dates representing the weekdays.\n */\nexport function getWeekdays(dateLib, ISOWeek, broadcastCalendar) {\n const today = dateLib.today();\n const start = broadcastCalendar\n ? dateLib.startOfBroadcastWeek(today, dateLib)\n : ISOWeek\n ? dateLib.startOfISOWeek(today)\n : dateLib.startOfWeek(today);\n const days = [];\n for (let i = 0; i < 7; i++) {\n const day = dateLib.addDays(start, i);\n days.push(day);\n }\n return days;\n}\n//# sourceMappingURL=getWeekdays.js.map"],"names":["getWeekdays","dateLib","ISOWeek","broadcastCalendar","today","start","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,EAAA;AACA,EAAA,OAAOF,IAAI;AACb;;;;","x_google_ignoreList":[0]}
@@ -7,8 +7,8 @@
7
7
  function getWeeks(months) {
8
8
  const initialWeeks = [];
9
9
  return months.reduce((weeks, month) => {
10
- return weeks.concat(month.weeks.slice());
11
- }, initialWeeks.slice());
10
+ return [...weeks, ...month.weeks];
11
+ }, initialWeeks);
12
12
  }
13
13
 
14
14
  export { getWeeks };
@@ -1 +1 @@
1
- {"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/**\n * Returns an array of calendar weeks from an array of calendar months.\n *\n * @param months The array of calendar months.\n * @returns An array of calendar weeks.\n */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return weeks.concat(month.weeks.slice());\n }, initialWeeks.slice());\n}\n"],"names":["getWeeks","months","initialWeeks","reduce","weeks","month","concat","slice"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,QAAQA,CAACC,MAAM,EAAE;EAC7B,MAAMC,YAAY,GAAG,EAAE;EACvB,OAAOD,MAAM,CAACE,MAAM,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAK;IACnC,OAAOD,KAAK,CAACE,MAAM,CAACD,KAAK,CAACD,KAAK,CAACG,KAAK,EAAE,CAAC;AAC5C,EAAA,CAAC,EAAEL,YAAY,CAACK,KAAK,EAAE,CAAC;AAC5B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getWeeks.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getWeeks.js"],"sourcesContent":["/**\n * Returns an array of calendar weeks from an array of calendar months.\n *\n * @param months The array of calendar months.\n * @returns An array of calendar weeks.\n */\nexport function getWeeks(months) {\n const initialWeeks = [];\n return months.reduce((weeks, month) => {\n return [...weeks, ...month.weeks];\n }, initialWeeks);\n}\n//# sourceMappingURL=getWeeks.js.map"],"names":["getWeeks","months","initialWeeks","reduce","weeks","month"],"mappings":"AAEA;;;;;;AAMM,SAAUA,QAAQA,CAACC,MAAuB,EAAA;EAC9C,MAAMC,YAAY,GAAmB,EAAE;EACvC,OAAOD,MAAM,CAACE,MAAM,CAAC,CAACC,KAAK,EAAEC,KAAK,KAAI;IACpC,OAAO,CAAC,GAAGD,KAAK,EAAE,GAAGC,KAAK,CAACD,KAAK,CAAC;EACnC,CAAC,EAAEF,YAAY,CAAC;AAClB;;;;","x_google_ignoreList":[0]}
@@ -8,26 +8,28 @@
8
8
  * @param navEnd The end date for navigation.
9
9
  * @param formatters The formatters to use for formatting the year labels.
10
10
  * @param dateLib The date library to use for date manipulation.
11
- * @param reverse If true, reverses the order of the years (descending).
12
11
  * @returns An array of dropdown options representing the years, or `undefined`
13
12
  * if `navStart` or `navEnd` is not provided.
14
13
  */
15
- function getYearOptions(navStart, navEnd, formatters, dateLib, reverse = false) {
14
+ function getYearOptions(navStart, navEnd, formatters, dateLib) {
16
15
  if (!navStart) return undefined;
17
16
  if (!navEnd) return undefined;
18
17
  const {
19
18
  startOfYear,
20
19
  endOfYear,
21
- eachYearOfInterval,
22
- getYear
20
+ addYears,
21
+ getYear,
22
+ isBefore,
23
+ isSameYear
23
24
  } = dateLib;
24
25
  const firstNavYear = startOfYear(navStart);
25
26
  const lastNavYear = endOfYear(navEnd);
26
- const years = eachYearOfInterval({
27
- start: firstNavYear,
28
- end: lastNavYear
29
- });
30
- if (reverse) years.reverse();
27
+ const years = [];
28
+ let year = firstNavYear;
29
+ while (isBefore(year, lastNavYear) || isSameYear(year, lastNavYear)) {
30
+ years.push(year);
31
+ year = addYears(year, 1);
32
+ }
31
33
  return years.map(year => {
32
34
  const label = formatters.formatYearDropdown(year, dateLib);
33
35
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/**\n * Returns the years to display in the dropdown.\n *\n * This function generates a list of years between the navigation start and end\n * dates, formatted using the provided formatter.\n *\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the year labels.\n * @param dateLib The date library to use for date manipulation.\n * @param reverse If true, reverses the order of the years (descending).\n * @returns An array of dropdown options representing the years, or `undefined`\n * if `navStart` or `navEnd` is not provided.\n */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib, reverse = false) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, eachYearOfInterval, getYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = eachYearOfInterval({ start: firstNavYear, end: lastNavYear });\n if (reverse)\n years.reverse();\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false,\n };\n });\n}\n"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","reverse","undefined","startOfYear","endOfYear","eachYearOfInterval","getYear","firstNavYear","lastNavYear","years","start","end","map","year","label","formatYearDropdown","value","disabled"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,cAAcA,CAACC,QAAQ,EAAEC,MAAM,EAAEC,UAAU,EAAEC,OAAO,EAAEC,OAAO,GAAG,KAAK,EAAE;AACnF,EAAA,IAAI,CAACJ,QAAQ,EACT,OAAOK,SAAS;AACpB,EAAA,IAAI,CAACJ,MAAM,EACP,OAAOI,SAAS;EACpB,MAAM;IAAEC,WAAW;IAAEC,SAAS;IAAEC,kBAAkB;AAAEC,IAAAA;AAAQ,GAAC,GAAGN,OAAO;AACvE,EAAA,MAAMO,YAAY,GAAGJ,WAAW,CAACN,QAAQ,CAAC;AAC1C,EAAA,MAAMW,WAAW,GAAGJ,SAAS,CAACN,MAAM,CAAC;EACrC,MAAMW,KAAK,GAAGJ,kBAAkB,CAAC;AAAEK,IAAAA,KAAK,EAAEH,YAAY;AAAEI,IAAAA,GAAG,EAAEH;AAAY,GAAC,CAAC;AAC3E,EAAA,IAAIP,OAAO,EACPQ,KAAK,CAACR,OAAO,EAAE;AACnB,EAAA,OAAOQ,KAAK,CAACG,GAAG,CAAEC,IAAI,IAAK;IACvB,MAAMC,KAAK,GAAGf,UAAU,CAACgB,kBAAkB,CAACF,IAAI,EAAEb,OAAO,CAAC;IAC1D,OAAO;AACHgB,MAAAA,KAAK,EAAEV,OAAO,CAACO,IAAI,CAAC;MACpBC,KAAK;AACLG,MAAAA,QAAQ,EAAE;KACb;AACL,EAAA,CAAC,CAAC;AACN;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"getYearOptions.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js"],"sourcesContent":["/**\n * Returns the years to display in the dropdown.\n *\n * This function generates a list of years between the navigation start and end\n * dates, formatted using the provided formatter.\n *\n * @param navStart The start date for navigation.\n * @param navEnd The end date for navigation.\n * @param formatters The formatters to use for formatting the year labels.\n * @param dateLib The date library to use for date manipulation.\n * @returns An array of dropdown options representing the years, or `undefined`\n * if `navStart` or `navEnd` is not provided.\n */\nexport function getYearOptions(navStart, navEnd, formatters, dateLib) {\n if (!navStart)\n return undefined;\n if (!navEnd)\n return undefined;\n const { startOfYear, endOfYear, addYears, getYear, isBefore, isSameYear } = dateLib;\n const firstNavYear = startOfYear(navStart);\n const lastNavYear = endOfYear(navEnd);\n const years = [];\n let year = firstNavYear;\n while (isBefore(year, lastNavYear) || isSameYear(year, lastNavYear)) {\n years.push(year);\n year = addYears(year, 1);\n }\n return years.map((year) => {\n const label = formatters.formatYearDropdown(year, dateLib);\n return {\n value: getYear(year),\n label,\n disabled: false\n };\n });\n}\n//# sourceMappingURL=getYearOptions.js.map"],"names":["getYearOptions","navStart","navEnd","formatters","dateLib","undefined","startOfYear","endOfYear","addYears","getYear","isBefore","isSameYear","firstNavYear","lastNavYear","years","year","push","map","label","formatYearDropdown","value","disabled"],"mappings":"AAIA;;;;;;;;;;;;;AAaM,SAAUA,cAAcA,CAC5BC,QAA0B,EAC1BC,MAAwB,EACxBC,UAAkD,EAClDC,OAAgB,EAAA;AAEhB,EAAA,IAAI,CAACH,QAAQ,EAAE,OAAOI,SAAS;AAC/B,EAAA,IAAI,CAACH,MAAM,EAAE,OAAOG,SAAS;EAC7B,MAAM;IAAEC,WAAW;IAAEC,SAAS;IAAEC,QAAQ;IAAEC,OAAO;IAAEC,QAAQ;AAAEC,IAAAA;AAAU,GAAE,GACvEP,OAAO;AACT,EAAA,MAAMQ,YAAY,GAAGN,WAAW,CAACL,QAAQ,CAAC;AAC1C,EAAA,MAAMY,WAAW,GAAGN,SAAS,CAACL,MAAM,CAAC;EACrC,MAAMY,KAAK,GAAW,EAAE;EAExB,IAAIC,IAAI,GAAGH,YAAY;AACvB,EAAA,OAAOF,QAAQ,CAACK,IAAI,EAAEF,WAAW,CAAC,IAAIF,UAAU,CAACI,IAAI,EAAEF,WAAW,CAAC,EAAE;AACnEC,IAAAA,KAAK,CAACE,IAAI,CAACD,IAAI,CAAC;AAChBA,IAAAA,IAAI,GAAGP,QAAQ,CAACO,IAAI,EAAE,CAAC,CAAC;AAC1B,EAAA;AAEA,EAAA,OAAOD,KAAK,CAACG,GAAG,CAAEF,IAAI,IAAI;IACxB,MAAMG,KAAK,GAAGf,UAAU,CAACgB,kBAAkB,CAACJ,IAAI,EAAEX,OAAO,CAAC;IAC1D,OAAO;AACLgB,MAAAA,KAAK,EAAEX,OAAO,CAACM,IAAI,CAAC;MACpBG,KAAK;AACLG,MAAAA,QAAQ,EAAE;AACX,KAAA;AACH,EAAA,CAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Returns the start date of the week in the broadcast calendar.\n *\n * The broadcast week starts on Monday. If the first day of the month is not a\n * Monday, this function calculates the previous Monday as the start of the\n * broadcast week.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the start of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The start date of the broadcast week.\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","startOfMonth","dayOfWeek","getDay","addDays"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,oBAAoBA,CAACC,IAAI,EAAEC,OAAO,EAAE;AAChD,EAAA,MAAMC,YAAY,GAAGD,OAAO,CAACE,YAAY,CAACH,IAAI,CAAC;AAC/C,EAAA,MAAMI,SAAS,GAAGF,YAAY,CAACG,MAAM,EAAE;EACvC,IAAID,SAAS,KAAK,CAAC,EAAE;AACjB,IAAA,OAAOF,YAAY;AACvB,EAAA,CAAC,MACI,IAAIE,SAAS,KAAK,CAAC,EAAE;IACtB,OAAOH,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,GAAG,CAAC,CAAC;AAChD,EAAA,CAAC,MACI;AACD,IAAA,OAAOD,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,IAAIE,SAAS,GAAG,CAAC,CAAC,CAAC;AAC9D,EAAA;AACJ;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"startOfBroadcastWeek.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js"],"sourcesContent":["/**\n * Returns the start date of the week in the broadcast calendar.\n *\n * The broadcast week starts on Monday. If the first day of the month is not a\n * Monday, this function calculates the previous Monday as the start of the\n * broadcast week.\n *\n * @since 9.4.0\n * @param date The date for which to calculate the start of the broadcast week.\n * @param dateLib The date library to use for date manipulation.\n * @returns The start date of the broadcast week.\n */\nexport function startOfBroadcastWeek(date, dateLib) {\n const firstOfMonth = dateLib.startOfMonth(date);\n const dayOfWeek = firstOfMonth.getDay();\n if (dayOfWeek === 1) {\n return firstOfMonth;\n }\n else if (dayOfWeek === 0) {\n return dateLib.addDays(firstOfMonth, -1 * 6);\n }\n else {\n return dateLib.addDays(firstOfMonth, -1 * (dayOfWeek - 1));\n }\n}\n//# sourceMappingURL=startOfBroadcastWeek.js.map"],"names":["startOfBroadcastWeek","date","dateLib","firstOfMonth","startOfMonth","dayOfWeek","getDay","addDays"],"mappings":"AAEA;;;;;;;;;;;;AAYM,SAAUA,oBAAoBA,CAACC,IAAU,EAAEC,OAAgB,EAAA;AAC/D,EAAA,MAAMC,YAAY,GAAGD,OAAO,CAACE,YAAY,CAACH,IAAI,CAAC;AAC/C,EAAA,MAAMI,SAAS,GAAGF,YAAY,CAACG,MAAM,EAAE;EAEvC,IAAID,SAAS,KAAK,CAAC,EAAE;AACnB,IAAA,OAAOF,YAAY;AACrB,EAAA,CAAC,MAAM,IAAIE,SAAS,KAAK,CAAC,EAAE;IAC1B,OAAOH,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,GAAG,CAAC,CAAC;AAC9C,EAAA,CAAC,MAAM;AACL,IAAA,OAAOD,OAAO,CAACK,OAAO,CAACJ,YAAY,EAAE,EAAE,IAAIE,SAAS,GAAG,CAAC,CAAC,CAAC;AAC5D,EAAA;AACF;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * This hook allows a component to support both controlled and uncontrolled\n * states by determining whether the `controlledValue` is provided. If it is\n * undefined, the hook falls back to using the internal state.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param defaultValue The initial value for the uncontrolled state.\n * @param controlledValue The value for the controlled state. If undefined, the\n * component will use the uncontrolled state.\n * @returns A tuple where the first element is the current value (either\n * controlled or uncontrolled) and the second element is a setter function to\n * update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState","value","undefined"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,kBAAkBA,CAACC,YAAY,EAAEC,eAAe,EAAE;EAC9D,MAAM,CAACC,iBAAiB,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAACJ,YAAY,CAAC;EAC5D,MAAMK,KAAK,GAAGJ,eAAe,KAAKK,SAAS,GAAGJ,iBAAiB,GAAGD,eAAe;AACjF,EAAA,OAAO,CAACI,KAAK,EAAEF,QAAQ,CAAC;AAC5B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useControlledValue.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js"],"sourcesContent":["import { useState } from \"react\";\n/**\n * A custom hook for managing both controlled and uncontrolled component states.\n *\n * This hook allows a component to support both controlled and uncontrolled\n * states by determining whether the `controlledValue` is provided. If it is\n * undefined, the hook falls back to using the internal state.\n *\n * @example\n * // Uncontrolled usage\n * const [value, setValue] = useControlledValue(0, undefined);\n *\n * // Controlled usage\n * const [value, setValue] = useControlledValue(0, props.value);\n *\n * @template T - The type of the value.\n * @param defaultValue The initial value for the uncontrolled state.\n * @param controlledValue The value for the controlled state. If undefined, the\n * component will use the uncontrolled state.\n * @returns A tuple where the first element is the current value (either\n * controlled or uncontrolled) and the second element is a setter function to\n * update the value.\n */\nexport function useControlledValue(defaultValue, controlledValue) {\n const [uncontrolledValue, setValue] = useState(defaultValue);\n const value = controlledValue === undefined ? uncontrolledValue : controlledValue;\n return [value, setValue];\n}\n//# sourceMappingURL=useControlledValue.js.map"],"names":["useControlledValue","defaultValue","controlledValue","uncontrolledValue","setValue","useState","value","undefined"],"mappings":";;AAIA;;;;;;;;;;;;;;;;;;;;;;AAsBM,SAAUA,kBAAkBA,CAChCC,YAAe,EACfC,eAA8B,EAAA;EAE9B,MAAM,CAACC,iBAAiB,EAAEC,QAAQ,CAAC,GAAGC,QAAQ,CAACJ,YAAY,CAAC;EAE5D,MAAMK,KAAK,GACTJ,eAAe,KAAKK,SAAS,GAAGJ,iBAAiB,GAAGD,eAAe;AAErE,EAAA,OAAO,CAACI,KAAK,EAAEF,QAAQ,CAAgC;AACzD;;;;","x_google_ignoreList":[0]}
@@ -1,8 +1,8 @@
1
- export { labelDay, labelDayButton } from './labelDayButton.js';
2
1
  export { labelCaption, labelGrid } from './labelGrid.js';
3
2
  export { labelGridcell } from './labelGridcell.js';
4
- export { labelMonthDropdown } from './labelMonthDropdown.js';
3
+ export { labelDay, labelDayButton } from './labelDayButton.js';
5
4
  export { labelNav } from './labelNav.js';
5
+ export { labelMonthDropdown } from './labelMonthDropdown.js';
6
6
  export { labelNext } from './labelNext.js';
7
7
  export { labelPrevious } from './labelPrevious.js';
8
8
  export { labelWeekday } from './labelWeekday.js';
@@ -1 +1 @@
1
- {"version":3,"file":"labelDayButton.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelDayButton.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a day button.\n *\n * Use the `modifiers` argument to provide additional context for the label,\n * such as indicating if the day is \"today\" or \"selected.\"\n *\n * @defaultValue The formatted date.\n * @param date - The date to format.\n * @param modifiers - The modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the day button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelDayButton(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers.today)\n label = `Today, ${label}`;\n if (modifiers.selected)\n label = `${label}, selected`;\n return label;\n}\n/**\n * @ignore\n * @deprecated Use `labelDayButton` instead.\n */\nexport const labelDay = labelDayButton;\n"],"names":["labelDayButton","date","modifiers","options","dateLib","label","DateLib","format","today","selected","labelDay"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,cAAcA,CAACC,IAAI,EAAEC,SAAS,EAAEC,OAAO,EAAEC,OAAO,EAAE;AAC9D,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,CAACM,KAAK,EACfH,KAAK,GAAG,CAAA,OAAA,EAAUA,KAAK,CAAA,CAAE;EAC7B,IAAIH,SAAS,CAACO,QAAQ,EAClBJ,KAAK,GAAG,CAAA,EAAGA,KAAK,CAAA,UAAA,CAAY;AAChC,EAAA,OAAOA,KAAK;AAChB;AACA;AACA;AACA;AACA;AACO,MAAMK,QAAQ,GAAGV;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelDayButton.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelDayButton.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a day button.\n *\n * Use the `modifiers` argument to provide additional context for the label,\n * such as indicating if the day is \"today\" or \"selected.\"\n *\n * @defaultValue The formatted date.\n * @param date - The date to format.\n * @param modifiers - The modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the day button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelDayButton(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers.today)\n label = `Today, ${label}`;\n if (modifiers.selected)\n label = `${label}, selected`;\n return label;\n}\n/**\n * @ignore\n * @deprecated Use `labelDayButton` instead.\n */\nexport const labelDay = labelDayButton;\n//# sourceMappingURL=labelDayButton.js.map"],"names":["labelDayButton","date","modifiers","options","dateLib","label","DateLib","format","today","selected","labelDay"],"mappings":";;AAGA;;;;;;;;;;;;;;;AAeM,SAAUA,cAAcA,CAC5BC,IAAU,EACVC,SAAoB,EACpBC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,CAACM,KAAK,EAAEH,KAAK,GAAG,CAAA,OAAA,EAAUA,KAAK,CAAA,CAAE;EAC9C,IAAIH,SAAS,CAACO,QAAQ,EAAEJ,KAAK,GAAG,CAAA,EAAGA,KAAK,CAAA,UAAA,CAAY;AACpD,EAAA,OAAOA,KAAK;AACd;AAEA;;;;AAIO,MAAMK,QAAQ,GAAGV;;;;","x_google_ignoreList":[0]}
@@ -4,7 +4,7 @@ import { DateLib } from '../classes/DateLib.js';
4
4
  * Generates the ARIA label for the month grid, which is announced when entering
5
5
  * the grid.
6
6
  *
7
- * @defaultValue Locale-specific month/year order (e.g., "November 2022").
7
+ * @defaultValue `LLLL y` (e.g., "November 2022").
8
8
  * @param date - The date representing the month.
9
9
  * @param options - Optional configuration for the date formatting library.
10
10
  * @param dateLib - An optional instance of the date formatting library.
@@ -13,8 +13,7 @@ import { DateLib } from '../classes/DateLib.js';
13
13
  * @see https://daypicker.dev/docs/translation#aria-labels
14
14
  */
15
15
  function labelGrid(date, options, dateLib) {
16
- const lib = dateLib ?? new DateLib(options);
17
- return lib.formatMonthYear(date);
16
+ return (dateLib ?? new DateLib(options)).format(date, "LLLL y");
18
17
  }
19
18
  /**
20
19
  * @ignore
@@ -1 +1 @@
1
- {"version":3,"file":"labelGrid.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGrid.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for the month grid, which is announced when entering\n * the grid.\n *\n * @defaultValue Locale-specific month/year order (e.g., \"November 2022\").\n * @param date - The date representing the month.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the month grid.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGrid(date, options, dateLib) {\n const lib = dateLib ?? new DateLib(options);\n return lib.formatMonthYear(date);\n}\n/**\n * @ignore\n * @deprecated Use {@link labelGrid} instead.\n */\nexport const labelCaption = labelGrid;\n"],"names":["labelGrid","date","options","dateLib","lib","DateLib","formatMonthYear","labelCaption"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,SAASA,CAACC,IAAI,EAAEC,OAAO,EAAEC,OAAO,EAAE;EAC9C,MAAMC,GAAG,GAAGD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC;AAC3C,EAAA,OAAOE,GAAG,CAACE,eAAe,CAACL,IAAI,CAAC;AACpC;AACA;AACA;AACA;AACA;AACO,MAAMM,YAAY,GAAGP;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelGrid.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGrid.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for the month grid, which is announced when entering\n * the grid.\n *\n * @defaultValue `LLLL y` (e.g., \"November 2022\").\n * @param date - The date representing the month.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the month grid.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGrid(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"LLLL y\");\n}\n/**\n * @ignore\n * @deprecated Use {@link labelGrid} instead.\n */\nexport const labelCaption = labelGrid;\n//# sourceMappingURL=labelGrid.js.map"],"names":["labelGrid","date","options","dateLib","DateLib","format","labelCaption"],"mappings":";;AAEA;;;;;;;;;;;;AAYM,SAAUA,SAASA,CACvBC,IAAU,EACVC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,IAAI,EAAE,QAAQ,CAAC;AACjE;AAEA;;;;AAIO,MAAMK,YAAY,GAAGN;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelGridcell.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGridcell.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the label for a day grid cell when the calendar is not interactive.\n *\n * @param date - The date to format.\n * @param modifiers - Optional modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The label for the day grid cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGridcell(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Today, ${label}`;\n }\n return label;\n}\n"],"names":["labelGridcell","date","modifiers","options","dateLib","label","DateLib","format","today"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,aAAaA,CAACC,IAAI,EAAEC,SAAS,EAAEC,OAAO,EAAEC,OAAO,EAAE;AAC7D,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,EAAEM,KAAK,EAAE;IAClBH,KAAK,GAAG,CAAA,OAAA,EAAUA,KAAK,CAAA,CAAE;AAC7B,EAAA;AACA,EAAA,OAAOA,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelGridcell.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelGridcell.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the label for a day grid cell when the calendar is not interactive.\n *\n * @param date - The date to format.\n * @param modifiers - Optional modifiers providing context for the day.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The label for the day grid cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelGridcell(date, modifiers, options, dateLib) {\n let label = (dateLib ?? new DateLib(options)).format(date, \"PPPP\");\n if (modifiers?.today) {\n label = `Today, ${label}`;\n }\n return label;\n}\n//# sourceMappingURL=labelGridcell.js.map"],"names":["labelGridcell","date","modifiers","options","dateLib","label","DateLib","format","today"],"mappings":";;AAGA;;;;;;;;;;;AAWM,SAAUA,aAAaA,CAC3BC,IAAU,EACVC,SAAqB,EACrBC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,IAAIC,KAAK,GAAG,CAACD,OAAO,IAAI,IAAIE,OAAO,CAACH,OAAO,CAAC,EAAEI,MAAM,CAACN,IAAI,EAAE,MAAM,CAAC;EAClE,IAAIC,SAAS,EAAEM,KAAK,EAAE;IACpBH,KAAK,GAAG,CAAA,OAAA,EAAUA,KAAK,CAAA,CAAE;AAC3B,EAAA;AACA,EAAA,OAAOA,KAAK;AACd;;;;","x_google_ignoreList":[0]}
@@ -7,7 +7,7 @@
7
7
  * @group Labels
8
8
  * @see https://daypicker.dev/docs/translation#aria-labels
9
9
  */
10
- function labelMonthDropdown(_options) {
10
+ function labelMonthDropdown(options) {
11
11
  return "Choose the Month";
12
12
  }
13
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"labelMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the months dropdown.\n *\n * @defaultValue `\"Choose the Month\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the months dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelMonthDropdown(_options) {\n return \"Choose the Month\";\n}\n"],"names":["labelMonthDropdown","_options"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,kBAAkBA,CAACC,QAAQ,EAAE;AACzC,EAAA,OAAO,kBAAkB;AAC7B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelMonthDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the months dropdown.\n *\n * @defaultValue `\"Choose the Month\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the months dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelMonthDropdown(options) {\n return \"Choose the Month\";\n}\n//# sourceMappingURL=labelMonthDropdown.js.map"],"names":["labelMonthDropdown","options"],"mappings":"AAEA;;;;;;;;;AASM,SAAUA,kBAAkBA,CAACC,OAAwB,EAAA;AACzD,EAAA,OAAO,kBAAkB;AAC3B;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelNav.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNav.js"],"sourcesContent":["/**\n * Generates the ARIA label for the navigation toolbar.\n *\n * @defaultValue `\"\"`\n * @returns The ARIA label for the navigation toolbar.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNav() {\n return \"\";\n}\n"],"names":["labelNav"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,QAAQA,GAAG;AACvB,EAAA,OAAO,EAAE;AACb;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelNav.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNav.js"],"sourcesContent":["/**\n * Generates the ARIA label for the navigation toolbar.\n *\n * @defaultValue `\"\"`\n * @returns The ARIA label for the navigation toolbar.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNav() {\n return \"\";\n}\n//# sourceMappingURL=labelNav.js.map"],"names":["labelNav"],"mappings":"AAAA;;;;;;;;AAQM,SAAUA,QAAQA,GAAA;AACtB,EAAA,OAAO,EAAE;AACX;;;;","x_google_ignoreList":[0]}
@@ -8,7 +8,7 @@
8
8
  * @group Labels
9
9
  * @see https://daypicker.dev/docs/translation#aria-labels
10
10
  */
11
- function labelNext(_month) {
11
+ function labelNext(month) {
12
12
  return "Go to the Next Month";
13
13
  }
14
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"labelNext.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNext.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"next month\" button.\n *\n * @defaultValue `\"Go to the Next Month\"`\n * @param month - The date representing the next month, or `undefined` if there\n * is no next month.\n * @returns The ARIA label for the \"next month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNext(_month) {\n return \"Go to the Next Month\";\n}\n"],"names":["labelNext","_month"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,SAASA,CAACC,MAAM,EAAE;AAC9B,EAAA,OAAO,sBAAsB;AACjC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelNext.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelNext.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"next month\" button.\n *\n * @defaultValue `\"Go to the Next Month\"`\n * @param month - The date representing the next month, or `undefined` if there\n * is no next month.\n * @returns The ARIA label for the \"next month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelNext(month) {\n return \"Go to the Next Month\";\n}\n//# sourceMappingURL=labelNext.js.map"],"names":["labelNext","month"],"mappings":"AAAA;;;;;;;;;;AAUM,SAAUA,SAASA,CAACC,KAAuB,EAAA;AAC/C,EAAA,OAAO,sBAAsB;AAC/B;;;;","x_google_ignoreList":[0]}
@@ -8,7 +8,7 @@
8
8
  * @group Labels
9
9
  * @see https://daypicker.dev/docs/translation#aria-labels
10
10
  */
11
- function labelPrevious(_month) {
11
+ function labelPrevious(month) {
12
12
  return "Go to the Previous Month";
13
13
  }
14
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"labelPrevious.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelPrevious.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"previous month\" button.\n *\n * @defaultValue `\"Go to the Previous Month\"`\n * @param month - The date representing the previous month, or `undefined` if\n * there is no previous month.\n * @returns The ARIA label for the \"previous month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelPrevious(_month) {\n return \"Go to the Previous Month\";\n}\n"],"names":["labelPrevious","_month"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,aAAaA,CAACC,MAAM,EAAE;AAClC,EAAA,OAAO,0BAA0B;AACrC;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelPrevious.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelPrevious.js"],"sourcesContent":["/**\n * Generates the ARIA label for the \"previous month\" button.\n *\n * @defaultValue `\"Go to the Previous Month\"`\n * @param month - The date representing the previous month, or `undefined` if\n * there is no previous month.\n * @returns The ARIA label for the \"previous month\" button.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelPrevious(month) {\n return \"Go to the Previous Month\";\n}\n//# sourceMappingURL=labelPrevious.js.map"],"names":["labelPrevious","month"],"mappings":"AAAA;;;;;;;;;;AAUM,SAAUA,aAAaA,CAACC,KAAuB,EAAA;AACnD,EAAA,OAAO,0BAA0B;AACnC;;;;","x_google_ignoreList":[0]}
@@ -8,7 +8,7 @@
8
8
  * @group Labels
9
9
  * @see https://daypicker.dev/docs/translation#aria-labels
10
10
  */
11
- function labelWeekNumber(weekNumber, _options) {
11
+ function labelWeekNumber(weekNumber, options) {
12
12
  return `Week ${weekNumber}`;
13
13
  }
14
14
 
@@ -1 +1 @@
1
- {"version":3,"file":"labelWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number cell (the first cell in a row).\n *\n * @defaultValue `Week ${weekNumber}`\n * @param weekNumber - The number of the week.\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumber(weekNumber, _options) {\n return `Week ${weekNumber}`;\n}\n"],"names":["labelWeekNumber","weekNumber","_options"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,eAAeA,CAACC,UAAU,EAAEC,QAAQ,EAAE;EAClD,OAAO,CAAA,KAAA,EAAQD,UAAU,CAAA,CAAE;AAC/B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelWeekNumber.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number cell (the first cell in a row).\n *\n * @defaultValue `Week ${weekNumber}`\n * @param weekNumber - The number of the week.\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number cell.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumber(weekNumber, options) {\n return `Week ${weekNumber}`;\n}\n//# sourceMappingURL=labelWeekNumber.js.map"],"names":["labelWeekNumber","weekNumber","options"],"mappings":"AAEA;;;;;;;;;;AAUM,SAAUA,eAAeA,CAC7BC,UAAkB,EAClBC,OAAwB,EAAA;EAExB,OAAO,CAAA,KAAA,EAAQD,UAAU,CAAA,CAAE;AAC7B;;;;","x_google_ignoreList":[0]}
@@ -7,7 +7,7 @@
7
7
  * @group Labels
8
8
  * @see https://daypicker.dev/docs/translation#aria-labels
9
9
  */
10
- function labelWeekNumberHeader(_options) {
10
+ function labelWeekNumberHeader(options) {
11
11
  return "Week Number";
12
12
  }
13
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"labelWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number header element.\n *\n * @defaultValue `\"Week Number\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumberHeader(_options) {\n return \"Week Number\";\n}\n"],"names":["labelWeekNumberHeader","_options"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,qBAAqBA,CAACC,QAAQ,EAAE;AAC5C,EAAA,OAAO,aAAa;AACxB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelWeekNumberHeader.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js"],"sourcesContent":["/**\n * Generates the ARIA label for the week number header element.\n *\n * @defaultValue `\"Week Number\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the week number header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekNumberHeader(options) {\n return \"Week Number\";\n}\n//# sourceMappingURL=labelWeekNumberHeader.js.map"],"names":["labelWeekNumberHeader","options"],"mappings":"AAEA;;;;;;;;;AASM,SAAUA,qBAAqBA,CAACC,OAAwB,EAAA;AAC5D,EAAA,OAAO,aAAa;AACtB;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"labelWeekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekday.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a weekday column header.\n *\n * @defaultValue `\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"`\n * @param date - The date representing the weekday.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the weekday column header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekday(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"cccc\");\n}\n"],"names":["labelWeekday","date","options","dateLib","DateLib","format"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,YAAYA,CAACC,IAAI,EAAEC,OAAO,EAAEC,OAAO,EAAE;AACjD,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,IAAI,EAAE,MAAM,CAAC;AACjE;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelWeekday.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelWeekday.js"],"sourcesContent":["import { DateLib } from \"../classes/DateLib.js\";\n/**\n * Generates the ARIA label for a weekday column header.\n *\n * @defaultValue `\"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\", \"Sunday\"`\n * @param date - The date representing the weekday.\n * @param options - Optional configuration for the date formatting library.\n * @param dateLib - An optional instance of the date formatting library.\n * @returns The ARIA label for the weekday column header.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelWeekday(date, options, dateLib) {\n return (dateLib ?? new DateLib(options)).format(date, \"cccc\");\n}\n//# sourceMappingURL=labelWeekday.js.map"],"names":["labelWeekday","date","options","dateLib","DateLib","format"],"mappings":";;AAEA;;;;;;;;;;;AAWM,SAAUA,YAAYA,CAC1BC,IAAU,EACVC,OAAwB,EACxBC,OAAiB,EAAA;AAEjB,EAAA,OAAO,CAACA,OAAO,IAAI,IAAIC,OAAO,CAACF,OAAO,CAAC,EAAEG,MAAM,CAACJ,IAAI,EAAE,MAAM,CAAC;AAC/D;;;;","x_google_ignoreList":[0]}
@@ -7,7 +7,7 @@
7
7
  * @group Labels
8
8
  * @see https://daypicker.dev/docs/translation#aria-labels
9
9
  */
10
- function labelYearDropdown(_options) {
10
+ function labelYearDropdown(options) {
11
11
  return "Choose the Year";
12
12
  }
13
13
 
@@ -1 +1 @@
1
- {"version":3,"file":"labelYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the years dropdown.\n *\n * @defaultValue `\"Choose the Year\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the years dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelYearDropdown(_options) {\n return \"Choose the Year\";\n}\n"],"names":["labelYearDropdown","_options"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,iBAAiBA,CAACC,QAAQ,EAAE;AACxC,EAAA,OAAO,iBAAiB;AAC5B;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"labelYearDropdown.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js"],"sourcesContent":["/**\n * Generates the ARIA label for the years dropdown.\n *\n * @defaultValue `\"Choose the Year\"`\n * @param options - Optional configuration for the date formatting library.\n * @returns The ARIA label for the years dropdown.\n * @group Labels\n * @see https://daypicker.dev/docs/translation#aria-labels\n */\nexport function labelYearDropdown(options) {\n return \"Choose the Year\";\n}\n//# sourceMappingURL=labelYearDropdown.js.map"],"names":["labelYearDropdown","options"],"mappings":"AAEA;;;;;;;;;AASM,SAAUA,iBAAiBA,CAACC,OAAwB,EAAA;AACxD,EAAA,OAAO,iBAAiB;AAC1B;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useMulti.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useMulti","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","date","some","d","min","max","select","triggerDate","modifiers","e","newDates","length","filter"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,QAAQA,CAACC,KAAK,EAAEC,OAAO,EAAE;EACrC,MAAM;AAAEC,IAAAA,QAAQ,EAAEC,iBAAiB;IAAEC,QAAQ;AAAEC,IAAAA;AAAU,GAAC,GAAGL,KAAK;AAClE,EAAA,MAAM,CAACM,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAACL,iBAAiB,EAAEE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CAAC;AACzH,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;EACnE,MAAM;AAAEO,IAAAA;AAAU,GAAC,GAAGT,OAAO;EAC7B,MAAMU,UAAU,GAAIC,IAAI,IAAK;AACzB,IAAA,OAAOV,QAAQ,EAAEW,IAAI,CAAEC,CAAC,IAAKJ,SAAS,CAACI,CAAC,EAAEF,IAAI,CAAC,CAAC,IAAI,KAAK;EAC7D,CAAC;EACD,MAAM;IAAEG,GAAG;AAAEC,IAAAA;AAAI,GAAC,GAAGhB,KAAK;EAC1B,MAAMiB,MAAM,GAAGA,CAACC,WAAW,EAAEC,SAAS,EAAEC,CAAC,KAAK;IAC1C,IAAIC,QAAQ,GAAG,CAAC,IAAInB,QAAQ,IAAI,EAAE,CAAC,CAAC;AACpC,IAAA,IAAIS,UAAU,CAACO,WAAW,CAAC,EAAE;AACzB,MAAA,IAAIhB,QAAQ,EAAEoB,MAAM,KAAKP,GAAG,EAAE;AAC1B;AACA,QAAA;AACJ,MAAA;AACA,MAAA,IAAIX,QAAQ,IAAIF,QAAQ,EAAEoB,MAAM,KAAK,CAAC,EAAE;AACpC;AACA,QAAA;AACJ,MAAA;AACAD,MAAAA,QAAQ,GAAGnB,QAAQ,EAAEqB,MAAM,CAAET,CAAC,IAAK,CAACJ,SAAS,CAACI,CAAC,EAAEI,WAAW,CAAC,CAAC;AAClE,IAAA,CAAC,MACI;AACD,MAAA,IAAIhB,QAAQ,EAAEoB,MAAM,KAAKN,GAAG,EAAE;AAC1B;QACAK,QAAQ,GAAG,CAACH,WAAW,CAAC;AAC5B,MAAA,CAAC,MACI;AACD;AACAG,QAAAA,QAAQ,GAAG,CAAC,GAAGA,QAAQ,EAAEH,WAAW,CAAC;AACzC,MAAA;AACJ,IAAA;IACA,IAAI,CAACb,QAAQ,EAAE;MACXE,WAAW,CAACc,QAAQ,CAAC;AACzB,IAAA;IACAhB,QAAQ,GAAGgB,QAAQ,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAC/C,IAAA,OAAOC,QAAQ;EACnB,CAAC;EACD,OAAO;IACHnB,QAAQ;IACRe,MAAM;AACNN,IAAAA;GACH;AACL;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useMulti.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useMulti.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage multiple-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected dates, a function to select dates,\n * and a function to check if a date is selected.\n */\nexport function useMulti(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (date) => {\n return selected?.some((d) => isSameDay(d, date)) ?? false;\n };\n const { min, max } = props;\n const select = (triggerDate, modifiers, e) => {\n let newDates = [...(selected ?? [])];\n if (isSelected(triggerDate)) {\n if (selected?.length === min) {\n // Min value reached, do nothing\n return;\n }\n if (required && selected?.length === 1) {\n // Required value already selected do nothing\n return;\n }\n newDates = selected?.filter((d) => !isSameDay(d, triggerDate));\n }\n else {\n if (selected?.length === max) {\n // Max value reached, reset the selection to date\n newDates = [triggerDate];\n }\n else {\n // Add the date to the selection\n newDates = [...newDates, triggerDate];\n }\n }\n if (!onSelect) {\n setSelected(newDates);\n }\n onSelect?.(newDates, triggerDate, modifiers, e);\n return newDates;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useMulti.js.map"],"names":["useMulti","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","date","some","d","min","max","select","triggerDate","modifiers","e","newDates","length","filter"],"mappings":";;AAWA;;;;;;;;;AASM,SAAUA,QAAQA,CACtBC,KAAQ,EACRC,OAAgB,EAAA;EAEhB,MAAM;AACJC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGL,KAAmB;AAEvB,EAAA,MAAM,CAACM,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CACzC;AAED,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;EAEnE,MAAM;AAAEO,IAAAA;AAAS,GAAE,GAAGT,OAAO;EAE7B,MAAMU,UAAU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x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useRange","props","dateLib","disabled","excludeDisabled","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSelected","date","rangeIncludesDate","select","triggerDate","modifiers","e","min","max","newRange","addToRange","from","to","rangeContainsModifiers"],"mappings":";;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,QAAQA,CAACC,KAAK,EAAEC,OAAO,EAAE;EACrC,MAAM;IAAEC,QAAQ;IAAEC,eAAe;AAAEC,IAAAA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AAA,OAAOG,QAAQ;EACnB,CAAC;EACD,OAAO;IACHjB,QAAQ;IACRW,MAAM;AACNH,IAAAA;GACH;AACL;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useRange.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useRange.js.map"],"names":["useRange","props","dateLib","disabled","excludeDisabled","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSelected","date","rangeIncludesDate","select","triggerDate","modifiers","e","min","max","newRange","addToRange","from","to","rangeContainsModifiers"],"mappings":";;;;;AAaA;;;;;;;;;AASM,SAAUA,QAAQA,CACtBC,KA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AAQ,GAAGc,QAAQ,EAAEL,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAE/C,IAAA,OAAOG,QAAQ;EACjB,CAAC;EAED,OAAO;IACLjB,QAAQ;IACRW,MAAM;AACNH,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"useSingle.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useSingle","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","compareDate","select","triggerDate","modifiers","e","newDate"],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,SAASA,CAACC,KAAK,EAAEC,OAAO,EAAE;EACtC,MAAM;AAAEC,IAAAA,QAAQ,EAAEC,iBAAiB;IAAEC,QAAQ;AAAEC,IAAAA;AAAU,GAAC,GAAGL,KAAK;AAClE,EAAA,MAAM,CAACM,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAACL,iBAAiB,EAAEE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CAAC;AACzH,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;EACnE,MAAM;AAAEO,IAAAA;AAAU,GAAC,GAAGT,OAAO;EAC7B,MAAMU,UAAU,GAAIC,WAAW,IAAK;IAChC,OAAOV,QAAQ,GAAGQ,SAAS,CAACR,QAAQ,EAAEU,WAAW,CAAC,GAAG,KAAK;EAC9D,CAAC;EACD,MAAMC,MAAM,GAAGA,CAACC,WAAW,EAAEC,SAAS,EAAEC,CAAC,KAAK;IAC1C,IAAIC,OAAO,GAAGH,WAAW;AACzB,IAAA,IAAI,CAACV,QAAQ,IAAIF,QAAQ,IAAIA,QAAQ,IAAIQ,SAAS,CAACI,WAAW,EAAEZ,QAAQ,CAAC,EAAE;AACvE;AACAe,MAAAA,OAAO,GAAGR,SAAS;AACvB,IAAA;IACA,IAAI,CAACJ,QAAQ,EAAE;MACXE,WAAW,CAACU,OAAO,CAAC;AACxB,IAAA;AACA,IAAA,IAAIb,QAAQ,EAAE;MACVC,QAAQ,GAAGY,OAAO,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAClD,IAAA,CAAC,MACI;MACDX,QAAQ,GAAGY,OAAO,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAClD,IAAA;AACA,IAAA,OAAOC,OAAO;EAClB,CAAC;EACD,OAAO;IACHf,QAAQ;IACRW,MAAM;AACNF,IAAAA;GACH;AACL;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useSingle.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected\n };\n}\n//# sourceMappingURL=useSingle.js.map"],"names":["useSingle","props","dateLib","selected","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","undefined","isSameDay","isSelected","compareDate","select","triggerDate","modifiers","e","newDate"],"mappings":";;AAmBA;;;;;;;;;AASM,SAAUA,SAASA,CACvBC,KAAqB,EACrBC,OAAgB,EAAA;EAEhB,MAAM;AACJC,IAAAA,QAAQ,EAAEC,iBAAiB;IAC3BC,QAAQ;AACRC,IAAAA;AAAQ,GACT,GAAGL,KAAoB;AAExB,EAAA,MAAM,CAACM,kBAAkB,EAAEC,WAAW,CAAC,GAAGC,kBAAkB,CAC1DL,iBAAiB,EACjBE,QAAQ,GAAGF,iBAAiB,GAAGM,SAAS,CACzC;AAED,EAAA,MAAMP,QAAQ,GAAG,CAACG,QAAQ,GAAGC,kBAAkB,GAAGH,iBAAiB;EAEnE,MAAM;AAAEO,IAAAA;AAAS,GAAE,GAAGT,OAAO;EAE7B,MAAMU,UAAU,GAAIC,WAAiB,IAAI;IACvC,OAAOV,QAAQ,GAAGQ,SAAS,CAACR,QAAQ,EAAEU,WAAW,CAAC,GAAG,KAAK;EAC5D,CAAC;EAED,MAAMC,MAAM,GAAGA,CACbC,WAAiB,EACjBC,SAAoB,EACpBC,CAAyC,KACvC;IACF,IAAIC,OAAO,GAAqBH,WAAW;AAC3C,IAAA,IAAI,CAACV,QAAQ,IAAIF,QAAQ,IAAIA,QAAQ,IAAIQ,SAAS,CAACI,WAAW,EAAEZ,QAAQ,CAAC,EAAE;AACzE;AACAe,MAAAA,OAAO,GAAGR,SAAS;AACrB,IAAA;IACA,IAAI,CAACJ,QAAQ,EAAE;MACbE,WAAW,CAACU,OAAO,CAAC;AACtB,IAAA;AACA,IAAA,IAAIb,QAAQ,EAAE;MACZC,QAAQ,GAAGY,OAAe,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AACxD,IAAA,CAAC,MAAM;MACLX,QAAQ,GAAGY,OAAO,EAAEH,WAAW,EAAEC,SAAS,EAAEC,CAAC,CAAC;AAChD,IAAA;AACA,IAAA,OAAOC,OAAO;EAChB,CAAC;EAED,OAAO;IACLf,QAAQ;IACRW,MAAM;AACNF,IAAAA;AACe,GAAA;AACnB;;;;","x_google_ignoreList":[0]}
@@ -83,7 +83,7 @@ function useAnimation(rootElRef, enabled, {
83
83
  }
84
84
  const previousMonthEls = previousRootElSnapshot instanceof HTMLElement ? queryMonthEls(previousRootElSnapshot) : [];
85
85
  const currentMonthEls = queryMonthEls(rootElRef.current);
86
- if (currentMonthEls?.every(el => el instanceof HTMLElement) && previousMonthEls && previousMonthEls.every(el => el instanceof HTMLElement)) {
86
+ if (currentMonthEls && currentMonthEls.every(el => el instanceof HTMLElement) && previousMonthEls && previousMonthEls.every(el => el instanceof HTMLElement)) {
87
87
  animatingRef.current = true;
88
88
  // set isolation to isolate to isolate the stacking context during animation
89
89
  rootElRef.current.style.isolation = "isolate";
@@ -1 +1 @@
1
- {"version":3,"file":"useAnimation.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useAnimation.js"],"sourcesContent":["import { useLayoutEffect, useRef } from \"react\";\nimport { Animation } from \"./UI.js\";\nconst asHtmlElement = (element) => {\n if (element instanceof HTMLElement)\n return element;\n return null;\n};\nconst queryMonthEls = (element) => [\n ...(element.querySelectorAll(\"[data-animated-month]\") ?? []),\n];\nconst queryMonthEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-month]\"));\nconst queryCaptionEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-caption]\"));\nconst queryWeeksEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weeks]\"));\nconst queryNavEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-nav]\"));\nconst queryWeekdaysEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weekdays]\"));\n/**\n * Handles animations for transitioning between months in the DayPicker\n * component.\n *\n * @private\n * @param rootElRef - A reference to the root element of the DayPicker\n * component.\n * @param enabled - Whether animations are enabled.\n * @param options - Configuration options for the animation, including class\n * names, months, focused day, and the date utility library.\n */\nexport function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib, }) {\n const previousRootElSnapshotRef = useRef(null);\n const previousMonthsRef = useRef(months);\n const animatingRef = useRef(false);\n useLayoutEffect(() => {\n // get previous months before updating the previous months ref\n const previousMonths = previousMonthsRef.current;\n // update previous months ref for next effect trigger\n previousMonthsRef.current = months;\n if (!enabled ||\n !rootElRef.current ||\n // safety check because the ref can be set to anything by consumers\n !(rootElRef.current instanceof HTMLElement) ||\n // validation required for the animation to work as expected\n months.length === 0 ||\n previousMonths.length === 0 ||\n months.length !== previousMonths.length) {\n return;\n }\n const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);\n const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);\n const captionAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.caption_after_enter]\n : classNames[Animation.caption_before_enter];\n const weeksAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.weeks_after_enter]\n : classNames[Animation.weeks_before_enter];\n // get previous root element snapshot before updating the snapshot ref\n const previousRootElSnapshot = previousRootElSnapshotRef.current;\n // update snapshot for next effect trigger\n const rootElSnapshot = rootElRef.current.cloneNode(true);\n if (rootElSnapshot instanceof HTMLElement) {\n // if this effect is triggered while animating, we need to clean up the new root snapshot\n // to put it in the same state as when not animating, to correctly animate the next month change\n const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);\n currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {\n if (!(currentMonthElSnapshot instanceof HTMLElement))\n return;\n // remove the old month snapshots from the new root snapshot\n const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);\n if (previousMonthElSnapshot &&\n currentMonthElSnapshot.contains(previousMonthElSnapshot)) {\n currentMonthElSnapshot.removeChild(previousMonthElSnapshot);\n }\n // remove animation classes from the new month snapshots\n const captionEl = queryCaptionEl(currentMonthElSnapshot);\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthElSnapshot);\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n });\n previousRootElSnapshotRef.current = rootElSnapshot;\n }\n else {\n previousRootElSnapshotRef.current = null;\n }\n if (animatingRef.current ||\n isSameMonth ||\n // skip animation if a day is focused because it can cause issues to the animation and is better for a11y\n focused) {\n return;\n }\n const previousMonthEls = previousRootElSnapshot instanceof HTMLElement\n ? queryMonthEls(previousRootElSnapshot)\n : [];\n const currentMonthEls = queryMonthEls(rootElRef.current);\n if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&\n previousMonthEls &&\n previousMonthEls.every((el) => el instanceof HTMLElement)) {\n animatingRef.current = true;\n const cleanUpFunctions = [];\n // set isolation to isolate to isolate the stacking context during animation\n rootElRef.current.style.isolation = \"isolate\";\n // set z-index to 1 to ensure the nav is clickable over the other elements being animated\n const navEl = queryNavEl(rootElRef.current);\n if (navEl) {\n navEl.style.zIndex = \"1\";\n }\n currentMonthEls.forEach((currentMonthEl, index) => {\n const previousMonthEl = previousMonthEls[index];\n if (!previousMonthEl) {\n return;\n }\n // animate new displayed month\n currentMonthEl.style.position = \"relative\";\n currentMonthEl.style.overflow = \"hidden\";\n const captionEl = queryCaptionEl(currentMonthEl);\n if (captionEl) {\n captionEl.classList.add(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthEl);\n if (weeksEl) {\n weeksEl.classList.add(weeksAnimationClass);\n }\n // animate new displayed month end\n const cleanUp = () => {\n animatingRef.current = false;\n if (rootElRef.current) {\n rootElRef.current.style.isolation = \"\";\n }\n if (navEl) {\n navEl.style.zIndex = \"\";\n }\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n currentMonthEl.style.position = \"\";\n currentMonthEl.style.overflow = \"\";\n if (currentMonthEl.contains(previousMonthEl)) {\n currentMonthEl.removeChild(previousMonthEl);\n }\n };\n cleanUpFunctions.push(cleanUp);\n // animate old displayed month\n previousMonthEl.style.pointerEvents = \"none\";\n previousMonthEl.style.position = \"absolute\";\n previousMonthEl.style.overflow = \"hidden\";\n previousMonthEl.setAttribute(\"aria-hidden\", \"true\");\n // hide the weekdays container of the old month and only the new one\n const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);\n if (previousWeekdaysEl) {\n previousWeekdaysEl.style.opacity = \"0\";\n }\n const previousCaptionEl = queryCaptionEl(previousMonthEl);\n if (previousCaptionEl) {\n previousCaptionEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.caption_before_exit]\n : classNames[Animation.caption_after_exit]);\n previousCaptionEl.addEventListener(\"animationend\", cleanUp);\n }\n const previousWeeksEl = queryWeeksEl(previousMonthEl);\n if (previousWeeksEl) {\n previousWeeksEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.weeks_before_exit]\n : classNames[Animation.weeks_after_exit]);\n }\n currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);\n });\n }\n });\n}\n"],"names":["asHtmlElement","element","HTMLElement","queryMonthEls","querySelectorAll","queryMonthEl","querySelector","queryCaptionEl","queryWeeksEl","queryNavEl","queryWeekdaysEl","useAnimation","rootElRef","enabled","classNames","months","focused","dateLib","previousRootElSnapshotRef","useRef","previousMonthsRef","animatingRef","useLayoutEffect","previousMonths","current","length","isSameMonth","date","isAfterPreviousMonth","isAfter","captionAnimationClass","Animation","caption_after_enter","caption_before_enter","weeksAnimationClass","weeks_after_enter","weeks_before_enter","previousRootElSnapshot","rootElSnapshot","cloneNode","currentMonthElsSnapshot","forEach","currentMonthElSnapshot","previousMonthElSnapshot","contains","removeChild","captionEl","classList","remove","weeksEl","previousMonthEls","currentMonthEls","every","el","style","isolation","navEl","zIndex","currentMonthEl","index","previousMonthEl","position","overflow","add","cleanUp","pointerEvents","setAttribute","previousWeekdaysEl","opacity","previousCaptionEl","caption_before_exit","caption_after_exit","addEventListener","previousWeeksEl","weeks_before_exit","weeks_after_exit","insertBefore","firstChild"],"mappings":";;;AAEA,MAAMA,aAAa,GAAIC,OAAO,IAAK;AAC/B,EAAA,IAAIA,OAAO,YAAYC,WAAW,EAC9B,OAAOD,OAAO;AAClB,EAAA,OAAO,IAAI;AACf,CAAC;AACD,MAAME,aAAa,GAAIF,OAAO,IAAK,CAC/B,IAAIA,OAAO,CAACG,gBAAgB,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC,CAC/D;AACD,MAAMC,YAAY,GAAIJ,OAAO,IAAKD,aAAa,CAACC,OAAO,CAACK,aAAa,CAAC,uBAAuB,CAAC,CAAC;AAC/F,MAAMC,cAAc,GAAIN,OAAO,IAAKD,aAAa,CAACC,OAAO,CAACK,aAAa,CAAC,yBAAyB,CAAC,CAAC;AACnG,MAAME,YAAY,GAAIP,OAAO,IAAKD,aAAa,CAACC,OAAO,CAACK,aAAa,CAAC,uBAAuB,CAAC,CAAC;AAC/F,MAAMG,UAAU,GAAIR,OAAO,IAAKD,aAAa,CAACC,OAAO,CAACK,aA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AY,CAAC,aAAa,EAAE,MAAM,CAAC;AACnD;AACA,QAAA,MAAMC,kBAAkB,GAAGzD,eAAe,CAACkD,eAAe,CAAC;AAC3D,QAAA,IAAIO,kBAAkB,EAAE;AACpBA,UAAAA,kBAAkB,CAACb,KAAK,CAACc,OAAO,GAAG,GAAG;AAC1C,QAAA;AACA,QAAA,MAAMC,iBAAiB,GAAG9D,cAAc,CAACqD,eAAe,CAAC;AACzD,QAAA,IAAIS,iBAAiB,EAAE;UACnBA,iBAAiB,CAACtB,SAAS,CAACgB,GAAG,CAACnC,oBAAoB,GAC9Cd,UAAU,CAACiB,SAAS,CAACuC,mBAAmB,CAAC,GACzCxD,UAAU,CAACiB,SAAS,CAACwC,kBAAkB,CAAC,CAAC;AAC/CF,UAAAA,iBAAiB,CAACG,gBAAgB,CAAC,cAAc,EAAER,OAAO,CAAC;AAC/D,QAAA;AACA,QAAA,MAAMS,eAAe,GAAGjE,YAAY,CAACoD,eAAe,CAAC;AACrD,QAAA,IAAIa,eAAe,EAAE;UACjBA,eAAe,CAAC1B,SAAS,CAACgB,GAAG,CAACnC,oBAAoB,GAC5Cd,UAAU,CAACiB,SAAS,CAAC2C,iBAAiB,CAAC,GACvC5D,UAAU,CAACiB,SAAS,CAAC4C,gBAAgB,CAAC,CAAC;AACjD,QAAA;QACAjB,cAAc,CAACkB,YAAY,CAAChB,eAAe,EAAEF,cAAc,CAACmB,UAAU,CAAC;AAC3E,MAAA,CAAC,CAAC;AACN,IAAA;AACJ,EAAA,CAAC,CAAC;AACN;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useAnimation.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useAnimation.js"],"sourcesContent":["import { useLayoutEffect, useRef } from \"react\";\nimport { Animation } from \"./UI.js\";\nconst asHtmlElement = (element) => {\n if (element instanceof HTMLElement)\n return element;\n return null;\n};\nconst queryMonthEls = (element) => [\n ...(element.querySelectorAll(\"[data-animated-month]\") ?? [])\n];\nconst queryMonthEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-month]\"));\nconst queryCaptionEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-caption]\"));\nconst queryWeeksEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weeks]\"));\nconst queryNavEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-nav]\"));\nconst queryWeekdaysEl = (element) => asHtmlElement(element.querySelector(\"[data-animated-weekdays]\"));\n/**\n * Handles animations for transitioning between months in the DayPicker\n * component.\n *\n * @private\n * @param rootElRef - A reference to the root element of the DayPicker\n * component.\n * @param enabled - Whether animations are enabled.\n * @param options - Configuration options for the animation, including class\n * names, months, focused day, and the date utility library.\n */\nexport function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib }) {\n const previousRootElSnapshotRef = useRef(null);\n const previousMonthsRef = useRef(months);\n const animatingRef = useRef(false);\n useLayoutEffect(() => {\n // get previous months before updating the previous months ref\n const previousMonths = previousMonthsRef.current;\n // update previous months ref for next effect trigger\n previousMonthsRef.current = months;\n if (!enabled ||\n !rootElRef.current ||\n // safety check because the ref can be set to anything by consumers\n !(rootElRef.current instanceof HTMLElement) ||\n // validation required for the animation to work as expected\n months.length === 0 ||\n previousMonths.length === 0 ||\n months.length !== previousMonths.length) {\n return;\n }\n const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);\n const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);\n const captionAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.caption_after_enter]\n : classNames[Animation.caption_before_enter];\n const weeksAnimationClass = isAfterPreviousMonth\n ? classNames[Animation.weeks_after_enter]\n : classNames[Animation.weeks_before_enter];\n // get previous root element snapshot before updating the snapshot ref\n const previousRootElSnapshot = previousRootElSnapshotRef.current;\n // update snapshot for next effect trigger\n const rootElSnapshot = rootElRef.current.cloneNode(true);\n if (rootElSnapshot instanceof HTMLElement) {\n // if this effect is triggered while animating, we need to clean up the new root snapshot\n // to put it in the same state as when not animating, to correctly animate the next month change\n const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);\n currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {\n if (!(currentMonthElSnapshot instanceof HTMLElement))\n return;\n // remove the old month snapshots from the new root snapshot\n const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);\n if (previousMonthElSnapshot &&\n currentMonthElSnapshot.contains(previousMonthElSnapshot)) {\n currentMonthElSnapshot.removeChild(previousMonthElSnapshot);\n }\n // remove animation classes from the new month snapshots\n const captionEl = queryCaptionEl(currentMonthElSnapshot);\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthElSnapshot);\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n });\n previousRootElSnapshotRef.current = rootElSnapshot;\n }\n else {\n previousRootElSnapshotRef.current = null;\n }\n if (animatingRef.current ||\n isSameMonth ||\n // skip animation if a day is focused because it can cause issues to the animation and is better for a11y\n focused) {\n return;\n }\n const previousMonthEls = previousRootElSnapshot instanceof HTMLElement\n ? queryMonthEls(previousRootElSnapshot)\n : [];\n const currentMonthEls = queryMonthEls(rootElRef.current);\n if (currentMonthEls &&\n currentMonthEls.every((el) => el instanceof HTMLElement) &&\n previousMonthEls &&\n previousMonthEls.every((el) => el instanceof HTMLElement)) {\n animatingRef.current = true;\n const cleanUpFunctions = [];\n // set isolation to isolate to isolate the stacking context during animation\n rootElRef.current.style.isolation = \"isolate\";\n // set z-index to 1 to ensure the nav is clickable over the other elements being animated\n const navEl = queryNavEl(rootElRef.current);\n if (navEl) {\n navEl.style.zIndex = \"1\";\n }\n currentMonthEls.forEach((currentMonthEl, index) => {\n const previousMonthEl = previousMonthEls[index];\n if (!previousMonthEl) {\n return;\n }\n // animate new displayed month\n currentMonthEl.style.position = \"relative\";\n currentMonthEl.style.overflow = \"hidden\";\n const captionEl = queryCaptionEl(currentMonthEl);\n if (captionEl) {\n captionEl.classList.add(captionAnimationClass);\n }\n const weeksEl = queryWeeksEl(currentMonthEl);\n if (weeksEl) {\n weeksEl.classList.add(weeksAnimationClass);\n }\n // animate new displayed month end\n const cleanUp = () => {\n animatingRef.current = false;\n if (rootElRef.current) {\n rootElRef.current.style.isolation = \"\";\n }\n if (navEl) {\n navEl.style.zIndex = \"\";\n }\n if (captionEl) {\n captionEl.classList.remove(captionAnimationClass);\n }\n if (weeksEl) {\n weeksEl.classList.remove(weeksAnimationClass);\n }\n currentMonthEl.style.position = \"\";\n currentMonthEl.style.overflow = \"\";\n if (currentMonthEl.contains(previousMonthEl)) {\n currentMonthEl.removeChild(previousMonthEl);\n }\n };\n cleanUpFunctions.push(cleanUp);\n // animate old displayed month\n previousMonthEl.style.pointerEvents = \"none\";\n previousMonthEl.style.position = \"absolute\";\n previousMonthEl.style.overflow = \"hidden\";\n previousMonthEl.setAttribute(\"aria-hidden\", \"true\");\n // hide the weekdays container of the old month and only the new one\n const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);\n if (previousWeekdaysEl) {\n previousWeekdaysEl.style.opacity = \"0\";\n }\n const previousCaptionEl = queryCaptionEl(previousMonthEl);\n if (previousCaptionEl) {\n previousCaptionEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.caption_before_exit]\n : classNames[Animation.caption_after_exit]);\n previousCaptionEl.addEventListener(\"animationend\", cleanUp);\n }\n const previousWeeksEl = queryWeeksEl(previousMonthEl);\n if (previousWeeksEl) {\n previousWeeksEl.classList.add(isAfterPreviousMonth\n ? classNames[Animation.weeks_before_exit]\n : classNames[Animation.weeks_after_exit]);\n }\n currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);\n });\n }\n });\n}\n//# sourceMappingURL=useAnimation.js.map"],"names":["asHtmlElement","element","HTMLElement","queryMonthEls","querySelectorAll","queryMonthEl","querySelector","queryCaptionEl","queryWeeksEl","queryNavEl","queryWeekdaysEl","useAnimation","rootElRef","enabled","classNames","months","focused","dateLib","previousRootElSnapshotRef","useRef","previousMonthsRef","animatingRef","useLayoutEffect","previousMonths","current","length","isSameMonth","date","isAfterPreviousMonth","isAfter","captionAnimationClass","Animation","caption_after_enter","caption_before_enter","weeksAnimationClass","weeks_after_enter","weeks_before_enter","previousRootElSnapshot","rootElSnapshot","cloneNode","currentMonthElsSnapshot","forEach","currentMonthElSnapshot","previousMonthElSnapshot","contains","removeChild","captionEl","classList","remove","weeksEl","previousMonthEls","currentMonthEls","every","el","style","isolation","navEl","zIndex","currentMonthEl","index","previousMonthEl","position","overflow","add","cleanUp","pointerEvents","setAttribute","previousWeekdaysEl","opacity","previousCaptionEl","caption_before_exit","caption_after_exit","addEventListener","previousWeeksEl","weeks_before_exit","weeks_after_exit","insertBefore","firstChild"],"mappings":";;;AAQA,MAAMA,aAAa,GAAIC,OAAuB,IAAwB;AACpE,EAAA,IAAIA,OAAO,YAAYC,WAAW,EAAE,OAAOD,OAAO;AAClD,EAAA,OAAO,IAAI;AACb,CAAC;AAED,MAAME,aAAa,GAAIF,OAAoB,IAAK,CAC9C,IAAIA,OAAO,CAACG,gBAAgB,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC,CAC7D;AACD,MAAMC,YAAY,GAAIJ,OAAoB,IACxCD,aAAa,CAACC,OAAO,CAACK,aAAa,CAAC,uBAAuB,CAAC,CAAC;AAC/D,MAAMC,cAAc,GAAIN,OAAoB,IAC1CD,aAAa,CAACC,OAAO,CAACK,aAAa,CAAC,yBAAyB,CAAC,CAAC;AACjE,MAAME,YAAY,GAAIP,OAAoB,IACxCD,aAAa,CAACC,OAAO,CAACK,aAAa,CAAC,uBAAuB,CAAC,CAAC;AAC/D,MAAMG,UAAU,GAAIR,OAAoB,IACtCD,aAAa,CAACC,OAAO,CAACK,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAC7D,MAAMI,eAAe,GAAIT,OAAoB,IAC3CD,aAAa,CAACC,OAAO,CAACK,aAAa,CAAC,0BAA0B,CAAC,CAAC;AAElE;;;;;;;;;;;AAWM,SAAUK,YAAYA,CAC1B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xC,QAAA;AAEA,QAAA,MAAMC,iBAAiB,GAAG9D,cAAc,CAACqD,eAAe,CAAC;AACzD,QAAA,IAAIS,iBAAiB,EAAE;UACrBA,iBAAiB,CAACtB,SAAS,CAACgB,GAAG,CAC7BnC,oBAAoB,GAChBd,UAAU,CAACiB,SAAS,CAACuC,mBAAmB,CAAC,GACzCxD,UAAU,CAACiB,SAAS,CAACwC,kBAAkB,CAAC,CAC7C;AACDF,UAAAA,iBAAiB,CAACG,gBAAgB,CAAC,cAAc,EAAER,OAAO,CAAC;AAC7D,QAAA;AAEA,QAAA,MAAMS,eAAe,GAAGjE,YAAY,CAACoD,eAAe,CAAC;AACrD,QAAA,IAAIa,eAAe,EAAE;UACnBA,eAAe,CAAC1B,SAAS,CAACgB,GAAG,CAC3BnC,oBAAoB,GAChBd,UAAU,CAACiB,SAAS,CAAC2C,iBAAiB,CAAC,GACvC5D,UAAU,CAACiB,SAAS,CAAC4C,gBAAgB,CAAC,CAC3C;AACH,QAAA;QAEAjB,cAAc,CAACkB,YAAY,CAAChB,eAAe,EAAEF,cAAc,CAACmB,UAAU,CAAC;AACzE,MAAA,CAAC,CAAC;AACJ,IAAA;AACF,EAAA,CAAC,CAAC;AACJ;;;;","x_google_ignoreList":[0]}
@@ -29,10 +29,10 @@ function useCalendar(props, dateLib) {
29
29
  const [firstMonth, setFirstMonth] = useControlledValue(initialMonth,
30
30
  // initialMonth is always computed from props.month if provided
31
31
  props.month ? initialMonth : undefined);
32
- // biome-ignore lint/correctness/useExhaustiveDependencies: change the initial month when the time zone changes.
33
32
  useEffect(() => {
34
33
  const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
35
34
  setFirstMonth(newInitialMonth);
35
+ // eslint-disable-next-line react-hooks/exhaustive-deps
36
36
  }, [props.timeZone]);
37
37
  /** The months displayed in the calendar. */
38
38
  const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);
@@ -1 +1 @@
1
- {"version":3,"file":"useCalendar.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/**\n * Provides the calendar object to work with the calendar in custom components.\n *\n * @private\n * @param props - The DayPicker props related to calendar configuration.\n * @param dateLib - The date utility library instance.\n * @returns The calendar object containing displayed days, weeks, months, and\n * navigation methods.\n */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n // biome-ignore lint/correctness/useExhaustiveDependencies: change the initial month when the time zone changes.\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n setFirstMonth(newInitialMonth);\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);\n /** The dates displayed in the calendar. */\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, props, dateLib);\n /** The Months displayed in the calendar. */\n const months = getMonths(displayMonths, dates, props, dateLib);\n /** The Weeks displayed in the calendar. */\n const weeks = getWeeks(months);\n /** The Days displayed in the calendar. */\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay,\n };\n return calendar;\n}\n"],"names":["useCalendar","props","dateLib","navStart","navEnd","getNavMonths","startOfMonth","endOfMonth","initialMonth","getInitialMonth","firstMonth","setFirstMonth","useControlledValue","month","undefined","useEffect","newInitialMonth","timeZone","displayMonths","getDisplayMonths","dates","getDates","endMonth","months","getMonths","weeks","getWeeks","days","getDays","previousMonth","getPreviousMonth","nextMonth","getNextMonth","disableNavigation","onMonthChange","isDayInCalendar","day","some","week","d","isEqualTo","goToMonth","date","newMonth","goToDay","calendar"],"mappings":";;;;;;;;;;;;AAWA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASA,WAAWA,CAACC,KAAK,EAAEC,OAAO,EAAE;EACxC,MAAM,CAACC,QAAQ,EAAEC,MAAM,CAAC,GAAGC,YAAY,CAACJ,KAAK,EAAEC,OAAO,CAAC;EACvD,MAAM;IAAEI,YAAY;AAAEC,IAAAA;AAAW,GAAC,GAAGL,OAAO;EAC5C,MAAMM,YAAY,GAAGC,eAAe,CAACR,KAAK,EAAEE,QAAQ,EAAEC,MAAM,EAAEF,OAAO,CAAC;EACtE,MAAM,CAACQ,UAAU,EAAEC,aAAa,CAAC,GA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AG,CAAC,CAAC,CAAC;EAC9F,MAAMK,SAAS,GAAIC,IAAI,IAAK;AACxB,IAAA,IAAIT,iBAAiB,EAAE;AACnB,MAAA;AACJ,IAAA;AACA,IAAA,IAAIU,QAAQ,GAAGrC,YAAY,CAACoC,IAAI,CAAC;AACjC;IACA,IAAIvC,QAAQ,IAAIwC,QAAQ,GAAGrC,YAAY,CAACH,QAAQ,CAAC,EAAE;AAC/CwC,MAAAA,QAAQ,GAAGrC,YAAY,CAACH,QAAQ,CAAC;AACrC,IAAA;AACA;IACA,IAAIC,MAAM,IAAIuC,QAAQ,GAAGrC,YAAY,CAACF,MAAM,CAAC,EAAE;AAC3CuC,MAAAA,QAAQ,GAAGrC,YAAY,CAACF,MAAM,CAAC;AACnC,IAAA;IACAO,aAAa,CAACgC,QAAQ,CAAC;IACvBT,aAAa,GAAGS,QAAQ,CAAC;EAC7B,CAAC;EACD,MAAMC,OAAO,GAAIR,GAAG,IAAK;AACrB;AACA,IAAA,IAAID,eAAe,CAACC,GAAG,CAAC,EAAE;AACtB,MAAA;AACJ,IAAA;AACAK,IAAAA,SAAS,CAACL,GAAG,CAACM,IAAI,CAAC;EACvB,CAAC;AACD,EAAA,MAAMG,QAAQ,GAAG;IACbtB,MAAM;IACNE,KAAK;IACLE,IAAI;IACJxB,QAAQ;IACRC,MAAM;IACNyB,aAAa;IACbE,SAAS;IACTU,SAAS;AACTG,IAAAA;GACH;AACD,EAAA,OAAOC,QAAQ;AACnB;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"useCalendar.js","sources":["../../../../../node_modules/react-day-picker/dist/esm/useCalendar.js"],"sourcesContent":["import { useEffect } from \"react\";\nimport { getDates } from \"./helpers/getDates.js\";\nimport { getDays } from \"./helpers/getDays.js\";\nimport { getDisplayMonths } from \"./helpers/getDisplayMonths.js\";\nimport { getInitialMonth } from \"./helpers/getInitialMonth.js\";\nimport { getMonths } from \"./helpers/getMonths.js\";\nimport { getNavMonths } from \"./helpers/getNavMonth.js\";\nimport { getNextMonth } from \"./helpers/getNextMonth.js\";\nimport { getPreviousMonth } from \"./helpers/getPreviousMonth.js\";\nimport { getWeeks } from \"./helpers/getWeeks.js\";\nimport { useControlledValue } from \"./helpers/useControlledValue.js\";\n/**\n * Provides the calendar object to work with the calendar in custom components.\n *\n * @private\n * @param props - The DayPicker props related to calendar configuration.\n * @param dateLib - The date utility library instance.\n * @returns The calendar object containing displayed days, weeks, months, and\n * navigation methods.\n */\nexport function useCalendar(props, dateLib) {\n const [navStart, navEnd] = getNavMonths(props, dateLib);\n const { startOfMonth, endOfMonth } = dateLib;\n const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n const [firstMonth, setFirstMonth] = useControlledValue(initialMonth, \n // initialMonth is always computed from props.month if provided\n props.month ? initialMonth : undefined);\n useEffect(() => {\n const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);\n setFirstMonth(newInitialMonth);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.timeZone]);\n /** The months displayed in the calendar. */\n const displayMonths = getDisplayMonths(firstMonth, navEnd, props, dateLib);\n /** The dates displayed in the calendar. */\n const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, props, dateLib);\n /** The Months displayed in the calendar. */\n const months = getMonths(displayMonths, dates, props, dateLib);\n /** The Weeks displayed in the calendar. */\n const weeks = getWeeks(months);\n /** The Days displayed in the calendar. */\n const days = getDays(months);\n const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);\n const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);\n const { disableNavigation, onMonthChange } = props;\n const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));\n const goToMonth = (date) => {\n if (disableNavigation) {\n return;\n }\n let newMonth = startOfMonth(date);\n // if month is before start, use the first month instead\n if (navStart && newMonth < startOfMonth(navStart)) {\n newMonth = startOfMonth(navStart);\n }\n // if month is after endMonth, use the last month instead\n if (navEnd && newMonth > startOfMonth(navEnd)) {\n newMonth = startOfMonth(navEnd);\n }\n setFirstMonth(newMonth);\n onMonthChange?.(newMonth);\n };\n const goToDay = (day) => {\n // is this check necessary?\n if (isDayInCalendar(day)) {\n return;\n }\n goToMonth(day.date);\n };\n const calendar = {\n months,\n weeks,\n days,\n navStart,\n navEnd,\n previousMonth,\n nextMonth,\n goToMonth,\n goToDay\n };\n return calendar;\n}\n//# sourceMappingURL=useCalendar.js.map"],"names":["useCalendar","props","dateLib","navStart","navEnd","getNavMonths","startOfMonth","endOfMonth","initialMonth","getInitialMonth","firstMonth","setFirstMonth","useControlledValue","month","undefined","useEffect","newInitialMonth","timeZone","displayMonths","getDisplayMonths","dates","getDates","endMonth","months","getMonths","weeks","getWeeks","days","getDays","previousMonth","getPreviousMonth","nextMonth","getNextMonth","disableNavigation","onMonthChange","isDayInCalendar","day","some","week","d","isEqualTo","goToMonth","date","newMonth","goToDay","calendar"],"mappings":";;;;;;;;;;;;AAmEA;;;;;;;;;AASM,SAAUA,WAAWA,CACzBC,KAoBC,EACDC,OAAgB,EAAA;EAEhB,MAAM,CAACC,QAAQ,EAAEC,MAAM,CAAC,GAAGC,YAAY,CAACJ,KAAK,EAAEC,OAAO,CAAC;EAEvD,MAAM;IAAEI,YAAY;AAAEC,IAAAA;AAAU,GAAE,GAAGL,OAAO;EAC5C,MAAMM,YAAY,GAAGC,eAAe,CAACR,KAAK,EAAEE,QAAQ,EAAEC,MAAM,EAAEF,OAAO,CAAC;EACtE,MAAM,CAACQ,UAAU,EAAEC,aAAa,CAAC,GAAGC,kBAAkB,CACpDJ,YAAY;AACZ;AACAP,EAAAA,KAAK,CAACY,KAAK,GAAGL,YAAY,GAAGM,SAAS,CACvC;AAEDC,EAAAA,SAAS,CAAC,MAAK;IACb,MAAMC,eAAe,GAAGP,eAAe,CAACR,KAAK,EAAEE,QAAQ,EAAEC,MAAM,EAAEF,OAAO,CAAC;IACzES,aAAa,CAACK,eAAe,CAAC;AAC9B;AACF,EAAA,CAAC,EA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