@worktango/ai-assistant 0.0.8 → 0.0.9

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 (334) hide show
  1. package/dist/ai-assistant.css +1 -1
  2. package/dist/react.umd.js +108 -0
  3. package/dist/react.umd.js.map +1 -0
  4. package/package.json +1 -4
  5. package/react.d.ts +1 -3
  6. package/react.js +1 -1
  7. package/dist/Absenteeism-7Gs_erw2.mjs +0 -50
  8. package/dist/Absenteeism-7Gs_erw2.mjs.map +0 -1
  9. package/dist/ActivityFeed-DuazxfhN.mjs +0 -42
  10. package/dist/ActivityFeed-DuazxfhN.mjs.map +0 -1
  11. package/dist/AddUser-lPVF3eHr.mjs +0 -129
  12. package/dist/AddUser-lPVF3eHr.mjs.map +0 -1
  13. package/dist/Admin-CFD4HaFd.mjs +0 -71
  14. package/dist/Admin-CFD4HaFd.mjs.map +0 -1
  15. package/dist/Admin-CuY7Yvav.mjs +0 -56
  16. package/dist/Admin-CuY7Yvav.mjs.map +0 -1
  17. package/dist/Anniversary-BhcDmv9Q.mjs +0 -36
  18. package/dist/Anniversary-BhcDmv9Q.mjs.map +0 -1
  19. package/dist/Appreciation-BE6ZvQBy.mjs +0 -56
  20. package/dist/Appreciation-BE6ZvQBy.mjs.map +0 -1
  21. package/dist/ArrowDown-BLq_oPxt.mjs +0 -39
  22. package/dist/ArrowDown-BLq_oPxt.mjs.map +0 -1
  23. package/dist/ArrowLeft-C-azazP_.mjs +0 -13
  24. package/dist/ArrowLeft-C-azazP_.mjs.map +0 -1
  25. package/dist/ArrowRight-DeKwwI8m.mjs +0 -13
  26. package/dist/ArrowRight-DeKwwI8m.mjs.map +0 -1
  27. package/dist/ArrowUp-B_w_Oxhm.mjs +0 -32
  28. package/dist/ArrowUp-B_w_Oxhm.mjs.map +0 -1
  29. package/dist/Attachment-B7WAliuS.mjs +0 -21
  30. package/dist/Attachment-B7WAliuS.mjs.map +0 -1
  31. package/dist/BeQuickDontHurry-atcgb9Xu.mjs +0 -95
  32. package/dist/BeQuickDontHurry-atcgb9Xu.mjs.map +0 -1
  33. package/dist/Birthday-BWim54dP.mjs +0 -67
  34. package/dist/Birthday-BWim54dP.mjs.map +0 -1
  35. package/dist/BrandPromise-DmPpBeHy.mjs +0 -58
  36. package/dist/BrandPromise-DmPpBeHy.mjs.map +0 -1
  37. package/dist/BrandVision-DPDGBoG5.mjs +0 -97
  38. package/dist/BrandVision-DPDGBoG5.mjs.map +0 -1
  39. package/dist/Calendar-Dp1ZSfxe.mjs +0 -25
  40. package/dist/Calendar-Dp1ZSfxe.mjs.map +0 -1
  41. package/dist/CaretDn-CQSCmFY8.mjs +0 -12
  42. package/dist/CaretDn-CQSCmFY8.mjs.map +0 -1
  43. package/dist/CaretDown-l4oLVLlU.mjs +0 -6
  44. package/dist/CaretDown-l4oLVLlU.mjs.map +0 -1
  45. package/dist/CaretLeft-BDXMl4WZ.mjs +0 -12
  46. package/dist/CaretLeft-BDXMl4WZ.mjs.map +0 -1
  47. package/dist/CaretRight-CJQYVTQd.mjs +0 -12
  48. package/dist/CaretRight-CJQYVTQd.mjs.map +0 -1
  49. package/dist/CaretUp--nINqc-_.mjs +0 -12
  50. package/dist/CaretUp--nINqc-_.mjs.map +0 -1
  51. package/dist/ChallengeAccepted-BYA78RHO.mjs +0 -50
  52. package/dist/ChallengeAccepted-BYA78RHO.mjs.map +0 -1
  53. package/dist/CheckIn-D6VWsa-S.mjs +0 -35
  54. package/dist/CheckIn-D6VWsa-S.mjs.map +0 -1
  55. package/dist/CheckIns-hkLDKD98.mjs +0 -34
  56. package/dist/CheckIns-hkLDKD98.mjs.map +0 -1
  57. package/dist/CheckSeal-hhIDr7iO.mjs +0 -32
  58. package/dist/CheckSeal-hhIDr7iO.mjs.map +0 -1
  59. package/dist/Checkmark-BZ5HE4Q0.mjs +0 -17
  60. package/dist/Checkmark-BZ5HE4Q0.mjs.map +0 -1
  61. package/dist/Clock-DF0LubAT.mjs +0 -34
  62. package/dist/Clock-DF0LubAT.mjs.map +0 -1
  63. package/dist/Close-DBhiw4c7.mjs +0 -13
  64. package/dist/Close-DBhiw4c7.mjs.map +0 -1
  65. package/dist/CloudDownload-K84OaP4w.mjs +0 -41
  66. package/dist/CloudDownload-K84OaP4w.mjs.map +0 -1
  67. package/dist/Comment-BumOC2C2.mjs +0 -168
  68. package/dist/Comment-BumOC2C2.mjs.map +0 -1
  69. package/dist/Comments-vnUbOAz5.mjs +0 -49
  70. package/dist/Comments-vnUbOAz5.mjs.map +0 -1
  71. package/dist/Connections-BT9moCvJ.mjs +0 -50
  72. package/dist/Connections-BT9moCvJ.mjs.map +0 -1
  73. package/dist/Copy-Bx6E6-R1.mjs +0 -73
  74. package/dist/Copy-Bx6E6-R1.mjs.map +0 -1
  75. package/dist/CustomQuestion-BKvZw37z.mjs +0 -41
  76. package/dist/CustomQuestion-BKvZw37z.mjs.map +0 -1
  77. package/dist/CustomerSuccess-DGsHmabI.mjs +0 -51
  78. package/dist/CustomerSuccess-DGsHmabI.mjs.map +0 -1
  79. package/dist/DatePicker-BTio7Tsc.mjs +0 -2234
  80. package/dist/DatePicker-BTio7Tsc.mjs.map +0 -1
  81. package/dist/Dot-DMoUVCHa.mjs +0 -13
  82. package/dist/Dot-DMoUVCHa.mjs.map +0 -1
  83. package/dist/Download-IwuDaKG7.mjs +0 -39
  84. package/dist/Download-IwuDaKG7.mjs.map +0 -1
  85. package/dist/Drag-B_4gw4Df.mjs +0 -42
  86. package/dist/Drag-B_4gw4Df.mjs.map +0 -1
  87. package/dist/Earn-MtOZzPga.mjs +0 -16
  88. package/dist/Earn-MtOZzPga.mjs.map +0 -1
  89. package/dist/Email-BOku4UIH.mjs +0 -25
  90. package/dist/Email-BOku4UIH.mjs.map +0 -1
  91. package/dist/EmojiDisplay-DDIW5qr0.mjs +0 -39051
  92. package/dist/EmojiDisplay-DDIW5qr0.mjs.map +0 -1
  93. package/dist/EmojiPicker-slr7ZkAb.mjs +0 -29642
  94. package/dist/EmojiPicker-slr7ZkAb.mjs.map +0 -1
  95. package/dist/EnpsSurvey-C4tUXQLS.mjs +0 -50
  96. package/dist/EnpsSurvey-C4tUXQLS.mjs.map +0 -1
  97. package/dist/Expired-Cxgxsg15.mjs +0 -34
  98. package/dist/Expired-Cxgxsg15.mjs.map +0 -1
  99. package/dist/Eye-DPfWtwYx.mjs +0 -28
  100. package/dist/Eye-DPfWtwYx.mjs.map +0 -1
  101. package/dist/Feedback-CiwT30u5.mjs +0 -50
  102. package/dist/Feedback-CiwT30u5.mjs.map +0 -1
  103. package/dist/Feedback-Cq5U0ElI.mjs +0 -42
  104. package/dist/Feedback-Cq5U0ElI.mjs.map +0 -1
  105. package/dist/Filter-ng7gV45A.mjs +0 -65
  106. package/dist/Filter-ng7gV45A.mjs.map +0 -1
  107. package/dist/Flag-CRiwOnsK.mjs +0 -36
  108. package/dist/Flag-CRiwOnsK.mjs.map +0 -1
  109. package/dist/Giphy-CdZx8lX_.mjs +0 -25
  110. package/dist/Giphy-CdZx8lX_.mjs.map +0 -1
  111. package/dist/GoalCount-Bq2ohKIN.mjs +0 -11
  112. package/dist/GoalCount-Bq2ohKIN.mjs.map +0 -1
  113. package/dist/GoalPercent-DilSSo6H.mjs +0 -22
  114. package/dist/GoalPercent-DilSSo6H.mjs.map +0 -1
  115. package/dist/GoalTask-B_0zxq_q.mjs +0 -21
  116. package/dist/GoalTask-B_0zxq_q.mjs.map +0 -1
  117. package/dist/GoalTask-DYZc_zsQ.mjs +0 -43
  118. package/dist/GoalTask-DYZc_zsQ.mjs.map +0 -1
  119. package/dist/Goals-BRfG_eTA.mjs +0 -80
  120. package/dist/Goals-BRfG_eTA.mjs.map +0 -1
  121. package/dist/Goals-quJ1BrNc.mjs +0 -71
  122. package/dist/Goals-quJ1BrNc.mjs.map +0 -1
  123. package/dist/Growth-wt2XFeov.mjs +0 -86
  124. package/dist/Growth-wt2XFeov.mjs.map +0 -1
  125. package/dist/Hamburger-D-VOnMXq.mjs +0 -10
  126. package/dist/Hamburger-D-VOnMXq.mjs.map +0 -1
  127. package/dist/Help-D1zYAS_Y.mjs +0 -37
  128. package/dist/Help-D1zYAS_Y.mjs.map +0 -1
  129. package/dist/HighFive-CkPFrOKP.mjs +0 -39
  130. package/dist/HighFive-CkPFrOKP.mjs.map +0 -1
  131. package/dist/HighFive-CyW1fu8C.mjs +0 -34
  132. package/dist/HighFive-CyW1fu8C.mjs.map +0 -1
  133. package/dist/Home-DU7RaENv.mjs +0 -22
  134. package/dist/Home-DU7RaENv.mjs.map +0 -1
  135. package/dist/Home-LlGF7WI6.mjs +0 -32
  136. package/dist/Home-LlGF7WI6.mjs.map +0 -1
  137. package/dist/HorizontalLine-Tajsh1YU.mjs +0 -18
  138. package/dist/HorizontalLine-Tajsh1YU.mjs.map +0 -1
  139. package/dist/Hourglass-DdY4OqH0.mjs +0 -54
  140. package/dist/Hourglass-DdY4OqH0.mjs.map +0 -1
  141. package/dist/Image-BmQwZk4m.mjs +0 -44
  142. package/dist/Image-BmQwZk4m.mjs.map +0 -1
  143. package/dist/ImageFile-C4OONOqN.mjs +0 -61
  144. package/dist/ImageFile-C4OONOqN.mjs.map +0 -1
  145. package/dist/InGoodCompany-BV6BWOht.mjs +0 -34
  146. package/dist/InGoodCompany-BV6BWOht.mjs.map +0 -1
  147. package/dist/Incentives-t0gbkmXB.mjs +0 -156
  148. package/dist/Incentives-t0gbkmXB.mjs.map +0 -1
  149. package/dist/Info-Dx89YJDW.mjs +0 -32
  150. package/dist/Info-Dx89YJDW.mjs.map +0 -1
  151. package/dist/Insights-B6xQGdzP.mjs +0 -42
  152. package/dist/Insights-B6xQGdzP.mjs.map +0 -1
  153. package/dist/Insights-CwJhTGO7.mjs +0 -21
  154. package/dist/Insights-CwJhTGO7.mjs.map +0 -1
  155. package/dist/Integrations-CkiA29Oq.mjs +0 -34
  156. package/dist/Integrations-CkiA29Oq.mjs.map +0 -1
  157. package/dist/KazooLogo-D_I-adDw.mjs +0 -39
  158. package/dist/KazooLogo-D_I-adDw.mjs.map +0 -1
  159. package/dist/KnowYourAudience-Dd8PY8K-.mjs +0 -92
  160. package/dist/KnowYourAudience-Dd8PY8K-.mjs.map +0 -1
  161. package/dist/Launch-CezCFTz4.mjs +0 -84
  162. package/dist/Launch-CezCFTz4.mjs.map +0 -1
  163. package/dist/Link-CEk3WGeb.mjs +0 -26
  164. package/dist/Link-CEk3WGeb.mjs.map +0 -1
  165. package/dist/LinkArrow-BODhbQWM.mjs +0 -13
  166. package/dist/LinkArrow-BODhbQWM.mjs.map +0 -1
  167. package/dist/Loading-AqOvlruO.mjs +0 -7
  168. package/dist/Loading-AqOvlruO.mjs.map +0 -1
  169. package/dist/Lock-Es7k_qNN.mjs +0 -32
  170. package/dist/Lock-Es7k_qNN.mjs.map +0 -1
  171. package/dist/Management-D9ld9PcM.mjs +0 -88
  172. package/dist/Management-D9ld9PcM.mjs.map +0 -1
  173. package/dist/MeatballMenu-CE6Jn0nH.mjs +0 -10
  174. package/dist/MeatballMenu-CE6Jn0nH.mjs.map +0 -1
  175. package/dist/Messages-RmwaOSr_.mjs +0 -222
  176. package/dist/Messages-RmwaOSr_.mjs.map +0 -1
  177. package/dist/Mobile-CsvBmB9_.mjs +0 -32
  178. package/dist/Mobile-CsvBmB9_.mjs.map +0 -1
  179. package/dist/Nomination-D85YwP0v.mjs +0 -13
  180. package/dist/Nomination-D85YwP0v.mjs.map +0 -1
  181. package/dist/NominationsAndAwards-CGGJcSk3.mjs +0 -58
  182. package/dist/NominationsAndAwards-CGGJcSk3.mjs.map +0 -1
  183. package/dist/Notification-B-nAosyw.mjs +0 -29
  184. package/dist/Notification-B-nAosyw.mjs.map +0 -1
  185. package/dist/Okrs-CVV3GvdL.mjs +0 -56
  186. package/dist/Okrs-CVV3GvdL.mjs.map +0 -1
  187. package/dist/PeerToPeer-CSZKxwG1.mjs +0 -65
  188. package/dist/PeerToPeer-CSZKxwG1.mjs.map +0 -1
  189. package/dist/Pencil-BsnTrKOH.mjs +0 -26
  190. package/dist/Pencil-BsnTrKOH.mjs.map +0 -1
  191. package/dist/People-LAxio-dJ.mjs +0 -44
  192. package/dist/People-LAxio-dJ.mjs.map +0 -1
  193. package/dist/PerformanceManagement-DJpvKVj-.mjs +0 -58
  194. package/dist/PerformanceManagement-DJpvKVj-.mjs.map +0 -1
  195. package/dist/Pin-BC5ynEKy.mjs +0 -25
  196. package/dist/Pin-BC5ynEKy.mjs.map +0 -1
  197. package/dist/PinnedIconAward-Cm7IGMOd.mjs +0 -21
  198. package/dist/PinnedIconAward-Cm7IGMOd.mjs.map +0 -1
  199. package/dist/PinnedIconBrightIdea-DUancqH1.mjs +0 -21
  200. package/dist/PinnedIconBrightIdea-DUancqH1.mjs.map +0 -1
  201. package/dist/PinnedIconBullseye-BTmTduJC.mjs +0 -21
  202. package/dist/PinnedIconBullseye-BTmTduJC.mjs.map +0 -1
  203. package/dist/PinnedIconChampagne-A_WMKfKh.mjs +0 -21
  204. package/dist/PinnedIconChampagne-A_WMKfKh.mjs.map +0 -1
  205. package/dist/PinnedIconCheer-BI-hbYQ6.mjs +0 -21
  206. package/dist/PinnedIconCheer-BI-hbYQ6.mjs.map +0 -1
  207. package/dist/PinnedIconCrown-CVWq1X51.mjs +0 -21
  208. package/dist/PinnedIconCrown-CVWq1X51.mjs.map +0 -1
  209. package/dist/PinnedIconDiamond-cnfGwjos.mjs +0 -21
  210. package/dist/PinnedIconDiamond-cnfGwjos.mjs.map +0 -1
  211. package/dist/PinnedIconHoleInOne-BHDdCE_P.mjs +0 -21
  212. package/dist/PinnedIconHoleInOne-BHDdCE_P.mjs.map +0 -1
  213. package/dist/PinnedIconMedal-DMvo7Jh5.mjs +0 -21
  214. package/dist/PinnedIconMedal-DMvo7Jh5.mjs.map +0 -1
  215. package/dist/PinnedIconMetrics-CBojgtHK.mjs +0 -21
  216. package/dist/PinnedIconMetrics-CBojgtHK.mjs.map +0 -1
  217. package/dist/PinnedIconPin-7xRvtx1U.mjs +0 -21
  218. package/dist/PinnedIconPin-7xRvtx1U.mjs.map +0 -1
  219. package/dist/PinnedIconRockAndRoll-BHk01tjl.mjs +0 -24
  220. package/dist/PinnedIconRockAndRoll-BHk01tjl.mjs.map +0 -1
  221. package/dist/PinnedIconRocket-DliZwypm.mjs +0 -43
  222. package/dist/PinnedIconRocket-DliZwypm.mjs.map +0 -1
  223. package/dist/PinnedIconStrength-BmqsA7U3.mjs +0 -21
  224. package/dist/PinnedIconStrength-BmqsA7U3.mjs.map +0 -1
  225. package/dist/PinnedIconTeddyBear-B5QZGR8E.mjs +0 -21
  226. package/dist/PinnedIconTeddyBear-B5QZGR8E.mjs.map +0 -1
  227. package/dist/PlatformLogo-CbiJ6ufj.mjs +0 -58
  228. package/dist/PlatformLogo-CbiJ6ufj.mjs.map +0 -1
  229. package/dist/Plus-D2q0SuWG.mjs +0 -20
  230. package/dist/Plus-D2q0SuWG.mjs.map +0 -1
  231. package/dist/Popper-CldJz3kh.mjs +0 -1119
  232. package/dist/Popper-CldJz3kh.mjs.map +0 -1
  233. package/dist/PrivateEye-BDop61Nf.mjs +0 -128
  234. package/dist/PrivateEye-BDop61Nf.mjs.map +0 -1
  235. package/dist/PrivatePushPin-Cg4KGCVE.mjs +0 -34
  236. package/dist/PrivatePushPin-Cg4KGCVE.mjs.map +0 -1
  237. package/dist/Processing-BCjDKEIW.mjs +0 -81
  238. package/dist/Processing-BCjDKEIW.mjs.map +0 -1
  239. package/dist/Productivity-CmzxtvXS.mjs +0 -42
  240. package/dist/Productivity-CmzxtvXS.mjs.map +0 -1
  241. package/dist/ProgressCircle-Dcx-v9hY.mjs +0 -13
  242. package/dist/ProgressCircle-Dcx-v9hY.mjs.map +0 -1
  243. package/dist/PulseSurvey-Ctifzprv.mjs +0 -49
  244. package/dist/PulseSurvey-Ctifzprv.mjs.map +0 -1
  245. package/dist/PushPin-DelVFawh.mjs +0 -19
  246. package/dist/PushPin-DelVFawh.mjs.map +0 -1
  247. package/dist/Recognition-CR1J6dFF.mjs +0 -77
  248. package/dist/Recognition-CR1J6dFF.mjs.map +0 -1
  249. package/dist/Recognition-Qa7rYllI.mjs +0 -39
  250. package/dist/Recognition-Qa7rYllI.mjs.map +0 -1
  251. package/dist/Retention-PqCQ89y9.mjs +0 -48
  252. package/dist/Retention-PqCQ89y9.mjs.map +0 -1
  253. package/dist/Rewards-CpIRfzG-.mjs +0 -68
  254. package/dist/Rewards-CpIRfzG-.mjs.map +0 -1
  255. package/dist/Rewards-DLN6Mzco.mjs +0 -55
  256. package/dist/Rewards-DLN6Mzco.mjs.map +0 -1
  257. package/dist/RewardsCatalog-DiKrTWRV.mjs +0 -50
  258. package/dist/RewardsCatalog-DiKrTWRV.mjs.map +0 -1
  259. package/dist/Roadmap-e9HLXXzk.mjs +0 -123
  260. package/dist/Roadmap-e9HLXXzk.mjs.map +0 -1
  261. package/dist/Search-dTTWBwcU.mjs +0 -15
  262. package/dist/Search-dTTWBwcU.mjs.map +0 -1
  263. package/dist/Security-PY-v0SYe.mjs +0 -34
  264. package/dist/Security-PY-v0SYe.mjs.map +0 -1
  265. package/dist/SendRecognition-Bbf-GQXN.mjs +0 -6
  266. package/dist/SendRecognition-Bbf-GQXN.mjs.map +0 -1
  267. package/dist/ShareLink-BS6ng4md.mjs +0 -28
  268. package/dist/ShareLink-BS6ng4md.mjs.map +0 -1
  269. package/dist/Skill-D0hjjjF2.mjs +0 -24
  270. package/dist/Skill-D0hjjjF2.mjs.map +0 -1
  271. package/dist/Skills-BfG4y3Qy.mjs +0 -69
  272. package/dist/Skills-BfG4y3Qy.mjs.map +0 -1
  273. package/dist/Smiley-DzL7V8pR.mjs +0 -46
  274. package/dist/Smiley-DzL7V8pR.mjs.map +0 -1
  275. package/dist/Stop-CWtEw7Sm.mjs +0 -179
  276. package/dist/Stop-CWtEw7Sm.mjs.map +0 -1
  277. package/dist/Survey-B2WonI84.mjs +0 -60
  278. package/dist/Survey-B2WonI84.mjs.map +0 -1
  279. package/dist/Surveys-ZEd2rBZJ.mjs +0 -55
  280. package/dist/Surveys-ZEd2rBZJ.mjs.map +0 -1
  281. package/dist/SyncUps-CtlsjNJH.mjs +0 -31
  282. package/dist/SyncUps-CtlsjNJH.mjs.map +0 -1
  283. package/dist/Syncs-BrEkBC8A.mjs +0 -30
  284. package/dist/Syncs-BrEkBC8A.mjs.map +0 -1
  285. package/dist/TalentReview-BODN6iw5.mjs +0 -34
  286. package/dist/TalentReview-BODN6iw5.mjs.map +0 -1
  287. package/dist/TalentReview-DP7Dw0pp.mjs +0 -89
  288. package/dist/TalentReview-DP7Dw0pp.mjs.map +0 -1
  289. package/dist/TalentReviewInsights-DXmeWWwp.mjs +0 -101
  290. package/dist/TalentReviewInsights-DXmeWWwp.mjs.map +0 -1
  291. package/dist/TaskCompleted-Eaw1Y95k.mjs +0 -98
  292. package/dist/TaskCompleted-Eaw1Y95k.mjs.map +0 -1
  293. package/dist/Team-BE1DWzLa.mjs +0 -64
  294. package/dist/Team-BE1DWzLa.mjs.map +0 -1
  295. package/dist/Teams-C8AfEtyC.mjs +0 -81
  296. package/dist/Teams-C8AfEtyC.mjs.map +0 -1
  297. package/dist/TextBold-BJVqCsh0.mjs +0 -72
  298. package/dist/TextBold-BJVqCsh0.mjs.map +0 -1
  299. package/dist/TextBulletList-CP7NUFCQ.mjs +0 -129
  300. package/dist/TextBulletList-CP7NUFCQ.mjs.map +0 -1
  301. package/dist/TextInput-B5K7XrsN.mjs +0 -122
  302. package/dist/TextInput-B5K7XrsN.mjs.map +0 -1
  303. package/dist/TextItalic-CE2MDuSp.mjs +0 -72
  304. package/dist/TextItalic-CE2MDuSp.mjs.map +0 -1
  305. package/dist/TextNumberList-CVfsSlvi.mjs +0 -148
  306. package/dist/TextNumberList-CVfsSlvi.mjs.map +0 -1
  307. package/dist/TextUnderline-BBL5WFrr.mjs +0 -91
  308. package/dist/TextUnderline-BBL5WFrr.mjs.map +0 -1
  309. package/dist/Toggle-Cn0ZGhJu.mjs +0 -77
  310. package/dist/Toggle-Cn0ZGhJu.mjs.map +0 -1
  311. package/dist/Trash-DozlAFMK.mjs +0 -45
  312. package/dist/Trash-DozlAFMK.mjs.map +0 -1
  313. package/dist/TrendDown-Cr5fsUbq.mjs +0 -6
  314. package/dist/TrendDown-Cr5fsUbq.mjs.map +0 -1
  315. package/dist/TrendUp-Bb6kBUvO.mjs +0 -6
  316. package/dist/TrendUp-Bb6kBUvO.mjs.map +0 -1
  317. package/dist/Unplugged-BT-pmP6D.mjs +0 -202
  318. package/dist/Unplugged-BT-pmP6D.mjs.map +0 -1
  319. package/dist/UpDownCaret-Cjm-R0h_.mjs +0 -13
  320. package/dist/UpDownCaret-Cjm-R0h_.mjs.map +0 -1
  321. package/dist/VerticalLine-DRIH_cCj.mjs +0 -51
  322. package/dist/VerticalLine-DRIH_cCj.mjs.map +0 -1
  323. package/dist/Warning-ChUIfgt3.mjs +0 -38
  324. package/dist/Warning-ChUIfgt3.mjs.map +0 -1
  325. package/dist/WarningNoOutline-BiYPsHjH.mjs +0 -42
  326. package/dist/WarningNoOutline-BiYPsHjH.mjs.map +0 -1
  327. package/dist/YesAnd-BBX1e04v.mjs +0 -32
  328. package/dist/YesAnd-BBX1e04v.mjs.map +0 -1
  329. package/dist/emoji-B1olZvTU.mjs +0 -2311
  330. package/dist/emoji-B1olZvTU.mjs.map +0 -1
  331. package/dist/react-D5bElbFy.mjs +0 -11923
  332. package/dist/react-D5bElbFy.mjs.map +0 -1
  333. package/dist/react.es.js +0 -5
  334. package/dist/react.es.js.map +0 -1
