@pareto-engineering/design-system 5.13.0 → 5.13.3-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. package/dist/{ExposePlainTextPlugin-DeW6mVaE.js → ExposePlainTextPlugin-21aMiDtd.js} +1 -1
  2. package/dist/{FormBuilder-DWHYIZCN.js → FormBuilder-D-D63IHE.js} +69 -69
  3. package/dist/{YAxis-ULEXP-uu.js → YAxis-BrfWZMKv.js} +7 -7
  4. package/dist/assets/FormBuilder.css +1 -1
  5. package/dist/assets/MetaCard.css +1 -1
  6. package/dist/assets/SnapScroller.css +1 -1
  7. package/dist/assets/SocialMediaShareButton.css +1 -1
  8. package/dist/exports.module-BY48WvdE.js +20 -0
  9. package/dist/{generateCategoricalChart-ar2rowoi.js → generateCategoricalChart-Ca9TKPy7.js} +97 -97
  10. package/dist/{index-CxkFVI6N.js → index-BOVlDh8S.js} +2 -2
  11. package/dist/{index-BUor0nOw.js → index-C3TenDWn.js} +27 -27
  12. package/dist/{index-C_b9PQD8.js → index-C4uazrih.js} +190 -217
  13. package/dist/index.js +14 -14
  14. package/dist/stories/StyleGuide/helpers.js +2 -2
  15. package/dist/stories/a/AppContext.stories.js +2 -2
  16. package/dist/stories/a/AreaChart.stories.js +2 -2
  17. package/dist/stories/a/BarChart.stories.js +2 -2
  18. package/dist/stories/a/BlurOverlay.stories.js +2 -2
  19. package/dist/stories/a/ContentTree.stories.js +2 -2
  20. package/dist/stories/a/Conversation.stories.js +2 -2
  21. package/dist/stories/a/DatePicker.stories.js +8 -8
  22. package/dist/stories/a/DotInfo.stories.js +2 -2
  23. package/dist/stories/a/Figure.stories.js +2 -2
  24. package/dist/stories/a/HamburgerButton.stories.js +2 -2
  25. package/dist/stories/a/IconList.stories.js +2 -2
  26. package/dist/stories/a/Label.stories.js +2 -2
  27. package/dist/stories/a/LoadingCircle.stories.js +2 -2
  28. package/dist/stories/a/MetaCard.stories.js +2 -2
  29. package/dist/stories/a/Notification.stories.js +2 -2
  30. package/dist/stories/a/NotificationStack.stories.js +2 -2
  31. package/dist/stories/a/People.stories.js +2 -2
  32. package/dist/stories/a/PieChart.stories.js +2 -2
  33. package/dist/stories/a/Popover.stories.js +2 -2
  34. package/dist/stories/a/ProgressBar.stories.js +2 -2
  35. package/dist/stories/a/Quote.stories.js +2 -2
  36. package/dist/stories/a/Removable.stories.js +2 -2
  37. package/dist/stories/a/SVG.stories.js +3 -3
  38. package/dist/stories/a/SnapScroller.stories.js +2 -2
  39. package/dist/stories/a/Spinner.stories.js +2 -2
  40. package/dist/stories/a/TextSteps.stories.js +2 -2
  41. package/dist/stories/a/Timestamp.stories.js +39 -28
  42. package/dist/stories/a/Tip.stories.js +2 -2
  43. package/dist/stories/a/ToggleSwitch.stories.js +3 -3
  44. package/dist/stories/a/Tooltip.stories.js +2 -2
  45. package/dist/stories/a/XMLEditor.stories.js +2 -2
  46. package/dist/stories/b/Button/Button.stories.js +2 -2
  47. package/dist/stories/b/Button/Group.stories.js +2 -2
  48. package/dist/stories/b/Card/Card.stories.js +5 -5
  49. package/dist/stories/b/Card/Group.stories.js +2 -2
  50. package/dist/stories/b/Logo.stories.js +2 -2
  51. package/dist/stories/b/Page.stories.js +2 -2
  52. package/dist/stories/b/SocialMediaButton.stories.js +2 -2
  53. package/dist/stories/b/ThemeSelector.stories.js +2 -2
  54. package/dist/stories/b/Title.stories.js +2 -2
  55. package/dist/stories/c/Modal.stories.js +2 -2
  56. package/dist/stories/c/Shortener.stories.js +2 -2
  57. package/dist/stories/c/SocialMediaShareButton.stories.js +2 -2
  58. package/dist/stories/f/Checkbox.stories.js +5 -5
  59. package/dist/stories/f/ChoicesInput.stories.js +17 -17
  60. package/dist/stories/f/Combobox.stories.js +2 -2
  61. package/dist/stories/f/Description.stories.js +2 -2
  62. package/dist/stories/f/DragAndDropFileUpload.stories.js +23 -23
  63. package/dist/stories/f/EditorInput.stories.js +2 -2
  64. package/dist/stories/f/FileUpload.stories.js +2 -2
  65. package/dist/stories/f/HighlightedTextInput.stories.js +2 -2
  66. package/dist/stories/f/Label.stories.js +2 -2
  67. package/dist/stories/f/LinkInput.stories.js +2 -2
  68. package/dist/stories/f/RadioInput.stories.js +2 -2
  69. package/dist/stories/f/RatingsInput.stories.js +5 -5
  70. package/dist/stories/f/SelectInput.stories.js +12 -12
  71. package/dist/stories/f/TextInput.stories.js +9 -9
  72. package/dist/stories/f/TextareaInput.stories.js +6 -6
  73. package/dist/stories/g/DragAndDrop.stories.js +6 -6
  74. package/dist/stories/g/ExpandableLexicalPreview.stories.js +6 -6
  75. package/dist/stories/g/FormBuilder.stories.js +2 -2
  76. package/dist/ui/a/AnimatedBlobs/AnimatedBlobs.js +2 -2
  77. package/dist/ui/a/AnimatedGradient/AnimatedGradient.js +4 -4
  78. package/dist/ui/a/AnimatedGradient/index.js +1 -1
  79. package/dist/ui/a/AppContext/ContextProvider.js +1 -1
  80. package/dist/ui/a/BlurOverlay/BlurOverlay.js +2 -2
  81. package/dist/ui/a/Charts/AreaChart/AreaChart.js +6 -6
  82. package/dist/ui/a/Charts/BarChart/BarChart.js +4 -4
  83. package/dist/ui/a/Charts/Common/CustomLegend/CustomLegend.js +2 -2
  84. package/dist/ui/a/Charts/Common/CustomTooltipContent/CustomTooltipContent.js +2 -2
  85. package/dist/ui/a/Charts/Common/YLabelsDropDown/YlabelsDropDown.js +2 -2
  86. package/dist/ui/a/Charts/PieChart/PieChart.js +119 -119
  87. package/dist/ui/a/ContentTree/ContentTree.js +3 -3
  88. package/dist/ui/a/ContentTree/common/Tree/Tree.js +4 -4
  89. package/dist/ui/a/ContentTree/common/Tree/index.js +1 -1
  90. package/dist/ui/a/ContentTree/common/index.js +1 -1
  91. package/dist/ui/a/ContentTree/index.js +1 -1
  92. package/dist/ui/a/Conversation/Conversation.js +4 -4
  93. package/dist/ui/a/Conversation/common/Message/Message.js +2 -2
  94. package/dist/ui/a/Conversation/index.js +3 -3
  95. package/dist/ui/a/DatePicker/DatePicker.js +2493 -7
  96. package/dist/ui/a/DatePicker/index.js +2 -2
  97. package/dist/ui/a/DotInfo/DotInfo.js +2 -2
  98. package/dist/ui/a/Figure/Figure.js +2 -2
  99. package/dist/ui/a/HamburgerButton/HamburgerButton.js +2 -2
  100. package/dist/ui/a/IconList/IconList.js +2 -2
  101. package/dist/ui/a/IconList/common/Item/Item.js +2 -2
  102. package/dist/ui/a/Label/Label.js +2 -2
  103. package/dist/ui/a/LoadingCircle/LoadingCircle.js +2 -2
  104. package/dist/ui/a/MetaCard/MetaCard.js +2 -2
  105. package/dist/ui/a/Notification/Notification.js +4 -4
  106. package/dist/ui/a/Notification/index.js +1 -1
  107. package/dist/ui/a/NotificationStack/NotificationStack.js +3 -3
  108. package/dist/ui/a/NotificationStack/index.js +1 -1
  109. package/dist/ui/a/People/People.js +2 -2
  110. package/dist/ui/a/People/common/Person/Person.js +2 -2
  111. package/dist/ui/a/Popover/Popover.js +2 -2
  112. package/dist/ui/a/ProgressBar/ProgressBar.js +2 -2
  113. package/dist/ui/a/Quote/Quote.js +2 -2
  114. package/dist/ui/a/Removable/Removable.js +2 -2
  115. package/dist/ui/a/SVG/SVG.js +2 -2
  116. package/dist/ui/a/SVG/common/UseSVG/UseSVG.js +1 -1
  117. package/dist/ui/a/SnapScroller/SnapScroller.js +2 -2
  118. package/dist/ui/a/Spinner/Spinner.js +2 -2
  119. package/dist/ui/a/TextSteps/TextSteps.js +2 -2
  120. package/dist/ui/a/ThroughPutIndicator/ThroughPutIndicator.js +2 -2
  121. package/dist/ui/a/Timestamp/Timestamp.js +154 -133
  122. package/dist/ui/a/Tip/Tip.js +2 -2
  123. package/dist/ui/a/ToggleSwitch/ToggleSwitch.js +1 -1
  124. package/dist/ui/a/Tooltip/Tooltip.js +2 -2
  125. package/dist/ui/a/XMLEditor/XMLEditor.js +16 -16
  126. package/dist/ui/a/XMLEditor/common/index.js +1 -1
  127. package/dist/ui/a/XMLEditor/common/theme.js +1 -1
  128. package/dist/ui/a/index.js +14 -14
  129. package/dist/ui/b/Button/Button.js +4 -4
  130. package/dist/ui/b/Button/common/Group/Group.js +2 -2
  131. package/dist/ui/b/Button/index.js +1 -1
  132. package/dist/ui/b/Card/Card.js +4 -4
  133. package/dist/ui/b/Card/common/Group/Group.js +4 -4
  134. package/dist/ui/b/Card/common/Group/index.js +1 -1
  135. package/dist/ui/b/Card/common/Section/Section.js +2 -2
  136. package/dist/ui/b/Card/common/index.js +1 -1
  137. package/dist/ui/b/Card/index.js +1 -1
  138. package/dist/ui/b/Logo/Logo.js +5 -5
  139. package/dist/ui/b/Logo/index.js +2 -2
  140. package/dist/ui/b/Page/Page.js +4 -4
  141. package/dist/ui/b/Page/common/PageHelmet/PageHelmet.js +3 -3
  142. package/dist/ui/b/Page/common/PageHelmet/index.js +1 -1
  143. package/dist/ui/b/Page/common/Section/Section.js +2 -2
  144. package/dist/ui/b/Page/common/index.js +1 -1
  145. package/dist/ui/b/Page/index.js +1 -1
  146. package/dist/ui/b/SocialMediaButton/SocialMediaButton.js +5 -5
  147. package/dist/ui/b/SocialMediaButton/index.js +1 -1
  148. package/dist/ui/b/ThemeSelector/ThemeSelector.js +5 -5
  149. package/dist/ui/b/ThemeSelector/index.js +1 -1
  150. package/dist/ui/b/Title/Title.js +2 -2
  151. package/dist/ui/b/index.js +3 -3
  152. package/dist/ui/c/Modal/Modal.js +3 -3
  153. package/dist/ui/c/Modal/common/ModalHeader/ModalHeader.js +4 -4
  154. package/dist/ui/c/Modal/common/ModalHeader/index.js +1 -1
  155. package/dist/ui/c/Modal/common/index.js +1 -1
  156. package/dist/ui/c/Modal/index.js +1 -1
  157. package/dist/ui/c/Shortener/Shortener.js +4 -4
  158. package/dist/ui/c/Shortener/index.js +1 -1
  159. package/dist/ui/c/SocialMediaShareButton/SocialMediaShareButton.js +2 -2
  160. package/dist/ui/c/index.js +1 -1
  161. package/dist/ui/f/FormInput/FormInput.js +3 -3
  162. package/dist/ui/f/FormInput/index.js +1 -1
  163. package/dist/ui/f/common/CharacterCount/CharacterCount.js +1 -1
  164. package/dist/ui/f/common/Debugger/Debugger.js +2 -2
  165. package/dist/ui/f/common/Debugger/index.js +2 -2
  166. package/dist/ui/f/common/Description/Description.js +2 -2
  167. package/dist/ui/f/common/Hint/Hint.js +2 -2
  168. package/dist/ui/f/common/Label/Label.js +2 -2
  169. package/dist/ui/f/common/index.js +1 -1
  170. package/dist/ui/f/common/utils/lookUpInputValueFromOptions.js +1 -1
  171. package/dist/ui/f/fields/Checkbox/Checkbox.js +3 -3
  172. package/dist/ui/f/fields/Checkbox/index.js +2 -2
  173. package/dist/ui/f/fields/ChoicesInput/ChoicesInput.js +3 -3
  174. package/dist/ui/f/fields/ChoicesInput/common/Choice/common/ImageChoice/ImageChoice.js +1 -1
  175. package/dist/ui/f/fields/ChoicesInput/common/Choice/common/TextChoice/TextChoice.js +1 -1
  176. package/dist/ui/f/fields/ChoicesInput/index.js +1 -1
  177. package/dist/ui/f/fields/DragAndDropFileUpload/DragAndDropFileUpload.js +2 -2
  178. package/dist/ui/f/fields/DragAndDropFileUpload/index.js +1 -1
  179. package/dist/ui/f/fields/EditorInput/EditorInput.js +4 -4
  180. package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/BlockFormatDropDown.js +5 -5
  181. package/dist/ui/f/fields/EditorInput/common/BlockFormatDropDown/index.js +1 -1
  182. package/dist/ui/f/fields/EditorInput/common/ColorPicker/ColorPicker.js +4 -4
  183. package/dist/ui/f/fields/EditorInput/common/ColorPicker/index.js +1 -1
  184. package/dist/ui/f/fields/EditorInput/common/ExposePlainTextPlugin.js +2 -2
  185. package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/FontSizeDropDown.js +5 -5
  186. package/dist/ui/f/fields/EditorInput/common/FontSizeDropDown/index.js +1 -1
  187. package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/ToolbarPlugin.js +4 -4
  188. package/dist/ui/f/fields/EditorInput/common/ToolbarPlugin/index.js +1 -1
  189. package/dist/ui/f/fields/EditorInput/common/index.js +2 -2
  190. package/dist/ui/f/fields/EditorInput/index.js +1 -1
  191. package/dist/ui/f/fields/FileUpload/FileUpload.js +3 -3
  192. package/dist/ui/f/fields/FileUpload/common/Preview/Preview.js +4 -4
  193. package/dist/ui/f/fields/FileUpload/common/Preview/index.js +1 -1
  194. package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/PreviewNewRegistration.js +4 -4
  195. package/dist/ui/f/fields/FileUpload/common/PreviewNewRegistration/index.js +1 -1
  196. package/dist/ui/f/fields/FileUpload/common/index.js +1 -1
  197. package/dist/ui/f/fields/FileUpload/index.js +2 -2
  198. package/dist/ui/f/fields/HighlightedTextInput/HighlightedTextInput.js +2 -2
  199. package/dist/ui/f/fields/HighlightedTextInput/index.js +1 -1
  200. package/dist/ui/f/fields/LatexPreviewInput/LatexPreviewInput.js +3 -3
  201. package/dist/ui/f/fields/LatexPreviewInput/convertLatexToHtml.js +3088 -3088
  202. package/dist/ui/f/fields/LatexPreviewInput/index.js +1 -1
  203. package/dist/ui/f/fields/LinkInput/LinkInput.js +4 -4
  204. package/dist/ui/f/fields/LinkInput/index.js +2 -2
  205. package/dist/ui/f/fields/PasswordInput/PasswordInput.js +2 -2
  206. package/dist/ui/f/fields/PasswordInput/index.js +2 -2
  207. package/dist/ui/f/fields/QueryCombobox/QueryCombobox.js +1 -1
  208. package/dist/ui/f/fields/QueryCombobox/common/Combobox/Combobox.js +3 -3
  209. package/dist/ui/f/fields/QueryCombobox/common/Combobox/index.js +1 -1
  210. package/dist/ui/f/fields/QueryCombobox/common/Menu/Menu.js +3 -3
  211. package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/MultipleCombobox.js +3 -3
  212. package/dist/ui/f/fields/QueryCombobox/common/MultipleCombobox/index.js +1 -1
  213. package/dist/ui/f/fields/QueryCombobox/common/index.js +1 -1
  214. package/dist/ui/f/fields/QueryCombobox/index.js +1 -1
  215. package/dist/ui/f/fields/RadioInput/RadioInput.js +2 -2
  216. package/dist/ui/f/fields/RatingsInput/RatingsInput.js +3 -3
  217. package/dist/ui/f/fields/RatingsInput/common/Rating/Rating.js +2 -2
  218. package/dist/ui/f/fields/RatingsInput/index.js +1 -1
  219. package/dist/ui/f/fields/SearchDropdown/SearchDropdown.js +3 -3
  220. package/dist/ui/f/fields/SearchDropdown/index.js +1 -1
  221. package/dist/ui/f/fields/SelectInput/SelectInput.js +4 -4
  222. package/dist/ui/f/fields/SelectInput/common/Menu/Menu.js +4 -4
  223. package/dist/ui/f/fields/SelectInput/common/Menu/index.js +1 -1
  224. package/dist/ui/f/fields/SelectInput/common/Multiple/Multiple.js +4 -4
  225. package/dist/ui/f/fields/SelectInput/common/Multiple/index.js +1 -1
  226. package/dist/ui/f/fields/SelectInput/common/Single/Single.js +4 -4
  227. package/dist/ui/f/fields/SelectInput/common/Single/index.js +1 -1
  228. package/dist/ui/f/fields/SelectInput/common/index.js +1 -1
  229. package/dist/ui/f/fields/SelectInput/index.js +2 -2
  230. package/dist/ui/f/fields/SelectSingle/SelectSingle.js +3 -3
  231. package/dist/ui/f/fields/TextInput/TextInput.js +2 -2
  232. package/dist/ui/f/fields/TextInput/index.js +1 -1
  233. package/dist/ui/f/fields/TextareaInput/TextareaInput.js +3 -3
  234. package/dist/ui/f/fields/TextareaInput/index.js +2 -2
  235. package/dist/ui/f/fields/ToggleInput/ToggleInput.js +4 -4
  236. package/dist/ui/f/fields/ToggleInput/index.js +2 -2
  237. package/dist/ui/f/fields/index.js +12 -12
  238. package/dist/ui/f/index.js +17 -17
  239. package/dist/ui/g/DragAndDrop/DragAndDrop.js +1 -1
  240. package/dist/ui/g/DragAndDrop/common/DraggableItem/DraggableItem.js +1 -1
  241. package/dist/ui/g/DragAndDrop/common/MultiSectionDragAndDrop/MultiSectionDragAndDrop.js +1 -1
  242. package/dist/ui/g/DragAndDrop/common/SingleListDragAndDrop/SingleListDragAndDrop.js +1 -1
  243. package/dist/ui/g/ExpandableLexicalPreview/ExpandableLexicalPreview.js +4 -4
  244. package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/NewWindowPortal.js +4 -4
  245. package/dist/ui/g/ExpandableLexicalPreview/common/NewWindowPortal/index.js +1 -1
  246. package/dist/ui/g/ExpandableLexicalPreview/common/index.js +1 -1
  247. package/dist/ui/g/ExpandableLexicalPreview/index.js +1 -1
  248. package/dist/ui/g/FormBuilder/FormBuilder.js +4 -4
  249. package/dist/ui/g/FormBuilder/common/Builder/Builder.js +4 -4
  250. package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/ActionsContainer.js +4 -4
  251. package/dist/ui/g/FormBuilder/common/Builder/common/ActionsContainer/index.js +1 -1
  252. package/dist/ui/g/FormBuilder/common/Builder/common/AutoQASection/AutoQASection.js +3 -3
  253. package/dist/ui/g/FormBuilder/common/Builder/common/AutoQASection/index.js +1 -1
  254. package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/InputBuilder.js +3 -3
  255. package/dist/ui/g/FormBuilder/common/Builder/common/InputBuilder/index.js +1 -1
  256. package/dist/ui/g/FormBuilder/common/Builder/common/Section/Section.js +4 -4
  257. package/dist/ui/g/FormBuilder/common/Builder/common/Section/index.js +1 -1
  258. package/dist/ui/g/FormBuilder/common/Builder/common/index.js +1 -1
  259. package/dist/ui/g/FormBuilder/common/Builder/index.js +1 -1
  260. package/dist/ui/g/FormBuilder/common/Renderer/Renderer.js +3 -3
  261. package/dist/ui/g/FormBuilder/common/Renderer/common/Section/Section.js +4 -4
  262. package/dist/ui/g/FormBuilder/common/Renderer/common/Section/index.js +1 -1
  263. package/dist/ui/g/FormBuilder/common/Renderer/common/index.js +1 -1
  264. package/dist/ui/g/FormBuilder/common/Renderer/index.js +1 -1
  265. package/dist/ui/g/FormBuilder/common/index.js +1 -1
  266. package/dist/ui/g/FormBuilder/index.js +1 -1
  267. package/dist/ui/g/index.js +4 -4
  268. package/dist/ui/index.js +14 -14
  269. package/package.json +4 -4
  270. package/dist/DatePicker-DHuh_8q6.js +0 -1305
  271. package/dist/exports.module-DmUnHWIJ.js +0 -20
