@worktango/ai-assistant 0.0.89-beta.3 → 0.0.89

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 (177) hide show
  1. package/dist/{Absenteeism-P1yekxzy.mjs → Absenteeism-D_svlsRR.mjs} +1 -1
  2. package/dist/{ActivityFeed-Dtwt9a4a.mjs → ActivityFeed-i-mltXC1.mjs} +1 -1
  3. package/dist/{AddUser-l1iwSthq.mjs → AddUser-BxtpDosN.mjs} +1 -1
  4. package/dist/{Admin-DVqWu41m.mjs → Admin-0ntVwZty.mjs} +1 -1
  5. package/dist/{Admin-DsqChRJC.mjs → Admin-stE7E_9Q.mjs} +1 -1
  6. package/dist/{AiGeneral-DOu3FInR.mjs → AiGeneral-J4wfju4j.mjs} +1 -1
  7. package/dist/{AiScoring-CJ4BDz3r.mjs → AiScoring-m90LeE6z.mjs} +1 -1
  8. package/dist/{AiText-Cip-lg1h.mjs → AiText-DrePyFVw.mjs} +1 -1
  9. package/dist/{Anniversary-BsGrzOkK.mjs → Anniversary-BS1qoN6v.mjs} +1 -1
  10. package/dist/{Appreciation-OkGFsp58.mjs → Appreciation-BkFdwyRN.mjs} +1 -1
  11. package/dist/{ArrowDown-BW03A22X.mjs → ArrowDown-D-hksazD.mjs} +1 -1
  12. package/dist/{ArrowLeft-D89alUzr.mjs → ArrowLeft-Bhu214Aw.mjs} +1 -1
  13. package/dist/{ArrowRight-BCuAyGdJ.mjs → ArrowRight-CjAWpkor.mjs} +1 -1
  14. package/dist/{ArrowUp-Csz_QeSS.mjs → ArrowUp-xOUTm7JS.mjs} +1 -1
  15. package/dist/{Attachment-EDb2PMfl.mjs → Attachment-DcdmRGuS.mjs} +1 -1
  16. package/dist/{BeQuickDontHurry-BPop5--S.mjs → BeQuickDontHurry-CBMC-V1v.mjs} +1 -1
  17. package/dist/{Birthday-CBkgTlXi.mjs → Birthday-CNAzeHky.mjs} +1 -1
  18. package/dist/{BrandPromise-FiRmrrd0.mjs → BrandPromise-Dbvota3x.mjs} +1 -1
  19. package/dist/{BrandVision-DwluUmpV.mjs → BrandVision-D6gImR1N.mjs} +1 -1
  20. package/dist/{Calendar-CkRAkRaB.mjs → Calendar-CmlZvV2x.mjs} +1 -1
  21. package/dist/{CaretDn-DtBokce3.mjs → CaretDn-C-lYbhf9.mjs} +1 -1
  22. package/dist/{CaretDown-C6ggHbk3.mjs → CaretDown-CN0_7C1x.mjs} +1 -1
  23. package/dist/{CaretLeft-BZ0gn5MD.mjs → CaretLeft-DE-yceUh.mjs} +1 -1
  24. package/dist/{CaretRight-BretAmVo.mjs → CaretRight-CO97vc10.mjs} +1 -1
  25. package/dist/{CaretUp-DSUWfuoi.mjs → CaretUp-Ed2H8WbA.mjs} +1 -1
  26. package/dist/{ChallengeAccepted-BaaCMWFj.mjs → ChallengeAccepted-B_Ql87j1.mjs} +1 -1
  27. package/dist/{CheckIn-YRiFSpFg.mjs → CheckIn-D64kQnpu.mjs} +1 -1
  28. package/dist/{CheckIns-DEhnj7vZ.mjs → CheckIns-CXgDlxFO.mjs} +1 -1
  29. package/dist/{CheckSeal-C4L7u2o9.mjs → CheckSeal-SpOMAbfI.mjs} +1 -1
  30. package/dist/{Checkmark-YFgSTJH2.mjs → Checkmark-ChyZPTyx.mjs} +1 -1
  31. package/dist/{Clock-CAcd-BRH.mjs → Clock-z1BDt2yl.mjs} +1 -1
  32. package/dist/{Close-BEPziYcv.mjs → Close-DqJwCml8.mjs} +1 -1
  33. package/dist/{CloudDownload-CniO9uhA.mjs → CloudDownload-d0UEsc7T.mjs} +1 -1
  34. package/dist/{Comment-B1A_GIlv.mjs → Comment-CK8KejK2.mjs} +1 -1
  35. package/dist/{Comments-DE0Fucvu.mjs → Comments-Dw06h9Dt.mjs} +1 -1
  36. package/dist/{Connections-CE2Lg1Yg.mjs → Connections--ozKJwjm.mjs} +1 -1
  37. package/dist/{Copy-DfPrQ0uU.mjs → Copy-evxi2xPD.mjs} +1 -1
  38. package/dist/{CustomQuestion-vxGy4qmD.mjs → CustomQuestion-f-tL1R3C.mjs} +1 -1
  39. package/dist/{CustomerSuccess-2Jzyv9-K.mjs → CustomerSuccess-JQG3aUFZ.mjs} +1 -1
  40. package/dist/DatePicker-l0sNRNKZ.mjs +1 -0
  41. package/dist/{Dot-LsS3bCBT.mjs → Dot-CdEy06y_.mjs} +1 -1
  42. package/dist/{Download-DNoffVaJ.mjs → Download-BlygYXUh.mjs} +1 -1
  43. package/dist/{Drag-BIaDxtXt.mjs → Drag-B9m007Wi.mjs} +1 -1
  44. package/dist/{Earn-C5f2Fn41.mjs → Earn-CN_rl1mq.mjs} +1 -1
  45. package/dist/{Email-3tuobhY_.mjs → Email-dCw7yZLC.mjs} +1 -1
  46. package/dist/{EmojiDisplay-BS4-ym8E.mjs → EmojiDisplay-BYQTPFOc.mjs} +2 -2
  47. package/dist/{EmojiPicker-D3k8URWf.mjs → EmojiPicker-BAgsB8AT.mjs} +2 -2
  48. package/dist/{EnpsSurvey-CP1G_ESB.mjs → EnpsSurvey-yslbmGkH.mjs} +1 -1
  49. package/dist/{Expired-CbsPBo0V.mjs → Expired-BVBe3zf9.mjs} +1 -1
  50. package/dist/{Eye-mGYGlknl.mjs → Eye-BplVxhBb.mjs} +1 -1
  51. package/dist/{Feedback-XBE921Ux.mjs → Feedback-2P5jORrC.mjs} +1 -1
  52. package/dist/{Feedback-Bv8eO9sB.mjs → Feedback-BJBM8MWS.mjs} +1 -1
  53. package/dist/{Filter-CKZjq4GW.mjs → Filter-fqAxETUI.mjs} +1 -1
  54. package/dist/{Flag-4fh9e4Np.mjs → Flag-ZUu7ecaf.mjs} +1 -1
  55. package/dist/{Giphy-CLZ__Siy.mjs → Giphy-6hm5gAo8.mjs} +1 -1
  56. package/dist/{GoalCount-B7cWSl97.mjs → GoalCount-CqvoNt7e.mjs} +1 -1
  57. package/dist/{GoalPercent-D8LdMlkX.mjs → GoalPercent-Bt0omXqe.mjs} +1 -1
  58. package/dist/{GoalTask-CHSOIfKN.mjs → GoalTask-BI9Vwo0U.mjs} +1 -1
  59. package/dist/{GoalTask-D8wSfalE.mjs → GoalTask-DXB0iKKG.mjs} +1 -1
  60. package/dist/{Goals-c1Pc73Io.mjs → Goals-9vfnL98k.mjs} +1 -1
  61. package/dist/{Goals-DKadtX78.mjs → Goals-BrmZA4ds.mjs} +1 -1
  62. package/dist/{Growth-CRKTpjTP.mjs → Growth-B2mEPKw1.mjs} +1 -1
  63. package/dist/{Hamburger-nXn-Dw9g.mjs → Hamburger-CtwEQtv0.mjs} +1 -1
  64. package/dist/{Help-CtKzASch.mjs → Help-CJvIc-O-.mjs} +1 -1
  65. package/dist/{HighFive-B9sJ3_XQ.mjs → HighFive-BSXY59FG.mjs} +1 -1
  66. package/dist/{HighFive-CWjfSKDk.mjs → HighFive-D9Ywpdj2.mjs} +1 -1
  67. package/dist/{Home-Bm8e7-DH.mjs → Home-CmRrFL5A.mjs} +1 -1
  68. package/dist/{Home-lA8y-k4V.mjs → Home-DaLIfvA_.mjs} +1 -1
  69. package/dist/{HorizontalLine-DpAIkrqc.mjs → HorizontalLine-BaJa99-g.mjs} +1 -1
  70. package/dist/{Hourglass-C60Rm2Q_.mjs → Hourglass-DiyrFtno.mjs} +1 -1
  71. package/dist/{Image-D3Md1Kva.mjs → Image-UrrC1Cs8.mjs} +1 -1
  72. package/dist/{ImageFile-Bq--QdA-.mjs → ImageFile-CLeFqkUI.mjs} +1 -1
  73. package/dist/{InGoodCompany-DLV-dr1v.mjs → InGoodCompany-bcVDFIXS.mjs} +1 -1
  74. package/dist/{Incentives-DXa27MNn.mjs → Incentives-BL9Uw44t.mjs} +1 -1
  75. package/dist/{Info-B420uqWn.mjs → Info-D2_bxwHV.mjs} +1 -1
  76. package/dist/{Insights-BNFsDvGg.mjs → Insights-BddV-Og6.mjs} +1 -1
  77. package/dist/{Insights-Z5uQCoDA.mjs → Insights-Bi1ueIlD.mjs} +1 -1
  78. package/dist/{Integrations-DHdSZAQB.mjs → Integrations-k1SYuV_d.mjs} +1 -1
  79. package/dist/{KazooLogo-d5T4OkQu.mjs → KazooLogo-Bp2SaCXA.mjs} +1 -1
  80. package/dist/{KnowYourAudience-7vQtNjnk.mjs → KnowYourAudience-CzrvXS2u.mjs} +1 -1
  81. package/dist/{Launch-CISDN1Y2.mjs → Launch-D7z4SLYK.mjs} +1 -1
  82. package/dist/{Link-DrMa5WNj.mjs → Link-BRtlmxCz.mjs} +1 -1
  83. package/dist/{LinkArrow-DbULYYox.mjs → LinkArrow-PWiB8BuK.mjs} +1 -1
  84. package/dist/{Loading-BcmPb4gq.mjs → Loading-Cj0Fp85U.mjs} +1 -1
  85. package/dist/{Lock-CXerWOM2.mjs → Lock-CqLYuYOL.mjs} +1 -1
  86. package/dist/{Management-BaRtYRxt.mjs → Management-PWlWdWk_.mjs} +1 -1
  87. package/dist/{MeatballMenu-y91nFEaI.mjs → MeatballMenu-D0F0FnKg.mjs} +1 -1
  88. package/dist/{Messages-BSBZNVrB.mjs → Messages-BhcR0jkH.mjs} +1 -1
  89. package/dist/{Microphone-Dqx5WT8A.mjs → Microphone-BZfnHPj8.mjs} +1 -1
  90. package/dist/{Mobile-BWyFrrpU.mjs → Mobile-BjojMaqB.mjs} +1 -1
  91. package/dist/{Nomination-B_cRNwFA.mjs → Nomination-DmqE4oIG.mjs} +1 -1
  92. package/dist/{NominationsAndAwards-CSN0q-cO.mjs → NominationsAndAwards-C981PBQp.mjs} +1 -1
  93. package/dist/{Notification-B0WrPfGS.mjs → Notification-BcG7rj9w.mjs} +1 -1
  94. package/dist/{Okrs-BZJw6dd8.mjs → Okrs-8EU4BDjb.mjs} +1 -1
  95. package/dist/{Pause-j7L8zgS5.mjs → Pause-ChHNjhsj.mjs} +1 -1
  96. package/dist/{PeerToPeer-Cmo4d7nB.mjs → PeerToPeer-GQntaSOZ.mjs} +1 -1
  97. package/dist/{Pencil-5OFPAHvZ.mjs → Pencil-qRkOP7Tf.mjs} +1 -1
  98. package/dist/{People-wKAnUGqG.mjs → People-cowBWHBZ.mjs} +1 -1
  99. package/dist/{PerformanceManagement-CYe5Ylin.mjs → PerformanceManagement-tTtl2hVt.mjs} +1 -1
  100. package/dist/{Pin-DT0lP_HJ.mjs → Pin-CTHHB7wg.mjs} +1 -1
  101. package/dist/{PinnedIconAward-CZQABEj3.mjs → PinnedIconAward-BUTbWz0V.mjs} +1 -1
  102. package/dist/{PinnedIconBrightIdea-CQVP7PSN.mjs → PinnedIconBrightIdea-DKHEXeig.mjs} +1 -1
  103. package/dist/{PinnedIconBullseye-C0VUDSSQ.mjs → PinnedIconBullseye-fp2Ad3pz.mjs} +1 -1
  104. package/dist/{PinnedIconChampagne-BAPcFVUJ.mjs → PinnedIconChampagne-Cp6Ph3Sa.mjs} +1 -1
  105. package/dist/{PinnedIconCheer-BN5-Pl6T.mjs → PinnedIconCheer-FSI7EL7e.mjs} +1 -1
  106. package/dist/{PinnedIconCrown-BxtXbb5a.mjs → PinnedIconCrown-DmzNlKjr.mjs} +1 -1
  107. package/dist/{PinnedIconDiamond-fVBc6qUY.mjs → PinnedIconDiamond-CY-UzRAL.mjs} +1 -1
  108. package/dist/{PinnedIconHoleInOne-CiNIqnSM.mjs → PinnedIconHoleInOne-CSMUwYkR.mjs} +1 -1
  109. package/dist/{PinnedIconMedal-BrxmNF2R.mjs → PinnedIconMedal-CeyJmVzH.mjs} +1 -1
  110. package/dist/{PinnedIconMetrics-Bf3hAGL7.mjs → PinnedIconMetrics-CkG28hmm.mjs} +1 -1
  111. package/dist/{PinnedIconPin-CuIQUG1l.mjs → PinnedIconPin-P7H6my8N.mjs} +1 -1
  112. package/dist/{PinnedIconRockAndRoll-CUYvWcRi.mjs → PinnedIconRockAndRoll-BQ2QKLHL.mjs} +1 -1
  113. package/dist/{PinnedIconRocket-DFAA82_c.mjs → PinnedIconRocket-CfixlKms.mjs} +1 -1
  114. package/dist/{PinnedIconStrength-BZWc4i3e.mjs → PinnedIconStrength--rco_nDj.mjs} +1 -1
  115. package/dist/{PinnedIconTeddyBear-ClGhxsqt.mjs → PinnedIconTeddyBear-CvKl_MJ5.mjs} +1 -1
  116. package/dist/{PlatformLogo-B0P6Y3VF.mjs → PlatformLogo-Bnr5Hc9r.mjs} +1 -1
  117. package/dist/{Plus-BoiqWlhi.mjs → Plus-DRXxoZsE.mjs} +1 -1
  118. package/dist/{Popper-cJJHAQYj.mjs → Popper-DNmygcZ2.mjs} +1 -1
  119. package/dist/{PrivateEye-Xv7qTdGm.mjs → PrivateEye-wG91nUz5.mjs} +1 -1
  120. package/dist/{PrivatePushPin-DtDw4-xE.mjs → PrivatePushPin-BWc73HI8.mjs} +1 -1
  121. package/dist/{Processing-DDK_vsQl.mjs → Processing-BskJNb99.mjs} +1 -1
  122. package/dist/{Productivity-CGOjhaKn.mjs → Productivity-DwDvI1Qb.mjs} +1 -1
  123. package/dist/{ProgressCircle-DQEO0LzS.mjs → ProgressCircle-DiqMYUfC.mjs} +1 -1
  124. package/dist/{PulseSurvey-KiDz2ud2.mjs → PulseSurvey-CNsSL9BX.mjs} +1 -1
  125. package/dist/{PushPin-DR1EwKKV.mjs → PushPin-B5V77uzC.mjs} +1 -1
  126. package/dist/{Recognition-DL-bENxh.mjs → Recognition-B6_QY4Df.mjs} +1 -1
  127. package/dist/{Recognition-CiaAAriP.mjs → Recognition-DFsZ7HLa.mjs} +1 -1
  128. package/dist/{Retention-DrucJmjx.mjs → Retention-VOYJBfky.mjs} +1 -1
  129. package/dist/{Rewards-C0ftCrdo.mjs → Rewards-BLAn7WGa.mjs} +1 -1
  130. package/dist/{Rewards-7L2tCiOe.mjs → Rewards-ZAghEp-3.mjs} +1 -1
  131. package/dist/{RewardsCatalog-DD3fmOMk.mjs → RewardsCatalog-C89kbpBy.mjs} +1 -1
  132. package/dist/{Roadmap-POnIU639.mjs → Roadmap-CJpTv7Ez.mjs} +1 -1
  133. package/dist/{Search-z6N0K-kH.mjs → Search-DcrHq9_N.mjs} +1 -1
  134. package/dist/{Security-BJLyWN_b.mjs → Security-Ce1w1KAP.mjs} +1 -1
  135. package/dist/{SendRecognition-DG24afsy.mjs → SendRecognition-Dgk3Z8e3.mjs} +1 -1
  136. package/dist/{ShareLink-BmjPJ6zr.mjs → ShareLink-BMiuBsQR.mjs} +1 -1
  137. package/dist/{SidebarCollapse-5mtcjeiG.mjs → SidebarCollapse-747WNWLP.mjs} +1 -1
  138. package/dist/{Skill-BDvfZuXS.mjs → Skill-DuA1PK31.mjs} +1 -1
  139. package/dist/{Skills-BysCh1dy.mjs → Skills-DRHLtCyv.mjs} +1 -1
  140. package/dist/{Smiley-D7l82NoX.mjs → Smiley-CPk2Iid-.mjs} +1 -1
  141. package/dist/{Stop-Dp9fUL8s.mjs → Stop-DofFiMXe.mjs} +1 -1
  142. package/dist/{Survey-D7v-49ky.mjs → Survey-DK-Mhv5n.mjs} +1 -1
  143. package/dist/{Surveys-mrZyC7sq.mjs → Surveys-D-PfWTk4.mjs} +1 -1
  144. package/dist/{SyncUps-BLmhs1XH.mjs → SyncUps-B5PS2WEZ.mjs} +1 -1
  145. package/dist/{Syncs-Dmjs9qXc.mjs → Syncs-DVyzQs0f.mjs} +1 -1
  146. package/dist/{TalentReview-Bu61g4pK.mjs → TalentReview-BcOOTRIn.mjs} +1 -1
  147. package/dist/{TalentReview-D2szKlGP.mjs → TalentReview-_MfBtltI.mjs} +1 -1
  148. package/dist/{TalentReviewInsights-7VpjRK7o.mjs → TalentReviewInsights-CHrM2aQJ.mjs} +1 -1
  149. package/dist/{TaskCompleted-3tIdnvzB.mjs → TaskCompleted-BvpgtXVm.mjs} +1 -1
  150. package/dist/{Team-Chcfgibz.mjs → Team-CHskBlEO.mjs} +1 -1
  151. package/dist/{Teams-BfdFNyds.mjs → Teams-O9lnWdeH.mjs} +1 -1
  152. package/dist/{TextBold-ByAiwwrr.mjs → TextBold-B3wbu7po.mjs} +1 -1
  153. package/dist/{TextBulletList-BaO0ebVd.mjs → TextBulletList--A2dfDZ_.mjs} +1 -1
  154. package/dist/{TextInput-BPqgpBTI.mjs → TextInput-CAWXrp3_.mjs} +1 -1
  155. package/dist/{TextItalic-LDuTcb4E.mjs → TextItalic-CpLBjPIo.mjs} +1 -1
  156. package/dist/{TextNumberList-CWvLjNGe.mjs → TextNumberList-xHYjKoUo.mjs} +1 -1
  157. package/dist/{TextUnderline-C0bnXCoz.mjs → TextUnderline--nP6WH8f.mjs} +1 -1
  158. package/dist/{Toggle-BM6b_nDj.mjs → Toggle-C9QzGtT8.mjs} +1 -1
  159. package/dist/{Translate-VNaebCU9.mjs → Translate-DlN1WStv.mjs} +1 -1
  160. package/dist/{Trash-CZCeZ4eF.mjs → Trash-DwmWvN7m.mjs} +1 -1
  161. package/dist/{TrendDown-m25OSt8i.mjs → TrendDown-DYQhN4nE.mjs} +1 -1
  162. package/dist/{TrendUp-ELwCeRuJ.mjs → TrendUp-QXGDtKu9.mjs} +1 -1
  163. package/dist/{Undo-9BGtr2zP.mjs → Undo-Cw7cVfxB.mjs} +1 -1
  164. package/dist/{Unplugged-jOJggwU3.mjs → Unplugged-B9abjhCM.mjs} +1 -1
  165. package/dist/{UpDownCaret-Czv8hb6O.mjs → UpDownCaret-CeSBmepg.mjs} +1 -1
  166. package/dist/{VerticalLine-DVNqlAoO.mjs → VerticalLine-CQhIqTNs.mjs} +1 -1
  167. package/dist/{Warning-Cad3_aM1.mjs → Warning-BKNPIDna.mjs} +1 -1
  168. package/dist/{WarningNoOutline-DY68_jbt.mjs → WarningNoOutline-U4r5w9cd.mjs} +1 -1
  169. package/dist/{YesAnd-CObJv1As.mjs → YesAnd-DFMwXClk.mjs} +1 -1
  170. package/dist/ai-assistant.css +1 -1
  171. package/dist/{emoji-DAMz2y7e.mjs → emoji-OO0FwWyA.mjs} +811 -741
  172. package/dist/{react-apexcharts.min-Azp1n5cu.mjs → react-apexcharts.min-lijIZU15.mjs} +1 -1
  173. package/dist/react.es.js +4 -4
  174. package/dist/react.umd.js +371 -378
  175. package/dist/{reactComponent-DEqE9TNt.mjs → reactComponent-Dmegrkih.mjs} +8411 -8440
  176. package/package.json +1 -1
  177. package/dist/DatePicker-Del3kPOQ.mjs +0 -2114
