@alfadocs/ui-kit 0.64.0 → 0.65.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{agenda-tray-DA6qj8BL.js → agenda-tray-Bh1KfEOG.js} +2 -2
- package/dist/_chunks/{ai-consent-banner-DBKV27je.js → ai-consent-banner-Btzmk8OH.js} +3 -2
- package/dist/_chunks/{ai-prompt-input-Dx8eXoPm.js → ai-prompt-input-BwEACCPm.js} +2 -2
- package/dist/_chunks/{ai-tools-rail-7tC3GT4h.js → ai-tools-rail-JnlTqfS4.js} +2 -2
- package/dist/_chunks/{alia-sidebar-DlvyXgVC.js → alia-sidebar-CN8pA6c-.js} +7 -7
- package/dist/_chunks/{anamnesis-card-CmkBVAln.js → anamnesis-card-qeLYRG79.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-CdiqkF05.js → antenatal-schedule-timeline-BfzFjEyb.js} +3 -3
- package/dist/_chunks/{appointment-tray-BwDHhWWC.js → appointment-tray-BQnJEora.js} +2 -2
- package/dist/_chunks/{ar-C68WKG5a.js → ar-Cn5Fq48Z.js} +2 -2
- package/dist/_chunks/{audio-recorder-CdXuT9ln.js → audio-recorder-DjXLP4aF.js} +2 -2
- package/dist/_chunks/{autocomplete-CDqxB68B.js → autocomplete-CcCFlVf-.js} +4 -4
- package/dist/_chunks/{bishop-score-CzjSx-dm.js → bishop-score-x2fNqbuZ.js} +2 -2
- package/dist/_chunks/{bmi-calculator-DA2NGmVK.js → bmi-calculator-C3roxbqD.js} +2 -2
- package/dist/_chunks/{booking-ChfvWy3P.js → booking-L8-YP8BJ.js} +148 -148
- package/dist/_chunks/calendar-B6soK1Yb.js +17 -0
- package/dist/_chunks/{calendar-CkuJIg3s.js → calendar-oYWOCrnf.js} +1 -1
- package/dist/_chunks/{care-plan-card-DhZNoXs4.js → care-plan-card-D42WD4-T.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DW70yBOD.js → care-plan-entry-card-BukNI7Uy.js} +2 -2
- package/dist/_chunks/{carousel.agent-DrX96W-1.js → carousel.agent-vt21A_el.js} +2 -2
- package/dist/_chunks/{chat-input-CFwc7JxL.js → chat-input-B5zjNEUN.js} +2 -2
- package/dist/_chunks/{chat-message-Dm8U2RY1.js → chat-message-3V54YipB.js} +2 -2
- package/dist/_chunks/{code-block-HoddNOKJ.js → code-block-BBWHhIc8.js} +2 -2
- package/dist/_chunks/{contact-profile-card-DvvVfAA2.js → contact-profile-card-CCeJmjbd.js} +2 -2
- package/dist/_chunks/{cycle-calculator-C_t1Hs8V.js → cycle-calculator-DrVXbIB4.js} +4 -4
- package/dist/_chunks/{date-picker-BfHblqwA.js → date-picker-oGg5BnXL.js} +12 -11
- package/dist/_chunks/{date-picker-variants-CXEAx3O_.js → date-picker-variants-DAcSLTua.js} +358 -372
- package/dist/_chunks/{date-range-picker-hcAMs1wO.js → date-range-picker-C5BWfH_T.js} +34 -25
- package/dist/_chunks/{date-time-picker-H-3Pwqlb.js → date-time-picker-Ze1My59T.js} +18 -17
- package/dist/_chunks/{de-DK4A9_a8.js → de-CrJs4ZsX.js} +2 -2
- package/dist/_chunks/{description-list-BEbK2g93.js → description-list-gkNGWk5G.js} +2 -2
- package/dist/_chunks/{due-date-calculator-Q8MIwEVV.js → due-date-calculator-D4K1BnE2.js} +4 -4
- package/dist/_chunks/{editable-currency-cell-renderer-BQgaKFCz.js → editable-currency-cell-renderer-CFqQc56y.js} +304 -294
- package/dist/_chunks/editor-overlay-wYm22wZK.js +88 -0
- package/dist/_chunks/{el-B29HXhG5.js → el-DHdMOIhL.js} +6 -6
- package/dist/_chunks/{es-BOwPVwWn.js → es-DCATCfqo.js} +2 -2
- package/dist/_chunks/{fetal-weight-D1a6BmM-.js → fetal-weight-B_pBjlO7.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-BZ0FxwUl.js → fiscal-code-input-DPtqluVb.js} +2 -2
- package/dist/_chunks/{fr-DoDBtn0T.js → fr-BfGEMshF.js} +2 -2
- package/dist/_chunks/{freemium-paywall-gHGA44dW.js → freemium-paywall-CkWjv3o6.js} +2 -2
- package/dist/_chunks/{gestational-age-calculator-D85E8lGN.js → gestational-age-calculator-BETQAVkA.js} +6 -6
- package/dist/_chunks/{hcg-doubling-Dg0Hr7ey.js → hcg-doubling-8zXCJgAQ.js} +3 -3
- package/dist/_chunks/{header-Ce1Br27u.js → header-CNszv2WQ.js} +2 -2
- package/dist/_chunks/{header-settings-D5Z2B_Yz.js → header-settings-CNOqIhoW.js} +3 -3
- package/dist/_chunks/{hi-DGByrKby.js → hi-CBFRXEIm.js} +2 -2
- package/dist/_chunks/icon-button-LqoiKcUN.js +78 -0
- package/dist/_chunks/{insert-result-C1SYdueh.js → insert-result-DIAG3ltJ.js} +115 -136
- package/dist/_chunks/{isSameWeek-B1odL2vR.js → isSameWeek-I3DfXUp1.js} +2 -2
- package/dist/_chunks/{it-B16rEecm.js → it-nz6vAKwG.js} +7 -7
- package/dist/_chunks/{ja-B0viOgft.js → ja-DQcqdAEJ.js} +2 -2
- package/dist/_chunks/{key-value-pair-CkQIb9EG.js → key-value-pair-BrgbMfbF.js} +2 -2
- package/dist/_chunks/{locale-picker-D99UyZVJ.js → locale-picker-C9JmBht3.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-C4OYAC22.js → marketplace-app-shell-BXfRMiRk.js} +4 -4
- package/dist/_chunks/{message-card-Dvl1TgaN.js → message-card-Bgcvfj6-.js} +2 -2
- package/dist/_chunks/{message-tray-Dl6GQaaV.js → message-tray-saAVMeHP.js} +3 -3
- package/dist/_chunks/{multi-select-DOLO3K_z.js → multi-select-BcPylvHR.js} +100 -90
- package/dist/_chunks/{nl-cBxEX2QU.js → nl-L5SuDjyl.js} +2 -2
- package/dist/_chunks/{notification-card-CObnGdJu.js → notification-card-BiESdm8q.js} +2 -2
- package/dist/_chunks/{notification-tray-BWHDIjgd.js → notification-tray-DlgenTEe.js} +3 -3
- package/dist/_chunks/{patient-search-CArmRKeg.js → patient-search-Bw9ONucF.js} +2 -2
- package/dist/_chunks/{patient-shell-Coarf346.js → patient-shell-CF_qon7C.js} +3 -3
- package/dist/_chunks/{patient-summary-card-BnTqxcTr.js → patient-summary-card-Bgso0p_l.js} +2 -2
- package/dist/_chunks/{payment-form-DJ9vnzrT.js → payment-form-nXocS_MX.js} +11 -4
- package/dist/_chunks/{payment-request-card-B_lyobd0.js → payment-request-card-DBz3hVDz.js} +3 -3
- package/dist/_chunks/{pdf-viewer-chMpwpA4.js → pdf-viewer-GsfNqeeT.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-BYs9hax1.js → periodontal-chart-card-AYyHtU9K.js} +2 -2
- package/dist/_chunks/phone-input-DVXhNlIl.js +563 -0
- package/dist/_chunks/{pl-DtS08ioY.js → pl-YAn5z2wR.js} +3 -3
- package/dist/_chunks/{popover-Devce-tT.js → popover-DTbfAuR0.js} +2 -2
- package/dist/_chunks/{practice-results-CtfciF2v.js → practice-results-CVAgY2RZ.js} +3 -3
- package/dist/_chunks/{pregnancy-dating-7NUaAfob.js → pregnancy-dating-BuzLTwjy.js} +6 -6
- package/dist/_chunks/{pregnancy-weight-gain-DI7X-0JX.js → pregnancy-weight-gain-aicn7qs7.js} +2 -2
- package/dist/_chunks/{privacy-lock-BN3L-alb.js → privacy-lock-C7JyMf0y.js} +2 -2
- package/dist/_chunks/{product-hub-panel-CkfZBA3t.js → product-hub-panel-CAXDFeGP.js} +2 -2
- package/dist/_chunks/{pt-yFXs1VvH.js → pt-D9xdT5KQ.js} +6 -6
- package/dist/_chunks/{public-header.agent-CYQK6T6F.js → public-header.agent-BOhJgZEU.js} +3 -3
- package/dist/_chunks/{reviews-panel-CPrXu5TX.js → reviews-panel-DBktKm7i.js} +2 -2
- package/dist/_chunks/rich-text-editor-u36FqSWz.js +1190 -0
- package/dist/_chunks/{ro-DsCzSrzR.js → ro-Cp--52bT.js} +2 -2
- package/dist/_chunks/{ru-DgDxL0pc.js → ru-BM8eX_Zz.js} +3 -3
- package/dist/_chunks/{search-bar-CvN_S0jW.js → search-bar-SY2BcV2N.js} +2 -2
- package/dist/_chunks/{search-input-D3aMvi4l.js → search-input-DbxrnHkW.js} +3 -3
- package/dist/_chunks/{sheet-xbzu4YiY.js → sheet-taJer-Ha.js} +2 -2
- package/dist/_chunks/{sign-document--nr5cxsB.js → sign-document-CdAiHiCh.js} +2 -2
- package/dist/_chunks/{sign-in-with-alfadocs-button-BpAjVmsI.js → sign-in-with-alfadocs-button-LppxjlFt.js} +2 -2
- package/dist/_chunks/{signature-field-DbhbpLha.js → signature-field-Dy1JRjzE.js} +10 -3
- package/dist/_chunks/{slot-grid-BlHHP9Qy.js → slot-grid-FsqumOaS.js} +2 -2
- package/dist/_chunks/smart-date-CWikAqZx.js +114 -0
- package/dist/_chunks/{social-sign-in-button-uJYLM366.js → social-sign-in-button-dlpPI5l7.js} +2 -2
- package/dist/_chunks/{spinner-OjQNn8oN.js → spinner-hbwuKwMf.js} +10 -10
- package/dist/_chunks/{sq-DHlCYN67.js → sq-XRpr0r49.js} +6 -6
- package/dist/_chunks/{streaming-text-CfhDqtIT.js → streaming-text-BB9mvK4m.js} +2 -2
- package/dist/_chunks/subDays-BcYv1Lxi.js +8 -0
- package/dist/_chunks/{sv-O0QaQs_s.js → sv-Z3APomE8.js} +2 -2
- package/dist/_chunks/{task-tray-Cb_hK4yb.js → task-tray-CAncV-QQ.js} +2 -2
- package/dist/_chunks/{theme-toggle-DAW7uC0B.js → theme-toggle-DETmSu_h.js} +2 -2
- package/dist/_chunks/{toast.agent-B0MCsvdZ.js → toast.agent-vuLRRn2a.js} +2 -2
- package/dist/_chunks/{tooth-scheme-CiphQaON.js → tooth-scheme-BIx1O2aJ.js} +3 -3
- package/dist/_chunks/{tr-BmNDRuio.js → tr-e0-P4FON.js} +2 -2
- package/dist/_chunks/{transcript-panel-B4HiC7ed.js → transcript-panel-CLHmv83g.js} +2 -2
- package/dist/_chunks/type-DZ5OMRA2.js +28 -0
- package/dist/_chunks/{unit-converter-BIbXHIQA.js → unit-converter-CHN2cZ4b.js} +2 -2
- package/dist/_chunks/{wallet-pay-button-DuDPBlCO.js → wallet-pay-button--dnR6NfJ.js} +2 -2
- package/dist/_chunks/{workflow-map-BJDUNYlX.js → workflow-map-BX3JY1Bu.js} +3 -3
- package/dist/_chunks/{zh-CN-CgVJZEzz.js → zh-CN-B-igM5gY.js} +3 -3
- package/dist/agent-catalog.json +32 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-consent-banner/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/ai-tools-rail/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/appointment-card/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/care-plan-card/index.js +1 -1
- package/dist/components/care-plan-entry-card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/index.js +1 -1
- package/dist/components/date-range-picker/index.js +1 -1
- package/dist/components/date-time-picker/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +19 -0
- package/dist/components/editor-overlay/index.d.ts +3 -0
- package/dist/components/editor-overlay/index.js +5 -0
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.d.ts +9 -0
- package/dist/components/popover/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/editor-toolbar.d.ts +16 -0
- package/dist/components/rich-text-editor/help-me-write-overlay.d.ts +25 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +43 -0
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/index.d.ts +3 -0
- package/dist/components/smart-date/index.js +5 -0
- package/dist/components/smart-date/smart-date.d.ts +32 -0
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +44 -0
- package/dist/i18n/locales/ar.js +45 -1
- package/dist/i18n/locales/de.d.ts +44 -0
- package/dist/i18n/locales/de.js +45 -1
- package/dist/i18n/locales/el.d.ts +44 -0
- package/dist/i18n/locales/el.js +45 -1
- package/dist/i18n/locales/en.d.ts +44 -0
- package/dist/i18n/locales/en.js +49 -1
- package/dist/i18n/locales/es.d.ts +44 -0
- package/dist/i18n/locales/es.js +45 -1
- package/dist/i18n/locales/fr.d.ts +44 -0
- package/dist/i18n/locales/fr.js +45 -1
- package/dist/i18n/locales/hi.d.ts +44 -0
- package/dist/i18n/locales/hi.js +45 -1
- package/dist/i18n/locales/it.d.ts +44 -0
- package/dist/i18n/locales/it.js +45 -1
- package/dist/i18n/locales/ja.d.ts +44 -0
- package/dist/i18n/locales/ja.js +45 -1
- package/dist/i18n/locales/nl.d.ts +44 -0
- package/dist/i18n/locales/nl.js +45 -1
- package/dist/i18n/locales/pl.d.ts +44 -0
- package/dist/i18n/locales/pl.js +45 -1
- package/dist/i18n/locales/pt.d.ts +44 -0
- package/dist/i18n/locales/pt.js +45 -1
- package/dist/i18n/locales/ro.d.ts +44 -0
- package/dist/i18n/locales/ro.js +45 -1
- package/dist/i18n/locales/ru.d.ts +44 -0
- package/dist/i18n/locales/ru.js +45 -1
- package/dist/i18n/locales/sq.d.ts +44 -0
- package/dist/i18n/locales/sq.js +45 -1
- package/dist/i18n/locales/sv.d.ts +44 -0
- package/dist/i18n/locales/sv.js +45 -1
- package/dist/i18n/locales/tr.d.ts +44 -0
- package/dist/i18n/locales/tr.js +45 -1
- package/dist/i18n/locales/zh.d.ts +44 -0
- package/dist/i18n/locales/zh.js +45 -1
- package/dist/index.js +494 -490
- package/dist/locales/ar.json +45 -1
- package/dist/locales/de.json +45 -1
- package/dist/locales/el.json +45 -1
- package/dist/locales/en.json +45 -1
- package/dist/locales/es.json +45 -1
- package/dist/locales/fr.json +45 -1
- package/dist/locales/hi.json +45 -1
- package/dist/locales/it.json +45 -1
- package/dist/locales/ja.json +45 -1
- package/dist/locales/nl.json +45 -1
- package/dist/locales/pl.json +45 -1
- package/dist/locales/pt.json +45 -1
- package/dist/locales/ro.json +45 -1
- package/dist/locales/ru.json +45 -1
- package/dist/locales/sq.json +45 -1
- package/dist/locales/sv.json +45 -1
- package/dist/locales/tr.json +45 -1
- package/dist/locales/zh.json +45 -1
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +36 -22
- package/package.json +10 -1
- package/dist/_chunks/icon-button-CKEOrN37.js +0 -70
- package/dist/_chunks/phone-input-DfZbPPvh.js +0 -525
- package/dist/_chunks/rich-text-editor-B03qM22-.js +0 -334
- package/dist/_chunks/subDays-Bs00akhK.js +0 -8
|
@@ -1,23 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { t as P, c as I, n as we, s as Xe, d as Fn, e as Nt, i as Bn } from "./isSameDay-DUEiAT0G.js";
|
|
1
|
+
import y, { createContext as Yn, useContext as Tn, useCallback as R, useRef as Ne, useLayoutEffect as Pn, useState as xe, useEffect as St, useMemo as Ce } from "react";
|
|
2
|
+
import { t as P, c as I, n as we, s as Xe, d as En, e as Nt, i as Fn } from "./isSameDay-DUEiAT0G.js";
|
|
4
3
|
import { jsx as ft } from "react/jsx-runtime";
|
|
5
|
-
import { C as
|
|
6
|
-
import { C as
|
|
4
|
+
import { C as Bn } from "./chevron-left-CX1jqD2M.js";
|
|
5
|
+
import { C as In } from "./chevron-right-BrpYejk0.js";
|
|
7
6
|
import { c as _e } from "./index-D2ZczOXr.js";
|
|
8
|
-
|
|
9
|
-
* @license lucide-react v1.8.0 - ISC
|
|
10
|
-
*
|
|
11
|
-
* This source code is licensed under the ISC license.
|
|
12
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
13
|
-
*/
|
|
14
|
-
const An = [
|
|
15
|
-
["path", { d: "M8 2v4", key: "1cmpym" }],
|
|
16
|
-
["path", { d: "M16 2v4", key: "4m81vk" }],
|
|
17
|
-
["rect", { width: "18", height: "18", x: "3", y: "4", rx: "2", key: "1hopcy" }],
|
|
18
|
-
["path", { d: "M3 10h18", key: "8toen8" }]
|
|
19
|
-
], js = Yn("calendar", An);
|
|
20
|
-
function zn(e, t, n = "long") {
|
|
7
|
+
function Hn(e, t, n = "long") {
|
|
21
8
|
return new Intl.DateTimeFormat("en-US", {
|
|
22
9
|
// Enforces engine to render the time. Without the option JavaScriptCore omits it.
|
|
23
10
|
hour: "numeric",
|
|
@@ -35,11 +22,11 @@ function ie(e, t) {
|
|
|
35
22
|
return r in ge ? ge[r] : lt(r, r.split(":"));
|
|
36
23
|
} catch {
|
|
37
24
|
if (e in ge) return ge[e];
|
|
38
|
-
const n = e == null ? void 0 : e.match(
|
|
25
|
+
const n = e == null ? void 0 : e.match(An);
|
|
39
26
|
return n ? lt(e, n.slice(1)) : NaN;
|
|
40
27
|
}
|
|
41
28
|
}
|
|
42
|
-
const
|
|
29
|
+
const An = /([+-]\d\d):?(\d\d)?/;
|
|
43
30
|
function lt(e, t) {
|
|
44
31
|
const n = +(t[0] || 0), r = +(t[1] || 0), a = +(t[2] || 0) / 60;
|
|
45
32
|
return ge[e] = n * 60 + r > 0 ? n * 60 + r + a : n * 60 - r - a;
|
|
@@ -80,7 +67,7 @@ Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
|
|
|
80
67
|
J.prototype[t] && (e.startsWith("get") ? J.prototype[e] = function() {
|
|
81
68
|
return this.internal[t]();
|
|
82
69
|
} : (J.prototype[e] = function() {
|
|
83
|
-
return Date.prototype[t].apply(this.internal, arguments),
|
|
70
|
+
return Date.prototype[t].apply(this.internal, arguments), zn(this), +this;
|
|
84
71
|
}, J.prototype[t] = function() {
|
|
85
72
|
return Date.prototype[t].apply(this, arguments), Ke(this), +this;
|
|
86
73
|
}));
|
|
@@ -88,7 +75,7 @@ Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
|
|
|
88
75
|
function Ke(e) {
|
|
89
76
|
e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-ie(e.timeZone, e) * 60));
|
|
90
77
|
}
|
|
91
|
-
function
|
|
78
|
+
function zn(e) {
|
|
92
79
|
Date.prototype.setFullYear.call(e, e.internal.getUTCFullYear(), e.internal.getUTCMonth(), e.internal.getUTCDate()), Date.prototype.setHours.call(e, e.internal.getUTCHours(), e.internal.getUTCMinutes(), e.internal.getUTCSeconds(), e.internal.getUTCMilliseconds()), Ct(e);
|
|
93
80
|
}
|
|
94
81
|
function Ct(e) {
|
|
@@ -129,7 +116,7 @@ class H extends J {
|
|
|
129
116
|
}
|
|
130
117
|
toTimeString() {
|
|
131
118
|
const t = this.internal.toUTCString().split(" ")[4], [n, r, a] = this.tzComponents();
|
|
132
|
-
return `${t} GMT${n}${r}${a} (${
|
|
119
|
+
return `${t} GMT${n}${r}${a} (${Hn(this.timeZone, this)})`;
|
|
133
120
|
}
|
|
134
121
|
toLocaleString(t, n) {
|
|
135
122
|
return Date.prototype.toLocaleString.call(this, t, {
|
|
@@ -183,9 +170,9 @@ function _t(e, t, n) {
|
|
|
183
170
|
a
|
|
184
171
|
), r);
|
|
185
172
|
}
|
|
186
|
-
let
|
|
173
|
+
let qn = {};
|
|
187
174
|
function ve() {
|
|
188
|
-
return
|
|
175
|
+
return qn;
|
|
189
176
|
}
|
|
190
177
|
function fe(e, t) {
|
|
191
178
|
var i, d, c, u;
|
|
@@ -223,19 +210,19 @@ function Je(e, t, n) {
|
|
|
223
210
|
e,
|
|
224
211
|
t
|
|
225
212
|
), s = Xe(r), o = Xe(a), i = +s - mt(s), d = +o - mt(o);
|
|
226
|
-
return Math.round((i - d) /
|
|
213
|
+
return Math.round((i - d) / En);
|
|
227
214
|
}
|
|
228
|
-
function
|
|
215
|
+
function jn(e, t) {
|
|
229
216
|
const n = Yt(e, t), r = I(e, 0);
|
|
230
217
|
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Me(r);
|
|
231
218
|
}
|
|
232
|
-
function
|
|
219
|
+
function $n(e, t, n) {
|
|
233
220
|
return xt(e, t * 7, n);
|
|
234
221
|
}
|
|
235
|
-
function
|
|
222
|
+
function Gn(e, t, n) {
|
|
236
223
|
return _t(e, t * 12, n);
|
|
237
224
|
}
|
|
238
|
-
function
|
|
225
|
+
function Rn(e, t) {
|
|
239
226
|
let n, r = t == null ? void 0 : t.in;
|
|
240
227
|
return e.forEach((a) => {
|
|
241
228
|
!r && typeof a == "object" && (r = I.bind(null, a));
|
|
@@ -243,7 +230,7 @@ function Un(e, t) {
|
|
|
243
230
|
(!n || n < s || isNaN(+s)) && (n = s);
|
|
244
231
|
}), I(r, n || NaN);
|
|
245
232
|
}
|
|
246
|
-
function
|
|
233
|
+
function Vn(e, t) {
|
|
247
234
|
let n, r = t == null ? void 0 : t.in;
|
|
248
235
|
return e.forEach((a) => {
|
|
249
236
|
!r && typeof a == "object" && (r = I.bind(null, a));
|
|
@@ -254,7 +241,7 @@ function Qn(e, t) {
|
|
|
254
241
|
function Tt(e) {
|
|
255
242
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
256
243
|
}
|
|
257
|
-
function
|
|
244
|
+
function Un(e) {
|
|
258
245
|
return !(!Tt(e) && typeof e != "number" || isNaN(+P(e)));
|
|
259
246
|
}
|
|
260
247
|
function Pt(e, t, n) {
|
|
@@ -265,7 +252,7 @@ function Pt(e, t, n) {
|
|
|
265
252
|
), s = r.getFullYear() - a.getFullYear(), o = r.getMonth() - a.getMonth();
|
|
266
253
|
return s * 12 + o;
|
|
267
254
|
}
|
|
268
|
-
function
|
|
255
|
+
function Qn(e, t) {
|
|
269
256
|
const n = P(e, t == null ? void 0 : t.in), r = n.getMonth();
|
|
270
257
|
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
271
258
|
}
|
|
@@ -273,7 +260,7 @@ function Et(e, t) {
|
|
|
273
260
|
const [n, r] = we(e, t.start, t.end);
|
|
274
261
|
return { start: n, end: r };
|
|
275
262
|
}
|
|
276
|
-
function
|
|
263
|
+
function Xn(e, t) {
|
|
277
264
|
const { start: n, end: r } = Et(t == null ? void 0 : t.in, e);
|
|
278
265
|
let a = +n > +r;
|
|
279
266
|
const s = a ? +n : +r, o = a ? r : n;
|
|
@@ -284,11 +271,11 @@ function Jn(e, t) {
|
|
|
284
271
|
d.push(I(n, o)), o.setMonth(o.getMonth() + i);
|
|
285
272
|
return a ? d.reverse() : d;
|
|
286
273
|
}
|
|
287
|
-
function
|
|
274
|
+
function Kn(e, t) {
|
|
288
275
|
const n = P(e, t == null ? void 0 : t.in);
|
|
289
276
|
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
290
277
|
}
|
|
291
|
-
function
|
|
278
|
+
function Jn(e, t) {
|
|
292
279
|
const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear();
|
|
293
280
|
return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
|
|
294
281
|
}
|
|
@@ -296,7 +283,7 @@ function Ft(e, t) {
|
|
|
296
283
|
const n = P(e, t == null ? void 0 : t.in);
|
|
297
284
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
298
285
|
}
|
|
299
|
-
function
|
|
286
|
+
function Zn(e, t) {
|
|
300
287
|
const { start: n, end: r } = Et(t == null ? void 0 : t.in, e);
|
|
301
288
|
let a = +n > +r;
|
|
302
289
|
const s = a ? +n : +r, o = a ? r : n;
|
|
@@ -312,10 +299,10 @@ function Bt(e, t) {
|
|
|
312
299
|
const n = ve(), r = (t == null ? void 0 : t.weekStartsOn) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.weekStartsOn) ?? n.weekStartsOn ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.weekStartsOn) ?? 0, a = P(e, t == null ? void 0 : t.in), s = a.getDay(), o = (s < r ? -7 : 0) + 6 - (s - r);
|
|
313
300
|
return a.setDate(a.getDate() + o), a.setHours(23, 59, 59, 999), a;
|
|
314
301
|
}
|
|
315
|
-
function
|
|
302
|
+
function Ln(e, t) {
|
|
316
303
|
return Bt(e, { ...t, weekStartsOn: 1 });
|
|
317
304
|
}
|
|
318
|
-
const
|
|
305
|
+
const er = {
|
|
319
306
|
lessThanXSeconds: {
|
|
320
307
|
one: "less than a second",
|
|
321
308
|
other: "less than {{count}} seconds"
|
|
@@ -377,9 +364,9 @@ const nr = {
|
|
|
377
364
|
one: "almost 1 year",
|
|
378
365
|
other: "almost {{count}} years"
|
|
379
366
|
}
|
|
380
|
-
},
|
|
367
|
+
}, tr = (e, t, n) => {
|
|
381
368
|
let r;
|
|
382
|
-
const a =
|
|
369
|
+
const a = er[e];
|
|
383
370
|
return typeof a == "string" ? r = a : t === 1 ? r = a.one : r = a.other.replace("{{count}}", t.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
384
371
|
};
|
|
385
372
|
function qe(e) {
|
|
@@ -388,42 +375,42 @@ function qe(e) {
|
|
|
388
375
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
389
376
|
};
|
|
390
377
|
}
|
|
391
|
-
const
|
|
378
|
+
const nr = {
|
|
392
379
|
full: "EEEE, MMMM do, y",
|
|
393
380
|
long: "MMMM do, y",
|
|
394
381
|
medium: "MMM d, y",
|
|
395
382
|
short: "MM/dd/yyyy"
|
|
396
|
-
},
|
|
383
|
+
}, rr = {
|
|
397
384
|
full: "h:mm:ss a zzzz",
|
|
398
385
|
long: "h:mm:ss a z",
|
|
399
386
|
medium: "h:mm:ss a",
|
|
400
387
|
short: "h:mm a"
|
|
401
|
-
},
|
|
388
|
+
}, ar = {
|
|
402
389
|
full: "{{date}} 'at' {{time}}",
|
|
403
390
|
long: "{{date}} 'at' {{time}}",
|
|
404
391
|
medium: "{{date}}, {{time}}",
|
|
405
392
|
short: "{{date}}, {{time}}"
|
|
406
|
-
},
|
|
393
|
+
}, sr = {
|
|
407
394
|
date: qe({
|
|
408
|
-
formats:
|
|
395
|
+
formats: nr,
|
|
409
396
|
defaultWidth: "full"
|
|
410
397
|
}),
|
|
411
398
|
time: qe({
|
|
412
|
-
formats:
|
|
399
|
+
formats: rr,
|
|
413
400
|
defaultWidth: "full"
|
|
414
401
|
}),
|
|
415
402
|
dateTime: qe({
|
|
416
|
-
formats:
|
|
403
|
+
formats: ar,
|
|
417
404
|
defaultWidth: "full"
|
|
418
405
|
})
|
|
419
|
-
},
|
|
406
|
+
}, or = {
|
|
420
407
|
lastWeek: "'last' eeee 'at' p",
|
|
421
408
|
yesterday: "'yesterday at' p",
|
|
422
409
|
today: "'today at' p",
|
|
423
410
|
tomorrow: "'tomorrow at' p",
|
|
424
411
|
nextWeek: "eeee 'at' p",
|
|
425
412
|
other: "P"
|
|
426
|
-
},
|
|
413
|
+
}, ir = (e, t, n, r) => or[e];
|
|
427
414
|
function me(e) {
|
|
428
415
|
return (t, n) => {
|
|
429
416
|
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
@@ -439,15 +426,15 @@ function me(e) {
|
|
|
439
426
|
return a[s];
|
|
440
427
|
};
|
|
441
428
|
}
|
|
442
|
-
const
|
|
429
|
+
const dr = {
|
|
443
430
|
narrow: ["B", "A"],
|
|
444
431
|
abbreviated: ["BC", "AD"],
|
|
445
432
|
wide: ["Before Christ", "Anno Domini"]
|
|
446
|
-
},
|
|
433
|
+
}, cr = {
|
|
447
434
|
narrow: ["1", "2", "3", "4"],
|
|
448
435
|
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
449
436
|
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
450
|
-
},
|
|
437
|
+
}, ur = {
|
|
451
438
|
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
452
439
|
abbreviated: [
|
|
453
440
|
"Jan",
|
|
@@ -477,7 +464,7 @@ const ur = {
|
|
|
477
464
|
"November",
|
|
478
465
|
"December"
|
|
479
466
|
]
|
|
480
|
-
},
|
|
467
|
+
}, fr = {
|
|
481
468
|
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
482
469
|
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
483
470
|
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
@@ -490,7 +477,7 @@ const ur = {
|
|
|
490
477
|
"Friday",
|
|
491
478
|
"Saturday"
|
|
492
479
|
]
|
|
493
|
-
},
|
|
480
|
+
}, lr = {
|
|
494
481
|
narrow: {
|
|
495
482
|
am: "a",
|
|
496
483
|
pm: "p",
|
|
@@ -521,7 +508,7 @@ const ur = {
|
|
|
521
508
|
evening: "evening",
|
|
522
509
|
night: "night"
|
|
523
510
|
}
|
|
524
|
-
},
|
|
511
|
+
}, hr = {
|
|
525
512
|
narrow: {
|
|
526
513
|
am: "a",
|
|
527
514
|
pm: "p",
|
|
@@ -552,7 +539,7 @@ const ur = {
|
|
|
552
539
|
evening: "in the evening",
|
|
553
540
|
night: "at night"
|
|
554
541
|
}
|
|
555
|
-
},
|
|
542
|
+
}, mr = (e, t) => {
|
|
556
543
|
const n = Number(e), r = n % 100;
|
|
557
544
|
if (r > 20 || r < 10)
|
|
558
545
|
switch (r % 10) {
|
|
@@ -564,29 +551,29 @@ const ur = {
|
|
|
564
551
|
return n + "rd";
|
|
565
552
|
}
|
|
566
553
|
return n + "th";
|
|
567
|
-
},
|
|
568
|
-
ordinalNumber:
|
|
554
|
+
}, yr = {
|
|
555
|
+
ordinalNumber: mr,
|
|
569
556
|
era: me({
|
|
570
|
-
values:
|
|
557
|
+
values: dr,
|
|
571
558
|
defaultWidth: "wide"
|
|
572
559
|
}),
|
|
573
560
|
quarter: me({
|
|
574
|
-
values:
|
|
561
|
+
values: cr,
|
|
575
562
|
defaultWidth: "wide",
|
|
576
563
|
argumentCallback: (e) => e - 1
|
|
577
564
|
}),
|
|
578
565
|
month: me({
|
|
579
|
-
values:
|
|
566
|
+
values: ur,
|
|
580
567
|
defaultWidth: "wide"
|
|
581
568
|
}),
|
|
582
569
|
day: me({
|
|
583
|
-
values:
|
|
570
|
+
values: fr,
|
|
584
571
|
defaultWidth: "wide"
|
|
585
572
|
}),
|
|
586
573
|
dayPeriod: me({
|
|
587
|
-
values:
|
|
574
|
+
values: lr,
|
|
588
575
|
defaultWidth: "wide",
|
|
589
|
-
formattingValues:
|
|
576
|
+
formattingValues: hr,
|
|
590
577
|
defaultFormattingWidth: "wide"
|
|
591
578
|
})
|
|
592
579
|
};
|
|
@@ -595,9 +582,9 @@ function ye(e) {
|
|
|
595
582
|
const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(a);
|
|
596
583
|
if (!s)
|
|
597
584
|
return null;
|
|
598
|
-
const o = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(i) ?
|
|
585
|
+
const o = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(i) ? br(i, (f) => f.test(o)) : (
|
|
599
586
|
// [TODO] -- I challenge you to fix the type
|
|
600
|
-
|
|
587
|
+
gr(i, (f) => f.test(o))
|
|
601
588
|
);
|
|
602
589
|
let c;
|
|
603
590
|
c = e.valueCallback ? e.valueCallback(d) : d, c = n.valueCallback ? (
|
|
@@ -608,17 +595,17 @@ function ye(e) {
|
|
|
608
595
|
return { value: c, rest: u };
|
|
609
596
|
};
|
|
610
597
|
}
|
|
611
|
-
function
|
|
598
|
+
function gr(e, t) {
|
|
612
599
|
for (const n in e)
|
|
613
600
|
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
614
601
|
return n;
|
|
615
602
|
}
|
|
616
|
-
function
|
|
603
|
+
function br(e, t) {
|
|
617
604
|
for (let n = 0; n < e.length; n++)
|
|
618
605
|
if (t(e[n]))
|
|
619
606
|
return n;
|
|
620
607
|
}
|
|
621
|
-
function
|
|
608
|
+
function Mr(e) {
|
|
622
609
|
return (t, n = {}) => {
|
|
623
610
|
const r = t.match(e.matchPattern);
|
|
624
611
|
if (!r) return null;
|
|
@@ -630,23 +617,23 @@ function vr(e) {
|
|
|
630
617
|
return { value: o, rest: i };
|
|
631
618
|
};
|
|
632
619
|
}
|
|
633
|
-
const
|
|
620
|
+
const wr = /^(\d+)(th|st|nd|rd)?/i, vr = /\d+/i, kr = {
|
|
634
621
|
narrow: /^(b|a)/i,
|
|
635
622
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
636
623
|
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
637
|
-
},
|
|
624
|
+
}, Dr = {
|
|
638
625
|
any: [/^b/i, /^(a|c)/i]
|
|
639
|
-
},
|
|
626
|
+
}, Or = {
|
|
640
627
|
narrow: /^[1234]/i,
|
|
641
628
|
abbreviated: /^q[1234]/i,
|
|
642
629
|
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
643
|
-
},
|
|
630
|
+
}, pr = {
|
|
644
631
|
any: [/1/i, /2/i, /3/i, /4/i]
|
|
645
|
-
},
|
|
632
|
+
}, Wr = {
|
|
646
633
|
narrow: /^[jfmasond]/i,
|
|
647
634
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
648
635
|
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
649
|
-
},
|
|
636
|
+
}, Sr = {
|
|
650
637
|
narrow: [
|
|
651
638
|
/^j/i,
|
|
652
639
|
/^f/i,
|
|
@@ -675,18 +662,18 @@ const kr = /^(\d+)(th|st|nd|rd)?/i, Dr = /\d+/i, Or = {
|
|
|
675
662
|
/^n/i,
|
|
676
663
|
/^d/i
|
|
677
664
|
]
|
|
678
|
-
},
|
|
665
|
+
}, Nr = {
|
|
679
666
|
narrow: /^[smtwf]/i,
|
|
680
667
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
681
668
|
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
682
669
|
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
683
|
-
},
|
|
670
|
+
}, Cr = {
|
|
684
671
|
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
685
672
|
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
686
|
-
},
|
|
673
|
+
}, xr = {
|
|
687
674
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
688
675
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
689
|
-
},
|
|
676
|
+
}, _r = {
|
|
690
677
|
any: {
|
|
691
678
|
am: /^a/i,
|
|
692
679
|
pm: /^p/i,
|
|
@@ -697,64 +684,64 @@ const kr = /^(\d+)(th|st|nd|rd)?/i, Dr = /\d+/i, Or = {
|
|
|
697
684
|
evening: /evening/i,
|
|
698
685
|
night: /night/i
|
|
699
686
|
}
|
|
700
|
-
},
|
|
701
|
-
ordinalNumber:
|
|
702
|
-
matchPattern:
|
|
703
|
-
parsePattern:
|
|
687
|
+
}, Yr = {
|
|
688
|
+
ordinalNumber: Mr({
|
|
689
|
+
matchPattern: wr,
|
|
690
|
+
parsePattern: vr,
|
|
704
691
|
valueCallback: (e) => parseInt(e, 10)
|
|
705
692
|
}),
|
|
706
693
|
era: ye({
|
|
707
|
-
matchPatterns:
|
|
694
|
+
matchPatterns: kr,
|
|
708
695
|
defaultMatchWidth: "wide",
|
|
709
|
-
parsePatterns:
|
|
696
|
+
parsePatterns: Dr,
|
|
710
697
|
defaultParseWidth: "any"
|
|
711
698
|
}),
|
|
712
699
|
quarter: ye({
|
|
713
|
-
matchPatterns:
|
|
700
|
+
matchPatterns: Or,
|
|
714
701
|
defaultMatchWidth: "wide",
|
|
715
|
-
parsePatterns:
|
|
702
|
+
parsePatterns: pr,
|
|
716
703
|
defaultParseWidth: "any",
|
|
717
704
|
valueCallback: (e) => e + 1
|
|
718
705
|
}),
|
|
719
706
|
month: ye({
|
|
720
|
-
matchPatterns:
|
|
707
|
+
matchPatterns: Wr,
|
|
721
708
|
defaultMatchWidth: "wide",
|
|
722
|
-
parsePatterns:
|
|
709
|
+
parsePatterns: Sr,
|
|
723
710
|
defaultParseWidth: "any"
|
|
724
711
|
}),
|
|
725
712
|
day: ye({
|
|
726
|
-
matchPatterns:
|
|
713
|
+
matchPatterns: Nr,
|
|
727
714
|
defaultMatchWidth: "wide",
|
|
728
|
-
parsePatterns:
|
|
715
|
+
parsePatterns: Cr,
|
|
729
716
|
defaultParseWidth: "any"
|
|
730
717
|
}),
|
|
731
718
|
dayPeriod: ye({
|
|
732
|
-
matchPatterns:
|
|
719
|
+
matchPatterns: xr,
|
|
733
720
|
defaultMatchWidth: "any",
|
|
734
|
-
parsePatterns:
|
|
721
|
+
parsePatterns: _r,
|
|
735
722
|
defaultParseWidth: "any"
|
|
736
723
|
})
|
|
737
724
|
}, oe = {
|
|
738
725
|
code: "en-US",
|
|
739
|
-
formatDistance:
|
|
740
|
-
formatLong:
|
|
741
|
-
formatRelative:
|
|
742
|
-
localize:
|
|
743
|
-
match:
|
|
726
|
+
formatDistance: tr,
|
|
727
|
+
formatLong: sr,
|
|
728
|
+
formatRelative: ir,
|
|
729
|
+
localize: yr,
|
|
730
|
+
match: Yr,
|
|
744
731
|
options: {
|
|
745
732
|
weekStartsOn: 0,
|
|
746
733
|
firstWeekContainsDate: 1
|
|
747
734
|
}
|
|
748
|
-
},
|
|
735
|
+
}, Tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
749
736
|
__proto__: null,
|
|
750
737
|
enUS: oe
|
|
751
738
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
752
|
-
function
|
|
739
|
+
function Pr(e, t) {
|
|
753
740
|
const n = P(e, t == null ? void 0 : t.in);
|
|
754
741
|
return Je(n, Ft(n)) + 1;
|
|
755
742
|
}
|
|
756
743
|
function Ze(e, t) {
|
|
757
|
-
const n = P(e, t == null ? void 0 : t.in), r = +Me(n) - +
|
|
744
|
+
const n = P(e, t == null ? void 0 : t.in), r = +Me(n) - +jn(n);
|
|
758
745
|
return Math.round(r / Nt) + 1;
|
|
759
746
|
}
|
|
760
747
|
function It(e, t) {
|
|
@@ -766,13 +753,13 @@ function It(e, t) {
|
|
|
766
753
|
const c = fe(d, t);
|
|
767
754
|
return +n >= +i ? r + 1 : +n >= +c ? r : r - 1;
|
|
768
755
|
}
|
|
769
|
-
function
|
|
756
|
+
function Er(e, t) {
|
|
770
757
|
var i, d, c, u;
|
|
771
758
|
const n = ve(), r = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((u = (c = n.locale) == null ? void 0 : c.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1, a = It(e, t), s = I((t == null ? void 0 : t.in) || e, 0);
|
|
772
759
|
return s.setFullYear(a, 0, r), s.setHours(0, 0, 0, 0), fe(s, t);
|
|
773
760
|
}
|
|
774
761
|
function Le(e, t) {
|
|
775
|
-
const n = P(e, t == null ? void 0 : t.in), r = +fe(n, t) - +
|
|
762
|
+
const n = P(e, t == null ? void 0 : t.in), r = +fe(n, t) - +Er(n, t);
|
|
776
763
|
return Math.round(r / Nt) + 1;
|
|
777
764
|
}
|
|
778
765
|
function Y(e, t) {
|
|
@@ -1037,7 +1024,7 @@ const ae = {
|
|
|
1037
1024
|
},
|
|
1038
1025
|
// Day of year
|
|
1039
1026
|
D: function(e, t, n) {
|
|
1040
|
-
const r =
|
|
1027
|
+
const r = Pr(e);
|
|
1041
1028
|
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Y(r, t.length);
|
|
1042
1029
|
},
|
|
1043
1030
|
// Day of week
|
|
@@ -1430,7 +1417,7 @@ const Mt = (e, t) => {
|
|
|
1430
1417
|
default:
|
|
1431
1418
|
return t.time({ width: "full" });
|
|
1432
1419
|
}
|
|
1433
|
-
},
|
|
1420
|
+
}, Fr = (e, t) => {
|
|
1434
1421
|
const n = e.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1435
1422
|
if (!a)
|
|
1436
1423
|
return Mt(e, t);
|
|
@@ -1451,46 +1438,46 @@ const Mt = (e, t) => {
|
|
|
1451
1438
|
break;
|
|
1452
1439
|
}
|
|
1453
1440
|
return s.replace("{{date}}", Mt(r, t)).replace("{{time}}", Ht(a, t));
|
|
1454
|
-
},
|
|
1441
|
+
}, Br = {
|
|
1455
1442
|
p: Ht,
|
|
1456
|
-
P:
|
|
1457
|
-
},
|
|
1458
|
-
function
|
|
1459
|
-
return
|
|
1443
|
+
P: Fr
|
|
1444
|
+
}, Ir = /^D+$/, Hr = /^Y+$/, Ar = ["D", "DD", "YY", "YYYY"];
|
|
1445
|
+
function zr(e) {
|
|
1446
|
+
return Ir.test(e);
|
|
1460
1447
|
}
|
|
1461
|
-
function
|
|
1462
|
-
return
|
|
1448
|
+
function qr(e) {
|
|
1449
|
+
return Hr.test(e);
|
|
1463
1450
|
}
|
|
1464
|
-
function
|
|
1465
|
-
const r =
|
|
1466
|
-
if (console.warn(r),
|
|
1451
|
+
function jr(e, t, n) {
|
|
1452
|
+
const r = $r(e, t, n);
|
|
1453
|
+
if (console.warn(r), Ar.includes(e)) throw new RangeError(r);
|
|
1467
1454
|
}
|
|
1468
|
-
function
|
|
1455
|
+
function $r(e, t, n) {
|
|
1469
1456
|
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
1470
1457
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
1471
1458
|
}
|
|
1472
|
-
const
|
|
1459
|
+
const Gr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Rr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Vr = /^'([^]*?)'?$/, Ur = /''/g, Qr = /[a-zA-Z]/;
|
|
1473
1460
|
function be(e, t, n) {
|
|
1474
1461
|
var u, f, h, g, D, p, k, N;
|
|
1475
1462
|
const r = ve(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? oe, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (u = n == null ? void 0 : n.locale) == null ? void 0 : u.options) == null ? void 0 : f.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((g = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, o = (n == null ? void 0 : n.weekStartsOn) ?? ((p = (D = n == null ? void 0 : n.locale) == null ? void 0 : D.options) == null ? void 0 : p.weekStartsOn) ?? r.weekStartsOn ?? ((N = (k = r.locale) == null ? void 0 : k.options) == null ? void 0 : N.weekStartsOn) ?? 0, i = P(e, n == null ? void 0 : n.in);
|
|
1476
|
-
if (!
|
|
1463
|
+
if (!Un(i))
|
|
1477
1464
|
throw new RangeError("Invalid time value");
|
|
1478
|
-
let d = t.match(
|
|
1465
|
+
let d = t.match(Rr).map((M) => {
|
|
1479
1466
|
const b = M[0];
|
|
1480
1467
|
if (b === "p" || b === "P") {
|
|
1481
|
-
const W =
|
|
1468
|
+
const W = Br[b];
|
|
1482
1469
|
return W(M, a.formatLong);
|
|
1483
1470
|
}
|
|
1484
1471
|
return M;
|
|
1485
|
-
}).join("").match(
|
|
1472
|
+
}).join("").match(Gr).map((M) => {
|
|
1486
1473
|
if (M === "''")
|
|
1487
1474
|
return { isToken: !1, value: "'" };
|
|
1488
1475
|
const b = M[0];
|
|
1489
1476
|
if (b === "'")
|
|
1490
|
-
return { isToken: !1, value:
|
|
1477
|
+
return { isToken: !1, value: Xr(M) };
|
|
1491
1478
|
if (yt[b])
|
|
1492
1479
|
return { isToken: !0, value: M };
|
|
1493
|
-
if (b.match(
|
|
1480
|
+
if (b.match(Qr))
|
|
1494
1481
|
throw new RangeError(
|
|
1495
1482
|
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
1496
1483
|
);
|
|
@@ -1505,32 +1492,32 @@ function be(e, t, n) {
|
|
|
1505
1492
|
return d.map((M) => {
|
|
1506
1493
|
if (!M.isToken) return M.value;
|
|
1507
1494
|
const b = M.value;
|
|
1508
|
-
(!(n != null && n.useAdditionalWeekYearTokens) &&
|
|
1495
|
+
(!(n != null && n.useAdditionalWeekYearTokens) && qr(b) || !(n != null && n.useAdditionalDayOfYearTokens) && zr(b)) && jr(b, t, String(e));
|
|
1509
1496
|
const W = yt[b[0]];
|
|
1510
1497
|
return W(i, b, a.localize, c);
|
|
1511
1498
|
}).join("");
|
|
1512
1499
|
}
|
|
1513
|
-
function
|
|
1514
|
-
const t = e.match(
|
|
1515
|
-
return t ? t[1].replace(
|
|
1500
|
+
function Xr(e) {
|
|
1501
|
+
const t = e.match(Vr);
|
|
1502
|
+
return t ? t[1].replace(Ur, "'") : e;
|
|
1516
1503
|
}
|
|
1517
|
-
function
|
|
1504
|
+
function Kr(e, t) {
|
|
1518
1505
|
const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = n.getMonth(), s = I(n, 0);
|
|
1519
1506
|
return s.setFullYear(r, a + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
1520
1507
|
}
|
|
1521
|
-
function
|
|
1508
|
+
function Jr(e, t) {
|
|
1522
1509
|
return P(e, t == null ? void 0 : t.in).getMonth();
|
|
1523
1510
|
}
|
|
1524
|
-
function
|
|
1511
|
+
function Zr(e, t) {
|
|
1525
1512
|
return P(e, t == null ? void 0 : t.in).getFullYear();
|
|
1526
1513
|
}
|
|
1527
|
-
function
|
|
1514
|
+
function Lr(e, t) {
|
|
1528
1515
|
return +P(e) > +P(t);
|
|
1529
1516
|
}
|
|
1530
|
-
function
|
|
1517
|
+
function ea(e, t) {
|
|
1531
1518
|
return +P(e) < +P(t);
|
|
1532
1519
|
}
|
|
1533
|
-
function
|
|
1520
|
+
function ta(e, t, n) {
|
|
1534
1521
|
const [r, a] = we(
|
|
1535
1522
|
n == null ? void 0 : n.in,
|
|
1536
1523
|
e,
|
|
@@ -1538,7 +1525,7 @@ function ra(e, t, n) {
|
|
|
1538
1525
|
);
|
|
1539
1526
|
return r.getFullYear() === a.getFullYear() && r.getMonth() === a.getMonth();
|
|
1540
1527
|
}
|
|
1541
|
-
function
|
|
1528
|
+
function na(e, t, n) {
|
|
1542
1529
|
const [r, a] = we(
|
|
1543
1530
|
n == null ? void 0 : n.in,
|
|
1544
1531
|
e,
|
|
@@ -1546,27 +1533,27 @@ function aa(e, t, n) {
|
|
|
1546
1533
|
);
|
|
1547
1534
|
return r.getFullYear() === a.getFullYear();
|
|
1548
1535
|
}
|
|
1549
|
-
function
|
|
1536
|
+
function ra(e, t, n) {
|
|
1550
1537
|
const r = P(e, n == null ? void 0 : n.in), a = r.getFullYear(), s = r.getDate(), o = I(e, 0);
|
|
1551
1538
|
o.setFullYear(a, t, 15), o.setHours(0, 0, 0, 0);
|
|
1552
|
-
const i =
|
|
1539
|
+
const i = Kr(o);
|
|
1553
1540
|
return r.setMonth(t, Math.min(s, i)), r;
|
|
1554
1541
|
}
|
|
1555
|
-
function
|
|
1542
|
+
function aa(e, t, n) {
|
|
1556
1543
|
const r = P(e, n == null ? void 0 : n.in);
|
|
1557
1544
|
return isNaN(+r) ? I(e, NaN) : (r.setFullYear(t), r);
|
|
1558
1545
|
}
|
|
1559
|
-
const wt = 5,
|
|
1560
|
-
function
|
|
1546
|
+
const wt = 5, sa = 4;
|
|
1547
|
+
function oa(e, t) {
|
|
1561
1548
|
const n = t.startOfMonth(e), r = n.getDay() > 0 ? n.getDay() : 7, a = t.addDays(e, -r + 1), s = t.addDays(a, wt * 7 - 1);
|
|
1562
|
-
return t.getMonth(e) === t.getMonth(s) ? wt :
|
|
1549
|
+
return t.getMonth(e) === t.getMonth(s) ? wt : sa;
|
|
1563
1550
|
}
|
|
1564
1551
|
function At(e, t) {
|
|
1565
1552
|
const n = t.startOfMonth(e), r = n.getDay();
|
|
1566
1553
|
return r === 1 ? n : r === 0 ? t.addDays(n, -6) : t.addDays(n, -1 * (r - 1));
|
|
1567
1554
|
}
|
|
1568
|
-
function
|
|
1569
|
-
const n = At(e, t), r =
|
|
1555
|
+
function ia(e, t) {
|
|
1556
|
+
const n = At(e, t), r = oa(e, t);
|
|
1570
1557
|
return t.addDays(n, r * 7 - 1);
|
|
1571
1558
|
}
|
|
1572
1559
|
const zt = {
|
|
@@ -1623,10 +1610,10 @@ class j {
|
|
|
1623
1610
|
return (s = this.overrides) != null && s.addMonths ? this.overrides.addMonths(r, a) : _t(r, a);
|
|
1624
1611
|
}, this.addWeeks = (r, a) => {
|
|
1625
1612
|
var s;
|
|
1626
|
-
return (s = this.overrides) != null && s.addWeeks ? this.overrides.addWeeks(r, a) :
|
|
1613
|
+
return (s = this.overrides) != null && s.addWeeks ? this.overrides.addWeeks(r, a) : $n(r, a);
|
|
1627
1614
|
}, this.addYears = (r, a) => {
|
|
1628
1615
|
var s;
|
|
1629
|
-
return (s = this.overrides) != null && s.addYears ? this.overrides.addYears(r, a) :
|
|
1616
|
+
return (s = this.overrides) != null && s.addYears ? this.overrides.addYears(r, a) : Gn(r, a);
|
|
1630
1617
|
}, this.differenceInCalendarDays = (r, a) => {
|
|
1631
1618
|
var s;
|
|
1632
1619
|
return (s = this.overrides) != null && s.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, a) : Je(r, a);
|
|
@@ -1635,10 +1622,10 @@ class j {
|
|
|
1635
1622
|
return (s = this.overrides) != null && s.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, a) : Pt(r, a);
|
|
1636
1623
|
}, this.eachMonthOfInterval = (r) => {
|
|
1637
1624
|
var a;
|
|
1638
|
-
return (a = this.overrides) != null && a.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) :
|
|
1625
|
+
return (a = this.overrides) != null && a.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Xn(r);
|
|
1639
1626
|
}, this.eachYearOfInterval = (r) => {
|
|
1640
1627
|
var i;
|
|
1641
|
-
const a = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) :
|
|
1628
|
+
const a = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Zn(r), s = new Set(a.map((d) => this.getYear(d)));
|
|
1642
1629
|
if (s.size === a.length)
|
|
1643
1630
|
return a;
|
|
1644
1631
|
const o = [];
|
|
@@ -1647,19 +1634,19 @@ class j {
|
|
|
1647
1634
|
}), o;
|
|
1648
1635
|
}, this.endOfBroadcastWeek = (r) => {
|
|
1649
1636
|
var a;
|
|
1650
|
-
return (a = this.overrides) != null && a.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) :
|
|
1637
|
+
return (a = this.overrides) != null && a.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : ia(r, this);
|
|
1651
1638
|
}, this.endOfISOWeek = (r) => {
|
|
1652
1639
|
var a;
|
|
1653
|
-
return (a = this.overrides) != null && a.endOfISOWeek ? this.overrides.endOfISOWeek(r) :
|
|
1640
|
+
return (a = this.overrides) != null && a.endOfISOWeek ? this.overrides.endOfISOWeek(r) : Ln(r);
|
|
1654
1641
|
}, this.endOfMonth = (r) => {
|
|
1655
1642
|
var a;
|
|
1656
|
-
return (a = this.overrides) != null && a.endOfMonth ? this.overrides.endOfMonth(r) :
|
|
1643
|
+
return (a = this.overrides) != null && a.endOfMonth ? this.overrides.endOfMonth(r) : Qn(r);
|
|
1657
1644
|
}, this.endOfWeek = (r, a) => {
|
|
1658
1645
|
var s;
|
|
1659
1646
|
return (s = this.overrides) != null && s.endOfWeek ? this.overrides.endOfWeek(r, a) : Bt(r, this.options);
|
|
1660
1647
|
}, this.endOfYear = (r) => {
|
|
1661
1648
|
var a;
|
|
1662
|
-
return (a = this.overrides) != null && a.endOfYear ? this.overrides.endOfYear(r) :
|
|
1649
|
+
return (a = this.overrides) != null && a.endOfYear ? this.overrides.endOfYear(r) : Jn(r);
|
|
1663
1650
|
}, this.format = (r, a, s) => {
|
|
1664
1651
|
var i;
|
|
1665
1652
|
const o = (i = this.overrides) != null && i.format ? this.overrides.format(r, a, this.options) : be(r, a, this.options);
|
|
@@ -1669,43 +1656,43 @@ class j {
|
|
|
1669
1656
|
return (a = this.overrides) != null && a.getISOWeek ? this.overrides.getISOWeek(r) : Ze(r);
|
|
1670
1657
|
}, this.getMonth = (r, a) => {
|
|
1671
1658
|
var s;
|
|
1672
|
-
return (s = this.overrides) != null && s.getMonth ? this.overrides.getMonth(r, this.options) :
|
|
1659
|
+
return (s = this.overrides) != null && s.getMonth ? this.overrides.getMonth(r, this.options) : Jr(r, this.options);
|
|
1673
1660
|
}, this.getYear = (r, a) => {
|
|
1674
1661
|
var s;
|
|
1675
|
-
return (s = this.overrides) != null && s.getYear ? this.overrides.getYear(r, this.options) :
|
|
1662
|
+
return (s = this.overrides) != null && s.getYear ? this.overrides.getYear(r, this.options) : Zr(r, this.options);
|
|
1676
1663
|
}, this.getWeek = (r, a) => {
|
|
1677
1664
|
var s;
|
|
1678
1665
|
return (s = this.overrides) != null && s.getWeek ? this.overrides.getWeek(r, this.options) : Le(r, this.options);
|
|
1679
1666
|
}, this.isAfter = (r, a) => {
|
|
1680
1667
|
var s;
|
|
1681
|
-
return (s = this.overrides) != null && s.isAfter ? this.overrides.isAfter(r, a) :
|
|
1668
|
+
return (s = this.overrides) != null && s.isAfter ? this.overrides.isAfter(r, a) : Lr(r, a);
|
|
1682
1669
|
}, this.isBefore = (r, a) => {
|
|
1683
1670
|
var s;
|
|
1684
|
-
return (s = this.overrides) != null && s.isBefore ? this.overrides.isBefore(r, a) :
|
|
1671
|
+
return (s = this.overrides) != null && s.isBefore ? this.overrides.isBefore(r, a) : ea(r, a);
|
|
1685
1672
|
}, this.isDate = (r) => {
|
|
1686
1673
|
var a;
|
|
1687
1674
|
return (a = this.overrides) != null && a.isDate ? this.overrides.isDate(r) : Tt(r);
|
|
1688
1675
|
}, this.isSameDay = (r, a) => {
|
|
1689
1676
|
var s;
|
|
1690
|
-
return (s = this.overrides) != null && s.isSameDay ? this.overrides.isSameDay(r, a) :
|
|
1677
|
+
return (s = this.overrides) != null && s.isSameDay ? this.overrides.isSameDay(r, a) : Fn(r, a);
|
|
1691
1678
|
}, this.isSameMonth = (r, a) => {
|
|
1692
1679
|
var s;
|
|
1693
|
-
return (s = this.overrides) != null && s.isSameMonth ? this.overrides.isSameMonth(r, a) :
|
|
1680
|
+
return (s = this.overrides) != null && s.isSameMonth ? this.overrides.isSameMonth(r, a) : ta(r, a);
|
|
1694
1681
|
}, this.isSameYear = (r, a) => {
|
|
1695
1682
|
var s;
|
|
1696
|
-
return (s = this.overrides) != null && s.isSameYear ? this.overrides.isSameYear(r, a) :
|
|
1683
|
+
return (s = this.overrides) != null && s.isSameYear ? this.overrides.isSameYear(r, a) : na(r, a);
|
|
1697
1684
|
}, this.max = (r) => {
|
|
1698
1685
|
var a;
|
|
1699
|
-
return (a = this.overrides) != null && a.max ? this.overrides.max(r) :
|
|
1686
|
+
return (a = this.overrides) != null && a.max ? this.overrides.max(r) : Rn(r);
|
|
1700
1687
|
}, this.min = (r) => {
|
|
1701
1688
|
var a;
|
|
1702
|
-
return (a = this.overrides) != null && a.min ? this.overrides.min(r) :
|
|
1689
|
+
return (a = this.overrides) != null && a.min ? this.overrides.min(r) : Vn(r);
|
|
1703
1690
|
}, this.setMonth = (r, a) => {
|
|
1704
1691
|
var s;
|
|
1705
|
-
return (s = this.overrides) != null && s.setMonth ? this.overrides.setMonth(r, a) :
|
|
1692
|
+
return (s = this.overrides) != null && s.setMonth ? this.overrides.setMonth(r, a) : ra(r, a);
|
|
1706
1693
|
}, this.setYear = (r, a) => {
|
|
1707
1694
|
var s;
|
|
1708
|
-
return (s = this.overrides) != null && s.setYear ? this.overrides.setYear(r, a) :
|
|
1695
|
+
return (s = this.overrides) != null && s.setYear ? this.overrides.setYear(r, a) : aa(r, a);
|
|
1709
1696
|
}, this.startOfBroadcastWeek = (r, a) => {
|
|
1710
1697
|
var s;
|
|
1711
1698
|
return (s = this.overrides) != null && s.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : At(r, this);
|
|
@@ -1717,7 +1704,7 @@ class j {
|
|
|
1717
1704
|
return (a = this.overrides) != null && a.startOfISOWeek ? this.overrides.startOfISOWeek(r) : Me(r);
|
|
1718
1705
|
}, this.startOfMonth = (r) => {
|
|
1719
1706
|
var a;
|
|
1720
|
-
return (a = this.overrides) != null && a.startOfMonth ? this.overrides.startOfMonth(r) :
|
|
1707
|
+
return (a = this.overrides) != null && a.startOfMonth ? this.overrides.startOfMonth(r) : Kn(r);
|
|
1721
1708
|
}, this.startOfWeek = (r, a) => {
|
|
1722
1709
|
var s;
|
|
1723
1710
|
return (s = this.overrides) != null && s.startOfWeek ? this.overrides.startOfWeek(r, this.options) : fe(r, this.options);
|
|
@@ -1827,23 +1814,23 @@ class qt {
|
|
|
1827
1814
|
return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
|
|
1828
1815
|
}
|
|
1829
1816
|
}
|
|
1830
|
-
class
|
|
1817
|
+
class da {
|
|
1831
1818
|
constructor(t, n) {
|
|
1832
1819
|
this.date = t, this.weeks = n;
|
|
1833
1820
|
}
|
|
1834
1821
|
}
|
|
1835
|
-
class
|
|
1822
|
+
class ca {
|
|
1836
1823
|
constructor(t, n) {
|
|
1837
1824
|
this.days = n, this.weekNumber = t;
|
|
1838
1825
|
}
|
|
1839
1826
|
}
|
|
1840
|
-
function
|
|
1827
|
+
function ua(e) {
|
|
1841
1828
|
return y.createElement("button", { ...e });
|
|
1842
1829
|
}
|
|
1843
|
-
function
|
|
1830
|
+
function fa(e) {
|
|
1844
1831
|
return y.createElement("span", { ...e });
|
|
1845
1832
|
}
|
|
1846
|
-
function
|
|
1833
|
+
function la(e) {
|
|
1847
1834
|
const { size: t = 24, orientation: n = "left", className: r } = e;
|
|
1848
1835
|
return (
|
|
1849
1836
|
// biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
|
|
@@ -1857,11 +1844,11 @@ function ma(e) {
|
|
|
1857
1844
|
)
|
|
1858
1845
|
);
|
|
1859
1846
|
}
|
|
1860
|
-
function
|
|
1847
|
+
function ha(e) {
|
|
1861
1848
|
const { day: t, modifiers: n, ...r } = e;
|
|
1862
1849
|
return y.createElement("td", { ...r });
|
|
1863
1850
|
}
|
|
1864
|
-
function
|
|
1851
|
+
function ma(e) {
|
|
1865
1852
|
const { day: t, modifiers: n, ...r } = e, a = y.useRef(null);
|
|
1866
1853
|
return y.useEffect(() => {
|
|
1867
1854
|
var s;
|
|
@@ -1884,7 +1871,7 @@ var q;
|
|
|
1884
1871
|
(function(e) {
|
|
1885
1872
|
e.weeks_before_enter = "weeks_before_enter", e.weeks_before_exit = "weeks_before_exit", e.weeks_after_enter = "weeks_after_enter", e.weeks_after_exit = "weeks_after_exit", e.caption_after_enter = "caption_after_enter", e.caption_after_exit = "caption_after_exit", e.caption_before_enter = "caption_before_enter", e.caption_before_exit = "caption_before_exit";
|
|
1886
1873
|
})(q || (q = {}));
|
|
1887
|
-
function
|
|
1874
|
+
function ya(e) {
|
|
1888
1875
|
const { options: t, className: n, components: r, classNames: a, ...s } = e, o = [a[m.Dropdown], n].join(" "), i = t == null ? void 0 : t.find(({ value: d }) => d === s.value);
|
|
1889
1876
|
return y.createElement(
|
|
1890
1877
|
"span",
|
|
@@ -1898,38 +1885,38 @@ function ba(e) {
|
|
|
1898
1885
|
)
|
|
1899
1886
|
);
|
|
1900
1887
|
}
|
|
1901
|
-
function
|
|
1888
|
+
function ga(e) {
|
|
1902
1889
|
return y.createElement("div", { ...e });
|
|
1903
1890
|
}
|
|
1904
|
-
function
|
|
1891
|
+
function ba(e) {
|
|
1905
1892
|
return y.createElement("div", { ...e });
|
|
1906
1893
|
}
|
|
1907
|
-
function
|
|
1894
|
+
function Ma(e) {
|
|
1908
1895
|
const { calendarMonth: t, displayIndex: n, ...r } = e;
|
|
1909
1896
|
return y.createElement("div", { ...r }, e.children);
|
|
1910
1897
|
}
|
|
1911
|
-
function
|
|
1898
|
+
function wa(e) {
|
|
1912
1899
|
const { calendarMonth: t, displayIndex: n, ...r } = e;
|
|
1913
1900
|
return y.createElement("div", { ...r });
|
|
1914
1901
|
}
|
|
1915
|
-
function
|
|
1902
|
+
function va(e) {
|
|
1916
1903
|
return y.createElement("table", { ...e });
|
|
1917
1904
|
}
|
|
1918
|
-
function
|
|
1905
|
+
function ka(e) {
|
|
1919
1906
|
return y.createElement("div", { ...e });
|
|
1920
1907
|
}
|
|
1921
|
-
const jt =
|
|
1908
|
+
const jt = Yn(void 0);
|
|
1922
1909
|
function ke() {
|
|
1923
|
-
const e =
|
|
1910
|
+
const e = Tn(jt);
|
|
1924
1911
|
if (e === void 0)
|
|
1925
1912
|
throw new Error("useDayPicker() must be used within a custom component.");
|
|
1926
1913
|
return e;
|
|
1927
1914
|
}
|
|
1928
|
-
function
|
|
1915
|
+
function Da(e) {
|
|
1929
1916
|
const { components: t } = ke();
|
|
1930
1917
|
return y.createElement(t.Dropdown, { ...e });
|
|
1931
1918
|
}
|
|
1932
|
-
function
|
|
1919
|
+
function Oa(e) {
|
|
1933
1920
|
const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: a, ...s } = e, { components: o, classNames: i, labels: { labelPrevious: d, labelNext: c } } = ke(), u = R((h) => {
|
|
1934
1921
|
a && (n == null || n(h));
|
|
1935
1922
|
}, [a, n]), f = R((h) => {
|
|
@@ -1950,80 +1937,80 @@ function Wa(e) {
|
|
|
1950
1937
|
)
|
|
1951
1938
|
);
|
|
1952
1939
|
}
|
|
1953
|
-
function
|
|
1940
|
+
function pa(e) {
|
|
1954
1941
|
const { components: t } = ke();
|
|
1955
1942
|
return y.createElement(t.Button, { ...e });
|
|
1956
1943
|
}
|
|
1957
|
-
function
|
|
1944
|
+
function Wa(e) {
|
|
1958
1945
|
return y.createElement("option", { ...e });
|
|
1959
1946
|
}
|
|
1960
|
-
function
|
|
1947
|
+
function Sa(e) {
|
|
1961
1948
|
const { components: t } = ke();
|
|
1962
1949
|
return y.createElement(t.Button, { ...e });
|
|
1963
1950
|
}
|
|
1964
|
-
function
|
|
1951
|
+
function Na(e) {
|
|
1965
1952
|
const { rootRef: t, ...n } = e;
|
|
1966
1953
|
return y.createElement("div", { ...n, ref: t });
|
|
1967
1954
|
}
|
|
1968
|
-
function
|
|
1955
|
+
function Ca(e) {
|
|
1969
1956
|
return y.createElement("select", { ...e });
|
|
1970
1957
|
}
|
|
1971
|
-
function
|
|
1958
|
+
function xa(e) {
|
|
1972
1959
|
const { week: t, ...n } = e;
|
|
1973
1960
|
return y.createElement("tr", { ...n });
|
|
1974
1961
|
}
|
|
1975
|
-
function
|
|
1962
|
+
function _a(e) {
|
|
1976
1963
|
return y.createElement("th", { ...e });
|
|
1977
1964
|
}
|
|
1978
|
-
function
|
|
1965
|
+
function Ya(e) {
|
|
1979
1966
|
return y.createElement(
|
|
1980
1967
|
"thead",
|
|
1981
1968
|
{ "aria-hidden": !0 },
|
|
1982
1969
|
y.createElement("tr", { ...e })
|
|
1983
1970
|
);
|
|
1984
1971
|
}
|
|
1985
|
-
function
|
|
1972
|
+
function Ta(e) {
|
|
1986
1973
|
const { week: t, ...n } = e;
|
|
1987
1974
|
return y.createElement("th", { ...n });
|
|
1988
1975
|
}
|
|
1989
|
-
function
|
|
1976
|
+
function Pa(e) {
|
|
1990
1977
|
return y.createElement("th", { ...e });
|
|
1991
1978
|
}
|
|
1992
|
-
function
|
|
1979
|
+
function Ea(e) {
|
|
1993
1980
|
return y.createElement("tbody", { ...e });
|
|
1994
1981
|
}
|
|
1995
|
-
function
|
|
1982
|
+
function Fa(e) {
|
|
1996
1983
|
const { components: t } = ke();
|
|
1997
1984
|
return y.createElement(t.Dropdown, { ...e });
|
|
1998
1985
|
}
|
|
1999
|
-
const
|
|
1986
|
+
const Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2000
1987
|
__proto__: null,
|
|
2001
|
-
Button:
|
|
2002
|
-
CaptionLabel:
|
|
2003
|
-
Chevron:
|
|
2004
|
-
Day:
|
|
2005
|
-
DayButton:
|
|
2006
|
-
Dropdown:
|
|
2007
|
-
DropdownNav:
|
|
2008
|
-
Footer:
|
|
2009
|
-
Month:
|
|
2010
|
-
MonthCaption:
|
|
2011
|
-
MonthGrid:
|
|
2012
|
-
Months:
|
|
2013
|
-
MonthsDropdown:
|
|
2014
|
-
Nav:
|
|
2015
|
-
NextMonthButton:
|
|
2016
|
-
Option:
|
|
2017
|
-
PreviousMonthButton:
|
|
2018
|
-
Root:
|
|
2019
|
-
Select:
|
|
2020
|
-
Week:
|
|
2021
|
-
WeekNumber:
|
|
2022
|
-
WeekNumberHeader:
|
|
2023
|
-
Weekday:
|
|
2024
|
-
Weekdays:
|
|
2025
|
-
Weeks:
|
|
2026
|
-
YearsDropdown:
|
|
1988
|
+
Button: ua,
|
|
1989
|
+
CaptionLabel: fa,
|
|
1990
|
+
Chevron: la,
|
|
1991
|
+
Day: ha,
|
|
1992
|
+
DayButton: ma,
|
|
1993
|
+
Dropdown: ya,
|
|
1994
|
+
DropdownNav: ga,
|
|
1995
|
+
Footer: ba,
|
|
1996
|
+
Month: Ma,
|
|
1997
|
+
MonthCaption: wa,
|
|
1998
|
+
MonthGrid: va,
|
|
1999
|
+
Months: ka,
|
|
2000
|
+
MonthsDropdown: Da,
|
|
2001
|
+
Nav: Oa,
|
|
2002
|
+
NextMonthButton: pa,
|
|
2003
|
+
Option: Wa,
|
|
2004
|
+
PreviousMonthButton: Sa,
|
|
2005
|
+
Root: Na,
|
|
2006
|
+
Select: Ca,
|
|
2007
|
+
Week: xa,
|
|
2008
|
+
WeekNumber: Ta,
|
|
2009
|
+
WeekNumberHeader: Pa,
|
|
2010
|
+
Weekday: _a,
|
|
2011
|
+
Weekdays: Ya,
|
|
2012
|
+
Weeks: Ea,
|
|
2013
|
+
YearsDropdown: Fa
|
|
2027
2014
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2028
2015
|
function te(e, t, n = !1, r = Z) {
|
|
2029
2016
|
let { from: a, to: s } = e;
|
|
@@ -2068,7 +2055,7 @@ function ne(e, t, n = Z) {
|
|
|
2068
2055
|
return tt(i) ? s(e, i.after) > 0 : nt(i) ? s(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
|
|
2069
2056
|
});
|
|
2070
2057
|
}
|
|
2071
|
-
function
|
|
2058
|
+
function Ia(e, t, n, r, a) {
|
|
2072
2059
|
const { disabled: s, hidden: o, modifiers: i, showOutsideDays: d, broadcastCalendar: c, today: u = a.today() } = t, { isSameDay: f, isSameMonth: h, startOfMonth: g, isBefore: D, endOfMonth: p, isAfter: k } = a, N = n && g(n), M = r && p(r), b = {
|
|
2073
2060
|
[T.focused]: [],
|
|
2074
2061
|
[T.outside]: [],
|
|
@@ -2105,16 +2092,16 @@ function Aa(e, t, n, r, a) {
|
|
|
2105
2092
|
};
|
|
2106
2093
|
};
|
|
2107
2094
|
}
|
|
2108
|
-
function
|
|
2095
|
+
function Ha(e, t, n = {}) {
|
|
2109
2096
|
return Object.entries(e).filter(([, a]) => a === !0).reduce((a, [s]) => (n[s] ? a.push(n[s]) : t[T[s]] ? a.push(t[T[s]]) : t[A[s]] && a.push(t[A[s]]), a), [t[m.Day]]);
|
|
2110
2097
|
}
|
|
2111
|
-
function
|
|
2098
|
+
function Aa(e) {
|
|
2112
2099
|
return {
|
|
2113
|
-
...
|
|
2100
|
+
...Ba,
|
|
2114
2101
|
...e
|
|
2115
2102
|
};
|
|
2116
2103
|
}
|
|
2117
|
-
function
|
|
2104
|
+
function za(e) {
|
|
2118
2105
|
const t = {
|
|
2119
2106
|
"data-mode": e.mode ?? void 0,
|
|
2120
2107
|
"data-required": "required" in e ? e.required : void 0,
|
|
@@ -2127,7 +2114,7 @@ function ja(e) {
|
|
|
2127
2114
|
n.startsWith("data-") && (t[n] = r);
|
|
2128
2115
|
}), t;
|
|
2129
2116
|
}
|
|
2130
|
-
function
|
|
2117
|
+
function qa() {
|
|
2131
2118
|
const e = {};
|
|
2132
2119
|
for (const t in m)
|
|
2133
2120
|
e[m[t]] = `rdp-${m[t]}`;
|
|
@@ -2142,40 +2129,40 @@ function $a() {
|
|
|
2142
2129
|
function Rt(e, t, n) {
|
|
2143
2130
|
return (n ?? new j(t)).formatMonthYear(e);
|
|
2144
2131
|
}
|
|
2145
|
-
const
|
|
2146
|
-
function
|
|
2132
|
+
const ja = Rt;
|
|
2133
|
+
function $a(e, t, n) {
|
|
2147
2134
|
return (n ?? new j(t)).format(e, "d");
|
|
2148
2135
|
}
|
|
2149
|
-
function
|
|
2136
|
+
function Ga(e, t = Z) {
|
|
2150
2137
|
return t.format(e, "LLLL");
|
|
2151
2138
|
}
|
|
2152
|
-
function
|
|
2139
|
+
function Ra(e, t, n) {
|
|
2153
2140
|
return (n ?? new j(t)).format(e, "cccccc");
|
|
2154
2141
|
}
|
|
2155
|
-
function
|
|
2142
|
+
function Va(e, t = Z) {
|
|
2156
2143
|
return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
|
|
2157
2144
|
}
|
|
2158
|
-
function
|
|
2145
|
+
function Ua() {
|
|
2159
2146
|
return "";
|
|
2160
2147
|
}
|
|
2161
2148
|
function Vt(e, t = Z) {
|
|
2162
2149
|
return t.format(e, "yyyy");
|
|
2163
2150
|
}
|
|
2164
|
-
const
|
|
2151
|
+
const Qa = Vt, Xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2165
2152
|
__proto__: null,
|
|
2166
2153
|
formatCaption: Rt,
|
|
2167
|
-
formatDay:
|
|
2168
|
-
formatMonthCaption:
|
|
2169
|
-
formatMonthDropdown:
|
|
2170
|
-
formatWeekNumber:
|
|
2171
|
-
formatWeekNumberHeader:
|
|
2172
|
-
formatWeekdayName:
|
|
2173
|
-
formatYearCaption:
|
|
2154
|
+
formatDay: $a,
|
|
2155
|
+
formatMonthCaption: ja,
|
|
2156
|
+
formatMonthDropdown: Ga,
|
|
2157
|
+
formatWeekNumber: Va,
|
|
2158
|
+
formatWeekNumberHeader: Ua,
|
|
2159
|
+
formatWeekdayName: Ra,
|
|
2160
|
+
formatYearCaption: Qa,
|
|
2174
2161
|
formatYearDropdown: Vt
|
|
2175
2162
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2176
|
-
function
|
|
2163
|
+
function Ka(e) {
|
|
2177
2164
|
return e != null && e.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e != null && e.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
|
|
2178
|
-
...
|
|
2165
|
+
...Xa,
|
|
2179
2166
|
...e
|
|
2180
2167
|
};
|
|
2181
2168
|
}
|
|
@@ -2183,11 +2170,11 @@ function rt(e, t, n, r) {
|
|
|
2183
2170
|
let a = (r ?? new j(n)).format(e, "PPPP");
|
|
2184
2171
|
return t.today && (a = `Today, ${a}`), t.selected && (a = `${a}, selected`), a;
|
|
2185
2172
|
}
|
|
2186
|
-
const
|
|
2173
|
+
const Ja = rt;
|
|
2187
2174
|
function at(e, t, n) {
|
|
2188
2175
|
return (n ?? new j(t)).formatMonthYear(e);
|
|
2189
2176
|
}
|
|
2190
|
-
const
|
|
2177
|
+
const Za = at;
|
|
2191
2178
|
function Ut(e, t, n, r) {
|
|
2192
2179
|
let a = (r ?? new j(n)).format(e, "PPPP");
|
|
2193
2180
|
return t != null && t.today && (a = `Today, ${a}`), a;
|
|
@@ -2198,9 +2185,9 @@ function Qt(e) {
|
|
|
2198
2185
|
function Xt() {
|
|
2199
2186
|
return "";
|
|
2200
2187
|
}
|
|
2201
|
-
const
|
|
2188
|
+
const La = "Go to the Next Month";
|
|
2202
2189
|
function Kt(e, t) {
|
|
2203
|
-
return
|
|
2190
|
+
return La;
|
|
2204
2191
|
}
|
|
2205
2192
|
function Jt(e) {
|
|
2206
2193
|
return "Go to the Previous Month";
|
|
@@ -2217,10 +2204,10 @@ function en(e) {
|
|
|
2217
2204
|
function tn(e) {
|
|
2218
2205
|
return "Choose the Year";
|
|
2219
2206
|
}
|
|
2220
|
-
const
|
|
2207
|
+
const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2221
2208
|
__proto__: null,
|
|
2222
|
-
labelCaption:
|
|
2223
|
-
labelDay:
|
|
2209
|
+
labelCaption: Za,
|
|
2210
|
+
labelDay: Ja,
|
|
2224
2211
|
labelDayButton: rt,
|
|
2225
2212
|
labelGrid: at,
|
|
2226
2213
|
labelGridcell: Ut,
|
|
@@ -2233,11 +2220,11 @@ const ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2233
2220
|
labelWeekday: Zt,
|
|
2234
2221
|
labelYearDropdown: tn
|
|
2235
2222
|
}, Symbol.toStringTag, { value: "Module" })), X = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
|
|
2236
|
-
function
|
|
2223
|
+
function ts(e, t) {
|
|
2237
2224
|
var r;
|
|
2238
2225
|
const n = ((r = t.locale) == null ? void 0 : r.labels) ?? {};
|
|
2239
2226
|
return {
|
|
2240
|
-
...
|
|
2227
|
+
...es,
|
|
2241
2228
|
...e ?? {},
|
|
2242
2229
|
labelDayButton: X(rt, e == null ? void 0 : e.labelDayButton, n.labelDayButton),
|
|
2243
2230
|
labelMonthDropdown: X(Qt, e == null ? void 0 : e.labelMonthDropdown, n.labelMonthDropdown),
|
|
@@ -2252,7 +2239,7 @@ function rs(e, t) {
|
|
|
2252
2239
|
labelWeekday: X(Zt, e == null ? void 0 : e.labelWeekday, n.labelWeekday)
|
|
2253
2240
|
};
|
|
2254
2241
|
}
|
|
2255
|
-
function
|
|
2242
|
+
function ns(e, t, n, r, a) {
|
|
2256
2243
|
const { startOfMonth: s, startOfYear: o, endOfYear: i, eachMonthOfInterval: d, getMonth: c } = a;
|
|
2257
2244
|
return d({
|
|
2258
2245
|
start: o(e),
|
|
@@ -2262,7 +2249,7 @@ function as(e, t, n, r, a) {
|
|
|
2262
2249
|
return { value: D, label: g, disabled: p };
|
|
2263
2250
|
});
|
|
2264
2251
|
}
|
|
2265
|
-
function
|
|
2252
|
+
function rs(e, t = {}, n = {}) {
|
|
2266
2253
|
let r = { ...t == null ? void 0 : t[m.Day] };
|
|
2267
2254
|
return Object.entries(e).filter(([, a]) => a === !0).forEach(([a]) => {
|
|
2268
2255
|
r = {
|
|
@@ -2271,7 +2258,7 @@ function ss(e, t = {}, n = {}) {
|
|
|
2271
2258
|
};
|
|
2272
2259
|
}), r;
|
|
2273
2260
|
}
|
|
2274
|
-
function
|
|
2261
|
+
function as(e, t, n, r) {
|
|
2275
2262
|
const a = r ?? e.today(), s = n ? e.startOfBroadcastWeek(a, e) : t ? e.startOfISOWeek(a) : e.startOfWeek(a), o = [];
|
|
2276
2263
|
for (let i = 0; i < 7; i++) {
|
|
2277
2264
|
const d = e.addDays(s, i);
|
|
@@ -2279,7 +2266,7 @@ function os(e, t, n, r) {
|
|
|
2279
2266
|
}
|
|
2280
2267
|
return o;
|
|
2281
2268
|
}
|
|
2282
|
-
function
|
|
2269
|
+
function ss(e, t, n, r, a = !1) {
|
|
2283
2270
|
if (!e || !t)
|
|
2284
2271
|
return;
|
|
2285
2272
|
const { startOfYear: s, endOfYear: o, eachYearOfInterval: i, getYear: d } = r, c = s(e), u = o(t), f = i({ start: c, end: u });
|
|
@@ -2292,7 +2279,7 @@ function is(e, t, n, r, a = !1) {
|
|
|
2292
2279
|
};
|
|
2293
2280
|
});
|
|
2294
2281
|
}
|
|
2295
|
-
function
|
|
2282
|
+
function os(e, t = {}) {
|
|
2296
2283
|
var i;
|
|
2297
2284
|
const { weekStartsOn: n, locale: r } = t, a = n ?? ((i = r == null ? void 0 : r.options) == null ? void 0 : i.weekStartsOn) ?? 0, s = (d) => {
|
|
2298
2285
|
const c = typeof d == "number" || typeof d == "string" ? new Date(d) : d;
|
|
@@ -2391,10 +2378,10 @@ function ds(e, t = {}) {
|
|
|
2391
2378
|
}
|
|
2392
2379
|
const De = (e) => e instanceof HTMLElement ? e : null, je = (e) => [
|
|
2393
2380
|
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
2394
|
-
],
|
|
2395
|
-
function
|
|
2381
|
+
], is = (e) => De(e.querySelector("[data-animated-month]")), $e = (e) => De(e.querySelector("[data-animated-caption]")), Ge = (e) => De(e.querySelector("[data-animated-weeks]")), ds = (e) => De(e.querySelector("[data-animated-nav]")), cs = (e) => De(e.querySelector("[data-animated-weekdays]"));
|
|
2382
|
+
function us(e, t, { classNames: n, months: r, focused: a, dateLib: s }) {
|
|
2396
2383
|
const o = Ne(null), i = Ne(r), d = Ne(!1);
|
|
2397
|
-
|
|
2384
|
+
Pn(() => {
|
|
2398
2385
|
const c = i.current;
|
|
2399
2386
|
if (i.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
|
|
2400
2387
|
!(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
|
|
@@ -2404,7 +2391,7 @@ function ls(e, t, { classNames: n, months: r, focused: a, dateLib: s }) {
|
|
|
2404
2391
|
if (p instanceof HTMLElement ? (je(p).forEach((b) => {
|
|
2405
2392
|
if (!(b instanceof HTMLElement))
|
|
2406
2393
|
return;
|
|
2407
|
-
const W =
|
|
2394
|
+
const W = is(b);
|
|
2408
2395
|
W && b.contains(W) && b.removeChild(W);
|
|
2409
2396
|
const v = $e(b);
|
|
2410
2397
|
v && v.classList.remove(h);
|
|
@@ -2416,7 +2403,7 @@ function ls(e, t, { classNames: n, months: r, focused: a, dateLib: s }) {
|
|
|
2416
2403
|
const k = D instanceof HTMLElement ? je(D) : [], N = je(e.current);
|
|
2417
2404
|
if (N != null && N.every((M) => M instanceof HTMLElement) && k && k.every((M) => M instanceof HTMLElement)) {
|
|
2418
2405
|
d.current = !0, e.current.style.isolation = "isolate";
|
|
2419
|
-
const M =
|
|
2406
|
+
const M = ds(e.current);
|
|
2420
2407
|
M && (M.style.zIndex = "1"), N.forEach((b, W) => {
|
|
2421
2408
|
const v = k[W];
|
|
2422
2409
|
if (!v)
|
|
@@ -2430,7 +2417,7 @@ function ls(e, t, { classNames: n, months: r, focused: a, dateLib: s }) {
|
|
|
2430
2417
|
d.current = !1, e.current && (e.current.style.isolation = ""), M && (M.style.zIndex = ""), l && l.classList.remove(h), S && S.classList.remove(g), b.style.position = "", b.style.overflow = "", b.contains(v) && b.removeChild(v);
|
|
2431
2418
|
};
|
|
2432
2419
|
v.style.pointerEvents = "none", v.style.position = "absolute", v.style.overflow = "hidden", v.setAttribute("aria-hidden", "true");
|
|
2433
|
-
const B =
|
|
2420
|
+
const B = cs(v);
|
|
2434
2421
|
B && (B.style.opacity = "0");
|
|
2435
2422
|
const F = $e(v);
|
|
2436
2423
|
F && (F.classList.add(f ? n[q.caption_before_exit] : n[q.caption_after_exit]), F.addEventListener("animationend", E));
|
|
@@ -2440,7 +2427,7 @@ function ls(e, t, { classNames: n, months: r, focused: a, dateLib: s }) {
|
|
|
2440
2427
|
}
|
|
2441
2428
|
});
|
|
2442
2429
|
}
|
|
2443
|
-
function
|
|
2430
|
+
function fs(e, t, n, r) {
|
|
2444
2431
|
const a = e[0], s = e[e.length - 1], { ISOWeek: o, fixedWeeks: i, broadcastCalendar: d } = n ?? {}, { addDays: c, differenceInCalendarDays: u, differenceInCalendarMonths: f, endOfBroadcastWeek: h, endOfISOWeek: g, endOfMonth: D, endOfWeek: p, isAfter: k, startOfBroadcastWeek: N, startOfISOWeek: M, startOfWeek: b } = r, W = d ? N(a, r) : o ? M(a) : b(a), v = d ? h(s) : o ? g(D(s)) : p(D(s)), l = t && (d ? h(t) : o ? g(t) : p(t)), S = l && k(v, l) ? l : v, E = u(S, W), B = f(s, a) + 1, F = [];
|
|
2445
2432
|
for (let L = 0; L <= E; L++) {
|
|
2446
2433
|
const G = c(W, L);
|
|
@@ -2456,14 +2443,14 @@ function hs(e, t, n, r) {
|
|
|
2456
2443
|
}
|
|
2457
2444
|
return F;
|
|
2458
2445
|
}
|
|
2459
|
-
function
|
|
2446
|
+
function ls(e) {
|
|
2460
2447
|
const t = [];
|
|
2461
2448
|
return e.reduce((n, r) => {
|
|
2462
2449
|
const a = r.weeks.reduce((s, o) => s.concat(o.days.slice()), t.slice());
|
|
2463
2450
|
return n.concat(a.slice());
|
|
2464
2451
|
}, t.slice());
|
|
2465
2452
|
}
|
|
2466
|
-
function
|
|
2453
|
+
function hs(e, t, n, r) {
|
|
2467
2454
|
const { numberOfMonths: a = 1 } = n, s = [];
|
|
2468
2455
|
for (let o = 0; o < a; o++) {
|
|
2469
2456
|
const i = r.addMonths(e, o);
|
|
@@ -2483,7 +2470,7 @@ function vt(e, t, n, r) {
|
|
|
2483
2470
|
}
|
|
2484
2471
|
return t && c(d, t) < 0 && (d = t), f(d);
|
|
2485
2472
|
}
|
|
2486
|
-
function
|
|
2473
|
+
function ms(e, t, n, r) {
|
|
2487
2474
|
const { addDays: a, endOfBroadcastWeek: s, endOfISOWeek: o, endOfMonth: i, endOfWeek: d, getISOWeek: c, getWeek: u, startOfBroadcastWeek: f, startOfISOWeek: h, startOfWeek: g } = r, D = e.reduce((p, k) => {
|
|
2488
2475
|
const N = n.broadcastCalendar ? f(k, r) : n.ISOWeek ? h(k) : g(k), M = n.broadcastCalendar ? s(k) : n.ISOWeek ? o(i(k)) : d(i(k)), b = t.filter((S) => S >= N && S <= M), W = n.broadcastCalendar ? 35 : 42;
|
|
2489
2476
|
if (n.fixedWeeks && b.length < W) {
|
|
@@ -2495,13 +2482,13 @@ function gs(e, t, n, r) {
|
|
|
2495
2482
|
}
|
|
2496
2483
|
const v = b.reduce((S, E) => {
|
|
2497
2484
|
const B = n.ISOWeek ? c(E) : u(E), F = S.find((re) => re.weekNumber === B), $ = new qt(E, k, r);
|
|
2498
|
-
return F ? F.days.push($) : S.push(new
|
|
2499
|
-
}, []), l = new
|
|
2485
|
+
return F ? F.days.push($) : S.push(new ca(B, [$])), S;
|
|
2486
|
+
}, []), l = new da(k, v);
|
|
2500
2487
|
return p.push(l), p;
|
|
2501
2488
|
}, []);
|
|
2502
2489
|
return n.reverseMonths ? D.reverse() : D;
|
|
2503
2490
|
}
|
|
2504
|
-
function
|
|
2491
|
+
function ys(e, t) {
|
|
2505
2492
|
let { startMonth: n, endMonth: r } = e;
|
|
2506
2493
|
const { startOfYear: a, startOfDay: s, startOfMonth: o, endOfMonth: i, addYears: d, endOfYear: c, newDate: u, today: f } = t, { fromYear: h, toYear: g, fromMonth: D, toMonth: p } = e;
|
|
2507
2494
|
!n && D && (n = D), !n && h && (n = t.newDate(h, 0, 1)), !r && p && (r = p), !r && g && (r = u(g, 11, 31));
|
|
@@ -2511,7 +2498,7 @@ function bs(e, t) {
|
|
|
2511
2498
|
r && s(r)
|
|
2512
2499
|
];
|
|
2513
2500
|
}
|
|
2514
|
-
function
|
|
2501
|
+
function gs(e, t, n, r) {
|
|
2515
2502
|
if (n.disableNavigation)
|
|
2516
2503
|
return;
|
|
2517
2504
|
const { pagedNavigation: a, numberOfMonths: s = 1 } = n, { startOfMonth: o, addMonths: i, differenceInCalendarMonths: d } = r, c = a ? s : 1, u = o(e);
|
|
@@ -2520,7 +2507,7 @@ function Ms(e, t, n, r) {
|
|
|
2520
2507
|
if (!(d(t, e) < s))
|
|
2521
2508
|
return i(u, c);
|
|
2522
2509
|
}
|
|
2523
|
-
function
|
|
2510
|
+
function bs(e, t, n, r) {
|
|
2524
2511
|
if (n.disableNavigation)
|
|
2525
2512
|
return;
|
|
2526
2513
|
const { pagedNavigation: a, numberOfMonths: s } = n, { startOfMonth: o, addMonths: i, differenceInCalendarMonths: d } = r, c = a ? s ?? 1 : 1, u = o(e);
|
|
@@ -2529,7 +2516,7 @@ function ws(e, t, n, r) {
|
|
|
2529
2516
|
if (!(d(u, t) <= 0))
|
|
2530
2517
|
return i(u, -c);
|
|
2531
2518
|
}
|
|
2532
|
-
function
|
|
2519
|
+
function Ms(e) {
|
|
2533
2520
|
const t = [];
|
|
2534
2521
|
return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
|
|
2535
2522
|
}
|
|
@@ -2537,9 +2524,9 @@ function Te(e, t) {
|
|
|
2537
2524
|
const [n, r] = xe(e);
|
|
2538
2525
|
return [t === void 0 ? n : t, r];
|
|
2539
2526
|
}
|
|
2540
|
-
function
|
|
2527
|
+
function ws(e, t) {
|
|
2541
2528
|
var W;
|
|
2542
|
-
const [n, r] =
|
|
2529
|
+
const [n, r] = ys(e, t), { startOfMonth: a, endOfMonth: s } = t, o = vt(e, n, r, t), [i, d] = Te(
|
|
2543
2530
|
o,
|
|
2544
2531
|
// initialMonth is always computed from props.month if provided
|
|
2545
2532
|
e.month ? o : void 0
|
|
@@ -2549,16 +2536,16 @@ function ks(e, t) {
|
|
|
2549
2536
|
d(v);
|
|
2550
2537
|
}, [e.timeZone]);
|
|
2551
2538
|
const { months: c, weeks: u, days: f, previousMonth: h, nextMonth: g } = Ce(() => {
|
|
2552
|
-
const v =
|
|
2539
|
+
const v = hs(i, r, { numberOfMonths: e.numberOfMonths }, t), l = fs(v, e.endMonth ? s(e.endMonth) : void 0, {
|
|
2553
2540
|
ISOWeek: e.ISOWeek,
|
|
2554
2541
|
fixedWeeks: e.fixedWeeks,
|
|
2555
2542
|
broadcastCalendar: e.broadcastCalendar
|
|
2556
|
-
}, t), S =
|
|
2543
|
+
}, t), S = ms(v, l, {
|
|
2557
2544
|
broadcastCalendar: e.broadcastCalendar,
|
|
2558
2545
|
fixedWeeks: e.fixedWeeks,
|
|
2559
2546
|
ISOWeek: e.ISOWeek,
|
|
2560
2547
|
reverseMonths: e.reverseMonths
|
|
2561
|
-
}, t), E =
|
|
2548
|
+
}, t), E = Ms(S), B = ls(S), F = bs(i, n, e, t), $ = gs(i, r, e, t);
|
|
2562
2549
|
return {
|
|
2563
2550
|
months: S,
|
|
2564
2551
|
weeks: E,
|
|
@@ -2606,7 +2593,7 @@ var K;
|
|
|
2606
2593
|
function kt(e) {
|
|
2607
2594
|
return !e[T.disabled] && !e[T.hidden] && !e[T.outside];
|
|
2608
2595
|
}
|
|
2609
|
-
function
|
|
2596
|
+
function vs(e, t, n, r) {
|
|
2610
2597
|
let a, s = -1;
|
|
2611
2598
|
for (const o of e) {
|
|
2612
2599
|
const i = t(o);
|
|
@@ -2614,7 +2601,7 @@ function Ds(e, t, n, r) {
|
|
|
2614
2601
|
}
|
|
2615
2602
|
return a || (a = e.find((o) => kt(t(o)))), a;
|
|
2616
2603
|
}
|
|
2617
|
-
function
|
|
2604
|
+
function ks(e, t, n, r, a, s, o) {
|
|
2618
2605
|
const { ISOWeek: i, broadcastCalendar: d } = s, { addDays: c, addMonths: u, addWeeks: f, addYears: h, endOfBroadcastWeek: g, endOfISOWeek: D, endOfWeek: p, max: k, min: N, startOfBroadcastWeek: M, startOfISOWeek: b, startOfWeek: W } = o;
|
|
2619
2606
|
let l = {
|
|
2620
2607
|
day: c,
|
|
@@ -2629,11 +2616,11 @@ function Os(e, t, n, r, a, s, o) {
|
|
|
2629
2616
|
function nn(e, t, n, r, a, s, o, i = 0) {
|
|
2630
2617
|
if (i > 365)
|
|
2631
2618
|
return;
|
|
2632
|
-
const d =
|
|
2619
|
+
const d = ks(e, t, n.date, r, a, s, o), c = !!(s.disabled && ne(d, s.disabled, o)), u = !!(s.hidden && ne(d, s.hidden, o)), f = d, h = new qt(d, f, o);
|
|
2633
2620
|
return !c && !u ? h : nn(e, t, h, r, a, s, o, i + 1);
|
|
2634
2621
|
}
|
|
2635
|
-
function
|
|
2636
|
-
const { autoFocus: s } = e, [o, i] = xe(), d =
|
|
2622
|
+
function Ds(e, t, n, r, a) {
|
|
2623
|
+
const { autoFocus: s } = e, [o, i] = xe(), d = vs(t.days, n, r || (() => !1), o), [c, u] = xe(s ? d : void 0);
|
|
2637
2624
|
return {
|
|
2638
2625
|
isFocusTarget: (p) => !!(d != null && d.isEqualTo(p)),
|
|
2639
2626
|
setFocused: u,
|
|
@@ -2649,7 +2636,7 @@ function ps(e, t, n, r, a) {
|
|
|
2649
2636
|
}
|
|
2650
2637
|
};
|
|
2651
2638
|
}
|
|
2652
|
-
function
|
|
2639
|
+
function Os(e, t) {
|
|
2653
2640
|
const { selected: n, required: r, onSelect: a } = e, [s, o] = Te(n, a ? n : void 0), i = a ? n : s, { isSameDay: d } = t, c = (g) => (i == null ? void 0 : i.some((D) => d(D, g))) ?? !1, { min: u, max: f } = e;
|
|
2654
2641
|
return {
|
|
2655
2642
|
selected: i,
|
|
@@ -2666,7 +2653,7 @@ function Ws(e, t) {
|
|
|
2666
2653
|
isSelected: c
|
|
2667
2654
|
};
|
|
2668
2655
|
}
|
|
2669
|
-
function
|
|
2656
|
+
function ps(e, t, n = 0, r = 0, a = !1, s = Z) {
|
|
2670
2657
|
const { from: o, to: i } = t || {}, { isSameDay: d, isAfter: c, isBefore: u } = s;
|
|
2671
2658
|
let f;
|
|
2672
2659
|
if (!o && !i)
|
|
@@ -2694,7 +2681,7 @@ function Ss(e, t, n = 0, r = 0, a = !1, s = Z) {
|
|
|
2694
2681
|
}
|
|
2695
2682
|
return f;
|
|
2696
2683
|
}
|
|
2697
|
-
function
|
|
2684
|
+
function Ws(e, t, n = Z) {
|
|
2698
2685
|
const r = Array.isArray(t) ? t : [t];
|
|
2699
2686
|
let a = e.from;
|
|
2700
2687
|
const s = n.differenceInCalendarDays(e.to, e.from), o = Math.min(s, 6);
|
|
@@ -2708,9 +2695,9 @@ function Ns(e, t, n = Z) {
|
|
|
2708
2695
|
function Dt(e, t, n = Z) {
|
|
2709
2696
|
return te(e, t.from, !1, n) || te(e, t.to, !1, n) || te(t, e.from, !1, n) || te(t, e.to, !1, n);
|
|
2710
2697
|
}
|
|
2711
|
-
function
|
|
2698
|
+
function Ss(e, t, n = Z) {
|
|
2712
2699
|
const r = Array.isArray(t) ? t : [t];
|
|
2713
|
-
if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? te(e, i, !1, n) : Gt(i, n) ? i.some((d) => te(e, d, !1, n)) : Ye(i) ? i.from && i.to ? Dt(e, { from: i.from, to: i.to }, n) : !1 : $t(i) ?
|
|
2700
|
+
if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? te(e, i, !1, n) : Gt(i, n) ? i.some((d) => te(e, d, !1, n)) : Ye(i) ? i.from && i.to ? Dt(e, { from: i.from, to: i.to }, n) : !1 : $t(i) ? Ws(e, i.dayOfWeek, n) : et(i) ? n.isAfter(i.before, i.after) ? Dt(e, {
|
|
2714
2701
|
from: n.addDays(i.after, 1),
|
|
2715
2702
|
to: n.addDays(i.before, -1)
|
|
2716
2703
|
}, n) : ne(e.from, i, n) || ne(e.to, i, n) : tt(i) || nt(i) ? ne(e.from, i, n) || ne(e.to, i, n) : !1))
|
|
@@ -2727,7 +2714,7 @@ function Cs(e, t, n = Z) {
|
|
|
2727
2714
|
}
|
|
2728
2715
|
return !1;
|
|
2729
2716
|
}
|
|
2730
|
-
function
|
|
2717
|
+
function Ns(e, t) {
|
|
2731
2718
|
const { disabled: n, excludeDisabled: r, resetOnSelect: a, selected: s, required: o, onSelect: i } = e, [d, c] = Te(s, i ? s : void 0), u = i ? s : d;
|
|
2732
2719
|
return {
|
|
2733
2720
|
selected: u,
|
|
@@ -2736,14 +2723,14 @@ function xs(e, t) {
|
|
|
2736
2723
|
let M;
|
|
2737
2724
|
if (g) {
|
|
2738
2725
|
const b = u == null ? void 0 : u.from, W = u == null ? void 0 : u.to, v = !!b && !!W, l = !!b && !!W && t.isSameDay(b, W) && t.isSameDay(g, b);
|
|
2739
|
-
a && (v || !(u != null && u.from)) ? !o && l ? M = void 0 : M = { from: g, to: void 0 } : M =
|
|
2726
|
+
a && (v || !(u != null && u.from)) ? !o && l ? M = void 0 : M = { from: g, to: void 0 } : M = ps(g, u, k, N, o, t);
|
|
2740
2727
|
}
|
|
2741
|
-
return r && n && (M != null && M.from) && M.to &&
|
|
2728
|
+
return r && n && (M != null && M.from) && M.to && Ss({ from: M.from, to: M.to }, n, t) && (M.from = g, M.to = void 0), i || c(M), i == null || i(M, g, D, p), M;
|
|
2742
2729
|
},
|
|
2743
2730
|
isSelected: (g) => u && te(u, g, !1, t)
|
|
2744
2731
|
};
|
|
2745
2732
|
}
|
|
2746
|
-
function
|
|
2733
|
+
function Cs(e, t) {
|
|
2747
2734
|
const { selected: n, required: r, onSelect: a } = e, [s, o] = Te(n, a ? n : void 0), i = a ? n : s, { isSameDay: d } = t;
|
|
2748
2735
|
return {
|
|
2749
2736
|
selected: i,
|
|
@@ -2754,8 +2741,8 @@ function _s(e, t) {
|
|
|
2754
2741
|
isSelected: (f) => i ? d(i, f) : !1
|
|
2755
2742
|
};
|
|
2756
2743
|
}
|
|
2757
|
-
function
|
|
2758
|
-
const n =
|
|
2744
|
+
function xs(e, t) {
|
|
2745
|
+
const n = Cs(e, t), r = Os(e, t), a = Ns(e, t);
|
|
2759
2746
|
switch (e.mode) {
|
|
2760
2747
|
case "single":
|
|
2761
2748
|
return n;
|
|
@@ -2790,7 +2777,7 @@ function Ot(e, t, n) {
|
|
|
2790
2777
|
function Re(e, t, n) {
|
|
2791
2778
|
return e && (Array.isArray(e) ? e.map((r) => Ot(r, t)) : Ot(e, t));
|
|
2792
2779
|
}
|
|
2793
|
-
function
|
|
2780
|
+
function As(e) {
|
|
2794
2781
|
var ut;
|
|
2795
2782
|
let t = e;
|
|
2796
2783
|
const n = t.timeZone;
|
|
@@ -2808,7 +2795,7 @@ function $s(e) {
|
|
|
2808
2795
|
}), t.modifiers = O;
|
|
2809
2796
|
}
|
|
2810
2797
|
const { components: r, formatters: a, labels: s, dateLib: o, locale: i, classNames: d } = Ce(() => {
|
|
2811
|
-
const O = { ...zt, ...t.locale }, _ = t.broadcastCalendar ? 1 : t.weekStartsOn, w = t.noonSafe && t.timeZone ?
|
|
2798
|
+
const O = { ...zt, ...t.locale }, _ = t.broadcastCalendar ? 1 : t.weekStartsOn, w = t.noonSafe && t.timeZone ? os(t.timeZone, {
|
|
2812
2799
|
weekStartsOn: _,
|
|
2813
2800
|
locale: O
|
|
2814
2801
|
}) : void 0, x = t.dateLib && w ? { ...w, ...t.dateLib } : t.dateLib ?? w, z = new j({
|
|
@@ -2822,11 +2809,11 @@ function $s(e) {
|
|
|
2822
2809
|
}, x);
|
|
2823
2810
|
return {
|
|
2824
2811
|
dateLib: z,
|
|
2825
|
-
components:
|
|
2826
|
-
formatters:
|
|
2827
|
-
labels:
|
|
2812
|
+
components: Aa(t.components),
|
|
2813
|
+
formatters: Ka(t.formatters),
|
|
2814
|
+
labels: ts(t.labels, z.options),
|
|
2828
2815
|
locale: O,
|
|
2829
|
-
classNames: {
|
|
2816
|
+
classNames: { ...qa(), ...t.classNames }
|
|
2830
2817
|
};
|
|
2831
2818
|
}, [
|
|
2832
2819
|
t.locale,
|
|
@@ -2845,7 +2832,7 @@ function $s(e) {
|
|
|
2845
2832
|
t.classNames
|
|
2846
2833
|
]);
|
|
2847
2834
|
t.today || (t = { ...t, today: o.today() });
|
|
2848
|
-
const { captionLayout: c, mode: u, navLayout: f, numberOfMonths: h = 1, onDayBlur: g, onDayClick: D, onDayFocus: p, onDayKeyDown: k, onDayMouseEnter: N, onDayMouseLeave: M, onNextClick: b, onPrevClick: W, showWeekNumber: v, styles: l } = t, { formatCaption: S, formatDay: E, formatMonthDropdown: B, formatWeekNumber: F, formatWeekNumberHeader: $, formatWeekdayName: re, formatYearDropdown: L } = a, G =
|
|
2835
|
+
const { captionLayout: c, mode: u, navLayout: f, numberOfMonths: h = 1, onDayBlur: g, onDayClick: D, onDayFocus: p, onDayKeyDown: k, onDayMouseEnter: N, onDayMouseLeave: M, onNextClick: b, onPrevClick: W, showWeekNumber: v, styles: l } = t, { formatCaption: S, formatDay: E, formatMonthDropdown: B, formatWeekNumber: F, formatWeekNumberHeader: $, formatWeekdayName: re, formatYearDropdown: L } = a, G = ws(t, o), { days: de, months: Oe, navStart: Pe, navEnd: Ee, previousMonth: U, nextMonth: Q, goToMonth: ee } = G, Fe = Ia(de, t, Pe, Ee, o), { isSelected: le, select: he, selected: pe } = xs(t, o) ?? {}, { blur: st, focused: We, isFocusTarget: rn, moveFocus: ot, setFocused: Se } = Ds(t, G, Fe, le ?? (() => !1), o), { labelDayButton: an, labelGridcell: sn, labelGrid: on, labelMonthDropdown: dn, labelNav: it, labelPrevious: cn, labelNext: un, labelWeekday: fn, labelWeekNumber: ln, labelWeekNumberHeader: hn, labelYearDropdown: mn } = s, yn = Ce(() => as(o, t.ISOWeek, t.broadcastCalendar, t.today), [o, t.ISOWeek, t.broadcastCalendar, t.today]), dt = u !== void 0 || D !== void 0, Be = R(() => {
|
|
2849
2836
|
U && (ee(U), W == null || W(U));
|
|
2850
2837
|
}, [U, ee, W]), Ie = R(() => {
|
|
2851
2838
|
Q && (ee(Q), b == null || b(Q));
|
|
@@ -2891,8 +2878,8 @@ function $s(e) {
|
|
|
2891
2878
|
}, [o, ee]), { className: pn, style: Wn } = Ce(() => ({
|
|
2892
2879
|
className: [d[m.Root], t.className].filter(Boolean).join(" "),
|
|
2893
2880
|
style: { ...l == null ? void 0 : l[m.Root], ...t.style }
|
|
2894
|
-
}), [d, t.className, t.style, l]), Sn =
|
|
2895
|
-
|
|
2881
|
+
}), [d, t.className, t.style, l]), Sn = za(t), ct = Ne(null);
|
|
2882
|
+
us(ct, !!t.animate, {
|
|
2896
2883
|
classNames: d,
|
|
2897
2884
|
months: Oe,
|
|
2898
2885
|
focused: We,
|
|
@@ -2944,7 +2931,7 @@ function $s(e) {
|
|
|
2944
2931
|
r.DropdownNav,
|
|
2945
2932
|
{ className: d[m.Dropdowns], style: l == null ? void 0 : l[m.Dropdowns] },
|
|
2946
2933
|
(() => {
|
|
2947
|
-
const w = c === "dropdown" || c === "dropdown-months" ? y.createElement(r.MonthsDropdown, { key: "month", className: d[m.MonthsDropdown], "aria-label": dn(), classNames: d, components: r, disabled: !!t.disableNavigation, onChange: Dn(O.date), options:
|
|
2934
|
+
const w = c === "dropdown" || c === "dropdown-months" ? y.createElement(r.MonthsDropdown, { key: "month", className: d[m.MonthsDropdown], "aria-label": dn(), classNames: d, components: r, disabled: !!t.disableNavigation, onChange: Dn(O.date), options: ns(O.date, Pe, Ee, a, o), style: l == null ? void 0 : l[m.Dropdown], value: o.getMonth(O.date) }) : y.createElement("span", { key: "month" }, B(O.date, o)), x = c === "dropdown" || c === "dropdown-years" ? y.createElement(r.YearsDropdown, { key: "year", className: d[m.YearsDropdown], "aria-label": mn(o.options), classNames: d, components: r, disabled: !!t.disableNavigation, onChange: On(O.date), options: ss(Pe, Ee, a, o, !!t.reverseYears), style: l == null ? void 0 : l[m.Dropdown], value: o.getYear(O.date) }) : y.createElement("span", { key: "year" }, L(O.date, o));
|
|
2948
2935
|
return o.getMonthYearOrder() === "year-first" ? [x, w] : [w, x];
|
|
2949
2936
|
})(),
|
|
2950
2937
|
y.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
@@ -2987,7 +2974,7 @@ function $s(e) {
|
|
|
2987
2974
|
const { from: He, to: Ae } = pe;
|
|
2988
2975
|
C[A.range_start] = !!(He && Ae && o.isSameDay(z, He)), C[A.range_end] = !!(He && Ae && o.isSameDay(z, Ae)), C[A.range_middle] = te(pe, z, !0, o);
|
|
2989
2976
|
}
|
|
2990
|
-
const Cn =
|
|
2977
|
+
const Cn = rs(C, l, t.modifiersStyles), xn = Ha(C, d, t.modifiersClassNames), _n = !dt && !C.hidden ? sn(z, C, o.options, o) : void 0;
|
|
2991
2978
|
return y.createElement(r.Day, { key: `${x.isoDate}_${x.displayMonthId}`, day: x, modifiers: C, className: xn.join(" "), style: Cn, role: "gridcell", "aria-selected": C.selected || void 0, "aria-label": _n, "data-day": x.isoDate, "data-month": x.outside ? x.dateMonthId : void 0, "data-selected": C.selected || void 0, "data-disabled": C.disabled || void 0, "data-hidden": C.hidden || void 0, "data-outside": x.outside || void 0, "data-focused": C.focused || void 0, "data-today": C.today || void 0 }, !C.hidden && dt ? y.createElement(r.DayButton, { className: d[m.DayButton], style: l == null ? void 0 : l[m.DayButton], type: "button", day: x, modifiers: C, disabled: !C.focused && C.disabled || void 0, "aria-disabled": C.focused && C.disabled || void 0, tabIndex: rn(x) ? 0 : -1, "aria-label": an(z, C, o.options, o), onClick: gn(x, C), onBlur: Mn(x, C), onFocus: bn(x, C), onKeyDown: wn(x, C), onMouseEnter: vn(x, C), onMouseLeave: kn(x, C) }, E(z, o.options, o)) : !C.hidden && E(x.date, o.options, o));
|
|
2992
2979
|
})
|
|
2993
2980
|
)))
|
|
@@ -2999,31 +2986,31 @@ function $s(e) {
|
|
|
2999
2986
|
);
|
|
3000
2987
|
}
|
|
3001
2988
|
const pt = {
|
|
3002
|
-
en: () => Promise.resolve().then(() =>
|
|
3003
|
-
it: () => import("./it-
|
|
3004
|
-
de: () => import("./de-
|
|
3005
|
-
es: () => import("./es-
|
|
3006
|
-
fr: () => import("./fr-
|
|
3007
|
-
pt: () => import("./pt-
|
|
3008
|
-
nl: () => import("./nl-
|
|
3009
|
-
pl: () => import("./pl-
|
|
3010
|
-
ro: () => import("./ro-
|
|
3011
|
-
ru: () => import("./ru-
|
|
3012
|
-
sv: () => import("./sv-
|
|
3013
|
-
el: () => import("./el-
|
|
3014
|
-
ja: () => import("./ja-
|
|
3015
|
-
zh: () => import("./zh-CN-
|
|
3016
|
-
hi: () => import("./hi-
|
|
3017
|
-
ar: () => import("./ar-
|
|
3018
|
-
tr: () => import("./tr-
|
|
3019
|
-
sq: () => import("./sq-
|
|
2989
|
+
en: () => Promise.resolve().then(() => Tr).then((e) => e.enUS),
|
|
2990
|
+
it: () => import("./it-nz6vAKwG.js").then((e) => e.it),
|
|
2991
|
+
de: () => import("./de-CrJs4ZsX.js").then((e) => e.de),
|
|
2992
|
+
es: () => import("./es-DCATCfqo.js").then((e) => e.es),
|
|
2993
|
+
fr: () => import("./fr-BfGEMshF.js").then((e) => e.fr),
|
|
2994
|
+
pt: () => import("./pt-D9xdT5KQ.js").then((e) => e.pt),
|
|
2995
|
+
nl: () => import("./nl-L5SuDjyl.js").then((e) => e.nl),
|
|
2996
|
+
pl: () => import("./pl-YAn5z2wR.js").then((e) => e.pl),
|
|
2997
|
+
ro: () => import("./ro-Cp--52bT.js").then((e) => e.ro),
|
|
2998
|
+
ru: () => import("./ru-BM8eX_Zz.js").then((e) => e.ru),
|
|
2999
|
+
sv: () => import("./sv-Z3APomE8.js").then((e) => e.sv),
|
|
3000
|
+
el: () => import("./el-DHdMOIhL.js").then((e) => e.el),
|
|
3001
|
+
ja: () => import("./ja-DQcqdAEJ.js").then((e) => e.ja),
|
|
3002
|
+
zh: () => import("./zh-CN-B-igM5gY.js").then((e) => e.zhCN),
|
|
3003
|
+
hi: () => import("./hi-CBFRXEIm.js").then((e) => e.hi),
|
|
3004
|
+
ar: () => import("./ar-Cn5Fq48Z.js").then((e) => e.ar),
|
|
3005
|
+
tr: () => import("./tr-e0-P4FON.js").then((e) => e.tr),
|
|
3006
|
+
sq: () => import("./sq-XRpr0r49.js").then((e) => e.sq)
|
|
3020
3007
|
};
|
|
3021
|
-
async function
|
|
3008
|
+
async function _s(e) {
|
|
3022
3009
|
const t = e.toLowerCase().split("-")[0];
|
|
3023
3010
|
return (pt[t] ?? pt.en)();
|
|
3024
3011
|
}
|
|
3025
3012
|
const Ve = /* @__PURE__ */ new Map();
|
|
3026
|
-
function
|
|
3013
|
+
function zs(e) {
|
|
3027
3014
|
const t = e.toLowerCase().split("-")[0], [n, r] = xe(
|
|
3028
3015
|
() => Ve.get(t)
|
|
3029
3016
|
);
|
|
@@ -3034,7 +3021,7 @@ function Gs(e) {
|
|
|
3034
3021
|
return;
|
|
3035
3022
|
}
|
|
3036
3023
|
let s = !1;
|
|
3037
|
-
return
|
|
3024
|
+
return _s(t).then((o) => {
|
|
3038
3025
|
Ve.set(t, o), s || r(o);
|
|
3039
3026
|
}), () => {
|
|
3040
3027
|
s = !0;
|
|
@@ -3062,18 +3049,18 @@ const Ue = {
|
|
|
3062
3049
|
ar: "dd/MM/yyyy",
|
|
3063
3050
|
he: "dd.MM.yyyy"
|
|
3064
3051
|
};
|
|
3065
|
-
function
|
|
3052
|
+
function qs(e) {
|
|
3066
3053
|
const t = e.toLowerCase();
|
|
3067
3054
|
return Ue[t] ?? Ue[t.split("-")[0]] ?? Ue.en;
|
|
3068
3055
|
}
|
|
3069
|
-
function
|
|
3056
|
+
function js(e, t, n) {
|
|
3070
3057
|
const r = [];
|
|
3071
3058
|
return e && r.push({ before: e }), t && r.push({ after: t }), Array.isArray(n) ? r.push(...n) : typeof n == "function" && r.push(n), r.length === 1 ? r[0] : r;
|
|
3072
3059
|
}
|
|
3073
|
-
function
|
|
3074
|
-
return e === "left" ? /* @__PURE__ */ ft(
|
|
3060
|
+
function $s({ orientation: e }) {
|
|
3061
|
+
return e === "left" ? /* @__PURE__ */ ft(Bn, { className: "ds:size-4 ds:rtl:-scale-x-100" }) : /* @__PURE__ */ ft(In, { className: "ds:size-4 ds:rtl:-scale-x-100" });
|
|
3075
3062
|
}
|
|
3076
|
-
const Qe = "ds:bg-[color-mix(in_srgb,var(--primary)_12%,transparent)]",
|
|
3063
|
+
const Qe = "ds:bg-[color-mix(in_srgb,var(--primary)_12%,transparent)]", Ys = "ds:size-[var(--min-target-size)] ds:text-center ds:align-middle", Ts = [
|
|
3077
3064
|
// `rdp-day_button` is kept as a stable structural/test hook AND as the
|
|
3078
3065
|
// descendant target for the selection-state fills below
|
|
3079
3066
|
// (`ds:[&_.rdp-day_button]:bg-primary`).
|
|
@@ -3099,7 +3086,7 @@ const Qe = "ds:bg-[color-mix(in_srgb,var(--primary)_12%,transparent)]", Ps = "ds
|
|
|
3099
3086
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
3100
3087
|
"ds:disabled:opacity-50 ds:disabled:cursor-default",
|
|
3101
3088
|
"ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-default"
|
|
3102
|
-
].join(" "),
|
|
3089
|
+
].join(" "), Gs = {
|
|
3103
3090
|
/* ---- Layout shell ---- */
|
|
3104
3091
|
[m.Root]: "rdp-root ds:relative ds:font-sans ds:text-foreground",
|
|
3105
3092
|
[m.Months]: "rdp-months ds:relative ds:flex ds:flex-wrap ds:gap-[var(--spacing-lg)]",
|
|
@@ -3120,8 +3107,8 @@ const Qe = "ds:bg-[color-mix(in_srgb,var(--primary)_12%,transparent)]", Ps = "ds
|
|
|
3120
3107
|
/* ---- Week rows + day cells ---- */
|
|
3121
3108
|
[m.Weeks]: "rdp-weeks",
|
|
3122
3109
|
[m.Week]: "rdp-week",
|
|
3123
|
-
[m.Day]: `rdp-day ${
|
|
3124
|
-
[m.DayButton]:
|
|
3110
|
+
[m.Day]: `rdp-day ${Ys}`,
|
|
3111
|
+
[m.DayButton]: Ts,
|
|
3125
3112
|
[m.WeekNumber]: "rdp-week_number ds:opacity-50 ds:text-center ds:text-[length:var(--font-size-sm)] ds:size-[var(--min-target-size)]",
|
|
3126
3113
|
/* ---- Day flags ---- */
|
|
3127
3114
|
[T.today]: "rdp-today ds:text-primary ds:font-semibold ds:[&:is(.rdp-outside)]:text-inherit",
|
|
@@ -3136,7 +3123,7 @@ const Qe = "ds:bg-[color-mix(in_srgb,var(--primary)_12%,transparent)]", Ps = "ds
|
|
|
3136
3123
|
[A.range_start]: `rdp-range_start ${Qe} ds:rounded-s-[var(--radius-sm)] ds:[&_.rdp-day_button]:bg-primary ds:[&_.rdp-day_button]:text-primary-foreground ds:[&_.rdp-day_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:text-[HighlightText]`,
|
|
3137
3124
|
[A.range_middle]: `rdp-range_middle ${Qe} ds:[&_.rdp-day_button]:bg-transparent ds:[&_.rdp-day_button]:border-transparent ds:[&_.rdp-day_button]:text-foreground ds:[&_.rdp-day_button]:rounded-none ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:text-[HighlightText]`,
|
|
3138
3125
|
[A.range_end]: `rdp-range_end ${Qe} ds:rounded-e-[var(--radius-sm)] ds:[&_.rdp-day_button]:bg-primary ds:[&_.rdp-day_button]:text-primary-foreground ds:[&_.rdp-day_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:bg-[Highlight] ds:forced-colors:[&_.rdp-day_button]:text-[HighlightText]`
|
|
3139
|
-
},
|
|
3126
|
+
}, Rs = _e(
|
|
3140
3127
|
[
|
|
3141
3128
|
"ds:relative ds:flex ds:items-center ds:w-full",
|
|
3142
3129
|
// Soft-chrome look — matches `INPUT_SURFACE_CHROME` so the trigger
|
|
@@ -3166,7 +3153,7 @@ const Qe = "ds:bg-[color-mix(in_srgb,var(--primary)_12%,transparent)]", Ps = "ds
|
|
|
3166
3153
|
tone: "default"
|
|
3167
3154
|
}
|
|
3168
3155
|
}
|
|
3169
|
-
),
|
|
3156
|
+
), Vs = _e(
|
|
3170
3157
|
"ds:absolute ds:inset-y-0 ds:end-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground",
|
|
3171
3158
|
{
|
|
3172
3159
|
variants: {
|
|
@@ -3178,13 +3165,13 @@ const Qe = "ds:bg-[color-mix(in_srgb,var(--primary)_12%,transparent)]", Ps = "ds
|
|
|
3178
3165
|
},
|
|
3179
3166
|
defaultVariants: { size: "md" }
|
|
3180
3167
|
}
|
|
3181
|
-
),
|
|
3168
|
+
), Us = _e(
|
|
3182
3169
|
[
|
|
3183
3170
|
"ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
|
|
3184
3171
|
"ds:border ds:border-border ds:bg-background ds:shadow-[var(--shadow-lg)]",
|
|
3185
3172
|
"ds:p-[var(--spacing-md)]"
|
|
3186
3173
|
].join(" ")
|
|
3187
|
-
),
|
|
3174
|
+
), Qs = _e(
|
|
3188
3175
|
[
|
|
3189
3176
|
"ds:w-full ds:text-start ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
3190
3177
|
"ds:rounded-[var(--radius-sm)] ds:text-[length:var(--font-size-sm)] ds:text-foreground",
|
|
@@ -3195,44 +3182,43 @@ const Qe = "ds:bg-[color-mix(in_srgb,var(--primary)_12%,transparent)]", Ps = "ds
|
|
|
3195
3182
|
].join(" ")
|
|
3196
3183
|
);
|
|
3197
3184
|
export {
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
Xn as M,
|
|
3185
|
+
Me as A,
|
|
3186
|
+
Le as B,
|
|
3187
|
+
$s as C,
|
|
3188
|
+
As as D,
|
|
3189
|
+
Ze as E,
|
|
3190
|
+
mt as F,
|
|
3191
|
+
oe as G,
|
|
3192
|
+
Br as H,
|
|
3193
|
+
qr as I,
|
|
3194
|
+
jr as J,
|
|
3195
|
+
zr as K,
|
|
3196
|
+
Un as L,
|
|
3211
3197
|
xt as a,
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3198
|
+
$n as b,
|
|
3199
|
+
js as c,
|
|
3200
|
+
Qn as d,
|
|
3215
3201
|
Bt as e,
|
|
3216
|
-
|
|
3217
|
-
|
|
3202
|
+
Kn as f,
|
|
3203
|
+
qs as g,
|
|
3218
3204
|
be as h,
|
|
3219
|
-
|
|
3205
|
+
Lr as i,
|
|
3220
3206
|
Je as j,
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3207
|
+
Vs as k,
|
|
3208
|
+
Gs as l,
|
|
3209
|
+
Us as m,
|
|
3210
|
+
ea as n,
|
|
3211
|
+
qe as o,
|
|
3212
|
+
Qs as p,
|
|
3213
|
+
me as q,
|
|
3214
|
+
ye as r,
|
|
3229
3215
|
fe as s,
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3216
|
+
Rs as t,
|
|
3217
|
+
zs as u,
|
|
3218
|
+
Mr as v,
|
|
3219
|
+
_t as w,
|
|
3220
|
+
ta as x,
|
|
3221
|
+
ve as y,
|
|
3222
|
+
It as z
|
|
3237
3223
|
};
|
|
3238
|
-
//# sourceMappingURL=date-picker-variants-
|
|
3224
|
+
//# sourceMappingURL=date-picker-variants-DAcSLTua.js.map
|