@@ -1,1305 +0,0 @@
1
- import { jsx as d, jsxs as O, Fragment as T } from "react/jsx-runtime";
2
- import { createContext as j, forwardRef as nn, useContext as H, useState as K, useEffect as X, useLayoutEffect as tn, useRef as an } from "react";
3
- import { r as N, t as M, c as F, g as Q, _ as Pe, h as Z, b as ke, e as me, l as rn, a as U, d as R, f as W, i as We } from "./index-C_b9PQD8.js";
4
- import { P as C } from "./index-CxkFVI6N.js";
5
- import { s as on } from "./exports.module-DmUnHWIJ.js";
6
- import './assets/DatePicker.css';function S(e, t) {
7
- N(2, arguments);
8
- var n = M(e), a = F(t);
9
- return isNaN(a) ? /* @__PURE__ */ new Date(NaN) : (a && n.setDate(n.getDate() + a), n);
10
- }
11
- function I(e, t) {
12
- N(2, arguments);
13
- var n = M(e), a = F(t);
14
- if (isNaN(a))
15
- return /* @__PURE__ */ new Date(NaN);
16
- if (!a)
17
- return n;
18
- var r = n.getDate(), o = new Date(n.getTime());
19
- o.setMonth(n.getMonth() + a + 1, 0);
20
- var i = o.getDate();
21
- return r >= i ? o : (n.setFullYear(o.getFullYear(), o.getMonth(), r), n);
22
- }
23
- function Y(e, t) {
24
- var n, a, r, o, i, l, s, c;
25
- N(1, arguments);
26
- var u = Q(), f = F((n = (a = (r = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (i = t.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && r !== void 0 ? r : u.weekStartsOn) !== null && a !== void 0 ? a : (s = u.locale) === null || s === void 0 || (c = s.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && n !== void 0 ? n : 0);
27
- if (!(f >= 0 && f <= 6))
28
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
29
- var v = M(e), m = v.getDay(), h = (m < f ? 7 : 0) + m - f;
30
- return v.setDate(v.getDate() - h), v.setHours(0, 0, 0, 0), v;
31
- }
32
- function B(e) {
33
- return N(1, arguments), Y(e, {
34
- weekStartsOn: 1
35
- });
36
- }
37
- function ln(e) {
38
- N(1, arguments);
39
- var t = M(e), n = t.getFullYear(), a = /* @__PURE__ */ new Date(0);
40
- a.setFullYear(n + 1, 0, 4), a.setHours(0, 0, 0, 0);
41
- var r = B(a), o = /* @__PURE__ */ new Date(0);
42
- o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
43
- var i = B(o);
44
- return t.getTime() >= r.getTime() ? n + 1 : t.getTime() >= i.getTime() ? n : n - 1;
45
- }
46
- function sn(e) {
47
- N(1, arguments);
48
- var t = ln(e), n = /* @__PURE__ */ new Date(0);
49
- n.setFullYear(t, 0, 4), n.setHours(0, 0, 0, 0);
50
- var a = B(n);
51
- return a;
52
- }
53
- function fe(e, t) {
54
- N(2, arguments);
55
- var n = F(t), a = n * 7;
56
- return S(e, a);
57
- }
58
- function un(e, t) {
59
- N(2, arguments);
60
- var n = F(t);
61
- return I(e, n * 12);
62
- }
63
- function dn(e) {
64
- N(1, arguments);
65
- var t;
66
- if (e && typeof e.forEach == "function")
67
- t = e;
68
- else if (Pe(e) === "object" && e !== null)
69
- t = Array.prototype.slice.call(e);
70
- else
71
- return /* @__PURE__ */ new Date(NaN);
72
- var n;
73
- return t.forEach(function(a) {
74
- var r = M(a);
75
- (n === void 0 || n < r || isNaN(Number(r))) && (n = r);
76
- }), n || /* @__PURE__ */ new Date(NaN);
77
- }
78
- function cn(e) {
79
- N(1, arguments);
80
- var t;
81
- if (e && typeof e.forEach == "function")
82
- t = e;
83
- else if (Pe(e) === "object" && e !== null)
84
- t = Array.prototype.slice.call(e);
85
- else
86
- return /* @__PURE__ */ new Date(NaN);
87
- var n;
88
- return t.forEach(function(a) {
89
- var r = M(a);
90
- (n === void 0 || n > r || isNaN(r.getDate())) && (n = r);
91
- }), n || /* @__PURE__ */ new Date(NaN);
92
- }
93
- function x(e, t) {
94
- N(2, arguments);
95
- var n = Z(e), a = Z(t);
96
- return n.getTime() === a.getTime();
97
- }
98
- var fn = 6048e5;
99
- function vn(e, t, n) {
100
- N(2, arguments);
101
- var a = Y(e, n), r = Y(t, n), o = a.getTime() - ke(a), i = r.getTime() - ke(r);
102
- return Math.round((o - i) / fn);
103
- }
104
- function P(e) {
105
- N(1, arguments);
106
- var t = M(e);
107
- return t.setDate(1), t.setHours(0, 0, 0, 0), t;
108
- }
109
- function mn(e) {
110
- N(1, arguments);
111
- var t = M(e), n = /* @__PURE__ */ new Date(0);
112
- return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
113
- }
114
- function he(e, t) {
115
- var n, a, r, o, i, l, s, c;
116
- N(1, arguments);
117
- var u = Q(), f = F((n = (a = (r = (o = t == null ? void 0 : t.weekStartsOn) !== null && o !== void 0 ? o : t == null || (i = t.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.weekStartsOn) !== null && r !== void 0 ? r : u.weekStartsOn) !== null && a !== void 0 ? a : (s = u.locale) === null || s === void 0 || (c = s.options) === null || c === void 0 ? void 0 : c.weekStartsOn) !== null && n !== void 0 ? n : 0);
118
- if (!(f >= 0 && f <= 6))
119
- throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
120
- var v = M(e), m = v.getDay(), h = (m < f ? -7 : 0) + 6 - (m - f);
121
- return v.setDate(v.getDate() + h), v.setHours(23, 59, 59, 999), v;
122
- }
123
- function Te(e) {
124
- return N(1, arguments), he(e, {
125
- weekStartsOn: 1
126
- });
127
- }
128
- function hn(e) {
129
- N(1, arguments);
130
- var t = M(e), n = t.getFullYear(), a = t.getMonth(), r = /* @__PURE__ */ new Date(0);
131
- return r.setFullYear(n, a + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
132
- }
133
- var yn = 6048e5;
134
- function pn(e) {
135
- N(1, arguments);
136
- var t = M(e), n = B(t).getTime() - sn(t).getTime();
137
- return Math.round(n / yn) + 1;
138
- }
139
- function gn(e) {
140
- N(1, arguments);
141
- var t = M(e), n = t.getTime();
142
- return n;
143
- }
144
- function bn(e) {
145
- return N(1, arguments), Math.floor(gn(e) / 1e3);
146
- }
147
- function _n(e, t) {
148
- var n, a, r, o, i, l, s, c;
149
- N(1, arguments);
150
- var u = M(e), f = u.getFullYear(), v = Q(), m = F((n = (a = (r = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (i = t.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && r !== void 0 ? r : v.firstWeekContainsDate) !== null && a !== void 0 ? a : (s = v.locale) === null || s === void 0 || (c = s.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1);
151
- if (!(m >= 1 && m <= 7))
152
- throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");
153
- var h = /* @__PURE__ */ new Date(0);
154
- h.setFullYear(f + 1, 0, m), h.setHours(0, 0, 0, 0);
155
- var D = Y(h, t), g = /* @__PURE__ */ new Date(0);
156
- g.setFullYear(f, 0, m), g.setHours(0, 0, 0, 0);
157
- var _ = Y(g, t);
158
- return u.getTime() >= D.getTime() ? f + 1 : u.getTime() >= _.getTime() ? f : f - 1;
159
- }
160
- function Dn(e, t) {
161
- var n, a, r, o, i, l, s, c;
162
- N(1, arguments);
163
- var u = Q(), f = F((n = (a = (r = (o = t == null ? void 0 : t.firstWeekContainsDate) !== null && o !== void 0 ? o : t == null || (i = t.locale) === null || i === void 0 || (l = i.options) === null || l === void 0 ? void 0 : l.firstWeekContainsDate) !== null && r !== void 0 ? r : u.firstWeekContainsDate) !== null && a !== void 0 ? a : (s = u.locale) === null || s === void 0 || (c = s.options) === null || c === void 0 ? void 0 : c.firstWeekContainsDate) !== null && n !== void 0 ? n : 1), v = _n(e, t), m = /* @__PURE__ */ new Date(0);
164
- m.setFullYear(v, 0, f), m.setHours(0, 0, 0, 0);
165
- var h = Y(m, t);
166
- return h;
167
- }
168
- var Nn = 6048e5;
169
- function wn(e, t) {
170
- N(1, arguments);
171
- var n = M(e), a = Y(n, t).getTime() - Dn(n, t).getTime();
172
- return Math.round(a / Nn) + 1;
173
- }
174
- function kn(e) {
175
- N(1, arguments);
176
- var t = M(e), n = t.getMonth();
177
- return t.setFullYear(t.getFullYear(), n + 1, 0), t.setHours(0, 0, 0, 0), t;
178
- }
179
- function Mn(e, t) {
180
- return N(1, arguments), vn(kn(e), P(e), t) + 1;
181
- }
182
- function ve(e, t) {
183
- N(2, arguments);
184
- var n = M(e), a = M(t);
185
- return n.getTime() > a.getTime();
186
- }
187
- function Ie(e, t) {
188
- N(2, arguments);
189
- var n = M(e), a = M(t);
190
- return n.getTime() < a.getTime();
191
- }
192
- function ye(e, t) {
193
- N(2, arguments);
194
- var n = M(e), a = M(t);
195
- return n.getFullYear() === a.getFullYear() && n.getMonth() === a.getMonth();
196
- }
197
- function Cn(e, t) {
198
- N(2, arguments);
199
- var n = M(e), a = M(t);
200
- return n.getFullYear() === a.getFullYear();
201
- }
202
- function ie(e, t) {
203
- N(2, arguments);
204
- var n = F(t);
205
- return S(e, -n);
206
- }
207
- function le(e, t) {
208
- N(2, arguments);
209
- var n = M(e), a = F(t), r = n.getFullYear(), o = n.getDate(), i = /* @__PURE__ */ new Date(0);
210
- i.setFullYear(r, a, 15), i.setHours(0, 0, 0, 0);
211
- var l = hn(i);
212
- return n.setMonth(a, Math.min(o, l)), n;
213
- }
214
- function Me(e, t) {
215
- N(2, arguments);
216
- var n = M(e), a = F(t);
217
- return isNaN(n.getTime()) ? /* @__PURE__ */ new Date(NaN) : (n.setFullYear(a), n);
218
- }
219
- var p = function() {
220
- return p = Object.assign || function(t) {
221
- for (var n, a = 1, r = arguments.length; a < r; a++) {
222
- n = arguments[a];
223
- for (var o in n) Object.prototype.hasOwnProperty.call(n, o) && (t[o] = n[o]);
224
- }
225
- return t;
226
- }, p.apply(this, arguments);
227
- };
228
- function On(e, t) {
229
- var n = {};
230
- for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
231
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
232
- for (var r = 0, a = Object.getOwnPropertySymbols(e); r < a.length; r++)
233
- t.indexOf(a[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, a[r]) && (n[a[r]] = e[a[r]]);
234
- return n;
235
- }
236
- function Le(e, t, n) {
237
- for (var a = 0, r = t.length, o; a < r; a++)
238
- (o || !(a in t)) && (o || (o = Array.prototype.slice.call(t, 0, a)), o[a] = t[a]);
239
- return e.concat(o || Array.prototype.slice.call(t));
240
- }
241
- function V(e) {
242
- return e.mode === "multiple";
243
- }
244
- function z(e) {
245
- return e.mode === "range";
246
- }
247
- function ee(e) {
248
- return e.mode === "single";
249
- }
250
- var Sn = {
251
- root: "rdp",
252
- multiple_months: "rdp-multiple_months",
253
- with_weeknumber: "rdp-with_weeknumber",
254
- vhidden: "rdp-vhidden",
255
- button_reset: "rdp-button_reset",
256
- button: "rdp-button",
257
- caption: "rdp-caption",
258
- caption_start: "rdp-caption_start",
259
- caption_end: "rdp-caption_end",
260
- caption_between: "rdp-caption_between",
261
- caption_label: "rdp-caption_label",
262
- caption_dropdowns: "rdp-caption_dropdowns",
263
- dropdown: "rdp-dropdown",
264
- dropdown_month: "rdp-dropdown_month",
265
- dropdown_year: "rdp-dropdown_year",
266
- dropdown_icon: "rdp-dropdown_icon",
267
- months: "rdp-months",
268
- month: "rdp-month",
269
- table: "rdp-table",
270
- tbody: "rdp-tbody",
271
- tfoot: "rdp-tfoot",
272
- head: "rdp-head",
273
- head_row: "rdp-head_row",
274
- head_cell: "rdp-head_cell",
275
- nav: "rdp-nav",
276
- nav_button: "rdp-nav_button",
277
- nav_button_previous: "rdp-nav_button_previous",
278
- nav_button_next: "rdp-nav_button_next",
279
- nav_icon: "rdp-nav_icon",
280
- row: "rdp-row",
281
- weeknumber: "rdp-weeknumber",
282
- cell: "rdp-cell",
283
- day: "rdp-day",
284
- day_today: "rdp-day_today",
285
- day_outside: "rdp-day_outside",
286
- day_selected: "rdp-day_selected",
287
- day_disabled: "rdp-day_disabled",
288
- day_hidden: "rdp-day_hidden",
289
- day_range_start: "rdp-day_range_start",
290
- day_range_end: "rdp-day_range_end",
291
- day_range_middle: "rdp-day_range_middle"
292
- };
293
- function xn(e, t) {
294
- return W(e, "LLLL y", t);
295
- }
296
- function Pn(e, t) {
297
- return W(e, "d", t);
298
- }
299
- function Wn(e, t) {
300
- return W(e, "LLLL", t);
301
- }
302
- function Tn(e) {
303
- return "".concat(e);
304
- }
305
- function In(e, t) {
306
- return W(e, "cccccc", t);
307
- }
308
- function Ln(e, t) {
309
- return W(e, "yyyy", t);
310
- }
311
- var Fn = /* @__PURE__ */ Object.freeze({
312
- __proto__: null,
313
- formatCaption: xn,
314
- formatDay: Pn,
315
- formatMonthCaption: Wn,
316
- formatWeekNumber: Tn,
317
- formatWeekdayName: In,
318
- formatYearCaption: Ln
319
- }), Yn = function(e, t, n) {
320
- return W(e, "do MMMM (EEEE)", n);
321
- }, En = function() {
322
- return "Month: ";
323
- }, Rn = function() {
324
- return "Go to next month";
325
- }, Bn = function() {
326
- return "Go to previous month";
327
- }, jn = function(e, t) {
328
- return W(e, "cccc", t);
329
- }, Hn = function(e) {
330
- return "Week n. ".concat(e);
331
- }, $n = function() {
332
- return "Year: ";
333
- }, An = /* @__PURE__ */ Object.freeze({
334
- __proto__: null,
335
- labelDay: Yn,
336
- labelMonthDropdown: En,
337
- labelNext: Rn,
338
- labelPrevious: Bn,
339
- labelWeekNumber: Hn,
340
- labelWeekday: jn,
341
- labelYearDropdown: $n
342
- });
343
- function Kn() {
344
- var e = "buttons", t = Sn, n = rn, a = {}, r = {}, o = 1, i = {}, l = /* @__PURE__ */ new Date();
345
- return {
346
- captionLayout: e,
347
- classNames: t,
348
- formatters: Fn,
349
- labels: An,
350
- locale: n,
351
- modifiersClassNames: a,
352
- modifiers: r,
353
- numberOfMonths: o,
354
- styles: i,
355
- today: l,
356
- mode: "default"
357
- };
358
- }
359
- function Un(e) {
360
- var t = e.fromYear, n = e.toYear, a = e.fromMonth, r = e.toMonth, o = e.fromDate, i = e.toDate;
361
- return a ? o = P(a) : t && (o = new Date(t, 0, 1)), r ? i = me(r) : n && (i = new Date(n, 11, 31)), {
362
- fromDate: o ? Z(o) : void 0,
363
- toDate: i ? Z(i) : void 0
364
- };
365
- }
366
- var Fe = j(void 0);
367
- function Vn(e) {
368
- var t, n = e.initialProps, a = Kn(), r = Un(n), o = r.fromDate, i = r.toDate, l = (t = n.captionLayout) !== null && t !== void 0 ? t : a.captionLayout;
369
- l !== "buttons" && (!o || !i) && (l = "buttons");
370
- var s;
371
- (ee(n) || V(n) || z(n)) && (s = n.onSelect);
372
- var c = p(p(p({}, a), n), { captionLayout: l, classNames: p(p({}, a.classNames), n.classNames), components: p({}, n.components), formatters: p(p({}, a.formatters), n.formatters), fromDate: o, labels: p(p({}, a.labels), n.labels), mode: n.mode || a.mode, modifiers: p(p({}, a.modifiers), n.modifiers), modifiersClassNames: p(p({}, a.modifiersClassNames), n.modifiersClassNames), onSelect: s, styles: p(p({}, a.styles), n.styles), toDate: i });
373
- return d(Fe.Provider, { value: c, children: e.children });
374
- }
375
- function w() {
376
- var e = H(Fe);
377
- if (!e)
378
- throw new Error("useDayPicker must be used within a DayPickerProvider.");
379
- return e;
380
- }
381
- function Ye(e) {
382
- var t = w(), n = t.locale, a = t.classNames, r = t.styles, o = t.formatters.formatCaption;
383
- return d("div", { className: a.caption_label, style: r.caption_label, "aria-live": "polite", role: "presentation", id: e.id, children: o(e.displayMonth, { locale: n }) });
384
- }
385
- function zn(e) {
386
- return d("svg", p({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, e, { children: d("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" }) }));
387
- }
388
- function Ee(e) {
389
- var t, n, a = e.onChange, r = e.value, o = e.children, i = e.caption, l = e.className, s = e.style, c = w(), u = (n = (t = c.components) === null || t === void 0 ? void 0 : t.IconDropdown) !== null && n !== void 0 ? n : zn;
390
- return O("div", { className: l, style: s, children: [d("span", { className: c.classNames.vhidden, children: e["aria-label"] }), d("select", { name: e.name, "aria-label": e["aria-label"], className: c.classNames.dropdown, style: c.styles.dropdown, value: r, onChange: a, children: o }), O("div", { className: c.classNames.caption_label, style: c.styles.caption_label, "aria-hidden": "true", children: [i, d(u, { className: c.classNames.dropdown_icon, style: c.styles.dropdown_icon })] })] });
391
- }
392
- function qn(e) {
393
- var t, n = w(), a = n.fromDate, r = n.toDate, o = n.styles, i = n.locale, l = n.formatters.formatMonthCaption, s = n.classNames, c = n.components, u = n.labels.labelMonthDropdown;
394
- if (!a)
395
- return d(T, {});
396
- if (!r)
397
- return d(T, {});
398
- var f = [];
399
- if (Cn(a, r))
400
- for (var v = P(a), m = a.getMonth(); m <= r.getMonth(); m++)
401
- f.push(le(v, m));
402
- else
403
- for (var v = P(/* @__PURE__ */ new Date()), m = 0; m <= 11; m++)
404
- f.push(le(v, m));
405
- var h = function(g) {
406
- var _ = Number(g.target.value), k = le(P(e.displayMonth), _);
407
- e.onChange(k);
408
- }, D = (t = c == null ? void 0 : c.Dropdown) !== null && t !== void 0 ? t : Ee;
409
- return d(D, { name: "months", "aria-label": u(), className: s.dropdown_month, style: o.dropdown_month, onChange: h, value: e.displayMonth.getMonth(), caption: l(e.displayMonth, { locale: i }), children: f.map(function(g) {
410
- return d("option", { value: g.getMonth(), children: l(g, { locale: i }) }, g.getMonth());
411
- }) });
412
- }
413
- function Jn(e) {
414
- var t, n = e.displayMonth, a = w(), r = a.fromDate, o = a.toDate, i = a.locale, l = a.styles, s = a.classNames, c = a.components, u = a.formatters.formatYearCaption, f = a.labels.labelYearDropdown, v = [];
415
- if (!r)
416
- return d(T, {});
417
- if (!o)
418
- return d(T, {});
419
- for (var m = r.getFullYear(), h = o.getFullYear(), D = m; D <= h; D++)
420
- v.push(Me(mn(/* @__PURE__ */ new Date()), D));
421
- var g = function(k) {
422
- var $ = Me(P(n), Number(k.target.value));
423
- e.onChange($);
424
- }, _ = (t = c == null ? void 0 : c.Dropdown) !== null && t !== void 0 ? t : Ee;
425
- return d(_, { name: "years", "aria-label": f(), className: s.dropdown_year, style: l.dropdown_year, onChange: g, value: n.getFullYear(), caption: u(n, { locale: i }), children: v.map(function(k) {
426
- return d("option", { value: k.getFullYear(), children: u(k, { locale: i }) }, k.getFullYear());
427
- }) });
428
- }
429
- function Zn(e, t) {
430
- var n = K(e), a = n[0], r = n[1], o = t === void 0 ? a : t;
431
- return [o, r];
432
- }
433
- function Gn(e) {
434
- var t = e.month, n = e.defaultMonth, a = e.today, r = t || n || a || /* @__PURE__ */ new Date(), o = e.toDate, i = e.fromDate, l = e.numberOfMonths, s = l === void 0 ? 1 : l;
435
- if (o && U(o, r) < 0) {
436
- var c = -1 * (s - 1);
437
- r = I(o, c);
438
- }
439
- return i && U(r, i) < 0 && (r = i), P(r);
440
- }
441
- function Xn() {
442
- var e = w(), t = Gn(e), n = Zn(t, e.month), a = n[0], r = n[1], o = function(i) {
443
- var l;
444
- if (!e.disableNavigation) {
445
- var s = P(i);
446
- r(s), (l = e.onMonthChange) === null || l === void 0 || l.call(e, s);
447
- }
448
- };
449
- return [a, o];
450
- }
451
- function Qn(e, t) {
452
- for (var n = t.reverseMonths, a = t.numberOfMonths, r = P(e), o = P(I(r, a)), i = U(o, r), l = [], s = 0; s < i; s++) {
453
- var c = I(r, s);
454
- l.push(c);
455
- }
456
- return n && (l = l.reverse()), l;
457
- }
458
- function et(e, t) {
459
- if (!t.disableNavigation) {
460
- var n = t.toDate, a = t.pagedNavigation, r = t.numberOfMonths, o = r === void 0 ? 1 : r, i = a ? o : 1, l = P(e);
461
- if (!n)
462
- return I(l, i);
463
- var s = U(n, e);
464
- if (!(s < o))
465
- return I(l, i);
466
- }
467
- }
468
- function nt(e, t) {
469
- if (!t.disableNavigation) {
470
- var n = t.fromDate, a = t.pagedNavigation, r = t.numberOfMonths, o = r === void 0 ? 1 : r, i = a ? o : 1, l = P(e);
471
- if (!n)
472
- return I(l, -i);
473
- var s = U(l, n);
474
- if (!(s <= 0))
475
- return I(l, -i);
476
- }
477
- }
478
- var Re = j(void 0);
479
- function tt(e) {
480
- var t = w(), n = Xn(), a = n[0], r = n[1], o = Qn(a, t), i = et(a, t), l = nt(a, t), s = function(f) {
481
- return o.some(function(v) {
482
- return ye(f, v);
483
- });
484
- }, c = function(f, v) {
485
- s(f) || (v && Ie(f, v) ? r(I(f, 1 + t.numberOfMonths * -1)) : r(f));
486
- }, u = {
487
- currentMonth: a,
488
- displayMonths: o,
489
- goToMonth: r,
490
- goToDate: c,
491
- previousMonth: l,
492
- nextMonth: i,
493
- isDateDisplayed: s
494
- };
495
- return d(Re.Provider, { value: u, children: e.children });
496
- }
497
- function q() {
498
- var e = H(Re);
499
- if (!e)
500
- throw new Error("useNavigation must be used within a NavigationProvider");
501
- return e;
502
- }
503
- function Ce(e) {
504
- var t, n = w(), a = n.classNames, r = n.styles, o = n.components, i = q().goToMonth, l = function(u) {
505
- i(I(u, e.displayIndex ? -e.displayIndex : 0));
506
- }, s = (t = o == null ? void 0 : o.CaptionLabel) !== null && t !== void 0 ? t : Ye, c = d(s, { id: e.id, displayMonth: e.displayMonth });
507
- return O("div", { className: a.caption_dropdowns, style: r.caption_dropdowns, children: [d("div", { className: a.vhidden, children: c }), d(qn, { onChange: l, displayMonth: e.displayMonth }), d(Jn, { onChange: l, displayMonth: e.displayMonth })] });
508
- }
509
- function at(e) {
510
- return d("svg", p({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d("path", { d: "M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z", fill: "currentColor", fillRule: "nonzero" }) }));
511
- }
512
- function rt(e) {
513
- return d("svg", p({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: d("path", { d: "M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z", fill: "currentColor" }) }));
514
- }
515
- var G = nn(function(e, t) {
516
- var n = w(), a = n.classNames, r = n.styles, o = [a.button_reset, a.button];
517
- e.className && o.push(e.className);
518
- var i = o.join(" "), l = p(p({}, r.button_reset), r.button);
519
- return e.style && Object.assign(l, e.style), d("button", p({}, e, { ref: t, type: "button", className: i, style: l }));
520
- });
521
- function ot(e) {
522
- var t, n, a = w(), r = a.dir, o = a.locale, i = a.classNames, l = a.styles, s = a.labels, c = s.labelPrevious, u = s.labelNext, f = a.components;
523
- if (!e.nextMonth && !e.previousMonth)
524
- return d(T, {});
525
- var v = c(e.previousMonth, { locale: o }), m = [
526
- i.nav_button,
527
- i.nav_button_previous
528
- ].join(" "), h = u(e.nextMonth, { locale: o }), D = [
529
- i.nav_button,
530
- i.nav_button_next
531
- ].join(" "), g = (t = f == null ? void 0 : f.IconRight) !== null && t !== void 0 ? t : rt, _ = (n = f == null ? void 0 : f.IconLeft) !== null && n !== void 0 ? n : at;
532
- return O("div", { className: i.nav, style: l.nav, children: [!e.hidePrevious && d(G, { name: "previous-month", "aria-label": v, className: m, style: l.nav_button_previous, disabled: !e.previousMonth, onClick: e.onPreviousClick, children: r === "rtl" ? d(g, { className: i.nav_icon, style: l.nav_icon }) : d(_, { className: i.nav_icon, style: l.nav_icon }) }), !e.hideNext && d(G, { name: "next-month", "aria-label": h, className: D, style: l.nav_button_next, disabled: !e.nextMonth, onClick: e.onNextClick, children: r === "rtl" ? d(_, { className: i.nav_icon, style: l.nav_icon }) : d(g, { className: i.nav_icon, style: l.nav_icon }) })] });
533
- }
534
- function Oe(e) {
535
- var t = w().numberOfMonths, n = q(), a = n.previousMonth, r = n.nextMonth, o = n.goToMonth, i = n.displayMonths, l = i.findIndex(function(h) {
536
- return ye(e.displayMonth, h);
537
- }), s = l === 0, c = l === i.length - 1, u = t > 1 && (s || !c), f = t > 1 && (c || !s), v = function() {
538
- a && o(a);
539
- }, m = function() {
540
- r && o(r);
541
- };
542
- return d(ot, { displayMonth: e.displayMonth, hideNext: u, hidePrevious: f, nextMonth: r, previousMonth: a, onPreviousClick: v, onNextClick: m });
543
- }
544
- function it(e) {
545
- var t, n = w(), a = n.classNames, r = n.disableNavigation, o = n.styles, i = n.captionLayout, l = n.components, s = (t = l == null ? void 0 : l.CaptionLabel) !== null && t !== void 0 ? t : Ye, c;
546
- return r ? c = d(s, { id: e.id, displayMonth: e.displayMonth }) : i === "dropdown" ? c = d(Ce, { displayMonth: e.displayMonth, id: e.id }) : i === "dropdown-buttons" ? c = O(T, { children: [d(Ce, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id }), d(Oe, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id })] }) : c = O(T, { children: [d(s, { id: e.id, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), d(Oe, { displayMonth: e.displayMonth, id: e.id })] }), d("div", { className: a.caption, style: o.caption, children: c });
547
- }
548
- function lt(e) {
549
- var t = w(), n = t.footer, a = t.styles, r = t.classNames.tfoot;
550
- return n ? d("tfoot", { className: r, style: a.tfoot, children: d("tr", { children: d("td", { colSpan: 8, children: n }) }) }) : d(T, {});
551
- }
552
- function st(e, t, n) {
553
- for (var a = n ? B(/* @__PURE__ */ new Date()) : Y(/* @__PURE__ */ new Date(), { locale: e, weekStartsOn: t }), r = [], o = 0; o < 7; o++) {
554
- var i = S(a, o);
555
- r.push(i);
556
- }
557
- return r;
558
- }
559
- function ut() {
560
- var e = w(), t = e.classNames, n = e.styles, a = e.showWeekNumber, r = e.locale, o = e.weekStartsOn, i = e.ISOWeek, l = e.formatters.formatWeekdayName, s = e.labels.labelWeekday, c = st(r, o, i);
561
- return O("tr", { style: n.head_row, className: t.head_row, children: [a && d("td", { style: n.head_cell, className: t.head_cell }), c.map(function(u, f) {
562
- return d("th", { scope: "col", className: t.head_cell, style: n.head_cell, "aria-label": s(u, { locale: r }), children: l(u, { locale: r }) }, f);
563
- })] });
564
- }
565
- function dt() {
566
- var e, t = w(), n = t.classNames, a = t.styles, r = t.components, o = (e = r == null ? void 0 : r.HeadRow) !== null && e !== void 0 ? e : ut;
567
- return d("thead", { style: a.head, className: n.head, children: d(o, {}) });
568
- }
569
- function ct(e) {
570
- var t = w(), n = t.locale, a = t.formatters.formatDay;
571
- return d(T, { children: a(e.date, { locale: n }) });
572
- }
573
- var pe = j(void 0);
574
- function ft(e) {
575
- if (!V(e.initialProps)) {
576
- var t = {
577
- selected: void 0,
578
- modifiers: {
579
- disabled: []
580
- }
581
- };
582
- return d(pe.Provider, { value: t, children: e.children });
583
- }
584
- return d(vt, { initialProps: e.initialProps, children: e.children });
585
- }
586
- function vt(e) {
587
- var t = e.initialProps, n = e.children, a = t.selected, r = t.min, o = t.max, i = function(c, u, f) {
588
- var v, m;
589
- (v = t.onDayClick) === null || v === void 0 || v.call(t, c, u, f);
590
- var h = !!(u.selected && r && (a == null ? void 0 : a.length) === r);
591
- if (!h) {
592
- var D = !!(!u.selected && o && (a == null ? void 0 : a.length) === o);
593
- if (!D) {
594
- var g = a ? Le([], a) : [];
595
- if (u.selected) {
596
- var _ = g.findIndex(function(k) {
597
- return x(c, k);
598
- });
599
- g.splice(_, 1);
600
- } else
601
- g.push(c);
602
- (m = t.onSelect) === null || m === void 0 || m.call(t, g, c, u, f);
603
- }
604
- }
605
- }, l = {
606
- disabled: []
607
- };
608
- a && l.disabled.push(function(c) {
609
- var u = o && a.length > o - 1, f = a.some(function(v) {
610
- return x(v, c);
611
- });
612
- return !!(u && !f);
613
- });
614
- var s = {
615
- selected: a,
616
- onDayClick: i,
617
- modifiers: l
618
- };
619
- return d(pe.Provider, { value: s, children: n });
620
- }
621
- function ge() {
622
- var e = H(pe);
623
- if (!e)
624
- throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");
625
- return e;
626
- }
627
- function mt(e, t) {
628
- var n = t || {}, a = n.from, r = n.to;
629
- return a && r ? x(r, e) && x(a, e) ? void 0 : x(r, e) ? { from: r, to: void 0 } : x(a, e) ? void 0 : ve(a, e) ? { from: e, to: r } : { from: a, to: e } : r ? ve(e, r) ? { from: r, to: e } : { from: e, to: r } : a ? Ie(e, a) ? { from: e, to: a } : { from: a, to: e } : { from: e, to: void 0 };
630
- }
631
- var be = j(void 0);
632
- function ht(e) {
633
- if (!z(e.initialProps)) {
634
- var t = {
635
- selected: void 0,
636
- modifiers: {
637
- range_start: [],
638
- range_end: [],
639
- range_middle: [],
640
- disabled: []
641
- }
642
- };
643
- return d(be.Provider, { value: t, children: e.children });
644
- }
645
- return d(yt, { initialProps: e.initialProps, children: e.children });
646
- }
647
- function yt(e) {
648
- var t = e.initialProps, n = e.children, a = t.selected, r = a || {}, o = r.from, i = r.to, l = t.min, s = t.max, c = function(m, h, D) {
649
- var g, _;
650
- (g = t.onDayClick) === null || g === void 0 || g.call(t, m, h, D);
651
- var k = mt(m, a);
652
- (_ = t.onSelect) === null || _ === void 0 || _.call(t, k, m, h, D);
653
- }, u = {
654
- range_start: [],
655
- range_end: [],
656
- range_middle: [],
657
- disabled: []
658
- };
659
- if (o ? (u.range_start = [o], i ? (u.range_end = [i], x(o, i) || (u.range_middle = [
660
- {
661
- after: o,
662
- before: i
663
- }
664
- ])) : u.range_end = [o]) : i && (u.range_start = [i], u.range_end = [i]), l && (o && !i && u.disabled.push({
665
- after: ie(o, l - 1),
666
- before: S(o, l - 1)
667
- }), o && i && u.disabled.push({
668
- after: o,
669
- before: S(o, l - 1)
670
- }), !o && i && u.disabled.push({
671
- after: ie(i, l - 1),
672
- before: S(i, l - 1)
673
- })), s) {
674
- if (o && !i && (u.disabled.push({
675
- before: S(o, -s + 1)
676
- }), u.disabled.push({
677
- after: S(o, s - 1)
678
- })), o && i) {
679
- var f = R(i, o) + 1, v = s - f;
680
- u.disabled.push({
681
- before: ie(o, v)
682
- }), u.disabled.push({
683
- after: S(i, v)
684
- });
685
- }
686
- !o && i && (u.disabled.push({
687
- before: S(i, -s + 1)
688
- }), u.disabled.push({
689
- after: S(i, s - 1)
690
- }));
691
- }
692
- return d(be.Provider, { value: { selected: a, onDayClick: c, modifiers: u }, children: n });
693
- }
694
- function _e() {
695
- var e = H(be);
696
- if (!e)
697
- throw new Error("useSelectRange must be used within a SelectRangeProvider");
698
- return e;
699
- }
700
- function J(e) {
701
- return Array.isArray(e) ? Le([], e) : e !== void 0 ? [e] : [];
702
- }
703
- function pt(e) {
704
- var t = {};
705
- return Object.entries(e).forEach(function(n) {
706
- var a = n[0], r = n[1];
707
- t[a] = J(r);
708
- }), t;
709
- }
710
- var L;
711
- (function(e) {
712
- e.Outside = "outside", e.Disabled = "disabled", e.Selected = "selected", e.Hidden = "hidden", e.Today = "today", e.RangeStart = "range_start", e.RangeEnd = "range_end", e.RangeMiddle = "range_middle";
713
- })(L || (L = {}));
714
- var gt = L.Selected, E = L.Disabled, bt = L.Hidden, _t = L.Today, se = L.RangeEnd, ue = L.RangeMiddle, de = L.RangeStart, Dt = L.Outside;
715
- function Nt(e, t, n) {
716
- var a, r = (a = {}, a[gt] = J(e.selected), a[E] = J(e.disabled), a[bt] = J(e.hidden), a[_t] = [e.today], a[se] = [], a[ue] = [], a[de] = [], a[Dt] = [], a);
717
- return e.fromDate && r[E].push({ before: e.fromDate }), e.toDate && r[E].push({ after: e.toDate }), V(e) ? r[E] = r[E].concat(t.modifiers[E]) : z(e) && (r[E] = r[E].concat(n.modifiers[E]), r[de] = n.modifiers[de], r[ue] = n.modifiers[ue], r[se] = n.modifiers[se]), r;
718
- }
719
- var Be = j(void 0);
720
- function wt(e) {
721
- var t = w(), n = ge(), a = _e(), r = Nt(t, n, a), o = pt(t.modifiers), i = p(p({}, r), o);
722
- return d(Be.Provider, { value: i, children: e.children });
723
- }
724
- function je() {
725
- var e = H(Be);
726
- if (!e)
727
- throw new Error("useModifiers must be used within a ModifiersProvider");
728
- return e;
729
- }
730
- function kt(e) {
731
- return !!(e && typeof e == "object" && "before" in e && "after" in e);
732
- }
733
- function Mt(e) {
734
- return !!(e && typeof e == "object" && "from" in e);
735
- }
736
- function Ct(e) {
737
- return !!(e && typeof e == "object" && "after" in e);
738
- }
739
- function Ot(e) {
740
- return !!(e && typeof e == "object" && "before" in e);
741
- }
742
- function St(e) {
743
- return !!(e && typeof e == "object" && "dayOfWeek" in e);
744
- }
745
- function xt(e, t) {
746
- var n, a = t.from, r = t.to;
747
- if (a && r) {
748
- var o = R(r, a) < 0;
749
- o && (n = [r, a], a = n[0], r = n[1]);
750
- var i = R(e, a) >= 0 && R(r, e) >= 0;
751
- return i;
752
- }
753
- return r ? x(r, e) : a ? x(a, e) : !1;
754
- }
755
- function Pt(e) {
756
- return We(e);
757
- }
758
- function Wt(e) {
759
- return Array.isArray(e) && e.every(We);
760
- }
761
- function Tt(e, t) {
762
- return t.some(function(n) {
763
- if (typeof n == "boolean")
764
- return n;
765
- if (Pt(n))
766
- return x(e, n);
767
- if (Wt(n))
768
- return n.includes(e);
769
- if (Mt(n))
770
- return xt(e, n);
771
- if (St(n))
772
- return n.dayOfWeek.includes(e.getDay());
773
- if (kt(n)) {
774
- var a = R(n.before, e), r = R(n.after, e), o = a > 0, i = r < 0, l = ve(n.before, n.after);
775
- return l ? i && o : o || i;
776
- }
777
- return Ct(n) ? R(e, n.after) > 0 : Ot(n) ? R(n.before, e) > 0 : typeof n == "function" ? n(e) : !1;
778
- });
779
- }
780
- function De(e, t, n) {
781
- var a = Object.keys(t).reduce(function(o, i) {
782
- var l = t[i];
783
- return Tt(e, l) && o.push(i), o;
784
- }, []), r = {};
785
- return a.forEach(function(o) {
786
- return r[o] = !0;
787
- }), n && !ye(e, n) && (r.outside = !0), r;
788
- }
789
- function It(e, t) {
790
- for (var n = P(e[0]), a = me(e[e.length - 1]), r, o, i = n; i <= a; ) {
791
- var l = De(i, t), s = !l.disabled && !l.hidden;
792
- if (!s) {
793
- i = S(i, 1);
794
- continue;
795
- }
796
- if (l.selected)
797
- return i;
798
- l.today && !o && (o = i), r || (r = i), i = S(i, 1);
799
- }
800
- return o || r;
801
- }
802
- var Lt = 365;
803
- function He(e, t) {
804
- var n = t.moveBy, a = t.direction, r = t.context, o = t.modifiers, i = t.retry, l = i === void 0 ? { count: 0, lastFocused: e } : i, s = r.weekStartsOn, c = r.fromDate, u = r.toDate, f = r.locale, v = {
805
- day: S,
806
- week: fe,
807
- month: I,
808
- year: un,
809
- startOfWeek: function(g) {
810
- return r.ISOWeek ? B(g) : Y(g, { locale: f, weekStartsOn: s });
811
- },
812
- endOfWeek: function(g) {
813
- return r.ISOWeek ? Te(g) : he(g, { locale: f, weekStartsOn: s });
814
- }
815
- }, m = v[n](e, a === "after" ? 1 : -1);
816
- a === "before" && c ? m = dn([c, m]) : a === "after" && u && (m = cn([u, m]));
817
- var h = !0;
818
- if (o) {
819
- var D = De(m, o);
820
- h = !D.disabled && !D.hidden;
821
- }
822
- return h ? m : l.count > Lt ? l.lastFocused : He(m, {
823
- moveBy: n,
824
- direction: a,
825
- context: r,
826
- modifiers: o,
827
- retry: p(p({}, l), { count: l.count + 1 })
828
- });
829
- }
830
- var $e = j(void 0);
831
- function Ft(e) {
832
- var t = q(), n = je(), a = K(), r = a[0], o = a[1], i = K(), l = i[0], s = i[1], c = It(t.displayMonths, n), u = r ?? (l && t.isDateDisplayed(l)) ? l : c, f = function() {
833
- s(r), o(void 0);
834
- }, v = function(g) {
835
- o(g);
836
- }, m = w(), h = function(g, _) {
837
- if (r) {
838
- var k = He(r, {
839
- moveBy: g,
840
- direction: _,
841
- context: m,
842
- modifiers: n
843
- });
844
- x(r, k) || (t.goToDate(k, r), v(k));
845
- }
846
- }, D = {
847
- focusedDay: r,
848
- focusTarget: u,
849
- blur: f,
850
- focus: v,
851
- focusDayAfter: function() {
852
- return h("day", "after");
853
- },
854
- focusDayBefore: function() {
855
- return h("day", "before");
856
- },
857
- focusWeekAfter: function() {
858
- return h("week", "after");
859
- },
860
- focusWeekBefore: function() {
861
- return h("week", "before");
862
- },
863
- focusMonthBefore: function() {
864
- return h("month", "before");
865
- },
866
- focusMonthAfter: function() {
867
- return h("month", "after");
868
- },
869
- focusYearBefore: function() {
870
- return h("year", "before");
871
- },
872
- focusYearAfter: function() {
873
- return h("year", "after");
874
- },
875
- focusStartOfWeek: function() {
876
- return h("startOfWeek", "before");
877
- },
878
- focusEndOfWeek: function() {
879
- return h("endOfWeek", "after");
880
- }
881
- };
882
- return d($e.Provider, { value: D, children: e.children });
883
- }
884
- function Ne() {
885
- var e = H($e);
886
- if (!e)
887
- throw new Error("useFocusContext must be used within a FocusProvider");
888
- return e;
889
- }
890
- function Yt(e, t) {
891
- var n = je(), a = De(e, n, t);
892
- return a;
893
- }
894
- var we = j(void 0);
895
- function Et(e) {
896
- if (!ee(e.initialProps)) {
897
- var t = {
898
- selected: void 0
899
- };
900
- return d(we.Provider, { value: t, children: e.children });
901
- }
902
- return d(Rt, { initialProps: e.initialProps, children: e.children });
903
- }
904
- function Rt(e) {
905
- var t = e.initialProps, n = e.children, a = function(o, i, l) {
906
- var s, c, u;
907
- if ((s = t.onDayClick) === null || s === void 0 || s.call(t, o, i, l), i.selected && !t.required) {
908
- (c = t.onSelect) === null || c === void 0 || c.call(t, void 0, o, i, l);
909
- return;
910
- }
911
- (u = t.onSelect) === null || u === void 0 || u.call(t, o, o, i, l);
912
- }, r = {
913
- selected: t.selected,
914
- onDayClick: a
915
- };
916
- return d(we.Provider, { value: r, children: n });
917
- }
918
- function Ae() {
919
- var e = H(we);
920
- if (!e)
921
- throw new Error("useSelectSingle must be used within a SelectSingleProvider");
922
- return e;
923
- }
924
- function Bt(e, t) {
925
- var n = w(), a = Ae(), r = ge(), o = _e(), i = Ne(), l = i.focusDayAfter, s = i.focusDayBefore, c = i.focusWeekAfter, u = i.focusWeekBefore, f = i.blur, v = i.focus, m = i.focusMonthBefore, h = i.focusMonthAfter, D = i.focusYearBefore, g = i.focusYearAfter, _ = i.focusStartOfWeek, k = i.focusEndOfWeek, $ = function(b) {
926
- var y, ae, re, oe;
927
- ee(n) ? (y = a.onDayClick) === null || y === void 0 || y.call(a, e, t, b) : V(n) ? (ae = r.onDayClick) === null || ae === void 0 || ae.call(r, e, t, b) : z(n) ? (re = o.onDayClick) === null || re === void 0 || re.call(o, e, t, b) : (oe = n.onDayClick) === null || oe === void 0 || oe.call(n, e, t, b);
928
- }, ne = function(b) {
929
- var y;
930
- v(e), (y = n.onDayFocus) === null || y === void 0 || y.call(n, e, t, b);
931
- }, te = function(b) {
932
- var y;
933
- f(), (y = n.onDayBlur) === null || y === void 0 || y.call(n, e, t, b);
934
- }, A = function(b) {
935
- var y;
936
- (y = n.onDayMouseEnter) === null || y === void 0 || y.call(n, e, t, b);
937
- }, Ue = function(b) {
938
- var y;
939
- (y = n.onDayMouseLeave) === null || y === void 0 || y.call(n, e, t, b);
940
- }, Ve = function(b) {
941
- var y;
942
- (y = n.onDayPointerEnter) === null || y === void 0 || y.call(n, e, t, b);
943
- }, ze = function(b) {
944
- var y;
945
- (y = n.onDayPointerLeave) === null || y === void 0 || y.call(n, e, t, b);
946
- }, qe = function(b) {
947
- var y;
948
- (y = n.onDayTouchCancel) === null || y === void 0 || y.call(n, e, t, b);
949
- }, Je = function(b) {
950
- var y;
951
- (y = n.onDayTouchEnd) === null || y === void 0 || y.call(n, e, t, b);
952
- }, Ze = function(b) {
953
- var y;
954
- (y = n.onDayTouchMove) === null || y === void 0 || y.call(n, e, t, b);
955
- }, Ge = function(b) {
956
- var y;
957
- (y = n.onDayTouchStart) === null || y === void 0 || y.call(n, e, t, b);
958
- }, Xe = function(b) {
959
- var y;
960
- (y = n.onDayKeyUp) === null || y === void 0 || y.call(n, e, t, b);
961
- }, Qe = function(b) {
962
- var y;
963
- switch (b.key) {
964
- case "ArrowLeft":
965
- b.preventDefault(), b.stopPropagation(), n.dir === "rtl" ? l() : s();
966
- break;
967
- case "ArrowRight":
968
- b.preventDefault(), b.stopPropagation(), n.dir === "rtl" ? s() : l();
969
- break;
970
- case "ArrowDown":
971
- b.preventDefault(), b.stopPropagation(), c();
972
- break;
973
- case "ArrowUp":
974
- b.preventDefault(), b.stopPropagation(), u();
975
- break;
976
- case "PageUp":
977
- b.preventDefault(), b.stopPropagation(), b.shiftKey ? D() : m();
978
- break;
979
- case "PageDown":
980
- b.preventDefault(), b.stopPropagation(), b.shiftKey ? g() : h();
981
- break;
982
- case "Home":
983
- b.preventDefault(), b.stopPropagation(), _();
984
- break;
985
- case "End":
986
- b.preventDefault(), b.stopPropagation(), k();
987
- break;
988
- }
989
- (y = n.onDayKeyDown) === null || y === void 0 || y.call(n, e, t, b);
990
- }, en = {
991
- onClick: $,
992
- onFocus: ne,
993
- onBlur: te,
994
- onKeyDown: Qe,
995
- onKeyUp: Xe,
996
- onMouseEnter: A,
997
- onMouseLeave: Ue,
998
- onPointerEnter: Ve,
999
- onPointerLeave: ze,
1000
- onTouchCancel: qe,
1001
- onTouchEnd: Je,
1002
- onTouchMove: Ze,
1003
- onTouchStart: Ge
1004
- };
1005
- return en;
1006
- }
1007
- function jt() {
1008
- var e = w(), t = Ae(), n = ge(), a = _e(), r = ee(e) ? t.selected : V(e) ? n.selected : z(e) ? a.selected : void 0;
1009
- return r;
1010
- }
1011
- function Ht(e) {
1012
- return Object.values(L).includes(e);
1013
- }
1014
- function $t(e, t) {
1015
- var n = [e.classNames.day];
1016
- return Object.keys(t).forEach(function(a) {
1017
- var r = e.modifiersClassNames[a];
1018
- if (r)
1019
- n.push(r);
1020
- else if (Ht(a)) {
1021
- var o = e.classNames["day_".concat(a)];
1022
- o && n.push(o);
1023
- }
1024
- }), n;
1025
- }
1026
- function At(e, t) {
1027
- var n = p({}, e.styles.day);
1028
- return Object.keys(t).forEach(function(a) {
1029
- var r;
1030
- n = p(p({}, n), (r = e.modifiersStyles) === null || r === void 0 ? void 0 : r[a]);
1031
- }), n;
1032
- }
1033
- function Kt(e, t, n) {
1034
- var a, r, o, i = w(), l = Ne(), s = Yt(e, t), c = Bt(e, s), u = jt(), f = !!(i.onDayClick || i.mode !== "default");
1035
- X(function() {
1036
- var A;
1037
- s.outside || l.focusedDay && f && x(l.focusedDay, e) && ((A = n.current) === null || A === void 0 || A.focus());
1038
- }, [
1039
- l.focusedDay,
1040
- e,
1041
- n,
1042
- f,
1043
- s.outside
1044
- ]);
1045
- var v = $t(i, s).join(" "), m = At(i, s), h = !!(s.outside && !i.showOutsideDays || s.hidden), D = (o = (r = i.components) === null || r === void 0 ? void 0 : r.DayContent) !== null && o !== void 0 ? o : ct, g = d(D, { date: e, displayMonth: t, activeModifiers: s }), _ = {
1046
- style: m,
1047
- className: v,
1048
- children: g,
1049
- role: "gridcell"
1050
- }, k = l.focusTarget && x(l.focusTarget, e) && !s.outside, $ = l.focusedDay && x(l.focusedDay, e), ne = p(p(p({}, _), (a = { disabled: s.disabled, role: "gridcell" }, a["aria-selected"] = s.selected, a.tabIndex = $ || k ? 0 : -1, a)), c), te = {
1051
- isButton: f,
1052
- isHidden: h,
1053
- activeModifiers: s,
1054
- selectedDays: u,
1055
- buttonProps: ne,
1056
- divProps: _
1057
- };
1058
- return te;
1059
- }
1060
- function Ut(e) {
1061
- var t = an(null), n = Kt(e.date, e.displayMonth, t);
1062
- return n.isHidden ? d("div", { role: "gridcell" }) : n.isButton ? d(G, p({ name: "day", ref: t }, n.buttonProps)) : d("div", p({}, n.divProps));
1063
- }
1064
- function Vt(e) {
1065
- var t = e.number, n = e.dates, a = w(), r = a.onWeekNumberClick, o = a.styles, i = a.classNames, l = a.locale, s = a.labels.labelWeekNumber, c = a.formatters.formatWeekNumber, u = c(Number(t), { locale: l });
1066
- if (!r)
1067
- return d("span", { className: i.weeknumber, style: o.weeknumber, children: u });
1068
- var f = s(Number(t), { locale: l }), v = function(m) {
1069
- r(t, n, m);
1070
- };
1071
- return d(G, { name: "week-number", "aria-label": f, className: i.weeknumber, style: o.weeknumber, onClick: v, children: u });
1072
- }
1073
- function zt(e) {
1074
- var t, n, a = w(), r = a.styles, o = a.classNames, i = a.showWeekNumber, l = a.components, s = (t = l == null ? void 0 : l.Day) !== null && t !== void 0 ? t : Ut, c = (n = l == null ? void 0 : l.WeekNumber) !== null && n !== void 0 ? n : Vt, u;
1075
- return i && (u = d("td", { className: o.cell, style: r.cell, children: d(c, { number: e.weekNumber, dates: e.dates }) })), O("tr", { className: o.row, style: r.row, children: [u, e.dates.map(function(f) {
1076
- return d("td", { className: o.cell, style: r.cell, role: "presentation", children: d(s, { displayMonth: e.displayMonth, date: f }) }, bn(f));
1077
- })] });
1078
- }
1079
- function Se(e, t, n) {
1080
- for (var a = n != null && n.ISOWeek ? Te(t) : he(t, n), r = n != null && n.ISOWeek ? B(e) : Y(e, n), o = R(a, r), i = [], l = 0; l <= o; l++)
1081
- i.push(S(r, l));
1082
- var s = i.reduce(function(c, u) {
1083
- var f = n != null && n.ISOWeek ? pn(u) : wn(u, n), v = c.find(function(m) {
1084
- return m.weekNumber === f;
1085
- });
1086
- return v ? (v.dates.push(u), c) : (c.push({
1087
- weekNumber: f,
1088
- dates: [u]
1089
- }), c);
1090
- }, []);
1091
- return s;
1092
- }
1093
- function qt(e, t) {
1094
- var n = Se(P(e), me(e), t);
1095
- if (t != null && t.useFixedWeeks) {
1096
- var a = Mn(e, t);
1097
- if (a < 6) {
1098
- var r = n[n.length - 1], o = r.dates[r.dates.length - 1], i = fe(o, 6 - a), l = Se(fe(o, 1), i, t);
1099
- n.push.apply(n, l);
1100
- }
1101
- }
1102
- return n;
1103
- }
1104
- function Jt(e) {
1105
- var t, n, a, r = w(), o = r.locale, i = r.classNames, l = r.styles, s = r.hideHead, c = r.fixedWeeks, u = r.components, f = r.weekStartsOn, v = r.firstWeekContainsDate, m = r.ISOWeek, h = qt(e.displayMonth, {
1106
- useFixedWeeks: !!c,
1107
- ISOWeek: m,
1108
- locale: o,
1109
- weekStartsOn: f,
1110
- firstWeekContainsDate: v
1111
- }), D = (t = u == null ? void 0 : u.Head) !== null && t !== void 0 ? t : dt, g = (n = u == null ? void 0 : u.Row) !== null && n !== void 0 ? n : zt, _ = (a = u == null ? void 0 : u.Footer) !== null && a !== void 0 ? a : lt;
1112
- return O("table", { id: e.id, className: i.table, style: l.table, role: "grid", "aria-labelledby": e["aria-labelledby"], children: [!s && d(D, {}), d("tbody", { className: i.tbody, style: l.tbody, children: h.map(function(k) {
1113
- return d(g, { displayMonth: e.displayMonth, dates: k.dates, weekNumber: k.weekNumber }, k.weekNumber);
1114
- }) }), d(_, { displayMonth: e.displayMonth })] });
1115
- }
1116
- function Zt() {
1117
- return !!(typeof window < "u" && window.document && window.document.createElement);
1118
- }
1119
- var Gt = Zt() ? tn : X, ce = !1, Xt = 0;
1120
- function xe() {
1121
- return "react-day-picker-".concat(++Xt);
1122
- }
1123
- function Qt(e) {
1124
- var t, n = e ?? (ce ? xe() : null), a = K(n), r = a[0], o = a[1];
1125
- return Gt(function() {
1126
- r === null && o(xe());
1127
- }, []), X(function() {
1128
- ce === !1 && (ce = !0);
1129
- }, []), (t = e ?? r) !== null && t !== void 0 ? t : void 0;
1130
- }
1131
- function ea(e) {
1132
- var t, n, a = w(), r = a.dir, o = a.classNames, i = a.styles, l = a.components, s = q().displayMonths, c = Qt(a.id ? "".concat(a.id, "-").concat(e.displayIndex) : void 0), u = a.id ? "".concat(a.id, "-grid-").concat(e.displayIndex) : void 0, f = [o.month], v = i.month, m = e.displayIndex === 0, h = e.displayIndex === s.length - 1, D = !m && !h;
1133
- r === "rtl" && (t = [m, h], h = t[0], m = t[1]), m && (f.push(o.caption_start), v = p(p({}, v), i.caption_start)), h && (f.push(o.caption_end), v = p(p({}, v), i.caption_end)), D && (f.push(o.caption_between), v = p(p({}, v), i.caption_between));
1134
- var g = (n = l == null ? void 0 : l.Caption) !== null && n !== void 0 ? n : it;
1135
- return O("div", { className: f.join(" "), style: v, children: [d(g, { id: c, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), d(Jt, { id: u, "aria-labelledby": c, displayMonth: e.displayMonth })] }, e.displayIndex);
1136
- }
1137
- function na(e) {
1138
- var t = w(), n = t.classNames, a = t.styles;
1139
- return d("div", { className: n.months, style: a.months, children: e.children });
1140
- }
1141
- function ta(e) {
1142
- var t, n, a = e.initialProps, r = w(), o = Ne(), i = q(), l = K(!1), s = l[0], c = l[1];
1143
- X(function() {
1144
- r.initialFocus && o.focusTarget && (s || (o.focus(o.focusTarget), c(!0)));
1145
- }, [
1146
- r.initialFocus,
1147
- s,
1148
- o.focus,
1149
- o.focusTarget,
1150
- o
1151
- ]);
1152
- var u = [r.classNames.root, r.className];
1153
- r.numberOfMonths > 1 && u.push(r.classNames.multiple_months), r.showWeekNumber && u.push(r.classNames.with_weeknumber);
1154
- var f = p(p({}, r.styles.root), r.style), v = Object.keys(a).filter(function(h) {
1155
- return h.startsWith("data-");
1156
- }).reduce(function(h, D) {
1157
- var g;
1158
- return p(p({}, h), (g = {}, g[D] = a[D], g));
1159
- }, {}), m = (n = (t = a.components) === null || t === void 0 ? void 0 : t.Months) !== null && n !== void 0 ? n : na;
1160
- return d("div", p({ className: u.join(" "), style: f, dir: r.dir, id: r.id, nonce: a.nonce, title: a.title, lang: a.lang }, v, { children: d(m, { children: i.displayMonths.map(function(h, D) {
1161
- return d(ea, { displayIndex: D, displayMonth: h }, D);
1162
- }) }) }));
1163
- }
1164
- function aa(e) {
1165
- var t = e.children, n = On(e, ["children"]);
1166
- return d(Vn, { initialProps: n, children: d(tt, { children: d(Et, { initialProps: n, children: d(ft, { initialProps: n, children: d(ht, { initialProps: n, children: d(wt, { children: d(Ft, { children: t }) }) }) }) }) }) });
1167
- }
1168
- function ra(e) {
1169
- return d(aa, p({}, e, { children: d(ta, { initialProps: e }) }));
1170
- }
1171
- const oa = on.base, ia = "date-picker", Ke = ({
1172
- id: e,
1173
- className: t,
1174
- style: n,
1175
- mode: a,
1176
- selected: r,
1177
- setSelection: o,
1178
- fromMonth: i,
1179
- toDate: l,
1180
- customFooter: s,
1181
- timeFrom: c,
1182
- setTimeFrom: u,
1183
- timeTo: f,
1184
- setTimeTo: v,
1185
- dateFormat: m,
1186
- showDebugger: h,
1187
- ...D
1188
- }) => {
1189
- const g = (_) => a === "single" ? W(_, m) : a === "multiple" ? _.map((k) => W(k, m)).join(", ") : a === "range" ? _.from && _.to ? `${W(_.from, m)} - ${W(_.to, m)}` : "Please pick an additional day." : null;
1190
- return /* @__PURE__ */ O(
1191
- "div",
1192
- {
1193
- id: e,
1194
- className: [
1195
- oa,
1196
- ia,
1197
- t
1198
- ].filter((_) => _).join(" "),
1199
- style: n,
1200
- children: [
1201
- /* @__PURE__ */ d(
1202
- ra,
1203
- {
1204
- mode: a,
1205
- selected: r,
1206
- onSelect: o,
1207
- fromMonth: i,
1208
- toDate: l,
1209
- showOutsideDays: !0,
1210
- footer: s || /* @__PURE__ */ O("div", { className: "default-footer", children: [
1211
- u && /* @__PURE__ */ O(T, { children: [
1212
- /* @__PURE__ */ O("p", { className: "time-label s-1", children: [
1213
- /* @__PURE__ */ d("span", { className: "icon", children: "C" }),
1214
- "  Time"
1215
- ] }),
1216
- /* @__PURE__ */ O("div", { className: `time-inputs${f ? " multiple" : ""}`, children: [
1217
- /* @__PURE__ */ d("input", { className: "s-1", type: "time", value: c, onChange: (_) => u(_.target.value) }),
1218
- v && /* @__PURE__ */ O(T, { children: [
1219
- /* @__PURE__ */ d("span", { className: "icon s-2", children: "r" }),
1220
- /* @__PURE__ */ d("input", { className: "s-1", type: "time", value: f, onChange: (_) => v(_.target.value) })
1221
- ] })
1222
- ] })
1223
- ] }),
1224
- /* @__PURE__ */ d("p", { className: "s-1 footer-text", children: r && g(r) })
1225
- ] }),
1226
- ...D
1227
- }
1228
- ),
1229
- h && /* @__PURE__ */ d("div", { className: "debugger", children: /* @__PURE__ */ d("pre", { children: JSON.stringify(r, null, 2) }) })
1230
- ]
1231
- }
1232
- );
1233
- };
1234
- Ke.propTypes = {
1235
- /**
1236
- * The HTML id for this element
1237
- */
1238
- id: C.string,
1239
- /**
1240
- * The HTML class names for this element
1241
- */
1242
- className: C.string,
1243
- /**
1244
- * The React-written, css properties for this element.
1245
- */
1246
- style: C.objectOf(C.string),
1247
- /**
1248
- * The mode for this date picker.
1249
- */
1250
- mode: C.oneOf(["single", "multiple", "range"]),
1251
- /**
1252
- * The current selection.
1253
- */
1254
- // eslint-disable-next-line react/forbid-prop-types
1255
- selected: C.objectOf(C.any).isRequired,
1256
- /**
1257
- * The function to update the selection.
1258
- */
1259
- setSelection: C.func.isRequired,
1260
- /**
1261
- * The earliest month to display.
1262
- */
1263
- fromMonth: C.instanceOf(Date),
1264
- /**
1265
- * The latest month to display.
1266
- */
1267
- toDate: C.instanceOf(Date),
1268
- /**
1269
- * Custom footer component.
1270
- */
1271
- customFooter: C.node,
1272
- /**
1273
- * The start time.
1274
- */
1275
- timeFrom: C.string,
1276
- /**
1277
- * The function to update the start time.
1278
- */
1279
- setTimeFrom: C.func,
1280
- /**
1281
- * The end time.
1282
- */
1283
- timeTo: C.string,
1284
- /**
1285
- * The function to update the end time.
1286
- */
1287
- setTimeTo: C.func,
1288
- /**
1289
- * The date format.
1290
- */
1291
- dateFormat: C.string,
1292
- /**
1293
- * Show the debugger.
1294
- */
1295
- showDebugger: C.bool
1296
- };
1297
- Ke.defaultProps = {
1298
- mode: "single",
1299
- dateFormat: "PPP",
1300
- showDebugger: !1
1301
- };
1302
- export {
1303
- Ke as D,
1304
- ie as s
1305
- };