@senitix/ui 0.4.0 → 0.4.1

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 (223) hide show
  1. package/dist/avatar-BT_SPwFW.cjs +18 -0
  2. package/dist/{avatar-C0aVNCG9.cjs.map → avatar-BT_SPwFW.cjs.map} +1 -1
  3. package/dist/avatar-C5-ZWIqT.js +305 -0
  4. package/dist/{avatar-CN6wcrqY.js.map → avatar-C5-ZWIqT.js.map} +1 -1
  5. package/dist/calendar-BF5drX5u.cjs +12 -0
  6. package/dist/{calendar-BUm7YrNf.cjs.map → calendar-BF5drX5u.cjs.map} +1 -1
  7. package/dist/calendar-CUxm1K7J.js +17 -0
  8. package/dist/{calendar-ChJkFXXr.js.map → calendar-CUxm1K7J.js.map} +1 -1
  9. package/dist/calendar-D3RWU0_G.cjs +7 -0
  10. package/dist/{calendar-SwL5isYC.cjs.map → calendar-D3RWU0_G.cjs.map} +1 -1
  11. package/dist/{calendar-BFWc4IB7.js → calendar-DgnhzEfp.js} +126 -112
  12. package/dist/{calendar-BFWc4IB7.js.map → calendar-DgnhzEfp.js.map} +1 -1
  13. package/dist/{card-tMkUxpmW.cjs → card-DISL3sPJ.cjs} +2 -2
  14. package/dist/{card-tMkUxpmW.cjs.map → card-DISL3sPJ.cjs.map} +1 -1
  15. package/dist/{card-K4fxyYwE.js → card-fId5vof_.js} +2 -2
  16. package/dist/{card-K4fxyYwE.js.map → card-fId5vof_.js.map} +1 -1
  17. package/dist/{checkbox-CpOq5hkT.js → checkbox-BY2zxQVv.js} +5 -5
  18. package/dist/{checkbox-CpOq5hkT.js.map → checkbox-BY2zxQVv.js.map} +1 -1
  19. package/dist/checkbox-CL6u7vL6.cjs +2 -0
  20. package/dist/{checkbox-D7-LQyCl.cjs.map → checkbox-CL6u7vL6.cjs.map} +1 -1
  21. package/dist/chevron-down-BiUlxZA-.js +14 -0
  22. package/dist/{chevron-down-DJ1_YIFu.js.map → chevron-down-BiUlxZA-.js.map} +1 -1
  23. package/dist/chevron-down-Ce0kqXiD.cjs +7 -0
  24. package/dist/{chevron-down-DHdXqOqK.cjs.map → chevron-down-Ce0kqXiD.cjs.map} +1 -1
  25. package/dist/chevron-right-BLyGmyaF.js +14 -0
  26. package/dist/{chevron-right-B3bovvh0.js.map → chevron-right-BLyGmyaF.js.map} +1 -1
  27. package/dist/chevron-right-Bxf8i4gi.cjs +7 -0
  28. package/dist/{chevron-right-Dvyd11q0.cjs.map → chevron-right-Bxf8i4gi.cjs.map} +1 -1
  29. package/dist/chevron-up-BmYZUtrk.js +12 -0
  30. package/dist/{chevron-up-CGtXOr51.js.map → chevron-up-BmYZUtrk.js.map} +1 -1
  31. package/dist/chevron-up-C3RClqXD.cjs +7 -0
  32. package/dist/{chevron-up-B9fuiZhc.cjs.map → chevron-up-C3RClqXD.cjs.map} +1 -1
  33. package/dist/components/charts/index.cjs.js +1 -1
  34. package/dist/components/charts/index.es.js +1 -1
  35. package/dist/components/data-display/index.cjs.js +1 -1
  36. package/dist/components/data-display/index.es.js +1 -1
  37. package/dist/components/dnd/index.cjs.js +1 -1
  38. package/dist/components/dnd/index.es.js +1 -1
  39. package/dist/components/feedback/index.cjs.js +1 -1
  40. package/dist/components/feedback/index.es.js +1 -1
  41. package/dist/components/forms/index.cjs.js +1 -1
  42. package/dist/components/forms/index.es.js +1 -1
  43. package/dist/components/layouts/index.cjs.js +1 -1
  44. package/dist/components/layouts/index.es.js +1 -1
  45. package/dist/components/navigation/index.cjs.js +1 -1
  46. package/dist/components/navigation/index.es.js +1 -1
  47. package/dist/components/ui/index.cjs.js +1 -1
  48. package/dist/components/ui/index.es.js +13 -13
  49. package/dist/{createLucideIcon-BbeNo6vq.js → createLucideIcon-BC8wu-bu.js} +25 -1
  50. package/dist/{createLucideIcon-BbeNo6vq.js.map → createLucideIcon-BC8wu-bu.js.map} +1 -1
  51. package/dist/createLucideIcon-Cv8nC2E9.cjs +22 -0
  52. package/dist/{createLucideIcon-i5GEhNMV.cjs.map → createLucideIcon-Cv8nC2E9.cjs.map} +1 -1
  53. package/dist/ellipsis-6eUne95u.js +16 -0
  54. package/dist/{ellipsis-CiKEaUNP.js.map → ellipsis-6eUne95u.js.map} +1 -1
  55. package/dist/ellipsis-DkM3GBF5.cjs +7 -0
  56. package/dist/{ellipsis-BW2gWki8.cjs.map → ellipsis-DkM3GBF5.cjs.map} +1 -1
  57. package/dist/file-Cp5UoYUZ.cjs +7 -0
  58. package/dist/{file-V_hhCUhr.cjs.map → file-Cp5UoYUZ.cjs.map} +1 -1
  59. package/dist/file-Cw_u_aJB.js +15 -0
  60. package/dist/{file-wzTXnWqz.js.map → file-Cw_u_aJB.js.map} +1 -1
  61. package/dist/filter-tags-DoRzXjuY.cjs +48 -0
  62. package/dist/{filter-tags-DjUaNXHR.cjs.map → filter-tags-DoRzXjuY.cjs.map} +1 -1
  63. package/dist/{filter-tags-i_I8qV1N.js → filter-tags-zEQmRhEU.js} +353 -299
  64. package/dist/{filter-tags-i_I8qV1N.js.map → filter-tags-zEQmRhEU.js.map} +1 -1
  65. package/dist/{full-calendar-7ac2FFU6.js → full-calendar-5Z4JSj8g.js} +1176 -1143
  66. package/dist/{full-calendar-7ac2FFU6.js.map → full-calendar-5Z4JSj8g.js.map} +1 -1
  67. package/dist/full-calendar-DjAvCfuE.cjs +23 -0
  68. package/dist/{full-calendar-Cpeh5xMP.cjs.map → full-calendar-DjAvCfuE.cjs.map} +1 -1
  69. package/dist/{global-search-h1rVbP2q.js → global-search-BbZfc-VL.js} +514 -486
  70. package/dist/global-search-BbZfc-VL.js.map +1 -0
  71. package/dist/global-search-Bd74_wPV.cjs +22 -0
  72. package/dist/global-search-Bd74_wPV.cjs.map +1 -0
  73. package/dist/hooks/index.cjs.js +1 -1
  74. package/dist/hooks/index.es.js +1 -1
  75. package/dist/index-D2U2F80P.cjs +2 -0
  76. package/dist/index-D2U2F80P.cjs.map +1 -0
  77. package/dist/index-DG0KV-sw.cjs +11 -0
  78. package/dist/{index-CzVK9Zyb.cjs.map → index-DG0KV-sw.cjs.map} +1 -1
  79. package/dist/{index-Co9o9StL.js → index-Dk_Et2WJ.js} +2 -2
  80. package/dist/{index-Co9o9StL.js.map → index-Dk_Et2WJ.js.map} +1 -1
  81. package/dist/{index-CwJPJKOE.js → index-DtaLkIY8.js} +1072 -573
  82. package/dist/index-DtaLkIY8.js.map +1 -0
  83. package/dist/index-XnFSmCuh.js +299 -0
  84. package/dist/{index-l828OqQN.js.map → index-XnFSmCuh.js.map} +1 -1
  85. package/dist/{index-lT9bLt9X.cjs → index-gVbM3K4f.cjs} +2 -2
  86. package/dist/{index-lT9bLt9X.cjs.map → index-gVbM3K4f.cjs.map} +1 -1
  87. package/dist/index.cjs.js +1 -1
  88. package/dist/index.es.js +23 -23
  89. package/dist/input-BgPy-4Qu.js +3658 -0
  90. package/dist/{input-D4AoiWxo.js.map → input-BgPy-4Qu.js.map} +1 -1
  91. package/dist/input-Cfr2WB-P.cjs +47 -0
  92. package/dist/{input-CZrckPLk.cjs.map → input-Cfr2WB-P.cjs.map} +1 -1
  93. package/dist/locale-provider-BojNdf1Y.cjs +2 -0
  94. package/dist/{locale-provider-DHMwuneF.cjs.map → locale-provider-BojNdf1Y.cjs.map} +1 -1
  95. package/dist/{locale-provider-DanG6RRG.js → locale-provider-DzBeb-X3.js} +62 -61
  96. package/dist/{locale-provider-DanG6RRG.js.map → locale-provider-DzBeb-X3.js.map} +1 -1
  97. package/dist/locale-selector-BD1IWk6X.cjs +22 -0
  98. package/dist/{locale-selector-Ppe0KTi-.cjs.map → locale-selector-BD1IWk6X.cjs.map} +1 -1
  99. package/dist/locale-selector-DLRSyVye.js +1772 -0
  100. package/dist/{locale-selector-xn2GpdP9.js.map → locale-selector-DLRSyVye.js.map} +1 -1
  101. package/dist/minus-C0uyaz70.cjs +7 -0
  102. package/dist/{minus-BXBFZSZs.cjs.map → minus-C0uyaz70.cjs.map} +1 -1
  103. package/dist/minus-CiwV65ZG.js +12 -0
  104. package/dist/{minus-DvlYtl96.js.map → minus-CiwV65ZG.js.map} +1 -1
  105. package/dist/{multi-container-C2UpSw5f.js → multi-container-BZia7HCU.js} +181 -164
  106. package/dist/{multi-container-C2UpSw5f.js.map → multi-container-BZia7HCU.js.map} +1 -1
  107. package/dist/multi-container-BdNbgtPZ.cjs +7 -0
  108. package/dist/{multi-container-DMKL8c9B.cjs.map → multi-container-BdNbgtPZ.cjs.map} +1 -1
  109. package/dist/pipeline-Dh052Dvj.cjs +27 -0
  110. package/dist/{pipeline-By5_8AFg.cjs.map → pipeline-Dh052Dvj.cjs.map} +1 -1
  111. package/dist/pipeline-DqWvleNy.js +1076 -0
  112. package/dist/{pipeline-D-QNSU0U.js.map → pipeline-DqWvleNy.js.map} +1 -1
  113. package/dist/plus-BsV82JJ5.cjs +7 -0
  114. package/dist/{plus-8wKRkVu-.cjs.map → plus-BsV82JJ5.cjs.map} +1 -1
  115. package/dist/plus-DxD6rofl.js +15 -0
  116. package/dist/{plus-CJD68KQD.js.map → plus-DxD6rofl.js.map} +1 -1
  117. package/dist/popover-BgLxmm1z.cjs +7 -0
  118. package/dist/{popover-ivh-plLc.cjs.map → popover-BgLxmm1z.cjs.map} +1 -1
  119. package/dist/{popover-4V4sGe1U.js → popover-PI9jbhnS.js} +85 -75
  120. package/dist/{popover-4V4sGe1U.js.map → popover-PI9jbhnS.js.map} +1 -1
  121. package/dist/progress-CTTt_CP3.js +260 -0
  122. package/dist/{progress-D5AsrWa6.js.map → progress-CTTt_CP3.js.map} +1 -1
  123. package/dist/progress-CTWb7X1Q.cjs +37 -0
  124. package/dist/{progress-CFnuLqnS.cjs.map → progress-CTWb7X1Q.cjs.map} +1 -1
  125. package/dist/providers/index.cjs.js +1 -1
  126. package/dist/providers/index.es.js +1 -1
  127. package/dist/{scroll-area-DQeqDp3Y.js → scroll-area-A3jGu-Ta.js} +302 -280
  128. package/dist/{scroll-area-DQeqDp3Y.js.map → scroll-area-A3jGu-Ta.js.map} +1 -1
  129. package/dist/scroll-area-DzDnWIYJ.cjs +12 -0
  130. package/dist/{scroll-area-DYOiJMXh.cjs.map → scroll-area-DzDnWIYJ.cjs.map} +1 -1
  131. package/dist/select-BJpZrtep.js +989 -0
  132. package/dist/{select-C1rNBi6c.js.map → select-BJpZrtep.js.map} +1 -1
  133. package/dist/select-Ii8HRuXa.cjs +2 -0
  134. package/dist/{select-m-Mqwxu3.cjs.map → select-Ii8HRuXa.cjs.map} +1 -1
  135. package/dist/separator-BzcDE0Ei.cjs +2 -0
  136. package/dist/{separator-DBUivkHq.cjs.map → separator-BzcDE0Ei.cjs.map} +1 -1
  137. package/dist/{separator-DsfoJx-2.js → separator-DyarVo1-.js} +66 -65
  138. package/dist/{separator-DsfoJx-2.js.map → separator-DyarVo1-.js.map} +1 -1
  139. package/dist/{sheet-BVWCpq7E.js → sheet-DPSdOoE6.js} +4 -4
  140. package/dist/{sheet-BVWCpq7E.js.map → sheet-DPSdOoE6.js.map} +1 -1
  141. package/dist/{sheet-mKiFLVnK.cjs → sheet-XtjvbEMq.cjs} +2 -2
  142. package/dist/{sheet-mKiFLVnK.cjs.map → sheet-XtjvbEMq.cjs.map} +1 -1
  143. package/dist/{skeleton-BmGbfJw3.js → skeleton-Bl6FAxHT.js} +2 -2
  144. package/dist/{skeleton-BmGbfJw3.js.map → skeleton-Bl6FAxHT.js.map} +1 -1
  145. package/dist/{skeleton-BSwwYaQU.cjs → skeleton-Cb6MWerF.cjs} +2 -2
  146. package/dist/{skeleton-BSwwYaQU.cjs.map → skeleton-Cb6MWerF.cjs.map} +1 -1
  147. package/dist/sortable.esm-5DsiICDg.cjs +6 -0
  148. package/dist/{sortable.esm-DcQYlXi3.cjs.map → sortable.esm-5DsiICDg.cjs.map} +1 -1
  149. package/dist/{sortable.esm-Blhf_jh1.js → sortable.esm-Cb8oRBzU.js} +42 -42
  150. package/dist/{sortable.esm-Blhf_jh1.js.map → sortable.esm-Cb8oRBzU.js.map} +1 -1
  151. package/dist/sparkline-chart-CeCDeMNk.cjs +102 -0
  152. package/dist/{sparkline-chart-ca3uTzVK.cjs.map → sparkline-chart-CeCDeMNk.cjs.map} +1 -1
  153. package/dist/{sparkline-chart-Da-ehDGv.js → sparkline-chart-DUS4CoW_.js} +7799 -9094
  154. package/dist/{sparkline-chart-Da-ehDGv.js.map → sparkline-chart-DUS4CoW_.js.map} +1 -1
  155. package/dist/styles.css +1 -0
  156. package/dist/trending-up-BBjz_E69.cjs +7 -0
  157. package/dist/{trending-up-D3Nfrhi3.cjs.map → trending-up-BBjz_E69.cjs.map} +1 -1
  158. package/dist/trending-up-BHFXgLWy.js +15 -0
  159. package/dist/{trending-up-DPwlYzQb.js.map → trending-up-BHFXgLWy.js.map} +1 -1
  160. package/dist/{use-formatters-l1_2c8z0.js → use-formatters-Bgj3JA4i.js} +731 -746
  161. package/dist/{use-formatters-l1_2c8z0.js.map → use-formatters-Bgj3JA4i.js.map} +1 -1
  162. package/dist/use-formatters-CObUgipW.cjs +2 -0
  163. package/dist/{use-formatters-d97RVcmg.cjs.map → use-formatters-CObUgipW.cjs.map} +1 -1
  164. package/dist/utils/index.cjs.js +1 -1
  165. package/dist/utils/index.es.js +1 -1
  166. package/dist/welcome-card-CNuEa6Ck.cjs +67 -0
  167. package/dist/{welcome-card-CPolYl1D.cjs.map → welcome-card-CNuEa6Ck.cjs.map} +1 -1
  168. package/dist/{welcome-card-CxMJZ8bv.js → welcome-card-Cp6t6G3j.js} +197 -119
  169. package/dist/{welcome-card-CxMJZ8bv.js.map → welcome-card-Cp6t6G3j.js.map} +1 -1
  170. package/package.json +14 -12
  171. package/dist/avatar-C0aVNCG9.cjs +0 -2
  172. package/dist/avatar-CN6wcrqY.js +0 -288
  173. package/dist/calendar-BUm7YrNf.cjs +0 -2
  174. package/dist/calendar-ChJkFXXr.js +0 -11
  175. package/dist/calendar-SwL5isYC.cjs +0 -2
  176. package/dist/checkbox-D7-LQyCl.cjs +0 -2
  177. package/dist/chevron-down-DHdXqOqK.cjs +0 -2
  178. package/dist/chevron-down-DJ1_YIFu.js +0 -8
  179. package/dist/chevron-right-B3bovvh0.js +0 -8
  180. package/dist/chevron-right-Dvyd11q0.cjs +0 -2
  181. package/dist/chevron-up-B9fuiZhc.cjs +0 -2
  182. package/dist/chevron-up-CGtXOr51.js +0 -6
  183. package/dist/createLucideIcon-i5GEhNMV.cjs +0 -2
  184. package/dist/ellipsis-BW2gWki8.cjs +0 -2
  185. package/dist/ellipsis-CiKEaUNP.js +0 -10
  186. package/dist/file-V_hhCUhr.cjs +0 -2
  187. package/dist/file-wzTXnWqz.js +0 -9
  188. package/dist/filter-tags-DjUaNXHR.cjs +0 -5
  189. package/dist/full-calendar-Cpeh5xMP.cjs +0 -8
  190. package/dist/global-search-UNXjoFlI.cjs +0 -2
  191. package/dist/global-search-UNXjoFlI.cjs.map +0 -1
  192. package/dist/global-search-h1rVbP2q.js.map +0 -1
  193. package/dist/index-CwJPJKOE.js.map +0 -1
  194. package/dist/index-CzVK9Zyb.cjs +0 -6
  195. package/dist/index-l828OqQN.js +0 -288
  196. package/dist/index-lGzB9daF.cjs +0 -2
  197. package/dist/index-lGzB9daF.cjs.map +0 -1
  198. package/dist/input-CZrckPLk.cjs +0 -42
  199. package/dist/input-D4AoiWxo.js +0 -3629
  200. package/dist/locale-provider-DHMwuneF.cjs +0 -2
  201. package/dist/locale-selector-Ppe0KTi-.cjs +0 -2
  202. package/dist/locale-selector-xn2GpdP9.js +0 -1745
  203. package/dist/minus-BXBFZSZs.cjs +0 -2
  204. package/dist/minus-DvlYtl96.js +0 -6
  205. package/dist/multi-container-DMKL8c9B.cjs +0 -2
  206. package/dist/pipeline-By5_8AFg.cjs +0 -2
  207. package/dist/pipeline-D-QNSU0U.js +0 -1036
  208. package/dist/plus-8wKRkVu-.cjs +0 -2
  209. package/dist/plus-CJD68KQD.js +0 -9
  210. package/dist/popover-ivh-plLc.cjs +0 -2
  211. package/dist/progress-CFnuLqnS.cjs +0 -7
  212. package/dist/progress-D5AsrWa6.js +0 -222
  213. package/dist/scroll-area-DYOiJMXh.cjs +0 -2
  214. package/dist/select-C1rNBi6c.js +0 -974
  215. package/dist/select-m-Mqwxu3.cjs +0 -2
  216. package/dist/separator-DBUivkHq.cjs +0 -2
  217. package/dist/sortable.esm-DcQYlXi3.cjs +0 -6
  218. package/dist/sparkline-chart-ca3uTzVK.cjs +0 -68
  219. package/dist/trending-up-D3Nfrhi3.cjs +0 -2
  220. package/dist/trending-up-DPwlYzQb.js +0 -9
  221. package/dist/ui.css +0 -1
  222. package/dist/use-formatters-d97RVcmg.cjs +0 -2
  223. package/dist/welcome-card-CPolYl1D.cjs +0 -2