@@ -1,2114 +0,0 @@
1
- import { j as ie, r as $n, g as Zn, a as xe, i as _e, b as Pe, C as Xn, I as pn } from "./reactComponent-DEqE9TNt.mjs";
2
- import Ae, { useMemo as Qe, useRef as gn, useImperativeHandle as Qn, useEffect as mn, useCallback as Ye } from "react";
3
- var Ke = [
4
- "onChange",
5
- "onClose",
6
- "onDayCreate",
7
- "onDestroy",
8
- "onKeyDown",
9
- "onMonthChange",
10
- "onOpen",
11
- "onParseConfig",
12
- "onReady",
13
- "onValueUpdate",
14
- "onYearChange",
15
- "onPreCalendarPosition"
16
- ], De = {
17
- _disable: [],
18
- allowInput: !1,
19
- allowInvalidPreload: !1,
20
- altFormat: "F j, Y",
21
- altInput: !1,
22
- altInputClass: "form-control input",
23
- animate: typeof window == "object" && window.navigator.userAgent.indexOf("MSIE") === -1,
24
- ariaDateFormat: "F j, Y",
25
- autoFillDefaultTime: !0,
26
- clickOpens: !0,
27
- closeOnSelect: !0,
28
- conjunction: ", ",
29
- dateFormat: "Y-m-d",
30
- defaultHour: 12,
31
- defaultMinute: 0,
32
- defaultSeconds: 0,
33
- disable: [],
34
- disableMobile: !1,
35
- enableSeconds: !1,
36
- enableTime: !1,
37
- errorHandler: function(a) {
38
- return typeof console < "u" && console.warn(a);
39
- },
40
- getWeek: function(a) {
41
- var i = new Date(a.getTime());
42
- i.setHours(0, 0, 0, 0), i.setDate(i.getDate() + 3 - (i.getDay() + 6) % 7);
43
- var e = new Date(i.getFullYear(), 0, 4);
44
- return 1 + Math.round(((i.getTime() - e.getTime()) / 864e5 - 3 + (e.getDay() + 6) % 7) / 7);
45
- },
46
- hourIncrement: 1,
47
- ignoredFocusElements: [],
48
- inline: !1,
49
- locale: "default",
50
- minuteIncrement: 5,
51
- mode: "single",
52
- monthSelectorType: "dropdown",
53
- 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>",
54
- noCalendar: !1,
55
- now: /* @__PURE__ */ new Date(),
56
- onChange: [],
57
- onClose: [],
58
- onDayCreate: [],
59
- onDestroy: [],
60
- onKeyDown: [],
61
- onMonthChange: [],
62
- onOpen: [],
63
- onParseConfig: [],
64
- onReady: [],
65
- onValueUpdate: [],
66
- onYearChange: [],
67
- onPreCalendarPosition: [],
68
- plugins: [],
69
- position: "auto",
70
- positionElement: void 0,
71
- 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>",
72
- shorthandCurrentMonth: !1,
73
- showMonths: 1,
74
- static: !1,
75
- time_24hr: !1,
76
- weekNumbers: !1,
77
- wrap: !1
78
- }, Te = {
79
- weekdays: {
80
- shorthand: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
81
- longhand: [
82
- "Sunday",
83
- "Monday",
84
- "Tuesday",
85
- "Wednesday",
86
- "Thursday",
87
- "Friday",
88
- "Saturday"
89
- ]
90
- },
91
- months: {
92
- shorthand: [
93
- "Jan",
94
- "Feb",
95
- "Mar",
96
- "Apr",
97
- "May",
98
- "Jun",
99
- "Jul",
100
- "Aug",
101
- "Sep",
102
- "Oct",
103
- "Nov",
104
- "Dec"
105
- ],
106
- longhand: [
107
- "January",
108
- "February",
109
- "March",
110
- "April",
111
- "May",
112
- "June",
113
- "July",
114
- "August",
115
- "September",
116
- "October",
117
- "November",
118
- "December"
119
- ]
120
- },
121
- daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
122
- firstDayOfWeek: 0,
123
- ordinal: function(a) {
124
- var i = a % 100;
125
- if (i > 3 && i < 21)
126
- return "th";
127
- switch (i % 10) {
128
- case 1:
129
- return "st";
130
- case 2:
131
- return "nd";
132
- case 3:
133
- return "rd";
134
- default:
135
- return "th";
136
- }
137
- },
138
- rangeSeparator: " to ",
139
- weekAbbreviation: "Wk",
140
- scrollTitle: "Scroll to increment",
141
- toggleTitle: "Click to toggle",
142
- amPM: ["AM", "PM"],
143
- yearAriaLabel: "Year",
144
- monthAriaLabel: "Month",
145
- hourAriaLabel: "Hour",
146
- minuteAriaLabel: "Minute",
147
- time_24hr: !1
148
- }, Q = function(a, i) {
149
- return i === void 0 && (i = 2), ("000" + a).slice(i * -1);
150
- }, oe = function(a) {
151
- return a === !0 ? 1 : 0;
152
- };
153
- function hn(a, i) {
154
- var e;
155
- return function() {
156
- var c = this, f = arguments;
157
- clearTimeout(e), e = setTimeout(function() {
158
- return a.apply(c, f);
159
- }, i);
160
- };
161
- }
162
- var Ue = function(a) {
163
- return a instanceof Array ? a : [a];
164
- };
165
- function z(a, i, e) {
166
- if (e === !0)
167
- return a.classList.add(i);
168
- a.classList.remove(i);
169
- }
170
- function j(a, i, e) {
171
- var c = window.document.createElement(a);
172
- return i = i || "", e = e || "", c.className = i, e !== void 0 && (c.textContent = e), c;
173
- }
174
- function Fe(a) {
175
- for (; a.firstChild; )
176
- a.removeChild(a.firstChild);
177
- }
178
- function Mn(a, i) {
179
- if (i(a))
180
- return a;
181
- if (a.parentNode)
182
- return Mn(a.parentNode, i);
183
- }
184
- function je(a, i) {
185
- var e = j("div", "numInputWrapper"), c = j("input", "numInput " + a), f = j("span", "arrowUp"), p = j("span", "arrowDown");
186
- if (navigator.userAgent.indexOf("MSIE 9.0") === -1 ? c.type = "number" : (c.type = "text", c.pattern = "\\d*"), i !== void 0)
187
- for (var D in i)
188
- c.setAttribute(D, i[D]);
189
- return e.appendChild(c), e.appendChild(f), e.appendChild(p), e;
190
- }
191
- function te(a) {
192
- try {
193
- if (typeof a.composedPath == "function") {
194
- var i = a.composedPath();
195
- return i[0];
196
- }
197
- return a.target;
198
- } catch {
199
- return a.target;
200
- }
201
- }
202
- var Je = function() {
203
- }, He = function(a, i, e) {
204
- return e.months[i ? "shorthand" : "longhand"][a];
205
- }, et = {
206
- D: Je,
207
- F: function(a, i, e) {
208
- a.setMonth(e.months.longhand.indexOf(i));
209
- },
210
- G: function(a, i) {
211
- a.setHours((a.getHours() >= 12 ? 12 : 0) + parseFloat(i));
212
- },
213
- H: function(a, i) {
214
- a.setHours(parseFloat(i));
215
- },
216
- J: function(a, i) {
217
- a.setDate(parseFloat(i));
218
- },
219
- K: function(a, i, e) {
220
- a.setHours(a.getHours() % 12 + 12 * oe(new RegExp(e.amPM[1], "i").test(i)));
221
- },
222
- M: function(a, i, e) {
223
- a.setMonth(e.months.shorthand.indexOf(i));
224
- },
225
- S: function(a, i) {
226
- a.setSeconds(parseFloat(i));
227
- },
228
- U: function(a, i) {
229
- return new Date(parseFloat(i) * 1e3);
230
- },
231
- W: function(a, i, e) {
232
- var c = parseInt(i), f = new Date(a.getFullYear(), 0, 2 + (c - 1) * 7, 0, 0, 0, 0);
233
- return f.setDate(f.getDate() - f.getDay() + e.firstDayOfWeek), f;
234
- },
235
- Y: function(a, i) {
236
- a.setFullYear(parseFloat(i));
237
- },
238
- Z: function(a, i) {
239
- return new Date(i);
240
- },
241
- d: function(a, i) {
242
- a.setDate(parseFloat(i));
243
- },
244
- h: function(a, i) {
245
- a.setHours((a.getHours() >= 12 ? 12 : 0) + parseFloat(i));
246
- },
247
- i: function(a, i) {
248
- a.setMinutes(parseFloat(i));
249
- },
250
- j: function(a, i) {
251
- a.setDate(parseFloat(i));
252
- },
253
- l: Je,
254
- m: function(a, i) {
255
- a.setMonth(parseFloat(i) - 1);
256
- },
257
- n: function(a, i) {
258
- a.setMonth(parseFloat(i) - 1);
259
- },
260
- s: function(a, i) {
261
- a.setSeconds(parseFloat(i));
262
- },
263
- u: function(a, i) {
264
- return new Date(parseFloat(i));
265
- },
266
- w: Je,
267
- y: function(a, i) {
268
- a.setFullYear(2e3 + parseFloat(i));
269
- }
270
- }, ve = {
271
- D: "",
272
- F: "",
273
- G: "(\\d\\d|\\d)",
274
- H: "(\\d\\d|\\d)",
275
- J: "(\\d\\d|\\d)\\w+",
276
- K: "",
277
- M: "",
278
- S: "(\\d\\d|\\d)",
279
- U: "(.+)",
280
- W: "(\\d\\d|\\d)",
281
- Y: "(\\d{4})",
282
- Z: "(.+)",
283
- d: "(\\d\\d|\\d)",
284
- h: "(\\d\\d|\\d)",
285
- i: "(\\d\\d|\\d)",
286
- j: "(\\d\\d|\\d)",
287
- l: "",
288
- m: "(\\d\\d|\\d)",
289
- n: "(\\d\\d|\\d)",
290
- s: "(\\d\\d|\\d)",
291
- u: "(.+)",
292
- w: "(\\d\\d|\\d)",
293
- y: "(\\d{2})"
294
- }, Ee = {
295
- Z: function(a) {
296
- return a.toISOString();
297
- },
298
- D: function(a, i, e) {
299
- return i.weekdays.shorthand[Ee.w(a, i, e)];
300
- },
301
- F: function(a, i, e) {
302
- return He(Ee.n(a, i, e) - 1, !1, i);
303
- },
304
- G: function(a, i, e) {
305
- return Q(Ee.h(a, i, e));
306
- },
307
- H: function(a) {
308
- return Q(a.getHours());
309
- },
310
- J: function(a, i) {
311
- return i.ordinal !== void 0 ? a.getDate() + i.ordinal(a.getDate()) : a.getDate();
312
- },
313
- K: function(a, i) {
314
- return i.amPM[oe(a.getHours() > 11)];
315
- },
316
- M: function(a, i) {
317
- return He(a.getMonth(), !0, i);
318
- },
319
- S: function(a) {
320
- return Q(a.getSeconds());
321
- },
322
- U: function(a) {
323
- return a.getTime() / 1e3;
324
- },
325
- W: function(a, i, e) {
326
- return e.getWeek(a);
327
- },
328
- Y: function(a) {
329
- return Q(a.getFullYear(), 4);
330
- },
331
- d: function(a) {
332
- return Q(a.getDate());
333
- },
334
- h: function(a) {
335
- return a.getHours() % 12 ? a.getHours() % 12 : 12;
336
- },
337
- i: function(a) {
338
- return Q(a.getMinutes());
339
- },
340
- j: function(a) {
341
- return a.getDate();
342
- },
343
- l: function(a, i) {
344
- return i.weekdays.longhand[a.getDay()];
345
- },
346
- m: function(a) {
347
- return Q(a.getMonth() + 1);
348
- },
349
- n: function(a) {
350
- return a.getMonth() + 1;
351
- },
352
- s: function(a) {
353
- return a.getSeconds();
354
- },
355
- u: function(a) {
356
- return a.getTime();
357
- },
358
- w: function(a) {
359
- return a.getDay();
360
- },
361
- y: function(a) {
362
- return String(a.getFullYear()).substring(2);
363
- }
364
- }, xn = function(a) {
365
- var i = a.config, e = i === void 0 ? De : i, c = a.l10n, f = c === void 0 ? Te : c, p = a.isMobile, D = p === void 0 ? !1 : p;
366
- return function(I, N, L) {
367
- var y = L || f;
368
- return e.formatDate !== void 0 && !D ? e.formatDate(I, N, y) : N.split("").map(function(C, R, A) {
369
- return Ee[C] && A[R - 1] !== "\\" ? Ee[C](I, y, e) : C !== "\\" ? C : "";
370
- }).join("");
371
- };
372
- }, en = function(a) {
373
- var i = a.config, e = i === void 0 ? De : i, c = a.l10n, f = c === void 0 ? Te : c;
374
- return function(p, D, I, N) {
375
- if (!(p !== 0 && !p)) {
376
- var L = N || f, y, C = p;
377
- if (p instanceof Date)
378
- y = new Date(p.getTime());
379
- else if (typeof p != "string" && p.toFixed !== void 0)
380
- y = new Date(p);
381
- else if (typeof p == "string") {
382
- var R = D || (e || De).dateFormat, A = String(p).trim();
383
- if (A === "today")
384
- y = /* @__PURE__ */ new Date(), I = !0;
385
- else if (e && e.parseDate)
386
- y = e.parseDate(p, R);
387
- else if (/Z$/.test(A) || /GMT$/.test(A))
388
- y = new Date(p);
389
- else {
390
- for (var Y = void 0, h = [], q = 0, V = 0, B = ""; q < R.length; q++) {
391
- var Z = R[q], ue = Z === "\\", pe = R[q - 1] === "\\" || ue;
392
- if (ve[Z] && !pe) {
393
- B += ve[Z];
394
- var le = new RegExp(B).exec(p);
395
- le && (Y = !0) && h[Z !== "Y" ? "push" : "unshift"]({
396
- fn: et[Z],
397
- val: le[++V]
398
- });
399
- } else ue || (B += ".");
400
- }
401
- y = !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)), h.forEach(function(se) {
402
- var fe = se.fn, me = se.val;
403
- return y = fe(y, me, L) || y;
404
- }), y = Y ? y : void 0;
405
- }
406
- }
407
- if (!(y instanceof Date && !isNaN(y.getTime()))) {
408
- e.errorHandler(new Error("Invalid date provided: " + C));
409
- return;
410
- }
411
- return I === !0 && y.setHours(0, 0, 0, 0), y;
412
- }
413
- };
414
- };
415
- function ae(a, i, e) {
416
- return e === void 0 && (e = !0), e !== !1 ? new Date(a.getTime()).setHours(0, 0, 0, 0) - new Date(i.getTime()).setHours(0, 0, 0, 0) : a.getTime() - i.getTime();
417
- }
418
- var nt = function(a, i, e) {
419
- return a > Math.min(i, e) && a < Math.max(i, e);
420
- }, Ve = function(a, i, e) {
421
- return a * 3600 + i * 60 + e;
422
- }, tt = function(a) {
423
- var i = Math.floor(a / 3600), e = (a - i * 3600) / 60;
424
- return [i, e, a - i * 3600 - e * 60];
425
- }, at = {
426
- DAY: 864e5
427
- };
428
- function Ge(a) {
429
- var i = a.defaultHour, e = a.defaultMinute, c = a.defaultSeconds;
430
- if (a.minDate !== void 0) {
431
- var f = a.minDate.getHours(), p = a.minDate.getMinutes(), D = a.minDate.getSeconds();
432
- i < f && (i = f), i === f && e < p && (e = p), i === f && e === p && c < D && (c = a.minDate.getSeconds());
433
- }
434
- if (a.maxDate !== void 0) {
435
- var I = a.maxDate.getHours(), N = a.maxDate.getMinutes();
436
- i = Math.min(i, I), i === I && (e = Math.min(N, e)), i === I && e === N && (c = a.maxDate.getSeconds());
437
- }
438
- return { hours: i, minutes: e, seconds: c };
439
- }
440
- typeof Object.assign != "function" && (Object.assign = function(a) {
441
- for (var i = [], e = 1; e < arguments.length; e++)
442
- i[e - 1] = arguments[e];
443
- if (!a)
444
- throw TypeError("Cannot convert undefined or null to object");
445
- for (var c = function(I) {
446
- I && Object.keys(I).forEach(function(N) {
447
- return a[N] = I[N];
448
- });
449
- }, f = 0, p = i; f < p.length; f++) {
450
- var D = p[f];
451
- c(D);
452
- }
453
- return a;
454
- });
455
- var J = function() {
456
- return J = Object.assign || function(a) {
457
- for (var i, e = 1, c = arguments.length; e < c; e++) {
458
- i = arguments[e];
459
- for (var f in i) Object.prototype.hasOwnProperty.call(i, f) && (a[f] = i[f]);
460
- }
461
- return a;
462
- }, J.apply(this, arguments);
463
- }, vn = function() {
464
- for (var a = 0, i = 0, e = arguments.length; i < e; i++) a += arguments[i].length;
465
- for (var c = Array(a), f = 0, i = 0; i < e; i++)
466
- for (var p = arguments[i], D = 0, I = p.length; D < I; D++, f++)
467
- c[f] = p[D];
468
- return c;
469
- }, rt = 300;
470
- function it(a, i) {
471
- var e = {
472
- config: J(J({}, De), K.defaultConfig),
473
- l10n: Te
474
- };
475
- e.parseDate = en({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = h, e._setHoursFromDate = R, e._positionCalendar = Oe, e.changeMonth = x, e.changeYear = re, e.clear = T, e.close = w, e.onMouseOver = ke, e._createElement = j, e.createDay = le, e.destroy = P, e.isEnabled = ee, e.jumpToDate = B, e.updateValue = de, e.open = On, e.redraw = ln, e.set = Pn, e.setDate = An, e.toggle = Yn;
476
- function c() {
477
- e.utils = {
478
- getDaysInMonth: function(n, t) {
479
- 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];
480
- }
481
- };
482
- }
483
- function f() {
484
- e.element = e.input = a, e.isOpen = !1, Sn(), un(), jn(), Fn(), c(), e.isMobile || pe(), V(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && R(e.config.noCalendar ? e.latestSelectedDateObj : void 0), de(!1)), I();
485
- var n = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
486
- !e.isMobile && n && Oe(), W("onReady");
487
- }
488
- function p() {
489
- var n;
490
- return ((n = e.calendarContainer) === null || n === void 0 ? void 0 : n.getRootNode()).activeElement || document.activeElement;
491
- }
492
- function D(n) {
493
- return n.bind(e);
494
- }
495
- function I() {
496
- var n = e.config;
497
- n.weekNumbers === !1 && n.showMonths === 1 || n.noCalendar !== !0 && window.requestAnimationFrame(function() {
498
- if (e.calendarContainer !== void 0 && (e.calendarContainer.style.visibility = "hidden", e.calendarContainer.style.display = "block"), e.daysContainer !== void 0) {
499
- var t = (e.days.offsetWidth + 1) * n.showMonths;
500
- 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");
501
- }
502
- });
503
- }
504
- function N(n) {
505
- if (e.selectedDates.length === 0) {
506
- var t = e.config.minDate === void 0 || ae(/* @__PURE__ */ new Date(), e.config.minDate) >= 0 ? /* @__PURE__ */ new Date() : new Date(e.config.minDate.getTime()), r = Ge(e.config);
507
- t.setHours(r.hours, r.minutes, r.seconds, t.getMilliseconds()), e.selectedDates = [t], e.latestSelectedDateObj = t;
508
- }
509
- n !== void 0 && n.type !== "blur" && Rn(n);
510
- var o = e._input.value;
511
- C(), de(), e._input.value !== o && e._debouncedChange();
512
- }
513
- function L(n, t) {
514
- return n % 12 + 12 * oe(t === e.l10n.amPM[1]);
515
- }
516
- function y(n) {
517
- switch (n % 24) {
518
- case 0:
519
- case 12:
520
- return 12;
521
- default:
522
- return n % 12;
523
- }
524
- }
525
- function C() {
526
- if (!(e.hourElement === void 0 || e.minuteElement === void 0)) {
527
- var n = (parseInt(e.hourElement.value.slice(-2), 10) || 0) % 24, t = (parseInt(e.minuteElement.value, 10) || 0) % 60, r = e.secondElement !== void 0 ? (parseInt(e.secondElement.value, 10) || 0) % 60 : 0;
528
- e.amPM !== void 0 && (n = L(n, e.amPM.textContent));
529
- var o = e.config.minTime !== void 0 || e.config.minDate && e.minDateHasTime && e.latestSelectedDateObj && ae(e.latestSelectedDateObj, e.config.minDate, !0) === 0, u = e.config.maxTime !== void 0 || e.config.maxDate && e.maxDateHasTime && e.latestSelectedDateObj && ae(e.latestSelectedDateObj, e.config.maxDate, !0) === 0;
530
- if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
531
- var s = Ve(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), b = Ve(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), g = Ve(n, t, r);
532
- if (g > b && g < s) {
533
- var M = tt(s);
534
- n = M[0], t = M[1], r = M[2];
535
- }
536
- } else {
537
- if (u) {
538
- var d = e.config.maxTime !== void 0 ? e.config.maxTime : e.config.maxDate;
539
- n = Math.min(n, d.getHours()), n === d.getHours() && (t = Math.min(t, d.getMinutes())), t === d.getMinutes() && (r = Math.min(r, d.getSeconds()));
540
- }
541
- if (o) {
542
- var v = e.config.minTime !== void 0 ? e.config.minTime : e.config.minDate;
543
- n = Math.max(n, v.getHours()), n === v.getHours() && t < v.getMinutes() && (t = v.getMinutes()), t === v.getMinutes() && (r = Math.max(r, v.getSeconds()));
544
- }
545
- }
546
- A(n, t, r);
547
- }
548
- }
549
- function R(n) {
550
- var t = n || e.latestSelectedDateObj;
551
- t && t instanceof Date && A(t.getHours(), t.getMinutes(), t.getSeconds());
552
- }
553
- function A(n, t, r) {
554
- e.latestSelectedDateObj !== void 0 && e.latestSelectedDateObj.setHours(n % 24, t, r || 0, 0), !(!e.hourElement || !e.minuteElement || e.isMobile) && (e.hourElement.value = Q(e.config.time_24hr ? n : (12 + n) % 12 + 12 * oe(n % 12 === 0)), e.minuteElement.value = Q(t), e.amPM !== void 0 && (e.amPM.textContent = e.l10n.amPM[oe(n >= 12)]), e.secondElement !== void 0 && (e.secondElement.value = Q(r)));
555
- }
556
- function Y(n) {
557
- var t = te(n), r = parseInt(t.value) + (n.delta || 0);
558
- (r / 1e3 > 1 || n.key === "Enter" && !/[^\d]/.test(r.toString())) && re(r);
559
- }
560
- function h(n, t, r, o) {
561
- if (t instanceof Array)
562
- return t.forEach(function(u) {
563
- return h(n, u, r, o);
564
- });
565
- if (n instanceof Array)
566
- return n.forEach(function(u) {
567
- return h(u, t, r, o);
568
- });
569
- n.addEventListener(t, r, o), e._handlers.push({
570
- remove: function() {
571
- return n.removeEventListener(t, r, o);
572
- }
573
- });
574
- }
575
- function q() {
576
- W("onChange");
577
- }
578
- function V() {
579
- if (e.config.wrap && ["open", "close", "toggle", "clear"].forEach(function(r) {
580
- Array.prototype.forEach.call(e.element.querySelectorAll("[data-" + r + "]"), function(o) {
581
- return h(o, "click", e[r]);
582
- });
583
- }), e.isMobile) {
584
- Nn();
585
- return;
586
- }
587
- var n = hn(kn, 50);
588
- if (e._debouncedChange = hn(q, rt), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && h(e.daysContainer, "mouseover", function(r) {
589
- e.config.mode === "range" && ke(te(r));
590
- }), h(e._input, "keydown", an), e.calendarContainer !== void 0 && h(e.calendarContainer, "keydown", an), !e.config.inline && !e.config.static && h(window, "resize", n), window.ontouchstart !== void 0 ? h(window.document, "touchstart", F) : h(window.document, "mousedown", F), h(window.document, "focus", F, { capture: !0 }), e.config.clickOpens === !0 && (h(e._input, "focus", e.open), h(e._input, "click", e.open)), e.daysContainer !== void 0 && (h(e.monthNav, "click", Ln), h(e.monthNav, ["keyup", "increment"], Y), h(e.daysContainer, "click", fn)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
591
- var t = function(r) {
592
- return te(r).select();
593
- };
594
- h(e.timeContainer, ["increment"], N), h(e.timeContainer, "blur", N, { capture: !0 }), h(e.timeContainer, "click", Z), h([e.hourElement, e.minuteElement], ["focus", "click"], t), e.secondElement !== void 0 && h(e.secondElement, "focus", function() {
595
- return e.secondElement && e.secondElement.select();
596
- }), e.amPM !== void 0 && h(e.amPM, "click", function(r) {
597
- N(r);
598
- });
599
- }
600
- e.config.allowInput && h(e._input, "blur", Tn);
601
- }
602
- function B(n, t) {
603
- var r = 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), o = e.currentYear, u = e.currentMonth;
604
- try {
605
- r !== void 0 && (e.currentYear = r.getFullYear(), e.currentMonth = r.getMonth());
606
- } catch (s) {
607
- s.message = "Invalid date supplied: " + r, e.config.errorHandler(s);
608
- }
609
- t && e.currentYear !== o && (W("onYearChange"), U()), t && (e.currentYear !== o || e.currentMonth !== u) && W("onMonthChange"), e.redraw();
610
- }
611
- function Z(n) {
612
- var t = te(n);
613
- ~t.className.indexOf("arrow") && ue(n, t.classList.contains("arrowUp") ? 1 : -1);
614
- }
615
- function ue(n, t, r) {
616
- var o = n && te(n), u = r || o && o.parentNode && o.parentNode.firstChild, s = Re("increment");
617
- s.delta = t, u && u.dispatchEvent(s);
618
- }
619
- function pe() {
620
- var n = window.document.createDocumentFragment();
621
- if (e.calendarContainer = j("div", "flatpickr-calendar"), e.calendarContainer.tabIndex = -1, !e.config.noCalendar) {
622
- if (n.appendChild(l()), e.innerContainer = j("div", "flatpickr-innerContainer"), e.config.weekNumbers) {
623
- var t = E(), r = t.weekWrapper, o = t.weekNumbers;
624
- e.innerContainer.appendChild(r), e.weekNumbers = o, e.weekWrapper = r;
625
- }
626
- e.rContainer = j("div", "flatpickr-rContainer"), e.rContainer.appendChild(_()), e.daysContainer || (e.daysContainer = j("div", "flatpickr-days"), e.daysContainer.tabIndex = -1), G(), e.rContainer.appendChild(e.daysContainer), e.innerContainer.appendChild(e.rContainer), n.appendChild(e.innerContainer);
627
- }
628
- e.config.enableTime && n.appendChild(m()), z(e.calendarContainer, "rangeMode", e.config.mode === "range"), z(e.calendarContainer, "animate", e.config.animate === !0), z(e.calendarContainer, "multiMonth", e.config.showMonths > 1), e.calendarContainer.appendChild(n);
629
- var u = e.config.appendTo !== void 0 && e.config.appendTo.nodeType !== void 0;
630
- if ((e.config.inline || e.config.static) && (e.calendarContainer.classList.add(e.config.inline ? "inline" : "static"), e.config.inline && (!u && 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)) {
631
- var s = j("div", "flatpickr-wrapper");
632
- e.element.parentNode && e.element.parentNode.insertBefore(s, e.element), s.appendChild(e.element), e.altInput && s.appendChild(e.altInput), s.appendChild(e.calendarContainer);
633
- }
634
- !e.config.static && !e.config.inline && (e.config.appendTo !== void 0 ? e.config.appendTo : window.document.body).appendChild(e.calendarContainer);
635
- }
636
- function le(n, t, r, o) {
637
- var u = ee(t, !0), s = j("span", n, t.getDate().toString());
638
- return s.dateObj = t, s.$i = o, s.setAttribute("aria-label", e.formatDate(t, e.config.ariaDateFormat)), n.indexOf("hidden") === -1 && ae(t, e.now) === 0 && (e.todayDateElem = s, s.classList.add("today"), s.setAttribute("aria-current", "date")), u ? (s.tabIndex = -1, We(t) && (s.classList.add("selected"), e.selectedDateElem = s, e.config.mode === "range" && (z(s, "startRange", e.selectedDates[0] && ae(t, e.selectedDates[0], !0) === 0), z(s, "endRange", e.selectedDates[1] && ae(t, e.selectedDates[1], !0) === 0), n === "nextMonthDay" && s.classList.add("inRange")))) : s.classList.add("flatpickr-disabled"), e.config.mode === "range" && Hn(t) && !We(t) && s.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && n !== "prevMonthDay" && o % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(t) + "</span>"), W("onDayCreate", s), s;
639
- }
640
- function se(n) {
641
- n.focus(), e.config.mode === "range" && ke(n);
642
- }
643
- function fe(n) {
644
- for (var t = n > 0 ? 0 : e.config.showMonths - 1, r = n > 0 ? e.config.showMonths : -1, o = t; o != r; o += n)
645
- for (var u = e.daysContainer.children[o], s = n > 0 ? 0 : u.children.length - 1, b = n > 0 ? u.children.length : -1, g = s; g != b; g += n) {
646
- var M = u.children[g];
647
- if (M.className.indexOf("hidden") === -1 && ee(M.dateObj))
648
- return M;
649
- }
650
- }
651
- function me(n, t) {
652
- for (var r = n.className.indexOf("Month") === -1 ? n.dateObj.getMonth() : e.currentMonth, o = t > 0 ? e.config.showMonths : -1, u = t > 0 ? 1 : -1, s = r - e.currentMonth; s != o; s += u)
653
- for (var b = e.daysContainer.children[s], g = r - e.currentMonth === s ? n.$i + t : t < 0 ? b.children.length - 1 : 0, M = b.children.length, d = g; d >= 0 && d < M && d != (t > 0 ? M : -1); d += u) {
654
- var v = b.children[d];
655
- if (v.className.indexOf("hidden") === -1 && ee(v.dateObj) && Math.abs(n.$i - d) >= Math.abs(t))
656
- return se(v);
657
- }
658
- e.changeMonth(u), X(fe(u), 0);
659
- }
660
- function X(n, t) {
661
- var r = p(), o = he(r || document.body), u = n !== void 0 ? n : o ? r : e.selectedDateElem !== void 0 && he(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && he(e.todayDateElem) ? e.todayDateElem : fe(t > 0 ? 1 : -1);
662
- u === void 0 ? e._input.focus() : o ? me(u, t) : se(u);
663
- }
664
- function we(n, t) {
665
- for (var r = (new Date(n, t, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, o = e.utils.getDaysInMonth((t - 1 + 12) % 12, n), u = e.utils.getDaysInMonth(t, n), s = window.document.createDocumentFragment(), b = e.config.showMonths > 1, g = b ? "prevMonthDay hidden" : "prevMonthDay", M = b ? "nextMonthDay hidden" : "nextMonthDay", d = o + 1 - r, v = 0; d <= o; d++, v++)
666
- s.appendChild(le("flatpickr-day " + g, new Date(n, t - 1, d), d, v));
667
- for (d = 1; d <= u; d++, v++)
668
- s.appendChild(le("flatpickr-day", new Date(n, t, d), d, v));
669
- for (var H = u + 1; H <= 42 - r && (e.config.showMonths === 1 || v % 7 !== 0); H++, v++)
670
- s.appendChild(le("flatpickr-day " + M, new Date(n, t + 1, H % u), H, v));
671
- var ce = j("div", "dayContainer");
672
- return ce.appendChild(s), ce;
673
- }
674
- function G() {
675
- if (e.daysContainer !== void 0) {
676
- Fe(e.daysContainer), e.weekNumbers && Fe(e.weekNumbers);
677
- for (var n = document.createDocumentFragment(), t = 0; t < e.config.showMonths; t++) {
678
- var r = new Date(e.currentYear, e.currentMonth, 1);
679
- r.setMonth(e.currentMonth + t), n.appendChild(we(r.getFullYear(), r.getMonth()));
680
- }
681
- e.daysContainer.appendChild(n), e.days = e.daysContainer.firstChild, e.config.mode === "range" && e.selectedDates.length === 1 && ke();
682
- }
683
- }
684
- function U() {
685
- if (!(e.config.showMonths > 1 || e.config.monthSelectorType !== "dropdown")) {
686
- var n = function(o) {
687
- return e.config.minDate !== void 0 && e.currentYear === e.config.minDate.getFullYear() && o < e.config.minDate.getMonth() ? !1 : !(e.config.maxDate !== void 0 && e.currentYear === e.config.maxDate.getFullYear() && o > e.config.maxDate.getMonth());
688
- };
689
- e.monthsDropdownContainer.tabIndex = -1, e.monthsDropdownContainer.innerHTML = "";
690
- for (var t = 0; t < 12; t++)
691
- if (n(t)) {
692
- var r = j("option", "flatpickr-monthDropdown-month");
693
- r.value = new Date(e.currentYear, t).getMonth().toString(), r.textContent = He(t, e.config.shorthandCurrentMonth, e.l10n), r.tabIndex = -1, e.currentMonth === t && (r.selected = !0), e.monthsDropdownContainer.appendChild(r);
694
- }
695
- }
696
- }
697
- function Ce() {
698
- var n = j("div", "flatpickr-month"), t = window.document.createDocumentFragment(), r;
699
- e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? r = j("span", "cur-month") : (e.monthsDropdownContainer = j("select", "flatpickr-monthDropdown-months"), e.monthsDropdownContainer.setAttribute("aria-label", e.l10n.monthAriaLabel), h(e.monthsDropdownContainer, "change", function(b) {
700
- var g = te(b), M = parseInt(g.value, 10);
701
- e.changeMonth(M - e.currentMonth), W("onMonthChange");
702
- }), U(), r = e.monthsDropdownContainer);
703
- var o = je("cur-year", { tabindex: "-1" }), u = o.getElementsByTagName("input")[0];
704
- u.setAttribute("aria-label", e.l10n.yearAriaLabel), e.config.minDate && u.setAttribute("min", e.config.minDate.getFullYear().toString()), e.config.maxDate && (u.setAttribute("max", e.config.maxDate.getFullYear().toString()), u.disabled = !!e.config.minDate && e.config.minDate.getFullYear() === e.config.maxDate.getFullYear());
705
- var s = j("div", "flatpickr-current-month");
706
- return s.appendChild(r), s.appendChild(o), t.appendChild(s), n.appendChild(t), {
707
- container: n,
708
- yearElement: u,
709
- monthElement: r
710
- };
711
- }
712
- function ge() {
713
- Fe(e.monthNav), e.monthNav.appendChild(e.prevMonthNav), e.config.showMonths && (e.yearElements = [], e.monthElements = []);
714
- for (var n = e.config.showMonths; n--; ) {
715
- var t = Ce();
716
- e.yearElements.push(t.yearElement), e.monthElements.push(t.monthElement), e.monthNav.appendChild(t.container);
717
- }
718
- e.monthNav.appendChild(e.nextMonthNav);
719
- }
720
- function l() {
721
- return e.monthNav = j("div", "flatpickr-months"), e.yearElements = [], e.monthElements = [], e.prevMonthNav = j("span", "flatpickr-prev-month"), e.prevMonthNav.innerHTML = e.config.prevArrow, e.nextMonthNav = j("span", "flatpickr-next-month"), e.nextMonthNav.innerHTML = e.config.nextArrow, ge(), Object.defineProperty(e, "_hidePrevMonthArrow", {
722
- get: function() {
723
- return e.__hidePrevMonthArrow;
724
- },
725
- set: function(n) {
726
- e.__hidePrevMonthArrow !== n && (z(e.prevMonthNav, "flatpickr-disabled", n), e.__hidePrevMonthArrow = n);
727
- }
728
- }), Object.defineProperty(e, "_hideNextMonthArrow", {
729
- get: function() {
730
- return e.__hideNextMonthArrow;
731
- },
732
- set: function(n) {
733
- e.__hideNextMonthArrow !== n && (z(e.nextMonthNav, "flatpickr-disabled", n), e.__hideNextMonthArrow = n);
734
- }
735
- }), e.currentYearElement = e.yearElements[0], Ie(), e.monthNav;
736
- }
737
- function m() {
738
- e.calendarContainer.classList.add("hasTime"), e.config.noCalendar && e.calendarContainer.classList.add("noCalendar");
739
- var n = Ge(e.config);
740
- e.timeContainer = j("div", "flatpickr-time"), e.timeContainer.tabIndex = -1;
741
- var t = j("span", "flatpickr-time-separator", ":"), r = je("flatpickr-hour", {
742
- "aria-label": e.l10n.hourAriaLabel
743
- });
744
- e.hourElement = r.getElementsByTagName("input")[0];
745
- var o = je("flatpickr-minute", {
746
- "aria-label": e.l10n.minuteAriaLabel
747
- });
748
- if (e.minuteElement = o.getElementsByTagName("input")[0], e.hourElement.tabIndex = e.minuteElement.tabIndex = -1, e.hourElement.value = Q(e.latestSelectedDateObj ? e.latestSelectedDateObj.getHours() : e.config.time_24hr ? n.hours : y(n.hours)), e.minuteElement.value = Q(e.latestSelectedDateObj ? e.latestSelectedDateObj.getMinutes() : n.minutes), 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.hourElement.setAttribute("maxlength", "2"), e.minuteElement.setAttribute("min", "0"), e.minuteElement.setAttribute("max", "59"), e.minuteElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(r), e.timeContainer.appendChild(t), e.timeContainer.appendChild(o), e.config.time_24hr && e.timeContainer.classList.add("time24hr"), e.config.enableSeconds) {
749
- e.timeContainer.classList.add("hasSeconds");
750
- var u = je("flatpickr-second");
751
- e.secondElement = u.getElementsByTagName("input")[0], e.secondElement.value = Q(e.latestSelectedDateObj ? e.latestSelectedDateObj.getSeconds() : n.seconds), e.secondElement.setAttribute("step", e.minuteElement.getAttribute("step")), e.secondElement.setAttribute("min", "0"), e.secondElement.setAttribute("max", "59"), e.secondElement.setAttribute("maxlength", "2"), e.timeContainer.appendChild(j("span", "flatpickr-time-separator", ":")), e.timeContainer.appendChild(u);
752
- }
753
- return e.config.time_24hr || (e.amPM = j("span", "flatpickr-am-pm", e.l10n.amPM[oe((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;
754
- }
755
- function _() {
756
- e.weekdayContainer ? Fe(e.weekdayContainer) : e.weekdayContainer = j("div", "flatpickr-weekdays");
757
- for (var n = e.config.showMonths; n--; ) {
758
- var t = j("div", "flatpickr-weekdaycontainer");
759
- e.weekdayContainer.appendChild(t);
760
- }
761
- return S(), e.weekdayContainer;
762
- }
763
- function S() {
764
- if (e.weekdayContainer) {
765
- var n = e.l10n.firstDayOfWeek, t = vn(e.l10n.weekdays.shorthand);
766
- n > 0 && n < t.length && (t = vn(t.splice(n, t.length), t.splice(0, n)));
767
- for (var r = e.config.showMonths; r--; )
768
- e.weekdayContainer.children[r].innerHTML = `
769
- <span class='flatpickr-weekday'>
770
- ` + t.join("</span><span class='flatpickr-weekday'>") + `
771
- </span>
772
- `;
773
- }
774
- }
775
- function E() {
776
- e.calendarContainer.classList.add("hasWeeks");
777
- var n = j("div", "flatpickr-weekwrapper");
778
- n.appendChild(j("span", "flatpickr-weekday", e.l10n.weekAbbreviation));
779
- var t = j("div", "flatpickr-weeks");
780
- return n.appendChild(t), {
781
- weekWrapper: n,
782
- weekNumbers: t
783
- };
784
- }
785
- function x(n, t) {
786
- t === void 0 && (t = !0);
787
- var r = t ? n : n - e.currentMonth;
788
- r < 0 && e._hidePrevMonthArrow === !0 || r > 0 && e._hideNextMonthArrow === !0 || (e.currentMonth += r, (e.currentMonth < 0 || e.currentMonth > 11) && (e.currentYear += e.currentMonth > 11 ? 1 : -1, e.currentMonth = (e.currentMonth + 12) % 12, W("onYearChange"), U()), G(), W("onMonthChange"), Ie());
789
- }
790
- function T(n, t) {
791
- if (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.config.enableTime === !0) {
792
- var r = Ge(e.config), o = r.hours, u = r.minutes, s = r.seconds;
793
- A(o, u, s);
794
- }
795
- e.redraw(), n && W("onChange");
796
- }
797
- function w() {
798
- e.isOpen = !1, e.isMobile || (e.calendarContainer !== void 0 && e.calendarContainer.classList.remove("open"), e._input !== void 0 && e._input.classList.remove("active")), W("onClose");
799
- }
800
- function P() {
801
- e.config !== void 0 && W("onDestroy");
802
- for (var n = e._handlers.length; n--; )
803
- e._handlers[n].remove();
804
- if (e._handlers = [], e.mobileInput)
805
- e.mobileInput.parentNode && e.mobileInput.parentNode.removeChild(e.mobileInput), e.mobileInput = void 0;
806
- else if (e.calendarContainer && e.calendarContainer.parentNode)
807
- if (e.config.static && e.calendarContainer.parentNode) {
808
- var t = e.calendarContainer.parentNode;
809
- if (t.lastChild && t.removeChild(t.lastChild), t.parentNode) {
810
- for (; t.firstChild; )
811
- t.parentNode.insertBefore(t.firstChild, t);
812
- t.parentNode.removeChild(t);
813
- }
814
- } else
815
- e.calendarContainer.parentNode.removeChild(e.calendarContainer);
816
- 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")), [
817
- "_showTimeInput",
818
- "latestSelectedDateObj",
819
- "_hideNextMonthArrow",
820
- "_hidePrevMonthArrow",
821
- "__hideNextMonthArrow",
822
- "__hidePrevMonthArrow",
823
- "isMobile",
824
- "isOpen",
825
- "selectedDateElem",
826
- "minDateHasTime",
827
- "maxDateHasTime",
828
- "days",
829
- "daysContainer",
830
- "_input",
831
- "_positionElement",
832
- "innerContainer",
833
- "rContainer",
834
- "monthNav",
835
- "todayDateElem",
836
- "calendarContainer",
837
- "weekdayContainer",
838
- "prevMonthNav",
839
- "nextMonthNav",
840
- "monthsDropdownContainer",
841
- "currentMonthElement",
842
- "currentYearElement",
843
- "navigationCurrentMonth",
844
- "selectedDateElem",
845
- "config"
846
- ].forEach(function(r) {
847
- try {
848
- delete e[r];
849
- } catch {
850
- }
851
- });
852
- }
853
- function k(n) {
854
- return e.calendarContainer.contains(n);
855
- }
856
- function F(n) {
857
- if (e.isOpen && !e.config.inline) {
858
- var t = te(n), r = k(t), o = t === e.input || t === e.altInput || e.element.contains(t) || n.path && n.path.indexOf && (~n.path.indexOf(e.input) || ~n.path.indexOf(e.altInput)), u = !o && !r && !k(n.relatedTarget), s = !e.config.ignoredFocusElements.some(function(b) {
859
- return b.contains(t);
860
- });
861
- u && s && (e.config.allowInput && e.setDate(e._input.value, !1, e.config.altInput ? e.config.altFormat : e.config.dateFormat), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0 && e.input.value !== "" && e.input.value !== void 0 && N(), e.close(), e.config && e.config.mode === "range" && e.selectedDates.length === 1 && e.clear(!1));
862
- }
863
- }
864
- function re(n) {
865
- if (!(!n || e.config.minDate && n < e.config.minDate.getFullYear() || e.config.maxDate && n > e.config.maxDate.getFullYear())) {
866
- var t = n, r = e.currentYear !== t;
867
- 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)), r && (e.redraw(), W("onYearChange"), U());
868
- }
869
- }
870
- function ee(n, t) {
871
- var r;
872
- t === void 0 && (t = !0);
873
- var o = e.parseDate(n, void 0, t);
874
- if (e.config.minDate && o && ae(o, e.config.minDate, t !== void 0 ? t : !e.minDateHasTime) < 0 || e.config.maxDate && o && ae(o, e.config.maxDate, t !== void 0 ? t : !e.maxDateHasTime) > 0)
875
- return !1;
876
- if (!e.config.enable && e.config.disable.length === 0)
877
- return !0;
878
- if (o === void 0)
879
- return !1;
880
- for (var u = !!e.config.enable, s = (r = e.config.enable) !== null && r !== void 0 ? r : e.config.disable, b = 0, g = void 0; b < s.length; b++) {
881
- if (g = s[b], typeof g == "function" && g(o))
882
- return u;
883
- if (g instanceof Date && o !== void 0 && g.getTime() === o.getTime())
884
- return u;
885
- if (typeof g == "string") {
886
- var M = e.parseDate(g, void 0, !0);
887
- return M && M.getTime() === o.getTime() ? u : !u;
888
- } else if (typeof g == "object" && o !== void 0 && g.from && g.to && o.getTime() >= g.from.getTime() && o.getTime() <= g.to.getTime())
889
- return u;
890
- }
891
- return !u;
892
- }
893
- function he(n) {
894
- return e.daysContainer !== void 0 ? n.className.indexOf("hidden") === -1 && n.className.indexOf("flatpickr-disabled") === -1 && e.daysContainer.contains(n) : !1;
895
- }
896
- function Tn(n) {
897
- var t = n.target === e._input, r = e._input.value.trimEnd() !== Be();
898
- t && r && !(n.relatedTarget && k(n.relatedTarget)) && e.setDate(e._input.value, !0, n.target === e.altInput ? e.config.altFormat : e.config.dateFormat);
899
- }
900
- function an(n) {
901
- var t = te(n), r = e.config.wrap ? a.contains(t) : t === e._input, o = e.config.allowInput, u = e.isOpen && (!o || !r), s = e.config.inline && r && !o;
902
- if (n.keyCode === 13 && r) {
903
- if (o)
904
- return e.setDate(e._input.value, !0, t === e.altInput ? e.config.altFormat : e.config.dateFormat), e.close(), t.blur();
905
- e.open();
906
- } else if (k(t) || u || s) {
907
- var b = !!e.timeContainer && e.timeContainer.contains(t);
908
- switch (n.keyCode) {
909
- case 13:
910
- b ? (n.preventDefault(), N(), Le()) : fn(n);
911
- break;
912
- case 27:
913
- n.preventDefault(), Le();
914
- break;
915
- case 8:
916
- case 46:
917
- r && !e.config.allowInput && (n.preventDefault(), e.clear());
918
- break;
919
- case 37:
920
- case 39:
921
- if (!b && !r) {
922
- n.preventDefault();
923
- var g = p();
924
- if (e.daysContainer !== void 0 && (o === !1 || g && he(g))) {
925
- var M = n.keyCode === 39 ? 1 : -1;
926
- n.ctrlKey ? (n.stopPropagation(), x(M), X(fe(1), 0)) : X(void 0, M);
927
- }
928
- } else e.hourElement && e.hourElement.focus();
929
- break;
930
- case 38:
931
- case 40:
932
- n.preventDefault();
933
- var d = n.keyCode === 40 ? 1 : -1;
934
- e.daysContainer && t.$i !== void 0 || t === e.input || t === e.altInput ? n.ctrlKey ? (n.stopPropagation(), re(e.currentYear - d), X(fe(1), 0)) : b || X(void 0, d * 7) : t === e.currentYearElement ? re(e.currentYear - d) : e.config.enableTime && (!b && e.hourElement && e.hourElement.focus(), N(n), e._debouncedChange());
935
- break;
936
- case 9:
937
- if (b) {
938
- var v = [
939
- e.hourElement,
940
- e.minuteElement,
941
- e.secondElement,
942
- e.amPM
943
- ].concat(e.pluginElements).filter(function(ne) {
944
- return ne;
945
- }), H = v.indexOf(t);
946
- if (H !== -1) {
947
- var ce = v[H + (n.shiftKey ? -1 : 1)];
948
- n.preventDefault(), (ce || e._input).focus();
949
- }
950
- } else !e.config.noCalendar && e.daysContainer && e.daysContainer.contains(t) && n.shiftKey && (n.preventDefault(), e._input.focus());
951
- break;
952
- }
953
- }
954
- if (e.amPM !== void 0 && t === e.amPM)
955
- switch (n.key) {
956
- case e.l10n.amPM[0].charAt(0):
957
- case e.l10n.amPM[0].charAt(0).toLowerCase():
958
- e.amPM.textContent = e.l10n.amPM[0], C(), de();
959
- break;
960
- case e.l10n.amPM[1].charAt(0):
961
- case e.l10n.amPM[1].charAt(0).toLowerCase():
962
- e.amPM.textContent = e.l10n.amPM[1], C(), de();
963
- break;
964
- }
965
- (r || k(t)) && W("onKeyDown", n);
966
- }
967
- function ke(n, t) {
968
- if (t === void 0 && (t = "flatpickr-day"), !(e.selectedDates.length !== 1 || n && (!n.classList.contains(t) || n.classList.contains("flatpickr-disabled")))) {
969
- for (var r = n ? n.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), o = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), u = Math.min(r, e.selectedDates[0].getTime()), s = Math.max(r, e.selectedDates[0].getTime()), b = !1, g = 0, M = 0, d = u; d < s; d += at.DAY)
970
- ee(new Date(d), !0) || (b = b || d > u && d < s, d < o && (!g || d > g) ? g = d : d > o && (!M || d < M) && (M = d));
971
- var v = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + t));
972
- v.forEach(function(H) {
973
- var ce = H.dateObj, ne = ce.getTime(), Me = g > 0 && ne < g || M > 0 && ne > M;
974
- if (Me) {
975
- H.classList.add("notAllowed"), ["inRange", "startRange", "endRange"].forEach(function(ye) {
976
- H.classList.remove(ye);
977
- });
978
- return;
979
- } else if (b && !Me)
980
- return;
981
- ["startRange", "inRange", "endRange", "notAllowed"].forEach(function(ye) {
982
- H.classList.remove(ye);
983
- }), n !== void 0 && (n.classList.add(r <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), o < r && ne === o ? H.classList.add("startRange") : o > r && ne === o && H.classList.add("endRange"), ne >= g && (M === 0 || ne <= M) && nt(ne, o, r) && H.classList.add("inRange"));
984
- });
985
- }
986
- }
987
- function kn() {
988
- e.isOpen && !e.config.static && !e.config.inline && Oe();
989
- }
990
- function On(n, t) {
991
- if (t === void 0 && (t = e._positionElement), e.isMobile === !0) {
992
- if (n) {
993
- n.preventDefault();
994
- var r = te(n);
995
- r && r.blur();
996
- }
997
- e.mobileInput !== void 0 && (e.mobileInput.focus(), e.mobileInput.click()), W("onOpen");
998
- return;
999
- } else if (e._input.disabled || e.config.inline)
1000
- return;
1001
- var o = e.isOpen;
1002
- e.isOpen = !0, o || (e.calendarContainer.classList.add("open"), e._input.classList.add("active"), W("onOpen"), Oe(t)), e.config.enableTime === !0 && e.config.noCalendar === !0 && e.config.allowInput === !1 && (n === void 0 || !e.timeContainer.contains(n.relatedTarget)) && setTimeout(function() {
1003
- return e.hourElement.select();
1004
- }, 50);
1005
- }
1006
- function rn(n) {
1007
- return function(t) {
1008
- var r = e.config["_" + n + "Date"] = e.parseDate(t, e.config.dateFormat), o = e.config["_" + (n === "min" ? "max" : "min") + "Date"];
1009
- r !== void 0 && (e[n === "min" ? "minDateHasTime" : "maxDateHasTime"] = r.getHours() > 0 || r.getMinutes() > 0 || r.getSeconds() > 0), e.selectedDates && (e.selectedDates = e.selectedDates.filter(function(u) {
1010
- return ee(u);
1011
- }), !e.selectedDates.length && n === "min" && R(r), de()), e.daysContainer && (ln(), r !== void 0 ? e.currentYearElement[n] = r.getFullYear().toString() : e.currentYearElement.removeAttribute(n), e.currentYearElement.disabled = !!o && r !== void 0 && o.getFullYear() === r.getFullYear());
1012
- };
1013
- }
1014
- function Sn() {
1015
- var n = [
1016
- "wrap",
1017
- "weekNumbers",
1018
- "allowInput",
1019
- "allowInvalidPreload",
1020
- "clickOpens",
1021
- "time_24hr",
1022
- "enableTime",
1023
- "noCalendar",
1024
- "altInput",
1025
- "shorthandCurrentMonth",
1026
- "inline",
1027
- "static",
1028
- "enableSeconds",
1029
- "disableMobile"
1030
- ], t = J(J({}, JSON.parse(JSON.stringify(a.dataset || {}))), i), r = {};
1031
- e.config.parseDate = t.parseDate, e.config.formatDate = t.formatDate, Object.defineProperty(e.config, "enable", {
1032
- get: function() {
1033
- return e.config._enable;
1034
- },
1035
- set: function(v) {
1036
- e.config._enable = cn(v);
1037
- }
1038
- }), Object.defineProperty(e.config, "disable", {
1039
- get: function() {
1040
- return e.config._disable;
1041
- },
1042
- set: function(v) {
1043
- e.config._disable = cn(v);
1044
- }
1045
- });
1046
- var o = t.mode === "time";
1047
- if (!t.dateFormat && (t.enableTime || o)) {
1048
- var u = K.defaultConfig.dateFormat || De.dateFormat;
1049
- r.dateFormat = t.noCalendar || o ? "H:i" + (t.enableSeconds ? ":S" : "") : u + " H:i" + (t.enableSeconds ? ":S" : "");
1050
- }
1051
- if (t.altInput && (t.enableTime || o) && !t.altFormat) {
1052
- var s = K.defaultConfig.altFormat || De.altFormat;
1053
- r.altFormat = t.noCalendar || o ? "h:i" + (t.enableSeconds ? ":S K" : " K") : s + (" h:i" + (t.enableSeconds ? ":S" : "") + " K");
1054
- }
1055
- Object.defineProperty(e.config, "minDate", {
1056
- get: function() {
1057
- return e.config._minDate;
1058
- },
1059
- set: rn("min")
1060
- }), Object.defineProperty(e.config, "maxDate", {
1061
- get: function() {
1062
- return e.config._maxDate;
1063
- },
1064
- set: rn("max")
1065
- });
1066
- var b = function(v) {
1067
- return function(H) {
1068
- e.config[v === "min" ? "_minTime" : "_maxTime"] = e.parseDate(H, "H:i:S");
1069
- };
1070
- };
1071
- Object.defineProperty(e.config, "minTime", {
1072
- get: function() {
1073
- return e.config._minTime;
1074
- },
1075
- set: b("min")
1076
- }), Object.defineProperty(e.config, "maxTime", {
1077
- get: function() {
1078
- return e.config._maxTime;
1079
- },
1080
- set: b("max")
1081
- }), t.mode === "time" && (e.config.noCalendar = !0, e.config.enableTime = !0), Object.assign(e.config, r, t);
1082
- for (var g = 0; g < n.length; g++)
1083
- e.config[n[g]] = e.config[n[g]] === !0 || e.config[n[g]] === "true";
1084
- Ke.filter(function(v) {
1085
- return e.config[v] !== void 0;
1086
- }).forEach(function(v) {
1087
- e.config[v] = Ue(e.config[v] || []).map(D);
1088
- }), e.isMobile = !e.config.disableMobile && !e.config.inline && e.config.mode === "single" && !e.config.disable.length && !e.config.enable && !e.config.weekNumbers && /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);
1089
- for (var g = 0; g < e.config.plugins.length; g++) {
1090
- var M = e.config.plugins[g](e) || {};
1091
- for (var d in M)
1092
- Ke.indexOf(d) > -1 ? e.config[d] = Ue(M[d]).map(D).concat(e.config[d]) : typeof t[d] > "u" && (e.config[d] = M[d]);
1093
- }
1094
- t.altInputClass || (e.config.altInputClass = on().className + " " + e.config.altInputClass), W("onParseConfig");
1095
- }
1096
- function on() {
1097
- return e.config.wrap ? a.querySelector("[data-input]") : a;
1098
- }
1099
- function un() {
1100
- typeof e.config.locale != "object" && typeof K.l10ns[e.config.locale] > "u" && e.config.errorHandler(new Error("flatpickr: invalid locale " + e.config.locale)), e.l10n = J(J({}, K.l10ns.default), typeof e.config.locale == "object" ? e.config.locale : e.config.locale !== "default" ? K.l10ns[e.config.locale] : void 0), ve.D = "(" + e.l10n.weekdays.shorthand.join("|") + ")", ve.l = "(" + e.l10n.weekdays.longhand.join("|") + ")", ve.M = "(" + e.l10n.months.shorthand.join("|") + ")", ve.F = "(" + e.l10n.months.longhand.join("|") + ")", ve.K = "(" + e.l10n.amPM[0] + "|" + e.l10n.amPM[1] + "|" + e.l10n.amPM[0].toLowerCase() + "|" + e.l10n.amPM[1].toLowerCase() + ")";
1101
- var n = J(J({}, i), JSON.parse(JSON.stringify(a.dataset || {})));
1102
- n.time_24hr === void 0 && K.defaultConfig.time_24hr === void 0 && (e.config.time_24hr = e.l10n.time_24hr), e.formatDate = xn(e), e.parseDate = en({ config: e.config, l10n: e.l10n });
1103
- }
1104
- function Oe(n) {
1105
- if (typeof e.config.position == "function")
1106
- return void e.config.position(e, n);
1107
- if (e.calendarContainer !== void 0) {
1108
- W("onPreCalendarPosition");
1109
- var t = n || e._positionElement, r = Array.prototype.reduce.call(e.calendarContainer.children, function(Gn, zn) {
1110
- return Gn + zn.offsetHeight;
1111
- }, 0), o = e.calendarContainer.offsetWidth, u = e.config.position.split(" "), s = u[0], b = u.length > 1 ? u[1] : null, g = t.getBoundingClientRect(), M = window.innerHeight - g.bottom, d = s === "above" || s !== "below" && M < r && g.top > r, v = window.pageYOffset + g.top + (d ? -r - 2 : t.offsetHeight + 2);
1112
- if (z(e.calendarContainer, "arrowTop", !d), z(e.calendarContainer, "arrowBottom", d), !e.config.inline) {
1113
- var H = window.pageXOffset + g.left, ce = !1, ne = !1;
1114
- b === "center" ? (H -= (o - g.width) / 2, ce = !0) : b === "right" && (H -= o - g.width, ne = !0), z(e.calendarContainer, "arrowLeft", !ce && !ne), z(e.calendarContainer, "arrowCenter", ce), z(e.calendarContainer, "arrowRight", ne);
1115
- var Me = window.document.body.offsetWidth - (window.pageXOffset + g.right), ye = H + o > window.document.body.offsetWidth, Wn = Me + o > window.document.body.offsetWidth;
1116
- if (z(e.calendarContainer, "rightMost", ye), !e.config.static)
1117
- if (e.calendarContainer.style.top = v + "px", !ye)
1118
- e.calendarContainer.style.left = H + "px", e.calendarContainer.style.right = "auto";
1119
- else if (!Wn)
1120
- e.calendarContainer.style.left = "auto", e.calendarContainer.style.right = Me + "px";
1121
- else {
1122
- var qe = In();
1123
- if (qe === void 0)
1124
- return;
1125
- var Bn = window.document.body.offsetWidth, qn = Math.max(0, Bn / 2 - o / 2), Kn = ".flatpickr-calendar.centerMost:before", Un = ".flatpickr-calendar.centerMost:after", Jn = qe.cssRules.length, Vn = "{left:" + g.left + "px;right:auto;}";
1126
- z(e.calendarContainer, "rightMost", !1), z(e.calendarContainer, "centerMost", !0), qe.insertRule(Kn + "," + Un + Vn, Jn), e.calendarContainer.style.left = qn + "px", e.calendarContainer.style.right = "auto";
1127
- }
1128
- }
1129
- }
1130
- }
1131
- function In() {
1132
- for (var n = null, t = 0; t < document.styleSheets.length; t++) {
1133
- var r = document.styleSheets[t];
1134
- if (r.cssRules) {
1135
- try {
1136
- r.cssRules;
1137
- } catch {
1138
- continue;
1139
- }
1140
- n = r;
1141
- break;
1142
- }
1143
- }
1144
- return n ?? _n();
1145
- }
1146
- function _n() {
1147
- var n = document.createElement("style");
1148
- return document.head.appendChild(n), n.sheet;
1149
- }
1150
- function ln() {
1151
- e.config.noCalendar || e.isMobile || (U(), Ie(), G());
1152
- }
1153
- function Le() {
1154
- e._input.focus(), window.navigator.userAgent.indexOf("MSIE") !== -1 || navigator.msMaxTouchPoints !== void 0 ? setTimeout(e.close, 0) : e.close();
1155
- }
1156
- function fn(n) {
1157
- n.preventDefault(), n.stopPropagation();
1158
- var t = function(v) {
1159
- return v.classList && v.classList.contains("flatpickr-day") && !v.classList.contains("flatpickr-disabled") && !v.classList.contains("notAllowed");
1160
- }, r = Mn(te(n), t);
1161
- if (r !== void 0) {
1162
- var o = r, u = e.latestSelectedDateObj = new Date(o.dateObj.getTime()), s = (u.getMonth() < e.currentMonth || u.getMonth() > e.currentMonth + e.config.showMonths - 1) && e.config.mode !== "range";
1163
- if (e.selectedDateElem = o, e.config.mode === "single")
1164
- e.selectedDates = [u];
1165
- else if (e.config.mode === "multiple") {
1166
- var b = We(u);
1167
- b ? e.selectedDates.splice(parseInt(b), 1) : e.selectedDates.push(u);
1168
- } else e.config.mode === "range" && (e.selectedDates.length === 2 && e.clear(!1, !1), e.latestSelectedDateObj = u, e.selectedDates.push(u), ae(u, e.selectedDates[0], !0) !== 0 && e.selectedDates.sort(function(v, H) {
1169
- return v.getTime() - H.getTime();
1170
- }));
1171
- if (C(), s) {
1172
- var g = e.currentYear !== u.getFullYear();
1173
- e.currentYear = u.getFullYear(), e.currentMonth = u.getMonth(), g && (W("onYearChange"), U()), W("onMonthChange");
1174
- }
1175
- if (Ie(), G(), de(), !s && e.config.mode !== "range" && e.config.showMonths === 1 ? se(o) : 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) {
1176
- var M = e.config.mode === "single" && !e.config.enableTime, d = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
1177
- (M || d) && Le();
1178
- }
1179
- q();
1180
- }
1181
- }
1182
- var Se = {
1183
- locale: [un, S],
1184
- showMonths: [ge, I, _],
1185
- minDate: [B],
1186
- maxDate: [B],
1187
- positionElement: [dn],
1188
- clickOpens: [
1189
- function() {
1190
- e.config.clickOpens === !0 ? (h(e._input, "focus", e.open), h(e._input, "click", e.open)) : (e._input.removeEventListener("focus", e.open), e._input.removeEventListener("click", e.open));
1191
- }
1192
- ]
1193
- };
1194
- function Pn(n, t) {
1195
- if (n !== null && typeof n == "object") {
1196
- Object.assign(e.config, n);
1197
- for (var r in n)
1198
- Se[r] !== void 0 && Se[r].forEach(function(o) {
1199
- return o();
1200
- });
1201
- } else
1202
- e.config[n] = t, Se[n] !== void 0 ? Se[n].forEach(function(o) {
1203
- return o();
1204
- }) : Ke.indexOf(n) > -1 && (e.config[n] = Ue(t));
1205
- e.redraw(), de(!0);
1206
- }
1207
- function sn(n, t) {
1208
- var r = [];
1209
- if (n instanceof Array)
1210
- r = n.map(function(o) {
1211
- return e.parseDate(o, t);
1212
- });
1213
- else if (n instanceof Date || typeof n == "number")
1214
- r = [e.parseDate(n, t)];
1215
- else if (typeof n == "string")
1216
- switch (e.config.mode) {
1217
- case "single":
1218
- case "time":
1219
- r = [e.parseDate(n, t)];
1220
- break;
1221
- case "multiple":
1222
- r = n.split(e.config.conjunction).map(function(o) {
1223
- return e.parseDate(o, t);
1224
- });
1225
- break;
1226
- case "range":
1227
- r = n.split(e.l10n.rangeSeparator).map(function(o) {
1228
- return e.parseDate(o, t);
1229
- });
1230
- break;
1231
- }
1232
- else
1233
- e.config.errorHandler(new Error("Invalid date supplied: " + JSON.stringify(n)));
1234
- e.selectedDates = e.config.allowInvalidPreload ? r : r.filter(function(o) {
1235
- return o instanceof Date && ee(o, !1);
1236
- }), e.config.mode === "range" && e.selectedDates.sort(function(o, u) {
1237
- return o.getTime() - u.getTime();
1238
- });
1239
- }
1240
- function An(n, t, r) {
1241
- if (t === void 0 && (t = !1), r === void 0 && (r = e.config.dateFormat), n !== 0 && !n || n instanceof Array && n.length === 0)
1242
- return e.clear(t);
1243
- sn(n, r), e.latestSelectedDateObj = e.selectedDates[e.selectedDates.length - 1], e.redraw(), B(void 0, t), R(), e.selectedDates.length === 0 && e.clear(!1), de(t), t && W("onChange");
1244
- }
1245
- function cn(n) {
1246
- return n.slice().map(function(t) {
1247
- return typeof t == "string" || typeof t == "number" || t instanceof Date ? e.parseDate(t, void 0, !0) : t && typeof t == "object" && t.from && t.to ? {
1248
- from: e.parseDate(t.from, void 0),
1249
- to: e.parseDate(t.to, void 0)
1250
- } : t;
1251
- }).filter(function(t) {
1252
- return t;
1253
- });
1254
- }
1255
- function Fn() {
1256
- e.selectedDates = [], e.now = e.parseDate(e.config.now) || /* @__PURE__ */ new Date();
1257
- 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);
1258
- n && sn(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);
1259
- }
1260
- function jn() {
1261
- if (e.input = on(), !e.input) {
1262
- e.config.errorHandler(new Error("Invalid input element specified"));
1263
- return;
1264
- }
1265
- 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 = j(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"), dn();
1266
- }
1267
- function dn() {
1268
- e._positionElement = e.config.positionElement || e._input;
1269
- }
1270
- function Nn() {
1271
- var n = e.config.enableTime ? e.config.noCalendar ? "time" : "datetime-local" : "date";
1272
- e.mobileInput = j("input", e.input.className + " flatpickr-mobile"), 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.getAttribute("step") && (e.mobileInput.step = String(e.input.getAttribute("step"))), e.input.type = "hidden", e.altInput !== void 0 && (e.altInput.type = "hidden");
1273
- try {
1274
- e.input.parentNode && e.input.parentNode.insertBefore(e.mobileInput, e.input.nextSibling);
1275
- } catch {
1276
- }
1277
- h(e.mobileInput, "change", function(t) {
1278
- e.setDate(te(t).value, !1, e.mobileFormatStr), W("onChange"), W("onClose");
1279
- });
1280
- }
1281
- function Yn(n) {
1282
- if (e.isOpen === !0)
1283
- return e.close();
1284
- e.open(n);
1285
- }
1286
- function W(n, t) {
1287
- if (e.config !== void 0) {
1288
- var r = e.config[n];
1289
- if (r !== void 0 && r.length > 0)
1290
- for (var o = 0; r[o] && o < r.length; o++)
1291
- r[o](e.selectedDates, e.input.value, e, t);
1292
- n === "onChange" && (e.input.dispatchEvent(Re("change")), e.input.dispatchEvent(Re("input")));
1293
- }
1294
- }
1295
- function Re(n) {
1296
- var t = document.createEvent("Event");
1297
- return t.initEvent(n, !0, !0), t;
1298
- }
1299
- function We(n) {
1300
- for (var t = 0; t < e.selectedDates.length; t++) {
1301
- var r = e.selectedDates[t];
1302
- if (r instanceof Date && ae(r, n) === 0)
1303
- return "" + t;
1304
- }
1305
- return !1;
1306
- }
1307
- function Hn(n) {
1308
- return e.config.mode !== "range" || e.selectedDates.length < 2 ? !1 : ae(n, e.selectedDates[0]) >= 0 && ae(n, e.selectedDates[1]) <= 0;
1309
- }
1310
- function Ie() {
1311
- e.config.noCalendar || e.isMobile || !e.monthNav || (e.yearElements.forEach(function(n, t) {
1312
- var r = new Date(e.currentYear, e.currentMonth, 1);
1313
- r.setMonth(e.currentMonth + t), e.config.showMonths > 1 || e.config.monthSelectorType === "static" ? e.monthElements[t].textContent = He(r.getMonth(), e.config.shorthandCurrentMonth, e.l10n) + " " : e.monthsDropdownContainer.value = r.getMonth().toString(), n.value = r.getFullYear().toString();
1314
- }), 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()));
1315
- }
1316
- function Be(n) {
1317
- var t = n || (e.config.altInput ? e.config.altFormat : e.config.dateFormat);
1318
- return e.selectedDates.map(function(r) {
1319
- return e.formatDate(r, t);
1320
- }).filter(function(r, o, u) {
1321
- return e.config.mode !== "range" || e.config.enableTime || u.indexOf(r) === o;
1322
- }).join(e.config.mode !== "range" ? e.config.conjunction : e.l10n.rangeSeparator);
1323
- }
1324
- function de(n) {
1325
- 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 = Be(e.config.dateFormat), e.altInput !== void 0 && (e.altInput.value = Be(e.config.altFormat)), n !== !1 && W("onValueUpdate");
1326
- }
1327
- function Ln(n) {
1328
- var t = te(n), r = e.prevMonthNav.contains(t), o = e.nextMonthNav.contains(t);
1329
- r || o ? x(r ? -1 : 1) : e.yearElements.indexOf(t) >= 0 ? t.select() : t.classList.contains("arrowUp") ? e.changeYear(e.currentYear + 1) : t.classList.contains("arrowDown") && e.changeYear(e.currentYear - 1);
1330
- }
1331
- function Rn(n) {
1332
- n.preventDefault();
1333
- var t = n.type === "keydown", r = te(n), o = r;
1334
- e.amPM !== void 0 && r === e.amPM && (e.amPM.textContent = e.l10n.amPM[oe(e.amPM.textContent === e.l10n.amPM[0])]);
1335
- var u = parseFloat(o.getAttribute("min")), s = parseFloat(o.getAttribute("max")), b = parseFloat(o.getAttribute("step")), g = parseInt(o.value, 10), M = n.delta || (t ? n.which === 38 ? 1 : -1 : 0), d = g + b * M;
1336
- if (typeof o.value < "u" && o.value.length === 2) {
1337
- var v = o === e.hourElement, H = o === e.minuteElement;
1338
- d < u ? (d = s + d + oe(!v) + (oe(v) && oe(!e.amPM)), H && ue(void 0, -1, e.hourElement)) : d > s && (d = o === e.hourElement ? d - s - oe(!e.amPM) : u, H && ue(void 0, 1, e.hourElement)), e.amPM && v && (b === 1 ? d + g === 23 : Math.abs(d - g) > b) && (e.amPM.textContent = e.l10n.amPM[oe(e.amPM.textContent === e.l10n.amPM[0])]), o.value = Q(d);
1339
- }
1340
- }
1341
- return f(), e;
1342
- }
1343
- function be(a, i) {
1344
- for (var e = Array.prototype.slice.call(a).filter(function(D) {
1345
- return D instanceof HTMLElement;
1346
- }), c = [], f = 0; f < e.length; f++) {
1347
- var p = e[f];
1348
- try {
1349
- if (p.getAttribute("data-fp-omit") !== null)
1350
- continue;
1351
- p._flatpickr !== void 0 && (p._flatpickr.destroy(), p._flatpickr = void 0), p._flatpickr = it(p, i || {}), c.push(p._flatpickr);
1352
- } catch (D) {
1353
- console.error(D);
1354
- }
1355
- }
1356
- return c.length === 1 ? c[0] : c;
1357
- }
1358
- typeof HTMLElement < "u" && typeof HTMLCollection < "u" && typeof NodeList < "u" && (HTMLCollection.prototype.flatpickr = NodeList.prototype.flatpickr = function(a) {
1359
- return be(this, a);
1360
- }, HTMLElement.prototype.flatpickr = function(a) {
1361
- return be([this], a);
1362
- });
1363
- var K = function(a, i) {
1364
- return typeof a == "string" ? be(window.document.querySelectorAll(a), i) : a instanceof Node ? be([a], i) : be(a, i);
1365
- };
1366
- K.defaultConfig = {};
1367
- K.l10ns = {
1368
- en: J({}, Te),
1369
- default: J({}, Te)
1370
- };
1371
- K.localize = function(a) {
1372
- K.l10ns.default = J(J({}, K.l10ns.default), a);
1373
- };
1374
- K.setDefaults = function(a) {
1375
- K.defaultConfig = J(J({}, K.defaultConfig), a);
1376
- };
1377
- K.parseDate = en({});
1378
- K.formatDate = xn({});
1379
- K.compareDates = ae;
1380
- typeof jQuery < "u" && typeof jQuery.fn < "u" && (jQuery.fn.flatpickr = function(a) {
1381
- return be(this, a);
1382
- });
1383
- Date.prototype.fp_incr = function(a) {
1384
- return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof a == "string" ? parseInt(a, 10) : a));
1385
- };
1386
- typeof window < "u" && (window.flatpickr = K);
1387
- const ot = ["onCreate", "onDestroy"], nn = [
1388
- "onChange",
1389
- "onOpen",
1390
- "onClose",
1391
- "onMonthChange",
1392
- "onYearChange",
1393
- "onReady",
1394
- "onValueUpdate",
1395
- "onDayCreate"
1396
- ], ut = (a, i) => (nn.forEach((e) => {
1397
- const c = i[e], f = a[e];
1398
- if (c) {
1399
- f && !Array.isArray(f) ? a[e] = [a[e]] : a[e] || (a[e] = []);
1400
- const p = Array.isArray(c) ? c : [c];
1401
- a[e].length === 0 ? a[e] = p : a[e].push(...p);
1402
- }
1403
- }), nn.forEach((e) => {
1404
- delete i[e];
1405
- }), ot.forEach((e) => {
1406
- delete i[e];
1407
- }), a), lt = (a) => {
1408
- const i = Qe(() => ({ ...a }), [a]), { defaultValue: e, options: c = {}, value: f, children: p, render: D, onCreate: I, onDestroy: N } = i, L = Qe(() => ut(c, i), [c, i]), y = gn(null), C = gn(void 0);
1409
- Qn(
1410
- a.ref,
1411
- () => ({
1412
- get flatpickr() {
1413
- return C.current;
1414
- }
1415
- }),
1416
- []
1417
- ), mn(() => {
1418
- const Y = () => {
1419
- var q;
1420
- L.onClose = L.onClose || (() => {
1421
- var V;
1422
- (V = y.current) != null && V.blur && y.current.blur();
1423
- }), C.current = (((q = K) == null ? void 0 : q.default) || K)(y.current, L), I == null || I(C.current);
1424
- }, h = () => {
1425
- N == null || N(C.current), C.current && C.current.destroy(), C.current = void 0;
1426
- };
1427
- return Y(), () => {
1428
- h();
1429
- };
1430
- }, [L, I, N]), mn(() => {
1431
- var Y;
1432
- if (C.current) {
1433
- const h = Object.getOwnPropertyNames(L);
1434
- for (let q = h.length - 1; q >= 0; q--) {
1435
- const V = h[q];
1436
- let B = L[V];
1437
- (B == null ? void 0 : B.toString()) !== ((Y = C.current.config[V]) == null ? void 0 : Y.toString()) && (nn.includes(V) && !Array.isArray(B) && (B = [B]), C.current.set(V, B));
1438
- }
1439
- f !== void 0 && f !== C.current.input.value && C.current.setDate(f, !1);
1440
- }
1441
- }, [L, f]);
1442
- const R = Ye((Y) => {
1443
- y.current = Y;
1444
- }, []);
1445
- if (D)
1446
- return D({ ...i, defaultValue: e, value: f }, R);
1447
- const A = Ye(
1448
- (Y) => {
1449
- var h, q;
1450
- a && a.onChange && (Array.isArray(a == null ? void 0 : a.onChange) ? (h = a == null ? void 0 : a.onChange) == null || h.forEach(() => [new Date(Y.target.value)], (f == null ? void 0 : f.toString()) || "") : typeof a.onChange == "function" && ((q = a == null ? void 0 : a.onChange) == null || q.call(a, [new Date(Y.target.value)], (f == null ? void 0 : f.toString()) || "", C.current)));
1451
- },
1452
- [a, f]
1453
- );
1454
- return c.wrap ? /* @__PURE__ */ ie.jsx("div", { className: "flatpickr", ref: R, children: p }) : /* @__PURE__ */ ie.jsx(
1455
- "input",
1456
- {
1457
- onChange: A,
1458
- ...i,
1459
- value: f == null ? void 0 : f.toString(),
1460
- defaultValue: e,
1461
- ref: R
1462
- }
1463
- );
1464
- };
1465
- var Ne = { exports: {} }, ze, yn;
1466
- function tn() {
1467
- if (yn) return ze;
1468
- yn = 1;
1469
- var a = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
1470
- return ze = a, ze;
1471
- }
1472
- var $e, Dn;
1473
- function ft() {
1474
- if (Dn) return $e;
1475
- Dn = 1;
1476
- var a = function() {
1477
- };
1478
- if (process.env.NODE_ENV !== "production") {
1479
- var i = tn(), e = {};
1480
- a = function(f) {
1481
- var p = "Warning: " + f;
1482
- typeof console < "u" && console.error(p);
1483
- try {
1484
- throw new Error(p);
1485
- } catch {
1486
- }
1487
- };
1488
- }
1489
- function c(f, p, D, I, N) {
1490
- if (process.env.NODE_ENV !== "production") {
1491
- for (var L in f)
1492
- if (f.hasOwnProperty(L)) {
1493
- var y;
1494
- try {
1495
- if (typeof f[L] != "function") {
1496
- var C = Error(
1497
- (I || "React class") + ": " + D + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof f[L] + "`."
1498
- );
1499
- throw C.name = "Invariant Violation", C;
1500
- }
1501
- y = f[L](p, L, I, D, null, i);
1502
- } catch (A) {
1503
- y = A;
1504
- }
1505
- if (y && !(y instanceof Error) && a(
1506
- (I || "React class") + ": type specification of " + D + " `" + L + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
1507
- ), y instanceof Error && !(y.message in e)) {
1508
- e[y.message] = !0;
1509
- var R = N ? N() : "";
1510
- a(
1511
- "Failed " + D + " type: " + y.message + (R ?? "")
1512
- );
1513
- }
1514
- }
1515
- }
1516
- }
1517
- return $e = c, $e;
1518
- }
1519
- var Ze, bn;
1520
- function st() {
1521
- if (bn) return Ze;
1522
- bn = 1;
1523
- var a = $n(), i = tn(), e = ft(), c = function() {
1524
- };
1525
- process.env.NODE_ENV !== "production" && (c = function(p) {
1526
- var D = "Warning: " + p;
1527
- typeof console < "u" && console.error(D);
1528
- try {
1529
- throw new Error(D);
1530
- } catch {
1531
- }
1532
- });
1533
- function f() {
1534
- return null;
1535
- }
1536
- return Ze = function(p, D) {
1537
- var I = typeof Symbol == "function" && Symbol.iterator, N = "@@iterator";
1538
- function L(l) {
1539
- var m = l && (I && l[I] || l[N]);
1540
- if (typeof m == "function")
1541
- return m;
1542
- }
1543
- var y = "<<anonymous>>", C = {
1544
- array: h("array"),
1545
- bool: h("boolean"),
1546
- func: h("function"),
1547
- number: h("number"),
1548
- object: h("object"),
1549
- string: h("string"),
1550
- symbol: h("symbol"),
1551
- any: q(),
1552
- arrayOf: V,
1553
- element: B(),
1554
- instanceOf: Z,
1555
- node: se(),
1556
- objectOf: pe,
1557
- oneOf: ue,
1558
- oneOfType: le,
1559
- shape: fe,
1560
- exact: me
1561
- };
1562
- function R(l, m) {
1563
- return l === m ? l !== 0 || 1 / l === 1 / m : l !== l && m !== m;
1564
- }
1565
- function A(l) {
1566
- this.message = l, this.stack = "";
1567
- }
1568
- A.prototype = Error.prototype;
1569
- function Y(l) {
1570
- if (process.env.NODE_ENV !== "production")
1571
- var m = {}, _ = 0;
1572
- function S(x, T, w, P, k, F, re) {
1573
- if (P = P || y, F = F || w, re !== i) {
1574
- if (D) {
1575
- var ee = new Error(
1576
- "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"
1577
- );
1578
- throw ee.name = "Invariant Violation", ee;
1579
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
1580
- var he = P + ":" + w;
1581
- !m[he] && // Avoid spamming the console because they are often not actionable except for lib authors
1582
- _ < 3 && (c(
1583
- "You are manually calling a React.PropTypes validation function for the `" + F + "` prop on `" + P + "`. 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."
1584
- ), m[he] = !0, _++);
1585
- }
1586
- }
1587
- return T[w] == null ? x ? T[w] === null ? new A("The " + k + " `" + F + "` is marked as required " + ("in `" + P + "`, but its value is `null`.")) : new A("The " + k + " `" + F + "` is marked as required in " + ("`" + P + "`, but its value is `undefined`.")) : null : l(T, w, P, k, F);
1588
- }
1589
- var E = S.bind(null, !1);
1590
- return E.isRequired = S.bind(null, !0), E;
1591
- }
1592
- function h(l) {
1593
- function m(_, S, E, x, T, w) {
1594
- var P = _[S], k = G(P);
1595
- if (k !== l) {
1596
- var F = U(P);
1597
- return new A("Invalid " + x + " `" + T + "` of type " + ("`" + F + "` supplied to `" + E + "`, expected ") + ("`" + l + "`."));
1598
- }
1599
- return null;
1600
- }
1601
- return Y(m);
1602
- }
1603
- function q() {
1604
- return Y(f);
1605
- }
1606
- function V(l) {
1607
- function m(_, S, E, x, T) {
1608
- if (typeof l != "function")
1609
- return new A("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
1610
- var w = _[S];
1611
- if (!Array.isArray(w)) {
1612
- var P = G(w);
1613
- return new A("Invalid " + x + " `" + T + "` of type " + ("`" + P + "` supplied to `" + E + "`, expected an array."));
1614
- }
1615
- for (var k = 0; k < w.length; k++) {
1616
- var F = l(w, k, E, x, T + "[" + k + "]", i);
1617
- if (F instanceof Error)
1618
- return F;
1619
- }
1620
- return null;
1621
- }
1622
- return Y(m);
1623
- }
1624
- function B() {
1625
- function l(m, _, S, E, x) {
1626
- var T = m[_];
1627
- if (!p(T)) {
1628
- var w = G(T);
1629
- return new A("Invalid " + E + " `" + x + "` of type " + ("`" + w + "` supplied to `" + S + "`, expected a single ReactElement."));
1630
- }
1631
- return null;
1632
- }
1633
- return Y(l);
1634
- }
1635
- function Z(l) {
1636
- function m(_, S, E, x, T) {
1637
- if (!(_[S] instanceof l)) {
1638
- var w = l.name || y, P = ge(_[S]);
1639
- return new A("Invalid " + x + " `" + T + "` of type " + ("`" + P + "` supplied to `" + E + "`, expected ") + ("instance of `" + w + "`."));
1640
- }
1641
- return null;
1642
- }
1643
- return Y(m);
1644
- }
1645
- function ue(l) {
1646
- if (!Array.isArray(l))
1647
- return process.env.NODE_ENV !== "production" && c("Invalid argument supplied to oneOf, expected an instance of array."), f;
1648
- function m(_, S, E, x, T) {
1649
- for (var w = _[S], P = 0; P < l.length; P++)
1650
- if (R(w, l[P]))
1651
- return null;
1652
- var k = JSON.stringify(l);
1653
- return new A("Invalid " + x + " `" + T + "` of value `" + w + "` " + ("supplied to `" + E + "`, expected one of " + k + "."));
1654
- }
1655
- return Y(m);
1656
- }
1657
- function pe(l) {
1658
- function m(_, S, E, x, T) {
1659
- if (typeof l != "function")
1660
- return new A("Property `" + T + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
1661
- var w = _[S], P = G(w);
1662
- if (P !== "object")
1663
- return new A("Invalid " + x + " `" + T + "` of type " + ("`" + P + "` supplied to `" + E + "`, expected an object."));
1664
- for (var k in w)
1665
- if (w.hasOwnProperty(k)) {
1666
- var F = l(w, k, E, x, T + "." + k, i);
1667
- if (F instanceof Error)
1668
- return F;
1669
- }
1670
- return null;
1671
- }
1672
- return Y(m);
1673
- }
1674
- function le(l) {
1675
- if (!Array.isArray(l))
1676
- return process.env.NODE_ENV !== "production" && c("Invalid argument supplied to oneOfType, expected an instance of array."), f;
1677
- for (var m = 0; m < l.length; m++) {
1678
- var _ = l[m];
1679
- if (typeof _ != "function")
1680
- return c(
1681
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Ce(_) + " at index " + m + "."
1682
- ), f;
1683
- }
1684
- function S(E, x, T, w, P) {
1685
- for (var k = 0; k < l.length; k++) {
1686
- var F = l[k];
1687
- if (F(E, x, T, w, P, i) == null)
1688
- return null;
1689
- }
1690
- return new A("Invalid " + w + " `" + P + "` supplied to " + ("`" + T + "`."));
1691
- }
1692
- return Y(S);
1693
- }
1694
- function se() {
1695
- function l(m, _, S, E, x) {
1696
- return X(m[_]) ? null : new A("Invalid " + E + " `" + x + "` supplied to " + ("`" + S + "`, expected a ReactNode."));
1697
- }
1698
- return Y(l);
1699
- }
1700
- function fe(l) {
1701
- function m(_, S, E, x, T) {
1702
- var w = _[S], P = G(w);
1703
- if (P !== "object")
1704
- return new A("Invalid " + x + " `" + T + "` of type `" + P + "` " + ("supplied to `" + E + "`, expected `object`."));
1705
- for (var k in l) {
1706
- var F = l[k];
1707
- if (F) {
1708
- var re = F(w, k, E, x, T + "." + k, i);
1709
- if (re)
1710
- return re;
1711
- }
1712
- }
1713
- return null;
1714
- }
1715
- return Y(m);
1716
- }
1717
- function me(l) {
1718
- function m(_, S, E, x, T) {
1719
- var w = _[S], P = G(w);
1720
- if (P !== "object")
1721
- return new A("Invalid " + x + " `" + T + "` of type `" + P + "` " + ("supplied to `" + E + "`, expected `object`."));
1722
- var k = a({}, _[S], l);
1723
- for (var F in k) {
1724
- var re = l[F];
1725
- if (!re)
1726
- return new A(
1727
- "Invalid " + x + " `" + T + "` key `" + F + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(_[S], null, " ") + `
1728
- Valid keys: ` + JSON.stringify(Object.keys(l), null, " ")
1729
- );
1730
- var ee = re(w, F, E, x, T + "." + F, i);
1731
- if (ee)
1732
- return ee;
1733
- }
1734
- return null;
1735
- }
1736
- return Y(m);
1737
- }
1738
- function X(l) {
1739
- switch (typeof l) {
1740
- case "number":
1741
- case "string":
1742
- case "undefined":
1743
- return !0;
1744
- case "boolean":
1745
- return !l;
1746
- case "object":
1747
- if (Array.isArray(l))
1748
- return l.every(X);
1749
- if (l === null || p(l))
1750
- return !0;
1751
- var m = L(l);
1752
- if (m) {
1753
- var _ = m.call(l), S;
1754
- if (m !== l.entries) {
1755
- for (; !(S = _.next()).done; )
1756
- if (!X(S.value))
1757
- return !1;
1758
- } else
1759
- for (; !(S = _.next()).done; ) {
1760
- var E = S.value;
1761
- if (E && !X(E[1]))
1762
- return !1;
1763
- }
1764
- } else
1765
- return !1;
1766
- return !0;
1767
- default:
1768
- return !1;
1769
- }
1770
- }
1771
- function we(l, m) {
1772
- return l === "symbol" || m["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && m instanceof Symbol;
1773
- }
1774
- function G(l) {
1775
- var m = typeof l;
1776
- return Array.isArray(l) ? "array" : l instanceof RegExp ? "object" : we(m, l) ? "symbol" : m;
1777
- }
1778
- function U(l) {
1779
- if (typeof l > "u" || l === null)
1780
- return "" + l;
1781
- var m = G(l);
1782
- if (m === "object") {
1783
- if (l instanceof Date)
1784
- return "date";
1785
- if (l instanceof RegExp)
1786
- return "regexp";
1787
- }
1788
- return m;
1789
- }
1790
- function Ce(l) {
1791
- var m = U(l);
1792
- switch (m) {
1793
- case "array":
1794
- case "object":
1795
- return "an " + m;
1796
- case "boolean":
1797
- case "date":
1798
- case "regexp":
1799
- return "a " + m;
1800
- default:
1801
- return m;
1802
- }
1803
- }
1804
- function ge(l) {
1805
- return !l.constructor || !l.constructor.name ? y : l.constructor.name;
1806
- }
1807
- return C.checkPropTypes = e, C.PropTypes = C, C;
1808
- }, Ze;
1809
- }
1810
- var Xe, wn;
1811
- function ct() {
1812
- if (wn) return Xe;
1813
- wn = 1;
1814
- var a = tn();
1815
- function i() {
1816
- }
1817
- return Xe = function() {
1818
- function e(p, D, I, N, L, y) {
1819
- if (y !== a) {
1820
- var C = new Error(
1821
- "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"
1822
- );
1823
- throw C.name = "Invariant Violation", C;
1824
- }
1825
- }
1826
- e.isRequired = e;
1827
- function c() {
1828
- return e;
1829
- }
1830
- var f = {
1831
- array: e,
1832
- bool: e,
1833
- func: e,
1834
- number: e,
1835
- object: e,
1836
- string: e,
1837
- symbol: e,
1838
- any: e,
1839
- arrayOf: c,
1840
- element: e,
1841
- instanceOf: c,
1842
- node: e,
1843
- objectOf: c,
1844
- oneOf: c,
1845
- oneOfType: c,
1846
- shape: c,
1847
- exact: c
1848
- };
1849
- return f.checkPropTypes = i, f.PropTypes = f, f;
1850
- }, Xe;
1851
- }
1852
- var Cn;
1853
- function dt() {
1854
- if (Cn) return Ne.exports;
1855
- if (Cn = 1, process.env.NODE_ENV !== "production") {
1856
- var a = typeof Symbol == "function" && Symbol.for && Symbol.for("react.element") || 60103, i = function(c) {
1857
- return typeof c == "object" && c !== null && c.$$typeof === a;
1858
- }, e = !0;
1859
- Ne.exports = st()(i, e);
1860
- } else
1861
- Ne.exports = ct()();
1862
- return Ne.exports;
1863
- }
1864
- var pt = dt();
1865
- const O = /* @__PURE__ */ Zn(pt), gt = "#949494", mt = "DatePicker-module_inputMaxWidthSmall_cRYaK", ht = "DatePicker-module_inputMaxWidthDefault_GbIO-", vt = "DatePicker-module_inputMaxWidthLarge_fZKFi", yt = "DatePicker-module_input_3VHte", Dt = "DatePicker-module_inputWrapper_aqoyL", bt = "DatePicker-module_inputWrapperCompact_-7CrL", wt = "DatePicker-module_iconButton_19a6e", Ct = "DatePicker-module_clearButton_O1D31", $ = {
1866
- systemGray3: gt,
1867
- inputMaxWidthSmall: mt,
1868
- inputMaxWidthDefault: ht,
1869
- inputMaxWidthLarge: vt,
1870
- input: yt,
1871
- inputWrapper: Dt,
1872
- inputWrapperCompact: bt,
1873
- "inputWrapper--error": "DatePicker-module_inputWrapper--error_bhHqD",
1874
- "inputWrapper--disabled": "DatePicker-module_inputWrapper--disabled_WFJUG",
1875
- iconButton: wt,
1876
- clearButton: Ct
1877
- };
1878
- let Mt = 0;
1879
- function En({
1880
- attachTo: a,
1881
- position: i,
1882
- compact: e,
1883
- inputMaxWidth: c,
1884
- defaultDate: f,
1885
- disabled: p,
1886
- error: D,
1887
- fullWidth: I,
1888
- id: N,
1889
- helperText: L,
1890
- optionalLabelText: y,
1891
- label: C,
1892
- mode: R,
1893
- onChange: A,
1894
- onOpen: Y,
1895
- onClose: h,
1896
- showClearButton: q,
1897
- showIcon: V,
1898
- firstSelectableDate: B,
1899
- lastSelectableDate: Z,
1900
- dateFormat: ue = "F j, Y",
1901
- allowInput: pe,
1902
- tooltip: le,
1903
- "data-testid": se,
1904
- flatpickrRef: fe,
1905
- placeholder: me,
1906
- calendarContainerClass: X,
1907
- plugins: we = [],
1908
- value: G
1909
- }) {
1910
- const U = Ae.useRef(), Ce = !!G, ge = xe(
1911
- xe(_e.input, $.input, {
1912
- [_e["input--compact"]]: e,
1913
- [_e["input--disabled"]]: p,
1914
- [_e["input--error"]]: D
1915
- })
1916
- );
1917
- Ae.useEffect(() => {
1918
- U.current && (U.current.input.nextSibling.id = N, U.current.input.nextSibling.autocomplete = "off", fe && (fe.current = U.current));
1919
- }, []), Ae.useEffect(() => {
1920
- U.current.input.nextSibling.className = ge;
1921
- }, [e, p, D, p]);
1922
- const l = Ae.useMemo(() => {
1923
- if (!B && !Z)
1924
- return;
1925
- const x = Pe(B), T = Pe(Z), w = Pe(f);
1926
- return (P) => {
1927
- const k = Pe(P);
1928
- if (k.isSame(w, "day"))
1929
- return !1;
1930
- let F = !0;
1931
- return B && k.isBefore(x, "day") && (F = !1), Z && k.isAfter(T, "day") && (F = !1), !F;
1932
- };
1933
- }, [B, Z]);
1934
- let m;
1935
- switch (c) {
1936
- case "small":
1937
- m = $.inputMaxWidthSmall;
1938
- break;
1939
- case "large":
1940
- m = $.inputMaxWidthLarge;
1941
- break;
1942
- default:
1943
- m = $.inputMaxWidthDefault;
1944
- }
1945
- const _ = Ye(
1946
- (x) => {
1947
- U.current = x, X && (U.current.calendarContainer.className = xe(
1948
- U.current.calendarContainer.className,
1949
- X
1950
- ));
1951
- },
1952
- [X]
1953
- ), S = Ye(
1954
- (x, T, w) => {
1955
- A(x, T, w), R === "range" && x.length === 2 && w.close();
1956
- },
1957
- [A, R]
1958
- ), E = Qe(
1959
- () => ({
1960
- allowInput: pe,
1961
- altFormat: ue,
1962
- altInput: !0,
1963
- altInputClass: ge,
1964
- appendTo: a || void 0,
1965
- position: i || "auto",
1966
- dateFormat: "Z",
1967
- mode: R,
1968
- wrap: !0,
1969
- defaultDate: f,
1970
- disable: [l],
1971
- plugins: we,
1972
- closeOnSelect: R !== "range"
1973
- }),
1974
- [pe, ue, ge, a, i, R]
1975
- );
1976
- return /* @__PURE__ */ ie.jsx(
1977
- Xn,
1978
- {
1979
- tooltip: le,
1980
- wrapperClassNames: xe({
1981
- [m]: !I
1982
- }),
1983
- label: C,
1984
- helperText: L,
1985
- optionalLabelText: y,
1986
- disabled: p,
1987
- error: D,
1988
- inputId: N,
1989
- fullWidth: I,
1990
- renderControl: () => /* @__PURE__ */ ie.jsx(
1991
- lt,
1992
- {
1993
- options: E,
1994
- onCreate: _,
1995
- onChange: S,
1996
- onOpen: Y,
1997
- onClose: h,
1998
- value: G,
1999
- children: /* @__PURE__ */ ie.jsxs(
2000
- "div",
2001
- {
2002
- "data-testid": se,
2003
- className: xe($.inputWrapper, {
2004
- [$["inputWrapper--error"]]: D,
2005
- [$["inputWrapper--disabled"]]: p,
2006
- [$.inputWrapperCompact]: e
2007
- }),
2008
- children: [
2009
- /* @__PURE__ */ ie.jsx(
2010
- "input",
2011
- {
2012
- className: $.inputElement,
2013
- "data-input": !0,
2014
- defaultValue: f,
2015
- "data-testid": "date-picker-input",
2016
- placeholder: me
2017
- }
2018
- ),
2019
- V && /* @__PURE__ */ ie.jsx("div", { className: $.iconButton, "data-toggle": !0, children: /* @__PURE__ */ ie.jsx("div", { className: $.iconWrapper, children: /* @__PURE__ */ ie.jsx(
2020
- pn,
2021
- {
2022
- icon: "calendar",
2023
- variant: "thin",
2024
- size: 24,
2025
- color: $.systemGray3
2026
- }
2027
- ) }) }),
2028
- // istanbul ignore next - relies on the lifecycle hooks in Flatpickr, which doesn't play nicely with unit tests
2029
- q && Ce && /* @__PURE__ */ ie.jsx(
2030
- "button",
2031
- {
2032
- className: $.clearButton,
2033
- onClick: () => {
2034
- U.current.clear();
2035
- },
2036
- "data-testid": "data-picker-clear-button",
2037
- title: "Clear",
2038
- children: /* @__PURE__ */ ie.jsx("div", { className: $.iconWrapper, children: /* @__PURE__ */ ie.jsx(
2039
- pn,
2040
- {
2041
- icon: "close",
2042
- variant: "thin",
2043
- size: 12,
2044
- color: $.systemGray3
2045
- }
2046
- ) })
2047
- }
2048
- )
2049
- ]
2050
- }
2051
- )
2052
- }
2053
- )
2054
- }
2055
- );
2056
- }
2057
- En.propTypes = {
2058
- attachTo: O.node,
2059
- allowInput: O.bool,
2060
- inputMaxWidth: O.oneOf(["small", "default", "large"]),
2061
- compact: O.bool,
2062
- disabled: O.bool,
2063
- defaultDate: O.oneOfType([
2064
- O.instanceOf(Date),
2065
- O.arrayOf(O.instanceOf(Date)),
2066
- O.string
2067
- ]),
2068
- error: O.oneOfType([O.string, O.bool]),
2069
- fullWidth: O.bool,
2070
- id: O.string,
2071
- firstSelectableDate: O.oneOfType([
2072
- O.instanceOf(Date),
2073
- O.string
2074
- ]),
2075
- helperText: O.string,
2076
- optionalLabelText: O.string,
2077
- label: O.string,
2078
- lastSelectableDate: O.oneOfType([
2079
- O.instanceOf(Date),
2080
- O.string
2081
- ]),
2082
- mode: O.oneOf(["single", "multiple", "range"]),
2083
- onChange: O.func.isRequired,
2084
- onOpen: O.func,
2085
- onClose: O.func,
2086
- showClearButton: O.bool,
2087
- showIcon: O.bool,
2088
- dateFormat: O.string,
2089
- tooltip: O.node,
2090
- flatpickrRef: O.object,
2091
- "data-testid": O.string,
2092
- placeholder: O.string,
2093
- plugins: O.array
2094
- };
2095
- En.defaultProps = {
2096
- attachTo: null,
2097
- allowInput: !0,
2098
- inputMaxWidth: "default",
2099
- compact: !1,
2100
- defaultDate: /* @__PURE__ */ new Date(),
2101
- disabled: !1,
2102
- error: "",
2103
- fullWidth: !1,
2104
- helperText: "",
2105
- optionalLabelText: "",
2106
- id: `date-picker-${Mt++}`,
2107
- mode: "single",
2108
- showClearButton: !1,
2109
- showIcon: !0,
2110
- dateFormat: "F j, Y"
2111
- };
2112
- export {
2113
- En as default
2114
- };