@@ -1,2234 +0,0 @@
1
- import { r as xn, b as Qn, g as Xn, a as Oe, e as We, j as fe, C as et, I as mn, P as j } from "./react-D5bElbFy.mjs";
2
- import _e from "react";
3
- const nt = "Input-module_input_Ns-MU", He = {
4
- input: nt,
5
- "input--compact": "Input-module_input--compact_5qlqz",
6
- "input--disabled": "Input-module_input--disabled_ID0-7",
7
- "input--error": "Input-module_input--error_BsTcs"
8
- };
9
- var $e = {}, Re = { exports: {} }, Ze, hn;
10
- function tn() {
11
- if (hn) return Ze;
12
- hn = 1;
13
- var J = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
14
- return Ze = J, Ze;
15
- }
16
- var Qe, vn;
17
- function Tn() {
18
- return vn || (vn = 1, Qe = Function.call.bind(Object.prototype.hasOwnProperty)), Qe;
19
- }
20
- var Xe, yn;
21
- function tt() {
22
- if (yn) return Xe;
23
- yn = 1;
24
- var J = function() {
25
- };
26
- if (process.env.NODE_ENV !== "production") {
27
- var $ = /* @__PURE__ */ tn(), x = {}, F = /* @__PURE__ */ Tn();
28
- J = function(W) {
29
- var Y = "Warning: " + W;
30
- typeof console < "u" && console.error(Y);
31
- try {
32
- throw new Error(Y);
33
- } catch {
34
- }
35
- };
36
- }
37
- function H(W, Y, N, Q, X) {
38
- if (process.env.NODE_ENV !== "production") {
39
- for (var R in W)
40
- if (F(W, R)) {
41
- var w;
42
- try {
43
- if (typeof W[R] != "function") {
44
- var z = Error(
45
- (Q || "React class") + ": " + N + " type `" + R + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof W[R] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
46
- );
47
- throw z.name = "Invariant Violation", z;
48
- }
49
- w = W[R](Y, R, Q, N, null, $);
50
- } catch (ie) {
51
- w = ie;
52
- }
53
- if (w && !(w instanceof Error) && J(
54
- (Q || "React class") + ": type specification of " + N + " `" + R + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof w + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
55
- ), w instanceof Error && !(w.message in x)) {
56
- x[w.message] = !0;
57
- var ee = X ? X() : "";
58
- J(
59
- "Failed " + N + " type: " + w.message + (ee ?? "")
60
- );
61
- }
62
- }
63
- }
64
- }
65
- return H.resetWarningCache = function() {
66
- process.env.NODE_ENV !== "production" && (x = {});
67
- }, Xe = H, Xe;
68
- }
69
- var en, Dn;
70
- function rt() {
71
- if (Dn) return en;
72
- Dn = 1;
73
- var J = xn(), $ = Qn(), x = /* @__PURE__ */ tn(), F = /* @__PURE__ */ Tn(), H = /* @__PURE__ */ tt(), W = function() {
74
- };
75
- process.env.NODE_ENV !== "production" && (W = function(N) {
76
- var Q = "Warning: " + N;
77
- typeof console < "u" && console.error(Q);
78
- try {
79
- throw new Error(Q);
80
- } catch {
81
- }
82
- });
83
- function Y() {
84
- return null;
85
- }
86
- return en = function(N, Q) {
87
- var X = typeof Symbol == "function" && Symbol.iterator, R = "@@iterator";
88
- function w(o) {
89
- var f = o && (X && o[X] || o[R]);
90
- if (typeof f == "function")
91
- return f;
92
- }
93
- var z = "<<anonymous>>", ee = {
94
- array: U("array"),
95
- bigint: U("bigint"),
96
- bool: U("boolean"),
97
- func: U("function"),
98
- number: U("number"),
99
- object: U("object"),
100
- string: U("string"),
101
- symbol: U("symbol"),
102
- any: oe(),
103
- arrayOf: ue,
104
- element: ae(),
105
- elementType: ne(),
106
- instanceOf: le,
107
- node: s(),
108
- objectOf: se,
109
- oneOf: K,
110
- oneOfType: me,
111
- shape: h,
112
- exact: d
113
- };
114
- function ie(o, f) {
115
- return o === f ? o !== 0 || 1 / o === 1 / f : o !== o && f !== f;
116
- }
117
- function L(o, f) {
118
- this.message = o, this.data = f && typeof f == "object" ? f : {}, this.stack = "";
119
- }
120
- L.prototype = Error.prototype;
121
- function q(o) {
122
- if (process.env.NODE_ENV !== "production")
123
- var f = {}, y = 0;
124
- function M(k, T, O, A, v, _, G) {
125
- if (A = A || z, _ = _ || O, G !== x) {
126
- if (Q) {
127
- var V = new Error(
128
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
129
- );
130
- throw V.name = "Invariant Violation", V;
131
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
132
- var Z = A + ":" + O;
133
- !f[Z] && // Avoid spamming the console because they are often not actionable except for lib authors
134
- y < 3 && (W(
135
- "You are manually calling a React.PropTypes validation function for the `" + _ + "` prop on `" + A + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
136
- ), f[Z] = !0, y++);
137
- }
138
- }
139
- return T[O] == null ? k ? T[O] === null ? new L("The " + v + " `" + _ + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new L("The " + v + " `" + _ + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : o(T, O, A, v, _);
140
- }
141
- var p = M.bind(null, !1);
142
- return p.isRequired = M.bind(null, !0), p;
143
- }
144
- function U(o) {
145
- function f(y, M, p, k, T, O) {
146
- var A = y[M], v = e(A);
147
- if (v !== o) {
148
- var _ = D(A);
149
- return new L(
150
- "Invalid " + k + " `" + T + "` of type " + ("`" + _ + "` supplied to `" + p + "`, expected ") + ("`" + o + "`."),
151
- { expectedType: o }
152
- );
153
- }
154
- return null;
155
- }
156
- return q(f);
157
- }
158
- function oe() {
159
- return q(Y);
160
- }
161
- function ue(o) {
162
- function f(y, M, p, k, T) {
163
- if (typeof o != "function")
164
- return new L("Property `" + T + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
165
- var O = y[M];
166
- if (!Array.isArray(O)) {
167
- var A = e(O);
168
- return new L("Invalid " + k + " `" + T + "` of type " + ("`" + A + "` supplied to `" + p + "`, expected an array."));
169
- }
170
- for (var v = 0; v < O.length; v++) {
171
- var _ = o(O, v, p, k, T + "[" + v + "]", x);
172
- if (_ instanceof Error)
173
- return _;
174
- }
175
- return null;
176
- }
177
- return q(f);
178
- }
179
- function ae() {
180
- function o(f, y, M, p, k) {
181
- var T = f[y];
182
- if (!N(T)) {
183
- var O = e(T);
184
- return new L("Invalid " + p + " `" + k + "` of type " + ("`" + O + "` supplied to `" + M + "`, expected a single ReactElement."));
185
- }
186
- return null;
187
- }
188
- return q(o);
189
- }
190
- function ne() {
191
- function o(f, y, M, p, k) {
192
- var T = f[y];
193
- if (!J.isValidElementType(T)) {
194
- var O = e(T);
195
- return new L("Invalid " + p + " `" + k + "` of type " + ("`" + O + "` supplied to `" + M + "`, expected a single ReactElement type."));
196
- }
197
- return null;
198
- }
199
- return q(o);
200
- }
201
- function le(o) {
202
- function f(y, M, p, k, T) {
203
- if (!(y[M] instanceof o)) {
204
- var O = o.name || z, A = b(y[M]);
205
- return new L("Invalid " + k + " `" + T + "` of type " + ("`" + A + "` supplied to `" + p + "`, expected ") + ("instance of `" + O + "`."));
206
- }
207
- return null;
208
- }
209
- return q(f);
210
- }
211
- function K(o) {
212
- if (!Array.isArray(o))
213
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? W(
214
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
215
- ) : W("Invalid argument supplied to oneOf, expected an array.")), Y;
216
- function f(y, M, p, k, T) {
217
- for (var O = y[M], A = 0; A < o.length; A++)
218
- if (ie(O, o[A]))
219
- return null;
220
- var v = JSON.stringify(o, function(G, V) {
221
- var Z = D(V);
222
- return Z === "symbol" ? String(V) : V;
223
- });
224
- return new L("Invalid " + k + " `" + T + "` of value `" + String(O) + "` " + ("supplied to `" + p + "`, expected one of " + v + "."));
225
- }
226
- return q(f);
227
- }
228
- function se(o) {
229
- function f(y, M, p, k, T) {
230
- if (typeof o != "function")
231
- return new L("Property `" + T + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
232
- var O = y[M], A = e(O);
233
- if (A !== "object")
234
- return new L("Invalid " + k + " `" + T + "` of type " + ("`" + A + "` supplied to `" + p + "`, expected an object."));
235
- for (var v in O)
236
- if (F(O, v)) {
237
- var _ = o(O, v, p, k, T + "." + v, x);
238
- if (_ instanceof Error)
239
- return _;
240
- }
241
- return null;
242
- }
243
- return q(f);
244
- }
245
- function me(o) {
246
- if (!Array.isArray(o))
247
- return process.env.NODE_ENV !== "production" && W("Invalid argument supplied to oneOfType, expected an instance of array."), Y;
248
- for (var f = 0; f < o.length; f++) {
249
- var y = o[f];
250
- if (typeof y != "function")
251
- return W(
252
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + S(y) + " at index " + f + "."
253
- ), Y;
254
- }
255
- function M(p, k, T, O, A) {
256
- for (var v = [], _ = 0; _ < o.length; _++) {
257
- var G = o[_], V = G(p, k, T, O, A, x);
258
- if (V == null)
259
- return null;
260
- V.data && F(V.data, "expectedType") && v.push(V.data.expectedType);
261
- }
262
- var Z = v.length > 0 ? ", expected one of type [" + v.join(", ") + "]" : "";
263
- return new L("Invalid " + O + " `" + A + "` supplied to " + ("`" + T + "`" + Z + "."));
264
- }
265
- return q(M);
266
- }
267
- function s() {
268
- function o(f, y, M, p, k) {
269
- return r(f[y]) ? null : new L("Invalid " + p + " `" + k + "` supplied to " + ("`" + M + "`, expected a ReactNode."));
270
- }
271
- return q(o);
272
- }
273
- function g(o, f, y, M, p) {
274
- return new L(
275
- (o || "React class") + ": " + f + " type `" + y + "." + M + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
276
- );
277
- }
278
- function h(o) {
279
- function f(y, M, p, k, T) {
280
- var O = y[M], A = e(O);
281
- if (A !== "object")
282
- return new L("Invalid " + k + " `" + T + "` of type `" + A + "` " + ("supplied to `" + p + "`, expected `object`."));
283
- for (var v in o) {
284
- var _ = o[v];
285
- if (typeof _ != "function")
286
- return g(p, k, T, v, D(_));
287
- var G = _(O, v, p, k, T + "." + v, x);
288
- if (G)
289
- return G;
290
- }
291
- return null;
292
- }
293
- return q(f);
294
- }
295
- function d(o) {
296
- function f(y, M, p, k, T) {
297
- var O = y[M], A = e(O);
298
- if (A !== "object")
299
- return new L("Invalid " + k + " `" + T + "` of type `" + A + "` " + ("supplied to `" + p + "`, expected `object`."));
300
- var v = $({}, y[M], o);
301
- for (var _ in v) {
302
- var G = o[_];
303
- if (F(o, _) && typeof G != "function")
304
- return g(p, k, T, _, D(G));
305
- if (!G)
306
- return new L(
307
- "Invalid " + k + " `" + T + "` key `" + _ + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(y[M], null, " ") + `
308
- Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
309
- );
310
- var V = G(O, _, p, k, T + "." + _, x);
311
- if (V)
312
- return V;
313
- }
314
- return null;
315
- }
316
- return q(f);
317
- }
318
- function r(o) {
319
- switch (typeof o) {
320
- case "number":
321
- case "string":
322
- case "undefined":
323
- return !0;
324
- case "boolean":
325
- return !o;
326
- case "object":
327
- if (Array.isArray(o))
328
- return o.every(r);
329
- if (o === null || N(o))
330
- return !0;
331
- var f = w(o);
332
- if (f) {
333
- var y = f.call(o), M;
334
- if (f !== o.entries) {
335
- for (; !(M = y.next()).done; )
336
- if (!r(M.value))
337
- return !1;
338
- } else
339
- for (; !(M = y.next()).done; ) {
340
- var p = M.value;
341
- if (p && !r(p[1]))
342
- return !1;
343
- }
344
- } else
345
- return !1;
346
- return !0;
347
- default:
348
- return !1;
349
- }
350
- }
351
- function i(o, f) {
352
- return o === "symbol" ? !0 : f ? f["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && f instanceof Symbol : !1;
353
- }
354
- function e(o) {
355
- var f = typeof o;
356
- return Array.isArray(o) ? "array" : o instanceof RegExp ? "object" : i(f, o) ? "symbol" : f;
357
- }
358
- function D(o) {
359
- if (typeof o > "u" || o === null)
360
- return "" + o;
361
- var f = e(o);
362
- if (f === "object") {
363
- if (o instanceof Date)
364
- return "date";
365
- if (o instanceof RegExp)
366
- return "regexp";
367
- }
368
- return f;
369
- }
370
- function S(o) {
371
- var f = D(o);
372
- switch (f) {
373
- case "array":
374
- case "object":
375
- return "an " + f;
376
- case "boolean":
377
- case "date":
378
- case "regexp":
379
- return "a " + f;
380
- default:
381
- return f;
382
- }
383
- }
384
- function b(o) {
385
- return !o.constructor || !o.constructor.name ? z : o.constructor.name;
386
- }
387
- return ee.checkPropTypes = H, ee.resetWarningCache = H.resetWarningCache, ee.PropTypes = ee, ee;
388
- }, en;
389
- }
390
- var nn, bn;
391
- function at() {
392
- if (bn) return nn;
393
- bn = 1;
394
- var J = /* @__PURE__ */ tn();
395
- function $() {
396
- }
397
- function x() {
398
- }
399
- return x.resetWarningCache = $, nn = function() {
400
- function F(Y, N, Q, X, R, w) {
401
- if (w !== J) {
402
- var z = new Error(
403
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
404
- );
405
- throw z.name = "Invariant Violation", z;
406
- }
407
- }
408
- F.isRequired = F;
409
- function H() {
410
- return F;
411
- }
412
- var W = {
413
- array: F,
414
- bigint: F,
415
- bool: F,
416
- func: F,
417
- number: F,
418
- object: F,
419
- string: F,
420
- symbol: F,
421
- any: F,
422
- arrayOf: H,
423
- element: F,
424
- elementType: F,
425
- instanceOf: H,
426
- node: F,
427
- objectOf: H,
428
- oneOf: H,
429
- oneOfType: H,
430
- shape: H,
431
- exact: H,
432
- checkPropTypes: x,
433
- resetWarningCache: $
434
- };
435
- return W.PropTypes = W, W;
436
- }, nn;
437
- }
438
- var wn;
439
- function it() {
440
- if (wn) return Re.exports;
441
- if (wn = 1, process.env.NODE_ENV !== "production") {
442
- var J = xn(), $ = !0;
443
- Re.exports = /* @__PURE__ */ rt()(J.isElement, $);
444
- } else
445
- Re.exports = /* @__PURE__ */ at()();
446
- return Re.exports;
447
- }
448
- var Le = { exports: {} };
449
- /* flatpickr v4.6.2, @license MIT */
450
- var ot = Le.exports, Cn;
451
- function ut() {
452
- return Cn || (Cn = 1, function(J, $) {
453
- (function(x, F) {
454
- J.exports = F();
455
- })(ot, function() {
456
- /*! *****************************************************************************
457
- Copyright (c) Microsoft Corporation. All rights reserved.
458
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
459
- this file except in compliance with the License. You may obtain a copy of the
460
- License at http://www.apache.org/licenses/LICENSE-2.0
461
-
462
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
463
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
464
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
465
- MERCHANTABLITY OR NON-INFRINGEMENT.
466
-
467
- See the Apache Version 2.0 License for specific language governing permissions
468
- and limitations under the License.
469
- ***************************************************************************** */
470
- var x = function() {
471
- return x = Object.assign || function(i) {
472
- for (var e, D = 1, S = arguments.length; D < S; D++) {
473
- e = arguments[D];
474
- for (var b in e) Object.prototype.hasOwnProperty.call(e, b) && (i[b] = e[b]);
475
- }
476
- return i;
477
- }, x.apply(this, arguments);
478
- }, F = [
479
- "onChange",
480
- "onClose",
481
- "onDayCreate",
482
- "onDestroy",
483
- "onKeyDown",
484
- "onMonthChange",
485
- "onOpen",
486
- "onParseConfig",
487
- "onReady",
488
- "onValueUpdate",
489
- "onYearChange",
490
- "onPreCalendarPosition"
491
- ], H = {
492
- _disable: [],
493
- _enable: [],
494
- allowInput: !1,
495
- altFormat: "F j, Y",
496
- altInput: !1,
497
- altInputClass: "form-control input",
498
- animate: typeof window == "object" && window.navigator.userAgent.indexOf("MSIE") === -1,
499
- ariaDateFormat: "F j, Y",
500
- clickOpens: !0,
501
- closeOnSelect: !0,
502
- conjunction: ", ",
503
- dateFormat: "Y-m-d",
504
- defaultHour: 12,
505
- defaultMinute: 0,
506
- defaultSeconds: 0,
507
- disable: [],
508
- disableMobile: !1,
509
- enable: [],
510
- enableSeconds: !1,
511
- enableTime: !1,
512
- errorHandler: function(r) {
513
- return typeof console < "u" && console.warn(r);
514
- },
515
- getWeek: function(r) {
516
- var i = new Date(r.getTime());
517
- i.setHours(0, 0, 0, 0), i.setDate(i.getDate() + 3 - (i.getDay() + 6) % 7);
518
- var e = new Date(i.getFullYear(), 0, 4);
519
- return 1 + Math.round(((i.getTime() - e.getTime()) / 864e5 - 3 + (e.getDay() + 6) % 7) / 7);
520
- },
521
- hourIncrement: 1,
522
- ignoredFocusElements: [],
523
- inline: !1,
524
- locale: "default",
525
- minuteIncrement: 5,
526
- mode: "single",
527
- monthSelectorType: "dropdown",
528
- nextArrow: "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",
529
- noCalendar: !1,
530
- now: /* @__PURE__ */ new Date(),
531
- onChange: [],
532
- onClose: [],
533
- onDayCreate: [],
534
- onDestroy: [],
535
- onKeyDown: [],
536
- onMonthChange: [],
537
- onOpen: [],
538
- onParseConfig: [],
539
- onReady: [],
540
- onValueUpdate: [],
541
- onYearChange: [],
542
- onPreCalendarPosition: [],
543
- plugins: [],
544
- position: "auto",
545
- positionElement: void 0,
546
- prevArrow: "<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",
547
- shorthandCurrentMonth: !1,
548
- showMonths: 1,
549
- static: !1,
550
- time_24hr: !1,
551
- weekNumbers: !1,
552
- wrap: !1
553
- }, W = {
554
- weekdays: {
555
- shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
556
- longhand: [
557
- "Sunday",
558
- "Monday",
559
- "Tuesday",
560
- "Wednesday",
561
- "Thursday",
562
- "Friday",
563
- "Saturday"
564
- ]
565
- },
566
- months: {
567
- shorthand: [
568
- "Jan",
569
- "Feb",
570
- "Mar",
571
- "Apr",
572
- "May",
573
- "Jun",
574
- "Jul",
575
- "Aug",
576
- "Sep",
577
- "Oct",
578
- "Nov",
579
- "Dec"
580
- ],
581
- longhand: [
582
- "January",
583
- "February",
584
- "March",
585
- "April",
586
- "May",
587
- "June",
588
- "July",
589
- "August",
590
- "September",
591
- "October",
592
- "November",
593
- "December"
594
- ]
595
- },
596
- daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
597
- firstDayOfWeek: 0,
598
- ordinal: function(r) {
599
- var i = r % 100;
600
- if (i > 3 && i < 21)
601
- return "th";
602
- switch (i % 10) {
603
- case 1:
604
- return "st";
605
- case 2:
606
- return "nd";
607
- case 3:
608
- return "rd";
609
- default:
610
- return "th";
611
- }
612
- },
613
- rangeSeparator: " to ",
614
- weekAbbreviation: "Wk",
615
- scrollTitle: "Scroll to increment",
616
- toggleTitle: "Click to toggle",
617
- amPM: ["AM", "PM"],
618
- yearAriaLabel: "Year",
619
- hourAriaLabel: "Hour",
620
- minuteAriaLabel: "Minute",
621
- time_24hr: !1
622
- }, Y = function(r) {
623
- return ("0" + r).slice(-2);
624
- }, N = function(r) {
625
- return r === !0 ? 1 : 0;
626
- };
627
- function Q(r, i, e) {
628
- e === void 0 && (e = !1);
629
- var D;
630
- return function() {
631
- var S = this, b = arguments;
632
- D !== null && clearTimeout(D), D = window.setTimeout(function() {
633
- D = null, e || r.apply(S, b);
634
- }, i), e && !D && r.apply(S, b);
635
- };
636
- }
637
- var X = function(r) {
638
- return r instanceof Array ? r : [r];
639
- };
640
- function R(r, i, e) {
641
- if (e === !0)
642
- return r.classList.add(i);
643
- r.classList.remove(i);
644
- }
645
- function w(r, i, e) {
646
- var D = window.document.createElement(r);
647
- return i = i || "", e = e || "", D.className = i, e !== void 0 && (D.textContent = e), D;
648
- }
649
- function z(r) {
650
- for (; r.firstChild; )
651
- r.removeChild(r.firstChild);
652
- }
653
- function ee(r, i) {
654
- if (i(r))
655
- return r;
656
- if (r.parentNode)
657
- return ee(r.parentNode, i);
658
- }
659
- function ie(r, i) {
660
- var e = w("div", "numInputWrapper"), D = w("input", "numInput " + r), S = w("span", "arrowUp"), b = w("span", "arrowDown");
661
- if (navigator.userAgent.indexOf("MSIE 9.0") === -1 ? D.type = "number" : (D.type = "text", D.pattern = "\\d*"), i !== void 0)
662
- for (var o in i)
663
- D.setAttribute(o, i[o]);
664
- return e.appendChild(D), e.appendChild(S), e.appendChild(b), e;
665
- }
666
- function L(r) {
667
- if (typeof r.composedPath == "function") {
668
- var i = r.composedPath();
669
- return i[0];
670
- }
671
- return r.target;
672
- }
673
- var q = function() {
674
- }, U = function(r, i, e) {
675
- return e.months[i ? "shorthand" : "longhand"][r];
676
- }, oe = {
677
- D: q,
678
- F: function(r, i, e) {
679
- r.setMonth(e.months.longhand.indexOf(i));
680
- },
681
- G: function(r, i) {
682
- r.setHours(parseFloat(i));
683
- },
684
- H: function(r, i) {
685
- r.setHours(parseFloat(i));
686
- },
687
- J: function(r, i) {
688
- r.setDate(parseFloat(i));
689
- },
690
- K: function(r, i, e) {
691
- r.setHours(r.getHours() % 12 + 12 * N(new RegExp(e.amPM[1], "i").test(i)));
692
- },
693
- M: function(r, i, e) {
694
- r.setMonth(e.months.shorthand.indexOf(i));
695
- },
696
- S: function(r, i) {
697
- r.setSeconds(parseFloat(i));
698
- },
699
- U: function(r, i) {
700
- return new Date(parseFloat(i) * 1e3);
701
- },
702
- W: function(r, i, e) {
703
- var D = parseInt(i), S = new Date(r.getFullYear(), 0, 2 + (D - 1) * 7, 0, 0, 0, 0);
704
- return S.setDate(S.getDate() - S.getDay() + e.firstDayOfWeek), S;
705
- },
706
- Y: function(r, i) {
707
- r.setFullYear(parseFloat(i));
708
- },
709
- Z: function(r, i) {
710
- return new Date(i);
711
- },
712
- d: function(r, i) {
713
- r.setDate(parseFloat(i));
714
- },
715
- h: function(r, i) {
716
- r.setHours(parseFloat(i));
717
- },
718
- i: function(r, i) {
719
- r.setMinutes(parseFloat(i));
720
- },
721
- j: function(r, i) {
722
- r.setDate(parseFloat(i));
723
- },
724
- l: q,
725
- m: function(r, i) {
726
- r.setMonth(parseFloat(i) - 1);
727
- },
728
- n: function(r, i) {
729
- r.setMonth(parseFloat(i) - 1);
730
- },
731
- s: function(r, i) {
732
- r.setSeconds(parseFloat(i));
733
- },
734
- u: function(r, i) {
735
- return new Date(parseFloat(i));
736
- },
737
- w: q,
738
- y: function(r, i) {
739
- r.setFullYear(2e3 + parseFloat(i));
740
- }
741
- }, ue = {
742
- D: "(\\w+)",
743
- F: "(\\w+)",
744
- G: "(\\d\\d|\\d)",
745
- H: "(\\d\\d|\\d)",
746
- J: "(\\d\\d|\\d)\\w+",
747
- K: "",
748
- M: "(\\w+)",
749
- S: "(\\d\\d|\\d)",
750
- U: "(.+)",
751
- W: "(\\d\\d|\\d)",
752
- Y: "(\\d{4})",
753
- Z: "(.+)",
754
- d: "(\\d\\d|\\d)",
755
- h: "(\\d\\d|\\d)",
756
- i: "(\\d\\d|\\d)",
757
- j: "(\\d\\d|\\d)",
758
- l: "(\\w+)",
759
- m: "(\\d\\d|\\d)",
760
- n: "(\\d\\d|\\d)",
761
- s: "(\\d\\d|\\d)",
762
- u: "(.+)",
763
- w: "(\\d\\d|\\d)",
764
- y: "(\\d{2})"
765
- }, ae = {
766
- // get the date in UTC
767
- Z: function(r) {
768
- return r.toISOString();
769
- },
770
- // weekday name, short, e.g. Thu
771
- D: function(r, i, e) {
772
- return i.weekdays.shorthand[ae.w(r, i, e)];
773
- },
774
- // full month name e.g. January
775
- F: function(r, i, e) {
776
- return U(ae.n(r, i, e) - 1, !1, i);
777
- },
778
- // padded hour 1-12
779
- G: function(r, i, e) {
780
- return Y(ae.h(r, i, e));
781
- },
782
- // hours with leading zero e.g. 03
783
- H: function(r) {
784
- return Y(r.getHours());
785
- },
786
- // day (1-30) with ordinal suffix e.g. 1st, 2nd
787
- J: function(r, i) {
788
- return i.ordinal !== void 0 ? r.getDate() + i.ordinal(r.getDate()) : r.getDate();
789
- },
790
- // AM/PM
791
- K: function(r, i) {
792
- return i.amPM[N(r.getHours() > 11)];
793
- },
794
- // shorthand month e.g. Jan, Sep, Oct, etc
795
- M: function(r, i) {
796
- return U(r.getMonth(), !0, i);
797
- },
798
- // seconds 00-59
799
- S: function(r) {
800
- return Y(r.getSeconds());
801
- },
802
- // unix timestamp
803
- U: function(r) {
804
- return r.getTime() / 1e3;
805
- },
806
- W: function(r, i, e) {
807
- return e.getWeek(r);
808
- },
809
- // full year e.g. 2016
810
- Y: function(r) {
811
- return r.getFullYear();
812
- },
813
- // day in month, padded (01-30)
814
- d: function(r) {
815
- return Y(r.getDate());
816
- },
817
- // hour from 1-12 (am/pm)
818
- h: function(r) {
819
- return r.getHours() % 12 ? r.getHours() % 12 : 12;
820
- },
821
- // minutes, padded with leading zero e.g. 09
822
- i: function(r) {
823
- return Y(r.getMinutes());
824
- },
825
- // day in month (1-30)
826
- j: function(r) {
827
- return r.getDate();
828
- },
829
- // weekday name, full, e.g. Thursday
830
- l: function(r, i) {
831
- return i.weekdays.longhand[r.getDay()];
832
- },
833
- // padded month number (01-12)
834
- m: function(r) {
835
- return Y(r.getMonth() + 1);
836
- },
837
- // the month number (1-12)
838
- n: function(r) {
839
- return r.getMonth() + 1;
840
- },
841
- // seconds 0-59
842
- s: function(r) {
843
- return r.getSeconds();
844
- },
845
- // Unix Milliseconds
846
- u: function(r) {
847
- return r.getTime();
848
- },
849
- // number of the day of the week
850
- w: function(r) {
851
- return r.getDay();
852
- },
853
- // last two digits of year e.g. 16 for 2016
854
- y: function(r) {
855
- return String(r.getFullYear()).substring(2);
856
- }
857
- }, ne = function(r) {
858
- var i = r.config, e = i === void 0 ? H : i, D = r.l10n, S = D === void 0 ? W : D;
859
- return function(b, o, f) {
860
- var y = f || S;
861
- return e.formatDate !== void 0 ? e.formatDate(b, o, y) : o.split("").map(function(M, p, k) {
862
- return ae[M] && k[p - 1] !== "\\" ? ae[M](b, y, e) : M !== "\\" ? M : "";
863
- }).join("");
864
- };
865
- }, le = function(r) {
866
- var i = r.config, e = i === void 0 ? H : i, D = r.l10n, S = D === void 0 ? W : D;
867
- return function(b, o, f, y) {
868
- if (!(b !== 0 && !b)) {
869
- var M = y || S, p, k = b;
870
- if (b instanceof Date)
871
- p = new Date(b.getTime());
872
- else if (typeof b != "string" && b.toFixed !== void 0)
873
- p = new Date(b);
874
- else if (typeof b == "string") {
875
- var T = o || (e || H).dateFormat, O = String(b).trim();
876
- if (O === "today")
877
- p = /* @__PURE__ */ new Date(), f = !0;
878
- else if (/Z$/.test(O) || /GMT$/.test(O))
879
- p = new Date(b);
880
- else if (e && e.parseDate)
881
- p = e.parseDate(b, T);
882
- else {
883
- p = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0));
884
- for (var A = void 0, v = [], _ = 0, G = 0, V = ""; _ < T.length; _++) {
885
- var Z = T[_], Pe = Z === "\\", De = T[_ - 1] === "\\" || Pe;
886
- if (ue[Z] && !De) {
887
- V += ue[Z];
888
- var ke = new RegExp(V).exec(b);
889
- ke && (A = !0) && v[Z !== "Y" ? "push" : "unshift"]({
890
- fn: oe[Z],
891
- val: ke[++G]
892
- });
893
- } else Pe || (V += ".");
894
- v.forEach(function(ve) {
895
- var be = ve.fn, ye = ve.val;
896
- return p = be(p, ye, M) || p;
897
- });
898
- }
899
- p = A ? p : void 0;
900
- }
901
- }
902
- if (!(p instanceof Date && !isNaN(p.getTime()))) {
903
- e.errorHandler(new Error("Invalid date provided: " + k));
904
- return;
905
- }
906
- return f === !0 && p.setHours(0, 0, 0, 0), p;
907
- }
908
- };
909
- };
910
- function K(r, i, e) {
911
- return e === void 0 && (e = !0), e !== !1 ? new Date(r.getTime()).setHours(0, 0, 0, 0) - new Date(i.getTime()).setHours(0, 0, 0, 0) : r.getTime() - i.getTime();
912
- }
913
- var se = function(r, i, e) {
914
- return r > Math.min(i, e) && r < Math.max(i, e);
915
- }, me = {
916
- DAY: 864e5
917
- };
918
- typeof Object.assign != "function" && (Object.assign = function(r) {
919
- for (var i = [], e = 1; e < arguments.length; e++)
920
- i[e - 1] = arguments[e];
921
- if (!r)
922
- throw TypeError("Cannot convert undefined or null to object");
923
- for (var D = function(f) {
924
- f && Object.keys(f).forEach(function(y) {
925
- return r[y] = f[y];
926
- });
927
- }, S = 0, b = i; S < b.length; S++) {
928
- var o = b[S];
929
- D(o);
930
- }
931
- return r;
932
- });
933
- var s = 300;
934
- function g(r, i) {
935
- var e = {
936
- config: x({}, H, d.defaultConfig),
937
- l10n: W
938
- };
939
- e.parseDate = le({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = v, e._setHoursFromDate = k, e._positionCalendar = xe, e.changeMonth = Be, e.changeYear = Se, e.clear = An, e.close = jn, e._createElement = w, e.destroy = Fn, e.isEnabled = he, e.jumpToDate = Z, e.open = Wn, e.redraw = sn, e.set = Rn, e.setDate = Ln, e.toggle = Kn;
940
- function D() {
941
- e.utils = {
942
- getDaysInMonth: function(n, t) {
943
- return n === void 0 && (n = e.currentMonth), t === void 0 && (t = e.currentYear), n === 1 && (t % 4 === 0 && t % 100 !== 0 || t % 400 === 0) ? 29 : e.l10n.daysInMonth[n];
944
- }
945
- };
946
- }
947
- function S() {
948
- e.element = e.input = r, e.isOpen = !1, Hn(), ln(), qn(), Bn(), D(), e.isMobile || ke(), V(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && k(e.config.noCalendar ? e.latestSelectedDateObj || e.config.minDate : void 0), ce(!1)), o(), e.showTimeInput = e.selectedDates.length > 0 || e.config.noCalendar;
949
- var n = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
950
- !e.isMobile && n && xe(), B("onReady");
951
- }
952
- function b(n) {
953
- return n.bind(e);
954
- }
955
- function o() {
956
- var n = e.config;
957
- n.weekNumbers === !1 && n.showMonths === 1 || n.noCalendar !== !0 && window.requestAnimationFrame(function() {
958
- if (e.calendarContainer !== void 0 && (e.calendarContainer.style.visibility = "hidden", e.calendarContainer.style.display = "block"), e.daysContainer !== void 0) {
959
- var t = (e.days.offsetWidth + 1) * n.showMonths;
960
- e.daysContainer.style.width = t + "px", e.calendarContainer.style.width = t + (e.weekWrapper !== void 0 ? e.weekWrapper.offsetWidth : 0) + "px", e.calendarContainer.style.removeProperty("visibility"), e.calendarContainer.style.removeProperty("display");
961
- }
962
- });
963
- }
964
- function f(n) {
965
- e.selectedDates.length === 0 && un(), n !== void 0 && n.type !== "blur" && zn(n);
966
- var t = e._input.value;
967
- p(), ce(), e._input.value !== t && e._debouncedChange();
968
- }
969
- function y(n, t) {
970
- return n % 12 + 12 * N(t === e.l10n.amPM[1]);
971
- }
972
- function M(n) {
973
- switch (n % 24) {
974
- case 0:
975
- case 12:
976
- return 12;
977
- default:
978
- return n % 12;
979
- }
980
- }
981
- function p() {
982
- if (!(e.hourElement === void 0 || e.minuteElement === void 0)) {
983
- var n = (parseInt(e.hourElement.value.slice(-2), 10) || 0) % 24, t = (parseInt(e.minuteElement.value, 10) || 0) % 60, a = e.secondElement !== void 0 ? (parseInt(e.secondElement.value, 10) || 0) % 60 : 0;
984
- e.amPM !== void 0 && (n = y(n, e.amPM.textContent));
985
- var u = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && K(e.latestSelectedDateObj, e.config.minDate, !0) === 0, c = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && K(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
986
- if (c) {
987
- var l = e.config.maxTime !== void 0 ? e.config.maxTime : e.config.maxDate;
988
- n = Math.min(n, l.getHours()), n === l.getHours() && (t = Math.min(t, l.getMinutes())), t === l.getMinutes() && (a = Math.min(a, l.getSeconds()));
989
- }
990
- if (u) {
991
- var m = e.config.minTime !== void 0 ? e.config.minTime : e.config.minDate;
992
- n = Math.max(n, m.getHours()), n === m.getHours() && (t = Math.max(t, m.getMinutes())), t === m.getMinutes() && (a = Math.max(a, m.getSeconds()));
993
- }
994
- O(n, t, a);
995
- }
996
- }
997
- function k(n) {
998
- var t = n || e.latestSelectedDateObj;
999
- t && O(t.getHours(), t.getMinutes(), t.getSeconds());
1000
- }
1001
- function T() {
1002
- var n = e.config.defaultHour, t = e.config.defaultMinute, a = e.config.defaultSeconds;
1003
- if (e.config.minDate !== void 0) {
1004
- var u = e.config.minDate.getHours(), c = e.config.minDate.getMinutes();
1005
- n = Math.max(n, u), n === u && (t = Math.max(c, t)), n === u && t === c && (a = e.config.minDate.getSeconds());
1006
- }
1007
- if (e.config.maxDate !== void 0) {
1008
- var l = e.config.maxDate.getHours(), m = e.config.maxDate.getMinutes();
1009
- n = Math.min(n, l), n === l && (t = Math.min(m, t)), n === l && t === m && (a = e.config.maxDate.getSeconds());
1010
- }
1011
- O(n, t, a);
1012
- }
1013
- function O(n, t, a) {
1014
- e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(n % 24, t, a || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = Y(e.config.time_24hr ? n : (12 + n) % 12 + 12 * N(n % 12 === 0)), e.minuteElement.value = Y(t), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[N(n >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = Y(a)));
1015
- }
1016
- function A(n) {
1017
- var t = parseInt(n.target.value) + (n.delta || 0);
1018
- (t / 1e3 > 1 || n.key === "Enter" && !/[^\d]/.test(t.toString())) && Se(t);
1019
- }
1020
- function v(n, t, a, u) {
1021
- if (t instanceof Array)
1022
- return t.forEach(function(c) {
1023
- return v(n, c, a, u);
1024
- });
1025
- if (n instanceof Array)
1026
- return n.forEach(function(c) {
1027
- return v(c, t, a, u);
1028
- });
1029
- n.addEventListener(t, a, u), e._handlers.push({
1030
- element: n,
1031
- event: t,
1032
- handler: a,
1033
- options: u
1034
- });
1035
- }
1036
- function _(n) {
1037
- return function(t) {
1038
- t.which === 1 && n(t);
1039
- };
1040
- }
1041
- function G() {
1042
- B("onChange");
1043
- }
1044
- function V() {
1045
- if (e.config.wrap && ["open", "close", "toggle", "clear"].forEach(function(a) {
1046
- Array.prototype.forEach.call(e.element.querySelectorAll("[data-" + a + "]"), function(u) {
1047
- return v(u, "click", e[a]);
1048
- });
1049
- }), e.isMobile) {
1050
- Un();
1051
- return;
1052
- }
1053
- var n = Q(Nn, 50);
1054
- if (e._debouncedChange = Q(G, s), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && v(e.daysContainer, "mouseover", function(a) {
1055
- e.config.mode === "range" && Ue(a.target);
1056
- }), v(window.document.body, "keydown", Yn), !e.config.inline && !e.config.static && v(window, "resize", n), window.ontouchstart !== void 0 ? v(window.document, "touchstart", qe) : v(window.document, "mousedown", _(qe)), v(window.document, "focus", qe, { capture: !0 }), e.config.clickOpens === !0 && (v(e._input, "focus", e.open), v(e._input, "mousedown", _(e.open))), e.daysContainer !== void 0 && (v(e.monthNav, "mousedown", _(Jn)), v(e.monthNav, ["keyup", "increment"], A), v(e.daysContainer, "mousedown", _(cn))), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
1057
- var t = function(a) {
1058
- return a.target.select();
1059
- };
1060
- v(e.timeContainer, ["increment"], f), v(e.timeContainer, "blur", f, { capture: !0 }), v(e.timeContainer, "mousedown", _(Pe)), v([e.hourElement, e.minuteElement], ["focus", "click"], t), e.secondElement !== void 0 && v(e.secondElement, "focus", function() {
1061
- return e.secondElement && e.secondElement.select();
1062
- }), e.amPM !== void 0 && v(e.amPM, "mousedown", _(function(a) {
1063
- f(a), G();
1064
- }));
1065
- }
1066
- }
1067
- function Z(n, t) {
1068
- var a = n !== void 0 ? e.parseDate(n) : e.latestSelectedDateObj || (e.config.minDate && e.config.minDate > e.now ? e.config.minDate : e.config.maxDate && e.config.maxDate < e.now ? e.config.maxDate : e.now), u = e.currentYear, c = e.currentMonth;
1069
- try {
1070
- a !== void 0 && (e.currentYear = a.getFullYear(), e.currentMonth = a.getMonth());
1071
- } catch (l) {
1072
- l.message = "Invalid date supplied: " + a, e.config.errorHandler(l);
1073
- }
1074
- t && e.currentYear !== u && (B("onYearChange"), Ce()), t && (e.currentYear !== u || e.currentMonth !== c) && B("onMonthChange"), e.redraw();
1075
- }
1076
- function Pe(n) {
1077
- ~n.target.className.indexOf("arrow") && De(n, n.target.classList.contains("arrowUp") ? 1 : -1);
1078
- }
1079
- function De(n, t, a) {
1080
- var u = n && n.target, c = a || u && u.parentNode && u.parentNode.firstChild, l = Ve("increment");
1081
- l.delta = t, c && c.dispatchEvent(l);
1082
- }
1083
- function ke() {
1084
- var n = window.document.createDocumentFragment();
1085
- if (e.calendarContainer = w("div", "flatpickr-calendar"), e.calendarContainer.tabIndex = -1, !e.config.noCalendar) {
1086
- if (n.appendChild(kn()), e.innerContainer = w("div", "flatpickr-innerContainer"), e.config.weekNumbers) {
1087
- var t = Sn(), a = t.weekWrapper, u = t.weekNumbers;
1088
- e.innerContainer.appendChild(a), e.weekNumbers = u, e.weekWrapper = a;
1089
- }
1090
- e.rContainer = w("div", "flatpickr-rContainer"), e.rContainer.appendChild(an()), e.daysContainer || (e.daysContainer = w("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), Ie(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), n.appendChild(e.innerContainer);
1091
- }
1092
- e.config.enableTime && n.appendChild(In()), R(e.calendarContainer, "rangeMode", e.config.mode === "range"), R(e.calendarContainer, "animate", e.config.animate === !0), R(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(n);
1093
- var c = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
1094
- if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!c && e.element.parentNode ? e.element.parentNode.insertBefore(e.calendarContainer, e._input.nextSibling) : e.config.appendTo !== void 0 && e.config.appendTo.appendChild(e.calendarContainer)), e.config.static)) {
1095
- var l = w("div", "flatpickr-wrapper");
1096
- e.element.parentNode && e.element.parentNode.insertBefore(l, e.element), l.appendChild(e.element), e.altInput && l.appendChild(e.altInput), l.appendChild(e.calendarContainer);
1097
- }
1098
- !e.config.static && !e.config.inline && (e.config.appendTo !== void 0 ? e.config.appendTo : window.document.body).appendChild(e.calendarContainer);
1099
- }
1100
- function ve(n, t, a, u) {
1101
- var c = he(t, !0), l = w("span", "flatpickr-day " + n, t.getDate().toString());
1102
- return l.dateObj = t, l.$i = u, l.setAttribute("aria-label", e.formatDate(t, e.config.ariaDateFormat)), n.indexOf("hidden") === -1 && K(t, e.now) === 0 && (e.todayDateElem = l, l.classList.add("today"), l.setAttribute("aria-current", "date")), c ? (l.tabIndex = -1, Je(t) && (l.classList.add("selected"), e.selectedDateElem = l, e.config.mode === "range" && (R(l, "startRange", e.selectedDates[0] && K(t, e.selectedDates[0], !0) === 0), R(l, "endRange", e.selectedDates[1] && K(t, e.selectedDates[1], !0) === 0), n === "nextMonthDay" && l.classList.add("inRange")))) : l.classList.add("flatpickr-disabled"), e.config.mode === "range" && Vn(t) && !Je(t) && l.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && n !== "prevMonthDay" && a % 7 === 1 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(t) + "</span>"), B("onDayCreate", l), l;
1103
- }
1104
- function be(n) {
1105
- n.focus(), e.config.mode === "range" && Ue(n);
1106
- }
1107
- function ye(n) {
1108
- for (var t = n > 0 ? 0 : e.config.showMonths - 1, a = n > 0 ? e.config.showMonths : -1, u = t; u != a; u += n)
1109
- for (var c = e.daysContainer.children[u], l = n > 0 ? 0 : c.children.length - 1, m = n > 0 ? c.children.length : -1, C = l; C != m; C += n) {
1110
- var E = c.children[C];
1111
- if (E.className.indexOf("hidden") === -1 && he(E.dateObj))
1112
- return E;
1113
- }
1114
- }
1115
- function On(n, t) {
1116
- for (var a = n.className.indexOf("Month") === -1 ? n.dateObj.getMonth() : e.currentMonth, u = t > 0 ? e.config.showMonths : -1, c = t > 0 ? 1 : -1, l = a - e.currentMonth; l != u; l += c)
1117
- for (var m = e.daysContainer.children[l], C = a - e.currentMonth === l ? n.$i + t : t < 0 ? m.children.length - 1 : 0, E = m.children.length, P = C; P >= 0 && P < E && P != (t > 0 ? E : -1); P += c) {
1118
- var I = m.children[P];
1119
- if (I.className.indexOf("hidden") === -1 && he(I.dateObj) && Math.abs(n.$i - P) >= Math.abs(t))
1120
- return be(I);
1121
- }
1122
- e.changeMonth(c), we(ye(c), 0);
1123
- }
1124
- function we(n, t) {
1125
- var a = Ae(document.activeElement || document.body), u = n !== void 0 ? n : a ? document.activeElement : e.selectedDateElem !== void 0 && Ae(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && Ae(e.todayDateElem) ? e.todayDateElem : ye(t > 0 ? 1 : -1);
1126
- if (u === void 0)
1127
- return e._input.focus();
1128
- if (!a)
1129
- return be(u);
1130
- On(u, t);
1131
- }
1132
- function _n(n, t) {
1133
- for (var a = (new Date(n, t, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, u = e.utils.getDaysInMonth((t - 1 + 12) % 12), c = e.utils.getDaysInMonth(t), l = window.document.createDocumentFragment(), m = e.config.showMonths > 1, C = m ? "prevMonthDay hidden" : "prevMonthDay", E = m ? "nextMonthDay hidden" : "nextMonthDay", P = u + 1 - a, I = 0; P <= u; P++, I++)
1134
- l.appendChild(ve(C, new Date(n, t - 1, P), P, I));
1135
- for (P = 1; P <= c; P++, I++)
1136
- l.appendChild(ve("", new Date(n, t, P), P, I));
1137
- for (var te = c + 1; te <= 42 - a && (e.config.showMonths === 1 || I % 7 !== 0); te++, I++)
1138
- l.appendChild(ve(E, new Date(n, t + 1, te % c), te, I));
1139
- var de = w("div", "dayContainer");
1140
- return de.appendChild(l), de;
1141
- }
1142
- function Ie() {
1143
- if (e.daysContainer !== void 0) {
1144
- z(e.daysContainer), e.weekNumbers && z(e.weekNumbers);
1145
- for (var n = document.createDocumentFragment(), t = 0; t < e.config.showMonths; t++) {
1146
- var a = new Date(e.currentYear, e.currentMonth, 1);
1147
- a.setMonth(e.currentMonth + t), n.appendChild(_n(a.getFullYear(), a.getMonth()));
1148
- }
1149
- e.daysContainer.appendChild(n), e.days = e.daysContainer.firstChild, e.config.mode === "range" && e.selectedDates.length === 1 && Ue();
1150
- }
1151
- }
1152
- function Ce() {
1153
- if (!(e.config.showMonths > 1 || e.config.monthSelectorType !== "dropdown")) {
1154
- var n = function(u) {
1155
- return e.config.minDate !== void 0 && e.currentYear === e.config.minDate.getFullYear() && u < e.config.minDate.getMonth() ? !1 : !(e.config.maxDate !== void 0 && e.currentYear === e.config.maxDate.getFullYear() && u > e.config.maxDate.getMonth());
1156
- };
1157
- e.monthsDropdownContainer.tabIndex = -1, e.monthsDropdownContainer.innerHTML = "";
1158
- for (var t = 0; t < 12; t++)
1159
- if (n(t)) {
1160
- var a = w("option", "flatpickr-monthDropdown-month");
1161
- a.value = new Date(e.currentYear, t).getMonth().toString(), a.textContent = U(t, e.config.shorthandCurrentMonth, e.l10n), a.tabIndex = -1, e.currentMonth === t && (a.selected = !0), e.monthsDropdownContainer.appendChild(a);
1162
- }
1163
- }
1164
- }
1165
- function Pn() {
1166
- var n = w("div", "flatpickr-month"), t = window.document.createDocumentFragment(), a;
1167
- e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? a = w("span", "cur-month") : (e.monthsDropdownContainer = w("select", "flatpickr-monthDropdown-months"), v(e.monthsDropdownContainer, "change", function(m) {
1168
- var C = m.target, E = parseInt(C.value, 10);
1169
- e.changeMonth(E - e.currentMonth), B("onMonthChange");
1170
- }), Ce(), a = e.monthsDropdownContainer);
1171
- var u = ie("cur-year", { tabindex: "-1" }), c = u.getElementsByTagName("input")[0];
1172
- c.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && c.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (c.setAttribute("max", e.config.maxDate.getFullYear().toString()), c.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
1173
- var l = w("div", "flatpickr-current-month");
1174
- return l.appendChild(a), l.appendChild(u), t.appendChild(l), n.appendChild(t), {
1175
- container: n,
1176
- yearElement: c,
1177
- monthElement: a
1178
- };
1179
- }
1180
- function rn() {
1181
- z(e.monthNav), e.monthNav.appendChild(e.prevMonthNav), e.config.showMonths && (e.yearElements = [], e.monthElements = []);
1182
- for (var n = e.config.showMonths; n--; ) {
1183
- var t = Pn();
1184
- e.yearElements.push(t.yearElement), e.monthElements.push(t.monthElement), e.monthNav.appendChild(t.container);
1185
- }
1186
- e.monthNav.appendChild(e.nextMonthNav);
1187
- }
1188
- function kn() {
1189
- return e.monthNav = w("div", "flatpickr-months"), e.yearElements = [], e.monthElements = [], e.prevMonthNav = w("span", "flatpickr-prev-month"), e.prevMonthNav.innerHTML = e.config.prevArrow, e.nextMonthNav = w("span", "flatpickr-next-month"), e.nextMonthNav.innerHTML = e.config.nextArrow, rn(), Object.defineProperty(e, "_hidePrevMonthArrow", {
1190
- get: function() {
1191
- return e.__hidePrevMonthArrow;
1192
- },
1193
- set: function(n) {
1194
- e.__hidePrevMonthArrow !== n && (R(e.prevMonthNav, "flatpickr-disabled", n), e.__hidePrevMonthArrow = n);
1195
- }
1196
- }), Object.defineProperty(e, "_hideNextMonthArrow", {
1197
- get: function() {
1198
- return e.__hideNextMonthArrow;
1199
- },
1200
- set: function(n) {
1201
- e.__hideNextMonthArrow !== n && (R(e.nextMonthNav, "flatpickr-disabled", n), e.__hideNextMonthArrow = n);
1202
- }
1203
- }), e.currentYearElement = e.yearElements[0], Fe(), e.monthNav;
1204
- }
1205
- function In() {
1206
- e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar"), e.timeContainer = w("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
1207
- var n = w("span", "flatpickr-time-separator", ":"), t = ie("flatpickr-hour", {
1208
- "aria-label": e.l10n.hourAriaLabel
1209
- });
1210
- e.hourElement = t.getElementsByTagName("input")[0];
1211
- var a = ie("flatpickr-minute", {
1212
- "aria-label": e.l10n.minuteAriaLabel
1213
- });
1214
- if (e.minuteElement = a.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Y(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? e.config.defaultHour : M(e.config.defaultHour)), e.minuteElement.value = Y(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : e.config.defaultMinute), e.hourElement.setAttribute("step", e.config.hourIncrement.toString()), e.minuteElement.setAttribute("step", e.config.minuteIncrement.toString()), e.hourElement.setAttribute("min", e.config.time_24hr ? "0" : "1"), e.hourElement.setAttribute("max", e.config.time_24hr ? "23" : "12"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.timeContainer.appendChild(t), e.timeContainer.appendChild(n), e.timeContainer.appendChild(a), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
1215
- e.timeContainer.classList.add("hasSeconds");
1216
- var u = ie("flatpickr-second");
1217
- e.secondElement = u.getElementsByTagName("input")[0], e.secondElement.value = Y(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : e.config.defaultSeconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.timeContainer.appendChild(w("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(u);
1218
- }
1219
- return e.config.time_24hr || (e.amPM = w("span", "flatpickr-am-pm", e.l10n.amPM[N((e.latestSelectedDateObj ? e.hourElement.value : e.config.defaultHour) > 11)]), e.amPM.title = e.l10n.toggleTitle, e.amPM.tabIndex = -1, e.timeContainer.appendChild(e.amPM)), e.timeContainer;
1220
- }
1221
- function an() {
1222
- e.weekdayContainer ? z(e.weekdayContainer) : e.weekdayContainer = w("div", "flatpickr-weekdays");
1223
- for (var n = e.config.showMonths; n--; ) {
1224
- var t = w("div", "flatpickr-weekdaycontainer");
1225
- e.weekdayContainer.appendChild(t);
1226
- }
1227
- return on(), e.weekdayContainer;
1228
- }
1229
- function on() {
1230
- var n = e.l10n.firstDayOfWeek, t = e.l10n.weekdays.shorthand.slice();
1231
- n > 0 && n < t.length && (t = t.splice(n, t.length).concat(t.splice(0, n)));
1232
- for (var a = e.config.showMonths; a--; )
1233
- e.weekdayContainer.children[a].innerHTML = `
1234
- <span class='flatpickr-weekday'>
1235
- ` + t.join("</span><span class='flatpickr-weekday'>") + `
1236
- </span>
1237
- `;
1238
- }
1239
- function Sn() {
1240
- e.calendarContainer.classList.add("hasWeeks");
1241
- var n = w("div", "flatpickr-weekwrapper");
1242
- n.appendChild(w("span", "flatpickr-weekday", e.l10n.weekAbbreviation));
1243
- var t = w("div", "flatpickr-weeks");
1244
- return n.appendChild(t), {
1245
- weekWrapper: n,
1246
- weekNumbers: t
1247
- };
1248
- }
1249
- function Be(n, t) {
1250
- t === void 0 && (t = !0);
1251
- var a = t ? n : n - e.currentMonth;
1252
- a < 0 && e._hidePrevMonthArrow === !0 || a > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += a, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, B("onYearChange"), Ce()), Ie(), B("onMonthChange"), Fe());
1253
- }
1254
- function An(n, t) {
1255
- n === void 0 && (n = !0), t === void 0 && (t = !0), e.input.value = "", e.altInput !== void 0 && (e.altInput.value = ""), e.mobileInput !== void 0 && (e.mobileInput.value = ""), e.selectedDates = [], e.latestSelectedDateObj = void 0, t === !0 && (e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth()), e.showTimeInput = !1, e.config.enableTime === !0 && T(), e.redraw(), n && B("onChange");
1256
- }
1257
- function jn() {
1258
- e.isOpen = !1, e.isMobile || (e.calendarContainer !== void 0 && e.calendarContainer.classList.remove("open"), e._input !== void 0 && e._input.classList.remove("active")), B("onClose");
1259
- }
1260
- function Fn() {
1261
- e.config !== void 0 && B("onDestroy");
1262
- for (var n = e._handlers.length; n--; ) {
1263
- var t = e._handlers[n];
1264
- t.element.removeEventListener(t.event, t.handler, t.options);
1265
- }
1266
- if (e._handlers = [], e.mobileInput)
1267
- e.mobileInput.parentNode && e.mobileInput.parentNode.removeChild(e.mobileInput), e.mobileInput = void 0;
1268
- else if (e.calendarContainer && e.calendarContainer.parentNode)
1269
- if (e.config.static && e.calendarContainer.parentNode) {
1270
- var a = e.calendarContainer.parentNode;
1271
- if (a.lastChild && a.removeChild(a.lastChild), a.parentNode) {
1272
- for (; a.firstChild; )
1273
- a.parentNode.insertBefore(a.firstChild, a);
1274
- a.parentNode.removeChild(a);
1275
- }
1276
- } else
1277
- e.calendarContainer.parentNode.removeChild(e.calendarContainer);
1278
- e.altInput && (e.input.type = "text", e.altInput.parentNode && e.altInput.parentNode.removeChild(e.altInput), delete e.altInput), e.input && (e.input.type = e.input._type, e.input.classList.remove("flatpickr-input"), e.input.removeAttribute("readonly"), e.input.value = ""), [
1279
- "_showTimeInput",
1280
- "latestSelectedDateObj",
1281
- "_hideNextMonthArrow",
1282
- "_hidePrevMonthArrow",
1283
- "__hideNextMonthArrow",
1284
- "__hidePrevMonthArrow",
1285
- "isMobile",
1286
- "isOpen",
1287
- "selectedDateElem",
1288
- "minDateHasTime",
1289
- "maxDateHasTime",
1290
- "days",
1291
- "daysContainer",
1292
- "_input",
1293
- "_positionElement",
1294
- "innerContainer",
1295
- "rContainer",
1296
- "monthNav",
1297
- "todayDateElem",
1298
- "calendarContainer",
1299
- "weekdayContainer",
1300
- "prevMonthNav",
1301
- "nextMonthNav",
1302
- "monthsDropdownContainer",
1303
- "currentMonthElement",
1304
- "currentYearElement",
1305
- "navigationCurrentMonth",
1306
- "selectedDateElem",
1307
- "config"
1308
- ].forEach(function(u) {
1309
- try {
1310
- delete e[u];
1311
- } catch {
1312
- }
1313
- });
1314
- }
1315
- function Me(n) {
1316
- return e.config.appendTo && e.config.appendTo.contains(n) ? !0 : e.calendarContainer.contains(n);
1317
- }
1318
- function qe(n) {
1319
- if (e.isOpen && !e.config.inline) {
1320
- var t = L(n), a = Me(t), u = t === e.input || t === e.altInput || e.element.contains(t) || // web components
1321
- // e.path is not present in all browsers. circumventing typechecks
1322
- n.path && n.path.indexOf && (~n.path.indexOf(e.input) || ~n.path.indexOf(e.altInput)), c = n.type === "blur" ? u && n.relatedTarget && !Me(n.relatedTarget) : !u && !a && !Me(n.relatedTarget), l = !e.config.ignoredFocusElements.some(function(m) {
1323
- return m.contains(t);
1324
- });
1325
- c && l && (e.close(), e.config.mode === "range" && e.selectedDates.length === 1 && (e.clear(!1), e.redraw()));
1326
- }
1327
- }
1328
- function Se(n) {
1329
- if (!(!n || e.config.minDate && n < e.config.minDate.getFullYear() || e.config.maxDate && n > e.config.maxDate.getFullYear())) {
1330
- var t = n, a = e.currentYear !== t;
1331
- e.currentYear = t || e.currentYear, e.config.maxDate && e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth = Math.min(e.config.maxDate.getMonth(), e.currentMonth) : e.config.minDate && e.currentYear === e.config.minDate.getFullYear() && (e.currentMonth = Math.max(e.config.minDate.getMonth(), e.currentMonth)), a && (e.redraw(), B("onYearChange"), Ce());
1332
- }
1333
- }
1334
- function he(n, t) {
1335
- t === void 0 && (t = !0);
1336
- var a = e.parseDate(n, void 0, t);
1337
- if (e.config.minDate && a && K(a, e.config.minDate, t !== void 0 ? t : !e.minDateHasTime) < 0 || e.config.maxDate && a && K(a, e.config.maxDate, t !== void 0 ? t : !e.maxDateHasTime) > 0)
1338
- return !1;
1339
- if (e.config.enable.length === 0 && e.config.disable.length === 0)
1340
- return !0;
1341
- if (a === void 0)
1342
- return !1;
1343
- for (var u = e.config.enable.length > 0, c = u ? e.config.enable : e.config.disable, l = 0, m = void 0; l < c.length; l++) {
1344
- if (m = c[l], typeof m == "function" && m(a))
1345
- return u;
1346
- if (m instanceof Date && a !== void 0 && m.getTime() === a.getTime())
1347
- return u;
1348
- if (typeof m == "string" && a !== void 0) {
1349
- var C = e.parseDate(m, void 0, !0);
1350
- return C && C.getTime() === a.getTime() ? u : !u;
1351
- } else if (
1352
- // disabled by range
1353
- typeof m == "object" && a !== void 0 && m.from && m.to && a.getTime() >= m.from.getTime() && a.getTime() <= m.to.getTime()
1354
- )
1355
- return u;
1356
- }
1357
- return !u;
1358
- }
1359
- function Ae(n) {
1360
- return e.daysContainer !== void 0 ? n.className.indexOf("hidden") === -1 && e.daysContainer.contains(n) : !1;
1361
- }
1362
- function Yn(n) {
1363
- var t = n.target === e._input, a = e.config.allowInput, u = e.isOpen && (!a || !t), c = e.config.inline && t && !a;
1364
- if (n.keyCode === 13 && t) {
1365
- if (a)
1366
- return e.setDate(e._input.value, !0, n.target === e.altInput ? e.config.altFormat : e.config.dateFormat), n.target.blur();
1367
- e.open();
1368
- } else if (Me(n.target) || u || c) {
1369
- var l = !!e.timeContainer && e.timeContainer.contains(n.target);
1370
- switch (n.keyCode) {
1371
- case 13:
1372
- l ? (n.preventDefault(), f(), Ke()) : cn(n);
1373
- break;
1374
- case 27:
1375
- n.preventDefault(), Ke();
1376
- break;
1377
- case 8:
1378
- case 46:
1379
- t && !e.config.allowInput && (n.preventDefault(), e.clear());
1380
- break;
1381
- case 37:
1382
- case 39:
1383
- if (!l && !t) {
1384
- if (n.preventDefault(), e.daysContainer !== void 0 && (a === !1 || document.activeElement && Ae(document.activeElement))) {
1385
- var m = n.keyCode === 39 ? 1 : -1;
1386
- n.ctrlKey ? (n.stopPropagation(), Be(m), we(ye(1), 0)) : we(void 0, m);
1387
- }
1388
- } else e.hourElement && e.hourElement.focus();
1389
- break;
1390
- case 38:
1391
- case 40:
1392
- n.preventDefault();
1393
- var C = n.keyCode === 40 ? 1 : -1;
1394
- e.daysContainer && n.target.$i !== void 0 || n.target === e.input ? n.ctrlKey ? (n.stopPropagation(), Se(e.currentYear - C), we(ye(1), 0)) : l || we(void 0, C * 7) : n.target === e.currentYearElement ? Se(e.currentYear - C) : e.config.enableTime && (!l && e.hourElement && e.hourElement.focus(), f(n), e._debouncedChange());
1395
- break;
1396
- case 9:
1397
- if (l) {
1398
- var E = [
1399
- e.hourElement,
1400
- e.minuteElement,
1401
- e.secondElement,
1402
- e.amPM
1403
- ].concat(e.pluginElements).filter(function(te) {
1404
- return te;
1405
- }), P = E.indexOf(n.target);
1406
- if (P !== -1) {
1407
- var I = E[P + (n.shiftKey ? -1 : 1)];
1408
- n.preventDefault(), (I || e._input).focus();
1409
- }
1410
- } else !e.config.noCalendar && e.daysContainer && e.daysContainer.contains(n.target) && n.shiftKey && (n.preventDefault(), e._input.focus());
1411
- break;
1412
- }
1413
- }
1414
- if (e.amPM !== void 0 && n.target === e.amPM)
1415
- switch (n.key) {
1416
- case e.l10n.amPM[0].charAt(0):
1417
- case e.l10n.amPM[0].charAt(0).toLowerCase():
1418
- e.amPM.textContent = e.l10n.amPM[0], p(), ce();
1419
- break;
1420
- case e.l10n.amPM[1].charAt(0):
1421
- case e.l10n.amPM[1].charAt(0).toLowerCase():
1422
- e.amPM.textContent = e.l10n.amPM[1], p(), ce();
1423
- break;
1424
- }
1425
- (t || Me(n.target)) && B("onKeyDown", n);
1426
- }
1427
- function Ue(n) {
1428
- if (!(e.selectedDates.length !== 1 || n && (!n.classList.contains("flatpickr-day") || n.classList.contains("flatpickr-disabled")))) {
1429
- for (var t = n ? n.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), a = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), u = Math.min(t, e.selectedDates[0].getTime()), c = Math.max(t, e.selectedDates[0].getTime()), l = !1, m = 0, C = 0, E = u; E < c; E += me.DAY)
1430
- he(new Date(E), !0) || (l = l || E > u && E < c, E < a && (!m || E > m) ? m = E : E > a && (!C || E < C) && (C = E));
1431
- for (var P = 0; P < e.config.showMonths; P++)
1432
- for (var I = e.daysContainer.children[P], te = function(ze, Ye) {
1433
- var pe = I.children[ze], Ge = pe.dateObj, ge = Ge.getTime(), Ne = m > 0 && ge < m || C > 0 && ge > C;
1434
- if (Ne)
1435
- return pe.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(Ee) {
1436
- pe.classList.remove(Ee);
1437
- }), "continue";
1438
- if (l && !Ne)
1439
- return "continue";
1440
- ["startRange", "inRange", "endRange", "notAllowed"].forEach(function(Ee) {
1441
- pe.classList.remove(Ee);
1442
- }), n !== void 0 && (n.classList.add(t <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), a < t && ge === a ? pe.classList.add("startRange") : a > t && ge === a && pe.classList.add("endRange"), ge >= m && (C === 0 || ge <= C) && se(ge, a, t) && pe.classList.add("inRange"));
1443
- }, de = 0, Te = I.children.length; de < Te; de++)
1444
- te(de, Te);
1445
- }
1446
- }
1447
- function Nn() {
1448
- e.isOpen && !e.config.static && !e.config.inline && xe();
1449
- }
1450
- function un() {
1451
- e.setDate(e.config.minDate !== void 0 ? new Date(e.config.minDate.getTime()) : /* @__PURE__ */ new Date(), !0), T(), ce();
1452
- }
1453
- function Wn(n, t) {
1454
- if (t === void 0 && (t = e._positionElement), e.isMobile === !0) {
1455
- n && (n.preventDefault(), n.target && n.target.blur()), e.mobileInput !== void 0 && (e.mobileInput.focus(), e.mobileInput.click()), B("onOpen");
1456
- return;
1457
- }
1458
- if (!(e._input.disabled || e.config.inline)) {
1459
- var a = e.isOpen;
1460
- e.isOpen = !0, a || (e.calendarContainer.classList.add("open"), e._input.classList.add("active"), B("onOpen"), xe(t)), e.config.enableTime === !0 && e.config.noCalendar === !0 && (e.selectedDates.length === 0 && un(), e.config.allowInput === !1 && (n === void 0 || !e.timeContainer.contains(n.relatedTarget)) && setTimeout(function() {
1461
- return e.hourElement.select();
1462
- }, 50));
1463
- }
1464
- }
1465
- function fn(n) {
1466
- return function(t) {
1467
- var a = e.config["_" + n + "Date"] = e.parseDate(t, e.config.dateFormat), u = e.config["_" + (n === "min" ? "max" : "min") + "Date"];
1468
- a !== void 0 && (e[n === "min" ? "minDateHasTime" : "maxDateHasTime"] = a.getHours() > 0 || a.getMinutes() > 0 || a.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter(function(c) {
1469
- return he(c);
1470
- }), !e.selectedDates.length && n === "min" && k(a), ce()), e.daysContainer && (sn(), a !== void 0 ? e.currentYearElement[n] = a.getFullYear().toString() : e.currentYearElement.removeAttribute(n), e.currentYearElement.disabled = !!u && a !== void 0 && u.getFullYear() === a.getFullYear());
1471
- };
1472
- }
1473
- function Hn() {
1474
- var n = [
1475
- "wrap",
1476
- "weekNumbers",
1477
- "allowInput",
1478
- "clickOpens",
1479
- "time_24hr",
1480
- "enableTime",
1481
- "noCalendar",
1482
- "altInput",
1483
- "shorthandCurrentMonth",
1484
- "inline",
1485
- "static",
1486
- "enableSeconds",
1487
- "disableMobile"
1488
- ], t = x({}, i, JSON.parse(JSON.stringify(r.dataset || {}))), a = {};
1489
- e.config.parseDate = t.parseDate, e.config.formatDate = t.formatDate, Object.defineProperty(e.config, "enable", {
1490
- get: function() {
1491
- return e.config._enable;
1492
- },
1493
- set: function(I) {
1494
- e.config._enable = pn(I);
1495
- }
1496
- }), Object.defineProperty(e.config, "disable", {
1497
- get: function() {
1498
- return e.config._disable;
1499
- },
1500
- set: function(I) {
1501
- e.config._disable = pn(I);
1502
- }
1503
- });
1504
- var u = t.mode === "time";
1505
- if (!t.dateFormat && (t.enableTime || u)) {
1506
- var c = d.defaultConfig.dateFormat || H.dateFormat;
1507
- a.dateFormat = t.noCalendar || u ? "H:i" + (t.enableSeconds ? ":S" : "") : c + " H:i" + (t.enableSeconds ? ":S" : "");
1508
- }
1509
- if (t.altInput && (t.enableTime || u) && !t.altFormat) {
1510
- var l = d.defaultConfig.altFormat || H.altFormat;
1511
- a.altFormat = t.noCalendar || u ? "h:i" + (t.enableSeconds ? ":S K" : " K") : l + (" h:i" + (t.enableSeconds ? ":S" : "") + " K");
1512
- }
1513
- t.altInputClass || (e.config.altInputClass = e.input.className + " " + e.config.altInputClass), Object.defineProperty(e.config, "minDate", {
1514
- get: function() {
1515
- return e.config._minDate;
1516
- },
1517
- set: fn("min")
1518
- }), Object.defineProperty(e.config, "maxDate", {
1519
- get: function() {
1520
- return e.config._maxDate;
1521
- },
1522
- set: fn("max")
1523
- });
1524
- var m = function(I) {
1525
- return function(te) {
1526
- e.config[I === "min" ? "_minTime" : "_maxTime"] = e.parseDate(te, "H:i");
1527
- };
1528
- };
1529
- Object.defineProperty(e.config, "minTime", {
1530
- get: function() {
1531
- return e.config._minTime;
1532
- },
1533
- set: m("min")
1534
- }), Object.defineProperty(e.config, "maxTime", {
1535
- get: function() {
1536
- return e.config._maxTime;
1537
- },
1538
- set: m("max")
1539
- }), t.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, a, t);
1540
- for (var C = 0; C < n.length; C++)
1541
- e.config[n[C]] = e.config[n[C]] === !0 || e.config[n[C]] === "true";
1542
- F.filter(function(I) {
1543
- return e.config[I] !== void 0;
1544
- }).forEach(function(I) {
1545
- e.config[I] = X(e.config[I] || []).map(b);
1546
- }), e.isMobile = !e.config.disableMobile && !e.config.inline && e.config.mode === "single" && !e.config.disable.length && !e.config.enable.length && !e.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1547
- for (var C = 0; C < e.config.plugins.length; C++) {
1548
- var E = e.config.plugins[C](e) || {};
1549
- for (var P in E)
1550
- F.indexOf(P) > -1 ? e.config[P] = X(E[P]).map(b).concat(e.config[P]) : typeof t[P] > "u" && (e.config[P] = E[P]);
1551
- }
1552
- B("onParseConfig");
1553
- }
1554
- function ln() {
1555
- typeof e.config.locale != "object" && typeof d.l10ns[e.config.locale] > "u" && e.config.errorHandler(new Error("flatpickr: invalid locale " + e.config.locale)), e.l10n = x({}, d.l10ns.default, typeof e.config.locale == "object" ? e.config.locale : e.config.locale !== "default" ? d.l10ns[e.config.locale] : void 0), ue.K = "(" + e.l10n.amPM[0] + "|" + e.l10n.amPM[1] + "|" + e.l10n.amPM[0].toLowerCase() + "|" + e.l10n.amPM[1].toLowerCase() + ")";
1556
- var n = x({}, i, JSON.parse(JSON.stringify(r.dataset || {})));
1557
- n.time_24hr === void 0 && d.defaultConfig.time_24hr === void 0 && (e.config.time_24hr = e.l10n.time_24hr), e.formatDate = ne(e), e.parseDate = le({ config: e.config, l10n: e.l10n });
1558
- }
1559
- function xe(n) {
1560
- if (e.calendarContainer !== void 0) {
1561
- B("onPreCalendarPosition");
1562
- var t = n || e._positionElement, a = Array.prototype.reduce.call(e.calendarContainer.children, function($n, Zn) {
1563
- return $n + Zn.offsetHeight;
1564
- }, 0), u = e.calendarContainer.offsetWidth, c = e.config.position.split(" "), l = c[0], m = c.length > 1 ? c[1] : null, C = t.getBoundingClientRect(), E = window.innerHeight - C.bottom, P = l === "above" || l !== "below" && E < a && C.top > a, I = window.pageYOffset + C.top + (P ? -a - 2 : t.offsetHeight + 2);
1565
- if (R(e.calendarContainer, "arrowTop", !P), R(e.calendarContainer, "arrowBottom", P), !e.config.inline) {
1566
- var te = window.pageXOffset + C.left - (m != null && m === "center" ? (u - C.width) / 2 : 0), de = window.document.body.offsetWidth - C.right, Te = te + u > window.document.body.offsetWidth, ze = de + u > window.document.body.offsetWidth;
1567
- if (R(e.calendarContainer, "rightMost", Te), !e.config.static)
1568
- if (e.calendarContainer.style.top = I + "px", !Te)
1569
- e.calendarContainer.style.left = te + "px", e.calendarContainer.style.right = "auto";
1570
- else if (!ze)
1571
- e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = de + "px";
1572
- else {
1573
- var Ye = document.styleSheets[0];
1574
- if (Ye === void 0)
1575
- return;
1576
- var pe = window.document.body.offsetWidth, Ge = Math.max(0, pe / 2 - u / 2), ge = ".flatpickr-calendar.centerMost:before", Ne = ".flatpickr-calendar.centerMost:after", Ee = Ye.cssRules.length, Gn = "{left:" + C.left + "px;right:auto;}";
1577
- R(e.calendarContainer, "rightMost", !1), R(e.calendarContainer, "centerMost", !0), Ye.insertRule(ge + "," + Ne + Gn, Ee), e.calendarContainer.style.left = Ge + "px", e.calendarContainer.style.right = "auto";
1578
- }
1579
- }
1580
- }
1581
- }
1582
- function sn() {
1583
- e.config.noCalendar || e.isMobile || (Fe(), Ie());
1584
- }
1585
- function Ke() {
1586
- e._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(e.close, 0) : e.close();
1587
- }
1588
- function cn(n) {
1589
- n.preventDefault(), n.stopPropagation();
1590
- var t = function(I) {
1591
- return I.classList && I.classList.contains("flatpickr-day") && !I.classList.contains("flatpickr-disabled") && !I.classList.contains("notAllowed");
1592
- }, a = ee(n.target, t);
1593
- if (a !== void 0) {
1594
- var u = a, c = e.latestSelectedDateObj = new Date(u.dateObj.getTime()), l = (c.getMonth() < e.currentMonth || c.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
1595
- if (e.selectedDateElem = u, e.config.mode === "single")
1596
- e.selectedDates = [c];
1597
- else if (e.config.mode === "multiple") {
1598
- var m = Je(c);
1599
- m ? e.selectedDates.splice(parseInt(m), 1) : e.selectedDates.push(c);
1600
- } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = c, e.selectedDates.push(c), K(c, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(I, te) {
1601
- return I.getTime() - te.getTime();
1602
- }));
1603
- if (p(), l) {
1604
- var C = e.currentYear !== c.getFullYear();
1605
- e.currentYear = c.getFullYear(), e.currentMonth = c.getMonth(), C && (B("onYearChange"), Ce()), B("onMonthChange");
1606
- }
1607
- if (Fe(), Ie(), ce(), e.config.enableTime && setTimeout(function() {
1608
- return e.showTimeInput = !0;
1609
- }, 50), !l && e.config.mode !== "range" && e.config.showMonths === 1 ? be(u) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
1610
- var E = e.config.mode === "single" && !e.config.enableTime, P = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
1611
- (E || P) && Ke();
1612
- }
1613
- G();
1614
- }
1615
- }
1616
- var je = {
1617
- locale: [ln, on],
1618
- showMonths: [rn, o, an],
1619
- minDate: [Z],
1620
- maxDate: [Z]
1621
- };
1622
- function Rn(n, t) {
1623
- if (n !== null && typeof n == "object") {
1624
- Object.assign(e.config, n);
1625
- for (var a in n)
1626
- je[a] !== void 0 && je[a].forEach(function(u) {
1627
- return u();
1628
- });
1629
- } else
1630
- e.config[n] = t, je[n] !== void 0 ? je[n].forEach(function(u) {
1631
- return u();
1632
- }) : F.indexOf(n) > -1 && (e.config[n] = X(t));
1633
- e.redraw(), ce(!1);
1634
- }
1635
- function dn(n, t) {
1636
- var a = [];
1637
- if (n instanceof Array)
1638
- a = n.map(function(u) {
1639
- return e.parseDate(u, t);
1640
- });
1641
- else if (n instanceof Date || typeof n == "number")
1642
- a = [e.parseDate(n, t)];
1643
- else if (typeof n == "string")
1644
- switch (e.config.mode) {
1645
- case "single":
1646
- case "time":
1647
- a = [e.parseDate(n, t)];
1648
- break;
1649
- case "multiple":
1650
- a = n.split(e.config.conjunction).map(function(u) {
1651
- return e.parseDate(u, t);
1652
- });
1653
- break;
1654
- case "range":
1655
- a = n.split(e.l10n.rangeSeparator).map(function(u) {
1656
- return e.parseDate(u, t);
1657
- });
1658
- break;
1659
- }
1660
- else
1661
- e.config.errorHandler(new Error("Invalid date supplied: " + JSON.stringify(n)));
1662
- e.selectedDates = a.filter(function(u) {
1663
- return u instanceof Date && he(u, !1);
1664
- }), e.config.mode === "range" && e.selectedDates.sort(function(u, c) {
1665
- return u.getTime() - c.getTime();
1666
- });
1667
- }
1668
- function Ln(n, t, a) {
1669
- if (t === void 0 && (t = !1), a === void 0 && (a = e.config.dateFormat), n !== 0 && !n || n instanceof Array && n.length === 0)
1670
- return e.clear(t);
1671
- dn(n, a), e.showTimeInput = e.selectedDates.length > 0, e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), Z(), k(), e.selectedDates.length === 0 && e.clear(!1), ce(t), t && B("onChange");
1672
- }
1673
- function pn(n) {
1674
- return n.slice().map(function(t) {
1675
- return typeof t == "string" || typeof t == "number" || t instanceof Date ? e.parseDate(t, void 0, !0) : t && typeof t == "object" && t.from && t.to ? {
1676
- from: e.parseDate(t.from, void 0),
1677
- to: e.parseDate(t.to, void 0)
1678
- } : t;
1679
- }).filter(function(t) {
1680
- return t;
1681
- });
1682
- }
1683
- function Bn() {
1684
- e.selectedDates = [], e.now = e.parseDate(e.config.now) || /* @__PURE__ */ new Date();
1685
- var n = e.config.defaultDate || ((e.input.nodeName === "INPUT" || e.input.nodeName === "TEXTAREA") && e.input.placeholder && e.input.value === e.input.placeholder ? null : e.input.value);
1686
- n && dn(n, e.config.dateFormat), e._initialDate = e.selectedDates.length > 0 ? e.selectedDates[0] : e.config.minDate && e.config.minDate.getTime() > e.now.getTime() ? e.config.minDate : e.config.maxDate && e.config.maxDate.getTime() < e.now.getTime() ? e.config.maxDate : e.now, e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth(), e.selectedDates.length > 0 && (e.latestSelectedDateObj = e.selectedDates[0]), e.config.minTime !== void 0 && (e.config.minTime = e.parseDate(e.config.minTime, "H:i")), e.config.maxTime !== void 0 && (e.config.maxTime = e.parseDate(e.config.maxTime, "H:i")), e.minDateHasTime = !!e.config.minDate && (e.config.minDate.getHours() > 0 || e.config.minDate.getMinutes() > 0 || e.config.minDate.getSeconds() > 0), e.maxDateHasTime = !!e.config.maxDate && (e.config.maxDate.getHours() > 0 || e.config.maxDate.getMinutes() > 0 || e.config.maxDate.getSeconds() > 0), Object.defineProperty(e, "showTimeInput", {
1687
- get: function() {
1688
- return e._showTimeInput;
1689
- },
1690
- set: function(t) {
1691
- e._showTimeInput = t, e.calendarContainer && R(e.calendarContainer, "showTimeInput", t), e.isOpen && xe();
1692
- }
1693
- });
1694
- }
1695
- function qn() {
1696
- if (e.input = e.config.wrap ? r.querySelector("[data-input]") : r, !e.input) {
1697
- e.config.errorHandler(new Error("Invalid input element specified"));
1698
- return;
1699
- }
1700
- e.input._type = e.input.type, e.input.type = "text", e.input.classList.add("flatpickr-input"), e._input = e.input, e.config.altInput && (e.altInput = w(e.input.nodeName, e.config.altInputClass), e._input = e.altInput, e.altInput.placeholder = e.input.placeholder, e.altInput.disabled = e.input.disabled, e.altInput.required = e.input.required, e.altInput.tabIndex = e.input.tabIndex, e.altInput.type = "text", e.input.setAttribute("type", "hidden"), !e.config.static && e.input.parentNode && e.input.parentNode.insertBefore(e.altInput, e.input.nextSibling)), e.config.allowInput || e._input.setAttribute("readonly", "readonly"), e._positionElement = e.config.positionElement || e._input;
1701
- }
1702
- function Un() {
1703
- var n = e.config.enableTime ? e.config.noCalendar ? "time" : "datetime-local" : "date";
1704
- e.mobileInput = w("input", e.input.className + " flatpickr-mobile"), e.mobileInput.step = e.input.getAttribute("step") || "any", e.mobileInput.tabIndex = 1, e.mobileInput.type = n, e.mobileInput.disabled = e.input.disabled, e.mobileInput.required = e.input.required, e.mobileInput.placeholder = e.input.placeholder, e.mobileFormatStr = n === "datetime-local" ? "Y-m-d\\TH:i:S" : n === "date" ? "Y-m-d" : "H:i:S", e.selectedDates.length > 0 && (e.mobileInput.defaultValue = e.mobileInput.value = e.formatDate(e.selectedDates[0], e.mobileFormatStr)), e.config.minDate && (e.mobileInput.min = e.formatDate(e.config.minDate, "Y-m-d")), e.config.maxDate && (e.mobileInput.max = e.formatDate(e.config.maxDate, "Y-m-d")), e.input.type = "hidden", e.altInput !== void 0 && (e.altInput.type = "hidden");
1705
- try {
1706
- e.input.parentNode && e.input.parentNode.insertBefore(e.mobileInput, e.input.nextSibling);
1707
- } catch {
1708
- }
1709
- v(e.mobileInput, "change", function(t) {
1710
- e.setDate(t.target.value, !1, e.mobileFormatStr), B("onChange"), B("onClose");
1711
- });
1712
- }
1713
- function Kn(n) {
1714
- if (e.isOpen === !0)
1715
- return e.close();
1716
- e.open(n);
1717
- }
1718
- function B(n, t) {
1719
- if (e.config !== void 0) {
1720
- var a = e.config[n];
1721
- if (a !== void 0 && a.length > 0)
1722
- for (var u = 0; a[u] && u < a.length; u++)
1723
- a[u](e.selectedDates, e.input.value, e, t);
1724
- n === "onChange" && (e.input.dispatchEvent(Ve("change")), e.input.dispatchEvent(Ve("input")));
1725
- }
1726
- }
1727
- function Ve(n) {
1728
- var t = document.createEvent("Event");
1729
- return t.initEvent(n, !0, !0), t;
1730
- }
1731
- function Je(n) {
1732
- for (var t = 0; t < e.selectedDates.length; t++)
1733
- if (K(e.selectedDates[t], n) === 0)
1734
- return "" + t;
1735
- return !1;
1736
- }
1737
- function Vn(n) {
1738
- return e.config.mode !== "range" || e.selectedDates.length < 2 ? !1 : K(n, e.selectedDates[0]) >= 0 && K(n, e.selectedDates[1]) <= 0;
1739
- }
1740
- function Fe() {
1741
- e.config.noCalendar || e.isMobile || !e.monthNav || (e.yearElements.forEach(function(n, t) {
1742
- var a = new Date(e.currentYear, e.currentMonth, 1);
1743
- a.setMonth(e.currentMonth + t), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[t].textContent = U(a.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = a.getMonth().toString(), n.value = a.getFullYear().toString();
1744
- }), e._hidePrevMonthArrow = e.config.minDate !== void 0 && (e.currentYear === e.config.minDate.getFullYear() ? e.currentMonth <= e.config.minDate.getMonth() : e.currentYear < e.config.minDate.getFullYear()), e._hideNextMonthArrow = e.config.maxDate !== void 0 && (e.currentYear === e.config.maxDate.getFullYear() ? e.currentMonth + 1 > e.config.maxDate.getMonth() : e.currentYear > e.config.maxDate.getFullYear()));
1745
- }
1746
- function gn(n) {
1747
- return e.selectedDates.map(function(t) {
1748
- return e.formatDate(t, n);
1749
- }).filter(function(t, a, u) {
1750
- return e.config.mode !== "range" || e.config.enableTime || u.indexOf(t) === a;
1751
- }).join(e.config.mode !== "range" ? e.config.conjunction : e.l10n.rangeSeparator);
1752
- }
1753
- function ce(n) {
1754
- n === void 0 && (n = !0), e.mobileInput !== void 0 && e.mobileFormatStr && (e.mobileInput.value = e.latestSelectedDateObj !== void 0 ? e.formatDate(e.latestSelectedDateObj, e.mobileFormatStr) : ""), e.input.value = gn(e.config.dateFormat), e.altInput !== void 0 && (e.altInput.value = gn(e.config.altFormat)), n !== !1 && B("onValueUpdate");
1755
- }
1756
- function Jn(n) {
1757
- var t = e.prevMonthNav.contains(n.target), a = e.nextMonthNav.contains(n.target);
1758
- t || a ? Be(t ? -1 : 1) : e.yearElements.indexOf(n.target) >= 0 ? n.target.select() : n.target.classList.contains("arrowUp") ? e.changeYear(e.currentYear + 1) : n.target.classList.contains("arrowDown") && e.changeYear(e.currentYear - 1);
1759
- }
1760
- function zn(n) {
1761
- n.preventDefault();
1762
- var t = n.type === "keydown", a = n.target;
1763
- e.amPM !== void 0 && n.target === e.amPM && (e.amPM.textContent = e.l10n.amPM[N(e.amPM.textContent === e.l10n.amPM[0])]);
1764
- var u = parseFloat(a.getAttribute("min")), c = parseFloat(a.getAttribute("max")), l = parseFloat(a.getAttribute("step")), m = parseInt(a.value, 10), C = n.delta || (t ? n.which === 38 ? 1 : -1 : 0), E = m + l * C;
1765
- if (typeof a.value < "u" && a.value.length === 2) {
1766
- var P = a === e.hourElement, I = a === e.minuteElement;
1767
- E < u ? (E = c + E + N(!P) + (N(P) && N(!e.amPM)), I && De(void 0, -1, e.hourElement)) : E > c && (E = a === e.hourElement ? E - c - N(!e.amPM) : u, I && De(void 0, 1, e.hourElement)), e.amPM && P && (l === 1 ? E + m === 23 : Math.abs(E - m) > l) && (e.amPM.textContent = e.l10n.amPM[N(e.amPM.textContent === e.l10n.amPM[0])]), a.value = Y(E);
1768
- }
1769
- }
1770
- return S(), e;
1771
- }
1772
- function h(r, i) {
1773
- for (var e = Array.prototype.slice.call(r).filter(function(o) {
1774
- return o instanceof HTMLElement;
1775
- }), D = [], S = 0; S < e.length; S++) {
1776
- var b = e[S];
1777
- try {
1778
- if (b.getAttribute("data-fp-omit") !== null)
1779
- continue;
1780
- b._flatpickr !== void 0 && (b._flatpickr.destroy(), b._flatpickr = void 0), b._flatpickr = g(b, i || {}), D.push(b._flatpickr);
1781
- } catch (o) {
1782
- console.error(o);
1783
- }
1784
- }
1785
- return D.length === 1 ? D[0] : D;
1786
- }
1787
- typeof HTMLElement < "u" && typeof HTMLCollection < "u" && typeof NodeList < "u" && (HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function(r) {
1788
- return h(this, r);
1789
- }, HTMLElement.prototype.flatpickr = function(r) {
1790
- return h([this], r);
1791
- });
1792
- var d = function(r, i) {
1793
- return typeof r == "string" ? h(window.document.querySelectorAll(r), i) : r instanceof Node ? h([r], i) : h(r, i);
1794
- };
1795
- return d.defaultConfig = {}, d.l10ns = {
1796
- en: x({}, W),
1797
- default: x({}, W)
1798
- }, d.localize = function(r) {
1799
- d.l10ns.default = x({}, d.l10ns.default, r);
1800
- }, d.setDefaults = function(r) {
1801
- d.defaultConfig = x({}, d.defaultConfig, r);
1802
- }, d.parseDate = le({}), d.formatDate = ne({}), d.compareDates = K, typeof jQuery < "u" && typeof jQuery.fn < "u" && (jQuery.fn.flatpickr = function(r) {
1803
- return h(this, r);
1804
- }), Date.prototype.fp_incr = function(r) {
1805
- return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof r == "string" ? parseInt(r, 10) : r));
1806
- }, typeof window < "u" && (window.flatpickr = d), d;
1807
- });
1808
- }(Le)), Le.exports;
1809
- }
1810
- var Mn;
1811
- function ft() {
1812
- return Mn || (Mn = 1, function(J) {
1813
- Object.defineProperty(J, "__esModule", {
1814
- value: !0
1815
- }), J.default = void 0;
1816
- var $ = W(_e), x = H(/* @__PURE__ */ it()), F = H(ut());
1817
- function H(s) {
1818
- return s && s.__esModule ? s : { default: s };
1819
- }
1820
- function W(s) {
1821
- if (s && s.__esModule)
1822
- return s;
1823
- var g = {};
1824
- if (s != null) {
1825
- for (var h in s)
1826
- if (Object.prototype.hasOwnProperty.call(s, h)) {
1827
- var d = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(s, h) : {};
1828
- d.get || d.set ? Object.defineProperty(g, h, d) : g[h] = s[h];
1829
- }
1830
- }
1831
- return g.default = s, g;
1832
- }
1833
- function Y(s) {
1834
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Y = function(h) {
1835
- return typeof h;
1836
- } : Y = function(h) {
1837
- return h && typeof Symbol == "function" && h.constructor === Symbol && h !== Symbol.prototype ? "symbol" : typeof h;
1838
- }, Y(s);
1839
- }
1840
- function N() {
1841
- return N = Object.assign || function(s) {
1842
- for (var g = 1; g < arguments.length; g++) {
1843
- var h = arguments[g];
1844
- for (var d in h)
1845
- Object.prototype.hasOwnProperty.call(h, d) && (s[d] = h[d]);
1846
- }
1847
- return s;
1848
- }, N.apply(this, arguments);
1849
- }
1850
- function Q(s, g) {
1851
- if (s == null) return {};
1852
- var h = X(s, g), d, r;
1853
- if (Object.getOwnPropertySymbols) {
1854
- var i = Object.getOwnPropertySymbols(s);
1855
- for (r = 0; r < i.length; r++)
1856
- d = i[r], !(g.indexOf(d) >= 0) && Object.prototype.propertyIsEnumerable.call(s, d) && (h[d] = s[d]);
1857
- }
1858
- return h;
1859
- }
1860
- function X(s, g) {
1861
- if (s == null) return {};
1862
- var h = {}, d = Object.keys(s), r, i;
1863
- for (i = 0; i < d.length; i++)
1864
- r = d[i], !(g.indexOf(r) >= 0) && (h[r] = s[r]);
1865
- return h;
1866
- }
1867
- function R(s) {
1868
- for (var g = 1; g < arguments.length; g++) {
1869
- var h = arguments[g] != null ? arguments[g] : {}, d = Object.keys(h);
1870
- typeof Object.getOwnPropertySymbols == "function" && (d = d.concat(Object.getOwnPropertySymbols(h).filter(function(r) {
1871
- return Object.getOwnPropertyDescriptor(h, r).enumerable;
1872
- }))), d.forEach(function(r) {
1873
- ue(s, r, h[r]);
1874
- });
1875
- }
1876
- return s;
1877
- }
1878
- function w(s, g) {
1879
- if (!(s instanceof g))
1880
- throw new TypeError("Cannot call a class as a function");
1881
- }
1882
- function z(s, g) {
1883
- for (var h = 0; h < g.length; h++) {
1884
- var d = g[h];
1885
- d.enumerable = d.enumerable || !1, d.configurable = !0, "value" in d && (d.writable = !0), Object.defineProperty(s, d.key, d);
1886
- }
1887
- }
1888
- function ee(s, g, h) {
1889
- return g && z(s.prototype, g), s;
1890
- }
1891
- function ie(s, g) {
1892
- return g && (Y(g) === "object" || typeof g == "function") ? g : L(s);
1893
- }
1894
- function L(s) {
1895
- if (s === void 0)
1896
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1897
- return s;
1898
- }
1899
- function q(s) {
1900
- return q = Object.setPrototypeOf ? Object.getPrototypeOf : function(h) {
1901
- return h.__proto__ || Object.getPrototypeOf(h);
1902
- }, q(s);
1903
- }
1904
- function U(s, g) {
1905
- if (typeof g != "function" && g !== null)
1906
- throw new TypeError("Super expression must either be null or a function");
1907
- s.prototype = Object.create(g && g.prototype, { constructor: { value: s, writable: !0, configurable: !0 } }), g && oe(s, g);
1908
- }
1909
- function oe(s, g) {
1910
- return oe = Object.setPrototypeOf || function(d, r) {
1911
- return d.__proto__ = r, d;
1912
- }, oe(s, g);
1913
- }
1914
- function ue(s, g, h) {
1915
- return g in s ? Object.defineProperty(s, g, { value: h, enumerable: !0, configurable: !0, writable: !0 }) : s[g] = h, s;
1916
- }
1917
- var ae = ["onChange", "onOpen", "onClose", "onMonthChange", "onYearChange", "onReady", "onValueUpdate", "onDayCreate"], ne = x.default.oneOfType([x.default.func, x.default.arrayOf(x.default.func)]), le = ["onCreate", "onDestroy"], K = x.default.func, se = /* @__PURE__ */ function(s) {
1918
- U(g, s);
1919
- function g() {
1920
- return w(this, g), ie(this, q(g).apply(this, arguments));
1921
- }
1922
- return ee(g, [{
1923
- key: "componentDidUpdate",
1924
- value: function(d) {
1925
- var r = this;
1926
- this.props.hasOwnProperty("value") && this.props.value !== d.value && this.flatpickr.setDate(this.props.value, !1);
1927
- var i = this.props.options, e = d.options;
1928
- ae.forEach(function(f) {
1929
- r.props.hasOwnProperty(f) && (i[f] = r.props[f]), d.hasOwnProperty(f) && (e[f] = d[f]);
1930
- });
1931
- for (var D = Object.getOwnPropertyNames(i), S = D.length - 1; S >= 0; S--) {
1932
- var b = D[S], o = i[b];
1933
- o !== e[b] && (ae.indexOf(b) !== -1 && !Array.isArray(o) && (o = [o]), this.flatpickr.set(b, o));
1934
- }
1935
- }
1936
- }, {
1937
- key: "componentDidMount",
1938
- value: function() {
1939
- var d = this, r = R({
1940
- onClose: function() {
1941
- d.node.blur && d.node.blur();
1942
- }
1943
- }, this.props.options);
1944
- ae.forEach(function(e) {
1945
- d.props[e] && (r[e] = d.props[e]);
1946
- }), this.flatpickr = new F.default(this.node, r), this.props.hasOwnProperty("value") && this.flatpickr.setDate(this.props.value, !1);
1947
- var i = this.props.onCreate;
1948
- i && i(this.flatpickr);
1949
- }
1950
- }, {
1951
- key: "componentWillUnmount",
1952
- value: function() {
1953
- var d = this.props.onDestroy;
1954
- d && d(this.flatpickr), this.flatpickr.destroy();
1955
- }
1956
- }, {
1957
- key: "render",
1958
- value: function() {
1959
- var d = this, r = this.props, i = r.options, e = r.defaultValue, D = r.value, S = r.children, b = r.render, o = Q(r, ["options", "defaultValue", "value", "children", "render"]), f = function(M) {
1960
- d.node = M;
1961
- };
1962
- return ae.forEach(function(y) {
1963
- delete o[y];
1964
- }), le.forEach(function(y) {
1965
- delete o[y];
1966
- }), b ? b(R({}, o, {
1967
- defaultValue: e,
1968
- value: D
1969
- }), f) : i.wrap ? $.default.createElement("div", N({}, o, {
1970
- ref: f
1971
- }), S) : $.default.createElement("input", N({}, o, {
1972
- defaultValue: e,
1973
- ref: f
1974
- }));
1975
- }
1976
- }]), g;
1977
- }($.Component);
1978
- ue(se, "propTypes", {
1979
- defaultValue: x.default.string,
1980
- options: x.default.object,
1981
- onChange: ne,
1982
- onOpen: ne,
1983
- onClose: ne,
1984
- onMonthChange: ne,
1985
- onYearChange: ne,
1986
- onReady: ne,
1987
- onValueUpdate: ne,
1988
- onDayCreate: ne,
1989
- onCreate: K,
1990
- onDestroy: K,
1991
- value: x.default.oneOfType([x.default.string, x.default.array, x.default.object, x.default.number]),
1992
- children: x.default.node,
1993
- className: x.default.string,
1994
- render: x.default.func
1995
- }), ue(se, "defaultProps", {
1996
- options: {}
1997
- });
1998
- var me = se;
1999
- J.default = me;
2000
- }($e)), $e;
2001
- }
2002
- var lt = ft();
2003
- const st = /* @__PURE__ */ Xn(lt), ct = "#949494", dt = "DatePicker-module_inputMaxWidthSmall_cRYaK", pt = "DatePicker-module_inputMaxWidthDefault_GbIO-", gt = "DatePicker-module_inputMaxWidthLarge_fZKFi", mt = "DatePicker-module_input_3VHte", ht = "DatePicker-module_inputWrapper_aqoyL", vt = "DatePicker-module_inputWrapperCompact_-7CrL", yt = "DatePicker-module_iconButton_19a6e", Dt = "DatePicker-module_clearButton_O1D31", re = {
2004
- systemGray3: ct,
2005
- inputMaxWidthSmall: dt,
2006
- inputMaxWidthDefault: pt,
2007
- inputMaxWidthLarge: gt,
2008
- input: mt,
2009
- inputWrapper: ht,
2010
- inputWrapperCompact: vt,
2011
- "inputWrapper--error": "DatePicker-module_inputWrapper--error_bhHqD",
2012
- "inputWrapper--disabled": "DatePicker-module_inputWrapper--disabled_WFJUG",
2013
- iconButton: yt,
2014
- clearButton: Dt
2015
- };
2016
- let bt = 0;
2017
- function En({
2018
- attachTo: J,
2019
- compact: $,
2020
- inputMaxWidth: x,
2021
- defaultDate: F,
2022
- disabled: H,
2023
- error: W,
2024
- fullWidth: Y,
2025
- id: N,
2026
- helperText: Q,
2027
- optionalLabelText: X,
2028
- label: R,
2029
- mode: w,
2030
- onChange: z,
2031
- onOpen: ee,
2032
- onClose: ie,
2033
- showClearButton: L,
2034
- showIcon: q,
2035
- firstSelectableDate: U,
2036
- lastSelectableDate: oe,
2037
- dateFormat: ue = "F j, Y",
2038
- allowInput: ae,
2039
- tooltip: ne,
2040
- "data-testid": le,
2041
- flatpickrRef: K,
2042
- placeholder: se,
2043
- calendarContainerClass: me
2044
- }) {
2045
- var i, e;
2046
- const s = _e.useRef(), g = !!((e = (i = s == null ? void 0 : s.current) == null ? void 0 : i.input) != null && e.value), h = Oe(
2047
- Oe(He.input, re.input, {
2048
- [He["input--compact"]]: $,
2049
- [He["input--disabled"]]: H,
2050
- [He["input--error"]]: W
2051
- })
2052
- );
2053
- _e.useEffect(() => {
2054
- s.current && (s.current.input.nextSibling.id = N, s.current.input.nextSibling.autocomplete = "off", K && (K.current = s.current));
2055
- }, []), _e.useEffect(() => {
2056
- s.current.input.nextSibling.className = h;
2057
- }, [$, H, W, H]);
2058
- const d = _e.useMemo(() => {
2059
- if (!U && !oe)
2060
- return;
2061
- const D = We(U), S = We(oe), b = We(F);
2062
- return (o) => {
2063
- const f = We(o);
2064
- if (f.isSame(b, "day"))
2065
- return !1;
2066
- let y = !0;
2067
- return U && f.isBefore(D, "day") && (y = !1), oe && f.isAfter(S, "day") && (y = !1), !y;
2068
- };
2069
- }, [F, U, oe]);
2070
- let r;
2071
- switch (x) {
2072
- case "small":
2073
- r = re.inputMaxWidthSmall;
2074
- break;
2075
- case "large":
2076
- r = re.inputMaxWidthLarge;
2077
- break;
2078
- default:
2079
- r = re.inputMaxWidthDefault;
2080
- }
2081
- return /* @__PURE__ */ fe.jsx(
2082
- et,
2083
- {
2084
- tooltip: ne,
2085
- wrapperClassNames: Oe({
2086
- [r]: !Y
2087
- }),
2088
- label: R,
2089
- helperText: Q,
2090
- optionalLabelText: X,
2091
- disabled: H,
2092
- error: W,
2093
- inputId: N,
2094
- fullWidth: Y,
2095
- renderControl: () => /* @__PURE__ */ fe.jsx(
2096
- st,
2097
- {
2098
- options: {
2099
- allowInput: ae,
2100
- altFormat: ue,
2101
- altInput: !0,
2102
- altInputClass: h,
2103
- appendTo: J || void 0,
2104
- dateFormat: "Z",
2105
- mode: w,
2106
- wrap: !0,
2107
- defaultDate: F,
2108
- disable: [d]
2109
- },
2110
- onCreate: (D) => {
2111
- s.current = D, me && (s.current.calendarContainer.className = Oe(
2112
- s.current.calendarContainer.className,
2113
- me
2114
- ));
2115
- },
2116
- onChange: z,
2117
- onOpen: ee,
2118
- onClose: ie,
2119
- "data-testid": le,
2120
- children: /* @__PURE__ */ fe.jsxs(
2121
- "div",
2122
- {
2123
- className: Oe(re.inputWrapper, {
2124
- [re["inputWrapper--error"]]: W,
2125
- [re["inputWrapper--disabled"]]: H,
2126
- [re.inputWrapperCompact]: $
2127
- }),
2128
- children: [
2129
- /* @__PURE__ */ fe.jsx(
2130
- "input",
2131
- {
2132
- className: re.inputElement,
2133
- "data-input": !0,
2134
- defaultValue: F,
2135
- "data-testid": "date-picker-input",
2136
- placeholder: se
2137
- }
2138
- ),
2139
- q && /* @__PURE__ */ fe.jsx("div", { className: re.iconButton, "data-toggle": !0, children: /* @__PURE__ */ fe.jsx("div", { className: re.iconWrapper, children: /* @__PURE__ */ fe.jsx(
2140
- mn,
2141
- {
2142
- icon: "calendar",
2143
- variant: "thin",
2144
- size: 24,
2145
- color: re.systemGray3
2146
- }
2147
- ) }) }),
2148
- // istanbul ignore next - relies on the lifecycle hooks in Flatpickr, which doesn't play nicely with unit tests
2149
- L && g && /* @__PURE__ */ fe.jsx(
2150
- "button",
2151
- {
2152
- className: re.clearButton,
2153
- onClick: () => {
2154
- s.current.clear();
2155
- },
2156
- "data-testid": "data-picker-clear-button",
2157
- title: "Clear",
2158
- children: /* @__PURE__ */ fe.jsx("div", { className: re.iconWrapper, children: /* @__PURE__ */ fe.jsx(
2159
- mn,
2160
- {
2161
- icon: "close",
2162
- variant: "thin",
2163
- size: 12,
2164
- color: re.systemGray3
2165
- }
2166
- ) })
2167
- }
2168
- )
2169
- ]
2170
- }
2171
- )
2172
- }
2173
- )
2174
- }
2175
- );
2176
- }
2177
- En.propTypes = {
2178
- attachTo: j.node,
2179
- allowInput: j.bool,
2180
- inputMaxWidth: j.oneOf(["small", "default", "large"]),
2181
- compact: j.bool,
2182
- disabled: j.bool,
2183
- defaultDate: j.oneOfType([
2184
- j.instanceOf(Date),
2185
- j.arrayOf(j.instanceOf(Date)),
2186
- j.string
2187
- ]),
2188
- error: j.oneOfType([j.string, j.bool]),
2189
- fullWidth: j.bool,
2190
- id: j.string,
2191
- firstSelectableDate: j.oneOfType([
2192
- j.instanceOf(Date),
2193
- j.string
2194
- ]),
2195
- helperText: j.string,
2196
- optionalLabelText: j.string,
2197
- label: j.string,
2198
- lastSelectableDate: j.oneOfType([
2199
- j.instanceOf(Date),
2200
- j.string
2201
- ]),
2202
- mode: j.oneOf(["single", "multiple", "range"]),
2203
- onChange: j.func.isRequired,
2204
- onOpen: j.func,
2205
- onClose: j.func,
2206
- showClearButton: j.bool,
2207
- showIcon: j.bool,
2208
- dateFormat: j.string,
2209
- tooltip: j.node,
2210
- flatpickrRef: j.object,
2211
- "data-testid": j.string,
2212
- placeholder: j.string
2213
- };
2214
- En.defaultProps = {
2215
- attachTo: null,
2216
- allowInput: !0,
2217
- inputMaxWidth: "default",
2218
- compact: !1,
2219
- defaultDate: /* @__PURE__ */ new Date(),
2220
- disabled: !1,
2221
- error: "",
2222
- fullWidth: !1,
2223
- helperText: "",
2224
- optionalLabelText: "",
2225
- id: `date-picker-${bt++}`,
2226
- mode: "single",
2227
- showClearButton: !1,
2228
- showIcon: !0,
2229
- dateFormat: "F j, Y"
2230
- };
2231
- export {
2232
- En as default
2233
- };
2234
- //# sourceMappingURL=DatePicker-BTio7Tsc.mjs.map