@alfadocs/ui-kit-debug 1.3.13 → 1.4.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-card.agent-Cb5tuEh3.js +28 -0
- package/dist/_chunks/agenda-card.agent-Cb5tuEh3.js.map +1 -0
- package/dist/_chunks/{alia-sidebar-DzNz1gDf.js → alia-sidebar-DSBZMick.js} +3 -3
- package/dist/_chunks/{alia-sidebar-DzNz1gDf.js.map → alia-sidebar-DSBZMick.js.map} +1 -1
- package/dist/_chunks/{anamnesis-i18n-CfC0qYzy.js → anamnesis-i18n-BA631X4t.js} +2209 -2144
- package/dist/_chunks/anamnesis-i18n-BA631X4t.js.map +1 -0
- package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js → antenatal-schedule-timeline-u8TsS2QJ.js} +27 -26
- package/dist/_chunks/{antenatal-schedule-timeline-BMMpi2lb.js.map → antenatal-schedule-timeline-u8TsS2QJ.js.map} +1 -1
- package/dist/_chunks/{appointment-timeline-B630OT_J.js → appointment-timeline-Bqf1sTU5.js} +2 -2
- package/dist/_chunks/{appointment-timeline-B630OT_J.js.map → appointment-timeline-Bqf1sTU5.js.map} +1 -1
- package/dist/_chunks/{ar-THMLfSoN.js → ar-BR1FGFP2.js} +14 -14
- package/dist/_chunks/{ar-THMLfSoN.js.map → ar-BR1FGFP2.js.map} +1 -1
- package/dist/_chunks/{bmi-calculator-CM0-G2mg.js → bmi-calculator-CpyY13MV.js} +2 -2
- package/dist/_chunks/{bmi-calculator-CM0-G2mg.js.map → bmi-calculator-CpyY13MV.js.map} +1 -1
- package/dist/_chunks/{booking-DjNbd7C1.js → booking-BjsA7j1-.js} +699 -688
- package/dist/_chunks/booking-BjsA7j1-.js.map +1 -0
- package/dist/_chunks/calculator-dialog-12d3Sxaz.js +48 -0
- package/dist/_chunks/{calculator-dialog-DuXMQSdm.js.map → calculator-dialog-12d3Sxaz.js.map} +1 -1
- package/dist/_chunks/{care-plan-card-1G_f4I5s.js → care-plan-card-BvQy366X.js} +3 -3
- package/dist/_chunks/{care-plan-card-1G_f4I5s.js.map → care-plan-card-BvQy366X.js.map} +1 -1
- package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js → care-plan-entry-card-apk_5B3O.js} +2 -2
- package/dist/_chunks/{care-plan-entry-card-DmBsffHS.js.map → care-plan-entry-card-apk_5B3O.js.map} +1 -1
- package/dist/_chunks/{chat-container-HlFnoEIl.js → chat-container-CYYego1W.js} +105 -81
- package/dist/_chunks/chat-container-CYYego1W.js.map +1 -0
- package/dist/_chunks/cycle-calculator-B7fyH-h4.js +425 -0
- package/dist/_chunks/cycle-calculator-B7fyH-h4.js.map +1 -0
- package/dist/_chunks/{date-picker-ZHejTVAJ.js → date-picker-Bp64zk2p.js} +19 -19
- package/dist/_chunks/{date-picker-ZHejTVAJ.js.map → date-picker-Bp64zk2p.js.map} +1 -1
- package/dist/_chunks/date-picker-variants-pKAJfnWr.js +2089 -0
- package/dist/_chunks/date-picker-variants-pKAJfnWr.js.map +1 -0
- package/dist/_chunks/{date-range-picker-pEG3Ln3i.js → date-range-picker-CDrZ8Zh0.js} +27 -27
- package/dist/_chunks/{date-range-picker-pEG3Ln3i.js.map → date-range-picker-CDrZ8Zh0.js.map} +1 -1
- package/dist/_chunks/{date-time-picker-695QvBGj.js → date-time-picker-DafkGDGO.js} +10 -10
- package/dist/_chunks/{date-time-picker-695QvBGj.js.map → date-time-picker-DafkGDGO.js.map} +1 -1
- package/dist/_chunks/{de-DmZ-8rTN.js → de-3iM4rGqo.js} +7 -7
- package/dist/_chunks/{de-DmZ-8rTN.js.map → de-3iM4rGqo.js.map} +1 -1
- package/dist/_chunks/{document-preview-D3gg4MXB.js → document-preview-DOrsqiN1.js} +2 -2
- package/dist/_chunks/{document-preview-D3gg4MXB.js.map → document-preview-DOrsqiN1.js.map} +1 -1
- package/dist/_chunks/due-date-calculator-CnkbbAej.js +571 -0
- package/dist/_chunks/due-date-calculator-CnkbbAej.js.map +1 -0
- package/dist/_chunks/{editor-overlay-DE3esyio.js → editor-overlay-B1tr2i7B.js} +22 -21
- package/dist/_chunks/editor-overlay-B1tr2i7B.js.map +1 -0
- package/dist/_chunks/{el-Bela9mxs.js → el-C96rGJvU.js} +2 -2
- package/dist/_chunks/{el-Bela9mxs.js.map → el-C96rGJvU.js.map} +1 -1
- package/dist/_chunks/{es-BNncHKex.js → es-Cxiqjx8r.js} +12 -12
- package/dist/_chunks/{es-BNncHKex.js.map → es-Cxiqjx8r.js.map} +1 -1
- package/dist/_chunks/fetal-weight-avlj-l-S.js +223 -0
- package/dist/_chunks/fetal-weight-avlj-l-S.js.map +1 -0
- package/dist/_chunks/format-4HNwNGrN.js +1315 -0
- package/dist/_chunks/format-4HNwNGrN.js.map +1 -0
- package/dist/_chunks/{fr-CH8ADfhN.js → fr-Bhr6SYKj.js} +21 -21
- package/dist/_chunks/{fr-CH8ADfhN.js.map → fr-Bhr6SYKj.js.map} +1 -1
- package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js → freemium-paywall-DRDdWuOg.js} +3 -3
- package/dist/_chunks/{freemium-paywall-C_Ue6wxU.js.map → freemium-paywall-DRDdWuOg.js.map} +1 -1
- package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js +488 -0
- package/dist/_chunks/gestational-age-calculator-BljY_DVJ.js.map +1 -0
- package/dist/_chunks/hcg-doubling-Cv_vH61p.js +312 -0
- package/dist/_chunks/hcg-doubling-Cv_vH61p.js.map +1 -0
- package/dist/_chunks/header-settings-Cn5fPXCE.js +335 -0
- package/dist/_chunks/header-settings-Cn5fPXCE.js.map +1 -0
- package/dist/_chunks/{hi-Bppfxp8l.js → hi-BxXX26d_.js} +12 -12
- package/dist/_chunks/{hi-Bppfxp8l.js.map → hi-BxXX26d_.js.map} +1 -1
- package/dist/_chunks/isSameWeek-B73MagWB.js +13 -0
- package/dist/_chunks/{isSameWeek-CK4HS9lH.js.map → isSameWeek-B73MagWB.js.map} +1 -1
- package/dist/_chunks/{it-B4ySaRyK.js → it-Xmjomvyj.js} +24 -24
- package/dist/_chunks/{it-B4ySaRyK.js.map → it-Xmjomvyj.js.map} +1 -1
- package/dist/_chunks/{ja-CGF6Io9P.js → ja-mfZvt1ZV.js} +16 -16
- package/dist/_chunks/{ja-CGF6Io9P.js.map → ja-mfZvt1ZV.js.map} +1 -1
- package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js → link-cell-renderer-CJ_gk7gl.js} +3 -3
- package/dist/_chunks/{link-cell-renderer-C5XLwVXQ.js.map → link-cell-renderer-CJ_gk7gl.js.map} +1 -1
- package/dist/_chunks/{locale-picker-BfBUdT1m.js → locale-picker-D9Kv2zrK.js} +153 -132
- package/dist/_chunks/locale-picker-D9Kv2zrK.js.map +1 -0
- package/dist/_chunks/map-view-2yZCQW2l.js +445 -0
- package/dist/_chunks/map-view-2yZCQW2l.js.map +1 -0
- package/dist/_chunks/{marketplace-app-shell-DwcFMxzp.js → marketplace-app-shell-BLRvg-M0.js} +49 -40
- package/dist/_chunks/marketplace-app-shell-BLRvg-M0.js.map +1 -0
- package/dist/_chunks/{nl-DuShqwuV.js → nl-DDs-KEnD.js} +15 -15
- package/dist/_chunks/{nl-DuShqwuV.js.map → nl-DDs-KEnD.js.map} +1 -1
- package/dist/_chunks/{notes-panel-DPsgB4Mv.js → notes-panel-CiFN3sLW.js} +2 -2
- package/dist/_chunks/{notes-panel-DPsgB4Mv.js.map → notes-panel-CiFN3sLW.js.map} +1 -1
- package/dist/_chunks/{number-input-DrozbZAU.js → number-input-DOe5VYei.js} +64 -64
- package/dist/_chunks/number-input-DOe5VYei.js.map +1 -0
- package/dist/_chunks/{optical-prescription-BDHJr8Zz.js → optical-prescription-CRemE8fL.js} +2 -2
- package/dist/_chunks/{optical-prescription-BDHJr8Zz.js.map → optical-prescription-CRemE8fL.js.map} +1 -1
- package/dist/_chunks/{parse-DvA97ro9.js → parse-JqixfsU0.js} +43 -43
- package/dist/_chunks/{parse-DvA97ro9.js.map → parse-JqixfsU0.js.map} +1 -1
- package/dist/_chunks/parseISO-fOGpHKXm.js +120 -0
- package/dist/_chunks/parseISO-fOGpHKXm.js.map +1 -0
- package/dist/_chunks/{patient-details-DqjjwPmt.js → patient-details-CpunD0qx.js} +3 -3
- package/dist/_chunks/{patient-details-DqjjwPmt.js.map → patient-details-CpunD0qx.js.map} +1 -1
- package/dist/_chunks/{patient-table-BmIDrLIS.js → patient-table-2eWx-Rrk.js} +2 -2
- package/dist/_chunks/{patient-table-BmIDrLIS.js.map → patient-table-2eWx-Rrk.js.map} +1 -1
- package/dist/_chunks/{payment-form-h-BZ8onk.js → payment-form-Ds1I9KqB.js} +308 -231
- package/dist/_chunks/payment-form-Ds1I9KqB.js.map +1 -0
- package/dist/_chunks/{pdf-viewer-Ddx-T053.js → pdf-viewer-DUIsV9s5.js} +429 -369
- package/dist/_chunks/pdf-viewer-DUIsV9s5.js.map +1 -0
- package/dist/_chunks/{pl-CKQwX9Fk.js → pl-BYYMnEWP.js} +18 -18
- package/dist/_chunks/{pl-CKQwX9Fk.js.map → pl-BYYMnEWP.js.map} +1 -1
- package/dist/_chunks/{practice-results-B-HPc13W.js → practice-results-SjCniMd2.js} +2 -2
- package/dist/_chunks/{practice-results-B-HPc13W.js.map → practice-results-SjCniMd2.js.map} +1 -1
- package/dist/_chunks/pregnancy-dating-BmpHScZ0.js +770 -0
- package/dist/_chunks/pregnancy-dating-BmpHScZ0.js.map +1 -0
- package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js +553 -0
- package/dist/_chunks/pregnancy-weight-gain-B5KSJzdc.js.map +1 -0
- package/dist/_chunks/progress-CK8otcQ-.js +343 -0
- package/dist/_chunks/progress-CK8otcQ-.js.map +1 -0
- package/dist/_chunks/{pt-_njpXyOZ.js → pt-BSPnVrQ7.js} +20 -20
- package/dist/_chunks/{pt-_njpXyOZ.js.map → pt-BSPnVrQ7.js.map} +1 -1
- package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js → radiograph-panel.agent-CtFtNMzk.js} +3 -3
- package/dist/_chunks/{radiograph-panel.agent-BQZ64Riy.js.map → radiograph-panel.agent-CtFtNMzk.js.map} +1 -1
- package/dist/_chunks/{rich-text-editor-CfeXPPWs.js → rich-text-editor-BedTpWzL.js} +2 -2
- package/dist/_chunks/{rich-text-editor-CfeXPPWs.js.map → rich-text-editor-BedTpWzL.js.map} +1 -1
- package/dist/_chunks/{ro-3X6_4FcN.js → ro-BbiylGmG.js} +14 -14
- package/dist/_chunks/{ro-3X6_4FcN.js.map → ro-BbiylGmG.js.map} +1 -1
- package/dist/_chunks/{ru-bAcgmnS-.js → ru-BX_qsV67.js} +14 -14
- package/dist/_chunks/{ru-bAcgmnS-.js.map → ru-BX_qsV67.js.map} +1 -1
- package/dist/_chunks/{session-countdown-Bc70VXN1.js → session-countdown-BL-Psg8u.js} +2 -2
- package/dist/_chunks/{session-countdown-Bc70VXN1.js.map → session-countdown-BL-Psg8u.js.map} +1 -1
- package/dist/_chunks/{sign-document-CW_ByDUh.js → sign-document-jF4fZDJ5.js} +2 -2
- package/dist/_chunks/{sign-document-CW_ByDUh.js.map → sign-document-jF4fZDJ5.js.map} +1 -1
- package/dist/_chunks/slot-grid-DNiUcXy2.js +640 -0
- package/dist/_chunks/slot-grid-DNiUcXy2.js.map +1 -0
- package/dist/_chunks/{sparkline-BTY4B5tv.js → sparkline-BmGcEyZO.js} +209 -164
- package/dist/_chunks/sparkline-BmGcEyZO.js.map +1 -0
- package/dist/_chunks/{sq-jYFqr4Ga.js → sq-i9UOk4P7.js} +10 -10
- package/dist/_chunks/{sq-jYFqr4Ga.js.map → sq-i9UOk4P7.js.map} +1 -1
- package/dist/_chunks/subDays-CAUv47M1.js +8 -0
- package/dist/_chunks/{subDays-BcNi04uf.js.map → subDays-CAUv47M1.js.map} +1 -1
- package/dist/_chunks/{sv-BSGEJ-8B.js → sv-CpTdtmDQ.js} +8 -8
- package/dist/_chunks/{sv-BSGEJ-8B.js.map → sv-CpTdtmDQ.js.map} +1 -1
- package/dist/_chunks/{tab-bar-Axhk6xzx.js → tab-bar-BYESZINM.js} +83 -77
- package/dist/_chunks/tab-bar-BYESZINM.js.map +1 -0
- package/dist/_chunks/task-card.agent-CF2N_uu4.js +29 -0
- package/dist/_chunks/task-card.agent-CF2N_uu4.js.map +1 -0
- package/dist/_chunks/{tr-CTpgUtw6.js → tr-DXG2QN1K.js} +17 -17
- package/dist/_chunks/{tr-CTpgUtw6.js.map → tr-DXG2QN1K.js.map} +1 -1
- package/dist/_chunks/{unit-converter-COgkN7YP.js → unit-converter-CHPDuV7W.js} +2 -2
- package/dist/_chunks/{unit-converter-COgkN7YP.js.map → unit-converter-CHPDuV7W.js.map} +1 -1
- package/dist/_chunks/{warning-stack-BtjmJChC.js → warning-stack-B7t_8jRE.js} +42 -37
- package/dist/_chunks/{warning-stack-BtjmJChC.js.map → warning-stack-B7t_8jRE.js.map} +1 -1
- package/dist/_chunks/{zh-CN-BgM0Io2O.js → zh-CN-vPkPEK6H.js} +18 -18
- package/dist/_chunks/{zh-CN-BgM0Io2O.js.map → zh-CN-vPkPEK6H.js.map} +1 -1
- package/dist/agent-catalog.json +6426 -3382
- package/dist/agent-i18n/en.json +234 -15
- package/dist/components/agenda-card/agenda-card.agent.d.ts.map +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/calculator-dialog/calculator-dialog.d.ts.map +1 -1
- package/dist/components/calculator-dialog/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/chat-container/chat-container.agent.d.ts.map +1 -1
- package/dist/components/chat-container/chat-container.d.ts +14 -0
- package/dist/components/chat-container/chat-container.d.ts.map +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts +4 -0
- package/dist/components/cycle-calculator/cycle-calculator.agent.d.ts.map +1 -0
- package/dist/components/cycle-calculator/cycle-calculator.d.ts +42 -0
- package/dist/components/cycle-calculator/cycle-calculator.d.ts.map +1 -1
- package/dist/components/cycle-calculator/index.d.ts +1 -1
- package/dist/components/cycle-calculator/index.d.ts.map +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/document-preview/index.js +1 -1
- package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts +4 -0
- package/dist/components/due-date-calculator/due-date-calculator.agent.d.ts.map +1 -0
- package/dist/components/due-date-calculator/due-date-calculator.d.ts +61 -1
- package/dist/components/due-date-calculator/due-date-calculator.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.d.ts +1 -1
- package/dist/components/due-date-calculator/index.d.ts.map +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editor-overlay/editor-overlay.d.ts +7 -1
- package/dist/components/editor-overlay/editor-overlay.d.ts.map +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/fetal-weight/fetal-weight.agent.d.ts +4 -0
- package/dist/components/fetal-weight/fetal-weight.agent.d.ts.map +1 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts +26 -0
- package/dist/components/fetal-weight/fetal-weight.d.ts.map +1 -1
- package/dist/components/fetal-weight/index.d.ts +1 -1
- package/dist/components/fetal-weight/index.d.ts.map +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts +4 -0
- package/dist/components/gestational-age-calculator/gestational-age-calculator.agent.d.ts.map +1 -0
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts +44 -2
- package/dist/components/gestational-age-calculator/gestational-age-calculator.d.ts.map +1 -1
- package/dist/components/gestational-age-calculator/index.d.ts +1 -1
- package/dist/components/gestational-age-calculator/index.d.ts.map +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts +4 -0
- package/dist/components/hcg-doubling/hcg-doubling.agent.d.ts.map +1 -0
- package/dist/components/hcg-doubling/hcg-doubling.d.ts +30 -0
- package/dist/components/hcg-doubling/hcg-doubling.d.ts.map +1 -1
- package/dist/components/hcg-doubling/index.d.ts +1 -1
- package/dist/components/hcg-doubling/index.d.ts.map +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header-settings/header-settings.agent.d.ts.map +1 -1
- package/dist/components/header-settings/header-settings.d.ts +13 -1
- package/dist/components/header-settings/header-settings.d.ts.map +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/locale-picker/locale-picker.agent.d.ts.map +1 -1
- package/dist/components/locale-picker/locale-picker.d.ts +9 -0
- package/dist/components/locale-picker/locale-picker.d.ts.map +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/map-view/map-view.agent.d.ts.map +1 -1
- package/dist/components/map-view/map-view.d.ts +22 -0
- package/dist/components/map-view/map-view.d.ts.map +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.d.ts +2 -1
- package/dist/components/number-input/number-input.d.ts.map +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-form/index.d.ts +1 -1
- package/dist/components/payment-form/index.d.ts.map +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/payment-form/payment-form.agent.d.ts.map +1 -1
- package/dist/components/payment-form/payment-form.d.ts +32 -1
- package/dist/components/payment-form/payment-form.d.ts.map +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.agent.d.ts.map +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +13 -0
- package/dist/components/pdf-viewer/pdf-viewer.d.ts.map +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.d.ts +1 -1
- package/dist/components/pregnancy-dating/index.d.ts.map +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts +4 -0
- package/dist/components/pregnancy-dating/pregnancy-dating.agent.d.ts.map +1 -0
- package/dist/components/pregnancy-dating/pregnancy-dating.d.ts +65 -1
- package/dist/components/pregnancy-dating/pregnancy-dating.d.ts.map +1 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts +2 -1
- package/dist/components/pregnancy-weight-gain/index.d.ts.map +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +6 -5
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts +4 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.agent.d.ts.map +1 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts +35 -0
- package/dist/components/pregnancy-weight-gain/pregnancy-weight-gain.d.ts.map +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress/progress.agent.d.ts.map +1 -1
- package/dist/components/progress/progress.d.ts +13 -0
- package/dist/components/progress/progress.d.ts.map +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/slot-grid/index.d.ts +2 -1
- package/dist/components/slot-grid/index.d.ts.map +1 -1
- package/dist/components/slot-grid/index.js +5 -4
- package/dist/components/slot-grid/slot-grid.agent.d.ts +4 -0
- package/dist/components/slot-grid/slot-grid.agent.d.ts.map +1 -0
- package/dist/components/slot-grid/slot-grid.d.ts +34 -0
- package/dist/components/slot-grid/slot-grid.d.ts.map +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/sparkline/sparkline.agent.d.ts.map +1 -1
- package/dist/components/sparkline/sparkline.d.ts +10 -0
- package/dist/components/sparkline/sparkline.d.ts.map +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tab-bar/tab-bar.d.ts +13 -0
- package/dist/components/tab-bar/tab-bar.d.ts.map +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-card/task-card.agent.d.ts.map +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/warning-stack/warning-stack.d.ts.map +1 -1
- package/dist/index.js +630 -627
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-compare-panel.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-compile.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-derive.d.ts +27 -8
- package/dist/patterns/anamnesis/anamnesis-derive.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-evolution-grid.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-field.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-format.d.ts +11 -3
- package/dist/patterns/anamnesis/anamnesis-format.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-highlight.d.ts +6 -0
- package/dist/patterns/anamnesis/anamnesis-highlight.d.ts.map +1 -0
- package/dist/patterns/anamnesis/anamnesis-intake.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-matrix.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts +23 -9
- package/dist/patterns/anamnesis/anamnesis-questionnaire.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-readonly.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-target-strip.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-types.d.ts +7 -0
- package/dist/patterns/anamnesis/anamnesis-types.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis-visit-note.d.ts.map +1 -1
- package/dist/patterns/anamnesis/anamnesis.d.ts +16 -7
- package/dist/patterns/anamnesis/anamnesis.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.d.ts +3 -2
- package/dist/patterns/anamnesis/index.d.ts.map +1 -1
- package/dist/patterns/anamnesis/index.js +7 -6
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts +6 -0
- package/dist/patterns/marketplace-app-shell/marketplace-app-shell.d.ts.map +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js +0 -27
- package/dist/_chunks/agenda-card.agent-mTCrkKSZ.js.map +0 -1
- package/dist/_chunks/anamnesis-i18n-CfC0qYzy.js.map +0 -1
- package/dist/_chunks/booking-DjNbd7C1.js.map +0 -1
- package/dist/_chunks/calculator-dialog-DuXMQSdm.js +0 -40
- package/dist/_chunks/chat-container-HlFnoEIl.js.map +0 -1
- package/dist/_chunks/cycle-calculator-BwqYVPB4.js +0 -252
- package/dist/_chunks/cycle-calculator-BwqYVPB4.js.map +0 -1
- package/dist/_chunks/date-picker-variants-eL6HjWvw.js +0 -3363
- package/dist/_chunks/date-picker-variants-eL6HjWvw.js.map +0 -1
- package/dist/_chunks/due-date-calculator-CwfsFd3T.js +0 -256
- package/dist/_chunks/due-date-calculator-CwfsFd3T.js.map +0 -1
- package/dist/_chunks/editor-overlay-DE3esyio.js.map +0 -1
- package/dist/_chunks/fetal-weight-ePlLjJPc.js +0 -122
- package/dist/_chunks/fetal-weight-ePlLjJPc.js.map +0 -1
- package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js +0 -311
- package/dist/_chunks/gestational-age-calculator-DdgbH69Z.js.map +0 -1
- package/dist/_chunks/hcg-doubling-BBqD2wI2.js +0 -170
- package/dist/_chunks/hcg-doubling-BBqD2wI2.js.map +0 -1
- package/dist/_chunks/header-settings--pjYOe6g.js +0 -284
- package/dist/_chunks/header-settings--pjYOe6g.js.map +0 -1
- package/dist/_chunks/isSameDay-DUEiAT0G.js +0 -39
- package/dist/_chunks/isSameDay-DUEiAT0G.js.map +0 -1
- package/dist/_chunks/isSameWeek-CK4HS9lH.js +0 -14
- package/dist/_chunks/locale-picker-BfBUdT1m.js.map +0 -1
- package/dist/_chunks/map-view-CsaHfoo6.js +0 -378
- package/dist/_chunks/map-view-CsaHfoo6.js.map +0 -1
- package/dist/_chunks/marketplace-app-shell-DwcFMxzp.js.map +0 -1
- package/dist/_chunks/number-input-DrozbZAU.js.map +0 -1
- package/dist/_chunks/payment-form-h-BZ8onk.js.map +0 -1
- package/dist/_chunks/pdf-viewer-Ddx-T053.js.map +0 -1
- package/dist/_chunks/pregnancy-dating-DzYTlBkT.js +0 -421
- package/dist/_chunks/pregnancy-dating-DzYTlBkT.js.map +0 -1
- package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js +0 -322
- package/dist/_chunks/pregnancy-weight-gain-O6J0sUIi.js.map +0 -1
- package/dist/_chunks/progress-DA413-zn.js +0 -299
- package/dist/_chunks/progress-DA413-zn.js.map +0 -1
- package/dist/_chunks/slot-grid-CQSULZjd.js +0 -502
- package/dist/_chunks/slot-grid-CQSULZjd.js.map +0 -1
- package/dist/_chunks/sparkline-BTY4B5tv.js.map +0 -1
- package/dist/_chunks/subDays-BcNi04uf.js +0 -8
- package/dist/_chunks/tab-bar-Axhk6xzx.js.map +0 -1
- package/dist/_chunks/task-card.agent-Bt14CzUd.js +0 -25
- package/dist/_chunks/task-card.agent-Bt14CzUd.js.map +0 -1
|
@@ -1,3363 +0,0 @@
|
|
|
1
|
-
import y, { createContext as Tn, useContext as Pn, useCallback as R, useRef as Ne, useLayoutEffect as En, useState as _e, useEffect as xt, useMemo as Ce } from "react";
|
|
2
|
-
import { t as P, c as I, n as we, s as Ke, d as Fn, e as Nt, i as Bn } from "./isSameDay-DUEiAT0G.js";
|
|
3
|
-
import { jsx as lt } from "react/jsx-runtime";
|
|
4
|
-
import { C as In } from "./chevron-left-B8cOyH-V.js";
|
|
5
|
-
import { C as Hn } from "./chevron-right-I9AeSxH2.js";
|
|
6
|
-
import { c as re } from "./index-D2ZczOXr.js";
|
|
7
|
-
function zn(e, t, n = "long") {
|
|
8
|
-
return new Intl.DateTimeFormat("en-US", {
|
|
9
|
-
// Enforces engine to render the time. Without the option JavaScriptCore omits it.
|
|
10
|
-
hour: "numeric",
|
|
11
|
-
timeZone: e,
|
|
12
|
-
timeZoneName: n
|
|
13
|
-
}).format(t).split(/\s/g).slice(2).join(" ");
|
|
14
|
-
}
|
|
15
|
-
const Ae = {}, be = {};
|
|
16
|
-
function de(e, t) {
|
|
17
|
-
try {
|
|
18
|
-
const r = (Ae[e] || (Ae[e] = new Intl.DateTimeFormat("en-US", {
|
|
19
|
-
timeZone: e,
|
|
20
|
-
timeZoneName: "longOffset"
|
|
21
|
-
}).format))(t).split("GMT")[1];
|
|
22
|
-
return r in be ? be[r] : ht(r, r.split(":"));
|
|
23
|
-
} catch {
|
|
24
|
-
if (e in be) return be[e];
|
|
25
|
-
const n = e == null ? void 0 : e.match(An);
|
|
26
|
-
return n ? ht(e, n.slice(1)) : NaN;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
const An = /([+-]\d\d):?(\d\d)?/;
|
|
30
|
-
function ht(e, t) {
|
|
31
|
-
const n = +(t[0] || 0), r = +(t[1] || 0), a = +(t[2] || 0) / 60;
|
|
32
|
-
return be[e] = n * 60 + r > 0 ? n * 60 + r + a : n * 60 - r - a;
|
|
33
|
-
}
|
|
34
|
-
class J extends Date {
|
|
35
|
-
//#region static
|
|
36
|
-
constructor(...t) {
|
|
37
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(de(this.timeZone, this)) ? this.setTime(NaN) : t.length ? typeof t[0] == "number" && (t.length === 1 || t.length === 2 && typeof t[1] != "number") ? this.setTime(t[0]) : typeof t[0] == "string" ? this.setTime(+new Date(t[0])) : t[0] instanceof Date ? this.setTime(+t[0]) : (this.setTime(+new Date(...t)), Ct(this), Je(this)) : this.setTime(Date.now());
|
|
38
|
-
}
|
|
39
|
-
static tz(t, ...n) {
|
|
40
|
-
return n.length ? new J(...n, t) : new J(Date.now(), t);
|
|
41
|
-
}
|
|
42
|
-
//#endregion
|
|
43
|
-
//#region time zone
|
|
44
|
-
withTimeZone(t) {
|
|
45
|
-
return new J(+this, t);
|
|
46
|
-
}
|
|
47
|
-
getTimezoneOffset() {
|
|
48
|
-
const t = -de(this.timeZone, this);
|
|
49
|
-
return t > 0 ? Math.floor(t) : Math.ceil(t);
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region time
|
|
53
|
-
setTime(t) {
|
|
54
|
-
return Date.prototype.setTime.apply(this, arguments), Je(this), +this;
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region date-fns integration
|
|
58
|
-
[Symbol.for("constructDateFrom")](t) {
|
|
59
|
-
return new J(+new Date(t), this.timeZone);
|
|
60
|
-
}
|
|
61
|
-
//#endregion
|
|
62
|
-
}
|
|
63
|
-
const mt = /^(get|set)(?!UTC)/;
|
|
64
|
-
Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
|
|
65
|
-
if (!mt.test(e)) return;
|
|
66
|
-
const t = e.replace(mt, "$1UTC");
|
|
67
|
-
J.prototype[t] && (e.startsWith("get") ? J.prototype[e] = function() {
|
|
68
|
-
return this.internal[t]();
|
|
69
|
-
} : (J.prototype[e] = function() {
|
|
70
|
-
return Date.prototype[t].apply(this.internal, arguments), jn(this), +this;
|
|
71
|
-
}, J.prototype[t] = function() {
|
|
72
|
-
return Date.prototype[t].apply(this, arguments), Je(this), +this;
|
|
73
|
-
}));
|
|
74
|
-
});
|
|
75
|
-
function Je(e) {
|
|
76
|
-
e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-de(e.timeZone, e) * 60));
|
|
77
|
-
}
|
|
78
|
-
function jn(e) {
|
|
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);
|
|
80
|
-
}
|
|
81
|
-
function Ct(e) {
|
|
82
|
-
const t = de(e.timeZone, e), n = t > 0 ? Math.floor(t) : Math.ceil(t), r = /* @__PURE__ */ new Date(+e);
|
|
83
|
-
r.setUTCHours(r.getUTCHours() - 1);
|
|
84
|
-
const a = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), s = -(/* @__PURE__ */ new Date(+r)).getTimezoneOffset(), o = a - s, i = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
|
|
85
|
-
o && i && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + o);
|
|
86
|
-
const d = a - n;
|
|
87
|
-
d && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + d);
|
|
88
|
-
const u = /* @__PURE__ */ new Date(+e);
|
|
89
|
-
u.setUTCSeconds(0);
|
|
90
|
-
const c = a > 0 ? u.getSeconds() : (u.getSeconds() - 60) % 60, f = Math.round(-(de(e.timeZone, e) * 60)) % 60;
|
|
91
|
-
(f || c) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + f), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + f + c));
|
|
92
|
-
const h = de(e.timeZone, e), g = h > 0 ? Math.floor(h) : Math.ceil(h), p = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - g, k = g !== n, x = p - d;
|
|
93
|
-
if (k && x) {
|
|
94
|
-
Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + x);
|
|
95
|
-
const v = de(e.timeZone, e), b = v > 0 ? Math.floor(v) : Math.ceil(v), W = g - b;
|
|
96
|
-
W && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + W), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + W));
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
class H extends J {
|
|
100
|
-
//#region static
|
|
101
|
-
static tz(t, ...n) {
|
|
102
|
-
return n.length ? new H(...n, t) : new H(Date.now(), t);
|
|
103
|
-
}
|
|
104
|
-
//#endregion
|
|
105
|
-
//#region representation
|
|
106
|
-
toISOString() {
|
|
107
|
-
const [t, n, r] = this.tzComponents(), a = `${t}${n}:${r}`;
|
|
108
|
-
return this.internal.toISOString().slice(0, -1) + a;
|
|
109
|
-
}
|
|
110
|
-
toString() {
|
|
111
|
-
return `${this.toDateString()} ${this.toTimeString()}`;
|
|
112
|
-
}
|
|
113
|
-
toDateString() {
|
|
114
|
-
const [t, n, r, a] = this.internal.toUTCString().split(" ");
|
|
115
|
-
return `${t == null ? void 0 : t.slice(0, -1)} ${r} ${n} ${a}`;
|
|
116
|
-
}
|
|
117
|
-
toTimeString() {
|
|
118
|
-
const t = this.internal.toUTCString().split(" ")[4], [n, r, a] = this.tzComponents();
|
|
119
|
-
return `${t} GMT${n}${r}${a} (${zn(this.timeZone, this)})`;
|
|
120
|
-
}
|
|
121
|
-
toLocaleString(t, n) {
|
|
122
|
-
return Date.prototype.toLocaleString.call(this, t, {
|
|
123
|
-
...n,
|
|
124
|
-
timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
toLocaleDateString(t, n) {
|
|
128
|
-
return Date.prototype.toLocaleDateString.call(this, t, {
|
|
129
|
-
...n,
|
|
130
|
-
timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
toLocaleTimeString(t, n) {
|
|
134
|
-
return Date.prototype.toLocaleTimeString.call(this, t, {
|
|
135
|
-
...n,
|
|
136
|
-
timeZone: (n == null ? void 0 : n.timeZone) || this.timeZone
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region private
|
|
141
|
-
tzComponents() {
|
|
142
|
-
const t = this.getTimezoneOffset(), n = t > 0 ? "-" : "+", r = String(Math.floor(Math.abs(t) / 60)).padStart(2, "0"), a = String(Math.abs(t) % 60).padStart(2, "0");
|
|
143
|
-
return [n, r, a];
|
|
144
|
-
}
|
|
145
|
-
//#endregion
|
|
146
|
-
withTimeZone(t) {
|
|
147
|
-
return new H(+this, t);
|
|
148
|
-
}
|
|
149
|
-
//#region date-fns integration
|
|
150
|
-
[Symbol.for("constructDateFrom")](t) {
|
|
151
|
-
return new H(+new Date(t), this.timeZone);
|
|
152
|
-
}
|
|
153
|
-
//#endregion
|
|
154
|
-
}
|
|
155
|
-
function _t(e, t, n) {
|
|
156
|
-
const r = P(e, n == null ? void 0 : n.in);
|
|
157
|
-
return isNaN(t) ? I((n == null ? void 0 : n.in) || e, NaN) : (t && r.setDate(r.getDate() + t), r);
|
|
158
|
-
}
|
|
159
|
-
function Yt(e, t, n) {
|
|
160
|
-
const r = P(e, n == null ? void 0 : n.in);
|
|
161
|
-
if (isNaN(t)) return I(e, NaN);
|
|
162
|
-
if (!t)
|
|
163
|
-
return r;
|
|
164
|
-
const a = r.getDate(), s = I(e, r.getTime());
|
|
165
|
-
s.setMonth(r.getMonth() + t + 1, 0);
|
|
166
|
-
const o = s.getDate();
|
|
167
|
-
return a >= o ? s : (r.setFullYear(
|
|
168
|
-
s.getFullYear(),
|
|
169
|
-
s.getMonth(),
|
|
170
|
-
a
|
|
171
|
-
), r);
|
|
172
|
-
}
|
|
173
|
-
let qn = {};
|
|
174
|
-
function ke() {
|
|
175
|
-
return qn;
|
|
176
|
-
}
|
|
177
|
-
function le(e, t) {
|
|
178
|
-
var i, d, u, c;
|
|
179
|
-
const n = ke(), 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 ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, a = P(e, t == null ? void 0 : t.in), s = a.getDay(), o = (s < r ? 7 : 0) + s - r;
|
|
180
|
-
return a.setDate(a.getDate() - o), a.setHours(0, 0, 0, 0), a;
|
|
181
|
-
}
|
|
182
|
-
function Me(e, t) {
|
|
183
|
-
return le(e, { ...t, weekStartsOn: 1 });
|
|
184
|
-
}
|
|
185
|
-
function Tt(e, t) {
|
|
186
|
-
const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = I(n, 0);
|
|
187
|
-
a.setFullYear(r + 1, 0, 4), a.setHours(0, 0, 0, 0);
|
|
188
|
-
const s = Me(a), o = I(n, 0);
|
|
189
|
-
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
190
|
-
const i = Me(o);
|
|
191
|
-
return n.getTime() >= s.getTime() ? r + 1 : n.getTime() >= i.getTime() ? r : r - 1;
|
|
192
|
-
}
|
|
193
|
-
function yt(e) {
|
|
194
|
-
const t = P(e), n = new Date(
|
|
195
|
-
Date.UTC(
|
|
196
|
-
t.getFullYear(),
|
|
197
|
-
t.getMonth(),
|
|
198
|
-
t.getDate(),
|
|
199
|
-
t.getHours(),
|
|
200
|
-
t.getMinutes(),
|
|
201
|
-
t.getSeconds(),
|
|
202
|
-
t.getMilliseconds()
|
|
203
|
-
)
|
|
204
|
-
);
|
|
205
|
-
return n.setUTCFullYear(t.getFullYear()), +e - +n;
|
|
206
|
-
}
|
|
207
|
-
function Ze(e, t, n) {
|
|
208
|
-
const [r, a] = we(
|
|
209
|
-
n == null ? void 0 : n.in,
|
|
210
|
-
e,
|
|
211
|
-
t
|
|
212
|
-
), s = Ke(r), o = Ke(a), i = +s - yt(s), d = +o - yt(o);
|
|
213
|
-
return Math.round((i - d) / Fn);
|
|
214
|
-
}
|
|
215
|
-
function $n(e, t) {
|
|
216
|
-
const n = Tt(e, t), r = I(e, 0);
|
|
217
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Me(r);
|
|
218
|
-
}
|
|
219
|
-
function Gn(e, t, n) {
|
|
220
|
-
return _t(e, t * 7, n);
|
|
221
|
-
}
|
|
222
|
-
function Rn(e, t, n) {
|
|
223
|
-
return Yt(e, t * 12, n);
|
|
224
|
-
}
|
|
225
|
-
function Vn(e, t) {
|
|
226
|
-
let n, r = t == null ? void 0 : t.in;
|
|
227
|
-
return e.forEach((a) => {
|
|
228
|
-
!r && typeof a == "object" && (r = I.bind(null, a));
|
|
229
|
-
const s = P(a, r);
|
|
230
|
-
(!n || n < s || isNaN(+s)) && (n = s);
|
|
231
|
-
}), I(r, n || NaN);
|
|
232
|
-
}
|
|
233
|
-
function Un(e, t) {
|
|
234
|
-
let n, r = t == null ? void 0 : t.in;
|
|
235
|
-
return e.forEach((a) => {
|
|
236
|
-
!r && typeof a == "object" && (r = I.bind(null, a));
|
|
237
|
-
const s = P(a, r);
|
|
238
|
-
(!n || n > s || isNaN(+s)) && (n = s);
|
|
239
|
-
}), I(r, n || NaN);
|
|
240
|
-
}
|
|
241
|
-
function Pt(e) {
|
|
242
|
-
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
243
|
-
}
|
|
244
|
-
function Qn(e) {
|
|
245
|
-
return !(!Pt(e) && typeof e != "number" || isNaN(+P(e)));
|
|
246
|
-
}
|
|
247
|
-
function Et(e, t, n) {
|
|
248
|
-
const [r, a] = we(
|
|
249
|
-
n == null ? void 0 : n.in,
|
|
250
|
-
e,
|
|
251
|
-
t
|
|
252
|
-
), s = r.getFullYear() - a.getFullYear(), o = r.getMonth() - a.getMonth();
|
|
253
|
-
return s * 12 + o;
|
|
254
|
-
}
|
|
255
|
-
function Xn(e, t) {
|
|
256
|
-
const n = P(e, t == null ? void 0 : t.in), r = n.getMonth();
|
|
257
|
-
return n.setFullYear(n.getFullYear(), r + 1, 0), n.setHours(23, 59, 59, 999), n;
|
|
258
|
-
}
|
|
259
|
-
function Ft(e, t) {
|
|
260
|
-
const [n, r] = we(e, t.start, t.end);
|
|
261
|
-
return { start: n, end: r };
|
|
262
|
-
}
|
|
263
|
-
function Kn(e, t) {
|
|
264
|
-
const { start: n, end: r } = Ft(t == null ? void 0 : t.in, e);
|
|
265
|
-
let a = +n > +r;
|
|
266
|
-
const s = a ? +n : +r, o = a ? r : n;
|
|
267
|
-
o.setHours(0, 0, 0, 0), o.setDate(1);
|
|
268
|
-
let i = 1;
|
|
269
|
-
const d = [];
|
|
270
|
-
for (; +o <= s; )
|
|
271
|
-
d.push(I(n, o)), o.setMonth(o.getMonth() + i);
|
|
272
|
-
return a ? d.reverse() : d;
|
|
273
|
-
}
|
|
274
|
-
function Jn(e, t) {
|
|
275
|
-
const n = P(e, t == null ? void 0 : t.in);
|
|
276
|
-
return n.setDate(1), n.setHours(0, 0, 0, 0), n;
|
|
277
|
-
}
|
|
278
|
-
function Zn(e, t) {
|
|
279
|
-
const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear();
|
|
280
|
-
return n.setFullYear(r + 1, 0, 0), n.setHours(23, 59, 59, 999), n;
|
|
281
|
-
}
|
|
282
|
-
function Bt(e, t) {
|
|
283
|
-
const n = P(e, t == null ? void 0 : t.in);
|
|
284
|
-
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
285
|
-
}
|
|
286
|
-
function Ln(e, t) {
|
|
287
|
-
const { start: n, end: r } = Ft(t == null ? void 0 : t.in, e);
|
|
288
|
-
let a = +n > +r;
|
|
289
|
-
const s = a ? +n : +r, o = a ? r : n;
|
|
290
|
-
o.setHours(0, 0, 0, 0), o.setMonth(0, 1);
|
|
291
|
-
let i = 1;
|
|
292
|
-
const d = [];
|
|
293
|
-
for (; +o <= s; )
|
|
294
|
-
d.push(I(n, o)), o.setFullYear(o.getFullYear() + i);
|
|
295
|
-
return a ? d.reverse() : d;
|
|
296
|
-
}
|
|
297
|
-
function It(e, t) {
|
|
298
|
-
var i, d, u, c;
|
|
299
|
-
const n = ke(), 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 ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.weekStartsOn) ?? 0, a = P(e, t == null ? void 0 : t.in), s = a.getDay(), o = (s < r ? -7 : 0) + 6 - (s - r);
|
|
300
|
-
return a.setDate(a.getDate() + o), a.setHours(23, 59, 59, 999), a;
|
|
301
|
-
}
|
|
302
|
-
function er(e, t) {
|
|
303
|
-
return It(e, { ...t, weekStartsOn: 1 });
|
|
304
|
-
}
|
|
305
|
-
const tr = {
|
|
306
|
-
lessThanXSeconds: {
|
|
307
|
-
one: "less than a second",
|
|
308
|
-
other: "less than {{count}} seconds"
|
|
309
|
-
},
|
|
310
|
-
xSeconds: {
|
|
311
|
-
one: "1 second",
|
|
312
|
-
other: "{{count}} seconds"
|
|
313
|
-
},
|
|
314
|
-
halfAMinute: "half a minute",
|
|
315
|
-
lessThanXMinutes: {
|
|
316
|
-
one: "less than a minute",
|
|
317
|
-
other: "less than {{count}} minutes"
|
|
318
|
-
},
|
|
319
|
-
xMinutes: {
|
|
320
|
-
one: "1 minute",
|
|
321
|
-
other: "{{count}} minutes"
|
|
322
|
-
},
|
|
323
|
-
aboutXHours: {
|
|
324
|
-
one: "about 1 hour",
|
|
325
|
-
other: "about {{count}} hours"
|
|
326
|
-
},
|
|
327
|
-
xHours: {
|
|
328
|
-
one: "1 hour",
|
|
329
|
-
other: "{{count}} hours"
|
|
330
|
-
},
|
|
331
|
-
xDays: {
|
|
332
|
-
one: "1 day",
|
|
333
|
-
other: "{{count}} days"
|
|
334
|
-
},
|
|
335
|
-
aboutXWeeks: {
|
|
336
|
-
one: "about 1 week",
|
|
337
|
-
other: "about {{count}} weeks"
|
|
338
|
-
},
|
|
339
|
-
xWeeks: {
|
|
340
|
-
one: "1 week",
|
|
341
|
-
other: "{{count}} weeks"
|
|
342
|
-
},
|
|
343
|
-
aboutXMonths: {
|
|
344
|
-
one: "about 1 month",
|
|
345
|
-
other: "about {{count}} months"
|
|
346
|
-
},
|
|
347
|
-
xMonths: {
|
|
348
|
-
one: "1 month",
|
|
349
|
-
other: "{{count}} months"
|
|
350
|
-
},
|
|
351
|
-
aboutXYears: {
|
|
352
|
-
one: "about 1 year",
|
|
353
|
-
other: "about {{count}} years"
|
|
354
|
-
},
|
|
355
|
-
xYears: {
|
|
356
|
-
one: "1 year",
|
|
357
|
-
other: "{{count}} years"
|
|
358
|
-
},
|
|
359
|
-
overXYears: {
|
|
360
|
-
one: "over 1 year",
|
|
361
|
-
other: "over {{count}} years"
|
|
362
|
-
},
|
|
363
|
-
almostXYears: {
|
|
364
|
-
one: "almost 1 year",
|
|
365
|
-
other: "almost {{count}} years"
|
|
366
|
-
}
|
|
367
|
-
}, nr = (e, t, n) => {
|
|
368
|
-
let r;
|
|
369
|
-
const a = tr[e];
|
|
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;
|
|
371
|
-
};
|
|
372
|
-
function je(e) {
|
|
373
|
-
return (t = {}) => {
|
|
374
|
-
const n = t.width ? String(t.width) : e.defaultWidth;
|
|
375
|
-
return e.formats[n] || e.formats[e.defaultWidth];
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
const rr = {
|
|
379
|
-
full: "EEEE, MMMM do, y",
|
|
380
|
-
long: "MMMM do, y",
|
|
381
|
-
medium: "MMM d, y",
|
|
382
|
-
short: "MM/dd/yyyy"
|
|
383
|
-
}, ar = {
|
|
384
|
-
full: "h:mm:ss a zzzz",
|
|
385
|
-
long: "h:mm:ss a z",
|
|
386
|
-
medium: "h:mm:ss a",
|
|
387
|
-
short: "h:mm a"
|
|
388
|
-
}, sr = {
|
|
389
|
-
full: "{{date}} 'at' {{time}}",
|
|
390
|
-
long: "{{date}} 'at' {{time}}",
|
|
391
|
-
medium: "{{date}}, {{time}}",
|
|
392
|
-
short: "{{date}}, {{time}}"
|
|
393
|
-
}, or = {
|
|
394
|
-
date: je({
|
|
395
|
-
formats: rr,
|
|
396
|
-
defaultWidth: "full"
|
|
397
|
-
}),
|
|
398
|
-
time: je({
|
|
399
|
-
formats: ar,
|
|
400
|
-
defaultWidth: "full"
|
|
401
|
-
}),
|
|
402
|
-
dateTime: je({
|
|
403
|
-
formats: sr,
|
|
404
|
-
defaultWidth: "full"
|
|
405
|
-
})
|
|
406
|
-
}, ir = {
|
|
407
|
-
lastWeek: "'last' eeee 'at' p",
|
|
408
|
-
yesterday: "'yesterday at' p",
|
|
409
|
-
today: "'today at' p",
|
|
410
|
-
tomorrow: "'tomorrow at' p",
|
|
411
|
-
nextWeek: "eeee 'at' p",
|
|
412
|
-
other: "P"
|
|
413
|
-
}, dr = (e, t, n, r) => ir[e];
|
|
414
|
-
function ye(e) {
|
|
415
|
-
return (t, n) => {
|
|
416
|
-
const r = n != null && n.context ? String(n.context) : "standalone";
|
|
417
|
-
let a;
|
|
418
|
-
if (r === "formatting" && e.formattingValues) {
|
|
419
|
-
const o = e.defaultFormattingWidth || e.defaultWidth, i = n != null && n.width ? String(n.width) : o;
|
|
420
|
-
a = e.formattingValues[i] || e.formattingValues[o];
|
|
421
|
-
} else {
|
|
422
|
-
const o = e.defaultWidth, i = n != null && n.width ? String(n.width) : e.defaultWidth;
|
|
423
|
-
a = e.values[i] || e.values[o];
|
|
424
|
-
}
|
|
425
|
-
const s = e.argumentCallback ? e.argumentCallback(t) : t;
|
|
426
|
-
return a[s];
|
|
427
|
-
};
|
|
428
|
-
}
|
|
429
|
-
const ur = {
|
|
430
|
-
narrow: ["B", "A"],
|
|
431
|
-
abbreviated: ["BC", "AD"],
|
|
432
|
-
wide: ["Before Christ", "Anno Domini"]
|
|
433
|
-
}, cr = {
|
|
434
|
-
narrow: ["1", "2", "3", "4"],
|
|
435
|
-
abbreviated: ["Q1", "Q2", "Q3", "Q4"],
|
|
436
|
-
wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
|
|
437
|
-
}, fr = {
|
|
438
|
-
narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
|
|
439
|
-
abbreviated: [
|
|
440
|
-
"Jan",
|
|
441
|
-
"Feb",
|
|
442
|
-
"Mar",
|
|
443
|
-
"Apr",
|
|
444
|
-
"May",
|
|
445
|
-
"Jun",
|
|
446
|
-
"Jul",
|
|
447
|
-
"Aug",
|
|
448
|
-
"Sep",
|
|
449
|
-
"Oct",
|
|
450
|
-
"Nov",
|
|
451
|
-
"Dec"
|
|
452
|
-
],
|
|
453
|
-
wide: [
|
|
454
|
-
"January",
|
|
455
|
-
"February",
|
|
456
|
-
"March",
|
|
457
|
-
"April",
|
|
458
|
-
"May",
|
|
459
|
-
"June",
|
|
460
|
-
"July",
|
|
461
|
-
"August",
|
|
462
|
-
"September",
|
|
463
|
-
"October",
|
|
464
|
-
"November",
|
|
465
|
-
"December"
|
|
466
|
-
]
|
|
467
|
-
}, lr = {
|
|
468
|
-
narrow: ["S", "M", "T", "W", "T", "F", "S"],
|
|
469
|
-
short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
|
|
470
|
-
abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
|
|
471
|
-
wide: [
|
|
472
|
-
"Sunday",
|
|
473
|
-
"Monday",
|
|
474
|
-
"Tuesday",
|
|
475
|
-
"Wednesday",
|
|
476
|
-
"Thursday",
|
|
477
|
-
"Friday",
|
|
478
|
-
"Saturday"
|
|
479
|
-
]
|
|
480
|
-
}, hr = {
|
|
481
|
-
narrow: {
|
|
482
|
-
am: "a",
|
|
483
|
-
pm: "p",
|
|
484
|
-
midnight: "mi",
|
|
485
|
-
noon: "n",
|
|
486
|
-
morning: "morning",
|
|
487
|
-
afternoon: "afternoon",
|
|
488
|
-
evening: "evening",
|
|
489
|
-
night: "night"
|
|
490
|
-
},
|
|
491
|
-
abbreviated: {
|
|
492
|
-
am: "AM",
|
|
493
|
-
pm: "PM",
|
|
494
|
-
midnight: "midnight",
|
|
495
|
-
noon: "noon",
|
|
496
|
-
morning: "morning",
|
|
497
|
-
afternoon: "afternoon",
|
|
498
|
-
evening: "evening",
|
|
499
|
-
night: "night"
|
|
500
|
-
},
|
|
501
|
-
wide: {
|
|
502
|
-
am: "a.m.",
|
|
503
|
-
pm: "p.m.",
|
|
504
|
-
midnight: "midnight",
|
|
505
|
-
noon: "noon",
|
|
506
|
-
morning: "morning",
|
|
507
|
-
afternoon: "afternoon",
|
|
508
|
-
evening: "evening",
|
|
509
|
-
night: "night"
|
|
510
|
-
}
|
|
511
|
-
}, mr = {
|
|
512
|
-
narrow: {
|
|
513
|
-
am: "a",
|
|
514
|
-
pm: "p",
|
|
515
|
-
midnight: "mi",
|
|
516
|
-
noon: "n",
|
|
517
|
-
morning: "in the morning",
|
|
518
|
-
afternoon: "in the afternoon",
|
|
519
|
-
evening: "in the evening",
|
|
520
|
-
night: "at night"
|
|
521
|
-
},
|
|
522
|
-
abbreviated: {
|
|
523
|
-
am: "AM",
|
|
524
|
-
pm: "PM",
|
|
525
|
-
midnight: "midnight",
|
|
526
|
-
noon: "noon",
|
|
527
|
-
morning: "in the morning",
|
|
528
|
-
afternoon: "in the afternoon",
|
|
529
|
-
evening: "in the evening",
|
|
530
|
-
night: "at night"
|
|
531
|
-
},
|
|
532
|
-
wide: {
|
|
533
|
-
am: "a.m.",
|
|
534
|
-
pm: "p.m.",
|
|
535
|
-
midnight: "midnight",
|
|
536
|
-
noon: "noon",
|
|
537
|
-
morning: "in the morning",
|
|
538
|
-
afternoon: "in the afternoon",
|
|
539
|
-
evening: "in the evening",
|
|
540
|
-
night: "at night"
|
|
541
|
-
}
|
|
542
|
-
}, yr = (e, t) => {
|
|
543
|
-
const n = Number(e), r = n % 100;
|
|
544
|
-
if (r > 20 || r < 10)
|
|
545
|
-
switch (r % 10) {
|
|
546
|
-
case 1:
|
|
547
|
-
return n + "st";
|
|
548
|
-
case 2:
|
|
549
|
-
return n + "nd";
|
|
550
|
-
case 3:
|
|
551
|
-
return n + "rd";
|
|
552
|
-
}
|
|
553
|
-
return n + "th";
|
|
554
|
-
}, gr = {
|
|
555
|
-
ordinalNumber: yr,
|
|
556
|
-
era: ye({
|
|
557
|
-
values: ur,
|
|
558
|
-
defaultWidth: "wide"
|
|
559
|
-
}),
|
|
560
|
-
quarter: ye({
|
|
561
|
-
values: cr,
|
|
562
|
-
defaultWidth: "wide",
|
|
563
|
-
argumentCallback: (e) => e - 1
|
|
564
|
-
}),
|
|
565
|
-
month: ye({
|
|
566
|
-
values: fr,
|
|
567
|
-
defaultWidth: "wide"
|
|
568
|
-
}),
|
|
569
|
-
day: ye({
|
|
570
|
-
values: lr,
|
|
571
|
-
defaultWidth: "wide"
|
|
572
|
-
}),
|
|
573
|
-
dayPeriod: ye({
|
|
574
|
-
values: hr,
|
|
575
|
-
defaultWidth: "wide",
|
|
576
|
-
formattingValues: mr,
|
|
577
|
-
defaultFormattingWidth: "wide"
|
|
578
|
-
})
|
|
579
|
-
};
|
|
580
|
-
function ge(e) {
|
|
581
|
-
return (t, n = {}) => {
|
|
582
|
-
const r = n.width, a = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], s = t.match(a);
|
|
583
|
-
if (!s)
|
|
584
|
-
return null;
|
|
585
|
-
const o = s[0], i = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], d = Array.isArray(i) ? vr(i, (f) => f.test(o)) : (
|
|
586
|
-
// [TODO] -- I challenge you to fix the type
|
|
587
|
-
br(i, (f) => f.test(o))
|
|
588
|
-
);
|
|
589
|
-
let u;
|
|
590
|
-
u = e.valueCallback ? e.valueCallback(d) : d, u = n.valueCallback ? (
|
|
591
|
-
// [TODO] -- I challenge you to fix the type
|
|
592
|
-
n.valueCallback(u)
|
|
593
|
-
) : u;
|
|
594
|
-
const c = t.slice(o.length);
|
|
595
|
-
return { value: u, rest: c };
|
|
596
|
-
};
|
|
597
|
-
}
|
|
598
|
-
function br(e, t) {
|
|
599
|
-
for (const n in e)
|
|
600
|
-
if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n]))
|
|
601
|
-
return n;
|
|
602
|
-
}
|
|
603
|
-
function vr(e, t) {
|
|
604
|
-
for (let n = 0; n < e.length; n++)
|
|
605
|
-
if (t(e[n]))
|
|
606
|
-
return n;
|
|
607
|
-
}
|
|
608
|
-
function Mr(e) {
|
|
609
|
-
return (t, n = {}) => {
|
|
610
|
-
const r = t.match(e.matchPattern);
|
|
611
|
-
if (!r) return null;
|
|
612
|
-
const a = r[0], s = t.match(e.parsePattern);
|
|
613
|
-
if (!s) return null;
|
|
614
|
-
let o = e.valueCallback ? e.valueCallback(s[0]) : s[0];
|
|
615
|
-
o = n.valueCallback ? n.valueCallback(o) : o;
|
|
616
|
-
const i = t.slice(a.length);
|
|
617
|
-
return { value: o, rest: i };
|
|
618
|
-
};
|
|
619
|
-
}
|
|
620
|
-
const wr = /^(\d+)(th|st|nd|rd)?/i, kr = /\d+/i, Dr = {
|
|
621
|
-
narrow: /^(b|a)/i,
|
|
622
|
-
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
623
|
-
wide: /^(before christ|before common era|anno domini|common era)/i
|
|
624
|
-
}, Or = {
|
|
625
|
-
any: [/^b/i, /^(a|c)/i]
|
|
626
|
-
}, pr = {
|
|
627
|
-
narrow: /^[1234]/i,
|
|
628
|
-
abbreviated: /^q[1234]/i,
|
|
629
|
-
wide: /^[1234](th|st|nd|rd)? quarter/i
|
|
630
|
-
}, Wr = {
|
|
631
|
-
any: [/1/i, /2/i, /3/i, /4/i]
|
|
632
|
-
}, Sr = {
|
|
633
|
-
narrow: /^[jfmasond]/i,
|
|
634
|
-
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
635
|
-
wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
|
|
636
|
-
}, xr = {
|
|
637
|
-
narrow: [
|
|
638
|
-
/^j/i,
|
|
639
|
-
/^f/i,
|
|
640
|
-
/^m/i,
|
|
641
|
-
/^a/i,
|
|
642
|
-
/^m/i,
|
|
643
|
-
/^j/i,
|
|
644
|
-
/^j/i,
|
|
645
|
-
/^a/i,
|
|
646
|
-
/^s/i,
|
|
647
|
-
/^o/i,
|
|
648
|
-
/^n/i,
|
|
649
|
-
/^d/i
|
|
650
|
-
],
|
|
651
|
-
any: [
|
|
652
|
-
/^ja/i,
|
|
653
|
-
/^f/i,
|
|
654
|
-
/^mar/i,
|
|
655
|
-
/^ap/i,
|
|
656
|
-
/^may/i,
|
|
657
|
-
/^jun/i,
|
|
658
|
-
/^jul/i,
|
|
659
|
-
/^au/i,
|
|
660
|
-
/^s/i,
|
|
661
|
-
/^o/i,
|
|
662
|
-
/^n/i,
|
|
663
|
-
/^d/i
|
|
664
|
-
]
|
|
665
|
-
}, Nr = {
|
|
666
|
-
narrow: /^[smtwf]/i,
|
|
667
|
-
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
668
|
-
abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
|
|
669
|
-
wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
|
|
670
|
-
}, Cr = {
|
|
671
|
-
narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
|
|
672
|
-
any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
|
|
673
|
-
}, _r = {
|
|
674
|
-
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
675
|
-
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
676
|
-
}, Yr = {
|
|
677
|
-
any: {
|
|
678
|
-
am: /^a/i,
|
|
679
|
-
pm: /^p/i,
|
|
680
|
-
midnight: /^mi/i,
|
|
681
|
-
noon: /^no/i,
|
|
682
|
-
morning: /morning/i,
|
|
683
|
-
afternoon: /afternoon/i,
|
|
684
|
-
evening: /evening/i,
|
|
685
|
-
night: /night/i
|
|
686
|
-
}
|
|
687
|
-
}, Tr = {
|
|
688
|
-
ordinalNumber: Mr({
|
|
689
|
-
matchPattern: wr,
|
|
690
|
-
parsePattern: kr,
|
|
691
|
-
valueCallback: (e) => parseInt(e, 10)
|
|
692
|
-
}),
|
|
693
|
-
era: ge({
|
|
694
|
-
matchPatterns: Dr,
|
|
695
|
-
defaultMatchWidth: "wide",
|
|
696
|
-
parsePatterns: Or,
|
|
697
|
-
defaultParseWidth: "any"
|
|
698
|
-
}),
|
|
699
|
-
quarter: ge({
|
|
700
|
-
matchPatterns: pr,
|
|
701
|
-
defaultMatchWidth: "wide",
|
|
702
|
-
parsePatterns: Wr,
|
|
703
|
-
defaultParseWidth: "any",
|
|
704
|
-
valueCallback: (e) => e + 1
|
|
705
|
-
}),
|
|
706
|
-
month: ge({
|
|
707
|
-
matchPatterns: Sr,
|
|
708
|
-
defaultMatchWidth: "wide",
|
|
709
|
-
parsePatterns: xr,
|
|
710
|
-
defaultParseWidth: "any"
|
|
711
|
-
}),
|
|
712
|
-
day: ge({
|
|
713
|
-
matchPatterns: Nr,
|
|
714
|
-
defaultMatchWidth: "wide",
|
|
715
|
-
parsePatterns: Cr,
|
|
716
|
-
defaultParseWidth: "any"
|
|
717
|
-
}),
|
|
718
|
-
dayPeriod: ge({
|
|
719
|
-
matchPatterns: _r,
|
|
720
|
-
defaultMatchWidth: "any",
|
|
721
|
-
parsePatterns: Yr,
|
|
722
|
-
defaultParseWidth: "any"
|
|
723
|
-
})
|
|
724
|
-
}, ie = {
|
|
725
|
-
code: "en-US",
|
|
726
|
-
formatDistance: nr,
|
|
727
|
-
formatLong: or,
|
|
728
|
-
formatRelative: dr,
|
|
729
|
-
localize: gr,
|
|
730
|
-
match: Tr,
|
|
731
|
-
options: {
|
|
732
|
-
weekStartsOn: 0,
|
|
733
|
-
firstWeekContainsDate: 1
|
|
734
|
-
}
|
|
735
|
-
}, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
736
|
-
__proto__: null,
|
|
737
|
-
enUS: ie
|
|
738
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
739
|
-
function Er(e, t) {
|
|
740
|
-
const n = P(e, t == null ? void 0 : t.in);
|
|
741
|
-
return Ze(n, Bt(n)) + 1;
|
|
742
|
-
}
|
|
743
|
-
function Le(e, t) {
|
|
744
|
-
const n = P(e, t == null ? void 0 : t.in), r = +Me(n) - +$n(n);
|
|
745
|
-
return Math.round(r / Nt) + 1;
|
|
746
|
-
}
|
|
747
|
-
function Ht(e, t) {
|
|
748
|
-
var c, f, h, g;
|
|
749
|
-
const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = ke(), s = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((f = (c = t == null ? void 0 : t.locale) == null ? void 0 : c.options) == null ? void 0 : f.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((g = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : g.firstWeekContainsDate) ?? 1, o = I((t == null ? void 0 : t.in) || e, 0);
|
|
750
|
-
o.setFullYear(r + 1, 0, s), o.setHours(0, 0, 0, 0);
|
|
751
|
-
const i = le(o, t), d = I((t == null ? void 0 : t.in) || e, 0);
|
|
752
|
-
d.setFullYear(r, 0, s), d.setHours(0, 0, 0, 0);
|
|
753
|
-
const u = le(d, t);
|
|
754
|
-
return +n >= +i ? r + 1 : +n >= +u ? r : r - 1;
|
|
755
|
-
}
|
|
756
|
-
function Fr(e, t) {
|
|
757
|
-
var i, d, u, c;
|
|
758
|
-
const n = ke(), 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 ?? ((c = (u = n.locale) == null ? void 0 : u.options) == null ? void 0 : c.firstWeekContainsDate) ?? 1, a = Ht(e, t), s = I((t == null ? void 0 : t.in) || e, 0);
|
|
759
|
-
return s.setFullYear(a, 0, r), s.setHours(0, 0, 0, 0), le(s, t);
|
|
760
|
-
}
|
|
761
|
-
function et(e, t) {
|
|
762
|
-
const n = P(e, t == null ? void 0 : t.in), r = +le(n, t) - +Fr(n, t);
|
|
763
|
-
return Math.round(r / Nt) + 1;
|
|
764
|
-
}
|
|
765
|
-
function Y(e, t) {
|
|
766
|
-
const n = e < 0 ? "-" : "", r = Math.abs(e).toString().padStart(t, "0");
|
|
767
|
-
return n + r;
|
|
768
|
-
}
|
|
769
|
-
const se = {
|
|
770
|
-
// Year
|
|
771
|
-
y(e, t) {
|
|
772
|
-
const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
773
|
-
return Y(t === "yy" ? r % 100 : r, t.length);
|
|
774
|
-
},
|
|
775
|
-
// Month
|
|
776
|
-
M(e, t) {
|
|
777
|
-
const n = e.getMonth();
|
|
778
|
-
return t === "M" ? String(n + 1) : Y(n + 1, 2);
|
|
779
|
-
},
|
|
780
|
-
// Day of the month
|
|
781
|
-
d(e, t) {
|
|
782
|
-
return Y(e.getDate(), t.length);
|
|
783
|
-
},
|
|
784
|
-
// AM or PM
|
|
785
|
-
a(e, t) {
|
|
786
|
-
const n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
787
|
-
switch (t) {
|
|
788
|
-
case "a":
|
|
789
|
-
case "aa":
|
|
790
|
-
return n.toUpperCase();
|
|
791
|
-
case "aaa":
|
|
792
|
-
return n;
|
|
793
|
-
case "aaaaa":
|
|
794
|
-
return n[0];
|
|
795
|
-
case "aaaa":
|
|
796
|
-
default:
|
|
797
|
-
return n === "am" ? "a.m." : "p.m.";
|
|
798
|
-
}
|
|
799
|
-
},
|
|
800
|
-
// Hour [1-12]
|
|
801
|
-
h(e, t) {
|
|
802
|
-
return Y(e.getHours() % 12 || 12, t.length);
|
|
803
|
-
},
|
|
804
|
-
// Hour [0-23]
|
|
805
|
-
H(e, t) {
|
|
806
|
-
return Y(e.getHours(), t.length);
|
|
807
|
-
},
|
|
808
|
-
// Minute
|
|
809
|
-
m(e, t) {
|
|
810
|
-
return Y(e.getMinutes(), t.length);
|
|
811
|
-
},
|
|
812
|
-
// Second
|
|
813
|
-
s(e, t) {
|
|
814
|
-
return Y(e.getSeconds(), t.length);
|
|
815
|
-
},
|
|
816
|
-
// Fraction of second
|
|
817
|
-
S(e, t) {
|
|
818
|
-
const n = t.length, r = e.getMilliseconds(), a = Math.trunc(
|
|
819
|
-
r * Math.pow(10, n - 3)
|
|
820
|
-
);
|
|
821
|
-
return Y(a, t.length);
|
|
822
|
-
}
|
|
823
|
-
}, ce = {
|
|
824
|
-
midnight: "midnight",
|
|
825
|
-
noon: "noon",
|
|
826
|
-
morning: "morning",
|
|
827
|
-
afternoon: "afternoon",
|
|
828
|
-
evening: "evening",
|
|
829
|
-
night: "night"
|
|
830
|
-
}, gt = {
|
|
831
|
-
// Era
|
|
832
|
-
G: function(e, t, n) {
|
|
833
|
-
const r = e.getFullYear() > 0 ? 1 : 0;
|
|
834
|
-
switch (t) {
|
|
835
|
-
// AD, BC
|
|
836
|
-
case "G":
|
|
837
|
-
case "GG":
|
|
838
|
-
case "GGG":
|
|
839
|
-
return n.era(r, { width: "abbreviated" });
|
|
840
|
-
// A, B
|
|
841
|
-
case "GGGGG":
|
|
842
|
-
return n.era(r, { width: "narrow" });
|
|
843
|
-
// Anno Domini, Before Christ
|
|
844
|
-
case "GGGG":
|
|
845
|
-
default:
|
|
846
|
-
return n.era(r, { width: "wide" });
|
|
847
|
-
}
|
|
848
|
-
},
|
|
849
|
-
// Year
|
|
850
|
-
y: function(e, t, n) {
|
|
851
|
-
if (t === "yo") {
|
|
852
|
-
const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
|
|
853
|
-
return n.ordinalNumber(a, { unit: "year" });
|
|
854
|
-
}
|
|
855
|
-
return se.y(e, t);
|
|
856
|
-
},
|
|
857
|
-
// Local week-numbering year
|
|
858
|
-
Y: function(e, t, n, r) {
|
|
859
|
-
const a = Ht(e, r), s = a > 0 ? a : 1 - a;
|
|
860
|
-
if (t === "YY") {
|
|
861
|
-
const o = s % 100;
|
|
862
|
-
return Y(o, 2);
|
|
863
|
-
}
|
|
864
|
-
return t === "Yo" ? n.ordinalNumber(s, { unit: "year" }) : Y(s, t.length);
|
|
865
|
-
},
|
|
866
|
-
// ISO week-numbering year
|
|
867
|
-
R: function(e, t) {
|
|
868
|
-
const n = Tt(e);
|
|
869
|
-
return Y(n, t.length);
|
|
870
|
-
},
|
|
871
|
-
// Extended year. This is a single number designating the year of this calendar system.
|
|
872
|
-
// The main difference between `y` and `u` localizers are B.C. years:
|
|
873
|
-
// | Year | `y` | `u` |
|
|
874
|
-
// |------|-----|-----|
|
|
875
|
-
// | AC 1 | 1 | 1 |
|
|
876
|
-
// | BC 1 | 1 | 0 |
|
|
877
|
-
// | BC 2 | 2 | -1 |
|
|
878
|
-
// Also `yy` always returns the last two digits of a year,
|
|
879
|
-
// while `uu` pads single digit years to 2 characters and returns other years unchanged.
|
|
880
|
-
u: function(e, t) {
|
|
881
|
-
const n = e.getFullYear();
|
|
882
|
-
return Y(n, t.length);
|
|
883
|
-
},
|
|
884
|
-
// Quarter
|
|
885
|
-
Q: function(e, t, n) {
|
|
886
|
-
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
887
|
-
switch (t) {
|
|
888
|
-
// 1, 2, 3, 4
|
|
889
|
-
case "Q":
|
|
890
|
-
return String(r);
|
|
891
|
-
// 01, 02, 03, 04
|
|
892
|
-
case "QQ":
|
|
893
|
-
return Y(r, 2);
|
|
894
|
-
// 1st, 2nd, 3rd, 4th
|
|
895
|
-
case "Qo":
|
|
896
|
-
return n.ordinalNumber(r, { unit: "quarter" });
|
|
897
|
-
// Q1, Q2, Q3, Q4
|
|
898
|
-
case "QQQ":
|
|
899
|
-
return n.quarter(r, {
|
|
900
|
-
width: "abbreviated",
|
|
901
|
-
context: "formatting"
|
|
902
|
-
});
|
|
903
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
904
|
-
case "QQQQQ":
|
|
905
|
-
return n.quarter(r, {
|
|
906
|
-
width: "narrow",
|
|
907
|
-
context: "formatting"
|
|
908
|
-
});
|
|
909
|
-
// 1st quarter, 2nd quarter, ...
|
|
910
|
-
case "QQQQ":
|
|
911
|
-
default:
|
|
912
|
-
return n.quarter(r, {
|
|
913
|
-
width: "wide",
|
|
914
|
-
context: "formatting"
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
},
|
|
918
|
-
// Stand-alone quarter
|
|
919
|
-
q: function(e, t, n) {
|
|
920
|
-
const r = Math.ceil((e.getMonth() + 1) / 3);
|
|
921
|
-
switch (t) {
|
|
922
|
-
// 1, 2, 3, 4
|
|
923
|
-
case "q":
|
|
924
|
-
return String(r);
|
|
925
|
-
// 01, 02, 03, 04
|
|
926
|
-
case "qq":
|
|
927
|
-
return Y(r, 2);
|
|
928
|
-
// 1st, 2nd, 3rd, 4th
|
|
929
|
-
case "qo":
|
|
930
|
-
return n.ordinalNumber(r, { unit: "quarter" });
|
|
931
|
-
// Q1, Q2, Q3, Q4
|
|
932
|
-
case "qqq":
|
|
933
|
-
return n.quarter(r, {
|
|
934
|
-
width: "abbreviated",
|
|
935
|
-
context: "standalone"
|
|
936
|
-
});
|
|
937
|
-
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
938
|
-
case "qqqqq":
|
|
939
|
-
return n.quarter(r, {
|
|
940
|
-
width: "narrow",
|
|
941
|
-
context: "standalone"
|
|
942
|
-
});
|
|
943
|
-
// 1st quarter, 2nd quarter, ...
|
|
944
|
-
case "qqqq":
|
|
945
|
-
default:
|
|
946
|
-
return n.quarter(r, {
|
|
947
|
-
width: "wide",
|
|
948
|
-
context: "standalone"
|
|
949
|
-
});
|
|
950
|
-
}
|
|
951
|
-
},
|
|
952
|
-
// Month
|
|
953
|
-
M: function(e, t, n) {
|
|
954
|
-
const r = e.getMonth();
|
|
955
|
-
switch (t) {
|
|
956
|
-
case "M":
|
|
957
|
-
case "MM":
|
|
958
|
-
return se.M(e, t);
|
|
959
|
-
// 1st, 2nd, ..., 12th
|
|
960
|
-
case "Mo":
|
|
961
|
-
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
962
|
-
// Jan, Feb, ..., Dec
|
|
963
|
-
case "MMM":
|
|
964
|
-
return n.month(r, {
|
|
965
|
-
width: "abbreviated",
|
|
966
|
-
context: "formatting"
|
|
967
|
-
});
|
|
968
|
-
// J, F, ..., D
|
|
969
|
-
case "MMMMM":
|
|
970
|
-
return n.month(r, {
|
|
971
|
-
width: "narrow",
|
|
972
|
-
context: "formatting"
|
|
973
|
-
});
|
|
974
|
-
// January, February, ..., December
|
|
975
|
-
case "MMMM":
|
|
976
|
-
default:
|
|
977
|
-
return n.month(r, { width: "wide", context: "formatting" });
|
|
978
|
-
}
|
|
979
|
-
},
|
|
980
|
-
// Stand-alone month
|
|
981
|
-
L: function(e, t, n) {
|
|
982
|
-
const r = e.getMonth();
|
|
983
|
-
switch (t) {
|
|
984
|
-
// 1, 2, ..., 12
|
|
985
|
-
case "L":
|
|
986
|
-
return String(r + 1);
|
|
987
|
-
// 01, 02, ..., 12
|
|
988
|
-
case "LL":
|
|
989
|
-
return Y(r + 1, 2);
|
|
990
|
-
// 1st, 2nd, ..., 12th
|
|
991
|
-
case "Lo":
|
|
992
|
-
return n.ordinalNumber(r + 1, { unit: "month" });
|
|
993
|
-
// Jan, Feb, ..., Dec
|
|
994
|
-
case "LLL":
|
|
995
|
-
return n.month(r, {
|
|
996
|
-
width: "abbreviated",
|
|
997
|
-
context: "standalone"
|
|
998
|
-
});
|
|
999
|
-
// J, F, ..., D
|
|
1000
|
-
case "LLLLL":
|
|
1001
|
-
return n.month(r, {
|
|
1002
|
-
width: "narrow",
|
|
1003
|
-
context: "standalone"
|
|
1004
|
-
});
|
|
1005
|
-
// January, February, ..., December
|
|
1006
|
-
case "LLLL":
|
|
1007
|
-
default:
|
|
1008
|
-
return n.month(r, { width: "wide", context: "standalone" });
|
|
1009
|
-
}
|
|
1010
|
-
},
|
|
1011
|
-
// Local week of year
|
|
1012
|
-
w: function(e, t, n, r) {
|
|
1013
|
-
const a = et(e, r);
|
|
1014
|
-
return t === "wo" ? n.ordinalNumber(a, { unit: "week" }) : Y(a, t.length);
|
|
1015
|
-
},
|
|
1016
|
-
// ISO week of year
|
|
1017
|
-
I: function(e, t, n) {
|
|
1018
|
-
const r = Le(e);
|
|
1019
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : Y(r, t.length);
|
|
1020
|
-
},
|
|
1021
|
-
// Day of the month
|
|
1022
|
-
d: function(e, t, n) {
|
|
1023
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : se.d(e, t);
|
|
1024
|
-
},
|
|
1025
|
-
// Day of year
|
|
1026
|
-
D: function(e, t, n) {
|
|
1027
|
-
const r = Er(e);
|
|
1028
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Y(r, t.length);
|
|
1029
|
-
},
|
|
1030
|
-
// Day of week
|
|
1031
|
-
E: function(e, t, n) {
|
|
1032
|
-
const r = e.getDay();
|
|
1033
|
-
switch (t) {
|
|
1034
|
-
// Tue
|
|
1035
|
-
case "E":
|
|
1036
|
-
case "EE":
|
|
1037
|
-
case "EEE":
|
|
1038
|
-
return n.day(r, {
|
|
1039
|
-
width: "abbreviated",
|
|
1040
|
-
context: "formatting"
|
|
1041
|
-
});
|
|
1042
|
-
// T
|
|
1043
|
-
case "EEEEE":
|
|
1044
|
-
return n.day(r, {
|
|
1045
|
-
width: "narrow",
|
|
1046
|
-
context: "formatting"
|
|
1047
|
-
});
|
|
1048
|
-
// Tu
|
|
1049
|
-
case "EEEEEE":
|
|
1050
|
-
return n.day(r, {
|
|
1051
|
-
width: "short",
|
|
1052
|
-
context: "formatting"
|
|
1053
|
-
});
|
|
1054
|
-
// Tuesday
|
|
1055
|
-
case "EEEE":
|
|
1056
|
-
default:
|
|
1057
|
-
return n.day(r, {
|
|
1058
|
-
width: "wide",
|
|
1059
|
-
context: "formatting"
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
},
|
|
1063
|
-
// Local day of week
|
|
1064
|
-
e: function(e, t, n, r) {
|
|
1065
|
-
const a = e.getDay(), s = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
1066
|
-
switch (t) {
|
|
1067
|
-
// Numerical value (Nth day of week with current locale or weekStartsOn)
|
|
1068
|
-
case "e":
|
|
1069
|
-
return String(s);
|
|
1070
|
-
// Padded numerical value
|
|
1071
|
-
case "ee":
|
|
1072
|
-
return Y(s, 2);
|
|
1073
|
-
// 1st, 2nd, ..., 7th
|
|
1074
|
-
case "eo":
|
|
1075
|
-
return n.ordinalNumber(s, { unit: "day" });
|
|
1076
|
-
case "eee":
|
|
1077
|
-
return n.day(a, {
|
|
1078
|
-
width: "abbreviated",
|
|
1079
|
-
context: "formatting"
|
|
1080
|
-
});
|
|
1081
|
-
// T
|
|
1082
|
-
case "eeeee":
|
|
1083
|
-
return n.day(a, {
|
|
1084
|
-
width: "narrow",
|
|
1085
|
-
context: "formatting"
|
|
1086
|
-
});
|
|
1087
|
-
// Tu
|
|
1088
|
-
case "eeeeee":
|
|
1089
|
-
return n.day(a, {
|
|
1090
|
-
width: "short",
|
|
1091
|
-
context: "formatting"
|
|
1092
|
-
});
|
|
1093
|
-
// Tuesday
|
|
1094
|
-
case "eeee":
|
|
1095
|
-
default:
|
|
1096
|
-
return n.day(a, {
|
|
1097
|
-
width: "wide",
|
|
1098
|
-
context: "formatting"
|
|
1099
|
-
});
|
|
1100
|
-
}
|
|
1101
|
-
},
|
|
1102
|
-
// Stand-alone local day of week
|
|
1103
|
-
c: function(e, t, n, r) {
|
|
1104
|
-
const a = e.getDay(), s = (a - r.weekStartsOn + 8) % 7 || 7;
|
|
1105
|
-
switch (t) {
|
|
1106
|
-
// Numerical value (same as in `e`)
|
|
1107
|
-
case "c":
|
|
1108
|
-
return String(s);
|
|
1109
|
-
// Padded numerical value
|
|
1110
|
-
case "cc":
|
|
1111
|
-
return Y(s, t.length);
|
|
1112
|
-
// 1st, 2nd, ..., 7th
|
|
1113
|
-
case "co":
|
|
1114
|
-
return n.ordinalNumber(s, { unit: "day" });
|
|
1115
|
-
case "ccc":
|
|
1116
|
-
return n.day(a, {
|
|
1117
|
-
width: "abbreviated",
|
|
1118
|
-
context: "standalone"
|
|
1119
|
-
});
|
|
1120
|
-
// T
|
|
1121
|
-
case "ccccc":
|
|
1122
|
-
return n.day(a, {
|
|
1123
|
-
width: "narrow",
|
|
1124
|
-
context: "standalone"
|
|
1125
|
-
});
|
|
1126
|
-
// Tu
|
|
1127
|
-
case "cccccc":
|
|
1128
|
-
return n.day(a, {
|
|
1129
|
-
width: "short",
|
|
1130
|
-
context: "standalone"
|
|
1131
|
-
});
|
|
1132
|
-
// Tuesday
|
|
1133
|
-
case "cccc":
|
|
1134
|
-
default:
|
|
1135
|
-
return n.day(a, {
|
|
1136
|
-
width: "wide",
|
|
1137
|
-
context: "standalone"
|
|
1138
|
-
});
|
|
1139
|
-
}
|
|
1140
|
-
},
|
|
1141
|
-
// ISO day of week
|
|
1142
|
-
i: function(e, t, n) {
|
|
1143
|
-
const r = e.getDay(), a = r === 0 ? 7 : r;
|
|
1144
|
-
switch (t) {
|
|
1145
|
-
// 2
|
|
1146
|
-
case "i":
|
|
1147
|
-
return String(a);
|
|
1148
|
-
// 02
|
|
1149
|
-
case "ii":
|
|
1150
|
-
return Y(a, t.length);
|
|
1151
|
-
// 2nd
|
|
1152
|
-
case "io":
|
|
1153
|
-
return n.ordinalNumber(a, { unit: "day" });
|
|
1154
|
-
// Tue
|
|
1155
|
-
case "iii":
|
|
1156
|
-
return n.day(r, {
|
|
1157
|
-
width: "abbreviated",
|
|
1158
|
-
context: "formatting"
|
|
1159
|
-
});
|
|
1160
|
-
// T
|
|
1161
|
-
case "iiiii":
|
|
1162
|
-
return n.day(r, {
|
|
1163
|
-
width: "narrow",
|
|
1164
|
-
context: "formatting"
|
|
1165
|
-
});
|
|
1166
|
-
// Tu
|
|
1167
|
-
case "iiiiii":
|
|
1168
|
-
return n.day(r, {
|
|
1169
|
-
width: "short",
|
|
1170
|
-
context: "formatting"
|
|
1171
|
-
});
|
|
1172
|
-
// Tuesday
|
|
1173
|
-
case "iiii":
|
|
1174
|
-
default:
|
|
1175
|
-
return n.day(r, {
|
|
1176
|
-
width: "wide",
|
|
1177
|
-
context: "formatting"
|
|
1178
|
-
});
|
|
1179
|
-
}
|
|
1180
|
-
},
|
|
1181
|
-
// AM or PM
|
|
1182
|
-
a: function(e, t, n) {
|
|
1183
|
-
const a = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
1184
|
-
switch (t) {
|
|
1185
|
-
case "a":
|
|
1186
|
-
case "aa":
|
|
1187
|
-
return n.dayPeriod(a, {
|
|
1188
|
-
width: "abbreviated",
|
|
1189
|
-
context: "formatting"
|
|
1190
|
-
});
|
|
1191
|
-
case "aaa":
|
|
1192
|
-
return n.dayPeriod(a, {
|
|
1193
|
-
width: "abbreviated",
|
|
1194
|
-
context: "formatting"
|
|
1195
|
-
}).toLowerCase();
|
|
1196
|
-
case "aaaaa":
|
|
1197
|
-
return n.dayPeriod(a, {
|
|
1198
|
-
width: "narrow",
|
|
1199
|
-
context: "formatting"
|
|
1200
|
-
});
|
|
1201
|
-
case "aaaa":
|
|
1202
|
-
default:
|
|
1203
|
-
return n.dayPeriod(a, {
|
|
1204
|
-
width: "wide",
|
|
1205
|
-
context: "formatting"
|
|
1206
|
-
});
|
|
1207
|
-
}
|
|
1208
|
-
},
|
|
1209
|
-
// AM, PM, midnight, noon
|
|
1210
|
-
b: function(e, t, n) {
|
|
1211
|
-
const r = e.getHours();
|
|
1212
|
-
let a;
|
|
1213
|
-
switch (r === 12 ? a = ce.noon : r === 0 ? a = ce.midnight : a = r / 12 >= 1 ? "pm" : "am", t) {
|
|
1214
|
-
case "b":
|
|
1215
|
-
case "bb":
|
|
1216
|
-
return n.dayPeriod(a, {
|
|
1217
|
-
width: "abbreviated",
|
|
1218
|
-
context: "formatting"
|
|
1219
|
-
});
|
|
1220
|
-
case "bbb":
|
|
1221
|
-
return n.dayPeriod(a, {
|
|
1222
|
-
width: "abbreviated",
|
|
1223
|
-
context: "formatting"
|
|
1224
|
-
}).toLowerCase();
|
|
1225
|
-
case "bbbbb":
|
|
1226
|
-
return n.dayPeriod(a, {
|
|
1227
|
-
width: "narrow",
|
|
1228
|
-
context: "formatting"
|
|
1229
|
-
});
|
|
1230
|
-
case "bbbb":
|
|
1231
|
-
default:
|
|
1232
|
-
return n.dayPeriod(a, {
|
|
1233
|
-
width: "wide",
|
|
1234
|
-
context: "formatting"
|
|
1235
|
-
});
|
|
1236
|
-
}
|
|
1237
|
-
},
|
|
1238
|
-
// in the morning, in the afternoon, in the evening, at night
|
|
1239
|
-
B: function(e, t, n) {
|
|
1240
|
-
const r = e.getHours();
|
|
1241
|
-
let a;
|
|
1242
|
-
switch (r >= 17 ? a = ce.evening : r >= 12 ? a = ce.afternoon : r >= 4 ? a = ce.morning : a = ce.night, t) {
|
|
1243
|
-
case "B":
|
|
1244
|
-
case "BB":
|
|
1245
|
-
case "BBB":
|
|
1246
|
-
return n.dayPeriod(a, {
|
|
1247
|
-
width: "abbreviated",
|
|
1248
|
-
context: "formatting"
|
|
1249
|
-
});
|
|
1250
|
-
case "BBBBB":
|
|
1251
|
-
return n.dayPeriod(a, {
|
|
1252
|
-
width: "narrow",
|
|
1253
|
-
context: "formatting"
|
|
1254
|
-
});
|
|
1255
|
-
case "BBBB":
|
|
1256
|
-
default:
|
|
1257
|
-
return n.dayPeriod(a, {
|
|
1258
|
-
width: "wide",
|
|
1259
|
-
context: "formatting"
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
},
|
|
1263
|
-
// Hour [1-12]
|
|
1264
|
-
h: function(e, t, n) {
|
|
1265
|
-
if (t === "ho") {
|
|
1266
|
-
let r = e.getHours() % 12;
|
|
1267
|
-
return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
|
|
1268
|
-
}
|
|
1269
|
-
return se.h(e, t);
|
|
1270
|
-
},
|
|
1271
|
-
// Hour [0-23]
|
|
1272
|
-
H: function(e, t, n) {
|
|
1273
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : se.H(e, t);
|
|
1274
|
-
},
|
|
1275
|
-
// Hour [0-11]
|
|
1276
|
-
K: function(e, t, n) {
|
|
1277
|
-
const r = e.getHours() % 12;
|
|
1278
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : Y(r, t.length);
|
|
1279
|
-
},
|
|
1280
|
-
// Hour [1-24]
|
|
1281
|
-
k: function(e, t, n) {
|
|
1282
|
-
let r = e.getHours();
|
|
1283
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : Y(r, t.length);
|
|
1284
|
-
},
|
|
1285
|
-
// Minute
|
|
1286
|
-
m: function(e, t, n) {
|
|
1287
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : se.m(e, t);
|
|
1288
|
-
},
|
|
1289
|
-
// Second
|
|
1290
|
-
s: function(e, t, n) {
|
|
1291
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : se.s(e, t);
|
|
1292
|
-
},
|
|
1293
|
-
// Fraction of second
|
|
1294
|
-
S: function(e, t) {
|
|
1295
|
-
return se.S(e, t);
|
|
1296
|
-
},
|
|
1297
|
-
// Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
|
|
1298
|
-
X: function(e, t, n) {
|
|
1299
|
-
const r = e.getTimezoneOffset();
|
|
1300
|
-
if (r === 0)
|
|
1301
|
-
return "Z";
|
|
1302
|
-
switch (t) {
|
|
1303
|
-
// Hours and optional minutes
|
|
1304
|
-
case "X":
|
|
1305
|
-
return vt(r);
|
|
1306
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
1307
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1308
|
-
// so this token always has the same output as `XX`
|
|
1309
|
-
case "XXXX":
|
|
1310
|
-
case "XX":
|
|
1311
|
-
return oe(r);
|
|
1312
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
1313
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1314
|
-
// so this token always has the same output as `XXX`
|
|
1315
|
-
case "XXXXX":
|
|
1316
|
-
case "XXX":
|
|
1317
|
-
// Hours and minutes with `:` delimiter
|
|
1318
|
-
default:
|
|
1319
|
-
return oe(r, ":");
|
|
1320
|
-
}
|
|
1321
|
-
},
|
|
1322
|
-
// Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
|
|
1323
|
-
x: function(e, t, n) {
|
|
1324
|
-
const r = e.getTimezoneOffset();
|
|
1325
|
-
switch (t) {
|
|
1326
|
-
// Hours and optional minutes
|
|
1327
|
-
case "x":
|
|
1328
|
-
return vt(r);
|
|
1329
|
-
// Hours, minutes and optional seconds without `:` delimiter
|
|
1330
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1331
|
-
// so this token always has the same output as `xx`
|
|
1332
|
-
case "xxxx":
|
|
1333
|
-
case "xx":
|
|
1334
|
-
return oe(r);
|
|
1335
|
-
// Hours, minutes and optional seconds with `:` delimiter
|
|
1336
|
-
// Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
|
|
1337
|
-
// so this token always has the same output as `xxx`
|
|
1338
|
-
case "xxxxx":
|
|
1339
|
-
case "xxx":
|
|
1340
|
-
// Hours and minutes with `:` delimiter
|
|
1341
|
-
default:
|
|
1342
|
-
return oe(r, ":");
|
|
1343
|
-
}
|
|
1344
|
-
},
|
|
1345
|
-
// Timezone (GMT)
|
|
1346
|
-
O: function(e, t, n) {
|
|
1347
|
-
const r = e.getTimezoneOffset();
|
|
1348
|
-
switch (t) {
|
|
1349
|
-
// Short
|
|
1350
|
-
case "O":
|
|
1351
|
-
case "OO":
|
|
1352
|
-
case "OOO":
|
|
1353
|
-
return "GMT" + bt(r, ":");
|
|
1354
|
-
// Long
|
|
1355
|
-
case "OOOO":
|
|
1356
|
-
default:
|
|
1357
|
-
return "GMT" + oe(r, ":");
|
|
1358
|
-
}
|
|
1359
|
-
},
|
|
1360
|
-
// Timezone (specific non-location)
|
|
1361
|
-
z: function(e, t, n) {
|
|
1362
|
-
const r = e.getTimezoneOffset();
|
|
1363
|
-
switch (t) {
|
|
1364
|
-
// Short
|
|
1365
|
-
case "z":
|
|
1366
|
-
case "zz":
|
|
1367
|
-
case "zzz":
|
|
1368
|
-
return "GMT" + bt(r, ":");
|
|
1369
|
-
// Long
|
|
1370
|
-
case "zzzz":
|
|
1371
|
-
default:
|
|
1372
|
-
return "GMT" + oe(r, ":");
|
|
1373
|
-
}
|
|
1374
|
-
},
|
|
1375
|
-
// Seconds timestamp
|
|
1376
|
-
t: function(e, t, n) {
|
|
1377
|
-
const r = Math.trunc(+e / 1e3);
|
|
1378
|
-
return Y(r, t.length);
|
|
1379
|
-
},
|
|
1380
|
-
// Milliseconds timestamp
|
|
1381
|
-
T: function(e, t, n) {
|
|
1382
|
-
return Y(+e, t.length);
|
|
1383
|
-
}
|
|
1384
|
-
};
|
|
1385
|
-
function bt(e, t = "") {
|
|
1386
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Math.trunc(r / 60), s = r % 60;
|
|
1387
|
-
return s === 0 ? n + String(a) : n + String(a) + t + Y(s, 2);
|
|
1388
|
-
}
|
|
1389
|
-
function vt(e, t) {
|
|
1390
|
-
return e % 60 === 0 ? (e > 0 ? "-" : "+") + Y(Math.abs(e) / 60, 2) : oe(e, t);
|
|
1391
|
-
}
|
|
1392
|
-
function oe(e, t = "") {
|
|
1393
|
-
const n = e > 0 ? "-" : "+", r = Math.abs(e), a = Y(Math.trunc(r / 60), 2), s = Y(r % 60, 2);
|
|
1394
|
-
return n + a + t + s;
|
|
1395
|
-
}
|
|
1396
|
-
const Mt = (e, t) => {
|
|
1397
|
-
switch (e) {
|
|
1398
|
-
case "P":
|
|
1399
|
-
return t.date({ width: "short" });
|
|
1400
|
-
case "PP":
|
|
1401
|
-
return t.date({ width: "medium" });
|
|
1402
|
-
case "PPP":
|
|
1403
|
-
return t.date({ width: "long" });
|
|
1404
|
-
case "PPPP":
|
|
1405
|
-
default:
|
|
1406
|
-
return t.date({ width: "full" });
|
|
1407
|
-
}
|
|
1408
|
-
}, zt = (e, t) => {
|
|
1409
|
-
switch (e) {
|
|
1410
|
-
case "p":
|
|
1411
|
-
return t.time({ width: "short" });
|
|
1412
|
-
case "pp":
|
|
1413
|
-
return t.time({ width: "medium" });
|
|
1414
|
-
case "ppp":
|
|
1415
|
-
return t.time({ width: "long" });
|
|
1416
|
-
case "pppp":
|
|
1417
|
-
default:
|
|
1418
|
-
return t.time({ width: "full" });
|
|
1419
|
-
}
|
|
1420
|
-
}, Br = (e, t) => {
|
|
1421
|
-
const n = e.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
|
|
1422
|
-
if (!a)
|
|
1423
|
-
return Mt(e, t);
|
|
1424
|
-
let s;
|
|
1425
|
-
switch (r) {
|
|
1426
|
-
case "P":
|
|
1427
|
-
s = t.dateTime({ width: "short" });
|
|
1428
|
-
break;
|
|
1429
|
-
case "PP":
|
|
1430
|
-
s = t.dateTime({ width: "medium" });
|
|
1431
|
-
break;
|
|
1432
|
-
case "PPP":
|
|
1433
|
-
s = t.dateTime({ width: "long" });
|
|
1434
|
-
break;
|
|
1435
|
-
case "PPPP":
|
|
1436
|
-
default:
|
|
1437
|
-
s = t.dateTime({ width: "full" });
|
|
1438
|
-
break;
|
|
1439
|
-
}
|
|
1440
|
-
return s.replace("{{date}}", Mt(r, t)).replace("{{time}}", zt(a, t));
|
|
1441
|
-
}, Ir = {
|
|
1442
|
-
p: zt,
|
|
1443
|
-
P: Br
|
|
1444
|
-
}, Hr = /^D+$/, zr = /^Y+$/, Ar = ["D", "DD", "YY", "YYYY"];
|
|
1445
|
-
function jr(e) {
|
|
1446
|
-
return Hr.test(e);
|
|
1447
|
-
}
|
|
1448
|
-
function qr(e) {
|
|
1449
|
-
return zr.test(e);
|
|
1450
|
-
}
|
|
1451
|
-
function $r(e, t, n) {
|
|
1452
|
-
const r = Gr(e, t, n);
|
|
1453
|
-
if (console.warn(r), Ar.includes(e)) throw new RangeError(r);
|
|
1454
|
-
}
|
|
1455
|
-
function Gr(e, t, n) {
|
|
1456
|
-
const r = e[0] === "Y" ? "years" : "days of the month";
|
|
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`;
|
|
1458
|
-
}
|
|
1459
|
-
const Rr = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Vr = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Ur = /^'([^]*?)'?$/, Qr = /''/g, Xr = /[a-zA-Z]/;
|
|
1460
|
-
function ve(e, t, n) {
|
|
1461
|
-
var c, f, h, g, D, p, k, x;
|
|
1462
|
-
const r = ke(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? ie, s = (n == null ? void 0 : n.firstWeekContainsDate) ?? ((f = (c = n == null ? void 0 : n.locale) == null ? void 0 : c.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 ?? ((x = (k = r.locale) == null ? void 0 : k.options) == null ? void 0 : x.weekStartsOn) ?? 0, i = P(e, n == null ? void 0 : n.in);
|
|
1463
|
-
if (!Qn(i))
|
|
1464
|
-
throw new RangeError("Invalid time value");
|
|
1465
|
-
let d = t.match(Vr).map((v) => {
|
|
1466
|
-
const b = v[0];
|
|
1467
|
-
if (b === "p" || b === "P") {
|
|
1468
|
-
const W = Ir[b];
|
|
1469
|
-
return W(v, a.formatLong);
|
|
1470
|
-
}
|
|
1471
|
-
return v;
|
|
1472
|
-
}).join("").match(Rr).map((v) => {
|
|
1473
|
-
if (v === "''")
|
|
1474
|
-
return { isToken: !1, value: "'" };
|
|
1475
|
-
const b = v[0];
|
|
1476
|
-
if (b === "'")
|
|
1477
|
-
return { isToken: !1, value: Kr(v) };
|
|
1478
|
-
if (gt[b])
|
|
1479
|
-
return { isToken: !0, value: v };
|
|
1480
|
-
if (b.match(Xr))
|
|
1481
|
-
throw new RangeError(
|
|
1482
|
-
"Format string contains an unescaped latin alphabet character `" + b + "`"
|
|
1483
|
-
);
|
|
1484
|
-
return { isToken: !1, value: v };
|
|
1485
|
-
});
|
|
1486
|
-
a.localize.preprocessor && (d = a.localize.preprocessor(i, d));
|
|
1487
|
-
const u = {
|
|
1488
|
-
firstWeekContainsDate: s,
|
|
1489
|
-
weekStartsOn: o,
|
|
1490
|
-
locale: a
|
|
1491
|
-
};
|
|
1492
|
-
return d.map((v) => {
|
|
1493
|
-
if (!v.isToken) return v.value;
|
|
1494
|
-
const b = v.value;
|
|
1495
|
-
(!(n != null && n.useAdditionalWeekYearTokens) && qr(b) || !(n != null && n.useAdditionalDayOfYearTokens) && jr(b)) && $r(b, t, String(e));
|
|
1496
|
-
const W = gt[b[0]];
|
|
1497
|
-
return W(i, b, a.localize, u);
|
|
1498
|
-
}).join("");
|
|
1499
|
-
}
|
|
1500
|
-
function Kr(e) {
|
|
1501
|
-
const t = e.match(Ur);
|
|
1502
|
-
return t ? t[1].replace(Qr, "'") : e;
|
|
1503
|
-
}
|
|
1504
|
-
function Jr(e, t) {
|
|
1505
|
-
const n = P(e, t == null ? void 0 : t.in), r = n.getFullYear(), a = n.getMonth(), s = I(n, 0);
|
|
1506
|
-
return s.setFullYear(r, a + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
|
|
1507
|
-
}
|
|
1508
|
-
function Zr(e, t) {
|
|
1509
|
-
return P(e, t == null ? void 0 : t.in).getMonth();
|
|
1510
|
-
}
|
|
1511
|
-
function Lr(e, t) {
|
|
1512
|
-
return P(e, t == null ? void 0 : t.in).getFullYear();
|
|
1513
|
-
}
|
|
1514
|
-
function ea(e, t) {
|
|
1515
|
-
return +P(e) > +P(t);
|
|
1516
|
-
}
|
|
1517
|
-
function ta(e, t) {
|
|
1518
|
-
return +P(e) < +P(t);
|
|
1519
|
-
}
|
|
1520
|
-
function na(e, t, n) {
|
|
1521
|
-
const [r, a] = we(
|
|
1522
|
-
n == null ? void 0 : n.in,
|
|
1523
|
-
e,
|
|
1524
|
-
t
|
|
1525
|
-
);
|
|
1526
|
-
return r.getFullYear() === a.getFullYear() && r.getMonth() === a.getMonth();
|
|
1527
|
-
}
|
|
1528
|
-
function ra(e, t, n) {
|
|
1529
|
-
const [r, a] = we(
|
|
1530
|
-
n == null ? void 0 : n.in,
|
|
1531
|
-
e,
|
|
1532
|
-
t
|
|
1533
|
-
);
|
|
1534
|
-
return r.getFullYear() === a.getFullYear();
|
|
1535
|
-
}
|
|
1536
|
-
function aa(e, t, n) {
|
|
1537
|
-
const r = P(e, n == null ? void 0 : n.in), a = r.getFullYear(), s = r.getDate(), o = I(e, 0);
|
|
1538
|
-
o.setFullYear(a, t, 15), o.setHours(0, 0, 0, 0);
|
|
1539
|
-
const i = Jr(o);
|
|
1540
|
-
return r.setMonth(t, Math.min(s, i)), r;
|
|
1541
|
-
}
|
|
1542
|
-
function sa(e, t, n) {
|
|
1543
|
-
const r = P(e, n == null ? void 0 : n.in);
|
|
1544
|
-
return isNaN(+r) ? I(e, NaN) : (r.setFullYear(t), r);
|
|
1545
|
-
}
|
|
1546
|
-
const wt = 5, oa = 4;
|
|
1547
|
-
function ia(e, t) {
|
|
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);
|
|
1549
|
-
return t.getMonth(e) === t.getMonth(s) ? wt : oa;
|
|
1550
|
-
}
|
|
1551
|
-
function At(e, t) {
|
|
1552
|
-
const n = t.startOfMonth(e), r = n.getDay();
|
|
1553
|
-
return r === 1 ? n : r === 0 ? t.addDays(n, -6) : t.addDays(n, -1 * (r - 1));
|
|
1554
|
-
}
|
|
1555
|
-
function da(e, t) {
|
|
1556
|
-
const n = At(e, t), r = ia(e, t);
|
|
1557
|
-
return t.addDays(n, r * 7 - 1);
|
|
1558
|
-
}
|
|
1559
|
-
const jt = {
|
|
1560
|
-
...ie,
|
|
1561
|
-
labels: {
|
|
1562
|
-
labelDayButton: (e, t, n, r) => {
|
|
1563
|
-
let a;
|
|
1564
|
-
r && typeof r.format == "function" ? a = r.format.bind(r) : a = (o, i) => ve(o, i, { locale: ie, ...n });
|
|
1565
|
-
let s = a(e, "PPPP");
|
|
1566
|
-
return t.today && (s = `Today, ${s}`), t.selected && (s = `${s}, selected`), s;
|
|
1567
|
-
},
|
|
1568
|
-
labelMonthDropdown: "Choose the Month",
|
|
1569
|
-
labelNext: "Go to the Next Month",
|
|
1570
|
-
labelPrevious: "Go to the Previous Month",
|
|
1571
|
-
labelWeekNumber: (e) => `Week ${e}`,
|
|
1572
|
-
labelYearDropdown: "Choose the Year",
|
|
1573
|
-
labelGrid: (e, t, n) => {
|
|
1574
|
-
let r;
|
|
1575
|
-
return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (a, s) => ve(a, s, { locale: ie, ...t }), r(e, "LLLL yyyy");
|
|
1576
|
-
},
|
|
1577
|
-
labelGridcell: (e, t, n, r) => {
|
|
1578
|
-
let a;
|
|
1579
|
-
r && typeof r.format == "function" ? a = r.format.bind(r) : a = (o, i) => ve(o, i, { locale: ie, ...n });
|
|
1580
|
-
let s = a(e, "PPPP");
|
|
1581
|
-
return t != null && t.today && (s = `Today, ${s}`), s;
|
|
1582
|
-
},
|
|
1583
|
-
labelNav: "Navigation bar",
|
|
1584
|
-
labelWeekNumberHeader: "Week Number",
|
|
1585
|
-
labelWeekday: (e, t, n) => {
|
|
1586
|
-
let r;
|
|
1587
|
-
return n && typeof n.format == "function" ? r = n.format.bind(n) : r = (a, s) => ve(a, s, { locale: ie, ...t }), r(e, "cccc");
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
};
|
|
1591
|
-
class q {
|
|
1592
|
-
/**
|
|
1593
|
-
* Creates an instance of `DateLib`.
|
|
1594
|
-
*
|
|
1595
|
-
* @param options Configuration options for the date library.
|
|
1596
|
-
* @param overrides Custom overrides for the date library functions.
|
|
1597
|
-
*/
|
|
1598
|
-
constructor(t, n) {
|
|
1599
|
-
this.Date = Date, this.today = () => {
|
|
1600
|
-
var r;
|
|
1601
|
-
return (r = this.overrides) != null && r.today ? this.overrides.today() : this.options.timeZone ? H.tz(this.options.timeZone) : new this.Date();
|
|
1602
|
-
}, this.newDate = (r, a, s) => {
|
|
1603
|
-
var o;
|
|
1604
|
-
return (o = this.overrides) != null && o.newDate ? this.overrides.newDate(r, a, s) : this.options.timeZone ? new H(r, a, s, this.options.timeZone) : new Date(r, a, s);
|
|
1605
|
-
}, this.addDays = (r, a) => {
|
|
1606
|
-
var s;
|
|
1607
|
-
return (s = this.overrides) != null && s.addDays ? this.overrides.addDays(r, a) : _t(r, a);
|
|
1608
|
-
}, this.addMonths = (r, a) => {
|
|
1609
|
-
var s;
|
|
1610
|
-
return (s = this.overrides) != null && s.addMonths ? this.overrides.addMonths(r, a) : Yt(r, a);
|
|
1611
|
-
}, this.addWeeks = (r, a) => {
|
|
1612
|
-
var s;
|
|
1613
|
-
return (s = this.overrides) != null && s.addWeeks ? this.overrides.addWeeks(r, a) : Gn(r, a);
|
|
1614
|
-
}, this.addYears = (r, a) => {
|
|
1615
|
-
var s;
|
|
1616
|
-
return (s = this.overrides) != null && s.addYears ? this.overrides.addYears(r, a) : Rn(r, a);
|
|
1617
|
-
}, this.differenceInCalendarDays = (r, a) => {
|
|
1618
|
-
var s;
|
|
1619
|
-
return (s = this.overrides) != null && s.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(r, a) : Ze(r, a);
|
|
1620
|
-
}, this.differenceInCalendarMonths = (r, a) => {
|
|
1621
|
-
var s;
|
|
1622
|
-
return (s = this.overrides) != null && s.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(r, a) : Et(r, a);
|
|
1623
|
-
}, this.eachMonthOfInterval = (r) => {
|
|
1624
|
-
var a;
|
|
1625
|
-
return (a = this.overrides) != null && a.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(r) : Kn(r);
|
|
1626
|
-
}, this.eachYearOfInterval = (r) => {
|
|
1627
|
-
var i;
|
|
1628
|
-
const a = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(r) : Ln(r), s = new Set(a.map((d) => this.getYear(d)));
|
|
1629
|
-
if (s.size === a.length)
|
|
1630
|
-
return a;
|
|
1631
|
-
const o = [];
|
|
1632
|
-
return s.forEach((d) => {
|
|
1633
|
-
o.push(new Date(d, 0, 1));
|
|
1634
|
-
}), o;
|
|
1635
|
-
}, this.endOfBroadcastWeek = (r) => {
|
|
1636
|
-
var a;
|
|
1637
|
-
return (a = this.overrides) != null && a.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(r) : da(r, this);
|
|
1638
|
-
}, this.endOfISOWeek = (r) => {
|
|
1639
|
-
var a;
|
|
1640
|
-
return (a = this.overrides) != null && a.endOfISOWeek ? this.overrides.endOfISOWeek(r) : er(r);
|
|
1641
|
-
}, this.endOfMonth = (r) => {
|
|
1642
|
-
var a;
|
|
1643
|
-
return (a = this.overrides) != null && a.endOfMonth ? this.overrides.endOfMonth(r) : Xn(r);
|
|
1644
|
-
}, this.endOfWeek = (r, a) => {
|
|
1645
|
-
var s;
|
|
1646
|
-
return (s = this.overrides) != null && s.endOfWeek ? this.overrides.endOfWeek(r, a) : It(r, this.options);
|
|
1647
|
-
}, this.endOfYear = (r) => {
|
|
1648
|
-
var a;
|
|
1649
|
-
return (a = this.overrides) != null && a.endOfYear ? this.overrides.endOfYear(r) : Zn(r);
|
|
1650
|
-
}, this.format = (r, a, s) => {
|
|
1651
|
-
var i;
|
|
1652
|
-
const o = (i = this.overrides) != null && i.format ? this.overrides.format(r, a, this.options) : ve(r, a, this.options);
|
|
1653
|
-
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(o) : o;
|
|
1654
|
-
}, this.getISOWeek = (r) => {
|
|
1655
|
-
var a;
|
|
1656
|
-
return (a = this.overrides) != null && a.getISOWeek ? this.overrides.getISOWeek(r) : Le(r);
|
|
1657
|
-
}, this.getMonth = (r, a) => {
|
|
1658
|
-
var s;
|
|
1659
|
-
return (s = this.overrides) != null && s.getMonth ? this.overrides.getMonth(r, this.options) : Zr(r, this.options);
|
|
1660
|
-
}, this.getYear = (r, a) => {
|
|
1661
|
-
var s;
|
|
1662
|
-
return (s = this.overrides) != null && s.getYear ? this.overrides.getYear(r, this.options) : Lr(r, this.options);
|
|
1663
|
-
}, this.getWeek = (r, a) => {
|
|
1664
|
-
var s;
|
|
1665
|
-
return (s = this.overrides) != null && s.getWeek ? this.overrides.getWeek(r, this.options) : et(r, this.options);
|
|
1666
|
-
}, this.isAfter = (r, a) => {
|
|
1667
|
-
var s;
|
|
1668
|
-
return (s = this.overrides) != null && s.isAfter ? this.overrides.isAfter(r, a) : ea(r, a);
|
|
1669
|
-
}, this.isBefore = (r, a) => {
|
|
1670
|
-
var s;
|
|
1671
|
-
return (s = this.overrides) != null && s.isBefore ? this.overrides.isBefore(r, a) : ta(r, a);
|
|
1672
|
-
}, this.isDate = (r) => {
|
|
1673
|
-
var a;
|
|
1674
|
-
return (a = this.overrides) != null && a.isDate ? this.overrides.isDate(r) : Pt(r);
|
|
1675
|
-
}, this.isSameDay = (r, a) => {
|
|
1676
|
-
var s;
|
|
1677
|
-
return (s = this.overrides) != null && s.isSameDay ? this.overrides.isSameDay(r, a) : Bn(r, a);
|
|
1678
|
-
}, this.isSameMonth = (r, a) => {
|
|
1679
|
-
var s;
|
|
1680
|
-
return (s = this.overrides) != null && s.isSameMonth ? this.overrides.isSameMonth(r, a) : na(r, a);
|
|
1681
|
-
}, this.isSameYear = (r, a) => {
|
|
1682
|
-
var s;
|
|
1683
|
-
return (s = this.overrides) != null && s.isSameYear ? this.overrides.isSameYear(r, a) : ra(r, a);
|
|
1684
|
-
}, this.max = (r) => {
|
|
1685
|
-
var a;
|
|
1686
|
-
return (a = this.overrides) != null && a.max ? this.overrides.max(r) : Vn(r);
|
|
1687
|
-
}, this.min = (r) => {
|
|
1688
|
-
var a;
|
|
1689
|
-
return (a = this.overrides) != null && a.min ? this.overrides.min(r) : Un(r);
|
|
1690
|
-
}, this.setMonth = (r, a) => {
|
|
1691
|
-
var s;
|
|
1692
|
-
return (s = this.overrides) != null && s.setMonth ? this.overrides.setMonth(r, a) : aa(r, a);
|
|
1693
|
-
}, this.setYear = (r, a) => {
|
|
1694
|
-
var s;
|
|
1695
|
-
return (s = this.overrides) != null && s.setYear ? this.overrides.setYear(r, a) : sa(r, a);
|
|
1696
|
-
}, this.startOfBroadcastWeek = (r, a) => {
|
|
1697
|
-
var s;
|
|
1698
|
-
return (s = this.overrides) != null && s.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(r, this) : At(r, this);
|
|
1699
|
-
}, this.startOfDay = (r) => {
|
|
1700
|
-
var a;
|
|
1701
|
-
return (a = this.overrides) != null && a.startOfDay ? this.overrides.startOfDay(r) : Ke(r);
|
|
1702
|
-
}, this.startOfISOWeek = (r) => {
|
|
1703
|
-
var a;
|
|
1704
|
-
return (a = this.overrides) != null && a.startOfISOWeek ? this.overrides.startOfISOWeek(r) : Me(r);
|
|
1705
|
-
}, this.startOfMonth = (r) => {
|
|
1706
|
-
var a;
|
|
1707
|
-
return (a = this.overrides) != null && a.startOfMonth ? this.overrides.startOfMonth(r) : Jn(r);
|
|
1708
|
-
}, this.startOfWeek = (r, a) => {
|
|
1709
|
-
var s;
|
|
1710
|
-
return (s = this.overrides) != null && s.startOfWeek ? this.overrides.startOfWeek(r, this.options) : le(r, this.options);
|
|
1711
|
-
}, this.startOfYear = (r) => {
|
|
1712
|
-
var a;
|
|
1713
|
-
return (a = this.overrides) != null && a.startOfYear ? this.overrides.startOfYear(r) : Bt(r);
|
|
1714
|
-
}, this.options = { locale: jt, ...t }, this.overrides = n;
|
|
1715
|
-
}
|
|
1716
|
-
/**
|
|
1717
|
-
* Generates a mapping of Arabic digits (0-9) to the target numbering system
|
|
1718
|
-
* digits.
|
|
1719
|
-
*
|
|
1720
|
-
* @since 9.5.0
|
|
1721
|
-
* @returns A record mapping Arabic digits to the target numerals.
|
|
1722
|
-
*/
|
|
1723
|
-
getDigitMap() {
|
|
1724
|
-
const { numerals: t = "latn" } = this.options, n = new Intl.NumberFormat("en-US", {
|
|
1725
|
-
numberingSystem: t
|
|
1726
|
-
}), r = {};
|
|
1727
|
-
for (let a = 0; a < 10; a++)
|
|
1728
|
-
r[a.toString()] = n.format(a);
|
|
1729
|
-
return r;
|
|
1730
|
-
}
|
|
1731
|
-
/**
|
|
1732
|
-
* Replaces Arabic digits in a string with the target numbering system digits.
|
|
1733
|
-
*
|
|
1734
|
-
* @since 9.5.0
|
|
1735
|
-
* @param input The string containing Arabic digits.
|
|
1736
|
-
* @returns The string with digits replaced.
|
|
1737
|
-
*/
|
|
1738
|
-
replaceDigits(t) {
|
|
1739
|
-
const n = this.getDigitMap();
|
|
1740
|
-
return t.replace(/\d/g, (r) => n[r] || r);
|
|
1741
|
-
}
|
|
1742
|
-
/**
|
|
1743
|
-
* Formats a number using the configured numbering system.
|
|
1744
|
-
*
|
|
1745
|
-
* @since 9.5.0
|
|
1746
|
-
* @param value The number to format.
|
|
1747
|
-
* @returns The formatted number as a string.
|
|
1748
|
-
*/
|
|
1749
|
-
formatNumber(t) {
|
|
1750
|
-
return this.replaceDigits(t.toString());
|
|
1751
|
-
}
|
|
1752
|
-
/**
|
|
1753
|
-
* Returns the preferred ordering for month and year labels for the current
|
|
1754
|
-
* locale.
|
|
1755
|
-
*/
|
|
1756
|
-
getMonthYearOrder() {
|
|
1757
|
-
var n;
|
|
1758
|
-
const t = (n = this.options.locale) == null ? void 0 : n.code;
|
|
1759
|
-
return t && q.yearFirstLocales.has(t) ? "year-first" : "month-first";
|
|
1760
|
-
}
|
|
1761
|
-
/**
|
|
1762
|
-
* Formats the month/year pair respecting locale conventions.
|
|
1763
|
-
*
|
|
1764
|
-
* @since 9.11.0
|
|
1765
|
-
*/
|
|
1766
|
-
formatMonthYear(t) {
|
|
1767
|
-
const { locale: n, timeZone: r, numerals: a } = this.options, s = n == null ? void 0 : n.code;
|
|
1768
|
-
if (s && q.yearFirstLocales.has(s))
|
|
1769
|
-
try {
|
|
1770
|
-
return new Intl.DateTimeFormat(s, {
|
|
1771
|
-
month: "long",
|
|
1772
|
-
year: "numeric",
|
|
1773
|
-
timeZone: r,
|
|
1774
|
-
numberingSystem: a
|
|
1775
|
-
}).format(t);
|
|
1776
|
-
} catch {
|
|
1777
|
-
}
|
|
1778
|
-
const o = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
|
|
1779
|
-
return this.format(t, o);
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
|
-
q.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
1783
|
-
"eu",
|
|
1784
|
-
"hu",
|
|
1785
|
-
"ja",
|
|
1786
|
-
"ja-Hira",
|
|
1787
|
-
"ja-JP",
|
|
1788
|
-
"ko",
|
|
1789
|
-
"ko-KR",
|
|
1790
|
-
"lt",
|
|
1791
|
-
"lt-LT",
|
|
1792
|
-
"lv",
|
|
1793
|
-
"lv-LV",
|
|
1794
|
-
"mn",
|
|
1795
|
-
"mn-MN",
|
|
1796
|
-
"zh",
|
|
1797
|
-
"zh-CN",
|
|
1798
|
-
"zh-HK",
|
|
1799
|
-
"zh-TW"
|
|
1800
|
-
]);
|
|
1801
|
-
const Z = new q();
|
|
1802
|
-
class qt {
|
|
1803
|
-
constructor(t, n, r = Z) {
|
|
1804
|
-
this.date = t, this.displayMonth = n, this.outside = !!(n && !r.isSameMonth(t, n)), this.dateLib = r, this.isoDate = r.format(t, "yyyy-MM-dd"), this.displayMonthId = r.format(n, "yyyy-MM"), this.dateMonthId = r.format(t, "yyyy-MM");
|
|
1805
|
-
}
|
|
1806
|
-
/**
|
|
1807
|
-
* Checks if this day is equal to another `CalendarDay`, considering both the
|
|
1808
|
-
* date and the displayed month.
|
|
1809
|
-
*
|
|
1810
|
-
* @param day The `CalendarDay` to compare with.
|
|
1811
|
-
* @returns `true` if the days are equal, otherwise `false`.
|
|
1812
|
-
*/
|
|
1813
|
-
isEqualTo(t) {
|
|
1814
|
-
return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
|
|
1815
|
-
}
|
|
1816
|
-
}
|
|
1817
|
-
class ua {
|
|
1818
|
-
constructor(t, n) {
|
|
1819
|
-
this.date = t, this.weeks = n;
|
|
1820
|
-
}
|
|
1821
|
-
}
|
|
1822
|
-
class ca {
|
|
1823
|
-
constructor(t, n) {
|
|
1824
|
-
this.days = n, this.weekNumber = t;
|
|
1825
|
-
}
|
|
1826
|
-
}
|
|
1827
|
-
function fa(e) {
|
|
1828
|
-
return y.createElement("button", { ...e });
|
|
1829
|
-
}
|
|
1830
|
-
function la(e) {
|
|
1831
|
-
return y.createElement("span", { ...e });
|
|
1832
|
-
}
|
|
1833
|
-
function ha(e) {
|
|
1834
|
-
const { size: t = 24, orientation: n = "left", className: r } = e;
|
|
1835
|
-
return (
|
|
1836
|
-
// biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
|
|
1837
|
-
y.createElement(
|
|
1838
|
-
"svg",
|
|
1839
|
-
{ className: r, width: t, height: t, viewBox: "0 0 24 24" },
|
|
1840
|
-
n === "up" && y.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
|
|
1841
|
-
n === "down" && y.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
|
|
1842
|
-
n === "left" && y.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
|
|
1843
|
-
n === "right" && y.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
|
|
1844
|
-
)
|
|
1845
|
-
);
|
|
1846
|
-
}
|
|
1847
|
-
function ma(e) {
|
|
1848
|
-
const { day: t, modifiers: n, ...r } = e;
|
|
1849
|
-
return y.createElement("td", { ...r });
|
|
1850
|
-
}
|
|
1851
|
-
function ya(e) {
|
|
1852
|
-
const { day: t, modifiers: n, ...r } = e, a = y.useRef(null);
|
|
1853
|
-
return y.useEffect(() => {
|
|
1854
|
-
var s;
|
|
1855
|
-
n.focused && ((s = a.current) == null || s.focus());
|
|
1856
|
-
}, [n.focused]), y.createElement("button", { ref: a, ...r });
|
|
1857
|
-
}
|
|
1858
|
-
var m;
|
|
1859
|
-
(function(e) {
|
|
1860
|
-
e.Root = "root", e.Chevron = "chevron", e.Day = "day", e.DayButton = "day_button", e.CaptionLabel = "caption_label", e.Dropdowns = "dropdowns", e.Dropdown = "dropdown", e.DropdownRoot = "dropdown_root", e.Footer = "footer", e.MonthGrid = "month_grid", e.MonthCaption = "month_caption", e.MonthsDropdown = "months_dropdown", e.Month = "month", e.Months = "months", e.Nav = "nav", e.NextMonthButton = "button_next", e.PreviousMonthButton = "button_previous", e.Week = "week", e.Weeks = "weeks", e.Weekday = "weekday", e.Weekdays = "weekdays", e.WeekNumber = "week_number", e.WeekNumberHeader = "week_number_header", e.YearsDropdown = "years_dropdown";
|
|
1861
|
-
})(m || (m = {}));
|
|
1862
|
-
var T;
|
|
1863
|
-
(function(e) {
|
|
1864
|
-
e.disabled = "disabled", e.hidden = "hidden", e.outside = "outside", e.focused = "focused", e.today = "today";
|
|
1865
|
-
})(T || (T = {}));
|
|
1866
|
-
var z;
|
|
1867
|
-
(function(e) {
|
|
1868
|
-
e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
|
|
1869
|
-
})(z || (z = {}));
|
|
1870
|
-
var j;
|
|
1871
|
-
(function(e) {
|
|
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";
|
|
1873
|
-
})(j || (j = {}));
|
|
1874
|
-
function ga(e) {
|
|
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);
|
|
1876
|
-
return y.createElement(
|
|
1877
|
-
"span",
|
|
1878
|
-
{ "data-disabled": s.disabled, className: a[m.DropdownRoot] },
|
|
1879
|
-
y.createElement(r.Select, { className: o, ...s }, t == null ? void 0 : t.map(({ value: d, label: u, disabled: c }) => y.createElement(r.Option, { key: d, value: d, disabled: c }, u))),
|
|
1880
|
-
y.createElement(
|
|
1881
|
-
"span",
|
|
1882
|
-
{ className: a[m.CaptionLabel], "aria-hidden": !0 },
|
|
1883
|
-
i == null ? void 0 : i.label,
|
|
1884
|
-
y.createElement(r.Chevron, { orientation: "down", size: 18, className: a[m.Chevron] })
|
|
1885
|
-
)
|
|
1886
|
-
);
|
|
1887
|
-
}
|
|
1888
|
-
function ba(e) {
|
|
1889
|
-
return y.createElement("div", { ...e });
|
|
1890
|
-
}
|
|
1891
|
-
function va(e) {
|
|
1892
|
-
return y.createElement("div", { ...e });
|
|
1893
|
-
}
|
|
1894
|
-
function Ma(e) {
|
|
1895
|
-
const { calendarMonth: t, displayIndex: n, ...r } = e;
|
|
1896
|
-
return y.createElement("div", { ...r }, e.children);
|
|
1897
|
-
}
|
|
1898
|
-
function wa(e) {
|
|
1899
|
-
const { calendarMonth: t, displayIndex: n, ...r } = e;
|
|
1900
|
-
return y.createElement("div", { ...r });
|
|
1901
|
-
}
|
|
1902
|
-
function ka(e) {
|
|
1903
|
-
return y.createElement("table", { ...e });
|
|
1904
|
-
}
|
|
1905
|
-
function Da(e) {
|
|
1906
|
-
return y.createElement("div", { ...e });
|
|
1907
|
-
}
|
|
1908
|
-
const $t = Tn(void 0);
|
|
1909
|
-
function De() {
|
|
1910
|
-
const e = Pn($t);
|
|
1911
|
-
if (e === void 0)
|
|
1912
|
-
throw new Error("useDayPicker() must be used within a custom component.");
|
|
1913
|
-
return e;
|
|
1914
|
-
}
|
|
1915
|
-
function Oa(e) {
|
|
1916
|
-
const { components: t } = De();
|
|
1917
|
-
return y.createElement(t.Dropdown, { ...e });
|
|
1918
|
-
}
|
|
1919
|
-
function pa(e) {
|
|
1920
|
-
const { onPreviousClick: t, onNextClick: n, previousMonth: r, nextMonth: a, ...s } = e, { components: o, classNames: i, labels: { labelPrevious: d, labelNext: u } } = De(), c = R((h) => {
|
|
1921
|
-
a && (n == null || n(h));
|
|
1922
|
-
}, [a, n]), f = R((h) => {
|
|
1923
|
-
r && (t == null || t(h));
|
|
1924
|
-
}, [r, t]);
|
|
1925
|
-
return y.createElement(
|
|
1926
|
-
"nav",
|
|
1927
|
-
{ ...s },
|
|
1928
|
-
y.createElement(
|
|
1929
|
-
o.PreviousMonthButton,
|
|
1930
|
-
{ type: "button", className: i[m.PreviousMonthButton], tabIndex: r ? void 0 : -1, "aria-disabled": r ? void 0 : !0, "aria-label": d(r), onClick: f },
|
|
1931
|
-
y.createElement(o.Chevron, { disabled: r ? void 0 : !0, className: i[m.Chevron], orientation: "left" })
|
|
1932
|
-
),
|
|
1933
|
-
y.createElement(
|
|
1934
|
-
o.NextMonthButton,
|
|
1935
|
-
{ type: "button", className: i[m.NextMonthButton], tabIndex: a ? void 0 : -1, "aria-disabled": a ? void 0 : !0, "aria-label": u(a), onClick: c },
|
|
1936
|
-
y.createElement(o.Chevron, { disabled: a ? void 0 : !0, orientation: "right", className: i[m.Chevron] })
|
|
1937
|
-
)
|
|
1938
|
-
);
|
|
1939
|
-
}
|
|
1940
|
-
function Wa(e) {
|
|
1941
|
-
const { components: t } = De();
|
|
1942
|
-
return y.createElement(t.Button, { ...e });
|
|
1943
|
-
}
|
|
1944
|
-
function Sa(e) {
|
|
1945
|
-
return y.createElement("option", { ...e });
|
|
1946
|
-
}
|
|
1947
|
-
function xa(e) {
|
|
1948
|
-
const { components: t } = De();
|
|
1949
|
-
return y.createElement(t.Button, { ...e });
|
|
1950
|
-
}
|
|
1951
|
-
function Na(e) {
|
|
1952
|
-
const { rootRef: t, ...n } = e;
|
|
1953
|
-
return y.createElement("div", { ...n, ref: t });
|
|
1954
|
-
}
|
|
1955
|
-
function Ca(e) {
|
|
1956
|
-
return y.createElement("select", { ...e });
|
|
1957
|
-
}
|
|
1958
|
-
function _a(e) {
|
|
1959
|
-
const { week: t, ...n } = e;
|
|
1960
|
-
return y.createElement("tr", { ...n });
|
|
1961
|
-
}
|
|
1962
|
-
function Ya(e) {
|
|
1963
|
-
return y.createElement("th", { ...e });
|
|
1964
|
-
}
|
|
1965
|
-
function Ta(e) {
|
|
1966
|
-
return y.createElement(
|
|
1967
|
-
"thead",
|
|
1968
|
-
{ "aria-hidden": !0 },
|
|
1969
|
-
y.createElement("tr", { ...e })
|
|
1970
|
-
);
|
|
1971
|
-
}
|
|
1972
|
-
function Pa(e) {
|
|
1973
|
-
const { week: t, ...n } = e;
|
|
1974
|
-
return y.createElement("th", { ...n });
|
|
1975
|
-
}
|
|
1976
|
-
function Ea(e) {
|
|
1977
|
-
return y.createElement("th", { ...e });
|
|
1978
|
-
}
|
|
1979
|
-
function Fa(e) {
|
|
1980
|
-
return y.createElement("tbody", { ...e });
|
|
1981
|
-
}
|
|
1982
|
-
function Ba(e) {
|
|
1983
|
-
const { components: t } = De();
|
|
1984
|
-
return y.createElement(t.Dropdown, { ...e });
|
|
1985
|
-
}
|
|
1986
|
-
const Ia = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1987
|
-
__proto__: null,
|
|
1988
|
-
Button: fa,
|
|
1989
|
-
CaptionLabel: la,
|
|
1990
|
-
Chevron: ha,
|
|
1991
|
-
Day: ma,
|
|
1992
|
-
DayButton: ya,
|
|
1993
|
-
Dropdown: ga,
|
|
1994
|
-
DropdownNav: ba,
|
|
1995
|
-
Footer: va,
|
|
1996
|
-
Month: Ma,
|
|
1997
|
-
MonthCaption: wa,
|
|
1998
|
-
MonthGrid: ka,
|
|
1999
|
-
Months: Da,
|
|
2000
|
-
MonthsDropdown: Oa,
|
|
2001
|
-
Nav: pa,
|
|
2002
|
-
NextMonthButton: Wa,
|
|
2003
|
-
Option: Sa,
|
|
2004
|
-
PreviousMonthButton: xa,
|
|
2005
|
-
Root: Na,
|
|
2006
|
-
Select: Ca,
|
|
2007
|
-
Week: _a,
|
|
2008
|
-
WeekNumber: Pa,
|
|
2009
|
-
WeekNumberHeader: Ea,
|
|
2010
|
-
Weekday: Ya,
|
|
2011
|
-
Weekdays: Ta,
|
|
2012
|
-
Weeks: Fa,
|
|
2013
|
-
YearsDropdown: Ba
|
|
2014
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2015
|
-
function te(e, t, n = !1, r = Z) {
|
|
2016
|
-
let { from: a, to: s } = e;
|
|
2017
|
-
const { differenceInCalendarDays: o, isSameDay: i } = r;
|
|
2018
|
-
return a && s ? (o(s, a) < 0 && ([a, s] = [s, a]), o(t, a) >= (n ? 1 : 0) && o(s, t) >= (n ? 1 : 0)) : !n && s ? i(s, t) : !n && a ? i(a, t) : !1;
|
|
2019
|
-
}
|
|
2020
|
-
function tt(e) {
|
|
2021
|
-
return !!(e && typeof e == "object" && "before" in e && "after" in e);
|
|
2022
|
-
}
|
|
2023
|
-
function Ye(e) {
|
|
2024
|
-
return !!(e && typeof e == "object" && "from" in e);
|
|
2025
|
-
}
|
|
2026
|
-
function nt(e) {
|
|
2027
|
-
return !!(e && typeof e == "object" && "after" in e);
|
|
2028
|
-
}
|
|
2029
|
-
function rt(e) {
|
|
2030
|
-
return !!(e && typeof e == "object" && "before" in e);
|
|
2031
|
-
}
|
|
2032
|
-
function Gt(e) {
|
|
2033
|
-
return !!(e && typeof e == "object" && "dayOfWeek" in e);
|
|
2034
|
-
}
|
|
2035
|
-
function Rt(e, t) {
|
|
2036
|
-
return Array.isArray(e) && e.every(t.isDate);
|
|
2037
|
-
}
|
|
2038
|
-
function ne(e, t, n = Z) {
|
|
2039
|
-
const r = Array.isArray(t) ? t : [t], { isSameDay: a, differenceInCalendarDays: s, isAfter: o } = n;
|
|
2040
|
-
return r.some((i) => {
|
|
2041
|
-
if (typeof i == "boolean")
|
|
2042
|
-
return i;
|
|
2043
|
-
if (n.isDate(i))
|
|
2044
|
-
return a(e, i);
|
|
2045
|
-
if (Rt(i, n))
|
|
2046
|
-
return i.some((d) => a(e, d));
|
|
2047
|
-
if (Ye(i))
|
|
2048
|
-
return te(i, e, !1, n);
|
|
2049
|
-
if (Gt(i))
|
|
2050
|
-
return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
|
|
2051
|
-
if (tt(i)) {
|
|
2052
|
-
const d = s(i.before, e), u = s(i.after, e), c = d > 0, f = u < 0;
|
|
2053
|
-
return o(i.before, i.after) ? f && c : c || f;
|
|
2054
|
-
}
|
|
2055
|
-
return nt(i) ? s(e, i.after) > 0 : rt(i) ? s(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
|
|
2056
|
-
});
|
|
2057
|
-
}
|
|
2058
|
-
function Ha(e, t, n, r, a) {
|
|
2059
|
-
const { disabled: s, hidden: o, modifiers: i, showOutsideDays: d, broadcastCalendar: u, today: c = a.today() } = t, { isSameDay: f, isSameMonth: h, startOfMonth: g, isBefore: D, endOfMonth: p, isAfter: k } = a, x = n && g(n), v = r && p(r), b = {
|
|
2060
|
-
[T.focused]: [],
|
|
2061
|
-
[T.outside]: [],
|
|
2062
|
-
[T.disabled]: [],
|
|
2063
|
-
[T.hidden]: [],
|
|
2064
|
-
[T.today]: []
|
|
2065
|
-
}, W = {};
|
|
2066
|
-
for (const w of e) {
|
|
2067
|
-
const { date: l, displayMonth: S } = w, E = !!(S && !h(l, S)), B = !!(x && D(l, x)), F = !!(v && k(l, v)), $ = !!(s && ne(l, s, a)), ae = !!(o && ne(l, o, a)) || B || F || // Broadcast calendar will show outside days as default
|
|
2068
|
-
!u && !d && E || u && d === !1 && E, L = f(l, c);
|
|
2069
|
-
E && b.outside.push(w), $ && b.disabled.push(w), ae && b.hidden.push(w), L && b.today.push(w), i && Object.keys(i).forEach((G) => {
|
|
2070
|
-
const ue = i == null ? void 0 : i[G];
|
|
2071
|
-
ue && ne(l, ue, a) && (W[G] ? W[G].push(w) : W[G] = [w]);
|
|
2072
|
-
});
|
|
2073
|
-
}
|
|
2074
|
-
return (w) => {
|
|
2075
|
-
const l = {
|
|
2076
|
-
[T.focused]: !1,
|
|
2077
|
-
[T.disabled]: !1,
|
|
2078
|
-
[T.hidden]: !1,
|
|
2079
|
-
[T.outside]: !1,
|
|
2080
|
-
[T.today]: !1
|
|
2081
|
-
}, S = {};
|
|
2082
|
-
for (const E in b) {
|
|
2083
|
-
const B = b[E];
|
|
2084
|
-
l[E] = B.some((F) => F === w);
|
|
2085
|
-
}
|
|
2086
|
-
for (const E in W)
|
|
2087
|
-
S[E] = W[E].some((B) => B === w);
|
|
2088
|
-
return {
|
|
2089
|
-
...l,
|
|
2090
|
-
// custom modifiers should override all the previous ones
|
|
2091
|
-
...S
|
|
2092
|
-
};
|
|
2093
|
-
};
|
|
2094
|
-
}
|
|
2095
|
-
function za(e, t, n = {}) {
|
|
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[z[s]] && a.push(t[z[s]]), a), [t[m.Day]]);
|
|
2097
|
-
}
|
|
2098
|
-
function Aa(e) {
|
|
2099
|
-
return {
|
|
2100
|
-
...Ia,
|
|
2101
|
-
...e
|
|
2102
|
-
};
|
|
2103
|
-
}
|
|
2104
|
-
function ja(e) {
|
|
2105
|
-
const t = {
|
|
2106
|
-
"data-mode": e.mode ?? void 0,
|
|
2107
|
-
"data-required": "required" in e ? e.required : void 0,
|
|
2108
|
-
"data-multiple-months": e.numberOfMonths && e.numberOfMonths > 1 || void 0,
|
|
2109
|
-
"data-week-numbers": e.showWeekNumber || void 0,
|
|
2110
|
-
"data-broadcast-calendar": e.broadcastCalendar || void 0,
|
|
2111
|
-
"data-nav-layout": e.navLayout || void 0
|
|
2112
|
-
};
|
|
2113
|
-
return Object.entries(e).forEach(([n, r]) => {
|
|
2114
|
-
n.startsWith("data-") && (t[n] = r);
|
|
2115
|
-
}), t;
|
|
2116
|
-
}
|
|
2117
|
-
function qa() {
|
|
2118
|
-
const e = {};
|
|
2119
|
-
for (const t in m)
|
|
2120
|
-
e[m[t]] = `rdp-${m[t]}`;
|
|
2121
|
-
for (const t in T)
|
|
2122
|
-
e[T[t]] = `rdp-${T[t]}`;
|
|
2123
|
-
for (const t in z)
|
|
2124
|
-
e[z[t]] = `rdp-${z[t]}`;
|
|
2125
|
-
for (const t in j)
|
|
2126
|
-
e[j[t]] = `rdp-${j[t]}`;
|
|
2127
|
-
return e;
|
|
2128
|
-
}
|
|
2129
|
-
function Vt(e, t, n) {
|
|
2130
|
-
return (n ?? new q(t)).formatMonthYear(e);
|
|
2131
|
-
}
|
|
2132
|
-
const $a = Vt;
|
|
2133
|
-
function Ga(e, t, n) {
|
|
2134
|
-
return (n ?? new q(t)).format(e, "d");
|
|
2135
|
-
}
|
|
2136
|
-
function Ra(e, t = Z) {
|
|
2137
|
-
return t.format(e, "LLLL");
|
|
2138
|
-
}
|
|
2139
|
-
function Va(e, t, n) {
|
|
2140
|
-
return (n ?? new q(t)).format(e, "cccccc");
|
|
2141
|
-
}
|
|
2142
|
-
function Ua(e, t = Z) {
|
|
2143
|
-
return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
|
|
2144
|
-
}
|
|
2145
|
-
function Qa() {
|
|
2146
|
-
return "";
|
|
2147
|
-
}
|
|
2148
|
-
function Ut(e, t = Z) {
|
|
2149
|
-
return t.format(e, "yyyy");
|
|
2150
|
-
}
|
|
2151
|
-
const Xa = Ut, Ka = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2152
|
-
__proto__: null,
|
|
2153
|
-
formatCaption: Vt,
|
|
2154
|
-
formatDay: Ga,
|
|
2155
|
-
formatMonthCaption: $a,
|
|
2156
|
-
formatMonthDropdown: Ra,
|
|
2157
|
-
formatWeekNumber: Ua,
|
|
2158
|
-
formatWeekNumberHeader: Qa,
|
|
2159
|
-
formatWeekdayName: Va,
|
|
2160
|
-
formatYearCaption: Xa,
|
|
2161
|
-
formatYearDropdown: Ut
|
|
2162
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
2163
|
-
function Ja(e) {
|
|
2164
|
-
return e != null && e.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e != null && e.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
|
|
2165
|
-
...Ka,
|
|
2166
|
-
...e
|
|
2167
|
-
};
|
|
2168
|
-
}
|
|
2169
|
-
function at(e, t, n, r) {
|
|
2170
|
-
let a = (r ?? new q(n)).format(e, "PPPP");
|
|
2171
|
-
return t.today && (a = `Today, ${a}`), t.selected && (a = `${a}, selected`), a;
|
|
2172
|
-
}
|
|
2173
|
-
const Za = at;
|
|
2174
|
-
function st(e, t, n) {
|
|
2175
|
-
return (n ?? new q(t)).formatMonthYear(e);
|
|
2176
|
-
}
|
|
2177
|
-
const La = st;
|
|
2178
|
-
function Qt(e, t, n, r) {
|
|
2179
|
-
let a = (r ?? new q(n)).format(e, "PPPP");
|
|
2180
|
-
return t != null && t.today && (a = `Today, ${a}`), a;
|
|
2181
|
-
}
|
|
2182
|
-
function Xt(e) {
|
|
2183
|
-
return "Choose the Month";
|
|
2184
|
-
}
|
|
2185
|
-
function Kt() {
|
|
2186
|
-
return "";
|
|
2187
|
-
}
|
|
2188
|
-
const es = "Go to the Next Month";
|
|
2189
|
-
function Jt(e, t) {
|
|
2190
|
-
return es;
|
|
2191
|
-
}
|
|
2192
|
-
function Zt(e) {
|
|
2193
|
-
return "Go to the Previous Month";
|
|
2194
|
-
}
|
|
2195
|
-
function Lt(e, t, n) {
|
|
2196
|
-
return (n ?? new q(t)).format(e, "cccc");
|
|
2197
|
-
}
|
|
2198
|
-
function en(e, t) {
|
|
2199
|
-
return `Week ${e}`;
|
|
2200
|
-
}
|
|
2201
|
-
function tn(e) {
|
|
2202
|
-
return "Week Number";
|
|
2203
|
-
}
|
|
2204
|
-
function nn(e) {
|
|
2205
|
-
return "Choose the Year";
|
|
2206
|
-
}
|
|
2207
|
-
const ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2208
|
-
__proto__: null,
|
|
2209
|
-
labelCaption: La,
|
|
2210
|
-
labelDay: Za,
|
|
2211
|
-
labelDayButton: at,
|
|
2212
|
-
labelGrid: st,
|
|
2213
|
-
labelGridcell: Qt,
|
|
2214
|
-
labelMonthDropdown: Xt,
|
|
2215
|
-
labelNav: Kt,
|
|
2216
|
-
labelNext: Jt,
|
|
2217
|
-
labelPrevious: Zt,
|
|
2218
|
-
labelWeekNumber: en,
|
|
2219
|
-
labelWeekNumberHeader: tn,
|
|
2220
|
-
labelWeekday: Lt,
|
|
2221
|
-
labelYearDropdown: nn
|
|
2222
|
-
}, Symbol.toStringTag, { value: "Module" })), X = (e, t, n) => t || (n ? typeof n == "function" ? n : (...r) => n : e);
|
|
2223
|
-
function ns(e, t) {
|
|
2224
|
-
var r;
|
|
2225
|
-
const n = ((r = t.locale) == null ? void 0 : r.labels) ?? {};
|
|
2226
|
-
return {
|
|
2227
|
-
...ts,
|
|
2228
|
-
...e ?? {},
|
|
2229
|
-
labelDayButton: X(at, e == null ? void 0 : e.labelDayButton, n.labelDayButton),
|
|
2230
|
-
labelMonthDropdown: X(Xt, e == null ? void 0 : e.labelMonthDropdown, n.labelMonthDropdown),
|
|
2231
|
-
labelNext: X(Jt, e == null ? void 0 : e.labelNext, n.labelNext),
|
|
2232
|
-
labelPrevious: X(Zt, e == null ? void 0 : e.labelPrevious, n.labelPrevious),
|
|
2233
|
-
labelWeekNumber: X(en, e == null ? void 0 : e.labelWeekNumber, n.labelWeekNumber),
|
|
2234
|
-
labelYearDropdown: X(nn, e == null ? void 0 : e.labelYearDropdown, n.labelYearDropdown),
|
|
2235
|
-
labelGrid: X(st, e == null ? void 0 : e.labelGrid, n.labelGrid),
|
|
2236
|
-
labelGridcell: X(Qt, e == null ? void 0 : e.labelGridcell, n.labelGridcell),
|
|
2237
|
-
labelNav: X(Kt, e == null ? void 0 : e.labelNav, n.labelNav),
|
|
2238
|
-
labelWeekNumberHeader: X(tn, e == null ? void 0 : e.labelWeekNumberHeader, n.labelWeekNumberHeader),
|
|
2239
|
-
labelWeekday: X(Lt, e == null ? void 0 : e.labelWeekday, n.labelWeekday)
|
|
2240
|
-
};
|
|
2241
|
-
}
|
|
2242
|
-
function rs(e, t, n, r, a) {
|
|
2243
|
-
const { startOfMonth: s, startOfYear: o, endOfYear: i, eachMonthOfInterval: d, getMonth: u } = a;
|
|
2244
|
-
return d({
|
|
2245
|
-
start: o(e),
|
|
2246
|
-
end: i(e)
|
|
2247
|
-
}).map((h) => {
|
|
2248
|
-
const g = r.formatMonthDropdown(h, a), D = u(h), p = t && h < s(t) || n && h > s(n) || !1;
|
|
2249
|
-
return { value: D, label: g, disabled: p };
|
|
2250
|
-
});
|
|
2251
|
-
}
|
|
2252
|
-
function as(e, t = {}, n = {}) {
|
|
2253
|
-
let r = { ...t == null ? void 0 : t[m.Day] };
|
|
2254
|
-
return Object.entries(e).filter(([, a]) => a === !0).forEach(([a]) => {
|
|
2255
|
-
r = {
|
|
2256
|
-
...r,
|
|
2257
|
-
...n == null ? void 0 : n[a]
|
|
2258
|
-
};
|
|
2259
|
-
}), r;
|
|
2260
|
-
}
|
|
2261
|
-
function ss(e, t, n, r) {
|
|
2262
|
-
const a = r ?? e.today(), s = n ? e.startOfBroadcastWeek(a, e) : t ? e.startOfISOWeek(a) : e.startOfWeek(a), o = [];
|
|
2263
|
-
for (let i = 0; i < 7; i++) {
|
|
2264
|
-
const d = e.addDays(s, i);
|
|
2265
|
-
o.push(d);
|
|
2266
|
-
}
|
|
2267
|
-
return o;
|
|
2268
|
-
}
|
|
2269
|
-
function os(e, t, n, r, a = !1) {
|
|
2270
|
-
if (!e || !t)
|
|
2271
|
-
return;
|
|
2272
|
-
const { startOfYear: s, endOfYear: o, eachYearOfInterval: i, getYear: d } = r, u = s(e), c = o(t), f = i({ start: u, end: c });
|
|
2273
|
-
return a && f.reverse(), f.map((h) => {
|
|
2274
|
-
const g = n.formatYearDropdown(h, r);
|
|
2275
|
-
return {
|
|
2276
|
-
value: d(h),
|
|
2277
|
-
label: g,
|
|
2278
|
-
disabled: !1
|
|
2279
|
-
};
|
|
2280
|
-
});
|
|
2281
|
-
}
|
|
2282
|
-
function is(e, t = {}) {
|
|
2283
|
-
var i;
|
|
2284
|
-
const { weekStartsOn: n, locale: r } = t, a = n ?? ((i = r == null ? void 0 : r.options) == null ? void 0 : i.weekStartsOn) ?? 0, s = (d) => {
|
|
2285
|
-
const u = typeof d == "number" || typeof d == "string" ? new Date(d) : d;
|
|
2286
|
-
return new H(u.getFullYear(), u.getMonth(), u.getDate(), 12, 0, 0, e);
|
|
2287
|
-
}, o = (d) => {
|
|
2288
|
-
const u = s(d);
|
|
2289
|
-
return new Date(u.getFullYear(), u.getMonth(), u.getDate(), 0, 0, 0, 0);
|
|
2290
|
-
};
|
|
2291
|
-
return {
|
|
2292
|
-
today: () => s(H.tz(e)),
|
|
2293
|
-
newDate: (d, u, c) => new H(d, u, c, 12, 0, 0, e),
|
|
2294
|
-
startOfDay: (d) => s(d),
|
|
2295
|
-
startOfWeek: (d, u) => {
|
|
2296
|
-
const c = s(d), f = (u == null ? void 0 : u.weekStartsOn) ?? a, h = (c.getDay() - f + 7) % 7;
|
|
2297
|
-
return c.setDate(c.getDate() - h), c;
|
|
2298
|
-
},
|
|
2299
|
-
startOfISOWeek: (d) => {
|
|
2300
|
-
const u = s(d), c = (u.getDay() - 1 + 7) % 7;
|
|
2301
|
-
return u.setDate(u.getDate() - c), u;
|
|
2302
|
-
},
|
|
2303
|
-
startOfMonth: (d) => {
|
|
2304
|
-
const u = s(d);
|
|
2305
|
-
return u.setDate(1), u;
|
|
2306
|
-
},
|
|
2307
|
-
startOfYear: (d) => {
|
|
2308
|
-
const u = s(d);
|
|
2309
|
-
return u.setMonth(0, 1), u;
|
|
2310
|
-
},
|
|
2311
|
-
endOfWeek: (d, u) => {
|
|
2312
|
-
const c = s(d), g = ((((u == null ? void 0 : u.weekStartsOn) ?? a) + 6) % 7 - c.getDay() + 7) % 7;
|
|
2313
|
-
return c.setDate(c.getDate() + g), c;
|
|
2314
|
-
},
|
|
2315
|
-
endOfISOWeek: (d) => {
|
|
2316
|
-
const u = s(d), c = (7 - u.getDay()) % 7;
|
|
2317
|
-
return u.setDate(u.getDate() + c), u;
|
|
2318
|
-
},
|
|
2319
|
-
endOfMonth: (d) => {
|
|
2320
|
-
const u = s(d);
|
|
2321
|
-
return u.setMonth(u.getMonth() + 1, 0), u;
|
|
2322
|
-
},
|
|
2323
|
-
endOfYear: (d) => {
|
|
2324
|
-
const u = s(d);
|
|
2325
|
-
return u.setMonth(11, 31), u;
|
|
2326
|
-
},
|
|
2327
|
-
eachMonthOfInterval: (d) => {
|
|
2328
|
-
const u = s(d.start), c = s(d.end), f = [], h = new H(u.getFullYear(), u.getMonth(), 1, 12, 0, 0, e), g = c.getFullYear() * 12 + c.getMonth();
|
|
2329
|
-
for (; h.getFullYear() * 12 + h.getMonth() <= g; )
|
|
2330
|
-
f.push(new H(h, e)), h.setMonth(h.getMonth() + 1, 1);
|
|
2331
|
-
return f;
|
|
2332
|
-
},
|
|
2333
|
-
// Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
|
|
2334
|
-
// mutate the same TZDate, and return it.
|
|
2335
|
-
addDays: (d, u) => {
|
|
2336
|
-
const c = s(d);
|
|
2337
|
-
return c.setDate(c.getDate() + u), c;
|
|
2338
|
-
},
|
|
2339
|
-
addWeeks: (d, u) => {
|
|
2340
|
-
const c = s(d);
|
|
2341
|
-
return c.setDate(c.getDate() + u * 7), c;
|
|
2342
|
-
},
|
|
2343
|
-
addMonths: (d, u) => {
|
|
2344
|
-
const c = s(d);
|
|
2345
|
-
return c.setMonth(c.getMonth() + u), c;
|
|
2346
|
-
},
|
|
2347
|
-
addYears: (d, u) => {
|
|
2348
|
-
const c = s(d);
|
|
2349
|
-
return c.setFullYear(c.getFullYear() + u), c;
|
|
2350
|
-
},
|
|
2351
|
-
eachYearOfInterval: (d) => {
|
|
2352
|
-
const u = s(d.start), c = s(d.end), f = [], h = new H(u.getFullYear(), 0, 1, 12, 0, 0, e);
|
|
2353
|
-
for (; h.getFullYear() <= c.getFullYear(); )
|
|
2354
|
-
f.push(new H(h, e)), h.setFullYear(h.getFullYear() + 1, 0, 1);
|
|
2355
|
-
return f;
|
|
2356
|
-
},
|
|
2357
|
-
getWeek: (d, u) => {
|
|
2358
|
-
var f;
|
|
2359
|
-
const c = o(d);
|
|
2360
|
-
return et(c, {
|
|
2361
|
-
weekStartsOn: (u == null ? void 0 : u.weekStartsOn) ?? a,
|
|
2362
|
-
firstWeekContainsDate: (u == null ? void 0 : u.firstWeekContainsDate) ?? ((f = r == null ? void 0 : r.options) == null ? void 0 : f.firstWeekContainsDate) ?? 1
|
|
2363
|
-
});
|
|
2364
|
-
},
|
|
2365
|
-
getISOWeek: (d) => {
|
|
2366
|
-
const u = o(d);
|
|
2367
|
-
return Le(u);
|
|
2368
|
-
},
|
|
2369
|
-
differenceInCalendarDays: (d, u) => {
|
|
2370
|
-
const c = o(d), f = o(u);
|
|
2371
|
-
return Ze(c, f);
|
|
2372
|
-
},
|
|
2373
|
-
differenceInCalendarMonths: (d, u) => {
|
|
2374
|
-
const c = o(d), f = o(u);
|
|
2375
|
-
return Et(c, f);
|
|
2376
|
-
}
|
|
2377
|
-
};
|
|
2378
|
-
}
|
|
2379
|
-
const Oe = (e) => e instanceof HTMLElement ? e : null, qe = (e) => [
|
|
2380
|
-
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
2381
|
-
], ds = (e) => Oe(e.querySelector("[data-animated-month]")), $e = (e) => Oe(e.querySelector("[data-animated-caption]")), Ge = (e) => Oe(e.querySelector("[data-animated-weeks]")), us = (e) => Oe(e.querySelector("[data-animated-nav]")), cs = (e) => Oe(e.querySelector("[data-animated-weekdays]"));
|
|
2382
|
-
function fs(e, t, { classNames: n, months: r, focused: a, dateLib: s }) {
|
|
2383
|
-
const o = Ne(null), i = Ne(r), d = Ne(!1);
|
|
2384
|
-
En(() => {
|
|
2385
|
-
const u = i.current;
|
|
2386
|
-
if (i.current = r, !t || !e.current || // safety check because the ref can be set to anything by consumers
|
|
2387
|
-
!(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
|
|
2388
|
-
r.length === 0 || u.length === 0 || r.length !== u.length)
|
|
2389
|
-
return;
|
|
2390
|
-
const c = s.isSameMonth(r[0].date, u[0].date), f = s.isAfter(r[0].date, u[0].date), h = f ? n[j.caption_after_enter] : n[j.caption_before_enter], g = f ? n[j.weeks_after_enter] : n[j.weeks_before_enter], D = o.current, p = e.current.cloneNode(!0);
|
|
2391
|
-
if (p instanceof HTMLElement ? (qe(p).forEach((b) => {
|
|
2392
|
-
if (!(b instanceof HTMLElement))
|
|
2393
|
-
return;
|
|
2394
|
-
const W = ds(b);
|
|
2395
|
-
W && b.contains(W) && b.removeChild(W);
|
|
2396
|
-
const w = $e(b);
|
|
2397
|
-
w && w.classList.remove(h);
|
|
2398
|
-
const l = Ge(b);
|
|
2399
|
-
l && l.classList.remove(g);
|
|
2400
|
-
}), o.current = p) : o.current = null, d.current || c || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
2401
|
-
a)
|
|
2402
|
-
return;
|
|
2403
|
-
const k = D instanceof HTMLElement ? qe(D) : [], x = qe(e.current);
|
|
2404
|
-
if (x != null && x.every((v) => v instanceof HTMLElement) && k && k.every((v) => v instanceof HTMLElement)) {
|
|
2405
|
-
d.current = !0, e.current.style.isolation = "isolate";
|
|
2406
|
-
const v = us(e.current);
|
|
2407
|
-
v && (v.style.zIndex = "1"), x.forEach((b, W) => {
|
|
2408
|
-
const w = k[W];
|
|
2409
|
-
if (!w)
|
|
2410
|
-
return;
|
|
2411
|
-
b.style.position = "relative", b.style.overflow = "hidden";
|
|
2412
|
-
const l = $e(b);
|
|
2413
|
-
l && l.classList.add(h);
|
|
2414
|
-
const S = Ge(b);
|
|
2415
|
-
S && S.classList.add(g);
|
|
2416
|
-
const E = () => {
|
|
2417
|
-
d.current = !1, e.current && (e.current.style.isolation = ""), v && (v.style.zIndex = ""), l && l.classList.remove(h), S && S.classList.remove(g), b.style.position = "", b.style.overflow = "", b.contains(w) && b.removeChild(w);
|
|
2418
|
-
};
|
|
2419
|
-
w.style.pointerEvents = "none", w.style.position = "absolute", w.style.overflow = "hidden", w.setAttribute("aria-hidden", "true");
|
|
2420
|
-
const B = cs(w);
|
|
2421
|
-
B && (B.style.opacity = "0");
|
|
2422
|
-
const F = $e(w);
|
|
2423
|
-
F && (F.classList.add(f ? n[j.caption_before_exit] : n[j.caption_after_exit]), F.addEventListener("animationend", E));
|
|
2424
|
-
const $ = Ge(w);
|
|
2425
|
-
$ && $.classList.add(f ? n[j.weeks_before_exit] : n[j.weeks_after_exit]), b.insertBefore(w, b.firstChild);
|
|
2426
|
-
});
|
|
2427
|
-
}
|
|
2428
|
-
});
|
|
2429
|
-
}
|
|
2430
|
-
function ls(e, t, n, r) {
|
|
2431
|
-
const a = e[0], s = e[e.length - 1], { ISOWeek: o, fixedWeeks: i, broadcastCalendar: d } = n ?? {}, { addDays: u, differenceInCalendarDays: c, differenceInCalendarMonths: f, endOfBroadcastWeek: h, endOfISOWeek: g, endOfMonth: D, endOfWeek: p, isAfter: k, startOfBroadcastWeek: x, startOfISOWeek: v, startOfWeek: b } = r, W = d ? x(a, r) : o ? v(a) : b(a), w = d ? h(s) : o ? g(D(s)) : p(D(s)), l = t && (d ? h(t) : o ? g(t) : p(t)), S = l && k(w, l) ? l : w, E = c(S, W), B = f(s, a) + 1, F = [];
|
|
2432
|
-
for (let L = 0; L <= E; L++) {
|
|
2433
|
-
const G = u(W, L);
|
|
2434
|
-
F.push(G);
|
|
2435
|
-
}
|
|
2436
|
-
const ae = (d ? 35 : 42) * B;
|
|
2437
|
-
if (i && F.length < ae) {
|
|
2438
|
-
const L = ae - F.length;
|
|
2439
|
-
for (let G = 0; G < L; G++) {
|
|
2440
|
-
const ue = u(F[F.length - 1], 1);
|
|
2441
|
-
F.push(ue);
|
|
2442
|
-
}
|
|
2443
|
-
}
|
|
2444
|
-
return F;
|
|
2445
|
-
}
|
|
2446
|
-
function hs(e) {
|
|
2447
|
-
const t = [];
|
|
2448
|
-
return e.reduce((n, r) => {
|
|
2449
|
-
const a = r.weeks.reduce((s, o) => s.concat(o.days.slice()), t.slice());
|
|
2450
|
-
return n.concat(a.slice());
|
|
2451
|
-
}, t.slice());
|
|
2452
|
-
}
|
|
2453
|
-
function ms(e, t, n, r) {
|
|
2454
|
-
const { numberOfMonths: a = 1 } = n, s = [];
|
|
2455
|
-
for (let o = 0; o < a; o++) {
|
|
2456
|
-
const i = r.addMonths(e, o);
|
|
2457
|
-
if (t && i > t)
|
|
2458
|
-
break;
|
|
2459
|
-
s.push(i);
|
|
2460
|
-
}
|
|
2461
|
-
return s;
|
|
2462
|
-
}
|
|
2463
|
-
function kt(e, t, n, r) {
|
|
2464
|
-
const { month: a, defaultMonth: s, today: o = r.today(), numberOfMonths: i = 1 } = e;
|
|
2465
|
-
let d = a || s || o;
|
|
2466
|
-
const { differenceInCalendarMonths: u, addMonths: c, startOfMonth: f } = r;
|
|
2467
|
-
if (n && u(n, d) < i - 1) {
|
|
2468
|
-
const h = -1 * (i - 1);
|
|
2469
|
-
d = c(n, h);
|
|
2470
|
-
}
|
|
2471
|
-
return t && u(d, t) < 0 && (d = t), f(d);
|
|
2472
|
-
}
|
|
2473
|
-
function ys(e, t, n, r) {
|
|
2474
|
-
const { addDays: a, endOfBroadcastWeek: s, endOfISOWeek: o, endOfMonth: i, endOfWeek: d, getISOWeek: u, getWeek: c, startOfBroadcastWeek: f, startOfISOWeek: h, startOfWeek: g } = r, D = e.reduce((p, k) => {
|
|
2475
|
-
const x = n.broadcastCalendar ? f(k, r) : n.ISOWeek ? h(k) : g(k), v = n.broadcastCalendar ? s(k) : n.ISOWeek ? o(i(k)) : d(i(k)), b = t.filter((S) => S >= x && S <= v), W = n.broadcastCalendar ? 35 : 42;
|
|
2476
|
-
if (n.fixedWeeks && b.length < W) {
|
|
2477
|
-
const S = t.filter((E) => {
|
|
2478
|
-
const B = W - b.length;
|
|
2479
|
-
return E > v && E <= a(v, B);
|
|
2480
|
-
});
|
|
2481
|
-
b.push(...S);
|
|
2482
|
-
}
|
|
2483
|
-
const w = b.reduce((S, E) => {
|
|
2484
|
-
const B = n.ISOWeek ? u(E) : c(E), F = S.find((ae) => ae.weekNumber === B), $ = new qt(E, k, r);
|
|
2485
|
-
return F ? F.days.push($) : S.push(new ca(B, [$])), S;
|
|
2486
|
-
}, []), l = new ua(k, w);
|
|
2487
|
-
return p.push(l), p;
|
|
2488
|
-
}, []);
|
|
2489
|
-
return n.reverseMonths ? D.reverse() : D;
|
|
2490
|
-
}
|
|
2491
|
-
function gs(e, t) {
|
|
2492
|
-
let { startMonth: n, endMonth: r } = e;
|
|
2493
|
-
const { startOfYear: a, startOfDay: s, startOfMonth: o, endOfMonth: i, addYears: d, endOfYear: u, newDate: c, today: f } = t, { fromYear: h, toYear: g, fromMonth: D, toMonth: p } = e;
|
|
2494
|
-
!n && D && (n = D), !n && h && (n = t.newDate(h, 0, 1)), !r && p && (r = p), !r && g && (r = c(g, 11, 31));
|
|
2495
|
-
const k = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
|
|
2496
|
-
return n ? n = o(n) : h ? n = c(h, 0, 1) : !n && k && (n = a(d(e.today ?? f(), -100))), r ? r = i(r) : g ? r = c(g, 11, 31) : !r && k && (r = u(e.today ?? f())), [
|
|
2497
|
-
n && s(n),
|
|
2498
|
-
r && s(r)
|
|
2499
|
-
];
|
|
2500
|
-
}
|
|
2501
|
-
function bs(e, t, n, r) {
|
|
2502
|
-
if (n.disableNavigation)
|
|
2503
|
-
return;
|
|
2504
|
-
const { pagedNavigation: a, numberOfMonths: s = 1 } = n, { startOfMonth: o, addMonths: i, differenceInCalendarMonths: d } = r, u = a ? s : 1, c = o(e);
|
|
2505
|
-
if (!t)
|
|
2506
|
-
return i(c, u);
|
|
2507
|
-
if (!(d(t, e) < s))
|
|
2508
|
-
return i(c, u);
|
|
2509
|
-
}
|
|
2510
|
-
function vs(e, t, n, r) {
|
|
2511
|
-
if (n.disableNavigation)
|
|
2512
|
-
return;
|
|
2513
|
-
const { pagedNavigation: a, numberOfMonths: s } = n, { startOfMonth: o, addMonths: i, differenceInCalendarMonths: d } = r, u = a ? s ?? 1 : 1, c = o(e);
|
|
2514
|
-
if (!t)
|
|
2515
|
-
return i(c, -u);
|
|
2516
|
-
if (!(d(c, t) <= 0))
|
|
2517
|
-
return i(c, -u);
|
|
2518
|
-
}
|
|
2519
|
-
function Ms(e) {
|
|
2520
|
-
const t = [];
|
|
2521
|
-
return e.reduce((n, r) => n.concat(r.weeks.slice()), t.slice());
|
|
2522
|
-
}
|
|
2523
|
-
function Te(e, t) {
|
|
2524
|
-
const [n, r] = _e(e);
|
|
2525
|
-
return [t === void 0 ? n : t, r];
|
|
2526
|
-
}
|
|
2527
|
-
function ws(e, t) {
|
|
2528
|
-
var W;
|
|
2529
|
-
const [n, r] = gs(e, t), { startOfMonth: a, endOfMonth: s } = t, o = kt(e, n, r, t), [i, d] = Te(
|
|
2530
|
-
o,
|
|
2531
|
-
// initialMonth is always computed from props.month if provided
|
|
2532
|
-
e.month ? o : void 0
|
|
2533
|
-
);
|
|
2534
|
-
xt(() => {
|
|
2535
|
-
const w = kt(e, n, r, t);
|
|
2536
|
-
d(w);
|
|
2537
|
-
}, [e.timeZone]);
|
|
2538
|
-
const { months: u, weeks: c, days: f, previousMonth: h, nextMonth: g } = Ce(() => {
|
|
2539
|
-
const w = ms(i, r, { numberOfMonths: e.numberOfMonths }, t), l = ls(w, e.endMonth ? s(e.endMonth) : void 0, {
|
|
2540
|
-
ISOWeek: e.ISOWeek,
|
|
2541
|
-
fixedWeeks: e.fixedWeeks,
|
|
2542
|
-
broadcastCalendar: e.broadcastCalendar
|
|
2543
|
-
}, t), S = ys(w, l, {
|
|
2544
|
-
broadcastCalendar: e.broadcastCalendar,
|
|
2545
|
-
fixedWeeks: e.fixedWeeks,
|
|
2546
|
-
ISOWeek: e.ISOWeek,
|
|
2547
|
-
reverseMonths: e.reverseMonths
|
|
2548
|
-
}, t), E = Ms(S), B = hs(S), F = vs(i, n, e, t), $ = bs(i, r, e, t);
|
|
2549
|
-
return {
|
|
2550
|
-
months: S,
|
|
2551
|
-
weeks: E,
|
|
2552
|
-
days: B,
|
|
2553
|
-
previousMonth: F,
|
|
2554
|
-
nextMonth: $
|
|
2555
|
-
};
|
|
2556
|
-
}, [
|
|
2557
|
-
t,
|
|
2558
|
-
i.getTime(),
|
|
2559
|
-
r == null ? void 0 : r.getTime(),
|
|
2560
|
-
n == null ? void 0 : n.getTime(),
|
|
2561
|
-
e.disableNavigation,
|
|
2562
|
-
e.broadcastCalendar,
|
|
2563
|
-
(W = e.endMonth) == null ? void 0 : W.getTime(),
|
|
2564
|
-
e.fixedWeeks,
|
|
2565
|
-
e.ISOWeek,
|
|
2566
|
-
e.numberOfMonths,
|
|
2567
|
-
e.pagedNavigation,
|
|
2568
|
-
e.reverseMonths
|
|
2569
|
-
]), { disableNavigation: D, onMonthChange: p } = e, k = (w) => c.some((l) => l.days.some((S) => S.isEqualTo(w))), x = (w) => {
|
|
2570
|
-
if (D)
|
|
2571
|
-
return;
|
|
2572
|
-
let l = a(w);
|
|
2573
|
-
n && l < a(n) && (l = a(n)), r && l > a(r) && (l = a(r)), d(l), p == null || p(l);
|
|
2574
|
-
};
|
|
2575
|
-
return {
|
|
2576
|
-
months: u,
|
|
2577
|
-
weeks: c,
|
|
2578
|
-
days: f,
|
|
2579
|
-
navStart: n,
|
|
2580
|
-
navEnd: r,
|
|
2581
|
-
previousMonth: h,
|
|
2582
|
-
nextMonth: g,
|
|
2583
|
-
goToMonth: x,
|
|
2584
|
-
goToDay: (w) => {
|
|
2585
|
-
k(w) || x(w.date);
|
|
2586
|
-
}
|
|
2587
|
-
};
|
|
2588
|
-
}
|
|
2589
|
-
var K;
|
|
2590
|
-
(function(e) {
|
|
2591
|
-
e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
|
|
2592
|
-
})(K || (K = {}));
|
|
2593
|
-
function Dt(e) {
|
|
2594
|
-
return !e[T.disabled] && !e[T.hidden] && !e[T.outside];
|
|
2595
|
-
}
|
|
2596
|
-
function ks(e, t, n, r) {
|
|
2597
|
-
let a, s = -1;
|
|
2598
|
-
for (const o of e) {
|
|
2599
|
-
const i = t(o);
|
|
2600
|
-
Dt(i) && (i[T.focused] && s < K.FocusedModifier ? (a = o, s = K.FocusedModifier) : r != null && r.isEqualTo(o) && s < K.LastFocused ? (a = o, s = K.LastFocused) : n(o.date) && s < K.Selected ? (a = o, s = K.Selected) : i[T.today] && s < K.Today && (a = o, s = K.Today));
|
|
2601
|
-
}
|
|
2602
|
-
return a || (a = e.find((o) => Dt(t(o)))), a;
|
|
2603
|
-
}
|
|
2604
|
-
function Ds(e, t, n, r, a, s, o) {
|
|
2605
|
-
const { ISOWeek: i, broadcastCalendar: d } = s, { addDays: u, addMonths: c, addWeeks: f, addYears: h, endOfBroadcastWeek: g, endOfISOWeek: D, endOfWeek: p, max: k, min: x, startOfBroadcastWeek: v, startOfISOWeek: b, startOfWeek: W } = o;
|
|
2606
|
-
let l = {
|
|
2607
|
-
day: u,
|
|
2608
|
-
week: f,
|
|
2609
|
-
month: c,
|
|
2610
|
-
year: h,
|
|
2611
|
-
startOfWeek: (S) => d ? v(S, o) : i ? b(S) : W(S),
|
|
2612
|
-
endOfWeek: (S) => d ? g(S) : i ? D(S) : p(S)
|
|
2613
|
-
}[e](n, t === "after" ? 1 : -1);
|
|
2614
|
-
return t === "before" && r ? l = k([r, l]) : t === "after" && a && (l = x([a, l])), l;
|
|
2615
|
-
}
|
|
2616
|
-
function rn(e, t, n, r, a, s, o, i = 0) {
|
|
2617
|
-
if (i > 365)
|
|
2618
|
-
return;
|
|
2619
|
-
const d = Ds(e, t, n.date, r, a, s, o), u = !!(s.disabled && ne(d, s.disabled, o)), c = !!(s.hidden && ne(d, s.hidden, o)), f = d, h = new qt(d, f, o);
|
|
2620
|
-
return !u && !c ? h : rn(e, t, h, r, a, s, o, i + 1);
|
|
2621
|
-
}
|
|
2622
|
-
function Os(e, t, n, r, a) {
|
|
2623
|
-
const { autoFocus: s } = e, [o, i] = _e(), d = ks(t.days, n, r || (() => !1), o), [u, c] = _e(s ? d : void 0);
|
|
2624
|
-
return {
|
|
2625
|
-
isFocusTarget: (p) => !!(d != null && d.isEqualTo(p)),
|
|
2626
|
-
setFocused: c,
|
|
2627
|
-
focused: u,
|
|
2628
|
-
blur: () => {
|
|
2629
|
-
i(u), c(void 0);
|
|
2630
|
-
},
|
|
2631
|
-
moveFocus: (p, k) => {
|
|
2632
|
-
if (!u)
|
|
2633
|
-
return;
|
|
2634
|
-
const x = rn(p, k, u, t.navStart, t.navEnd, e, a);
|
|
2635
|
-
x && (e.disableNavigation && !t.days.some((b) => b.isEqualTo(x)) || (t.goToDay(x), c(x)));
|
|
2636
|
-
}
|
|
2637
|
-
};
|
|
2638
|
-
}
|
|
2639
|
-
function ps(e, t) {
|
|
2640
|
-
const { selected: n, required: r, onSelect: a } = e, [s, o] = Te(n, a ? n : void 0), i = a ? n : s, { isSameDay: d } = t, u = (g) => (i == null ? void 0 : i.some((D) => d(D, g))) ?? !1, { min: c, max: f } = e;
|
|
2641
|
-
return {
|
|
2642
|
-
selected: i,
|
|
2643
|
-
select: (g, D, p) => {
|
|
2644
|
-
let k = [...i ?? []];
|
|
2645
|
-
if (u(g)) {
|
|
2646
|
-
if ((i == null ? void 0 : i.length) === c || r && (i == null ? void 0 : i.length) === 1)
|
|
2647
|
-
return;
|
|
2648
|
-
k = i == null ? void 0 : i.filter((x) => !d(x, g));
|
|
2649
|
-
} else
|
|
2650
|
-
(i == null ? void 0 : i.length) === f ? k = [g] : k = [...k, g];
|
|
2651
|
-
return a || o(k), a == null || a(k, g, D, p), k;
|
|
2652
|
-
},
|
|
2653
|
-
isSelected: u
|
|
2654
|
-
};
|
|
2655
|
-
}
|
|
2656
|
-
function Ws(e, t, n = 0, r = 0, a = !1, s = Z) {
|
|
2657
|
-
const { from: o, to: i } = t || {}, { isSameDay: d, isAfter: u, isBefore: c } = s;
|
|
2658
|
-
let f;
|
|
2659
|
-
if (!o && !i)
|
|
2660
|
-
f = { from: e, to: n > 0 ? void 0 : e };
|
|
2661
|
-
else if (o && !i)
|
|
2662
|
-
d(o, e) ? n === 0 ? f = { from: o, to: e } : a ? f = { from: o, to: void 0 } : f = void 0 : c(e, o) ? f = { from: e, to: o } : f = { from: o, to: e };
|
|
2663
|
-
else if (o && i)
|
|
2664
|
-
if (d(o, e) && d(i, e))
|
|
2665
|
-
a ? f = { from: o, to: i } : f = void 0;
|
|
2666
|
-
else if (d(o, e))
|
|
2667
|
-
f = { from: o, to: n > 0 ? void 0 : e };
|
|
2668
|
-
else if (d(i, e))
|
|
2669
|
-
f = { from: e, to: n > 0 ? void 0 : e };
|
|
2670
|
-
else if (c(e, o))
|
|
2671
|
-
f = { from: e, to: i };
|
|
2672
|
-
else if (u(e, o))
|
|
2673
|
-
f = { from: o, to: e };
|
|
2674
|
-
else if (u(e, i))
|
|
2675
|
-
f = { from: o, to: e };
|
|
2676
|
-
else
|
|
2677
|
-
throw new Error("Invalid range");
|
|
2678
|
-
if (f != null && f.from && (f != null && f.to)) {
|
|
2679
|
-
const h = s.differenceInCalendarDays(f.to, f.from);
|
|
2680
|
-
r > 0 && h > r ? f = { from: e, to: void 0 } : n > 1 && h < n && (f = { from: e, to: void 0 });
|
|
2681
|
-
}
|
|
2682
|
-
return f;
|
|
2683
|
-
}
|
|
2684
|
-
function Ss(e, t, n = Z) {
|
|
2685
|
-
const r = Array.isArray(t) ? t : [t];
|
|
2686
|
-
let a = e.from;
|
|
2687
|
-
const s = n.differenceInCalendarDays(e.to, e.from), o = Math.min(s, 6);
|
|
2688
|
-
for (let i = 0; i <= o; i++) {
|
|
2689
|
-
if (r.includes(a.getDay()))
|
|
2690
|
-
return !0;
|
|
2691
|
-
a = n.addDays(a, 1);
|
|
2692
|
-
}
|
|
2693
|
-
return !1;
|
|
2694
|
-
}
|
|
2695
|
-
function Ot(e, t, n = Z) {
|
|
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);
|
|
2697
|
-
}
|
|
2698
|
-
function xs(e, t, n = Z) {
|
|
2699
|
-
const r = Array.isArray(t) ? t : [t];
|
|
2700
|
-
if (r.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : n.isDate(i) ? te(e, i, !1, n) : Rt(i, n) ? i.some((d) => te(e, d, !1, n)) : Ye(i) ? i.from && i.to ? Ot(e, { from: i.from, to: i.to }, n) : !1 : Gt(i) ? Ss(e, i.dayOfWeek, n) : tt(i) ? n.isAfter(i.before, i.after) ? Ot(e, {
|
|
2701
|
-
from: n.addDays(i.after, 1),
|
|
2702
|
-
to: n.addDays(i.before, -1)
|
|
2703
|
-
}, n) : ne(e.from, i, n) || ne(e.to, i, n) : nt(i) || rt(i) ? ne(e.from, i, n) || ne(e.to, i, n) : !1))
|
|
2704
|
-
return !0;
|
|
2705
|
-
const o = r.filter((i) => typeof i == "function");
|
|
2706
|
-
if (o.length) {
|
|
2707
|
-
let i = e.from;
|
|
2708
|
-
const d = n.differenceInCalendarDays(e.to, e.from);
|
|
2709
|
-
for (let u = 0; u <= d; u++) {
|
|
2710
|
-
if (o.some((c) => c(i)))
|
|
2711
|
-
return !0;
|
|
2712
|
-
i = n.addDays(i, 1);
|
|
2713
|
-
}
|
|
2714
|
-
}
|
|
2715
|
-
return !1;
|
|
2716
|
-
}
|
|
2717
|
-
function Ns(e, t) {
|
|
2718
|
-
const { disabled: n, excludeDisabled: r, resetOnSelect: a, selected: s, required: o, onSelect: i } = e, [d, u] = Te(s, i ? s : void 0), c = i ? s : d;
|
|
2719
|
-
return {
|
|
2720
|
-
selected: c,
|
|
2721
|
-
select: (g, D, p) => {
|
|
2722
|
-
const { min: k, max: x } = e;
|
|
2723
|
-
let v;
|
|
2724
|
-
if (g) {
|
|
2725
|
-
const b = c == null ? void 0 : c.from, W = c == null ? void 0 : c.to, w = !!b && !!W, l = !!b && !!W && t.isSameDay(b, W) && t.isSameDay(g, b);
|
|
2726
|
-
a && (w || !(c != null && c.from)) ? !o && l ? v = void 0 : v = { from: g, to: void 0 } : v = Ws(g, c, k, x, o, t);
|
|
2727
|
-
}
|
|
2728
|
-
return r && n && (v != null && v.from) && v.to && xs({ from: v.from, to: v.to }, n, t) && (v.from = g, v.to = void 0), i || u(v), i == null || i(v, g, D, p), v;
|
|
2729
|
-
},
|
|
2730
|
-
isSelected: (g) => c && te(c, g, !1, t)
|
|
2731
|
-
};
|
|
2732
|
-
}
|
|
2733
|
-
function Cs(e, t) {
|
|
2734
|
-
const { selected: n, required: r, onSelect: a } = e, [s, o] = Te(n, a ? n : void 0), i = a ? n : s, { isSameDay: d } = t;
|
|
2735
|
-
return {
|
|
2736
|
-
selected: i,
|
|
2737
|
-
select: (f, h, g) => {
|
|
2738
|
-
let D = f;
|
|
2739
|
-
return !r && i && i && d(f, i) && (D = void 0), a || o(D), a == null || a(D, f, h, g), D;
|
|
2740
|
-
},
|
|
2741
|
-
isSelected: (f) => i ? d(i, f) : !1
|
|
2742
|
-
};
|
|
2743
|
-
}
|
|
2744
|
-
function _s(e, t) {
|
|
2745
|
-
const n = Cs(e, t), r = ps(e, t), a = Ns(e, t);
|
|
2746
|
-
switch (e.mode) {
|
|
2747
|
-
case "single":
|
|
2748
|
-
return n;
|
|
2749
|
-
case "multiple":
|
|
2750
|
-
return r;
|
|
2751
|
-
case "range":
|
|
2752
|
-
return a;
|
|
2753
|
-
default:
|
|
2754
|
-
return;
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
function V(e, t) {
|
|
2758
|
-
return e instanceof H && e.timeZone === t ? e : new H(e, t);
|
|
2759
|
-
}
|
|
2760
|
-
function fe(e, t, n) {
|
|
2761
|
-
return V(e, t);
|
|
2762
|
-
}
|
|
2763
|
-
function pt(e, t, n) {
|
|
2764
|
-
return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? fe(e, t) : Array.isArray(e) ? e.map((r) => r instanceof Date ? fe(r, t) : r) : Ye(e) ? {
|
|
2765
|
-
...e,
|
|
2766
|
-
from: e.from ? V(e.from, t) : e.from,
|
|
2767
|
-
to: e.to ? V(e.to, t) : e.to
|
|
2768
|
-
} : tt(e) ? {
|
|
2769
|
-
before: fe(e.before, t),
|
|
2770
|
-
after: fe(e.after, t)
|
|
2771
|
-
} : nt(e) ? {
|
|
2772
|
-
after: fe(e.after, t)
|
|
2773
|
-
} : rt(e) ? {
|
|
2774
|
-
before: fe(e.before, t)
|
|
2775
|
-
} : e;
|
|
2776
|
-
}
|
|
2777
|
-
function Re(e, t, n) {
|
|
2778
|
-
return e && (Array.isArray(e) ? e.map((r) => pt(r, t)) : pt(e, t));
|
|
2779
|
-
}
|
|
2780
|
-
function js(e) {
|
|
2781
|
-
var ft;
|
|
2782
|
-
let t = e;
|
|
2783
|
-
const n = t.timeZone;
|
|
2784
|
-
if (n && (t = {
|
|
2785
|
-
...e,
|
|
2786
|
-
timeZone: n
|
|
2787
|
-
}, t.today && (t.today = V(t.today, n)), t.month && (t.month = V(t.month, n)), t.defaultMonth && (t.defaultMonth = V(t.defaultMonth, n)), t.startMonth && (t.startMonth = V(t.startMonth, n)), t.endMonth && (t.endMonth = V(t.endMonth, n)), t.mode === "single" && t.selected ? t.selected = V(t.selected, n) : t.mode === "multiple" && t.selected ? t.selected = (ft = t.selected) == null ? void 0 : ft.map((O) => V(O, n)) : t.mode === "range" && t.selected && (t.selected = {
|
|
2788
|
-
from: t.selected.from ? V(t.selected.from, n) : t.selected.from,
|
|
2789
|
-
to: t.selected.to ? V(t.selected.to, n) : t.selected.to
|
|
2790
|
-
}), t.disabled !== void 0 && (t.disabled = Re(t.disabled, n)), t.hidden !== void 0 && (t.hidden = Re(t.hidden, n)), t.modifiers)) {
|
|
2791
|
-
const O = {};
|
|
2792
|
-
Object.keys(t.modifiers).forEach((_) => {
|
|
2793
|
-
var M;
|
|
2794
|
-
O[_] = Re((M = t.modifiers) == null ? void 0 : M[_], n);
|
|
2795
|
-
}), t.modifiers = O;
|
|
2796
|
-
}
|
|
2797
|
-
const { components: r, formatters: a, labels: s, dateLib: o, locale: i, classNames: d } = Ce(() => {
|
|
2798
|
-
const O = { ...jt, ...t.locale }, _ = t.broadcastCalendar ? 1 : t.weekStartsOn, M = t.noonSafe && t.timeZone ? is(t.timeZone, {
|
|
2799
|
-
weekStartsOn: _,
|
|
2800
|
-
locale: O
|
|
2801
|
-
}) : void 0, C = t.dateLib && M ? { ...M, ...t.dateLib } : t.dateLib ?? M, A = new q({
|
|
2802
|
-
locale: O,
|
|
2803
|
-
weekStartsOn: _,
|
|
2804
|
-
firstWeekContainsDate: t.firstWeekContainsDate,
|
|
2805
|
-
useAdditionalWeekYearTokens: t.useAdditionalWeekYearTokens,
|
|
2806
|
-
useAdditionalDayOfYearTokens: t.useAdditionalDayOfYearTokens,
|
|
2807
|
-
timeZone: t.timeZone,
|
|
2808
|
-
numerals: t.numerals
|
|
2809
|
-
}, C);
|
|
2810
|
-
return {
|
|
2811
|
-
dateLib: A,
|
|
2812
|
-
components: Aa(t.components),
|
|
2813
|
-
formatters: Ja(t.formatters),
|
|
2814
|
-
labels: ns(t.labels, A.options),
|
|
2815
|
-
locale: O,
|
|
2816
|
-
classNames: { ...qa(), ...t.classNames }
|
|
2817
|
-
};
|
|
2818
|
-
}, [
|
|
2819
|
-
t.locale,
|
|
2820
|
-
t.broadcastCalendar,
|
|
2821
|
-
t.weekStartsOn,
|
|
2822
|
-
t.firstWeekContainsDate,
|
|
2823
|
-
t.useAdditionalWeekYearTokens,
|
|
2824
|
-
t.useAdditionalDayOfYearTokens,
|
|
2825
|
-
t.timeZone,
|
|
2826
|
-
t.numerals,
|
|
2827
|
-
t.dateLib,
|
|
2828
|
-
t.noonSafe,
|
|
2829
|
-
t.components,
|
|
2830
|
-
t.formatters,
|
|
2831
|
-
t.labels,
|
|
2832
|
-
t.classNames
|
|
2833
|
-
]);
|
|
2834
|
-
t.today || (t = { ...t, today: o.today() });
|
|
2835
|
-
const { captionLayout: u, mode: c, navLayout: f, numberOfMonths: h = 1, onDayBlur: g, onDayClick: D, onDayFocus: p, onDayKeyDown: k, onDayMouseEnter: x, onDayMouseLeave: v, onNextClick: b, onPrevClick: W, showWeekNumber: w, styles: l } = t, { formatCaption: S, formatDay: E, formatMonthDropdown: B, formatWeekNumber: F, formatWeekNumberHeader: $, formatWeekdayName: ae, formatYearDropdown: L } = a, G = ws(t, o), { days: ue, months: pe, navStart: Pe, navEnd: Ee, previousMonth: U, nextMonth: Q, goToMonth: ee } = G, Fe = Ha(ue, t, Pe, Ee, o), { isSelected: he, select: me, selected: We } = _s(t, o) ?? {}, { blur: ot, focused: Se, isFocusTarget: an, moveFocus: it, setFocused: xe } = Os(t, G, Fe, he ?? (() => !1), o), { labelDayButton: sn, labelGridcell: on, labelGrid: dn, labelMonthDropdown: un, labelNav: dt, labelPrevious: cn, labelNext: fn, labelWeekday: ln, labelWeekNumber: hn, labelWeekNumberHeader: mn, labelYearDropdown: yn } = s, gn = Ce(() => ss(o, t.ISOWeek, t.broadcastCalendar, t.today), [o, t.ISOWeek, t.broadcastCalendar, t.today]), ut = c !== void 0 || D !== void 0, Be = R(() => {
|
|
2836
|
-
U && (ee(U), W == null || W(U));
|
|
2837
|
-
}, [U, ee, W]), Ie = R(() => {
|
|
2838
|
-
Q && (ee(Q), b == null || b(Q));
|
|
2839
|
-
}, [ee, Q, b]), bn = R((O, _) => (M) => {
|
|
2840
|
-
M.preventDefault(), M.stopPropagation(), xe(O), !_.disabled && (me == null || me(O.date, _, M), D == null || D(O.date, _, M));
|
|
2841
|
-
}, [me, D, xe]), vn = R((O, _) => (M) => {
|
|
2842
|
-
xe(O), p == null || p(O.date, _, M);
|
|
2843
|
-
}, [p, xe]), Mn = R((O, _) => (M) => {
|
|
2844
|
-
ot(), g == null || g(O.date, _, M);
|
|
2845
|
-
}, [ot, g]), wn = R((O, _) => (M) => {
|
|
2846
|
-
const C = {
|
|
2847
|
-
ArrowLeft: [
|
|
2848
|
-
M.shiftKey ? "month" : "day",
|
|
2849
|
-
t.dir === "rtl" ? "after" : "before"
|
|
2850
|
-
],
|
|
2851
|
-
ArrowRight: [
|
|
2852
|
-
M.shiftKey ? "month" : "day",
|
|
2853
|
-
t.dir === "rtl" ? "before" : "after"
|
|
2854
|
-
],
|
|
2855
|
-
ArrowDown: [M.shiftKey ? "year" : "week", "after"],
|
|
2856
|
-
ArrowUp: [M.shiftKey ? "year" : "week", "before"],
|
|
2857
|
-
PageUp: [M.shiftKey ? "year" : "month", "before"],
|
|
2858
|
-
PageDown: [M.shiftKey ? "year" : "month", "after"],
|
|
2859
|
-
Home: ["startOfWeek", "before"],
|
|
2860
|
-
End: ["endOfWeek", "after"]
|
|
2861
|
-
};
|
|
2862
|
-
if (C[M.key]) {
|
|
2863
|
-
M.preventDefault(), M.stopPropagation();
|
|
2864
|
-
const [A, N] = C[M.key];
|
|
2865
|
-
it(A, N);
|
|
2866
|
-
}
|
|
2867
|
-
k == null || k(O.date, _, M);
|
|
2868
|
-
}, [it, k, t.dir]), kn = R((O, _) => (M) => {
|
|
2869
|
-
x == null || x(O.date, _, M);
|
|
2870
|
-
}, [x]), Dn = R((O, _) => (M) => {
|
|
2871
|
-
v == null || v(O.date, _, M);
|
|
2872
|
-
}, [v]), On = R((O) => (_) => {
|
|
2873
|
-
const M = Number(_.target.value), C = o.setMonth(o.startOfMonth(O), M);
|
|
2874
|
-
ee(C);
|
|
2875
|
-
}, [o, ee]), pn = R((O) => (_) => {
|
|
2876
|
-
const M = Number(_.target.value), C = o.setYear(o.startOfMonth(O), M);
|
|
2877
|
-
ee(C);
|
|
2878
|
-
}, [o, ee]), { className: Wn, style: Sn } = Ce(() => ({
|
|
2879
|
-
className: [d[m.Root], t.className].filter(Boolean).join(" "),
|
|
2880
|
-
style: { ...l == null ? void 0 : l[m.Root], ...t.style }
|
|
2881
|
-
}), [d, t.className, t.style, l]), xn = ja(t), ct = Ne(null);
|
|
2882
|
-
fs(ct, !!t.animate, {
|
|
2883
|
-
classNames: d,
|
|
2884
|
-
months: pe,
|
|
2885
|
-
focused: Se,
|
|
2886
|
-
dateLib: o
|
|
2887
|
-
});
|
|
2888
|
-
const Nn = {
|
|
2889
|
-
dayPickerProps: t,
|
|
2890
|
-
selected: We,
|
|
2891
|
-
select: me,
|
|
2892
|
-
isSelected: he,
|
|
2893
|
-
months: pe,
|
|
2894
|
-
nextMonth: Q,
|
|
2895
|
-
previousMonth: U,
|
|
2896
|
-
goToMonth: ee,
|
|
2897
|
-
getModifiers: Fe,
|
|
2898
|
-
components: r,
|
|
2899
|
-
classNames: d,
|
|
2900
|
-
styles: l,
|
|
2901
|
-
labels: s,
|
|
2902
|
-
formatters: a
|
|
2903
|
-
};
|
|
2904
|
-
return y.createElement(
|
|
2905
|
-
$t.Provider,
|
|
2906
|
-
{ value: Nn },
|
|
2907
|
-
y.createElement(
|
|
2908
|
-
r.Root,
|
|
2909
|
-
{ rootRef: t.animate ? ct : void 0, className: Wn, style: Sn, dir: t.dir, id: t.id, lang: t.lang ?? i.code, nonce: t.nonce, title: t.title, role: t.role, "aria-label": t["aria-label"], "aria-labelledby": t["aria-labelledby"], ...xn },
|
|
2910
|
-
y.createElement(
|
|
2911
|
-
r.Months,
|
|
2912
|
-
{ className: d[m.Months], style: l == null ? void 0 : l[m.Months] },
|
|
2913
|
-
!t.hideNavigation && !f && y.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[m.Nav], style: l == null ? void 0 : l[m.Nav], "aria-label": dt(), onPreviousClick: Be, onNextClick: Ie, previousMonth: U, nextMonth: Q }),
|
|
2914
|
-
pe.map((O, _) => y.createElement(
|
|
2915
|
-
r.Month,
|
|
2916
|
-
{
|
|
2917
|
-
"data-animated-month": t.animate ? "true" : void 0,
|
|
2918
|
-
className: d[m.Month],
|
|
2919
|
-
style: l == null ? void 0 : l[m.Month],
|
|
2920
|
-
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
2921
|
-
key: _,
|
|
2922
|
-
displayIndex: _,
|
|
2923
|
-
calendarMonth: O
|
|
2924
|
-
},
|
|
2925
|
-
f === "around" && !t.hideNavigation && _ === 0 && y.createElement(
|
|
2926
|
-
r.PreviousMonthButton,
|
|
2927
|
-
{ type: "button", className: d[m.PreviousMonthButton], tabIndex: U ? void 0 : -1, "aria-disabled": U ? void 0 : !0, "aria-label": cn(U), onClick: Be, "data-animated-button": t.animate ? "true" : void 0 },
|
|
2928
|
-
y.createElement(r.Chevron, { disabled: U ? void 0 : !0, className: d[m.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
|
|
2929
|
-
),
|
|
2930
|
-
y.createElement(r.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: d[m.MonthCaption], style: l == null ? void 0 : l[m.MonthCaption], calendarMonth: O, displayIndex: _ }, u != null && u.startsWith("dropdown") ? y.createElement(
|
|
2931
|
-
r.DropdownNav,
|
|
2932
|
-
{ className: d[m.Dropdowns], style: l == null ? void 0 : l[m.Dropdowns] },
|
|
2933
|
-
(() => {
|
|
2934
|
-
const M = u === "dropdown" || u === "dropdown-months" ? y.createElement(r.MonthsDropdown, { key: "month", className: d[m.MonthsDropdown], "aria-label": un(), classNames: d, components: r, disabled: !!t.disableNavigation, onChange: On(O.date), options: rs(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)), C = u === "dropdown" || u === "dropdown-years" ? y.createElement(r.YearsDropdown, { key: "year", className: d[m.YearsDropdown], "aria-label": yn(o.options), classNames: d, components: r, disabled: !!t.disableNavigation, onChange: pn(O.date), options: os(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));
|
|
2935
|
-
return o.getMonthYearOrder() === "year-first" ? [C, M] : [M, C];
|
|
2936
|
-
})(),
|
|
2937
|
-
y.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
2938
|
-
border: 0,
|
|
2939
|
-
clip: "rect(0 0 0 0)",
|
|
2940
|
-
height: "1px",
|
|
2941
|
-
margin: "-1px",
|
|
2942
|
-
overflow: "hidden",
|
|
2943
|
-
padding: 0,
|
|
2944
|
-
position: "absolute",
|
|
2945
|
-
width: "1px",
|
|
2946
|
-
whiteSpace: "nowrap",
|
|
2947
|
-
wordWrap: "normal"
|
|
2948
|
-
} }, S(O.date, o.options, o))
|
|
2949
|
-
) : y.createElement(r.CaptionLabel, { className: d[m.CaptionLabel], role: "status", "aria-live": "polite" }, S(O.date, o.options, o))),
|
|
2950
|
-
f === "around" && !t.hideNavigation && _ === h - 1 && y.createElement(
|
|
2951
|
-
r.NextMonthButton,
|
|
2952
|
-
{ type: "button", className: d[m.NextMonthButton], tabIndex: Q ? void 0 : -1, "aria-disabled": Q ? void 0 : !0, "aria-label": fn(Q), onClick: Ie, "data-animated-button": t.animate ? "true" : void 0 },
|
|
2953
|
-
y.createElement(r.Chevron, { disabled: Q ? void 0 : !0, className: d[m.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
|
|
2954
|
-
),
|
|
2955
|
-
_ === h - 1 && f === "after" && !t.hideNavigation && y.createElement(r.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[m.Nav], style: l == null ? void 0 : l[m.Nav], "aria-label": dt(), onPreviousClick: Be, onNextClick: Ie, previousMonth: U, nextMonth: Q }),
|
|
2956
|
-
y.createElement(
|
|
2957
|
-
r.MonthGrid,
|
|
2958
|
-
{ role: "grid", "aria-multiselectable": c === "multiple" || c === "range", "aria-label": dn(O.date, o.options, o) || void 0, className: d[m.MonthGrid], style: l == null ? void 0 : l[m.MonthGrid] },
|
|
2959
|
-
!t.hideWeekdays && y.createElement(
|
|
2960
|
-
r.Weekdays,
|
|
2961
|
-
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: d[m.Weekdays], style: l == null ? void 0 : l[m.Weekdays] },
|
|
2962
|
-
w && y.createElement(r.WeekNumberHeader, { "aria-label": mn(o.options), className: d[m.WeekNumberHeader], style: l == null ? void 0 : l[m.WeekNumberHeader], scope: "col" }, $()),
|
|
2963
|
-
gn.map((M) => y.createElement(r.Weekday, { "aria-label": ln(M, o.options, o), className: d[m.Weekday], key: String(M), style: l == null ? void 0 : l[m.Weekday], scope: "col" }, ae(M, o.options, o)))
|
|
2964
|
-
),
|
|
2965
|
-
y.createElement(r.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: d[m.Weeks], style: l == null ? void 0 : l[m.Weeks] }, O.weeks.map((M) => y.createElement(
|
|
2966
|
-
r.Week,
|
|
2967
|
-
{ className: d[m.Week], key: M.weekNumber, style: l == null ? void 0 : l[m.Week], week: M },
|
|
2968
|
-
w && y.createElement(r.WeekNumber, { week: M, style: l == null ? void 0 : l[m.WeekNumber], "aria-label": hn(M.weekNumber, {
|
|
2969
|
-
locale: i
|
|
2970
|
-
}), className: d[m.WeekNumber], scope: "row", role: "rowheader" }, F(M.weekNumber, o)),
|
|
2971
|
-
M.days.map((C) => {
|
|
2972
|
-
const { date: A } = C, N = Fe(C);
|
|
2973
|
-
if (N[T.focused] = !N.hidden && !!(Se != null && Se.isEqualTo(C)), N[z.selected] = (he == null ? void 0 : he(A)) || N.selected, Ye(We)) {
|
|
2974
|
-
const { from: He, to: ze } = We;
|
|
2975
|
-
N[z.range_start] = !!(He && ze && o.isSameDay(A, He)), N[z.range_end] = !!(He && ze && o.isSameDay(A, ze)), N[z.range_middle] = te(We, A, !0, o);
|
|
2976
|
-
}
|
|
2977
|
-
const Cn = as(N, l, t.modifiersStyles), _n = za(N, d, t.modifiersClassNames), Yn = !ut && !N.hidden ? on(A, N, o.options, o) : void 0;
|
|
2978
|
-
return y.createElement(r.Day, { key: `${C.isoDate}_${C.displayMonthId}`, day: C, modifiers: N, className: _n.join(" "), style: Cn, role: "gridcell", "aria-selected": N.selected || void 0, "aria-label": Yn, "data-day": C.isoDate, "data-month": C.outside ? C.dateMonthId : void 0, "data-selected": N.selected || void 0, "data-disabled": N.disabled || void 0, "data-hidden": N.hidden || void 0, "data-outside": C.outside || void 0, "data-focused": N.focused || void 0, "data-today": N.today || void 0 }, !N.hidden && ut ? y.createElement(r.DayButton, { className: d[m.DayButton], style: l == null ? void 0 : l[m.DayButton], type: "button", day: C, modifiers: N, disabled: !N.focused && N.disabled || void 0, "aria-disabled": N.focused && N.disabled || void 0, tabIndex: an(C) ? 0 : -1, "aria-label": sn(A, N, o.options, o), onClick: bn(C, N), onBlur: Mn(C, N), onFocus: vn(C, N), onKeyDown: wn(C, N), onMouseEnter: kn(C, N), onMouseLeave: Dn(C, N) }, E(A, o.options, o)) : !N.hidden && E(C.date, o.options, o));
|
|
2979
|
-
})
|
|
2980
|
-
)))
|
|
2981
|
-
)
|
|
2982
|
-
))
|
|
2983
|
-
),
|
|
2984
|
-
t.footer && y.createElement(r.Footer, { className: d[m.Footer], style: l == null ? void 0 : l[m.Footer], role: "status", "aria-live": "polite" }, t.footer)
|
|
2985
|
-
)
|
|
2986
|
-
);
|
|
2987
|
-
}
|
|
2988
|
-
const Wt = {
|
|
2989
|
-
en: () => Promise.resolve().then(() => Pr).then((e) => e.enUS),
|
|
2990
|
-
it: () => import("./it-B4ySaRyK.js").then((e) => e.it),
|
|
2991
|
-
de: () => import("./de-DmZ-8rTN.js").then((e) => e.de),
|
|
2992
|
-
es: () => import("./es-BNncHKex.js").then((e) => e.es),
|
|
2993
|
-
fr: () => import("./fr-CH8ADfhN.js").then((e) => e.fr),
|
|
2994
|
-
pt: () => import("./pt-_njpXyOZ.js").then((e) => e.pt),
|
|
2995
|
-
nl: () => import("./nl-DuShqwuV.js").then((e) => e.nl),
|
|
2996
|
-
pl: () => import("./pl-CKQwX9Fk.js").then((e) => e.pl),
|
|
2997
|
-
ro: () => import("./ro-3X6_4FcN.js").then((e) => e.ro),
|
|
2998
|
-
ru: () => import("./ru-bAcgmnS-.js").then((e) => e.ru),
|
|
2999
|
-
sv: () => import("./sv-BSGEJ-8B.js").then((e) => e.sv),
|
|
3000
|
-
el: () => import("./el-Bela9mxs.js").then((e) => e.el),
|
|
3001
|
-
ja: () => import("./ja-CGF6Io9P.js").then((e) => e.ja),
|
|
3002
|
-
zh: () => import("./zh-CN-BgM0Io2O.js").then((e) => e.zhCN),
|
|
3003
|
-
hi: () => import("./hi-Bppfxp8l.js").then((e) => e.hi),
|
|
3004
|
-
ar: () => import("./ar-THMLfSoN.js").then((e) => e.ar),
|
|
3005
|
-
tr: () => import("./tr-CTpgUtw6.js").then((e) => e.tr),
|
|
3006
|
-
sq: () => import("./sq-jYFqr4Ga.js").then((e) => e.sq)
|
|
3007
|
-
};
|
|
3008
|
-
async function Ys(e) {
|
|
3009
|
-
const t = e.toLowerCase().split("-")[0];
|
|
3010
|
-
return (Wt[t] ?? Wt.en)();
|
|
3011
|
-
}
|
|
3012
|
-
const Ve = /* @__PURE__ */ new Map();
|
|
3013
|
-
function qs(e) {
|
|
3014
|
-
const t = e.toLowerCase().split("-")[0], [n, r] = _e(
|
|
3015
|
-
() => Ve.get(t)
|
|
3016
|
-
);
|
|
3017
|
-
return xt(() => {
|
|
3018
|
-
const a = Ve.get(t);
|
|
3019
|
-
if (a) {
|
|
3020
|
-
r(a);
|
|
3021
|
-
return;
|
|
3022
|
-
}
|
|
3023
|
-
let s = !1;
|
|
3024
|
-
return Ys(t).then((o) => {
|
|
3025
|
-
Ve.set(t, o), s || r(o);
|
|
3026
|
-
}), () => {
|
|
3027
|
-
s = !0;
|
|
3028
|
-
};
|
|
3029
|
-
}, [t]), n;
|
|
3030
|
-
}
|
|
3031
|
-
const Ue = {
|
|
3032
|
-
en: "dd/MM/yyyy",
|
|
3033
|
-
"en-us": "MM/dd/yyyy",
|
|
3034
|
-
de: "dd.MM.yyyy",
|
|
3035
|
-
fr: "dd/MM/yyyy",
|
|
3036
|
-
es: "dd/MM/yyyy",
|
|
3037
|
-
it: "dd/MM/yyyy",
|
|
3038
|
-
pt: "dd/MM/yyyy",
|
|
3039
|
-
nl: "dd-MM-yyyy",
|
|
3040
|
-
pl: "dd.MM.yyyy",
|
|
3041
|
-
cs: "dd.MM.yyyy",
|
|
3042
|
-
da: "dd.MM.yyyy",
|
|
3043
|
-
sv: "yyyy-MM-dd",
|
|
3044
|
-
fi: "dd.MM.yyyy",
|
|
3045
|
-
nb: "dd.MM.yyyy",
|
|
3046
|
-
ja: "yyyy/MM/dd",
|
|
3047
|
-
zh: "yyyy/MM/dd",
|
|
3048
|
-
ko: "yyyy.MM.dd",
|
|
3049
|
-
ar: "dd/MM/yyyy",
|
|
3050
|
-
he: "dd.MM.yyyy"
|
|
3051
|
-
};
|
|
3052
|
-
function $s(e) {
|
|
3053
|
-
const t = e.toLowerCase();
|
|
3054
|
-
return Ue[t] ?? Ue[t.split("-")[0]] ?? Ue.en;
|
|
3055
|
-
}
|
|
3056
|
-
function Gs(e, t, n) {
|
|
3057
|
-
const r = [];
|
|
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;
|
|
3059
|
-
}
|
|
3060
|
-
function Rs({ orientation: e }) {
|
|
3061
|
-
return e === "left" ? /* @__PURE__ */ lt(In, { className: "ds:size-4 ds:rtl:-scale-x-100" }) : /* @__PURE__ */ lt(Hn, { className: "ds:size-4 ds:rtl:-scale-x-100" });
|
|
3062
|
-
}
|
|
3063
|
-
const Qe = "ds:bg-[var(--calendar-range-fill)]", Ts = "ds:size-[var(--min-target-size)] ds:text-center ds:align-middle", Ps = [
|
|
3064
|
-
// `rdp-day_button` stays as a stable structural/test hook. Selection fills
|
|
3065
|
-
// target the descendant `button` instead: inside an arbitrary variant an
|
|
3066
|
-
// underscore reads as a SPACE, so `.rdp-day_button` would compile to the
|
|
3067
|
-
// never-matching `.rdp-day button` pair.
|
|
3068
|
-
"rdp-day_button",
|
|
3069
|
-
// `relative` anchors the `today` dot (an `::after` marker set on this button
|
|
3070
|
-
// by the `DayFlag.today` entry below) so it survives every cell state.
|
|
3071
|
-
"ds:relative",
|
|
3072
|
-
"ds:flex ds:items-center ds:justify-center",
|
|
3073
|
-
"ds:size-[calc(var(--min-target-size)-2px)]",
|
|
3074
|
-
"ds:mx-auto ds:rounded-[var(--radius-sm)]",
|
|
3075
|
-
"ds:border-2 ds:border-transparent",
|
|
3076
|
-
"ds:cursor-pointer ds:font-[inherit] ds:text-[inherit] ds:bg-transparent",
|
|
3077
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
3078
|
-
"ds:hover:bg-muted",
|
|
3079
|
-
// Disabled days must not offer hover affordance — the base `hover:bg-muted`
|
|
3080
|
-
// still fires on a disabled `<button>`, implying it is clickable. Reset it.
|
|
3081
|
-
"ds:disabled:hover:bg-transparent",
|
|
3082
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
3083
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
3084
|
-
"ds:forced-colors:focus-visible:outline-[Highlight]",
|
|
3085
|
-
"ds:disabled:cursor-default"
|
|
3086
|
-
].join(" "), Es = [
|
|
3087
|
-
"rdp-today",
|
|
3088
|
-
"ds:[&_button]:font-semibold",
|
|
3089
|
-
"ds:[&_button]:after:content-['']",
|
|
3090
|
-
"ds:[&_button]:after:absolute",
|
|
3091
|
-
// Centre it: logical `start-1/2` + a physical translate that is flipped
|
|
3092
|
-
// under RTL (kit idiom `-translate-x-1/2 rtl:translate-x-1/2`) so the dot
|
|
3093
|
-
// stays centred under the numeral in Arabic too.
|
|
3094
|
-
"ds:[&_button]:after:bottom-[3px] ds:[&_button]:after:start-1/2",
|
|
3095
|
-
"ds:[&_button]:after:-translate-x-1/2 ds:[&_button]:after:rtl:translate-x-1/2",
|
|
3096
|
-
"ds:[&_button]:after:size-[3px] ds:[&_button]:after:rounded-full",
|
|
3097
|
-
// `bg-current` = the button's own text colour, so the dot is `--foreground`
|
|
3098
|
-
// on a plain/in-range cell and `--primary-foreground` on a solid cap. Under
|
|
3099
|
-
// forced-colors, `currentColor` is preserved and resolves to the button's
|
|
3100
|
-
// forced colour — CanvasText on a plain cell, HighlightText on a
|
|
3101
|
-
// Highlight-filled cap/range (the selection states already force the button
|
|
3102
|
-
// text to HighlightText) — so the dot keeps the guaranteed system-colour
|
|
3103
|
-
// pairing in every state without a separate (and previously wrong, because
|
|
3104
|
-
// it pinned CanvasText even on a Highlight cap) forced-colors override.
|
|
3105
|
-
"ds:[&_button]:after:bg-current"
|
|
3106
|
-
].join(" "), St = [
|
|
3107
|
-
"ds:inline-flex ds:items-center ds:justify-center",
|
|
3108
|
-
"ds:size-[var(--min-target-size)] ds:rounded-[var(--radius-sm)]",
|
|
3109
|
-
"ds:cursor-pointer ds:bg-transparent ds:text-foreground",
|
|
3110
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
3111
|
-
"ds:hover:bg-muted",
|
|
3112
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
3113
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
3114
|
-
"ds:disabled:opacity-50 ds:disabled:cursor-default",
|
|
3115
|
-
"ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-default"
|
|
3116
|
-
].join(" "), Vs = {
|
|
3117
|
-
/* ---- Layout shell ---- */
|
|
3118
|
-
[m.Root]: "rdp-root ds:relative ds:font-sans ds:text-foreground",
|
|
3119
|
-
[m.Months]: "rdp-months ds:relative ds:flex ds:flex-wrap ds:gap-[var(--spacing-lg)]",
|
|
3120
|
-
[m.Month]: "rdp-month ds:flex ds:flex-col",
|
|
3121
|
-
[m.MonthGrid]: "rdp-month_grid ds:border-collapse",
|
|
3122
|
-
/* ---- Caption + navigation ---- */
|
|
3123
|
-
[m.MonthCaption]: "rdp-month_caption ds:flex ds:items-center ds:h-[var(--min-target-size)] ds:font-semibold ds:text-[length:var(--font-size-base)]",
|
|
3124
|
-
[m.CaptionLabel]: "rdp-caption_label ds:inline-flex ds:items-center",
|
|
3125
|
-
// `top-0` is the block-axis (RTL-agnostic) inset; `end-0` is the
|
|
3126
|
-
// inline-axis logical inset → `inset-inline-end: 0`, mirroring under RTL.
|
|
3127
|
-
[m.Nav]: "rdp-nav ds:absolute ds:top-0 ds:end-0 ds:flex ds:items-center ds:h-[var(--min-target-size)]",
|
|
3128
|
-
[m.PreviousMonthButton]: `rdp-button_previous ${St}`,
|
|
3129
|
-
[m.NextMonthButton]: `rdp-button_next ${St}`,
|
|
3130
|
-
[m.Chevron]: "rdp-chevron ds:inline-block ds:fill-current",
|
|
3131
|
-
/* ---- Weekday header row ---- */
|
|
3132
|
-
[m.Weekdays]: "rdp-weekdays",
|
|
3133
|
-
// Full-strength `--muted-foreground` (6.93:1 on white), not the old
|
|
3134
|
-
// `opacity-75` multiply on top of it (≈3.80:1 — fails AA).
|
|
3135
|
-
[m.Weekday]: "rdp-weekday ds:py-[var(--spacing-xs)] ds:text-center ds:font-medium ds:text-[length:var(--font-size-sm)] ds:text-muted-foreground",
|
|
3136
|
-
/* ---- Week rows + day cells ---- */
|
|
3137
|
-
[m.Weeks]: "rdp-weeks",
|
|
3138
|
-
[m.Week]: "rdp-week",
|
|
3139
|
-
[m.Day]: `rdp-day ${Ts}`,
|
|
3140
|
-
[m.DayButton]: Ps,
|
|
3141
|
-
[m.WeekNumber]: "rdp-week_number ds:text-muted-foreground ds:text-center ds:text-[length:var(--font-size-sm)] ds:size-[var(--min-target-size)]",
|
|
3142
|
-
/* ---- Day flags ----
|
|
3143
|
-
De-emphasised states now ride tokened colours with GUARANTEED contrast
|
|
3144
|
-
ratios instead of `opacity-*` alpha multiplies (which read muddy and
|
|
3145
|
-
dodge the ratio). `today` is a shape marker (see TODAY_DOT) that survives
|
|
3146
|
-
inside a range and on a solid cap; `disabled` adds a `line-through`
|
|
3147
|
-
non-colour "unavailable" cue on top of the muted colour. */
|
|
3148
|
-
[T.today]: Es,
|
|
3149
|
-
[T.outside]: "rdp-outside ds:text-muted-foreground",
|
|
3150
|
-
[T.disabled]: "rdp-disabled ds:text-muted-foreground ds:[&_button]:line-through",
|
|
3151
|
-
[T.hidden]: "rdp-hidden ds:invisible",
|
|
3152
|
-
/* ---- Selection states ----
|
|
3153
|
-
The colour fill lives on the inner `.rdp-day_button` via descendant
|
|
3154
|
-
selectors so the cell padding stays transparent and the rounded
|
|
3155
|
-
button reads as the selected chip. */
|
|
3156
|
-
[z.selected]: "rdp-selected ds:[&_button]:bg-primary ds:[&_button]:text-primary-foreground ds:[&_button]:border-primary ds:[&_button]:hover:bg-primary-hover ds:forced-colors:[&_button]:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]",
|
|
3157
|
-
[z.range_start]: `rdp-range_start ${Qe} ds:rounded-s-[var(--radius-sm)] ds:[&_button]:bg-primary ds:[&_button]:text-primary-foreground ds:[&_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_button]:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]`,
|
|
3158
|
-
// rdp applies BOTH `selected` and `range_middle` to a middle day. `selected`
|
|
3159
|
-
// fills the button (solid `--primary`, white text); `range_middle` must undo
|
|
3160
|
-
// that so the day reads as `--foreground` on the soft band, NOT white text on
|
|
3161
|
-
// it (≈1.3:1). The `bg`/`text` overrides use the compound `&.rdp-selected`
|
|
3162
|
-
// selector so they out-specify `selected`'s `[&_button]` rules deterministically
|
|
3163
|
-
// (Tailwind emits same-specificity utilities in an unstable order otherwise).
|
|
3164
|
-
[z.range_middle]: `rdp-range_middle ${Qe} ds:[&.rdp-selected_button]:bg-transparent ds:[&_button]:border-transparent ds:[&.rdp-selected_button]:text-foreground ds:[&_button]:rounded-none ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]`,
|
|
3165
|
-
[z.range_end]: `rdp-range_end ${Qe} ds:rounded-e-[var(--radius-sm)] ds:[&_button]:bg-primary ds:[&_button]:text-primary-foreground ds:[&_button]:border-primary ds:forced-colors:bg-[Highlight] ds:forced-colors:[&_button]:bg-[Highlight] ds:forced-colors:[&_button]:text-[HighlightText]`
|
|
3166
|
-
}, Xe = "ds:bg-[var(--calendar-compare-fill)] ds:border-b-2 ds:border-dashed ds:border-b-[var(--calendar-compare-edge)]", Us = {
|
|
3167
|
-
compareStart: `rdp-compare_start ${Xe} ds:rounded-s-[var(--radius-sm)]`,
|
|
3168
|
-
compareMiddle: `rdp-compare_middle ${Xe}`,
|
|
3169
|
-
compareEnd: `rdp-compare_end ${Xe} ds:rounded-e-[var(--radius-sm)]`
|
|
3170
|
-
}, Qs = re(
|
|
3171
|
-
[
|
|
3172
|
-
"ds:relative ds:flex ds:items-center ds:w-full",
|
|
3173
|
-
"ds:border ds:text-foreground",
|
|
3174
|
-
"ds:placeholder:text-muted-foreground",
|
|
3175
|
-
"ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
3176
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
3177
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
3178
|
-
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
3179
|
-
].join(" "),
|
|
3180
|
-
{
|
|
3181
|
-
variants: {
|
|
3182
|
-
size: {
|
|
3183
|
-
sm: "ds:h-8 ds:text-[length:var(--font-size-sm)] ds:ps-3 ds:pe-10",
|
|
3184
|
-
md: "ds:text-[length:var(--font-size-base)] ds:ps-3 ds:pe-10",
|
|
3185
|
-
lg: "ds:h-12 ds:text-[length:var(--font-size-lg)] ds:ps-4 ds:pe-12"
|
|
3186
|
-
},
|
|
3187
|
-
tone: {
|
|
3188
|
-
default: "ds:border-border",
|
|
3189
|
-
error: "ds:border-destructive"
|
|
3190
|
-
},
|
|
3191
|
-
// `input` (default) shares the soft fill + halo with TextInput / Select
|
|
3192
|
-
// (`INPUT_SURFACE_CHROME`). `button` drops the halo and takes the outline
|
|
3193
|
-
// Button's chrome (radius-md, transparent fill, hover/active) so a picker
|
|
3194
|
-
// can sit flush among Buttons in a toolbar. The halo is a11y-load-bearing
|
|
3195
|
-
// on the input chrome (tokens `--shadow-input`), so `input` stays default.
|
|
3196
|
-
chrome: {
|
|
3197
|
-
input: "ds:rounded-[var(--radius-sm)] ds:bg-input ds:shadow-[var(--shadow-input)]",
|
|
3198
|
-
button: "ds:rounded-[var(--radius-md)] ds:bg-transparent ds:shadow-none ds:hover:bg-muted/10 ds:active:bg-muted/20"
|
|
3199
|
-
}
|
|
3200
|
-
},
|
|
3201
|
-
compoundVariants: [
|
|
3202
|
-
// `md` height is chrome-specific: `input` keeps the 44px touch target;
|
|
3203
|
-
// `button` matches the kit Button's `md` height (40px / h-10).
|
|
3204
|
-
{ chrome: "input", size: "md", class: "ds:h-[var(--min-target-size)]" },
|
|
3205
|
-
{ chrome: "button", size: "md", class: "ds:h-10" }
|
|
3206
|
-
],
|
|
3207
|
-
defaultVariants: {
|
|
3208
|
-
size: "md",
|
|
3209
|
-
tone: "default",
|
|
3210
|
-
chrome: "input"
|
|
3211
|
-
}
|
|
3212
|
-
}
|
|
3213
|
-
), Xs = re(
|
|
3214
|
-
[
|
|
3215
|
-
"ds:w-full ds:min-w-0 ds:rounded-[var(--radius-sm)] ds:border ds:bg-input",
|
|
3216
|
-
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
3217
|
-
"ds:text-[length:var(--font-size-sm)] ds:text-foreground",
|
|
3218
|
-
"ds:shadow-[var(--shadow-input)]",
|
|
3219
|
-
"ds:transition-[colors,box-shadow] ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
3220
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
3221
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
3222
|
-
].join(" "),
|
|
3223
|
-
{
|
|
3224
|
-
variants: {
|
|
3225
|
-
state: {
|
|
3226
|
-
default: "ds:border-border",
|
|
3227
|
-
active: "ds:border-primary",
|
|
3228
|
-
error: "ds:border-destructive"
|
|
3229
|
-
}
|
|
3230
|
-
},
|
|
3231
|
-
defaultVariants: { state: "default" }
|
|
3232
|
-
}
|
|
3233
|
-
), Ks = re(
|
|
3234
|
-
[
|
|
3235
|
-
"ds:inline-flex ds:items-center ds:justify-center ds:min-h-[var(--min-target-size)]",
|
|
3236
|
-
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:rounded-[var(--radius-sm)]",
|
|
3237
|
-
"ds:text-[length:var(--font-size-sm)] ds:font-medium ds:cursor-pointer",
|
|
3238
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
3239
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
3240
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
3241
|
-
"ds:disabled:cursor-not-allowed ds:disabled:opacity-50"
|
|
3242
|
-
].join(" "),
|
|
3243
|
-
{
|
|
3244
|
-
variants: {
|
|
3245
|
-
intent: {
|
|
3246
|
-
ghost: "ds:bg-transparent ds:text-foreground ds:hover:bg-muted",
|
|
3247
|
-
primary: "ds:bg-primary ds:text-primary-foreground ds:hover:bg-primary-hover"
|
|
3248
|
-
}
|
|
3249
|
-
},
|
|
3250
|
-
defaultVariants: { intent: "ghost" }
|
|
3251
|
-
}
|
|
3252
|
-
), Js = re(
|
|
3253
|
-
"ds:inline-flex ds:items-center ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-input ds:p-[2px]"
|
|
3254
|
-
), Zs = re(
|
|
3255
|
-
[
|
|
3256
|
-
"ds:inline-flex ds:items-center ds:justify-center ds:cursor-pointer",
|
|
3257
|
-
// Meet the kit touch-target rule (44px base / 48px accessible), matching
|
|
3258
|
-
// the footer actions, rather than the ~22px a bare text segment would be.
|
|
3259
|
-
"ds:min-h-[calc(var(--min-target-size)-4px)]",
|
|
3260
|
-
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
3261
|
-
"ds:rounded-[calc(var(--radius-sm)-2px)] ds:text-[length:var(--font-size-xs)] ds:font-medium",
|
|
3262
|
-
"ds:text-muted-foreground",
|
|
3263
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
3264
|
-
"ds:data-[state=checked]:bg-primary ds:data-[state=checked]:text-primary-foreground",
|
|
3265
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
3266
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
3267
|
-
].join(" ")
|
|
3268
|
-
), Ls = re(
|
|
3269
|
-
"ds:ps-[var(--spacing-sm)] ds:pt-[var(--spacing-sm)] ds:pb-[var(--spacing-xs)] ds:text-[length:var(--font-size-xs)] ds:font-semibold ds:uppercase ds:tracking-wide ds:text-muted-foreground"
|
|
3270
|
-
), eo = re(
|
|
3271
|
-
"ds:absolute ds:inset-y-0 ds:end-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground",
|
|
3272
|
-
{
|
|
3273
|
-
variants: {
|
|
3274
|
-
size: {
|
|
3275
|
-
sm: "ds:pe-3 ds:[&_svg]:size-4",
|
|
3276
|
-
md: "ds:pe-3 ds:[&_svg]:size-4",
|
|
3277
|
-
lg: "ds:pe-4 ds:[&_svg]:size-5"
|
|
3278
|
-
}
|
|
3279
|
-
},
|
|
3280
|
-
defaultVariants: { size: "md" }
|
|
3281
|
-
}
|
|
3282
|
-
), to = re(
|
|
3283
|
-
[
|
|
3284
|
-
"ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
|
|
3285
|
-
"ds:border ds:border-border ds:bg-background ds:shadow-[var(--shadow-lg)]",
|
|
3286
|
-
"ds:p-[var(--spacing-md)]"
|
|
3287
|
-
].join(" ")
|
|
3288
|
-
), no = re(
|
|
3289
|
-
[
|
|
3290
|
-
// A flex row so an `active` preset can carry a trailing check icon and the
|
|
3291
|
-
// label still fills the width and truncates rather than wrapping.
|
|
3292
|
-
"ds:flex ds:w-full ds:items-center ds:justify-between ds:gap-[var(--spacing-xs)]",
|
|
3293
|
-
"ds:text-start ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
3294
|
-
"ds:min-h-[var(--min-target-size)]",
|
|
3295
|
-
"ds:rounded-[var(--radius-sm)] ds:text-[length:var(--font-size-sm)] ds:text-foreground",
|
|
3296
|
-
"ds:hover:bg-muted ds:cursor-pointer",
|
|
3297
|
-
"ds:transition-colors ds:duration-[var(--animation-duration)] ds:motion-reduce:transition-none",
|
|
3298
|
-
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
3299
|
-
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
3300
|
-
].join(" "),
|
|
3301
|
-
{
|
|
3302
|
-
variants: {
|
|
3303
|
-
// The applied-preset state. Tints with the shared `--calendar-range-fill`
|
|
3304
|
-
// (violet primary wash) and keeps the label on `--foreground` (high
|
|
3305
|
-
// contrast) — it does NOT use the magenta accent, which fails AA on white.
|
|
3306
|
-
// The component pairs this with `aria-pressed` + a trailing check icon so
|
|
3307
|
-
// the state is not conveyed by colour alone.
|
|
3308
|
-
active: {
|
|
3309
|
-
true: "ds:bg-[var(--calendar-range-fill)] ds:font-semibold ds:hover:bg-[var(--calendar-range-fill)]",
|
|
3310
|
-
false: ""
|
|
3311
|
-
}
|
|
3312
|
-
},
|
|
3313
|
-
defaultVariants: { active: !1 }
|
|
3314
|
-
}
|
|
3315
|
-
);
|
|
3316
|
-
export {
|
|
3317
|
-
je as A,
|
|
3318
|
-
ye as B,
|
|
3319
|
-
Rs as C,
|
|
3320
|
-
js as D,
|
|
3321
|
-
ge as E,
|
|
3322
|
-
Mr as F,
|
|
3323
|
-
Yt as G,
|
|
3324
|
-
na as H,
|
|
3325
|
-
ke as I,
|
|
3326
|
-
Ht as J,
|
|
3327
|
-
Me as K,
|
|
3328
|
-
et as L,
|
|
3329
|
-
Le as M,
|
|
3330
|
-
yt as N,
|
|
3331
|
-
ie as O,
|
|
3332
|
-
Ir as P,
|
|
3333
|
-
qr as Q,
|
|
3334
|
-
$r as R,
|
|
3335
|
-
jr as S,
|
|
3336
|
-
_t as a,
|
|
3337
|
-
Gs as b,
|
|
3338
|
-
ta as c,
|
|
3339
|
-
eo as d,
|
|
3340
|
-
Vs as e,
|
|
3341
|
-
ve as f,
|
|
3342
|
-
$s as g,
|
|
3343
|
-
to as h,
|
|
3344
|
-
ea as i,
|
|
3345
|
-
Qn as j,
|
|
3346
|
-
Ze as k,
|
|
3347
|
-
Gn as l,
|
|
3348
|
-
Rn as m,
|
|
3349
|
-
It as n,
|
|
3350
|
-
Xn as o,
|
|
3351
|
-
no as p,
|
|
3352
|
-
Jn as q,
|
|
3353
|
-
Zs as r,
|
|
3354
|
-
le as s,
|
|
3355
|
-
Qs as t,
|
|
3356
|
-
qs as u,
|
|
3357
|
-
Js as v,
|
|
3358
|
-
Xs as w,
|
|
3359
|
-
Ls as x,
|
|
3360
|
-
Us as y,
|
|
3361
|
-
Ks as z
|
|
3362
|
-
};
|
|
3363
|
-
//# sourceMappingURL=date-picker-variants-eL6HjWvw.js.map
|