@@ -0,0 +1,12 @@
1
+ "use strict";const pe=require("./createLucideIcon-Cv8nC2E9.cjs"),l=require("react/jsx-runtime"),x=require("react");require("react-dom");const A=require("./scroll-area-DzDnWIYJ.cjs"),E=require("./index-D2U2F80P.cjs"),f=require("./use-formatters-CObUgipW.cjs"),Ke=require("./chevron-right-Bxf8i4gi.cjs");function Ue(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,a.get?a:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const oe=Ue(x);/**
2
+ * @license lucide-react v0.441.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const ge=pe.createLucideIcon("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
7
+ * @license lucide-react v0.441.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const $e=pe.createLucideIcon("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);var Ze=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ge=Ze.reduce((e,n)=>{const t=A.createSlot(`Primitive.${n}`),a=oe.forwardRef((r,o)=>{const{asChild:i,...s}=r,d=i?t:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),l.jsx(d,{...s,ref:o})});return a.displayName=`Primitive.${n}`,{...e,[n]:a}},{}),Xe="Label",_e=oe.forwardRef((e,n)=>l.jsx(Ge.label,{...e,ref:n,onMouseDown:t=>{var r;t.target.closest("button, input, select, textarea")||((r=e.onMouseDown)==null||r.call(e,t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));_e.displayName=Xe;var De=_e;const Je=A.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),xe=oe.forwardRef(({className:e,...n},t)=>l.jsx(De,{ref:t,className:E.cn(Je(),e),...n}));xe.displayName=De.displayName;function k(e,n){const t=f.toDate(e);return isNaN(n)?f.constructFrom(e,NaN):(n&&t.setDate(t.getDate()+n),t)}function O(e,n){const t=f.toDate(e);if(isNaN(n))return f.constructFrom(e,NaN);if(!n)return t;const a=t.getDate(),r=f.constructFrom(e,t.getTime());r.setMonth(t.getMonth()+n+1,0);const o=r.getDate();return a>=o?r:(t.setFullYear(r.getFullYear(),r.getMonth(),a),t)}function H(e,n){const t=n*7;return k(e,t)}function Qe(e,n){return O(e,n*12)}function et(e){let n;return e.forEach(function(t){const a=f.toDate(t);(n===void 0||n<a||isNaN(Number(a)))&&(n=a)}),n||new Date(NaN)}function tt(e){let n;return e.forEach(t=>{const a=f.toDate(t);(!n||n>a||isNaN(+a))&&(n=a)}),n||new Date(NaN)}function C(e,n){const t=f.startOfDay(e),a=f.startOfDay(n);return+t==+a}function L(e,n){const t=f.toDate(e),a=f.toDate(n),r=t.getFullYear()-a.getFullYear(),o=t.getMonth()-a.getMonth();return r*12+o}function nt(e,n,t){const a=f.startOfWeek(e,t),r=f.startOfWeek(n,t),o=+a-f.getTimezoneOffsetInMilliseconds(a),i=+r-f.getTimezoneOffsetInMilliseconds(r);return Math.round((o-i)/f.millisecondsInWeek)}function V(e){const n=f.toDate(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(23,59,59,999),n}function j(e){const n=f.toDate(e);return n.setDate(1),n.setHours(0,0,0,0),n}function z(e,n){var s,d,c,u;const t=f.getDefaultOptions(),a=(n==null?void 0:n.weekStartsOn)??((d=(s=n==null?void 0:n.locale)==null?void 0:s.options)==null?void 0:d.weekStartsOn)??t.weekStartsOn??((u=(c=t.locale)==null?void 0:c.options)==null?void 0:u.weekStartsOn)??0,r=f.toDate(e),o=r.getDay(),i=(o<a?-7:0)+6-(o-a);return r.setDate(r.getDate()+i),r.setHours(23,59,59,999),r}function we(e){return z(e,{weekStartsOn:1})}function at(e){const n=f.toDate(e),t=n.getFullYear(),a=n.getMonth(),r=f.constructFrom(e,0);return r.setFullYear(t,a+1,0),r.setHours(0,0,0,0),r.getDate()}function rt(e){return Math.trunc(+f.toDate(e)/1e3)}function ot(e){const n=f.toDate(e),t=n.getMonth();return n.setFullYear(n.getFullYear(),t+1,0),n.setHours(0,0,0,0),n}function it(e,n){return nt(ot(e),j(e),n)+1}function re(e,n){const t=f.toDate(e),a=f.toDate(n);return t.getTime()>a.getTime()}function Ne(e,n){const t=f.toDate(e),a=f.toDate(n);return+t<+a}function K(e,n){const t=f.toDate(e),a=f.toDate(n);return t.getFullYear()===a.getFullYear()&&t.getMonth()===a.getMonth()}function st(e,n){const t=f.toDate(e),a=f.toDate(n);return t.getFullYear()===a.getFullYear()}function Y(e,n){return k(e,-n)}function Q(e,n){const t=f.toDate(e),a=t.getFullYear(),r=t.getDate(),o=f.constructFrom(e,0);o.setFullYear(a,n,15),o.setHours(0,0,0,0);const i=at(o);return t.setMonth(n,Math.min(r,i)),t}function ve(e,n){const t=f.toDate(e);return isNaN(+t)?f.constructFrom(e,NaN):(t.setFullYear(n),t)}var b=function(){return b=Object.assign||function(n){for(var t,a=1,r=arguments.length;a<r;a++){t=arguments[a];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o])}return n},b.apply(this,arguments)};function lt(e,n){var t={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(t[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,a=Object.getOwnPropertySymbols(e);r<a.length;r++)n.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(t[a[r]]=e[a[r]]);return t}function Me(e,n,t){for(var a=0,r=n.length,o;a<r;a++)(o||!(a in n))&&(o||(o=Array.prototype.slice.call(n,0,a)),o[a]=n[a]);return e.concat(o||Array.prototype.slice.call(n))}function F(e){return e.mode==="multiple"}function R(e){return e.mode==="range"}function U(e){return e.mode==="single"}var dt={root:"rdp",multiple_months:"rdp-multiple_months",with_weeknumber:"rdp-with_weeknumber",vhidden:"rdp-vhidden",button_reset:"rdp-button_reset",button:"rdp-button",caption:"rdp-caption",caption_start:"rdp-caption_start",caption_end:"rdp-caption_end",caption_between:"rdp-caption_between",caption_label:"rdp-caption_label",caption_dropdowns:"rdp-caption_dropdowns",dropdown:"rdp-dropdown",dropdown_month:"rdp-dropdown_month",dropdown_year:"rdp-dropdown_year",dropdown_icon:"rdp-dropdown_icon",months:"rdp-months",month:"rdp-month",table:"rdp-table",tbody:"rdp-tbody",tfoot:"rdp-tfoot",head:"rdp-head",head_row:"rdp-head_row",head_cell:"rdp-head_cell",nav:"rdp-nav",nav_button:"rdp-nav_button",nav_button_previous:"rdp-nav_button_previous",nav_button_next:"rdp-nav_button_next",nav_icon:"rdp-nav_icon",row:"rdp-row",weeknumber:"rdp-weeknumber",cell:"rdp-cell",day:"rdp-day",day_today:"rdp-day_today",day_outside:"rdp-day_outside",day_selected:"rdp-day_selected",day_disabled:"rdp-day_disabled",day_hidden:"rdp-day_hidden",day_range_start:"rdp-day_range_start",day_range_end:"rdp-day_range_end",day_range_middle:"rdp-day_range_middle"};function ut(e,n){return f.format(e,"LLLL y",n)}function ct(e,n){return f.format(e,"d",n)}function ft(e,n){return f.format(e,"LLLL",n)}function vt(e){return"".concat(e)}function mt(e,n){return f.format(e,"cccccc",n)}function ht(e,n){return f.format(e,"yyyy",n)}var yt=Object.freeze({__proto__:null,formatCaption:ut,formatDay:ct,formatMonthCaption:ft,formatWeekNumber:vt,formatWeekdayName:mt,formatYearCaption:ht}),bt=function(e,n,t){return f.format(e,"do MMMM (EEEE)",t)},pt=function(){return"Month: "},gt=function(){return"Go to next month"},_t=function(){return"Go to previous month"},Dt=function(e,n){return f.format(e,"cccc",n)},xt=function(e){return"Week n. ".concat(e)},wt=function(){return"Year: "},Nt=Object.freeze({__proto__:null,labelDay:bt,labelMonthDropdown:pt,labelNext:gt,labelPrevious:_t,labelWeekNumber:xt,labelWeekday:Dt,labelYearDropdown:wt});function Mt(){var e="buttons",n=dt,t=f.enUS,a={},r={},o=1,i={},s=new Date;return{captionLayout:e,classNames:n,formatters:yt,labels:Nt,locale:t,modifiersClassNames:a,modifiers:r,numberOfMonths:o,styles:i,today:s,mode:"default"}}function kt(e){var n=e.fromYear,t=e.toYear,a=e.fromMonth,r=e.toMonth,o=e.fromDate,i=e.toDate;return a?o=j(a):n&&(o=new Date(n,0,1)),r?i=V(r):t&&(i=new Date(t,11,31)),{fromDate:o?f.startOfDay(o):void 0,toDate:i?f.startOfDay(i):void 0}}var ke=x.createContext(void 0);function Ct(e){var n,t=e.initialProps,a=Mt(),r=kt(t),o=r.fromDate,i=r.toDate,s=(n=t.captionLayout)!==null&&n!==void 0?n:a.captionLayout;s!=="buttons"&&(!o||!i)&&(s="buttons");var d;(U(t)||F(t)||R(t))&&(d=t.onSelect);var c=b(b(b({},a),t),{captionLayout:s,classNames:b(b({},a.classNames),t.classNames),components:b({},t.components),formatters:b(b({},a.formatters),t.formatters),fromDate:o,labels:b(b({},a.labels),t.labels),mode:t.mode||a.mode,modifiers:b(b({},a.modifiers),t.modifiers),modifiersClassNames:b(b({},a.modifiersClassNames),t.modifiersClassNames),onSelect:d,styles:b(b({},a.styles),t.styles),toDate:i});return l.jsx(ke.Provider,{value:c,children:e.children})}function w(){var e=x.useContext(ke);if(!e)throw new Error("useDayPicker must be used within a DayPickerProvider.");return e}function Ce(e){var n=w(),t=n.locale,a=n.classNames,r=n.styles,o=n.formatters.formatCaption;return l.jsx("div",{className:a.caption_label,style:r.caption_label,"aria-live":"polite",role:"presentation",id:e.id,children:o(e.displayMonth,{locale:t})})}function jt(e){return l.jsx("svg",b({width:"8px",height:"8px",viewBox:"0 0 120 120","data-testid":"iconDropdown"},e,{children:l.jsx("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"})}))}function je(e){var n,t,a=e.onChange,r=e.value,o=e.children,i=e.caption,s=e.className,d=e.style,c=w(),u=(t=(n=c.components)===null||n===void 0?void 0:n.IconDropdown)!==null&&t!==void 0?t:jt;return l.jsxs("div",{className:s,style:d,children:[l.jsx("span",{className:c.classNames.vhidden,children:e["aria-label"]}),l.jsx("select",{name:e.name,"aria-label":e["aria-label"],className:c.classNames.dropdown,style:c.styles.dropdown,value:r,onChange:a,children:o}),l.jsxs("div",{className:c.classNames.caption_label,style:c.styles.caption_label,"aria-hidden":"true",children:[i,l.jsx(u,{className:c.classNames.dropdown_icon,style:c.styles.dropdown_icon})]})]})}function Ot(e){var n,t=w(),a=t.fromDate,r=t.toDate,o=t.styles,i=t.locale,s=t.formatters.formatMonthCaption,d=t.classNames,c=t.components,u=t.labels.labelMonthDropdown;if(!a)return l.jsx(l.Fragment,{});if(!r)return l.jsx(l.Fragment,{});var v=[];if(st(a,r))for(var h=j(a),y=a.getMonth();y<=r.getMonth();y++)v.push(Q(h,y));else for(var h=j(new Date),y=0;y<=11;y++)v.push(Q(h,y));var g=function(_){var M=Number(_.target.value),N=Q(j(e.displayMonth),M);e.onChange(N)},D=(n=c==null?void 0:c.Dropdown)!==null&&n!==void 0?n:je;return l.jsx(D,{name:"months","aria-label":u(),className:d.dropdown_month,style:o.dropdown_month,onChange:g,value:e.displayMonth.getMonth(),caption:s(e.displayMonth,{locale:i}),children:v.map(function(_){return l.jsx("option",{value:_.getMonth(),children:s(_,{locale:i})},_.getMonth())})})}function St(e){var n,t=e.displayMonth,a=w(),r=a.fromDate,o=a.toDate,i=a.locale,s=a.styles,d=a.classNames,c=a.components,u=a.formatters.formatYearCaption,v=a.labels.labelYearDropdown,h=[];if(!r)return l.jsx(l.Fragment,{});if(!o)return l.jsx(l.Fragment,{});for(var y=r.getFullYear(),g=o.getFullYear(),D=y;D<=g;D++)h.push(ve(f.startOfYear(new Date),D));var _=function(N){var W=ve(j(t),Number(N.target.value));e.onChange(W)},M=(n=c==null?void 0:c.Dropdown)!==null&&n!==void 0?n:je;return l.jsx(M,{name:"years","aria-label":v(),className:d.dropdown_year,style:s.dropdown_year,onChange:_,value:t.getFullYear(),caption:u(t,{locale:i}),children:h.map(function(N){return l.jsx("option",{value:N.getFullYear(),children:u(N,{locale:i})},N.getFullYear())})})}function Pt(e,n){var t=x.useState(e),a=t[0],r=t[1],o=n===void 0?a:n;return[o,r]}function Wt(e){var n=e.month,t=e.defaultMonth,a=e.today,r=n||t||a||new Date,o=e.toDate,i=e.fromDate,s=e.numberOfMonths,d=s===void 0?1:s;if(o&&L(o,r)<0){var c=-1*(d-1);r=O(o,c)}return i&&L(r,i)<0&&(r=i),j(r)}function It(){var e=w(),n=Wt(e),t=Pt(n,e.month),a=t[0],r=t[1],o=function(i){var s;if(!e.disableNavigation){var d=j(i);r(d),(s=e.onMonthChange)===null||s===void 0||s.call(e,d)}};return[a,o]}function Lt(e,n){for(var t=n.reverseMonths,a=n.numberOfMonths,r=j(e),o=j(O(r,a)),i=L(o,r),s=[],d=0;d<i;d++){var c=O(r,d);s.push(c)}return t&&(s=s.reverse()),s}function Ft(e,n){if(!n.disableNavigation){var t=n.toDate,a=n.pagedNavigation,r=n.numberOfMonths,o=r===void 0?1:r,i=a?o:1,s=j(e);if(!t)return O(s,i);var d=L(t,e);if(!(d<o))return O(s,i)}}function Rt(e,n){if(!n.disableNavigation){var t=n.fromDate,a=n.pagedNavigation,r=n.numberOfMonths,o=r===void 0?1:r,i=a?o:1,s=j(e);if(!t)return O(s,-i);var d=L(s,t);if(!(d<=0))return O(s,-i)}}var Oe=x.createContext(void 0);function Tt(e){var n=w(),t=It(),a=t[0],r=t[1],o=Lt(a,n),i=Ft(a,n),s=Rt(a,n),d=function(v){return o.some(function(h){return K(v,h)})},c=function(v,h){d(v)||(h&&Ne(v,h)?r(O(v,1+n.numberOfMonths*-1)):r(v))},u={currentMonth:a,displayMonths:o,goToMonth:r,goToDate:c,previousMonth:s,nextMonth:i,isDateDisplayed:d};return l.jsx(Oe.Provider,{value:u,children:e.children})}function T(){var e=x.useContext(Oe);if(!e)throw new Error("useNavigation must be used within a NavigationProvider");return e}function me(e){var n,t=w(),a=t.classNames,r=t.styles,o=t.components,i=T().goToMonth,s=function(u){i(O(u,e.displayIndex?-e.displayIndex:0))},d=(n=o==null?void 0:o.CaptionLabel)!==null&&n!==void 0?n:Ce,c=l.jsx(d,{id:e.id,displayMonth:e.displayMonth});return l.jsxs("div",{className:a.caption_dropdowns,style:r.caption_dropdowns,children:[l.jsx("div",{className:a.vhidden,children:c}),l.jsx(Ot,{onChange:s,displayMonth:e.displayMonth}),l.jsx(St,{onChange:s,displayMonth:e.displayMonth})]})}function Et(e){return l.jsx("svg",b({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:l.jsx("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"})}))}function Yt(e){return l.jsx("svg",b({width:"16px",height:"16px",viewBox:"0 0 120 120"},e,{children:l.jsx("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"})}))}var q=x.forwardRef(function(e,n){var t=w(),a=t.classNames,r=t.styles,o=[a.button_reset,a.button];e.className&&o.push(e.className);var i=o.join(" "),s=b(b({},r.button_reset),r.button);return e.style&&Object.assign(s,e.style),l.jsx("button",b({},e,{ref:n,type:"button",className:i,style:s}))});function Bt(e){var n,t,a=w(),r=a.dir,o=a.locale,i=a.classNames,s=a.styles,d=a.labels,c=d.labelPrevious,u=d.labelNext,v=a.components;if(!e.nextMonth&&!e.previousMonth)return l.jsx(l.Fragment,{});var h=c(e.previousMonth,{locale:o}),y=[i.nav_button,i.nav_button_previous].join(" "),g=u(e.nextMonth,{locale:o}),D=[i.nav_button,i.nav_button_next].join(" "),_=(n=v==null?void 0:v.IconRight)!==null&&n!==void 0?n:Yt,M=(t=v==null?void 0:v.IconLeft)!==null&&t!==void 0?t:Et;return l.jsxs("div",{className:i.nav,style:s.nav,children:[!e.hidePrevious&&l.jsx(q,{name:"previous-month","aria-label":h,className:y,style:s.nav_button_previous,disabled:!e.previousMonth,onClick:e.onPreviousClick,children:r==="rtl"?l.jsx(_,{className:i.nav_icon,style:s.nav_icon}):l.jsx(M,{className:i.nav_icon,style:s.nav_icon})}),!e.hideNext&&l.jsx(q,{name:"next-month","aria-label":g,className:D,style:s.nav_button_next,disabled:!e.nextMonth,onClick:e.onNextClick,children:r==="rtl"?l.jsx(M,{className:i.nav_icon,style:s.nav_icon}):l.jsx(_,{className:i.nav_icon,style:s.nav_icon})})]})}function he(e){var n=w().numberOfMonths,t=T(),a=t.previousMonth,r=t.nextMonth,o=t.goToMonth,i=t.displayMonths,s=i.findIndex(function(g){return K(e.displayMonth,g)}),d=s===0,c=s===i.length-1,u=n>1&&(d||!c),v=n>1&&(c||!d),h=function(){a&&o(a)},y=function(){r&&o(r)};return l.jsx(Bt,{displayMonth:e.displayMonth,hideNext:u,hidePrevious:v,nextMonth:r,previousMonth:a,onPreviousClick:h,onNextClick:y})}function At(e){var n,t=w(),a=t.classNames,r=t.disableNavigation,o=t.styles,i=t.captionLayout,s=t.components,d=(n=s==null?void 0:s.CaptionLabel)!==null&&n!==void 0?n:Ce,c;return r?c=l.jsx(d,{id:e.id,displayMonth:e.displayMonth}):i==="dropdown"?c=l.jsx(me,{displayMonth:e.displayMonth,id:e.id}):i==="dropdown-buttons"?c=l.jsxs(l.Fragment,{children:[l.jsx(me,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id}),l.jsx(he,{displayMonth:e.displayMonth,displayIndex:e.displayIndex,id:e.id})]}):c=l.jsxs(l.Fragment,{children:[l.jsx(d,{id:e.id,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),l.jsx(he,{displayMonth:e.displayMonth,id:e.id})]}),l.jsx("div",{className:a.caption,style:o.caption,children:c})}function Ht(e){var n=w(),t=n.footer,a=n.styles,r=n.classNames.tfoot;return t?l.jsx("tfoot",{className:r,style:a.tfoot,children:l.jsx("tr",{children:l.jsx("td",{colSpan:8,children:t})})}):l.jsx(l.Fragment,{})}function qt(e,n,t){for(var a=t?f.startOfISOWeek(new Date):f.startOfWeek(new Date,{locale:e,weekStartsOn:n}),r=[],o=0;o<7;o++){var i=k(a,o);r.push(i)}return r}function Vt(){var e=w(),n=e.classNames,t=e.styles,a=e.showWeekNumber,r=e.locale,o=e.weekStartsOn,i=e.ISOWeek,s=e.formatters.formatWeekdayName,d=e.labels.labelWeekday,c=qt(r,o,i);return l.jsxs("tr",{style:t.head_row,className:n.head_row,children:[a&&l.jsx("td",{style:t.head_cell,className:n.head_cell}),c.map(function(u,v){return l.jsx("th",{scope:"col",className:n.head_cell,style:t.head_cell,"aria-label":d(u,{locale:r}),children:s(u,{locale:r})},v)})]})}function zt(){var e,n=w(),t=n.classNames,a=n.styles,r=n.components,o=(e=r==null?void 0:r.HeadRow)!==null&&e!==void 0?e:Vt;return l.jsx("thead",{style:a.head,className:t.head,children:l.jsx(o,{})})}function Kt(e){var n=w(),t=n.locale,a=n.formatters.formatDay;return l.jsx(l.Fragment,{children:a(e.date,{locale:t})})}var ie=x.createContext(void 0);function Ut(e){if(!F(e.initialProps)){var n={selected:void 0,modifiers:{disabled:[]}};return l.jsx(ie.Provider,{value:n,children:e.children})}return l.jsx($t,{initialProps:e.initialProps,children:e.children})}function $t(e){var n=e.initialProps,t=e.children,a=n.selected,r=n.min,o=n.max,i=function(c,u,v){var h,y;(h=n.onDayClick)===null||h===void 0||h.call(n,c,u,v);var g=!!(u.selected&&r&&(a==null?void 0:a.length)===r);if(!g){var D=!!(!u.selected&&o&&(a==null?void 0:a.length)===o);if(!D){var _=a?Me([],a):[];if(u.selected){var M=_.findIndex(function(N){return C(c,N)});_.splice(M,1)}else _.push(c);(y=n.onSelect)===null||y===void 0||y.call(n,_,c,u,v)}}},s={disabled:[]};a&&s.disabled.push(function(c){var u=o&&a.length>o-1,v=a.some(function(h){return C(h,c)});return!!(u&&!v)});var d={selected:a,onDayClick:i,modifiers:s};return l.jsx(ie.Provider,{value:d,children:t})}function se(){var e=x.useContext(ie);if(!e)throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");return e}function Zt(e,n){var t=n||{},a=t.from,r=t.to;return a&&r?C(r,e)&&C(a,e)?void 0:C(r,e)?{from:r,to:void 0}:C(a,e)?void 0:re(a,e)?{from:e,to:r}:{from:a,to:e}:r?re(e,r)?{from:r,to:e}:{from:e,to:r}:a?Ne(e,a)?{from:e,to:a}:{from:a,to:e}:{from:e,to:void 0}}var le=x.createContext(void 0);function Gt(e){if(!R(e.initialProps)){var n={selected:void 0,modifiers:{range_start:[],range_end:[],range_middle:[],disabled:[]}};return l.jsx(le.Provider,{value:n,children:e.children})}return l.jsx(Xt,{initialProps:e.initialProps,children:e.children})}function Xt(e){var n=e.initialProps,t=e.children,a=n.selected,r=a||{},o=r.from,i=r.to,s=n.min,d=n.max,c=function(y,g,D){var _,M;(_=n.onDayClick)===null||_===void 0||_.call(n,y,g,D);var N=Zt(y,a);(M=n.onSelect)===null||M===void 0||M.call(n,N,y,g,D)},u={range_start:[],range_end:[],range_middle:[],disabled:[]};if(o?(u.range_start=[o],i?(u.range_end=[i],C(o,i)||(u.range_middle=[{after:o,before:i}])):u.range_end=[o]):i&&(u.range_start=[i],u.range_end=[i]),s&&(o&&!i&&u.disabled.push({after:Y(o,s-1),before:k(o,s-1)}),o&&i&&u.disabled.push({after:o,before:k(o,s-1)}),!o&&i&&u.disabled.push({after:Y(i,s-1),before:k(i,s-1)})),d){if(o&&!i&&(u.disabled.push({before:k(o,-d+1)}),u.disabled.push({after:k(o,d-1)})),o&&i){var v=f.differenceInCalendarDays(i,o)+1,h=d-v;u.disabled.push({before:Y(o,h)}),u.disabled.push({after:k(i,h)})}!o&&i&&(u.disabled.push({before:k(i,-d+1)}),u.disabled.push({after:k(i,d-1)}))}return l.jsx(le.Provider,{value:{selected:a,onDayClick:c,modifiers:u},children:t})}function de(){var e=x.useContext(le);if(!e)throw new Error("useSelectRange must be used within a SelectRangeProvider");return e}function B(e){return Array.isArray(e)?Me([],e):e!==void 0?[e]:[]}function Jt(e){var n={};return Object.entries(e).forEach(function(t){var a=t[0],r=t[1];n[a]=B(r)}),n}var S;(function(e){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"})(S||(S={}));var Qt=S.Selected,P=S.Disabled,en=S.Hidden,tn=S.Today,ee=S.RangeEnd,te=S.RangeMiddle,ne=S.RangeStart,nn=S.Outside;function an(e,n,t){var a,r=(a={},a[Qt]=B(e.selected),a[P]=B(e.disabled),a[en]=B(e.hidden),a[tn]=[e.today],a[ee]=[],a[te]=[],a[ne]=[],a[nn]=[],a);return e.fromDate&&r[P].push({before:e.fromDate}),e.toDate&&r[P].push({after:e.toDate}),F(e)?r[P]=r[P].concat(n.modifiers[P]):R(e)&&(r[P]=r[P].concat(t.modifiers[P]),r[ne]=t.modifiers[ne],r[te]=t.modifiers[te],r[ee]=t.modifiers[ee]),r}var Se=x.createContext(void 0);function rn(e){var n=w(),t=se(),a=de(),r=an(n,t,a),o=Jt(n.modifiers),i=b(b({},r),o);return l.jsx(Se.Provider,{value:i,children:e.children})}function Pe(){var e=x.useContext(Se);if(!e)throw new Error("useModifiers must be used within a ModifiersProvider");return e}function on(e){return!!(e&&typeof e=="object"&&"before"in e&&"after"in e)}function sn(e){return!!(e&&typeof e=="object"&&"from"in e)}function ln(e){return!!(e&&typeof e=="object"&&"after"in e)}function dn(e){return!!(e&&typeof e=="object"&&"before"in e)}function un(e){return!!(e&&typeof e=="object"&&"dayOfWeek"in e)}function cn(e,n){var t,a=n.from,r=n.to;if(a&&r){var o=f.differenceInCalendarDays(r,a)<0;o&&(t=[r,a],a=t[0],r=t[1]);var i=f.differenceInCalendarDays(e,a)>=0&&f.differenceInCalendarDays(r,e)>=0;return i}return r?C(r,e):a?C(a,e):!1}function fn(e){return f.isDate(e)}function vn(e){return Array.isArray(e)&&e.every(f.isDate)}function mn(e,n){return n.some(function(t){if(typeof t=="boolean")return t;if(fn(t))return C(e,t);if(vn(t))return t.includes(e);if(sn(t))return cn(e,t);if(un(t))return t.dayOfWeek.includes(e.getDay());if(on(t)){var a=f.differenceInCalendarDays(t.before,e),r=f.differenceInCalendarDays(t.after,e),o=a>0,i=r<0,s=re(t.before,t.after);return s?i&&o:o||i}return ln(t)?f.differenceInCalendarDays(e,t.after)>0:dn(t)?f.differenceInCalendarDays(t.before,e)>0:typeof t=="function"?t(e):!1})}function ue(e,n,t){var a=Object.keys(n).reduce(function(o,i){var s=n[i];return mn(e,s)&&o.push(i),o},[]),r={};return a.forEach(function(o){return r[o]=!0}),t&&!K(e,t)&&(r.outside=!0),r}function hn(e,n){for(var t=j(e[0]),a=V(e[e.length-1]),r,o,i=t;i<=a;){var s=ue(i,n),d=!s.disabled&&!s.hidden;if(!d){i=k(i,1);continue}if(s.selected)return i;s.today&&!o&&(o=i),r||(r=i),i=k(i,1)}return o||r}var yn=365;function We(e,n){var t=n.moveBy,a=n.direction,r=n.context,o=n.modifiers,i=n.retry,s=i===void 0?{count:0,lastFocused:e}:i,d=r.weekStartsOn,c=r.fromDate,u=r.toDate,v=r.locale,h={day:k,week:H,month:O,year:Qe,startOfWeek:function(_){return r.ISOWeek?f.startOfISOWeek(_):f.startOfWeek(_,{locale:v,weekStartsOn:d})},endOfWeek:function(_){return r.ISOWeek?we(_):z(_,{locale:v,weekStartsOn:d})}},y=h[t](e,a==="after"?1:-1);a==="before"&&c?y=et([c,y]):a==="after"&&u&&(y=tt([u,y]));var g=!0;if(o){var D=ue(y,o);g=!D.disabled&&!D.hidden}return g?y:s.count>yn?s.lastFocused:We(y,{moveBy:t,direction:a,context:r,modifiers:o,retry:b(b({},s),{count:s.count+1})})}var Ie=x.createContext(void 0);function bn(e){var n=T(),t=Pe(),a=x.useState(),r=a[0],o=a[1],i=x.useState(),s=i[0],d=i[1],c=hn(n.displayMonths,t),u=r??(s&&n.isDateDisplayed(s))?s:c,v=function(){d(r),o(void 0)},h=function(_){o(_)},y=w(),g=function(_,M){if(r){var N=We(r,{moveBy:_,direction:M,context:y,modifiers:t});C(r,N)||(n.goToDate(N,r),h(N))}},D={focusedDay:r,focusTarget:u,blur:v,focus:h,focusDayAfter:function(){return g("day","after")},focusDayBefore:function(){return g("day","before")},focusWeekAfter:function(){return g("week","after")},focusWeekBefore:function(){return g("week","before")},focusMonthBefore:function(){return g("month","before")},focusMonthAfter:function(){return g("month","after")},focusYearBefore:function(){return g("year","before")},focusYearAfter:function(){return g("year","after")},focusStartOfWeek:function(){return g("startOfWeek","before")},focusEndOfWeek:function(){return g("endOfWeek","after")}};return l.jsx(Ie.Provider,{value:D,children:e.children})}function ce(){var e=x.useContext(Ie);if(!e)throw new Error("useFocusContext must be used within a FocusProvider");return e}function pn(e,n){var t=Pe(),a=ue(e,t,n);return a}var fe=x.createContext(void 0);function gn(e){if(!U(e.initialProps)){var n={selected:void 0};return l.jsx(fe.Provider,{value:n,children:e.children})}return l.jsx(_n,{initialProps:e.initialProps,children:e.children})}function _n(e){var n=e.initialProps,t=e.children,a=function(o,i,s){var d,c,u;if((d=n.onDayClick)===null||d===void 0||d.call(n,o,i,s),i.selected&&!n.required){(c=n.onSelect)===null||c===void 0||c.call(n,void 0,o,i,s);return}(u=n.onSelect)===null||u===void 0||u.call(n,o,o,i,s)},r={selected:n.selected,onDayClick:a};return l.jsx(fe.Provider,{value:r,children:t})}function Le(){var e=x.useContext(fe);if(!e)throw new Error("useSelectSingle must be used within a SelectSingleProvider");return e}function Dn(e,n){var t=w(),a=Le(),r=se(),o=de(),i=ce(),s=i.focusDayAfter,d=i.focusDayBefore,c=i.focusWeekAfter,u=i.focusWeekBefore,v=i.blur,h=i.focus,y=i.focusMonthBefore,g=i.focusMonthAfter,D=i.focusYearBefore,_=i.focusYearAfter,M=i.focusStartOfWeek,N=i.focusEndOfWeek,W=function(p){var m,G,X,J;U(t)?(m=a.onDayClick)===null||m===void 0||m.call(a,e,n,p):F(t)?(G=r.onDayClick)===null||G===void 0||G.call(r,e,n,p):R(t)?(X=o.onDayClick)===null||X===void 0||X.call(o,e,n,p):(J=t.onDayClick)===null||J===void 0||J.call(t,e,n,p)},$=function(p){var m;h(e),(m=t.onDayFocus)===null||m===void 0||m.call(t,e,n,p)},Z=function(p){var m;v(),(m=t.onDayBlur)===null||m===void 0||m.call(t,e,n,p)},I=function(p){var m;(m=t.onDayMouseEnter)===null||m===void 0||m.call(t,e,n,p)},Re=function(p){var m;(m=t.onDayMouseLeave)===null||m===void 0||m.call(t,e,n,p)},Te=function(p){var m;(m=t.onDayPointerEnter)===null||m===void 0||m.call(t,e,n,p)},Ee=function(p){var m;(m=t.onDayPointerLeave)===null||m===void 0||m.call(t,e,n,p)},Ye=function(p){var m;(m=t.onDayTouchCancel)===null||m===void 0||m.call(t,e,n,p)},Be=function(p){var m;(m=t.onDayTouchEnd)===null||m===void 0||m.call(t,e,n,p)},Ae=function(p){var m;(m=t.onDayTouchMove)===null||m===void 0||m.call(t,e,n,p)},He=function(p){var m;(m=t.onDayTouchStart)===null||m===void 0||m.call(t,e,n,p)},qe=function(p){var m;(m=t.onDayKeyUp)===null||m===void 0||m.call(t,e,n,p)},Ve=function(p){var m;switch(p.key){case"ArrowLeft":p.preventDefault(),p.stopPropagation(),t.dir==="rtl"?s():d();break;case"ArrowRight":p.preventDefault(),p.stopPropagation(),t.dir==="rtl"?d():s();break;case"ArrowDown":p.preventDefault(),p.stopPropagation(),c();break;case"ArrowUp":p.preventDefault(),p.stopPropagation(),u();break;case"PageUp":p.preventDefault(),p.stopPropagation(),p.shiftKey?D():y();break;case"PageDown":p.preventDefault(),p.stopPropagation(),p.shiftKey?_():g();break;case"Home":p.preventDefault(),p.stopPropagation(),M();break;case"End":p.preventDefault(),p.stopPropagation(),N();break}(m=t.onDayKeyDown)===null||m===void 0||m.call(t,e,n,p)},ze={onClick:W,onFocus:$,onBlur:Z,onKeyDown:Ve,onKeyUp:qe,onMouseEnter:I,onMouseLeave:Re,onPointerEnter:Te,onPointerLeave:Ee,onTouchCancel:Ye,onTouchEnd:Be,onTouchMove:Ae,onTouchStart:He};return ze}function xn(){var e=w(),n=Le(),t=se(),a=de(),r=U(e)?n.selected:F(e)?t.selected:R(e)?a.selected:void 0;return r}function wn(e){return Object.values(S).includes(e)}function Nn(e,n){var t=[e.classNames.day];return Object.keys(n).forEach(function(a){var r=e.modifiersClassNames[a];if(r)t.push(r);else if(wn(a)){var o=e.classNames["day_".concat(a)];o&&t.push(o)}}),t}function Mn(e,n){var t=b({},e.styles.day);return Object.keys(n).forEach(function(a){var r;t=b(b({},t),(r=e.modifiersStyles)===null||r===void 0?void 0:r[a])}),t}function kn(e,n,t){var a,r,o,i=w(),s=ce(),d=pn(e,n),c=Dn(e,d),u=xn(),v=!!(i.onDayClick||i.mode!=="default");x.useEffect(function(){var I;d.outside||s.focusedDay&&v&&C(s.focusedDay,e)&&((I=t.current)===null||I===void 0||I.focus())},[s.focusedDay,e,t,v,d.outside]);var h=Nn(i,d).join(" "),y=Mn(i,d),g=!!(d.outside&&!i.showOutsideDays||d.hidden),D=(o=(r=i.components)===null||r===void 0?void 0:r.DayContent)!==null&&o!==void 0?o:Kt,_=l.jsx(D,{date:e,displayMonth:n,activeModifiers:d}),M={style:y,className:h,children:_,role:"gridcell"},N=s.focusTarget&&C(s.focusTarget,e)&&!d.outside,W=s.focusedDay&&C(s.focusedDay,e),$=b(b(b({},M),(a={disabled:d.disabled,role:"gridcell"},a["aria-selected"]=d.selected,a.tabIndex=W||N?0:-1,a)),c),Z={isButton:v,isHidden:g,activeModifiers:d,selectedDays:u,buttonProps:$,divProps:M};return Z}function Cn(e){var n=x.useRef(null),t=kn(e.date,e.displayMonth,n);return t.isHidden?l.jsx("div",{role:"gridcell"}):t.isButton?l.jsx(q,b({name:"day",ref:n},t.buttonProps)):l.jsx("div",b({},t.divProps))}function jn(e){var n=e.number,t=e.dates,a=w(),r=a.onWeekNumberClick,o=a.styles,i=a.classNames,s=a.locale,d=a.labels.labelWeekNumber,c=a.formatters.formatWeekNumber,u=c(Number(n),{locale:s});if(!r)return l.jsx("span",{className:i.weeknumber,style:o.weeknumber,children:u});var v=d(Number(n),{locale:s}),h=function(y){r(n,t,y)};return l.jsx(q,{name:"week-number","aria-label":v,className:i.weeknumber,style:o.weeknumber,onClick:h,children:u})}function On(e){var n,t,a=w(),r=a.styles,o=a.classNames,i=a.showWeekNumber,s=a.components,d=(n=s==null?void 0:s.Day)!==null&&n!==void 0?n:Cn,c=(t=s==null?void 0:s.WeekNumber)!==null&&t!==void 0?t:jn,u;return i&&(u=l.jsx("td",{className:o.cell,style:r.cell,children:l.jsx(c,{number:e.weekNumber,dates:e.dates})})),l.jsxs("tr",{className:o.row,style:r.row,children:[u,e.dates.map(function(v){return l.jsx("td",{className:o.cell,style:r.cell,role:"presentation",children:l.jsx(d,{displayMonth:e.displayMonth,date:v})},rt(v))})]})}function ye(e,n,t){for(var a=t!=null&&t.ISOWeek?we(n):z(n,t),r=t!=null&&t.ISOWeek?f.startOfISOWeek(e):f.startOfWeek(e,t),o=f.differenceInCalendarDays(a,r),i=[],s=0;s<=o;s++)i.push(k(r,s));var d=i.reduce(function(c,u){var v=t!=null&&t.ISOWeek?f.getISOWeek(u):f.getWeek(u,t),h=c.find(function(y){return y.weekNumber===v});return h?(h.dates.push(u),c):(c.push({weekNumber:v,dates:[u]}),c)},[]);return d}function Sn(e,n){var t=ye(j(e),V(e),n);if(n!=null&&n.useFixedWeeks){var a=it(e,n);if(a<6){var r=t[t.length-1],o=r.dates[r.dates.length-1],i=H(o,6-a),s=ye(H(o,1),i,n);t.push.apply(t,s)}}return t}function Pn(e){var n,t,a,r=w(),o=r.locale,i=r.classNames,s=r.styles,d=r.hideHead,c=r.fixedWeeks,u=r.components,v=r.weekStartsOn,h=r.firstWeekContainsDate,y=r.ISOWeek,g=Sn(e.displayMonth,{useFixedWeeks:!!c,ISOWeek:y,locale:o,weekStartsOn:v,firstWeekContainsDate:h}),D=(n=u==null?void 0:u.Head)!==null&&n!==void 0?n:zt,_=(t=u==null?void 0:u.Row)!==null&&t!==void 0?t:On,M=(a=u==null?void 0:u.Footer)!==null&&a!==void 0?a:Ht;return l.jsxs("table",{id:e.id,className:i.table,style:s.table,role:"grid","aria-labelledby":e["aria-labelledby"],children:[!d&&l.jsx(D,{}),l.jsx("tbody",{className:i.tbody,style:s.tbody,children:g.map(function(N){return l.jsx(_,{displayMonth:e.displayMonth,dates:N.dates,weekNumber:N.weekNumber},N.weekNumber)})}),l.jsx(M,{displayMonth:e.displayMonth})]})}function Wn(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}var In=Wn()?x.useLayoutEffect:x.useEffect,ae=!1,Ln=0;function be(){return"react-day-picker-".concat(++Ln)}function Fn(e){var n,t=e??(ae?be():null),a=x.useState(t),r=a[0],o=a[1];return In(function(){r===null&&o(be())},[]),x.useEffect(function(){ae===!1&&(ae=!0)},[]),(n=e??r)!==null&&n!==void 0?n:void 0}function Rn(e){var n,t,a=w(),r=a.dir,o=a.classNames,i=a.styles,s=a.components,d=T().displayMonths,c=Fn(a.id?"".concat(a.id,"-").concat(e.displayIndex):void 0),u=a.id?"".concat(a.id,"-grid-").concat(e.displayIndex):void 0,v=[o.month],h=i.month,y=e.displayIndex===0,g=e.displayIndex===d.length-1,D=!y&&!g;r==="rtl"&&(n=[y,g],g=n[0],y=n[1]),y&&(v.push(o.caption_start),h=b(b({},h),i.caption_start)),g&&(v.push(o.caption_end),h=b(b({},h),i.caption_end)),D&&(v.push(o.caption_between),h=b(b({},h),i.caption_between));var _=(t=s==null?void 0:s.Caption)!==null&&t!==void 0?t:At;return l.jsxs("div",{className:v.join(" "),style:h,children:[l.jsx(_,{id:c,displayMonth:e.displayMonth,displayIndex:e.displayIndex}),l.jsx(Pn,{id:u,"aria-labelledby":c,displayMonth:e.displayMonth})]},e.displayIndex)}function Tn(e){var n=w(),t=n.classNames,a=n.styles;return l.jsx("div",{className:t.months,style:a.months,children:e.children})}function En(e){var n,t,a=e.initialProps,r=w(),o=ce(),i=T(),s=x.useState(!1),d=s[0],c=s[1];x.useEffect(function(){r.initialFocus&&o.focusTarget&&(d||(o.focus(o.focusTarget),c(!0)))},[r.initialFocus,d,o.focus,o.focusTarget,o]);var u=[r.classNames.root,r.className];r.numberOfMonths>1&&u.push(r.classNames.multiple_months),r.showWeekNumber&&u.push(r.classNames.with_weeknumber);var v=b(b({},r.styles.root),r.style),h=Object.keys(a).filter(function(g){return g.startsWith("data-")}).reduce(function(g,D){var _;return b(b({},g),(_={},_[D]=a[D],_))},{}),y=(t=(n=a.components)===null||n===void 0?void 0:n.Months)!==null&&t!==void 0?t:Tn;return l.jsx("div",b({className:u.join(" "),style:v,dir:r.dir,id:r.id,nonce:a.nonce,title:a.title,lang:a.lang},h,{children:l.jsx(y,{children:i.displayMonths.map(function(g,D){return l.jsx(Rn,{displayIndex:D,displayMonth:g},D)})})}))}function Yn(e){var n=e.children,t=lt(e,["children"]);return l.jsx(Ct,{initialProps:t,children:l.jsx(Tt,{children:l.jsx(gn,{initialProps:t,children:l.jsx(Ut,{initialProps:t,children:l.jsx(Gt,{initialProps:t,children:l.jsx(rn,{children:l.jsx(bn,{children:n})})})})})})})}function Bn(e){return l.jsx(Yn,b({},e,{children:l.jsx(En,{initialProps:e})}))}function Fe({className:e,classNames:n,showOutsideDays:t=!0,...a}){return l.jsx(Bn,{showOutsideDays:t,className:E.cn("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:E.cn(A.buttonVariants({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:E.cn(A.buttonVariants({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...n},components:{IconLeft:()=>l.jsx(ge,{className:"h-4 w-4"}),IconRight:()=>l.jsx(Ke.ChevronRight,{className:"h-4 w-4"})},...a})}Fe.displayName="Calendar";exports.Calendar=Fe;exports.ChevronLeft=ge;exports.Clock=$e;exports.Label=xe;exports.addDays=k;exports.addMonths=O;exports.addWeeks=H;exports.endOfMonth=V;exports.endOfWeek=z;exports.isSameDay=C;exports.isSameMonth=K;exports.startOfMonth=j;exports.subDays=Y;
12
+ //# sourceMappingURL=calendar-BF5drX5u.cjs.map