@alfadocs/ui-kit 1.51.0 → 1.52.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/{actions-cell-renderer-DBI33cMp.js → actions-cell-renderer-DhmUGzRY.js} +4 -4
- package/dist/_chunks/{address-autocomplete-Dp5uMvKP.js → address-autocomplete-BVLoHU3E.js} +3 -3
- package/dist/_chunks/{address-fields-QfC-N3pw.js → address-fields-UiEXHxEX.js} +9 -9
- package/dist/_chunks/{agenda-card-CjjxlA9K.js → agenda-card-CakEvwnM.js} +4 -4
- package/dist/_chunks/{agenda-tray-CGhEEnFE.js → agenda-tray-C-_iu6Fo.js} +4 -4
- package/dist/_chunks/{ai-credits-notice-C9K_ley1.js → ai-credits-notice-Da0fJPXO.js} +4 -4
- package/dist/_chunks/{ai-permission-notice-DMG1o4Qa.js → ai-permission-notice-C5q_uHBA.js} +6 -6
- package/dist/_chunks/{ai-prompt-input-ucwO-z8g.js → ai-prompt-input-IObcUWqB.js} +4 -4
- package/dist/_chunks/{alert-CiQ5Pa3Q.js → alert-BhCstf2h.js} +3 -3
- package/dist/_chunks/{alia-sidebar-K3gaNH94.js → alia-sidebar-DyQMsyiz.js} +21 -21
- package/dist/_chunks/{anamnesis-card-CPjry4ur.js → anamnesis-card-D4RWzQXP.js} +5 -5
- package/dist/_chunks/{anamnesis-summary-card-DPyScUMM.js → anamnesis-summary-card-Bv0CZ-mk.js} +3 -3
- package/dist/_chunks/anamnesis-summary-rows-DaSoA80I.js +20926 -0
- package/dist/_chunks/{annotation-marker-CsUJGZjQ.js → annotation-marker-D-M7y4R1.js} +2 -2
- package/dist/_chunks/{antenatal-schedule-timeline-8fm3vPSV.js → antenatal-schedule-timeline-BZzgjfyd.js} +13 -13
- package/dist/_chunks/{app-frame-DIEMIC5V.js → app-frame-Cos-GSfw.js} +5 -5
- package/dist/_chunks/{appointment-card-DETaIfBb.js → appointment-card-CA2ynsmN.js} +8 -8
- package/dist/_chunks/{appointment-peek-B79v56Zc.js → appointment-peek-DpPzeYXm.js} +6 -6
- package/dist/_chunks/{appointment-timeline-tyJJPgVU.js → appointment-timeline-BZErHbD1.js} +6 -6
- package/dist/_chunks/{appointment-tray-Dq4zto_L.js → appointment-tray-DR_Zm4Gw.js} +9 -9
- package/dist/_chunks/{appointment-workflow-status-CS8ufF1f.js → appointment-workflow-status-DrWCNLbB.js} +2 -2
- package/dist/_chunks/{ar-BR1FGFP2.js → ar-pLopgMbL.js} +12 -12
- package/dist/_chunks/{audio-recorder-Ddlp5rVg.js → audio-recorder-BafA28cX.js} +5 -5
- package/dist/_chunks/{audio-visualiser-l6zPd0AG.js → audio-visualiser-CK2JyQW1.js} +2 -2
- package/dist/_chunks/{autocomplete-DSasZUf6.js → autocomplete-IfLaXwyb.js} +3 -3
- package/dist/_chunks/{avatar-BVvjKNTp.js → avatar-DYtwj1-R.js} +2 -2
- package/dist/_chunks/{badge-BAkd6_Pj.js → badge-hnBt8o7n.js} +6 -6
- package/dist/_chunks/{balance-badge-cell-BCEsdEOe.js → balance-badge-cell-CS-iKkLM.js} +8 -8
- package/dist/_chunks/{bishop-score-1NAiZh0K.js → bishop-score-BfDsm9HH.js} +6 -6
- package/dist/_chunks/{bmi-calculator-ZzzPZhhI.js → bmi-calculator-BNtmMzQy.js} +6 -6
- package/dist/_chunks/{booking-DmyX24Ls.js → booking-DP543-BT.js} +41 -40
- package/dist/_chunks/{breadcrumb-D3boYzD4.js → breadcrumb-xgVpPH2H.js} +4 -4
- package/dist/_chunks/{button-group-t9RrsCS6.js → button-group-DnSR6eN6.js} +29 -29
- package/dist/_chunks/{calculator-dialog-C0ixc3SU.js → calculator-dialog-BRjZMWuE.js} +2 -2
- package/dist/_chunks/{calendar-aqzmITxw.js → calendar-BwF5nQuW.js} +558 -502
- package/dist/_chunks/{calendar-event-card-DyFSIehr.js → calendar-event-card-DXAYWH6k.js} +2 -2
- package/dist/_chunks/{calendar-workspace-BqoPkCUp.js → calendar-workspace-B9MKJXER.js} +4406 -4395
- package/dist/_chunks/{care-plan-card-amX33mMF.js → care-plan-card-BanlKJZn.js} +8 -8
- package/dist/_chunks/{care-plan-entry-card-DNkEucjN.js → care-plan-entry-card-ByqT84_P.js} +9 -9
- package/dist/_chunks/{care-plan-header-CJi853Rf.js → care-plan-header-BwfUHMgM.js} +6 -6
- package/dist/_chunks/{carousel.agent-2EhJsAtl.js → carousel.agent-WKODAYVw.js} +5 -5
- package/dist/_chunks/{chart-B2HnwMP5.js → chart-CuE30cfr.js} +3 -3
- package/dist/_chunks/{chat-container-CYYego1W.js → chat-container-CAfyTxat.js} +3 -3
- package/dist/_chunks/{chat-input-CHUsUFOD.js → chat-input-DA10w969.js} +2 -2
- package/dist/_chunks/{chat-message-DTcRGhNo.js → chat-message-DoMjMa-M.js} +5 -5
- package/dist/_chunks/{checkbox-group-DomUzpkF.js → checkbox-group-C7czpHmJ.js} +2 -2
- package/dist/_chunks/{city-input-BGYc4lRV.js → city-input-CAnTVgBZ.js} +10 -10
- package/dist/_chunks/{clinical-note-card-B7s5BtEl.js → clinical-note-card-kvlUrmP-.js} +6 -6
- package/dist/_chunks/{code-block-BrwcZNPq.js → code-block-NtHjtagI.js} +5 -5
- package/dist/_chunks/{color-picker-Bl5f0iK1.js → color-picker-Yl99lHuF.js} +3 -3
- package/dist/_chunks/{combobox-B_rLwmSv.js → combobox-Iel8y3u6.js} +2 -2
- package/dist/_chunks/{command-palette-DhgGo7GJ.js → command-palette-D9TBzmOG.js} +4 -4
- package/dist/_chunks/{connection-status-DMheLE65.js → connection-status-Dz8o-Fui.js} +4 -4
- package/dist/_chunks/{contact-card-0hnFJwrz.js → contact-card-D2gXrxlL.js} +12 -12
- package/dist/_chunks/{contact-profile-card-zQLGGFKG.js → contact-profile-card-B7cXr8g5.js} +5 -5
- package/dist/_chunks/{control-room-rail-5iuM3jcm.js → control-room-rail-B446rHSL.js} +3 -3
- package/dist/_chunks/{copy-field-C-KvrgOG.js → copy-field-CiIuVbKe.js} +2 -2
- package/dist/_chunks/{country-select-C5jZjO8O.js → country-select-BYa4BrEi.js} +3 -3
- package/dist/_chunks/{cycle-calculator-DQMCeEzn.js → cycle-calculator-D_5f9VSN.js} +10 -10
- package/dist/_chunks/{dashboard-grid-H7uph3HO.js → dashboard-grid-DWNP02Ff.js} +3 -3
- package/dist/_chunks/data-table-DJvEwZZx.js +1989 -0
- package/dist/_chunks/{data-table-tabs-Dd_O1nPY.js → data-table-tabs-Dc6zvoI_.js} +5 -5
- package/dist/_chunks/{date-picker-6tFnKFty.js → date-picker-p9yz3pxc.js} +83 -80
- package/dist/_chunks/{date-picker-variants-B9NLAfUK.js → date-picker-variants-B3AFKDSu.js} +706 -658
- package/dist/_chunks/{date-range-picker-TpmECKRh.js → date-range-picker-DIy8gNY0.js} +153 -150
- package/dist/_chunks/{date-time-picker-DijEae25.js → date-time-picker-C3UVzqOm.js} +86 -77
- package/dist/_chunks/{de-3iM4rGqo.js → de-lVkJRPnh.js} +5 -5
- package/dist/_chunks/{dependent-selector-58hTg5rB.js → dependent-selector-CPiolWiw.js} +4 -4
- package/dist/_chunks/{description-list-DOPu69Jg.js → description-list-9rchqp5q.js} +2 -2
- package/dist/_chunks/{dialog-BJiLqhx6.js → dialog-D52AI4nF.js} +2 -2
- package/dist/_chunks/{document-preview-Dzh1YAz8.js → document-preview-1CZJg6CX.js} +6 -6
- package/dist/_chunks/{document-scanner-BSVwMR4V.js → document-scanner-T5jHiraQ.js} +4 -4
- package/dist/_chunks/{dropdown-menu-DIzxr_lp.js → dropdown-menu-B5mgV1kV.js} +2 -2
- package/dist/_chunks/{due-date-calculator-DUjw4w5O.js → due-date-calculator-iJXm6HOj.js} +11 -11
- package/dist/_chunks/{editable-currency-cell-renderer-Cch3RIJL.js → editable-currency-cell-renderer-DdMHme5y.js} +8 -8
- package/dist/_chunks/{editable-description-CRQib91p.js → editable-description-Cy3AZ5K2.js} +2 -2
- package/dist/_chunks/{editor-overlay-DsA7vR5C.js → editor-overlay-C0awV6ba.js} +2 -2
- package/dist/_chunks/{el-C96rGJvU.js → el-CHzxNWPj.js} +6 -6
- package/dist/_chunks/{email-input-Dpe63k0K.js → email-input-ebdovOmh.js} +3 -3
- package/dist/_chunks/{empty-state-Ck1wVWdN.js → empty-state-DActfjdn.js} +2 -2
- package/dist/_chunks/en-GB-CwxYmmhU.js +45 -0
- package/dist/_chunks/{entity-summary-Cvs21xPr.js → entity-summary-oW3_jFhU.js} +6 -6
- package/dist/_chunks/{error-boundary-C_HAzVLO.js → error-boundary--w5hYiQ-.js} +3 -3
- package/dist/_chunks/{es-Cxiqjx8r.js → es-Ck-oxbHW.js} +8 -8
- package/dist/_chunks/{face-scheme-DVZZTuXT.js → face-scheme-Dg7KcbW2.js} +9 -9
- package/dist/_chunks/{fetal-weight-B-lO-948.js → fetal-weight-BoIkl2t1.js} +6 -6
- package/dist/_chunks/{field-array-B3IDOct8.js → field-array-BF2nCmvt.js} +2 -2
- package/dist/_chunks/{file-manager-COUb-w8j.js → file-manager-BGHShxn_.js} +19 -19
- package/dist/_chunks/{file-upload-B242a_Y1.js → file-upload-OMlGHz70.js} +2 -2
- package/dist/_chunks/{finished-terminal-BrAWwfOw.js → finished-terminal-BguGAUdg.js} +2 -2
- package/dist/_chunks/{fiscal-code-input-CwUwhUZy.js → fiscal-code-input-CuuE8_dt.js} +2 -2
- package/dist/_chunks/{floating-action-button-pojvb9gG.js → floating-action-button-BesoUmO_.js} +6 -6
- package/dist/_chunks/{form-field-CahJzTxp.js → form-field-YUJl_U5l.js} +2 -2
- package/dist/_chunks/{format-4HNwNGrN.js → format-D-1gTdHF.js} +47 -43
- package/dist/_chunks/{fr-Bhr6SYKj.js → fr-fWRnDcSD.js} +13 -13
- package/dist/_chunks/{freemium-paywall-DiPJrL18.js → freemium-paywall-BhxKSEJD.js} +4 -4
- package/dist/_chunks/{gestational-age-calculator-BVPtrWKf.js → gestational-age-calculator-CjZ7v-8x.js} +13 -13
- package/dist/_chunks/{hcg-doubling-CPktiA3H.js → hcg-doubling-BYMogA0e.js} +15 -15
- package/dist/_chunks/{header-C8NbLgVq.js → header-CzJbtTGQ.js} +4 -4
- package/dist/_chunks/{header-settings-D0M3WNTS.js → header-settings-BqdBe4zk.js} +6 -6
- package/dist/_chunks/{help-me-write-templates-CYAKuXZ3.js → help-me-write-templates-CGCyhAVE.js} +15 -15
- package/dist/_chunks/{hi-BxXX26d_.js → hi-B5uX0h3V.js} +14 -14
- package/dist/_chunks/{hover-card-BM0vNmq4.js → hover-card-DEMPFs9M.js} +2 -2
- package/dist/_chunks/{iban-input-DXIA8Ln_.js → iban-input-D88HRGZo.js} +2 -2
- package/dist/_chunks/{icon-button-group-ud2BLmxe.js → icon-button-group-DHRz90jY.js} +3 -3
- package/dist/_chunks/{icon-picker-B1PwkUHy.js → icon-picker-C5Fhx1-3.js} +4 -4
- package/dist/_chunks/{image-cropper-DM6hpXUw.js → image-cropper-CNBGkG7P.js} +2 -2
- package/dist/_chunks/{info-tip-CywkQ1NX.js → info-tip-DfmEvyAF.js} +3 -3
- package/dist/_chunks/{insert-result-Fu9AHxR6.js → insert-result-BuWQl11Z.js} +2 -2
- package/dist/_chunks/intl-locale-CXM-B8EP.js +16 -0
- package/dist/_chunks/{isSameWeek-B73MagWB.js → isSameWeek-u81Z-J7h.js} +2 -2
- package/dist/_chunks/{it-Xmjomvyj.js → it-DBoNIelY.js} +17 -17
- package/dist/_chunks/{ja-mfZvt1ZV.js → ja-Du8gfg8p.js} +6 -6
- package/dist/_chunks/{kbd-D855ZXIW.js → kbd-BLovyx1R.js} +2 -2
- package/dist/_chunks/{key-value-pair-BL1J3_Km.js → key-value-pair-DZH8ESsc.js} +2 -2
- package/dist/_chunks/{kit-extensions-B9Qn6VIc.js → kit-extensions-CF5mDF_Z.js} +6 -6
- package/dist/_chunks/{link-CPb_pZPr.js → link-BlVUIKk1.js} +2 -2
- package/dist/_chunks/{link-cell-renderer-BcW3F1j9.js → link-cell-renderer-DvcbSHyp.js} +11 -11
- package/dist/_chunks/{list-DgE1xWBM.js → list-RRN2TJ_7.js} +2 -2
- package/dist/_chunks/{locale-picker-Z42P8T-i.js → locale-picker-DYDppQdZ.js} +6 -6
- package/dist/_chunks/{map-view-DxYPJjM9.js → map-view-CmNGS6Ok.js} +3 -3
- package/dist/_chunks/{marketplace-app-shell-rTTvWRrE.js → marketplace-app-shell-rd1bSSm4.js} +137 -128
- package/dist/_chunks/{message-card-CUBPPn4Z.js → message-card-Dub3790J.js} +4 -4
- package/dist/_chunks/{message-tray-uy3DAIbn.js → message-tray-CTd6CsnG.js} +4 -4
- package/dist/_chunks/{money-BXLBIRVO.js → money-GypsuFk2.js} +2 -2
- package/dist/_chunks/{multi-select-N4Smh-gj.js → multi-select-Bx0_cgPI.js} +2 -2
- package/dist/_chunks/{muscle-scheme-CH-vQ7Ch.js → muscle-scheme-X2bdmsQt.js} +4 -4
- package/dist/_chunks/{nav-grid-gRudLsPX.js → nav-grid-BnY0Ilet.js} +2 -2
- package/dist/_chunks/{navigation-menu-D3VndouD.js → navigation-menu-DbaSlvdO.js} +25 -25
- package/dist/_chunks/{nl-DDs-KEnD.js → nl-BCBwxYi8.js} +9 -9
- package/dist/_chunks/{note-attachment-CGjNTrAC.js → note-attachment-CpPRIfSn.js} +4 -4
- package/dist/_chunks/{note-timeline-CVnKL0p6.js → note-timeline-CZUmobcn.js} +3 -3
- package/dist/_chunks/{notes-panel-Dka4Z2M7.js → notes-panel-CPfxz-1j.js} +8 -8
- package/dist/_chunks/{notification-card-Hy8w3UWx.js → notification-card-B39g86vM.js} +11 -11
- package/dist/_chunks/{notification-tray-VuV3XXB8.js → notification-tray-WsP7c1jf.js} +4 -4
- package/dist/_chunks/{number-input-Cgu2TtA8.js → number-input-BLrx3utH.js} +2 -2
- package/dist/_chunks/{operator-hero-DyrNLoRO.js → operator-hero-BnBPxwOi.js} +10 -10
- package/dist/_chunks/{optical-prescription-C2n6d0HO.js → optical-prescription-x--Rpmmx.js} +6 -6
- package/dist/_chunks/{otp-input-DzBQ-CpE.js → otp-input-Dz8WMg4F.js} +2 -2
- package/dist/_chunks/{pagination-B0N2qGy_.js → pagination-CzEkpfti.js} +6 -6
- package/dist/_chunks/{parse-DPqj4JtD.js → parse-DeDYl04y.js} +32 -32
- package/dist/_chunks/{parseISO-fOGpHKXm.js → parseISO-y3LncvfO.js} +2 -2
- package/dist/_chunks/{patient-details-D9sAM3qh.js → patient-details-BSAMAd3I.js} +6 -6
- package/dist/_chunks/{patient-field-row-CT04C_lZ.js → patient-field-row-dUF2cW2G.js} +27 -27
- package/dist/_chunks/{patient-search-DkIukAMQ.js → patient-search-CXl0FNfN.js} +13 -13
- package/dist/_chunks/{patient-summary-card-DI0BH-Fe.js → patient-summary-card-DF-Mxcma.js} +9 -9
- package/dist/_chunks/{payment-automation-upsell-vQBIyUky.js → payment-automation-upsell-DNiraNhF.js} +5 -5
- package/dist/_chunks/{payment-form-DqJFiplX.js → payment-form-DxsjXYHJ.js} +6 -6
- package/dist/_chunks/{payment-request-card-BSaJzhxz.js → payment-request-card-BFsmHLtf.js} +8 -8
- package/dist/_chunks/{pdf-viewer-DUKdn5iq.js → pdf-viewer-hzfM5pZf.js} +6 -6
- package/dist/_chunks/{periodontal-chart-BcTcOc79.js → periodontal-chart-Bvii6uOg.js} +3 -3
- package/dist/_chunks/{periodontal-chart-card-NS_nToBf.js → periodontal-chart-card-DTbvFQO7.js} +4 -4
- package/dist/_chunks/{periodontal-diagnosis-B8WqI0eU.js → periodontal-diagnosis-BqEo0usu.js} +3 -3
- package/dist/_chunks/{periodontal-risk-chart-DsFRFFSz.js → periodontal-risk-chart-C1Y5f-md.js} +3 -3
- package/dist/_chunks/{permission-matrix-VdAXjjHU.js → permission-matrix-DHKECaNW.js} +3 -3
- package/dist/_chunks/{phone-input-sQj-zi59.js → phone-input-opMMHkyh.js} +2 -2
- package/dist/_chunks/{pl-BYYMnEWP.js → pl-HwLM6gPs.js} +7 -7
- package/dist/_chunks/{popover-SASSeAdY.js → popover-CGYPYIVi.js} +2 -2
- package/dist/_chunks/{position-grid-CcvqHaKN.js → position-grid-D2D5_Tze.js} +2 -2
- package/dist/_chunks/{postal-code-input-BznBxVxf.js → postal-code-input-Dv02t5MD.js} +3 -3
- package/dist/_chunks/{practice-profile-hero-B-WcJYNH.js → practice-profile-hero-Bc3AyBiM.js} +4 -4
- package/dist/_chunks/{practice-results-C3ifcObw.js → practice-results-DjhcggtZ.js} +28 -28
- package/dist/_chunks/{pregnancy-dating-CpJ3iYvD.js → pregnancy-dating-CcPxK3S3.js} +14 -14
- package/dist/_chunks/{pregnancy-weight-gain-kDOhA2vZ.js → pregnancy-weight-gain-tGbbravi.js} +6 -6
- package/dist/_chunks/{privacy-lock-CEyvNpC8.js → privacy-lock-Bh4O7Y7g.js} +15 -15
- package/dist/_chunks/{privacy-mask-TzMlEu3Q.js → privacy-mask-noG15O9q.js} +24 -24
- package/dist/_chunks/{product-hub-panel-b70i9Hi1.js → product-hub-panel-BmBzDba9.js} +23 -23
- package/dist/_chunks/{progress-CK8otcQ-.js → progress-TIAsNHQW.js} +4 -4
- package/dist/_chunks/{province-select-BiszMRRY.js → province-select-BZtM0RSR.js} +3 -3
- package/dist/_chunks/{pt-BSPnVrQ7.js → pt-BxhT5ZQH.js} +10 -10
- package/dist/_chunks/{public-footer.agent-BKkK3T3V.js → public-footer.agent-CVYmHY94.js} +4 -4
- package/dist/_chunks/{public-header.agent-D0ApOrmx.js → public-header.agent-1mcrQqIM.js} +3 -3
- package/dist/_chunks/{qr-code-DOJs4suh.js → qr-code-C3m9o7om.js} +2 -2
- package/dist/_chunks/{radiograph-panel.agent-jhwaIW8U.js → radiograph-panel.agent-BP71J_VB.js} +12 -12
- package/dist/_chunks/{rating-BYbUowdK.js → rating-C1Vrmpsi.js} +2 -2
- package/dist/_chunks/{recaptcha-widget-BC-4To9b.js → recaptcha-widget-BNAeSTCo.js} +2 -2
- package/dist/_chunks/{resizable-DVGcfOrk.js → resizable-BKkNmZCl.js} +2 -2
- package/dist/_chunks/{reviews-panel-B5QC4FIp.js → reviews-panel-DDb_t7vy.js} +7 -7
- package/dist/_chunks/{rich-text-editor-DoBXdwmx.js → rich-text-editor-C7N4Cem6.js} +1707 -1617
- package/dist/_chunks/{ro-BbiylGmG.js → ro-Do9W55ae.js} +2 -2
- package/dist/_chunks/{ru-BX_qsV67.js → ru-PDBX5gdf.js} +13 -13
- package/dist/_chunks/{search-bar-6bHatpYJ.js → search-bar-Blq_QeSe.js} +4 -4
- package/dist/_chunks/{search-input-B7GmlPIE.js → search-input-DfsAu3P2.js} +4 -4
- package/dist/_chunks/{select-upNAltly.js → select-Br88h070.js} +2 -2
- package/dist/_chunks/{session-countdown-26XB5u38.js → session-countdown-DWUVDDox.js} +3 -3
- package/dist/_chunks/{sheet-CwhNzxbr.js → sheet-BE6oi30q.js} +2 -2
- package/dist/_chunks/{sidebar-DbZXLl8h.js → sidebar-2GBc0ZUa.js} +7 -7
- package/dist/_chunks/{sign-document-CRQuAn4W.js → sign-document-Buw-zC_7.js} +4 -4
- package/dist/_chunks/{sign-in-with-alfadocs-button-jxbze77L.js → sign-in-with-alfadocs-button-Bd4VPGQh.js} +3 -3
- package/dist/_chunks/{signature-capture-D6ut9_IR.js → signature-capture-F6KViBF_.js} +2 -2
- package/dist/_chunks/{signature-field-0rFODJlW.js → signature-field-DBIGiY-J.js} +3 -3
- package/dist/_chunks/{signature-request-BorHf3CY.js → signature-request-DqZkn-iB.js} +154 -154
- package/dist/_chunks/{signature-status-chip-Dz6sS2oA.js → signature-status-chip-DP3qRijv.js} +3 -3
- package/dist/_chunks/{skip-link-BaSMtPwB.js → skip-link-BOQzBUVb.js} +2 -2
- package/dist/_chunks/{slider-DN1CWkKB.js → slider-BRq2lL-l.js} +2 -2
- package/dist/_chunks/{slot-grid-xgf2UKLS.js → slot-grid-Bkg9MVXP.js} +5 -5
- package/dist/_chunks/{smart-date-CsPlilQA.js → smart-date-pYK6WmM_.js} +2 -2
- package/dist/_chunks/{social-sign-in-button-dlpPI5l7.js → social-sign-in-button-Bb2UQpsA.js} +8 -8
- package/dist/_chunks/{sparkline-Dx_sxK3J.js → sparkline-ZOxMBU76.js} +3 -3
- package/dist/_chunks/{spinner-hbwuKwMf.js → spinner-DxjSZLD-.js} +2 -2
- package/dist/_chunks/{sq-i9UOk4P7.js → sq-DnvsgyIh.js} +6 -6
- package/dist/_chunks/{stat-Bs80Z6Yv.js → stat-Ce9ymEKm.js} +3 -3
- package/dist/_chunks/{stepper-accordion-jMR8NaOB.js → stepper-accordion-BPNS6J6B.js} +2 -2
- package/dist/_chunks/{stepper-progress-Bv0njx4g.js → stepper-progress-D6H8wQiV.js} +2 -2
- package/dist/_chunks/{streaming-text-Cos2fVTw.js → streaming-text-D0IJeRBg.js} +2 -2
- package/dist/_chunks/subDays-XBMBTVOO.js +8 -0
- package/dist/_chunks/{suggestion-chip-Bk4PmYTg.js → suggestion-chip-BNRWZL51.js} +2 -2
- package/dist/_chunks/{sv-CpTdtmDQ.js → sv-CpFSK8xS.js} +4 -4
- package/dist/_chunks/{switch-OILsBLWo.js → switch-DXGD2Drz.js} +2 -2
- package/dist/_chunks/{tab-bar-BrkMUW0c.js → tab-bar-DRKiomgj.js} +4 -4
- package/dist/_chunks/{tabs-tK22Mz7r.js → tabs-DLXVEDsa.js} +4 -4
- package/dist/_chunks/{tag-B65tLWvD.js → tag-CS5cXpfx.js} +2 -2
- package/dist/_chunks/{task-card-CLpHmqEY.js → task-card-CngF4Zee.js} +3 -3
- package/dist/_chunks/{task-editor-B4UGsU7l.js → task-editor-Dz93rRXg.js} +15 -15
- package/dist/_chunks/{task-tray-dsmYgjVb.js → task-tray-CB6_BvH9.js} +4 -4
- package/dist/_chunks/{tasks-panel-CwwVw491.js → tasks-panel-DHAoTQtR.js} +9 -9
- package/dist/_chunks/{text-area-Bt3p7Pt0.js → text-area-Cjtw7mna.js} +2 -2
- package/dist/_chunks/{text-input-CUvCb6ST.js → text-input-CLaItY93.js} +2 -2
- package/dist/_chunks/{theme-toggle-jyoyhbJL.js → theme-toggle-Byg0x2vB.js} +9 -9
- package/dist/_chunks/{time-picker-D0RS391l.js → time-picker-BG7G3ujX.js} +2 -2
- package/dist/_chunks/{timeline-ChY7iZrs.js → timeline-CVLjybJ3.js} +4 -4
- package/dist/_chunks/{timestamp-BV2lC-wV.js → timestamp-DPLDWdxA.js} +2 -2
- package/dist/_chunks/{toast-FijDyPnv.js → toast-6wbpghjF.js} +2 -2
- package/dist/_chunks/{token-insert-menu-Cjf99IdN.js → token-insert-menu-DgtBIbNu.js} +2 -2
- package/dist/_chunks/{tool-rail-DphMl1hX.js → tool-rail-CXcLzxPb.js} +3 -3
- package/dist/_chunks/{tooth-finding-palette-vqC-D2Ye.js → tooth-finding-palette-DNQ3G2Tz.js} +2 -2
- package/dist/_chunks/{tooth-scheme-BaCJnyg9.js → tooth-scheme-BLbwUVer.js} +5 -5
- package/dist/_chunks/{tr-DXG2QN1K.js → tr-DW4oQYHT.js} +5 -5
- package/dist/_chunks/{transaction-chip-CwgcJiqF.js → transaction-chip-CohY6sTA.js} +6 -6
- package/dist/_chunks/{transcript-panel-u2HHxZB6.js → transcript-panel-Dve7bsm7.js} +3 -3
- package/dist/_chunks/{treatment-receipt-C-gWZ6uv.js → treatment-receipt-DF2Slh-x.js} +5 -5
- package/dist/_chunks/{typing-indicator-DHeVN4ob.js → typing-indicator-BmwMQSxw.js} +9 -9
- package/dist/_chunks/{unit-converter-CGpOgarU.js → unit-converter-D8WnJbZm.js} +6 -6
- package/dist/_chunks/use-appointment-details-read-YsuJgYeB.js +2198 -0
- package/dist/_chunks/{use-edge-resize-BHesP0kg.js → use-edge-resize-DHbyQwu8.js} +15 -15
- package/dist/_chunks/use-locale-BExNy9Dl.js +16 -0
- package/dist/_chunks/{use-password-requirements-Bwtqx1qN.js → use-password-requirements-DK4hV1Ik.js} +4 -4
- package/dist/_chunks/{variables-menu-aJLKJ_cu.js → variables-menu-DQl8H4Gh.js} +2 -2
- package/dist/_chunks/{wallet-pay-button--dnR6NfJ.js → wallet-pay-button-C-GFl7RO.js} +3 -3
- package/dist/_chunks/{warning-stack-7Hffm7K1.js → warning-stack-CzKSeB5v.js} +3 -3
- package/dist/_chunks/{whatsapp-button-Ai4YAVkl.js → whatsapp-button-DV9JFmtq.js} +2 -2
- package/dist/_chunks/{widget-picker-CilQvcNL.js → widget-picker-b5NCHxFe.js} +28 -28
- package/dist/_chunks/{workflow-map-Jfe9L9Wt.js → workflow-map-C7fHKTXL.js} +15 -15
- package/dist/_chunks/{workflow-status-jHfsIDzi.js → workflow-status-DDnsIrLt.js} +4 -4
- package/dist/_chunks/{zh-CN-vPkPEK6H.js → zh-CN-QGEs29fQ.js} +7 -7
- package/dist/agent-catalog.json +1 -1
- package/dist/components/_shared/date-locale.d.ts +2 -2
- package/dist/components/_shared/day-picker-labels.d.ts +6 -0
- package/dist/components/_shared/intl-locale.d.ts +10 -0
- package/dist/components/address-autocomplete/index.js +1 -1
- package/dist/components/address-fields/index.js +1 -1
- package/dist/components/agenda-card/index.js +1 -1
- package/dist/components/agenda-tray/index.js +1 -1
- package/dist/components/ai-credits-notice/index.js +1 -1
- package/dist/components/ai-permission-notice/index.js +1 -1
- package/dist/components/ai-prompt-input/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/anamnesis-card/index.js +1 -1
- package/dist/components/anamnesis-summary-card/index.js +1 -1
- package/dist/components/annotation-marker/index.js +1 -1
- package/dist/components/app-frame/index.js +1 -1
- package/dist/components/appointment-card/index.js +2 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.d.ts +3 -0
- package/dist/components/appointment-details-panel/appointment-details-panel.history.d.ts +19 -5
- package/dist/components/appointment-details-panel/appointment-details-panel.sections.d.ts +6 -2
- package/dist/components/appointment-details-panel/appointment-details-panel.types.d.ts +51 -1
- package/dist/components/appointment-details-panel/index.d.ts +1 -1
- package/dist/components/appointment-details-panel/index.js +1 -1
- package/dist/components/appointment-peek/index.js +1 -1
- package/dist/components/appointment-timeline/index.js +1 -1
- package/dist/components/audio-recorder/index.js +1 -1
- package/dist/components/audio-visualiser/index.js +1 -1
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/badge/index.js +1 -1
- package/dist/components/bishop-score/index.js +1 -1
- package/dist/components/bmi-calculator/index.js +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/breadcrumb/index.js +1 -1
- package/dist/components/button-group/index.js +1 -1
- package/dist/components/calculator-dialog/index.js +1 -1
- package/dist/components/calendar/calendar-locale.d.ts +5 -0
- package/dist/components/calendar/calendar.d.ts +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/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/care-plan-header/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/index.js +1 -1
- package/dist/components/chat-input/index.js +1 -1
- package/dist/components/chat-message/index.js +1 -1
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/city-input/index.js +1 -1
- package/dist/components/clinical-note-card/index.js +1 -1
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/connection-status/index.js +1 -1
- package/dist/components/contact-card/index.js +1 -1
- package/dist/components/contact-profile-card/index.js +1 -1
- package/dist/components/control-room-rail/index.js +1 -1
- package/dist/components/copy-field/index.js +1 -1
- package/dist/components/country-select/index.js +1 -1
- package/dist/components/cycle-calculator/index.js +1 -1
- package/dist/components/dashboard-grid/index.js +1 -1
- package/dist/components/data-table/ag-grid-locale.d.ts +5 -0
- package/dist/components/data-table/index.js +4 -4
- package/dist/components/data-table-tabs/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/dependent-selector/index.js +1 -1
- package/dist/components/description-list/index.js +1 -1
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/document-preview/index.js +1 -1
- package/dist/components/document-scanner/index.js +1 -1
- package/dist/components/dropdown-menu/index.js +1 -1
- package/dist/components/due-date-calculator/index.js +2 -2
- package/dist/components/editable-description/index.js +1 -1
- package/dist/components/editor-overlay/index.js +1 -1
- package/dist/components/email-input/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/entity-summary/index.js +1 -1
- package/dist/components/error-boundary/index.js +1 -1
- package/dist/components/face-scheme/index.js +1 -1
- package/dist/components/fetal-weight/index.js +1 -1
- package/dist/components/field-array/index.js +1 -1
- package/dist/components/file-manager/index.js +1 -1
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/finished-terminal/index.js +1 -1
- package/dist/components/fiscal-code-input/index.js +1 -1
- package/dist/components/floating-action-button/index.js +1 -1
- package/dist/components/form-field/index.js +1 -1
- package/dist/components/freemium-paywall/index.js +1 -1
- package/dist/components/gestational-age-calculator/index.js +1 -1
- package/dist/components/hcg-doubling/hcg.d.ts +1 -1
- package/dist/components/hcg-doubling/index.js +1 -1
- package/dist/components/header/index.js +1 -1
- package/dist/components/header-settings/index.js +1 -1
- package/dist/components/hover-card/index.js +1 -1
- package/dist/components/iban-input/index.js +1 -1
- package/dist/components/icon-button-group/index.js +1 -1
- package/dist/components/icon-picker/index.js +1 -1
- package/dist/components/image-cropper/index.js +1 -1
- package/dist/components/info-tip/index.js +1 -1
- package/dist/components/kbd/index.js +1 -1
- package/dist/components/key-value-pair/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list/index.js +1 -1
- package/dist/components/locale-picker/index.js +1 -1
- package/dist/components/map-view/index.js +1 -1
- package/dist/components/message-card/index.js +1 -1
- package/dist/components/message-tray/index.js +1 -1
- package/dist/components/money/index.js +1 -1
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/muscle-scheme/index.js +1 -1
- package/dist/components/nav-grid/index.js +1 -1
- package/dist/components/navigation-menu/index.js +2 -2
- package/dist/components/note-timeline/index.js +1 -1
- package/dist/components/notes-panel/index.js +1 -1
- package/dist/components/notification-card/index.js +1 -1
- package/dist/components/notification-tray/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/operator-hero/index.js +1 -1
- package/dist/components/optical-prescription/index.js +1 -1
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/patient-details/index.js +1 -1
- package/dist/components/patient-search/index.js +1 -1
- package/dist/components/patient-summary-card/index.js +1 -1
- package/dist/components/patient-table/index.js +1 -1
- package/dist/components/payment-card/index.js +1 -1
- package/dist/components/payment-form/index.js +1 -1
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/periodontal-chart/index.js +1 -1
- package/dist/components/periodontal-chart-card/index.js +1 -1
- package/dist/components/periodontal-diagnosis/index.js +1 -1
- package/dist/components/periodontal-risk-chart/index.js +1 -1
- package/dist/components/permission-matrix/index.js +1 -1
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/popover/index.js +1 -1
- package/dist/components/position-grid/index.js +1 -1
- package/dist/components/postal-code-input/index.js +1 -1
- package/dist/components/practice-profile-hero/index.js +1 -1
- package/dist/components/practice-results/index.js +1 -1
- package/dist/components/pregnancy-dating/index.js +1 -1
- package/dist/components/pregnancy-weight-gain/index.js +1 -1
- package/dist/components/privacy-lock/index.js +1 -1
- package/dist/components/product-hub-tray/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/province-select/index.js +1 -1
- package/dist/components/public-footer/index.js +1 -1
- package/dist/components/public-header/index.js +1 -1
- package/dist/components/qr-code/index.js +1 -1
- package/dist/components/radiograph-panel/index.js +1 -1
- package/dist/components/rating/index.js +1 -1
- package/dist/components/recaptcha-widget/index.js +1 -1
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/reviews-panel/index.js +1 -1
- package/dist/components/rich-text-editor/index.js +2 -2
- package/dist/components/rich-text-editor/redactor-locale.d.ts +4 -0
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +8 -3
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-input/index.js +1 -1
- package/dist/components/select/index.js +1 -1
- package/dist/components/session-countdown/index.js +1 -1
- package/dist/components/sheet/index.js +1 -1
- package/dist/components/sidebar/index.js +1 -1
- package/dist/components/sign-document/index.js +1 -1
- package/dist/components/sign-in-with-alfadocs-button/index.js +1 -1
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-field/index.js +1 -1
- package/dist/components/signature-status-chip/index.js +1 -1
- package/dist/components/skeleton-scheme/index.js +3 -3
- package/dist/components/skip-link/index.js +1 -1
- package/dist/components/skip-link/skip-link.d.ts +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slot-grid/index.js +1 -1
- package/dist/components/smart-date/index.js +1 -1
- package/dist/components/smart-date/smart-date.d.ts +1 -1
- package/dist/components/social-sign-in-button/index.js +1 -1
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/spinner/index.js +1 -1
- package/dist/components/stat/index.js +1 -1
- package/dist/components/stepper-accordion/index.js +1 -1
- package/dist/components/stepper-progress/index.js +1 -1
- package/dist/components/streaming-text/index.js +1 -1
- package/dist/components/suggestion-chip/index.js +1 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/tab-bar/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/task-card/index.js +1 -1
- package/dist/components/task-editor/index.js +1 -1
- package/dist/components/task-tray/index.js +1 -1
- package/dist/components/tasks-panel/index.js +1 -1
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/theme-toggle/index.js +1 -1
- package/dist/components/time-picker/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/timestamp/index.js +1 -1
- package/dist/components/toast/index.js +1 -1
- package/dist/components/token-insert-menu/index.js +1 -1
- package/dist/components/tool-rail/index.js +1 -1
- package/dist/components/tooth-finding-palette/index.js +1 -1
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/transaction-chip/index.js +1 -1
- package/dist/components/transcript-panel/index.js +1 -1
- package/dist/components/treatment-receipt/index.js +1 -1
- package/dist/components/typing-indicator/index.js +1 -1
- package/dist/components/unit-converter/index.js +1 -1
- package/dist/components/variables-menu/index.js +1 -1
- package/dist/components/wallet-pay-button/index.js +1 -1
- package/dist/components/warning-stack/index.js +1 -1
- package/dist/components/whatsapp-button/index.js +1 -1
- package/dist/components/widget-picker/index.js +1 -1
- package/dist/components/workflow/index.js +1 -1
- package/dist/components/workflow-status/index.js +2 -2
- package/dist/hooks/index.js +2 -2
- package/dist/hooks/use-locale.d.ts +2 -16
- package/dist/i18n/config.d.ts +17 -13
- package/dist/i18n/config.js +127 -62
- package/dist/i18n/locale-meta.d.ts +1 -1
- package/dist/i18n/locales/ar.d.ts +911 -661
- package/dist/i18n/locales/ar.js +912 -666
- package/dist/i18n/locales/de.d.ts +718 -480
- package/dist/i18n/locales/de.js +719 -485
- package/dist/i18n/locales/el.d.ts +960 -722
- package/dist/i18n/locales/el.js +960 -726
- package/dist/i18n/locales/en.d.ts +303 -65
- package/dist/i18n/locales/en.js +304 -70
- package/dist/i18n/locales/es.d.ts +782 -541
- package/dist/i18n/locales/es.js +783 -546
- package/dist/i18n/locales/fr.d.ts +725 -484
- package/dist/i18n/locales/fr.js +726 -489
- package/dist/i18n/locales/hi.d.ts +870 -632
- package/dist/i18n/locales/hi.js +871 -637
- package/dist/i18n/locales/it.d.ts +933 -692
- package/dist/i18n/locales/it.js +939 -697
- package/dist/i18n/locales/ja.d.ts +693 -455
- package/dist/i18n/locales/ja.js +694 -460
- package/dist/i18n/locales/nl.d.ts +718 -480
- package/dist/i18n/locales/nl.js +719 -485
- package/dist/i18n/locales/pl.d.ts +1014 -770
- package/dist/i18n/locales/pl.js +1014 -774
- package/dist/i18n/locales/pt.d.ts +806 -562
- package/dist/i18n/locales/pt.js +807 -567
- package/dist/i18n/locales/ro.d.ts +1055 -814
- package/dist/i18n/locales/ro.js +1056 -819
- package/dist/i18n/locales/ru.d.ts +1032 -788
- package/dist/i18n/locales/ru.js +1027 -787
- package/dist/i18n/locales/sq.d.ts +1284 -1046
- package/dist/i18n/locales/sq.js +1284 -1050
- package/dist/i18n/locales/sv.d.ts +804 -566
- package/dist/i18n/locales/sv.js +805 -571
- package/dist/i18n/locales/tr.d.ts +763 -525
- package/dist/i18n/locales/tr.js +764 -530
- package/dist/i18n/locales/zh.d.ts +752 -514
- package/dist/i18n/locales/zh.js +753 -519
- package/dist/i18n/registerUiBundle.d.ts +3 -2
- package/dist/i18n/resources.d.ts +2 -7
- package/dist/i18n/supported-locales.d.ts +8 -0
- package/dist/index.js +212 -212
- package/dist/locales/ar.json +916 -666
- package/dist/locales/de.json +723 -485
- package/dist/locales/el.json +965 -727
- package/dist/locales/en.json +308 -70
- package/dist/locales/es.json +787 -546
- package/dist/locales/fr.json +730 -489
- package/dist/locales/hi.json +875 -637
- package/dist/locales/it.json +938 -697
- package/dist/locales/ja.json +698 -460
- package/dist/locales/nl.json +723 -485
- package/dist/locales/pl.json +1019 -775
- package/dist/locales/pt.json +811 -567
- package/dist/locales/ro.json +1060 -819
- package/dist/locales/ru.json +1037 -793
- package/dist/locales/sq.json +1289 -1051
- package/dist/locales/sv.json +809 -571
- package/dist/locales/tr.json +768 -530
- package/dist/locales/zh.json +757 -519
- package/dist/patterns/alia-assistant/index.js +1 -1
- package/dist/patterns/anamnesis/anamnesis-format.d.ts +1 -1
- package/dist/patterns/anamnesis/anamnesis-i18n.d.ts +3 -2
- package/dist/patterns/anamnesis/index.js +1 -1
- package/dist/patterns/anamnesis/locales/ar.d.ts +776 -0
- package/dist/patterns/anamnesis/locales/de.d.ts +740 -0
- package/dist/patterns/anamnesis/locales/el.d.ts +740 -0
- package/dist/patterns/anamnesis/locales/en.d.ts +740 -0
- package/dist/patterns/anamnesis/locales/es.d.ts +749 -0
- package/dist/patterns/anamnesis/locales/fr.d.ts +749 -0
- package/dist/patterns/anamnesis/locales/hi.d.ts +740 -0
- package/dist/patterns/anamnesis/locales/it.d.ts +749 -0
- package/dist/patterns/anamnesis/locales/ja.d.ts +740 -0
- package/dist/patterns/anamnesis/locales/nl.d.ts +740 -0
- package/dist/patterns/anamnesis/locales/pl.d.ts +758 -0
- package/dist/patterns/anamnesis/locales/pt.d.ts +758 -0
- package/dist/patterns/anamnesis/locales/ro.d.ts +749 -0
- package/dist/patterns/anamnesis/locales/ru.d.ts +758 -0
- package/dist/patterns/anamnesis/locales/sq.d.ts +740 -0
- package/dist/patterns/anamnesis/locales/sv.d.ts +740 -0
- package/dist/patterns/anamnesis/locales/tr.d.ts +740 -0
- package/dist/patterns/anamnesis/locales/zh.d.ts +740 -0
- package/dist/patterns/calendar/calendar-appointment-details.d.ts +4 -1
- package/dist/patterns/calendar/calendar-workspace.d.ts +5 -0
- package/dist/patterns/calendar/calendar.sheets.d.ts +4 -1
- package/dist/patterns/calendar/calendar.types.d.ts +3 -1
- package/dist/patterns/calendar/index.d.ts +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/patterns/help-me-write-templates/index.js +1 -1
- package/dist/patterns/marketplace-app-shell/index.js +1 -1
- package/dist/patterns/payment-automation-upsell/index.js +1 -1
- package/dist/patterns/signature-request/index.js +1 -1
- package/dist/tokens.css +5 -2
- package/package.json +12 -2
- package/dist/_chunks/anamnesis-summary-rows-D9LZZHLw.js +0 -9416
- package/dist/_chunks/data-table-C4yPR89K.js +0 -1824
- package/dist/_chunks/subDays-HPvBuvq3.js +0 -8
- package/dist/_chunks/use-appointment-details-read-uEnJLVfA.js +0 -2045
- package/dist/_chunks/use-locale-BkCIHujH.js +0 -20
|
@@ -1,10 +1,48 @@
|
|
|
1
|
-
import m, { createContext as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import m, { useMemo as he, createContext as cn, useContext as un, useCallback as G, useRef as ke, useLayoutEffect as hn, useState as De, useEffect as lt } from "react";
|
|
2
|
+
import { useTranslation as mn } from "react-i18next";
|
|
3
|
+
import { f as yn } from "./intl-locale-CXM-B8EP.js";
|
|
4
|
+
import { t as B, c as R, n as Oe, u as gn, B as le, f as fe, j as ft, z as ct, y as ut, G as bn, b as vn, r as pn, x as Mn, s as kn, H as Dn } from "./format-D-1gTdHF.js";
|
|
5
|
+
import { jsx as Le } from "react/jsx-runtime";
|
|
6
|
+
import { C as On } from "./chevron-left-B8cOyH-V.js";
|
|
7
|
+
import { C as wn } from "./chevron-right-I9AeSxH2.js";
|
|
6
8
|
import { c as ne } from "./index-D2ZczOXr.js";
|
|
7
|
-
function
|
|
9
|
+
function xs() {
|
|
10
|
+
const { t: e, i18n: t } = mn("ui");
|
|
11
|
+
return he(
|
|
12
|
+
() => Wn(e, t.language),
|
|
13
|
+
[e, t.language]
|
|
14
|
+
);
|
|
15
|
+
}
|
|
16
|
+
function Wn(e, t) {
|
|
17
|
+
const r = yn(t), n = new Intl.DateTimeFormat(r, {
|
|
18
|
+
calendar: "gregory",
|
|
19
|
+
dateStyle: "full"
|
|
20
|
+
}), s = new Intl.DateTimeFormat(r, {
|
|
21
|
+
calendar: "gregory",
|
|
22
|
+
month: "long",
|
|
23
|
+
year: "numeric"
|
|
24
|
+
}), o = new Intl.DateTimeFormat(r, { weekday: "long" }), a = new Intl.NumberFormat(r), i = (d, l) => {
|
|
25
|
+
const f = n.format(d);
|
|
26
|
+
return l ? e("inputs.datePicker.todayDate", { date: f }) : f;
|
|
27
|
+
};
|
|
28
|
+
return {
|
|
29
|
+
labelNext: () => e("inputs.datePicker.nextMonth"),
|
|
30
|
+
labelPrevious: () => e("inputs.datePicker.previousMonth"),
|
|
31
|
+
labelMonthDropdown: () => e("inputs.datePicker.chooseMonth"),
|
|
32
|
+
labelYearDropdown: () => e("inputs.datePicker.chooseYear"),
|
|
33
|
+
labelNav: () => e("inputs.datePicker.gridLabel"),
|
|
34
|
+
labelDayButton: (d, l) => {
|
|
35
|
+
const f = i(d, l.today);
|
|
36
|
+
return l.selected ? e("inputs.datePicker.selectedDate", { date: f }) : f;
|
|
37
|
+
},
|
|
38
|
+
labelGridcell: (d, l) => i(d, l == null ? void 0 : l.today),
|
|
39
|
+
labelGrid: (d) => s.format(d),
|
|
40
|
+
labelWeekday: (d) => o.format(d),
|
|
41
|
+
labelWeekNumber: (d) => e("inputs.datePicker.weekNumber", { number: a.format(d) }),
|
|
42
|
+
labelWeekNumberHeader: () => e("inputs.datePicker.weekNumberHeader")
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function Nn(e, t, r = "long") {
|
|
8
46
|
return new Intl.DateTimeFormat("en-US", {
|
|
9
47
|
// Enforces engine to render the time. Without the option JavaScriptCore omits it.
|
|
10
48
|
hour: "numeric",
|
|
@@ -12,29 +50,29 @@ function kn(e, t, r = "long") {
|
|
|
12
50
|
timeZoneName: r
|
|
13
51
|
}).format(t).split(/\s/g).slice(2).join(" ");
|
|
14
52
|
}
|
|
15
|
-
const
|
|
53
|
+
const Ee = {}, ce = {};
|
|
16
54
|
function se(e, t) {
|
|
17
55
|
try {
|
|
18
|
-
const n = (
|
|
56
|
+
const n = (Ee[e] || (Ee[e] = new Intl.DateTimeFormat("en-US", {
|
|
19
57
|
timeZone: e,
|
|
20
58
|
timeZoneName: "longOffset"
|
|
21
59
|
}).format))(t).split("GMT")[1];
|
|
22
|
-
return n in ce ? ce[n] :
|
|
60
|
+
return n in ce ? ce[n] : et(n, n.split(":"));
|
|
23
61
|
} catch {
|
|
24
62
|
if (e in ce) return ce[e];
|
|
25
|
-
const r = e == null ? void 0 : e.match(
|
|
26
|
-
return r ?
|
|
63
|
+
const r = e == null ? void 0 : e.match(Cn);
|
|
64
|
+
return r ? et(e, r.slice(1)) : NaN;
|
|
27
65
|
}
|
|
28
66
|
}
|
|
29
|
-
const
|
|
30
|
-
function
|
|
67
|
+
const Cn = /([+-]\d\d):?(\d\d)?/;
|
|
68
|
+
function et(e, t) {
|
|
31
69
|
const r = +(t[0] || 0), n = +(t[1] || 0), s = +(t[2] || 0) / 60;
|
|
32
70
|
return ce[e] = r * 60 + n > 0 ? r * 60 + n + s : r * 60 - n - s;
|
|
33
71
|
}
|
|
34
72
|
class J extends Date {
|
|
35
73
|
//#region static
|
|
36
74
|
constructor(...t) {
|
|
37
|
-
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(se(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)),
|
|
75
|
+
super(), t.length > 1 && typeof t[t.length - 1] == "string" && (this.timeZone = t.pop()), this.internal = /* @__PURE__ */ new Date(), isNaN(se(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)), ht(this), je(this)) : this.setTime(Date.now());
|
|
38
76
|
}
|
|
39
77
|
static tz(t, ...r) {
|
|
40
78
|
return r.length ? new J(...r, t) : new J(Date.now(), t);
|
|
@@ -51,7 +89,7 @@ class J extends Date {
|
|
|
51
89
|
//#endregion
|
|
52
90
|
//#region time
|
|
53
91
|
setTime(t) {
|
|
54
|
-
return Date.prototype.setTime.apply(this, arguments),
|
|
92
|
+
return Date.prototype.setTime.apply(this, arguments), je(this), +this;
|
|
55
93
|
}
|
|
56
94
|
//#endregion
|
|
57
95
|
//#region date-fns integration
|
|
@@ -60,39 +98,39 @@ class J extends Date {
|
|
|
60
98
|
}
|
|
61
99
|
//#endregion
|
|
62
100
|
}
|
|
63
|
-
const
|
|
101
|
+
const tt = /^(get|set)(?!UTC)/;
|
|
64
102
|
Object.getOwnPropertyNames(Date.prototype).forEach((e) => {
|
|
65
|
-
if (!
|
|
66
|
-
const t = e.replace(
|
|
103
|
+
if (!tt.test(e)) return;
|
|
104
|
+
const t = e.replace(tt, "$1UTC");
|
|
67
105
|
J.prototype[t] && (e.startsWith("get") ? J.prototype[e] = function() {
|
|
68
106
|
return this.internal[t]();
|
|
69
107
|
} : (J.prototype[e] = function() {
|
|
70
|
-
return Date.prototype[t].apply(this.internal, arguments),
|
|
108
|
+
return Date.prototype[t].apply(this.internal, arguments), Sn(this), +this;
|
|
71
109
|
}, J.prototype[t] = function() {
|
|
72
|
-
return Date.prototype[t].apply(this, arguments),
|
|
110
|
+
return Date.prototype[t].apply(this, arguments), je(this), +this;
|
|
73
111
|
}));
|
|
74
112
|
});
|
|
75
|
-
function
|
|
113
|
+
function je(e) {
|
|
76
114
|
e.internal.setTime(+e), e.internal.setUTCSeconds(e.internal.getUTCSeconds() - Math.round(-se(e.timeZone, e) * 60));
|
|
77
115
|
}
|
|
78
|
-
function
|
|
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()),
|
|
116
|
+
function Sn(e) {
|
|
117
|
+
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()), ht(e);
|
|
80
118
|
}
|
|
81
|
-
function
|
|
119
|
+
function ht(e) {
|
|
82
120
|
const t = se(e.timeZone, e), r = t > 0 ? Math.floor(t) : Math.ceil(t), n = /* @__PURE__ */ new Date(+e);
|
|
83
121
|
n.setUTCHours(n.getUTCHours() - 1);
|
|
84
122
|
const s = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset(), o = -(/* @__PURE__ */ new Date(+n)).getTimezoneOffset(), a = s - o, i = Date.prototype.getHours.apply(e) !== e.internal.getUTCHours();
|
|
85
123
|
a && i && e.internal.setUTCMinutes(e.internal.getUTCMinutes() + a);
|
|
86
124
|
const d = s - r;
|
|
87
125
|
d && Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + d);
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
const
|
|
91
|
-
(u ||
|
|
92
|
-
const y = se(e.timeZone, e), g = y > 0 ? Math.floor(y) : Math.ceil(y), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - g,
|
|
93
|
-
if (
|
|
126
|
+
const l = /* @__PURE__ */ new Date(+e);
|
|
127
|
+
l.setUTCSeconds(0);
|
|
128
|
+
const f = s > 0 ? l.getSeconds() : (l.getSeconds() - 60) % 60, u = Math.round(-(se(e.timeZone, e) * 60)) % 60;
|
|
129
|
+
(u || f) && (e.internal.setUTCSeconds(e.internal.getUTCSeconds() + u), Date.prototype.setUTCSeconds.call(e, Date.prototype.getUTCSeconds.call(e) + u + f));
|
|
130
|
+
const y = se(e.timeZone, e), g = y > 0 ? Math.floor(y) : Math.ceil(y), W = -(/* @__PURE__ */ new Date(+e)).getTimezoneOffset() - g, k = g !== r, S = W - d;
|
|
131
|
+
if (k && S) {
|
|
94
132
|
Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + S);
|
|
95
|
-
const M = se(e.timeZone, e),
|
|
133
|
+
const M = se(e.timeZone, e), v = M > 0 ? Math.floor(M) : Math.ceil(M), N = g - v;
|
|
96
134
|
N && (e.internal.setUTCMinutes(e.internal.getUTCMinutes() + N), Date.prototype.setUTCMinutes.call(e, Date.prototype.getUTCMinutes.call(e) + N));
|
|
97
135
|
}
|
|
98
136
|
}
|
|
@@ -116,7 +154,7 @@ class F extends J {
|
|
|
116
154
|
}
|
|
117
155
|
toTimeString() {
|
|
118
156
|
const t = this.internal.toUTCString().split(" ")[4], [r, n, s] = this.tzComponents();
|
|
119
|
-
return `${t} GMT${r}${n}${s} (${
|
|
157
|
+
return `${t} GMT${r}${n}${s} (${Nn(this.timeZone, this)})`;
|
|
120
158
|
}
|
|
121
159
|
toLocaleString(t, r) {
|
|
122
160
|
return Date.prototype.toLocaleString.call(this, t, {
|
|
@@ -152,16 +190,16 @@ class F extends J {
|
|
|
152
190
|
}
|
|
153
191
|
//#endregion
|
|
154
192
|
}
|
|
155
|
-
function
|
|
193
|
+
function mt(e, t, r) {
|
|
156
194
|
const n = B(e, r == null ? void 0 : r.in);
|
|
157
|
-
return isNaN(t) ?
|
|
195
|
+
return isNaN(t) ? R((r == null ? void 0 : r.in) || e, NaN) : (t && n.setDate(n.getDate() + t), n);
|
|
158
196
|
}
|
|
159
|
-
function
|
|
197
|
+
function yt(e, t, r) {
|
|
160
198
|
const n = B(e, r == null ? void 0 : r.in);
|
|
161
|
-
if (isNaN(t)) return
|
|
199
|
+
if (isNaN(t)) return R(e, NaN);
|
|
162
200
|
if (!t)
|
|
163
201
|
return n;
|
|
164
|
-
const s = n.getDate(), o =
|
|
202
|
+
const s = n.getDate(), o = R(e, n.getTime());
|
|
165
203
|
o.setMonth(n.getMonth() + t + 1, 0);
|
|
166
204
|
const a = o.getDate();
|
|
167
205
|
return s >= a ? o : (n.setFullYear(
|
|
@@ -170,143 +208,143 @@ function mt(e, t, r) {
|
|
|
170
208
|
s
|
|
171
209
|
), n);
|
|
172
210
|
}
|
|
173
|
-
function
|
|
174
|
-
return
|
|
211
|
+
function _n(e, t, r) {
|
|
212
|
+
return mt(e, t * 7, r);
|
|
175
213
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
214
|
+
function xn(e, t, r) {
|
|
215
|
+
return yt(e, t * 12, r);
|
|
178
216
|
}
|
|
179
|
-
function
|
|
217
|
+
function Yn(e, t) {
|
|
180
218
|
let r, n = t == null ? void 0 : t.in;
|
|
181
219
|
return e.forEach((s) => {
|
|
182
|
-
!n && typeof s == "object" && (n =
|
|
220
|
+
!n && typeof s == "object" && (n = R.bind(null, s));
|
|
183
221
|
const o = B(s, n);
|
|
184
222
|
(!r || r < o || isNaN(+o)) && (r = o);
|
|
185
|
-
}),
|
|
223
|
+
}), R(n, r || NaN);
|
|
186
224
|
}
|
|
187
|
-
function
|
|
225
|
+
function Tn(e, t) {
|
|
188
226
|
let r, n = t == null ? void 0 : t.in;
|
|
189
227
|
return e.forEach((s) => {
|
|
190
|
-
!n && typeof s == "object" && (n =
|
|
228
|
+
!n && typeof s == "object" && (n = R.bind(null, s));
|
|
191
229
|
const o = B(s, n);
|
|
192
230
|
(!r || r > o || isNaN(+o)) && (r = o);
|
|
193
|
-
}),
|
|
231
|
+
}), R(n, r || NaN);
|
|
194
232
|
}
|
|
195
|
-
function
|
|
196
|
-
const [n, s] =
|
|
233
|
+
function gt(e, t, r) {
|
|
234
|
+
const [n, s] = Oe(
|
|
197
235
|
r == null ? void 0 : r.in,
|
|
198
236
|
e,
|
|
199
237
|
t
|
|
200
238
|
), o = n.getFullYear() - s.getFullYear(), a = n.getMonth() - s.getMonth();
|
|
201
239
|
return o * 12 + a;
|
|
202
240
|
}
|
|
203
|
-
function
|
|
241
|
+
function En(e, t) {
|
|
204
242
|
const r = B(e, t == null ? void 0 : t.in), n = r.getMonth();
|
|
205
243
|
return r.setFullYear(r.getFullYear(), n + 1, 0), r.setHours(23, 59, 59, 999), r;
|
|
206
244
|
}
|
|
207
|
-
function
|
|
208
|
-
const [r, n] =
|
|
245
|
+
function bt(e, t) {
|
|
246
|
+
const [r, n] = Oe(e, t.start, t.end);
|
|
209
247
|
return { start: r, end: n };
|
|
210
248
|
}
|
|
211
|
-
function
|
|
212
|
-
const { start: r, end: n } =
|
|
249
|
+
function In(e, t) {
|
|
250
|
+
const { start: r, end: n } = bt(t == null ? void 0 : t.in, e);
|
|
213
251
|
let s = +r > +n;
|
|
214
252
|
const o = s ? +r : +n, a = s ? n : r;
|
|
215
253
|
a.setHours(0, 0, 0, 0), a.setDate(1);
|
|
216
254
|
let i = 1;
|
|
217
255
|
const d = [];
|
|
218
256
|
for (; +a <= o; )
|
|
219
|
-
d.push(
|
|
257
|
+
d.push(R(r, a)), a.setMonth(a.getMonth() + i);
|
|
220
258
|
return s ? d.reverse() : d;
|
|
221
259
|
}
|
|
222
|
-
function
|
|
260
|
+
function Bn(e, t) {
|
|
223
261
|
const r = B(e, t == null ? void 0 : t.in);
|
|
224
262
|
return r.setDate(1), r.setHours(0, 0, 0, 0), r;
|
|
225
263
|
}
|
|
226
|
-
function
|
|
264
|
+
function Fn(e, t) {
|
|
227
265
|
const r = B(e, t == null ? void 0 : t.in), n = r.getFullYear();
|
|
228
266
|
return r.setFullYear(n + 1, 0, 0), r.setHours(23, 59, 59, 999), r;
|
|
229
267
|
}
|
|
230
|
-
function
|
|
231
|
-
const { start: r, end: n } =
|
|
268
|
+
function zn(e, t) {
|
|
269
|
+
const { start: r, end: n } = bt(t == null ? void 0 : t.in, e);
|
|
232
270
|
let s = +r > +n;
|
|
233
271
|
const o = s ? +r : +n, a = s ? n : r;
|
|
234
272
|
a.setHours(0, 0, 0, 0), a.setMonth(0, 1);
|
|
235
273
|
let i = 1;
|
|
236
274
|
const d = [];
|
|
237
275
|
for (; +a <= o; )
|
|
238
|
-
d.push(
|
|
276
|
+
d.push(R(r, a)), a.setFullYear(a.getFullYear() + i);
|
|
239
277
|
return s ? d.reverse() : d;
|
|
240
278
|
}
|
|
241
279
|
function vt(e, t) {
|
|
242
|
-
var i, d,
|
|
243
|
-
const r =
|
|
280
|
+
var i, d, l, f;
|
|
281
|
+
const r = gn(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((d = (i = t == null ? void 0 : t.locale) == null ? void 0 : i.options) == null ? void 0 : d.weekStartsOn) ?? r.weekStartsOn ?? ((f = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : f.weekStartsOn) ?? 0, s = B(e, t == null ? void 0 : t.in), o = s.getDay(), a = (o < n ? -7 : 0) + 6 - (o - n);
|
|
244
282
|
return s.setDate(s.getDate() + a), s.setHours(23, 59, 59, 999), s;
|
|
245
283
|
}
|
|
246
|
-
function
|
|
284
|
+
function Pn(e, t) {
|
|
247
285
|
return vt(e, { ...t, weekStartsOn: 1 });
|
|
248
286
|
}
|
|
249
|
-
function
|
|
250
|
-
const r = B(e, t == null ? void 0 : t.in), n = r.getFullYear(), s = r.getMonth(), o =
|
|
287
|
+
function An(e, t) {
|
|
288
|
+
const r = B(e, t == null ? void 0 : t.in), n = r.getFullYear(), s = r.getMonth(), o = R(r, 0);
|
|
251
289
|
return o.setFullYear(n, s + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
|
|
252
290
|
}
|
|
253
|
-
function
|
|
291
|
+
function Hn(e, t) {
|
|
254
292
|
return B(e, t == null ? void 0 : t.in).getMonth();
|
|
255
293
|
}
|
|
256
|
-
function
|
|
294
|
+
function jn(e, t) {
|
|
257
295
|
return B(e, t == null ? void 0 : t.in).getFullYear();
|
|
258
296
|
}
|
|
259
|
-
function
|
|
297
|
+
function $n(e, t) {
|
|
260
298
|
return +B(e) > +B(t);
|
|
261
299
|
}
|
|
262
|
-
function
|
|
300
|
+
function Gn(e, t) {
|
|
263
301
|
return +B(e) < +B(t);
|
|
264
302
|
}
|
|
265
|
-
function
|
|
266
|
-
const [n, s] =
|
|
303
|
+
function qn(e, t, r) {
|
|
304
|
+
const [n, s] = Oe(
|
|
267
305
|
r == null ? void 0 : r.in,
|
|
268
306
|
e,
|
|
269
307
|
t
|
|
270
308
|
);
|
|
271
309
|
return n.getFullYear() === s.getFullYear() && n.getMonth() === s.getMonth();
|
|
272
310
|
}
|
|
273
|
-
function
|
|
274
|
-
const [n, s] =
|
|
311
|
+
function Rn(e, t, r) {
|
|
312
|
+
const [n, s] = Oe(
|
|
275
313
|
r == null ? void 0 : r.in,
|
|
276
314
|
e,
|
|
277
315
|
t
|
|
278
316
|
);
|
|
279
317
|
return n.getFullYear() === s.getFullYear();
|
|
280
318
|
}
|
|
281
|
-
function
|
|
282
|
-
const n = B(e, r == null ? void 0 : r.in), s = n.getFullYear(), o = n.getDate(), a =
|
|
319
|
+
function Vn(e, t, r) {
|
|
320
|
+
const n = B(e, r == null ? void 0 : r.in), s = n.getFullYear(), o = n.getDate(), a = R(e, 0);
|
|
283
321
|
a.setFullYear(s, t, 15), a.setHours(0, 0, 0, 0);
|
|
284
|
-
const i =
|
|
322
|
+
const i = An(a);
|
|
285
323
|
return n.setMonth(t, Math.min(o, i)), n;
|
|
286
324
|
}
|
|
287
|
-
function
|
|
325
|
+
function Un(e, t, r) {
|
|
288
326
|
const n = B(e, r == null ? void 0 : r.in);
|
|
289
|
-
return isNaN(+n) ?
|
|
327
|
+
return isNaN(+n) ? R(e, NaN) : (n.setFullYear(t), n);
|
|
290
328
|
}
|
|
291
|
-
const
|
|
292
|
-
function
|
|
293
|
-
const r = t.startOfMonth(e), n = r.getDay() > 0 ? r.getDay() : 7, s = t.addDays(e, -n + 1), o = t.addDays(s,
|
|
294
|
-
return t.getMonth(e) === t.getMonth(o) ?
|
|
329
|
+
const nt = 5, Kn = 4;
|
|
330
|
+
function Zn(e, t) {
|
|
331
|
+
const r = t.startOfMonth(e), n = r.getDay() > 0 ? r.getDay() : 7, s = t.addDays(e, -n + 1), o = t.addDays(s, nt * 7 - 1);
|
|
332
|
+
return t.getMonth(e) === t.getMonth(o) ? nt : Kn;
|
|
295
333
|
}
|
|
296
|
-
function
|
|
334
|
+
function pt(e, t) {
|
|
297
335
|
const r = t.startOfMonth(e), n = r.getDay();
|
|
298
336
|
return n === 1 ? r : n === 0 ? t.addDays(r, -6) : t.addDays(r, -1 * (n - 1));
|
|
299
337
|
}
|
|
300
|
-
function
|
|
301
|
-
const r =
|
|
338
|
+
function Jn(e, t) {
|
|
339
|
+
const r = pt(e, t), n = Zn(e, t);
|
|
302
340
|
return t.addDays(r, n * 7 - 1);
|
|
303
341
|
}
|
|
304
|
-
const
|
|
305
|
-
...
|
|
342
|
+
const Mt = {
|
|
343
|
+
...le,
|
|
306
344
|
labels: {
|
|
307
345
|
labelDayButton: (e, t, r, n) => {
|
|
308
346
|
let s;
|
|
309
|
-
n && typeof n.format == "function" ? s = n.format.bind(n) : s = (a, i) =>
|
|
347
|
+
n && typeof n.format == "function" ? s = n.format.bind(n) : s = (a, i) => fe(a, i, { locale: le, ...r });
|
|
310
348
|
let o = s(e, "PPPP");
|
|
311
349
|
return t.today && (o = `Today, ${o}`), t.selected && (o = `${o}, selected`), o;
|
|
312
350
|
},
|
|
@@ -317,11 +355,11 @@ const pt = {
|
|
|
317
355
|
labelYearDropdown: "Choose the Year",
|
|
318
356
|
labelGrid: (e, t, r) => {
|
|
319
357
|
let n;
|
|
320
|
-
return r && typeof r.format == "function" ? n = r.format.bind(r) : n = (s, o) =>
|
|
358
|
+
return r && typeof r.format == "function" ? n = r.format.bind(r) : n = (s, o) => fe(s, o, { locale: le, ...t }), n(e, "LLLL yyyy");
|
|
321
359
|
},
|
|
322
360
|
labelGridcell: (e, t, r, n) => {
|
|
323
361
|
let s;
|
|
324
|
-
n && typeof n.format == "function" ? s = n.format.bind(n) : s = (a, i) =>
|
|
362
|
+
n && typeof n.format == "function" ? s = n.format.bind(n) : s = (a, i) => fe(a, i, { locale: le, ...r });
|
|
325
363
|
let o = s(e, "PPPP");
|
|
326
364
|
return t != null && t.today && (o = `Today, ${o}`), o;
|
|
327
365
|
},
|
|
@@ -329,7 +367,7 @@ const pt = {
|
|
|
329
367
|
labelWeekNumberHeader: "Week Number",
|
|
330
368
|
labelWeekday: (e, t, r) => {
|
|
331
369
|
let n;
|
|
332
|
-
return r && typeof r.format == "function" ? n = r.format.bind(r) : n = (s, o) =>
|
|
370
|
+
return r && typeof r.format == "function" ? n = r.format.bind(r) : n = (s, o) => fe(s, o, { locale: le, ...t }), n(e, "cccc");
|
|
333
371
|
}
|
|
334
372
|
}
|
|
335
373
|
};
|
|
@@ -349,28 +387,28 @@ class H {
|
|
|
349
387
|
return (a = this.overrides) != null && a.newDate ? this.overrides.newDate(n, s, o) : this.options.timeZone ? new F(n, s, o, this.options.timeZone) : new Date(n, s, o);
|
|
350
388
|
}, this.addDays = (n, s) => {
|
|
351
389
|
var o;
|
|
352
|
-
return (o = this.overrides) != null && o.addDays ? this.overrides.addDays(n, s) :
|
|
390
|
+
return (o = this.overrides) != null && o.addDays ? this.overrides.addDays(n, s) : mt(n, s);
|
|
353
391
|
}, this.addMonths = (n, s) => {
|
|
354
392
|
var o;
|
|
355
|
-
return (o = this.overrides) != null && o.addMonths ? this.overrides.addMonths(n, s) :
|
|
393
|
+
return (o = this.overrides) != null && o.addMonths ? this.overrides.addMonths(n, s) : yt(n, s);
|
|
356
394
|
}, this.addWeeks = (n, s) => {
|
|
357
395
|
var o;
|
|
358
|
-
return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(n, s) :
|
|
396
|
+
return (o = this.overrides) != null && o.addWeeks ? this.overrides.addWeeks(n, s) : _n(n, s);
|
|
359
397
|
}, this.addYears = (n, s) => {
|
|
360
398
|
var o;
|
|
361
|
-
return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(n, s) :
|
|
399
|
+
return (o = this.overrides) != null && o.addYears ? this.overrides.addYears(n, s) : xn(n, s);
|
|
362
400
|
}, this.differenceInCalendarDays = (n, s) => {
|
|
363
401
|
var o;
|
|
364
402
|
return (o = this.overrides) != null && o.differenceInCalendarDays ? this.overrides.differenceInCalendarDays(n, s) : ft(n, s);
|
|
365
403
|
}, this.differenceInCalendarMonths = (n, s) => {
|
|
366
404
|
var o;
|
|
367
|
-
return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, s) :
|
|
405
|
+
return (o = this.overrides) != null && o.differenceInCalendarMonths ? this.overrides.differenceInCalendarMonths(n, s) : gt(n, s);
|
|
368
406
|
}, this.eachMonthOfInterval = (n) => {
|
|
369
407
|
var s;
|
|
370
|
-
return (s = this.overrides) != null && s.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) :
|
|
408
|
+
return (s = this.overrides) != null && s.eachMonthOfInterval ? this.overrides.eachMonthOfInterval(n) : In(n);
|
|
371
409
|
}, this.eachYearOfInterval = (n) => {
|
|
372
410
|
var i;
|
|
373
|
-
const s = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(n) :
|
|
411
|
+
const s = (i = this.overrides) != null && i.eachYearOfInterval ? this.overrides.eachYearOfInterval(n) : zn(n), o = new Set(s.map((d) => this.getYear(d)));
|
|
374
412
|
if (o.size === s.length)
|
|
375
413
|
return s;
|
|
376
414
|
const a = [];
|
|
@@ -379,84 +417,84 @@ class H {
|
|
|
379
417
|
}), a;
|
|
380
418
|
}, this.endOfBroadcastWeek = (n) => {
|
|
381
419
|
var s;
|
|
382
|
-
return (s = this.overrides) != null && s.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) :
|
|
420
|
+
return (s = this.overrides) != null && s.endOfBroadcastWeek ? this.overrides.endOfBroadcastWeek(n) : Jn(n, this);
|
|
383
421
|
}, this.endOfISOWeek = (n) => {
|
|
384
422
|
var s;
|
|
385
|
-
return (s = this.overrides) != null && s.endOfISOWeek ? this.overrides.endOfISOWeek(n) :
|
|
423
|
+
return (s = this.overrides) != null && s.endOfISOWeek ? this.overrides.endOfISOWeek(n) : Pn(n);
|
|
386
424
|
}, this.endOfMonth = (n) => {
|
|
387
425
|
var s;
|
|
388
|
-
return (s = this.overrides) != null && s.endOfMonth ? this.overrides.endOfMonth(n) :
|
|
426
|
+
return (s = this.overrides) != null && s.endOfMonth ? this.overrides.endOfMonth(n) : En(n);
|
|
389
427
|
}, this.endOfWeek = (n, s) => {
|
|
390
428
|
var o;
|
|
391
429
|
return (o = this.overrides) != null && o.endOfWeek ? this.overrides.endOfWeek(n, s) : vt(n, this.options);
|
|
392
430
|
}, this.endOfYear = (n) => {
|
|
393
431
|
var s;
|
|
394
|
-
return (s = this.overrides) != null && s.endOfYear ? this.overrides.endOfYear(n) :
|
|
432
|
+
return (s = this.overrides) != null && s.endOfYear ? this.overrides.endOfYear(n) : Fn(n);
|
|
395
433
|
}, this.format = (n, s, o) => {
|
|
396
434
|
var i;
|
|
397
|
-
const a = (i = this.overrides) != null && i.format ? this.overrides.format(n, s, this.options) :
|
|
435
|
+
const a = (i = this.overrides) != null && i.format ? this.overrides.format(n, s, this.options) : fe(n, s, this.options);
|
|
398
436
|
return this.options.numerals && this.options.numerals !== "latn" ? this.replaceDigits(a) : a;
|
|
399
437
|
}, this.getISOWeek = (n) => {
|
|
400
438
|
var s;
|
|
401
|
-
return (s = this.overrides) != null && s.getISOWeek ? this.overrides.getISOWeek(n) :
|
|
439
|
+
return (s = this.overrides) != null && s.getISOWeek ? this.overrides.getISOWeek(n) : ct(n);
|
|
402
440
|
}, this.getMonth = (n, s) => {
|
|
403
441
|
var o;
|
|
404
|
-
return (o = this.overrides) != null && o.getMonth ? this.overrides.getMonth(n, this.options) :
|
|
442
|
+
return (o = this.overrides) != null && o.getMonth ? this.overrides.getMonth(n, this.options) : Hn(n, this.options);
|
|
405
443
|
}, this.getYear = (n, s) => {
|
|
406
444
|
var o;
|
|
407
|
-
return (o = this.overrides) != null && o.getYear ? this.overrides.getYear(n, this.options) :
|
|
445
|
+
return (o = this.overrides) != null && o.getYear ? this.overrides.getYear(n, this.options) : jn(n, this.options);
|
|
408
446
|
}, this.getWeek = (n, s) => {
|
|
409
447
|
var o;
|
|
410
|
-
return (o = this.overrides) != null && o.getWeek ? this.overrides.getWeek(n, this.options) :
|
|
448
|
+
return (o = this.overrides) != null && o.getWeek ? this.overrides.getWeek(n, this.options) : ut(n, this.options);
|
|
411
449
|
}, this.isAfter = (n, s) => {
|
|
412
450
|
var o;
|
|
413
|
-
return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(n, s) :
|
|
451
|
+
return (o = this.overrides) != null && o.isAfter ? this.overrides.isAfter(n, s) : $n(n, s);
|
|
414
452
|
}, this.isBefore = (n, s) => {
|
|
415
453
|
var o;
|
|
416
|
-
return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(n, s) :
|
|
454
|
+
return (o = this.overrides) != null && o.isBefore ? this.overrides.isBefore(n, s) : Gn(n, s);
|
|
417
455
|
}, this.isDate = (n) => {
|
|
418
456
|
var s;
|
|
419
|
-
return (s = this.overrides) != null && s.isDate ? this.overrides.isDate(n) :
|
|
457
|
+
return (s = this.overrides) != null && s.isDate ? this.overrides.isDate(n) : bn(n);
|
|
420
458
|
}, this.isSameDay = (n, s) => {
|
|
421
459
|
var o;
|
|
422
|
-
return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(n, s) :
|
|
460
|
+
return (o = this.overrides) != null && o.isSameDay ? this.overrides.isSameDay(n, s) : vn(n, s);
|
|
423
461
|
}, this.isSameMonth = (n, s) => {
|
|
424
462
|
var o;
|
|
425
|
-
return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(n, s) :
|
|
463
|
+
return (o = this.overrides) != null && o.isSameMonth ? this.overrides.isSameMonth(n, s) : qn(n, s);
|
|
426
464
|
}, this.isSameYear = (n, s) => {
|
|
427
465
|
var o;
|
|
428
|
-
return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(n, s) :
|
|
466
|
+
return (o = this.overrides) != null && o.isSameYear ? this.overrides.isSameYear(n, s) : Rn(n, s);
|
|
429
467
|
}, this.max = (n) => {
|
|
430
468
|
var s;
|
|
431
|
-
return (s = this.overrides) != null && s.max ? this.overrides.max(n) :
|
|
469
|
+
return (s = this.overrides) != null && s.max ? this.overrides.max(n) : Yn(n);
|
|
432
470
|
}, this.min = (n) => {
|
|
433
471
|
var s;
|
|
434
|
-
return (s = this.overrides) != null && s.min ? this.overrides.min(n) :
|
|
472
|
+
return (s = this.overrides) != null && s.min ? this.overrides.min(n) : Tn(n);
|
|
435
473
|
}, this.setMonth = (n, s) => {
|
|
436
474
|
var o;
|
|
437
|
-
return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(n, s) :
|
|
475
|
+
return (o = this.overrides) != null && o.setMonth ? this.overrides.setMonth(n, s) : Vn(n, s);
|
|
438
476
|
}, this.setYear = (n, s) => {
|
|
439
477
|
var o;
|
|
440
|
-
return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(n, s) :
|
|
478
|
+
return (o = this.overrides) != null && o.setYear ? this.overrides.setYear(n, s) : Un(n, s);
|
|
441
479
|
}, this.startOfBroadcastWeek = (n, s) => {
|
|
442
480
|
var o;
|
|
443
|
-
return (o = this.overrides) != null && o.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) :
|
|
481
|
+
return (o = this.overrides) != null && o.startOfBroadcastWeek ? this.overrides.startOfBroadcastWeek(n, this) : pt(n, this);
|
|
444
482
|
}, this.startOfDay = (n) => {
|
|
445
483
|
var s;
|
|
446
|
-
return (s = this.overrides) != null && s.startOfDay ? this.overrides.startOfDay(n) :
|
|
484
|
+
return (s = this.overrides) != null && s.startOfDay ? this.overrides.startOfDay(n) : pn(n);
|
|
447
485
|
}, this.startOfISOWeek = (n) => {
|
|
448
486
|
var s;
|
|
449
|
-
return (s = this.overrides) != null && s.startOfISOWeek ? this.overrides.startOfISOWeek(n) :
|
|
487
|
+
return (s = this.overrides) != null && s.startOfISOWeek ? this.overrides.startOfISOWeek(n) : Mn(n);
|
|
450
488
|
}, this.startOfMonth = (n) => {
|
|
451
489
|
var s;
|
|
452
|
-
return (s = this.overrides) != null && s.startOfMonth ? this.overrides.startOfMonth(n) :
|
|
490
|
+
return (s = this.overrides) != null && s.startOfMonth ? this.overrides.startOfMonth(n) : Bn(n);
|
|
453
491
|
}, this.startOfWeek = (n, s) => {
|
|
454
492
|
var o;
|
|
455
|
-
return (o = this.overrides) != null && o.startOfWeek ? this.overrides.startOfWeek(n, this.options) :
|
|
493
|
+
return (o = this.overrides) != null && o.startOfWeek ? this.overrides.startOfWeek(n, this.options) : kn(n, this.options);
|
|
456
494
|
}, this.startOfYear = (n) => {
|
|
457
495
|
var s;
|
|
458
|
-
return (s = this.overrides) != null && s.startOfYear ? this.overrides.startOfYear(n) :
|
|
459
|
-
}, this.options = { locale:
|
|
496
|
+
return (s = this.overrides) != null && s.startOfYear ? this.overrides.startOfYear(n) : Dn(n);
|
|
497
|
+
}, this.options = { locale: Mt, ...t }, this.overrides = r;
|
|
460
498
|
}
|
|
461
499
|
/**
|
|
462
500
|
* Generates a mapping of Arabic digits (0-9) to the target numbering system
|
|
@@ -544,7 +582,7 @@ H.yearFirstLocales = /* @__PURE__ */ new Set([
|
|
|
544
582
|
"zh-TW"
|
|
545
583
|
]);
|
|
546
584
|
const Q = new H();
|
|
547
|
-
class
|
|
585
|
+
class kt {
|
|
548
586
|
constructor(t, r, n = Q) {
|
|
549
587
|
this.date = t, this.displayMonth = r, this.outside = !!(r && !n.isSameMonth(t, r)), this.dateLib = n, this.isoDate = n.format(t, "yyyy-MM-dd"), this.displayMonthId = n.format(r, "yyyy-MM"), this.dateMonthId = n.format(t, "yyyy-MM");
|
|
550
588
|
}
|
|
@@ -559,23 +597,23 @@ class Mt {
|
|
|
559
597
|
return this.dateLib.isSameDay(t.date, this.date) && this.dateLib.isSameMonth(t.displayMonth, this.displayMonth);
|
|
560
598
|
}
|
|
561
599
|
}
|
|
562
|
-
class
|
|
600
|
+
class Qn {
|
|
563
601
|
constructor(t, r) {
|
|
564
602
|
this.date = t, this.weeks = r;
|
|
565
603
|
}
|
|
566
604
|
}
|
|
567
|
-
class
|
|
605
|
+
class Xn {
|
|
568
606
|
constructor(t, r) {
|
|
569
607
|
this.days = r, this.weekNumber = t;
|
|
570
608
|
}
|
|
571
609
|
}
|
|
572
|
-
function
|
|
610
|
+
function Ln(e) {
|
|
573
611
|
return m.createElement("button", { ...e });
|
|
574
612
|
}
|
|
575
|
-
function
|
|
613
|
+
function er(e) {
|
|
576
614
|
return m.createElement("span", { ...e });
|
|
577
615
|
}
|
|
578
|
-
function
|
|
616
|
+
function tr(e) {
|
|
579
617
|
const { size: t = 24, orientation: r = "left", className: n } = e;
|
|
580
618
|
return (
|
|
581
619
|
// biome-ignore lint/a11y/noSvgWithoutTitle: handled by the parent component
|
|
@@ -589,11 +627,11 @@ function Qn(e) {
|
|
|
589
627
|
)
|
|
590
628
|
);
|
|
591
629
|
}
|
|
592
|
-
function
|
|
630
|
+
function nr(e) {
|
|
593
631
|
const { day: t, modifiers: r, ...n } = e;
|
|
594
632
|
return m.createElement("td", { ...n });
|
|
595
633
|
}
|
|
596
|
-
function
|
|
634
|
+
function rr(e) {
|
|
597
635
|
const { day: t, modifiers: r, ...n } = e, s = m.useRef(null);
|
|
598
636
|
return m.useEffect(() => {
|
|
599
637
|
var o;
|
|
@@ -612,16 +650,16 @@ var z;
|
|
|
612
650
|
(function(e) {
|
|
613
651
|
e.range_end = "range_end", e.range_middle = "range_middle", e.range_start = "range_start", e.selected = "selected";
|
|
614
652
|
})(z || (z = {}));
|
|
615
|
-
var
|
|
653
|
+
var A;
|
|
616
654
|
(function(e) {
|
|
617
655
|
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";
|
|
618
|
-
})(
|
|
619
|
-
function
|
|
656
|
+
})(A || (A = {}));
|
|
657
|
+
function sr(e) {
|
|
620
658
|
const { options: t, className: r, components: n, classNames: s, ...o } = e, a = [s[h.Dropdown], r].join(" "), i = t == null ? void 0 : t.find(({ value: d }) => d === o.value);
|
|
621
659
|
return m.createElement(
|
|
622
660
|
"span",
|
|
623
661
|
{ "data-disabled": o.disabled, className: s[h.DropdownRoot] },
|
|
624
|
-
m.createElement(n.Select, { className: a, ...o }, t == null ? void 0 : t.map(({ value: d, label:
|
|
662
|
+
m.createElement(n.Select, { className: a, ...o }, t == null ? void 0 : t.map(({ value: d, label: l, disabled: f }) => m.createElement(n.Option, { key: d, value: d, disabled: f }, l))),
|
|
625
663
|
m.createElement(
|
|
626
664
|
"span",
|
|
627
665
|
{ className: s[h.CaptionLabel], "aria-hidden": !0 },
|
|
@@ -630,39 +668,39 @@ function er(e) {
|
|
|
630
668
|
)
|
|
631
669
|
);
|
|
632
670
|
}
|
|
633
|
-
function
|
|
671
|
+
function or(e) {
|
|
634
672
|
return m.createElement("div", { ...e });
|
|
635
673
|
}
|
|
636
|
-
function
|
|
674
|
+
function ar(e) {
|
|
637
675
|
return m.createElement("div", { ...e });
|
|
638
676
|
}
|
|
639
|
-
function
|
|
677
|
+
function ir(e) {
|
|
640
678
|
const { calendarMonth: t, displayIndex: r, ...n } = e;
|
|
641
679
|
return m.createElement("div", { ...n }, e.children);
|
|
642
680
|
}
|
|
643
|
-
function
|
|
681
|
+
function dr(e) {
|
|
644
682
|
const { calendarMonth: t, displayIndex: r, ...n } = e;
|
|
645
683
|
return m.createElement("div", { ...n });
|
|
646
684
|
}
|
|
647
|
-
function
|
|
685
|
+
function lr(e) {
|
|
648
686
|
return m.createElement("table", { ...e });
|
|
649
687
|
}
|
|
650
|
-
function
|
|
688
|
+
function fr(e) {
|
|
651
689
|
return m.createElement("div", { ...e });
|
|
652
690
|
}
|
|
653
|
-
const Dt =
|
|
654
|
-
function
|
|
655
|
-
const e =
|
|
691
|
+
const Dt = cn(void 0);
|
|
692
|
+
function me() {
|
|
693
|
+
const e = un(Dt);
|
|
656
694
|
if (e === void 0)
|
|
657
695
|
throw new Error("useDayPicker() must be used within a custom component.");
|
|
658
696
|
return e;
|
|
659
697
|
}
|
|
660
|
-
function
|
|
661
|
-
const { components: t } =
|
|
698
|
+
function cr(e) {
|
|
699
|
+
const { components: t } = me();
|
|
662
700
|
return m.createElement(t.Dropdown, { ...e });
|
|
663
701
|
}
|
|
664
|
-
function
|
|
665
|
-
const { onPreviousClick: t, onNextClick: r, previousMonth: n, nextMonth: s, ...o } = e, { components: a, classNames: i, labels: { labelPrevious: d, labelNext:
|
|
702
|
+
function ur(e) {
|
|
703
|
+
const { onPreviousClick: t, onNextClick: r, previousMonth: n, nextMonth: s, ...o } = e, { components: a, classNames: i, labels: { labelPrevious: d, labelNext: l } } = me(), f = G((y) => {
|
|
666
704
|
s && (r == null || r(y));
|
|
667
705
|
}, [s, r]), u = G((y) => {
|
|
668
706
|
n && (t == null || t(y));
|
|
@@ -677,107 +715,107 @@ function dr(e) {
|
|
|
677
715
|
),
|
|
678
716
|
m.createElement(
|
|
679
717
|
a.NextMonthButton,
|
|
680
|
-
{ type: "button", className: i[h.NextMonthButton], tabIndex: s ? void 0 : -1, "aria-disabled": s ? void 0 : !0, "aria-label":
|
|
718
|
+
{ type: "button", className: i[h.NextMonthButton], tabIndex: s ? void 0 : -1, "aria-disabled": s ? void 0 : !0, "aria-label": l(s), onClick: f },
|
|
681
719
|
m.createElement(a.Chevron, { disabled: s ? void 0 : !0, orientation: "right", className: i[h.Chevron] })
|
|
682
720
|
)
|
|
683
721
|
);
|
|
684
722
|
}
|
|
685
|
-
function
|
|
686
|
-
const { components: t } =
|
|
723
|
+
function hr(e) {
|
|
724
|
+
const { components: t } = me();
|
|
687
725
|
return m.createElement(t.Button, { ...e });
|
|
688
726
|
}
|
|
689
|
-
function
|
|
727
|
+
function mr(e) {
|
|
690
728
|
return m.createElement("option", { ...e });
|
|
691
729
|
}
|
|
692
|
-
function
|
|
693
|
-
const { components: t } =
|
|
730
|
+
function yr(e) {
|
|
731
|
+
const { components: t } = me();
|
|
694
732
|
return m.createElement(t.Button, { ...e });
|
|
695
733
|
}
|
|
696
|
-
function
|
|
734
|
+
function gr(e) {
|
|
697
735
|
const { rootRef: t, ...r } = e;
|
|
698
736
|
return m.createElement("div", { ...r, ref: t });
|
|
699
737
|
}
|
|
700
|
-
function
|
|
738
|
+
function br(e) {
|
|
701
739
|
return m.createElement("select", { ...e });
|
|
702
740
|
}
|
|
703
|
-
function
|
|
741
|
+
function vr(e) {
|
|
704
742
|
const { week: t, ...r } = e;
|
|
705
743
|
return m.createElement("tr", { ...r });
|
|
706
744
|
}
|
|
707
|
-
function
|
|
745
|
+
function pr(e) {
|
|
708
746
|
return m.createElement("th", { ...e });
|
|
709
747
|
}
|
|
710
|
-
function
|
|
748
|
+
function Mr(e) {
|
|
711
749
|
return m.createElement(
|
|
712
750
|
"thead",
|
|
713
751
|
{ "aria-hidden": !0 },
|
|
714
752
|
m.createElement("tr", { ...e })
|
|
715
753
|
);
|
|
716
754
|
}
|
|
717
|
-
function
|
|
755
|
+
function kr(e) {
|
|
718
756
|
const { week: t, ...r } = e;
|
|
719
757
|
return m.createElement("th", { ...r });
|
|
720
758
|
}
|
|
721
|
-
function
|
|
759
|
+
function Dr(e) {
|
|
722
760
|
return m.createElement("th", { ...e });
|
|
723
761
|
}
|
|
724
|
-
function
|
|
762
|
+
function Or(e) {
|
|
725
763
|
return m.createElement("tbody", { ...e });
|
|
726
764
|
}
|
|
727
|
-
function
|
|
728
|
-
const { components: t } =
|
|
765
|
+
function wr(e) {
|
|
766
|
+
const { components: t } = me();
|
|
729
767
|
return m.createElement(t.Dropdown, { ...e });
|
|
730
768
|
}
|
|
731
|
-
const
|
|
769
|
+
const Wr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
732
770
|
__proto__: null,
|
|
733
|
-
Button:
|
|
734
|
-
CaptionLabel:
|
|
735
|
-
Chevron:
|
|
736
|
-
Day:
|
|
737
|
-
DayButton:
|
|
738
|
-
Dropdown:
|
|
739
|
-
DropdownNav:
|
|
740
|
-
Footer:
|
|
741
|
-
Month:
|
|
742
|
-
MonthCaption:
|
|
743
|
-
MonthGrid:
|
|
744
|
-
Months:
|
|
745
|
-
MonthsDropdown:
|
|
746
|
-
Nav:
|
|
747
|
-
NextMonthButton:
|
|
748
|
-
Option:
|
|
749
|
-
PreviousMonthButton:
|
|
750
|
-
Root:
|
|
751
|
-
Select:
|
|
752
|
-
Week:
|
|
753
|
-
WeekNumber:
|
|
754
|
-
WeekNumberHeader:
|
|
755
|
-
Weekday:
|
|
756
|
-
Weekdays:
|
|
757
|
-
Weeks:
|
|
758
|
-
YearsDropdown:
|
|
771
|
+
Button: Ln,
|
|
772
|
+
CaptionLabel: er,
|
|
773
|
+
Chevron: tr,
|
|
774
|
+
Day: nr,
|
|
775
|
+
DayButton: rr,
|
|
776
|
+
Dropdown: sr,
|
|
777
|
+
DropdownNav: or,
|
|
778
|
+
Footer: ar,
|
|
779
|
+
Month: ir,
|
|
780
|
+
MonthCaption: dr,
|
|
781
|
+
MonthGrid: lr,
|
|
782
|
+
Months: fr,
|
|
783
|
+
MonthsDropdown: cr,
|
|
784
|
+
Nav: ur,
|
|
785
|
+
NextMonthButton: hr,
|
|
786
|
+
Option: mr,
|
|
787
|
+
PreviousMonthButton: yr,
|
|
788
|
+
Root: gr,
|
|
789
|
+
Select: br,
|
|
790
|
+
Week: vr,
|
|
791
|
+
WeekNumber: kr,
|
|
792
|
+
WeekNumberHeader: Dr,
|
|
793
|
+
Weekday: pr,
|
|
794
|
+
Weekdays: Mr,
|
|
795
|
+
Weeks: Or,
|
|
796
|
+
YearsDropdown: wr
|
|
759
797
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
760
798
|
function ee(e, t, r = !1, n = Q) {
|
|
761
799
|
let { from: s, to: o } = e;
|
|
762
800
|
const { differenceInCalendarDays: a, isSameDay: i } = n;
|
|
763
801
|
return s && o ? (a(o, s) < 0 && ([s, o] = [o, s]), a(t, s) >= (r ? 1 : 0) && a(o, t) >= (r ? 1 : 0)) : !r && o ? i(o, t) : !r && s ? i(s, t) : !1;
|
|
764
802
|
}
|
|
765
|
-
function
|
|
803
|
+
function $e(e) {
|
|
766
804
|
return !!(e && typeof e == "object" && "before" in e && "after" in e);
|
|
767
805
|
}
|
|
768
|
-
function
|
|
806
|
+
function we(e) {
|
|
769
807
|
return !!(e && typeof e == "object" && "from" in e);
|
|
770
808
|
}
|
|
771
|
-
function
|
|
809
|
+
function Ge(e) {
|
|
772
810
|
return !!(e && typeof e == "object" && "after" in e);
|
|
773
811
|
}
|
|
774
|
-
function
|
|
812
|
+
function qe(e) {
|
|
775
813
|
return !!(e && typeof e == "object" && "before" in e);
|
|
776
814
|
}
|
|
777
|
-
function
|
|
815
|
+
function Ot(e) {
|
|
778
816
|
return !!(e && typeof e == "object" && "dayOfWeek" in e);
|
|
779
817
|
}
|
|
780
|
-
function
|
|
818
|
+
function wt(e, t) {
|
|
781
819
|
return Array.isArray(e) && e.every(t.isDate);
|
|
782
820
|
}
|
|
783
821
|
function te(e, t, r = Q) {
|
|
@@ -787,21 +825,21 @@ function te(e, t, r = Q) {
|
|
|
787
825
|
return i;
|
|
788
826
|
if (r.isDate(i))
|
|
789
827
|
return s(e, i);
|
|
790
|
-
if (
|
|
828
|
+
if (wt(i, r))
|
|
791
829
|
return i.some((d) => s(e, d));
|
|
792
|
-
if (
|
|
830
|
+
if (we(i))
|
|
793
831
|
return ee(i, e, !1, r);
|
|
794
|
-
if (
|
|
832
|
+
if (Ot(i))
|
|
795
833
|
return Array.isArray(i.dayOfWeek) ? i.dayOfWeek.includes(e.getDay()) : i.dayOfWeek === e.getDay();
|
|
796
|
-
if (
|
|
797
|
-
const d = o(i.before, e),
|
|
798
|
-
return a(i.before, i.after) ? u &&
|
|
834
|
+
if ($e(i)) {
|
|
835
|
+
const d = o(i.before, e), l = o(i.after, e), f = d > 0, u = l < 0;
|
|
836
|
+
return a(i.before, i.after) ? u && f : f || u;
|
|
799
837
|
}
|
|
800
|
-
return
|
|
838
|
+
return Ge(i) ? o(e, i.after) > 0 : qe(i) ? o(i.before, e) > 0 : typeof i == "function" ? i(e) : !1;
|
|
801
839
|
});
|
|
802
840
|
}
|
|
803
|
-
function
|
|
804
|
-
const { disabled: o, hidden: a, modifiers: i, showOutsideDays: d, broadcastCalendar:
|
|
841
|
+
function Nr(e, t, r, n, s) {
|
|
842
|
+
const { disabled: o, hidden: a, modifiers: i, showOutsideDays: d, broadcastCalendar: l, today: f = s.today() } = t, { isSameDay: u, isSameMonth: y, startOfMonth: g, isBefore: O, endOfMonth: W, isAfter: k } = s, S = r && g(r), M = n && W(n), v = {
|
|
805
843
|
[Y.focused]: [],
|
|
806
844
|
[Y.outside]: [],
|
|
807
845
|
[Y.disabled]: [],
|
|
@@ -809,9 +847,9 @@ function kr(e, t, r, n, s) {
|
|
|
809
847
|
[Y.today]: []
|
|
810
848
|
}, N = {};
|
|
811
849
|
for (const p of e) {
|
|
812
|
-
const { date: c, displayMonth: w } = p, T = !!(w && !y(c, w)), I = !!(S && O(c, S)), E = !!(M &&
|
|
813
|
-
!
|
|
814
|
-
T &&
|
|
850
|
+
const { date: c, displayMonth: w } = p, T = !!(w && !y(c, w)), I = !!(S && O(c, S)), E = !!(M && k(c, M)), j = !!(o && te(c, o, s)), re = !!(a && te(c, a, s)) || I || E || // Broadcast calendar will show outside days as default
|
|
851
|
+
!l && !d && T || l && d === !1 && T, X = u(c, f);
|
|
852
|
+
T && v.outside.push(p), j && v.disabled.push(p), re && v.hidden.push(p), X && v.today.push(p), i && Object.keys(i).forEach(($) => {
|
|
815
853
|
const oe = i == null ? void 0 : i[$];
|
|
816
854
|
oe && te(c, oe, s) && (N[$] ? N[$].push(p) : N[$] = [p]);
|
|
817
855
|
});
|
|
@@ -824,8 +862,8 @@ function kr(e, t, r, n, s) {
|
|
|
824
862
|
[Y.outside]: !1,
|
|
825
863
|
[Y.today]: !1
|
|
826
864
|
}, w = {};
|
|
827
|
-
for (const T in
|
|
828
|
-
const I =
|
|
865
|
+
for (const T in v) {
|
|
866
|
+
const I = v[T];
|
|
829
867
|
c[T] = I.some((E) => E === p);
|
|
830
868
|
}
|
|
831
869
|
for (const T in N)
|
|
@@ -837,16 +875,16 @@ function kr(e, t, r, n, s) {
|
|
|
837
875
|
};
|
|
838
876
|
};
|
|
839
877
|
}
|
|
840
|
-
function
|
|
878
|
+
function Cr(e, t, r = {}) {
|
|
841
879
|
return Object.entries(e).filter(([, s]) => s === !0).reduce((s, [o]) => (r[o] ? s.push(r[o]) : t[Y[o]] ? s.push(t[Y[o]]) : t[z[o]] && s.push(t[z[o]]), s), [t[h.Day]]);
|
|
842
880
|
}
|
|
843
|
-
function
|
|
881
|
+
function Sr(e) {
|
|
844
882
|
return {
|
|
845
|
-
...
|
|
883
|
+
...Wr,
|
|
846
884
|
...e
|
|
847
885
|
};
|
|
848
886
|
}
|
|
849
|
-
function
|
|
887
|
+
function _r(e) {
|
|
850
888
|
const t = {
|
|
851
889
|
"data-mode": e.mode ?? void 0,
|
|
852
890
|
"data-required": "required" in e ? e.required : void 0,
|
|
@@ -859,7 +897,7 @@ function Wr(e) {
|
|
|
859
897
|
r.startsWith("data-") && (t[r] = n);
|
|
860
898
|
}), t;
|
|
861
899
|
}
|
|
862
|
-
function
|
|
900
|
+
function xr() {
|
|
863
901
|
const e = {};
|
|
864
902
|
for (const t in h)
|
|
865
903
|
e[h[t]] = `rdp-${h[t]}`;
|
|
@@ -867,134 +905,134 @@ function Nr() {
|
|
|
867
905
|
e[Y[t]] = `rdp-${Y[t]}`;
|
|
868
906
|
for (const t in z)
|
|
869
907
|
e[z[t]] = `rdp-${z[t]}`;
|
|
870
|
-
for (const t in
|
|
871
|
-
e[
|
|
908
|
+
for (const t in A)
|
|
909
|
+
e[A[t]] = `rdp-${A[t]}`;
|
|
872
910
|
return e;
|
|
873
911
|
}
|
|
874
|
-
function
|
|
912
|
+
function Wt(e, t, r) {
|
|
875
913
|
return (r ?? new H(t)).formatMonthYear(e);
|
|
876
914
|
}
|
|
877
|
-
const
|
|
878
|
-
function
|
|
915
|
+
const Yr = Wt;
|
|
916
|
+
function Tr(e, t, r) {
|
|
879
917
|
return (r ?? new H(t)).format(e, "d");
|
|
880
918
|
}
|
|
881
|
-
function
|
|
919
|
+
function Er(e, t = Q) {
|
|
882
920
|
return t.format(e, "LLLL");
|
|
883
921
|
}
|
|
884
|
-
function
|
|
922
|
+
function Ir(e, t, r) {
|
|
885
923
|
return (r ?? new H(t)).format(e, "cccccc");
|
|
886
924
|
}
|
|
887
|
-
function
|
|
925
|
+
function Br(e, t = Q) {
|
|
888
926
|
return e < 10 ? t.formatNumber(`0${e.toLocaleString()}`) : t.formatNumber(`${e.toLocaleString()}`);
|
|
889
927
|
}
|
|
890
|
-
function
|
|
928
|
+
function Fr() {
|
|
891
929
|
return "";
|
|
892
930
|
}
|
|
893
|
-
function
|
|
931
|
+
function Nt(e, t = Q) {
|
|
894
932
|
return t.format(e, "yyyy");
|
|
895
933
|
}
|
|
896
|
-
const
|
|
934
|
+
const zr = Nt, Pr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
897
935
|
__proto__: null,
|
|
898
|
-
formatCaption:
|
|
899
|
-
formatDay:
|
|
900
|
-
formatMonthCaption:
|
|
901
|
-
formatMonthDropdown:
|
|
902
|
-
formatWeekNumber:
|
|
903
|
-
formatWeekNumberHeader:
|
|
904
|
-
formatWeekdayName:
|
|
905
|
-
formatYearCaption:
|
|
906
|
-
formatYearDropdown:
|
|
936
|
+
formatCaption: Wt,
|
|
937
|
+
formatDay: Tr,
|
|
938
|
+
formatMonthCaption: Yr,
|
|
939
|
+
formatMonthDropdown: Er,
|
|
940
|
+
formatWeekNumber: Br,
|
|
941
|
+
formatWeekNumberHeader: Fr,
|
|
942
|
+
formatWeekdayName: Ir,
|
|
943
|
+
formatYearCaption: zr,
|
|
944
|
+
formatYearDropdown: Nt
|
|
907
945
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
908
|
-
function
|
|
946
|
+
function Ar(e) {
|
|
909
947
|
return e != null && e.formatMonthCaption && !e.formatCaption && (e.formatCaption = e.formatMonthCaption), e != null && e.formatYearCaption && !e.formatYearDropdown && (e.formatYearDropdown = e.formatYearCaption), {
|
|
910
|
-
...
|
|
948
|
+
...Pr,
|
|
911
949
|
...e
|
|
912
950
|
};
|
|
913
951
|
}
|
|
914
|
-
function
|
|
952
|
+
function Re(e, t, r, n) {
|
|
915
953
|
let s = (n ?? new H(r)).format(e, "PPPP");
|
|
916
954
|
return t.today && (s = `Today, ${s}`), t.selected && (s = `${s}, selected`), s;
|
|
917
955
|
}
|
|
918
|
-
const
|
|
956
|
+
const Hr = Re;
|
|
919
957
|
function Ve(e, t, r) {
|
|
920
958
|
return (r ?? new H(t)).formatMonthYear(e);
|
|
921
959
|
}
|
|
922
|
-
const
|
|
923
|
-
function
|
|
960
|
+
const jr = Ve;
|
|
961
|
+
function Ct(e, t, r, n) {
|
|
924
962
|
let s = (n ?? new H(r)).format(e, "PPPP");
|
|
925
963
|
return t != null && t.today && (s = `Today, ${s}`), s;
|
|
926
964
|
}
|
|
927
|
-
function
|
|
965
|
+
function St(e) {
|
|
928
966
|
return "Choose the Month";
|
|
929
967
|
}
|
|
930
|
-
function
|
|
968
|
+
function _t() {
|
|
931
969
|
return "";
|
|
932
970
|
}
|
|
933
|
-
const
|
|
934
|
-
function
|
|
935
|
-
return
|
|
971
|
+
const $r = "Go to the Next Month";
|
|
972
|
+
function xt(e, t) {
|
|
973
|
+
return $r;
|
|
936
974
|
}
|
|
937
|
-
function
|
|
975
|
+
function Yt(e) {
|
|
938
976
|
return "Go to the Previous Month";
|
|
939
977
|
}
|
|
940
|
-
function
|
|
978
|
+
function Tt(e, t, r) {
|
|
941
979
|
return (r ?? new H(t)).format(e, "cccc");
|
|
942
980
|
}
|
|
943
|
-
function
|
|
981
|
+
function Et(e, t) {
|
|
944
982
|
return `Week ${e}`;
|
|
945
983
|
}
|
|
946
|
-
function
|
|
984
|
+
function It(e) {
|
|
947
985
|
return "Week Number";
|
|
948
986
|
}
|
|
949
|
-
function
|
|
987
|
+
function Bt(e) {
|
|
950
988
|
return "Choose the Year";
|
|
951
989
|
}
|
|
952
|
-
const
|
|
990
|
+
const Gr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
953
991
|
__proto__: null,
|
|
954
|
-
labelCaption:
|
|
955
|
-
labelDay:
|
|
956
|
-
labelDayButton:
|
|
992
|
+
labelCaption: jr,
|
|
993
|
+
labelDay: Hr,
|
|
994
|
+
labelDayButton: Re,
|
|
957
995
|
labelGrid: Ve,
|
|
958
|
-
labelGridcell:
|
|
959
|
-
labelMonthDropdown:
|
|
960
|
-
labelNav:
|
|
961
|
-
labelNext:
|
|
962
|
-
labelPrevious:
|
|
963
|
-
labelWeekNumber:
|
|
964
|
-
labelWeekNumberHeader:
|
|
965
|
-
labelWeekday:
|
|
966
|
-
labelYearDropdown:
|
|
996
|
+
labelGridcell: Ct,
|
|
997
|
+
labelMonthDropdown: St,
|
|
998
|
+
labelNav: _t,
|
|
999
|
+
labelNext: xt,
|
|
1000
|
+
labelPrevious: Yt,
|
|
1001
|
+
labelWeekNumber: Et,
|
|
1002
|
+
labelWeekNumberHeader: It,
|
|
1003
|
+
labelWeekday: Tt,
|
|
1004
|
+
labelYearDropdown: Bt
|
|
967
1005
|
}, Symbol.toStringTag, { value: "Module" })), K = (e, t, r) => t || (r ? typeof r == "function" ? r : (...n) => r : e);
|
|
968
|
-
function
|
|
1006
|
+
function qr(e, t) {
|
|
969
1007
|
var n;
|
|
970
1008
|
const r = ((n = t.locale) == null ? void 0 : n.labels) ?? {};
|
|
971
1009
|
return {
|
|
972
|
-
...
|
|
1010
|
+
...Gr,
|
|
973
1011
|
...e ?? {},
|
|
974
|
-
labelDayButton: K(
|
|
975
|
-
labelMonthDropdown: K(
|
|
976
|
-
labelNext: K(
|
|
977
|
-
labelPrevious: K(
|
|
978
|
-
labelWeekNumber: K(
|
|
979
|
-
labelYearDropdown: K(
|
|
1012
|
+
labelDayButton: K(Re, e == null ? void 0 : e.labelDayButton, r.labelDayButton),
|
|
1013
|
+
labelMonthDropdown: K(St, e == null ? void 0 : e.labelMonthDropdown, r.labelMonthDropdown),
|
|
1014
|
+
labelNext: K(xt, e == null ? void 0 : e.labelNext, r.labelNext),
|
|
1015
|
+
labelPrevious: K(Yt, e == null ? void 0 : e.labelPrevious, r.labelPrevious),
|
|
1016
|
+
labelWeekNumber: K(Et, e == null ? void 0 : e.labelWeekNumber, r.labelWeekNumber),
|
|
1017
|
+
labelYearDropdown: K(Bt, e == null ? void 0 : e.labelYearDropdown, r.labelYearDropdown),
|
|
980
1018
|
labelGrid: K(Ve, e == null ? void 0 : e.labelGrid, r.labelGrid),
|
|
981
|
-
labelGridcell: K(
|
|
982
|
-
labelNav: K(
|
|
983
|
-
labelWeekNumberHeader: K(
|
|
984
|
-
labelWeekday: K(
|
|
1019
|
+
labelGridcell: K(Ct, e == null ? void 0 : e.labelGridcell, r.labelGridcell),
|
|
1020
|
+
labelNav: K(_t, e == null ? void 0 : e.labelNav, r.labelNav),
|
|
1021
|
+
labelWeekNumberHeader: K(It, e == null ? void 0 : e.labelWeekNumberHeader, r.labelWeekNumberHeader),
|
|
1022
|
+
labelWeekday: K(Tt, e == null ? void 0 : e.labelWeekday, r.labelWeekday)
|
|
985
1023
|
};
|
|
986
1024
|
}
|
|
987
|
-
function
|
|
988
|
-
const { startOfMonth: o, startOfYear: a, endOfYear: i, eachMonthOfInterval: d, getMonth:
|
|
1025
|
+
function Rr(e, t, r, n, s) {
|
|
1026
|
+
const { startOfMonth: o, startOfYear: a, endOfYear: i, eachMonthOfInterval: d, getMonth: l } = s;
|
|
989
1027
|
return d({
|
|
990
1028
|
start: a(e),
|
|
991
1029
|
end: i(e)
|
|
992
1030
|
}).map((y) => {
|
|
993
|
-
const g = n.formatMonthDropdown(y, s), O =
|
|
1031
|
+
const g = n.formatMonthDropdown(y, s), O = l(y), W = t && y < o(t) || r && y > o(r) || !1;
|
|
994
1032
|
return { value: O, label: g, disabled: W };
|
|
995
1033
|
});
|
|
996
1034
|
}
|
|
997
|
-
function
|
|
1035
|
+
function Vr(e, t = {}, r = {}) {
|
|
998
1036
|
let n = { ...t == null ? void 0 : t[h.Day] };
|
|
999
1037
|
return Object.entries(e).filter(([, s]) => s === !0).forEach(([s]) => {
|
|
1000
1038
|
n = {
|
|
@@ -1003,7 +1041,7 @@ function $r(e, t = {}, r = {}) {
|
|
|
1003
1041
|
};
|
|
1004
1042
|
}), n;
|
|
1005
1043
|
}
|
|
1006
|
-
function
|
|
1044
|
+
function Ur(e, t, r, n) {
|
|
1007
1045
|
const s = n ?? e.today(), o = r ? e.startOfBroadcastWeek(s, e) : t ? e.startOfISOWeek(s) : e.startOfWeek(s), a = [];
|
|
1008
1046
|
for (let i = 0; i < 7; i++) {
|
|
1009
1047
|
const d = e.addDays(o, i);
|
|
@@ -1011,10 +1049,10 @@ function Gr(e, t, r, n) {
|
|
|
1011
1049
|
}
|
|
1012
1050
|
return a;
|
|
1013
1051
|
}
|
|
1014
|
-
function
|
|
1052
|
+
function Kr(e, t, r, n, s = !1) {
|
|
1015
1053
|
if (!e || !t)
|
|
1016
1054
|
return;
|
|
1017
|
-
const { startOfYear: o, endOfYear: a, eachYearOfInterval: i, getYear: d } = n,
|
|
1055
|
+
const { startOfYear: o, endOfYear: a, eachYearOfInterval: i, getYear: d } = n, l = o(e), f = a(t), u = i({ start: l, end: f });
|
|
1018
1056
|
return s && u.reverse(), u.map((y) => {
|
|
1019
1057
|
const g = r.formatYearDropdown(y, n);
|
|
1020
1058
|
return {
|
|
@@ -1024,178 +1062,178 @@ function qr(e, t, r, n, s = !1) {
|
|
|
1024
1062
|
};
|
|
1025
1063
|
});
|
|
1026
1064
|
}
|
|
1027
|
-
function
|
|
1065
|
+
function Zr(e, t = {}) {
|
|
1028
1066
|
var i;
|
|
1029
1067
|
const { weekStartsOn: r, locale: n } = t, s = r ?? ((i = n == null ? void 0 : n.options) == null ? void 0 : i.weekStartsOn) ?? 0, o = (d) => {
|
|
1030
|
-
const
|
|
1031
|
-
return new F(
|
|
1068
|
+
const l = typeof d == "number" || typeof d == "string" ? new Date(d) : d;
|
|
1069
|
+
return new F(l.getFullYear(), l.getMonth(), l.getDate(), 12, 0, 0, e);
|
|
1032
1070
|
}, a = (d) => {
|
|
1033
|
-
const
|
|
1034
|
-
return new Date(
|
|
1071
|
+
const l = o(d);
|
|
1072
|
+
return new Date(l.getFullYear(), l.getMonth(), l.getDate(), 0, 0, 0, 0);
|
|
1035
1073
|
};
|
|
1036
1074
|
return {
|
|
1037
1075
|
today: () => o(F.tz(e)),
|
|
1038
|
-
newDate: (d,
|
|
1076
|
+
newDate: (d, l, f) => new F(d, l, f, 12, 0, 0, e),
|
|
1039
1077
|
startOfDay: (d) => o(d),
|
|
1040
|
-
startOfWeek: (d,
|
|
1041
|
-
const
|
|
1042
|
-
return
|
|
1078
|
+
startOfWeek: (d, l) => {
|
|
1079
|
+
const f = o(d), u = (l == null ? void 0 : l.weekStartsOn) ?? s, y = (f.getDay() - u + 7) % 7;
|
|
1080
|
+
return f.setDate(f.getDate() - y), f;
|
|
1043
1081
|
},
|
|
1044
1082
|
startOfISOWeek: (d) => {
|
|
1045
|
-
const
|
|
1046
|
-
return
|
|
1083
|
+
const l = o(d), f = (l.getDay() - 1 + 7) % 7;
|
|
1084
|
+
return l.setDate(l.getDate() - f), l;
|
|
1047
1085
|
},
|
|
1048
1086
|
startOfMonth: (d) => {
|
|
1049
|
-
const
|
|
1050
|
-
return
|
|
1087
|
+
const l = o(d);
|
|
1088
|
+
return l.setDate(1), l;
|
|
1051
1089
|
},
|
|
1052
1090
|
startOfYear: (d) => {
|
|
1053
|
-
const
|
|
1054
|
-
return
|
|
1091
|
+
const l = o(d);
|
|
1092
|
+
return l.setMonth(0, 1), l;
|
|
1055
1093
|
},
|
|
1056
|
-
endOfWeek: (d,
|
|
1057
|
-
const
|
|
1058
|
-
return
|
|
1094
|
+
endOfWeek: (d, l) => {
|
|
1095
|
+
const f = o(d), g = ((((l == null ? void 0 : l.weekStartsOn) ?? s) + 6) % 7 - f.getDay() + 7) % 7;
|
|
1096
|
+
return f.setDate(f.getDate() + g), f;
|
|
1059
1097
|
},
|
|
1060
1098
|
endOfISOWeek: (d) => {
|
|
1061
|
-
const
|
|
1062
|
-
return
|
|
1099
|
+
const l = o(d), f = (7 - l.getDay()) % 7;
|
|
1100
|
+
return l.setDate(l.getDate() + f), l;
|
|
1063
1101
|
},
|
|
1064
1102
|
endOfMonth: (d) => {
|
|
1065
|
-
const
|
|
1066
|
-
return
|
|
1103
|
+
const l = o(d);
|
|
1104
|
+
return l.setMonth(l.getMonth() + 1, 0), l;
|
|
1067
1105
|
},
|
|
1068
1106
|
endOfYear: (d) => {
|
|
1069
|
-
const
|
|
1070
|
-
return
|
|
1107
|
+
const l = o(d);
|
|
1108
|
+
return l.setMonth(11, 31), l;
|
|
1071
1109
|
},
|
|
1072
1110
|
eachMonthOfInterval: (d) => {
|
|
1073
|
-
const
|
|
1111
|
+
const l = o(d.start), f = o(d.end), u = [], y = new F(l.getFullYear(), l.getMonth(), 1, 12, 0, 0, e), g = f.getFullYear() * 12 + f.getMonth();
|
|
1074
1112
|
for (; y.getFullYear() * 12 + y.getMonth() <= g; )
|
|
1075
1113
|
u.push(new F(y, e)), y.setMonth(y.getMonth() + 1, 1);
|
|
1076
1114
|
return u;
|
|
1077
1115
|
},
|
|
1078
1116
|
// Normalize to noon once before arithmetic (avoid DST/midnight edge cases),
|
|
1079
1117
|
// mutate the same TZDate, and return it.
|
|
1080
|
-
addDays: (d,
|
|
1081
|
-
const
|
|
1082
|
-
return
|
|
1118
|
+
addDays: (d, l) => {
|
|
1119
|
+
const f = o(d);
|
|
1120
|
+
return f.setDate(f.getDate() + l), f;
|
|
1083
1121
|
},
|
|
1084
|
-
addWeeks: (d,
|
|
1085
|
-
const
|
|
1086
|
-
return
|
|
1122
|
+
addWeeks: (d, l) => {
|
|
1123
|
+
const f = o(d);
|
|
1124
|
+
return f.setDate(f.getDate() + l * 7), f;
|
|
1087
1125
|
},
|
|
1088
|
-
addMonths: (d,
|
|
1089
|
-
const
|
|
1090
|
-
return
|
|
1126
|
+
addMonths: (d, l) => {
|
|
1127
|
+
const f = o(d);
|
|
1128
|
+
return f.setMonth(f.getMonth() + l), f;
|
|
1091
1129
|
},
|
|
1092
|
-
addYears: (d,
|
|
1093
|
-
const
|
|
1094
|
-
return
|
|
1130
|
+
addYears: (d, l) => {
|
|
1131
|
+
const f = o(d);
|
|
1132
|
+
return f.setFullYear(f.getFullYear() + l), f;
|
|
1095
1133
|
},
|
|
1096
1134
|
eachYearOfInterval: (d) => {
|
|
1097
|
-
const
|
|
1098
|
-
for (; y.getFullYear() <=
|
|
1135
|
+
const l = o(d.start), f = o(d.end), u = [], y = new F(l.getFullYear(), 0, 1, 12, 0, 0, e);
|
|
1136
|
+
for (; y.getFullYear() <= f.getFullYear(); )
|
|
1099
1137
|
u.push(new F(y, e)), y.setFullYear(y.getFullYear() + 1, 0, 1);
|
|
1100
1138
|
return u;
|
|
1101
1139
|
},
|
|
1102
|
-
getWeek: (d,
|
|
1140
|
+
getWeek: (d, l) => {
|
|
1103
1141
|
var u;
|
|
1104
|
-
const
|
|
1105
|
-
return
|
|
1106
|
-
weekStartsOn: (
|
|
1107
|
-
firstWeekContainsDate: (
|
|
1142
|
+
const f = a(d);
|
|
1143
|
+
return ut(f, {
|
|
1144
|
+
weekStartsOn: (l == null ? void 0 : l.weekStartsOn) ?? s,
|
|
1145
|
+
firstWeekContainsDate: (l == null ? void 0 : l.firstWeekContainsDate) ?? ((u = n == null ? void 0 : n.options) == null ? void 0 : u.firstWeekContainsDate) ?? 1
|
|
1108
1146
|
});
|
|
1109
1147
|
},
|
|
1110
1148
|
getISOWeek: (d) => {
|
|
1111
|
-
const
|
|
1112
|
-
return
|
|
1149
|
+
const l = a(d);
|
|
1150
|
+
return ct(l);
|
|
1113
1151
|
},
|
|
1114
|
-
differenceInCalendarDays: (d,
|
|
1115
|
-
const
|
|
1116
|
-
return ft(
|
|
1152
|
+
differenceInCalendarDays: (d, l) => {
|
|
1153
|
+
const f = a(d), u = a(l);
|
|
1154
|
+
return ft(f, u);
|
|
1117
1155
|
},
|
|
1118
|
-
differenceInCalendarMonths: (d,
|
|
1119
|
-
const
|
|
1120
|
-
return
|
|
1156
|
+
differenceInCalendarMonths: (d, l) => {
|
|
1157
|
+
const f = a(d), u = a(l);
|
|
1158
|
+
return gt(f, u);
|
|
1121
1159
|
}
|
|
1122
1160
|
};
|
|
1123
1161
|
}
|
|
1124
|
-
const
|
|
1162
|
+
const ye = (e) => e instanceof HTMLElement ? e : null, Ie = (e) => [
|
|
1125
1163
|
...e.querySelectorAll("[data-animated-month]") ?? []
|
|
1126
|
-
],
|
|
1127
|
-
function
|
|
1128
|
-
const a =
|
|
1129
|
-
|
|
1130
|
-
const
|
|
1164
|
+
], Jr = (e) => ye(e.querySelector("[data-animated-month]")), Be = (e) => ye(e.querySelector("[data-animated-caption]")), Fe = (e) => ye(e.querySelector("[data-animated-weeks]")), Qr = (e) => ye(e.querySelector("[data-animated-nav]")), Xr = (e) => ye(e.querySelector("[data-animated-weekdays]"));
|
|
1165
|
+
function Lr(e, t, { classNames: r, months: n, focused: s, dateLib: o }) {
|
|
1166
|
+
const a = ke(null), i = ke(n), d = ke(!1);
|
|
1167
|
+
hn(() => {
|
|
1168
|
+
const l = i.current;
|
|
1131
1169
|
if (i.current = n, !t || !e.current || // safety check because the ref can be set to anything by consumers
|
|
1132
1170
|
!(e.current instanceof HTMLElement) || // validation required for the animation to work as expected
|
|
1133
|
-
n.length === 0 ||
|
|
1171
|
+
n.length === 0 || l.length === 0 || n.length !== l.length)
|
|
1134
1172
|
return;
|
|
1135
|
-
const
|
|
1136
|
-
if (W instanceof HTMLElement ? (
|
|
1137
|
-
if (!(
|
|
1173
|
+
const f = o.isSameMonth(n[0].date, l[0].date), u = o.isAfter(n[0].date, l[0].date), y = u ? r[A.caption_after_enter] : r[A.caption_before_enter], g = u ? r[A.weeks_after_enter] : r[A.weeks_before_enter], O = a.current, W = e.current.cloneNode(!0);
|
|
1174
|
+
if (W instanceof HTMLElement ? (Ie(W).forEach((v) => {
|
|
1175
|
+
if (!(v instanceof HTMLElement))
|
|
1138
1176
|
return;
|
|
1139
|
-
const N =
|
|
1140
|
-
N &&
|
|
1141
|
-
const p =
|
|
1177
|
+
const N = Jr(v);
|
|
1178
|
+
N && v.contains(N) && v.removeChild(N);
|
|
1179
|
+
const p = Be(v);
|
|
1142
1180
|
p && p.classList.remove(y);
|
|
1143
|
-
const c =
|
|
1181
|
+
const c = Fe(v);
|
|
1144
1182
|
c && c.classList.remove(g);
|
|
1145
|
-
}), a.current = W) : a.current = null, d.current ||
|
|
1183
|
+
}), a.current = W) : a.current = null, d.current || f || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
1146
1184
|
s)
|
|
1147
1185
|
return;
|
|
1148
|
-
const
|
|
1149
|
-
if (S != null && S.every((M) => M instanceof HTMLElement) &&
|
|
1186
|
+
const k = O instanceof HTMLElement ? Ie(O) : [], S = Ie(e.current);
|
|
1187
|
+
if (S != null && S.every((M) => M instanceof HTMLElement) && k && k.every((M) => M instanceof HTMLElement)) {
|
|
1150
1188
|
d.current = !0, e.current.style.isolation = "isolate";
|
|
1151
|
-
const M =
|
|
1152
|
-
M && (M.style.zIndex = "1"), S.forEach((
|
|
1153
|
-
const p =
|
|
1189
|
+
const M = Qr(e.current);
|
|
1190
|
+
M && (M.style.zIndex = "1"), S.forEach((v, N) => {
|
|
1191
|
+
const p = k[N];
|
|
1154
1192
|
if (!p)
|
|
1155
1193
|
return;
|
|
1156
|
-
|
|
1157
|
-
const c =
|
|
1194
|
+
v.style.position = "relative", v.style.overflow = "hidden";
|
|
1195
|
+
const c = Be(v);
|
|
1158
1196
|
c && c.classList.add(y);
|
|
1159
|
-
const w =
|
|
1197
|
+
const w = Fe(v);
|
|
1160
1198
|
w && w.classList.add(g);
|
|
1161
1199
|
const T = () => {
|
|
1162
|
-
d.current = !1, e.current && (e.current.style.isolation = ""), M && (M.style.zIndex = ""), c && c.classList.remove(y), w && w.classList.remove(g),
|
|
1200
|
+
d.current = !1, e.current && (e.current.style.isolation = ""), M && (M.style.zIndex = ""), c && c.classList.remove(y), w && w.classList.remove(g), v.style.position = "", v.style.overflow = "", v.contains(p) && v.removeChild(p);
|
|
1163
1201
|
};
|
|
1164
1202
|
p.style.pointerEvents = "none", p.style.position = "absolute", p.style.overflow = "hidden", p.setAttribute("aria-hidden", "true");
|
|
1165
|
-
const I =
|
|
1203
|
+
const I = Xr(p);
|
|
1166
1204
|
I && (I.style.opacity = "0");
|
|
1167
|
-
const E =
|
|
1168
|
-
E && (E.classList.add(u ? r[
|
|
1169
|
-
const j =
|
|
1170
|
-
j && j.classList.add(u ? r[
|
|
1205
|
+
const E = Be(p);
|
|
1206
|
+
E && (E.classList.add(u ? r[A.caption_before_exit] : r[A.caption_after_exit]), E.addEventListener("animationend", T));
|
|
1207
|
+
const j = Fe(p);
|
|
1208
|
+
j && j.classList.add(u ? r[A.weeks_before_exit] : r[A.weeks_after_exit]), v.insertBefore(p, v.firstChild);
|
|
1171
1209
|
});
|
|
1172
1210
|
}
|
|
1173
1211
|
});
|
|
1174
1212
|
}
|
|
1175
|
-
function
|
|
1176
|
-
const s = e[0], o = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: d } = r ?? {}, { addDays:
|
|
1213
|
+
function es(e, t, r, n) {
|
|
1214
|
+
const s = e[0], o = e[e.length - 1], { ISOWeek: a, fixedWeeks: i, broadcastCalendar: d } = r ?? {}, { addDays: l, differenceInCalendarDays: f, differenceInCalendarMonths: u, endOfBroadcastWeek: y, endOfISOWeek: g, endOfMonth: O, endOfWeek: W, isAfter: k, startOfBroadcastWeek: S, startOfISOWeek: M, startOfWeek: v } = n, N = d ? S(s, n) : a ? M(s) : v(s), p = d ? y(o) : a ? g(O(o)) : W(O(o)), c = t && (d ? y(t) : a ? g(t) : W(t)), w = c && k(p, c) ? c : p, T = f(w, N), I = u(o, s) + 1, E = [];
|
|
1177
1215
|
for (let X = 0; X <= T; X++) {
|
|
1178
|
-
const $ =
|
|
1216
|
+
const $ = l(N, X);
|
|
1179
1217
|
E.push($);
|
|
1180
1218
|
}
|
|
1181
1219
|
const re = (d ? 35 : 42) * I;
|
|
1182
1220
|
if (i && E.length < re) {
|
|
1183
1221
|
const X = re - E.length;
|
|
1184
1222
|
for (let $ = 0; $ < X; $++) {
|
|
1185
|
-
const oe =
|
|
1223
|
+
const oe = l(E[E.length - 1], 1);
|
|
1186
1224
|
E.push(oe);
|
|
1187
1225
|
}
|
|
1188
1226
|
}
|
|
1189
1227
|
return E;
|
|
1190
1228
|
}
|
|
1191
|
-
function
|
|
1229
|
+
function ts(e) {
|
|
1192
1230
|
const t = [];
|
|
1193
1231
|
return e.reduce((r, n) => {
|
|
1194
1232
|
const s = n.weeks.reduce((o, a) => o.concat(a.days.slice()), t.slice());
|
|
1195
1233
|
return r.concat(s.slice());
|
|
1196
1234
|
}, t.slice());
|
|
1197
1235
|
}
|
|
1198
|
-
function
|
|
1236
|
+
function ns(e, t, r, n) {
|
|
1199
1237
|
const { numberOfMonths: s = 1 } = r, o = [];
|
|
1200
1238
|
for (let a = 0; a < s; a++) {
|
|
1201
1239
|
const i = n.addMonths(e, a);
|
|
@@ -1205,92 +1243,92 @@ function Xr(e, t, r, n) {
|
|
|
1205
1243
|
}
|
|
1206
1244
|
return o;
|
|
1207
1245
|
}
|
|
1208
|
-
function
|
|
1246
|
+
function rt(e, t, r, n) {
|
|
1209
1247
|
const { month: s, defaultMonth: o, today: a = n.today(), numberOfMonths: i = 1 } = e;
|
|
1210
1248
|
let d = s || o || a;
|
|
1211
|
-
const { differenceInCalendarMonths:
|
|
1212
|
-
if (r &&
|
|
1249
|
+
const { differenceInCalendarMonths: l, addMonths: f, startOfMonth: u } = n;
|
|
1250
|
+
if (r && l(r, d) < i - 1) {
|
|
1213
1251
|
const y = -1 * (i - 1);
|
|
1214
|
-
d =
|
|
1252
|
+
d = f(r, y);
|
|
1215
1253
|
}
|
|
1216
|
-
return t &&
|
|
1254
|
+
return t && l(d, t) < 0 && (d = t), u(d);
|
|
1217
1255
|
}
|
|
1218
|
-
function
|
|
1219
|
-
const { addDays: s, endOfBroadcastWeek: o, endOfISOWeek: a, endOfMonth: i, endOfWeek: d, getISOWeek:
|
|
1220
|
-
const S = r.broadcastCalendar ? u(
|
|
1221
|
-
if (r.fixedWeeks &&
|
|
1256
|
+
function rs(e, t, r, n) {
|
|
1257
|
+
const { addDays: s, endOfBroadcastWeek: o, endOfISOWeek: a, endOfMonth: i, endOfWeek: d, getISOWeek: l, getWeek: f, startOfBroadcastWeek: u, startOfISOWeek: y, startOfWeek: g } = n, O = e.reduce((W, k) => {
|
|
1258
|
+
const S = r.broadcastCalendar ? u(k, n) : r.ISOWeek ? y(k) : g(k), M = r.broadcastCalendar ? o(k) : r.ISOWeek ? a(i(k)) : d(i(k)), v = t.filter((w) => w >= S && w <= M), N = r.broadcastCalendar ? 35 : 42;
|
|
1259
|
+
if (r.fixedWeeks && v.length < N) {
|
|
1222
1260
|
const w = t.filter((T) => {
|
|
1223
|
-
const I = N -
|
|
1261
|
+
const I = N - v.length;
|
|
1224
1262
|
return T > M && T <= s(M, I);
|
|
1225
1263
|
});
|
|
1226
|
-
|
|
1264
|
+
v.push(...w);
|
|
1227
1265
|
}
|
|
1228
|
-
const p =
|
|
1229
|
-
const I = r.ISOWeek ?
|
|
1230
|
-
return E ? E.days.push(j) : w.push(new
|
|
1231
|
-
}, []), c = new
|
|
1266
|
+
const p = v.reduce((w, T) => {
|
|
1267
|
+
const I = r.ISOWeek ? l(T) : f(T), E = w.find((re) => re.weekNumber === I), j = new kt(T, k, n);
|
|
1268
|
+
return E ? E.days.push(j) : w.push(new Xn(I, [j])), w;
|
|
1269
|
+
}, []), c = new Qn(k, p);
|
|
1232
1270
|
return W.push(c), W;
|
|
1233
1271
|
}, []);
|
|
1234
1272
|
return r.reverseMonths ? O.reverse() : O;
|
|
1235
1273
|
}
|
|
1236
|
-
function
|
|
1274
|
+
function ss(e, t) {
|
|
1237
1275
|
let { startMonth: r, endMonth: n } = e;
|
|
1238
|
-
const { startOfYear: s, startOfDay: o, startOfMonth: a, endOfMonth: i, addYears: d, endOfYear:
|
|
1239
|
-
!r && O && (r = O), !r && y && (r = t.newDate(y, 0, 1)), !n && W && (n = W), !n && g && (n =
|
|
1240
|
-
const
|
|
1241
|
-
return r ? r = a(r) : y ? r =
|
|
1276
|
+
const { startOfYear: s, startOfDay: o, startOfMonth: a, endOfMonth: i, addYears: d, endOfYear: l, newDate: f, today: u } = t, { fromYear: y, toYear: g, fromMonth: O, toMonth: W } = e;
|
|
1277
|
+
!r && O && (r = O), !r && y && (r = t.newDate(y, 0, 1)), !n && W && (n = W), !n && g && (n = f(g, 11, 31));
|
|
1278
|
+
const k = e.captionLayout === "dropdown" || e.captionLayout === "dropdown-years";
|
|
1279
|
+
return r ? r = a(r) : y ? r = f(y, 0, 1) : !r && k && (r = s(d(e.today ?? u(), -100))), n ? n = i(n) : g ? n = f(g, 11, 31) : !n && k && (n = l(e.today ?? u())), [
|
|
1242
1280
|
r && o(r),
|
|
1243
1281
|
n && o(n)
|
|
1244
1282
|
];
|
|
1245
1283
|
}
|
|
1246
|
-
function
|
|
1284
|
+
function os(e, t, r, n) {
|
|
1247
1285
|
if (r.disableNavigation)
|
|
1248
1286
|
return;
|
|
1249
|
-
const { pagedNavigation: s, numberOfMonths: o = 1 } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: d } = n,
|
|
1287
|
+
const { pagedNavigation: s, numberOfMonths: o = 1 } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: d } = n, l = s ? o : 1, f = a(e);
|
|
1250
1288
|
if (!t)
|
|
1251
|
-
return i(
|
|
1289
|
+
return i(f, l);
|
|
1252
1290
|
if (!(d(t, e) < o))
|
|
1253
|
-
return i(
|
|
1291
|
+
return i(f, l);
|
|
1254
1292
|
}
|
|
1255
|
-
function
|
|
1293
|
+
function as(e, t, r, n) {
|
|
1256
1294
|
if (r.disableNavigation)
|
|
1257
1295
|
return;
|
|
1258
|
-
const { pagedNavigation: s, numberOfMonths: o } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: d } = n,
|
|
1296
|
+
const { pagedNavigation: s, numberOfMonths: o } = r, { startOfMonth: a, addMonths: i, differenceInCalendarMonths: d } = n, l = s ? o ?? 1 : 1, f = a(e);
|
|
1259
1297
|
if (!t)
|
|
1260
|
-
return i(
|
|
1261
|
-
if (!(d(
|
|
1262
|
-
return i(
|
|
1298
|
+
return i(f, -l);
|
|
1299
|
+
if (!(d(f, t) <= 0))
|
|
1300
|
+
return i(f, -l);
|
|
1263
1301
|
}
|
|
1264
|
-
function
|
|
1302
|
+
function is(e) {
|
|
1265
1303
|
const t = [];
|
|
1266
1304
|
return e.reduce((r, n) => r.concat(n.weeks.slice()), t.slice());
|
|
1267
1305
|
}
|
|
1268
|
-
function
|
|
1269
|
-
const [r, n] =
|
|
1306
|
+
function We(e, t) {
|
|
1307
|
+
const [r, n] = De(e);
|
|
1270
1308
|
return [t === void 0 ? r : t, n];
|
|
1271
1309
|
}
|
|
1272
|
-
function
|
|
1310
|
+
function ds(e, t) {
|
|
1273
1311
|
var N;
|
|
1274
|
-
const [r, n] =
|
|
1312
|
+
const [r, n] = ss(e, t), { startOfMonth: s, endOfMonth: o } = t, a = rt(e, r, n, t), [i, d] = We(
|
|
1275
1313
|
a,
|
|
1276
1314
|
// initialMonth is always computed from props.month if provided
|
|
1277
1315
|
e.month ? a : void 0
|
|
1278
1316
|
);
|
|
1279
|
-
|
|
1280
|
-
const p =
|
|
1317
|
+
lt(() => {
|
|
1318
|
+
const p = rt(e, r, n, t);
|
|
1281
1319
|
d(p);
|
|
1282
1320
|
}, [e.timeZone]);
|
|
1283
|
-
const { months:
|
|
1284
|
-
const p =
|
|
1321
|
+
const { months: l, weeks: f, days: u, previousMonth: y, nextMonth: g } = he(() => {
|
|
1322
|
+
const p = ns(i, n, { numberOfMonths: e.numberOfMonths }, t), c = es(p, e.endMonth ? o(e.endMonth) : void 0, {
|
|
1285
1323
|
ISOWeek: e.ISOWeek,
|
|
1286
1324
|
fixedWeeks: e.fixedWeeks,
|
|
1287
1325
|
broadcastCalendar: e.broadcastCalendar
|
|
1288
|
-
}, t), w =
|
|
1326
|
+
}, t), w = rs(p, c, {
|
|
1289
1327
|
broadcastCalendar: e.broadcastCalendar,
|
|
1290
1328
|
fixedWeeks: e.fixedWeeks,
|
|
1291
1329
|
ISOWeek: e.ISOWeek,
|
|
1292
1330
|
reverseMonths: e.reverseMonths
|
|
1293
|
-
}, t), T =
|
|
1331
|
+
}, t), T = is(w), I = ts(w), E = as(i, r, e, t), j = os(i, n, e, t);
|
|
1294
1332
|
return {
|
|
1295
1333
|
months: w,
|
|
1296
1334
|
weeks: T,
|
|
@@ -1311,15 +1349,15 @@ function ss(e, t) {
|
|
|
1311
1349
|
e.numberOfMonths,
|
|
1312
1350
|
e.pagedNavigation,
|
|
1313
1351
|
e.reverseMonths
|
|
1314
|
-
]), { disableNavigation: O, onMonthChange: W } = e,
|
|
1352
|
+
]), { disableNavigation: O, onMonthChange: W } = e, k = (p) => f.some((c) => c.days.some((w) => w.isEqualTo(p))), S = (p) => {
|
|
1315
1353
|
if (O)
|
|
1316
1354
|
return;
|
|
1317
1355
|
let c = s(p);
|
|
1318
1356
|
r && c < s(r) && (c = s(r)), n && c > s(n) && (c = s(n)), d(c), W == null || W(c);
|
|
1319
1357
|
};
|
|
1320
1358
|
return {
|
|
1321
|
-
months:
|
|
1322
|
-
weeks:
|
|
1359
|
+
months: l,
|
|
1360
|
+
weeks: f,
|
|
1323
1361
|
days: u,
|
|
1324
1362
|
navStart: r,
|
|
1325
1363
|
navEnd: n,
|
|
@@ -1327,7 +1365,7 @@ function ss(e, t) {
|
|
|
1327
1365
|
nextMonth: g,
|
|
1328
1366
|
goToMonth: S,
|
|
1329
1367
|
goToDay: (p) => {
|
|
1330
|
-
|
|
1368
|
+
k(p) || S(p.date);
|
|
1331
1369
|
}
|
|
1332
1370
|
};
|
|
1333
1371
|
}
|
|
@@ -1335,76 +1373,76 @@ var Z;
|
|
|
1335
1373
|
(function(e) {
|
|
1336
1374
|
e[e.Today = 0] = "Today", e[e.Selected = 1] = "Selected", e[e.LastFocused = 2] = "LastFocused", e[e.FocusedModifier = 3] = "FocusedModifier";
|
|
1337
1375
|
})(Z || (Z = {}));
|
|
1338
|
-
function
|
|
1376
|
+
function st(e) {
|
|
1339
1377
|
return !e[Y.disabled] && !e[Y.hidden] && !e[Y.outside];
|
|
1340
1378
|
}
|
|
1341
|
-
function
|
|
1379
|
+
function ls(e, t, r, n) {
|
|
1342
1380
|
let s, o = -1;
|
|
1343
1381
|
for (const a of e) {
|
|
1344
1382
|
const i = t(a);
|
|
1345
|
-
|
|
1383
|
+
st(i) && (i[Y.focused] && o < Z.FocusedModifier ? (s = a, o = Z.FocusedModifier) : n != null && n.isEqualTo(a) && o < Z.LastFocused ? (s = a, o = Z.LastFocused) : r(a.date) && o < Z.Selected ? (s = a, o = Z.Selected) : i[Y.today] && o < Z.Today && (s = a, o = Z.Today));
|
|
1346
1384
|
}
|
|
1347
|
-
return s || (s = e.find((a) =>
|
|
1385
|
+
return s || (s = e.find((a) => st(t(a)))), s;
|
|
1348
1386
|
}
|
|
1349
|
-
function
|
|
1350
|
-
const { ISOWeek: i, broadcastCalendar: d } = o, { addDays:
|
|
1387
|
+
function fs(e, t, r, n, s, o, a) {
|
|
1388
|
+
const { ISOWeek: i, broadcastCalendar: d } = o, { addDays: l, addMonths: f, addWeeks: u, addYears: y, endOfBroadcastWeek: g, endOfISOWeek: O, endOfWeek: W, max: k, min: S, startOfBroadcastWeek: M, startOfISOWeek: v, startOfWeek: N } = a;
|
|
1351
1389
|
let c = {
|
|
1352
|
-
day:
|
|
1390
|
+
day: l,
|
|
1353
1391
|
week: u,
|
|
1354
|
-
month:
|
|
1392
|
+
month: f,
|
|
1355
1393
|
year: y,
|
|
1356
|
-
startOfWeek: (w) => d ? M(w, a) : i ?
|
|
1394
|
+
startOfWeek: (w) => d ? M(w, a) : i ? v(w) : N(w),
|
|
1357
1395
|
endOfWeek: (w) => d ? g(w) : i ? O(w) : W(w)
|
|
1358
1396
|
}[e](r, t === "after" ? 1 : -1);
|
|
1359
|
-
return t === "before" && n ? c =
|
|
1397
|
+
return t === "before" && n ? c = k([n, c]) : t === "after" && s && (c = S([s, c])), c;
|
|
1360
1398
|
}
|
|
1361
|
-
function
|
|
1399
|
+
function Ft(e, t, r, n, s, o, a, i = 0) {
|
|
1362
1400
|
if (i > 365)
|
|
1363
1401
|
return;
|
|
1364
|
-
const d =
|
|
1365
|
-
return !
|
|
1402
|
+
const d = fs(e, t, r.date, n, s, o, a), l = !!(o.disabled && te(d, o.disabled, a)), f = !!(o.hidden && te(d, o.hidden, a)), u = d, y = new kt(d, u, a);
|
|
1403
|
+
return !l && !f ? y : Ft(e, t, y, n, s, o, a, i + 1);
|
|
1366
1404
|
}
|
|
1367
|
-
function
|
|
1368
|
-
const { autoFocus: o } = e, [a, i] =
|
|
1405
|
+
function cs(e, t, r, n, s) {
|
|
1406
|
+
const { autoFocus: o } = e, [a, i] = De(), d = ls(t.days, r, n || (() => !1), a), [l, f] = De(o ? d : void 0);
|
|
1369
1407
|
return {
|
|
1370
1408
|
isFocusTarget: (W) => !!(d != null && d.isEqualTo(W)),
|
|
1371
|
-
setFocused:
|
|
1372
|
-
focused:
|
|
1409
|
+
setFocused: f,
|
|
1410
|
+
focused: l,
|
|
1373
1411
|
blur: () => {
|
|
1374
|
-
i(
|
|
1412
|
+
i(l), f(void 0);
|
|
1375
1413
|
},
|
|
1376
|
-
moveFocus: (W,
|
|
1377
|
-
if (!
|
|
1414
|
+
moveFocus: (W, k) => {
|
|
1415
|
+
if (!l)
|
|
1378
1416
|
return;
|
|
1379
|
-
const S =
|
|
1380
|
-
S && (e.disableNavigation && !t.days.some((
|
|
1417
|
+
const S = Ft(W, k, l, t.navStart, t.navEnd, e, s);
|
|
1418
|
+
S && (e.disableNavigation && !t.days.some((v) => v.isEqualTo(S)) || (t.goToDay(S), f(S)));
|
|
1381
1419
|
}
|
|
1382
1420
|
};
|
|
1383
1421
|
}
|
|
1384
|
-
function
|
|
1385
|
-
const { selected: r, required: n, onSelect: s } = e, [o, a] =
|
|
1422
|
+
function us(e, t) {
|
|
1423
|
+
const { selected: r, required: n, onSelect: s } = e, [o, a] = We(r, s ? r : void 0), i = s ? r : o, { isSameDay: d } = t, l = (g) => (i == null ? void 0 : i.some((O) => d(O, g))) ?? !1, { min: f, max: u } = e;
|
|
1386
1424
|
return {
|
|
1387
1425
|
selected: i,
|
|
1388
1426
|
select: (g, O, W) => {
|
|
1389
|
-
let
|
|
1390
|
-
if (
|
|
1391
|
-
if ((i == null ? void 0 : i.length) ===
|
|
1427
|
+
let k = [...i ?? []];
|
|
1428
|
+
if (l(g)) {
|
|
1429
|
+
if ((i == null ? void 0 : i.length) === f || n && (i == null ? void 0 : i.length) === 1)
|
|
1392
1430
|
return;
|
|
1393
|
-
|
|
1431
|
+
k = i == null ? void 0 : i.filter((S) => !d(S, g));
|
|
1394
1432
|
} else
|
|
1395
|
-
(i == null ? void 0 : i.length) === u ?
|
|
1396
|
-
return s || a(
|
|
1433
|
+
(i == null ? void 0 : i.length) === u ? k = [g] : k = [...k, g];
|
|
1434
|
+
return s || a(k), s == null || s(k, g, O, W), k;
|
|
1397
1435
|
},
|
|
1398
|
-
isSelected:
|
|
1436
|
+
isSelected: l
|
|
1399
1437
|
};
|
|
1400
1438
|
}
|
|
1401
|
-
function
|
|
1402
|
-
const { from: a, to: i } = t || {}, { isSameDay: d, isAfter:
|
|
1439
|
+
function hs(e, t, r = 0, n = 0, s = !1, o = Q) {
|
|
1440
|
+
const { from: a, to: i } = t || {}, { isSameDay: d, isAfter: l, isBefore: f } = o;
|
|
1403
1441
|
let u;
|
|
1404
1442
|
if (!a && !i)
|
|
1405
1443
|
u = { from: e, to: r > 0 ? void 0 : e };
|
|
1406
1444
|
else if (a && !i)
|
|
1407
|
-
d(a, e) ? r === 0 ? u = { from: a, to: e } : s ? u = { from: a, to: void 0 } : u = void 0 :
|
|
1445
|
+
d(a, e) ? r === 0 ? u = { from: a, to: e } : s ? u = { from: a, to: void 0 } : u = void 0 : f(e, a) ? u = { from: e, to: a } : u = { from: a, to: e };
|
|
1408
1446
|
else if (a && i)
|
|
1409
1447
|
if (d(a, e) && d(i, e))
|
|
1410
1448
|
s ? u = { from: a, to: i } : u = void 0;
|
|
@@ -1412,11 +1450,11 @@ function fs(e, t, r = 0, n = 0, s = !1, o = Q) {
|
|
|
1412
1450
|
u = { from: a, to: r > 0 ? void 0 : e };
|
|
1413
1451
|
else if (d(i, e))
|
|
1414
1452
|
u = { from: e, to: r > 0 ? void 0 : e };
|
|
1415
|
-
else if (l(e, a))
|
|
1416
|
-
u = { from: e, to: i };
|
|
1417
1453
|
else if (f(e, a))
|
|
1454
|
+
u = { from: e, to: i };
|
|
1455
|
+
else if (l(e, a))
|
|
1418
1456
|
u = { from: a, to: e };
|
|
1419
|
-
else if (
|
|
1457
|
+
else if (l(e, i))
|
|
1420
1458
|
u = { from: a, to: e };
|
|
1421
1459
|
else
|
|
1422
1460
|
throw new Error("Invalid range");
|
|
@@ -1426,7 +1464,7 @@ function fs(e, t, r = 0, n = 0, s = !1, o = Q) {
|
|
|
1426
1464
|
}
|
|
1427
1465
|
return u;
|
|
1428
1466
|
}
|
|
1429
|
-
function
|
|
1467
|
+
function ms(e, t, r = Q) {
|
|
1430
1468
|
const n = Array.isArray(t) ? t : [t];
|
|
1431
1469
|
let s = e.from;
|
|
1432
1470
|
const o = r.differenceInCalendarDays(e.to, e.from), a = Math.min(o, 6);
|
|
@@ -1437,46 +1475,46 @@ function ls(e, t, r = Q) {
|
|
|
1437
1475
|
}
|
|
1438
1476
|
return !1;
|
|
1439
1477
|
}
|
|
1440
|
-
function
|
|
1478
|
+
function ot(e, t, r = Q) {
|
|
1441
1479
|
return ee(e, t.from, !1, r) || ee(e, t.to, !1, r) || ee(t, e.from, !1, r) || ee(t, e.to, !1, r);
|
|
1442
1480
|
}
|
|
1443
|
-
function
|
|
1481
|
+
function ys(e, t, r = Q) {
|
|
1444
1482
|
const n = Array.isArray(t) ? t : [t];
|
|
1445
|
-
if (n.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : r.isDate(i) ? ee(e, i, !1, r) :
|
|
1483
|
+
if (n.filter((i) => typeof i != "function").some((i) => typeof i == "boolean" ? i : r.isDate(i) ? ee(e, i, !1, r) : wt(i, r) ? i.some((d) => ee(e, d, !1, r)) : we(i) ? i.from && i.to ? ot(e, { from: i.from, to: i.to }, r) : !1 : Ot(i) ? ms(e, i.dayOfWeek, r) : $e(i) ? r.isAfter(i.before, i.after) ? ot(e, {
|
|
1446
1484
|
from: r.addDays(i.after, 1),
|
|
1447
1485
|
to: r.addDays(i.before, -1)
|
|
1448
|
-
}, r) : te(e.from, i, r) || te(e.to, i, r) :
|
|
1486
|
+
}, r) : te(e.from, i, r) || te(e.to, i, r) : Ge(i) || qe(i) ? te(e.from, i, r) || te(e.to, i, r) : !1))
|
|
1449
1487
|
return !0;
|
|
1450
1488
|
const a = n.filter((i) => typeof i == "function");
|
|
1451
1489
|
if (a.length) {
|
|
1452
1490
|
let i = e.from;
|
|
1453
1491
|
const d = r.differenceInCalendarDays(e.to, e.from);
|
|
1454
|
-
for (let
|
|
1455
|
-
if (a.some((
|
|
1492
|
+
for (let l = 0; l <= d; l++) {
|
|
1493
|
+
if (a.some((f) => f(i)))
|
|
1456
1494
|
return !0;
|
|
1457
1495
|
i = r.addDays(i, 1);
|
|
1458
1496
|
}
|
|
1459
1497
|
}
|
|
1460
1498
|
return !1;
|
|
1461
1499
|
}
|
|
1462
|
-
function
|
|
1463
|
-
const { disabled: r, excludeDisabled: n, resetOnSelect: s, selected: o, required: a, onSelect: i } = e, [d,
|
|
1500
|
+
function gs(e, t) {
|
|
1501
|
+
const { disabled: r, excludeDisabled: n, resetOnSelect: s, selected: o, required: a, onSelect: i } = e, [d, l] = We(o, i ? o : void 0), f = i ? o : d;
|
|
1464
1502
|
return {
|
|
1465
|
-
selected:
|
|
1503
|
+
selected: f,
|
|
1466
1504
|
select: (g, O, W) => {
|
|
1467
|
-
const { min:
|
|
1505
|
+
const { min: k, max: S } = e;
|
|
1468
1506
|
let M;
|
|
1469
1507
|
if (g) {
|
|
1470
|
-
const
|
|
1471
|
-
s && (p || !(
|
|
1508
|
+
const v = f == null ? void 0 : f.from, N = f == null ? void 0 : f.to, p = !!v && !!N, c = !!v && !!N && t.isSameDay(v, N) && t.isSameDay(g, v);
|
|
1509
|
+
s && (p || !(f != null && f.from)) ? !a && c ? M = void 0 : M = { from: g, to: void 0 } : M = hs(g, f, k, S, a, t);
|
|
1472
1510
|
}
|
|
1473
|
-
return n && r && (M != null && M.from) && M.to &&
|
|
1511
|
+
return n && r && (M != null && M.from) && M.to && ys({ from: M.from, to: M.to }, r, t) && (M.from = g, M.to = void 0), i || l(M), i == null || i(M, g, O, W), M;
|
|
1474
1512
|
},
|
|
1475
|
-
isSelected: (g) =>
|
|
1513
|
+
isSelected: (g) => f && ee(f, g, !1, t)
|
|
1476
1514
|
};
|
|
1477
1515
|
}
|
|
1478
|
-
function
|
|
1479
|
-
const { selected: r, required: n, onSelect: s } = e, [o, a] =
|
|
1516
|
+
function bs(e, t) {
|
|
1517
|
+
const { selected: r, required: n, onSelect: s } = e, [o, a] = We(r, s ? r : void 0), i = s ? r : o, { isSameDay: d } = t;
|
|
1480
1518
|
return {
|
|
1481
1519
|
selected: i,
|
|
1482
1520
|
select: (u, y, g) => {
|
|
@@ -1486,8 +1524,8 @@ function hs(e, t) {
|
|
|
1486
1524
|
isSelected: (u) => i ? d(i, u) : !1
|
|
1487
1525
|
};
|
|
1488
1526
|
}
|
|
1489
|
-
function
|
|
1490
|
-
const r =
|
|
1527
|
+
function vs(e, t) {
|
|
1528
|
+
const r = bs(e, t), n = us(e, t), s = gs(e, t);
|
|
1491
1529
|
switch (e.mode) {
|
|
1492
1530
|
case "single":
|
|
1493
1531
|
return r;
|
|
@@ -1505,46 +1543,46 @@ function q(e, t) {
|
|
|
1505
1543
|
function ae(e, t, r) {
|
|
1506
1544
|
return q(e, t);
|
|
1507
1545
|
}
|
|
1508
|
-
function
|
|
1509
|
-
return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? ae(e, t) : Array.isArray(e) ? e.map((n) => n instanceof Date ? ae(n, t) : n) :
|
|
1546
|
+
function at(e, t, r) {
|
|
1547
|
+
return typeof e == "boolean" || typeof e == "function" ? e : e instanceof Date ? ae(e, t) : Array.isArray(e) ? e.map((n) => n instanceof Date ? ae(n, t) : n) : we(e) ? {
|
|
1510
1548
|
...e,
|
|
1511
1549
|
from: e.from ? q(e.from, t) : e.from,
|
|
1512
1550
|
to: e.to ? q(e.to, t) : e.to
|
|
1513
|
-
} : je(e) ? {
|
|
1514
|
-
before: ae(e.before, t),
|
|
1515
|
-
after: ae(e.after, t)
|
|
1516
1551
|
} : $e(e) ? {
|
|
1552
|
+
before: ae(e.before, t),
|
|
1517
1553
|
after: ae(e.after, t)
|
|
1518
1554
|
} : Ge(e) ? {
|
|
1555
|
+
after: ae(e.after, t)
|
|
1556
|
+
} : qe(e) ? {
|
|
1519
1557
|
before: ae(e.before, t)
|
|
1520
1558
|
} : e;
|
|
1521
1559
|
}
|
|
1522
|
-
function
|
|
1523
|
-
return e && (Array.isArray(e) ? e.map((n) =>
|
|
1560
|
+
function ze(e, t, r) {
|
|
1561
|
+
return e && (Array.isArray(e) ? e.map((n) => at(n, t)) : at(e, t));
|
|
1524
1562
|
}
|
|
1525
|
-
function
|
|
1526
|
-
var
|
|
1563
|
+
function Ys(e) {
|
|
1564
|
+
var Xe;
|
|
1527
1565
|
let t = e;
|
|
1528
1566
|
const r = t.timeZone;
|
|
1529
1567
|
if (r && (t = {
|
|
1530
1568
|
...e,
|
|
1531
1569
|
timeZone: r
|
|
1532
|
-
}, t.today && (t.today = q(t.today, r)), t.month && (t.month = q(t.month, r)), t.defaultMonth && (t.defaultMonth = q(t.defaultMonth, r)), t.startMonth && (t.startMonth = q(t.startMonth, r)), t.endMonth && (t.endMonth = q(t.endMonth, r)), t.mode === "single" && t.selected ? t.selected = q(t.selected, r) : t.mode === "multiple" && t.selected ? t.selected = (
|
|
1570
|
+
}, t.today && (t.today = q(t.today, r)), t.month && (t.month = q(t.month, r)), t.defaultMonth && (t.defaultMonth = q(t.defaultMonth, r)), t.startMonth && (t.startMonth = q(t.startMonth, r)), t.endMonth && (t.endMonth = q(t.endMonth, r)), t.mode === "single" && t.selected ? t.selected = q(t.selected, r) : t.mode === "multiple" && t.selected ? t.selected = (Xe = t.selected) == null ? void 0 : Xe.map((D) => q(D, r)) : t.mode === "range" && t.selected && (t.selected = {
|
|
1533
1571
|
from: t.selected.from ? q(t.selected.from, r) : t.selected.from,
|
|
1534
1572
|
to: t.selected.to ? q(t.selected.to, r) : t.selected.to
|
|
1535
|
-
}), t.disabled !== void 0 && (t.disabled =
|
|
1536
|
-
const
|
|
1573
|
+
}), t.disabled !== void 0 && (t.disabled = ze(t.disabled, r)), t.hidden !== void 0 && (t.hidden = ze(t.hidden, r)), t.modifiers)) {
|
|
1574
|
+
const D = {};
|
|
1537
1575
|
Object.keys(t.modifiers).forEach((x) => {
|
|
1538
|
-
var
|
|
1539
|
-
|
|
1540
|
-
}), t.modifiers =
|
|
1576
|
+
var b;
|
|
1577
|
+
D[x] = ze((b = t.modifiers) == null ? void 0 : b[x], r);
|
|
1578
|
+
}), t.modifiers = D;
|
|
1541
1579
|
}
|
|
1542
|
-
const { components: n, formatters: s, labels: o, dateLib: a, locale: i, classNames: d } =
|
|
1543
|
-
const
|
|
1580
|
+
const { components: n, formatters: s, labels: o, dateLib: a, locale: i, classNames: d } = he(() => {
|
|
1581
|
+
const D = { ...Mt, ...t.locale }, x = t.broadcastCalendar ? 1 : t.weekStartsOn, b = t.noonSafe && t.timeZone ? Zr(t.timeZone, {
|
|
1544
1582
|
weekStartsOn: x,
|
|
1545
|
-
locale:
|
|
1546
|
-
}) : void 0, _ = t.dateLib &&
|
|
1547
|
-
locale:
|
|
1583
|
+
locale: D
|
|
1584
|
+
}) : void 0, _ = t.dateLib && b ? { ...b, ...t.dateLib } : t.dateLib ?? b, P = new H({
|
|
1585
|
+
locale: D,
|
|
1548
1586
|
weekStartsOn: x,
|
|
1549
1587
|
firstWeekContainsDate: t.firstWeekContainsDate,
|
|
1550
1588
|
useAdditionalWeekYearTokens: t.useAdditionalWeekYearTokens,
|
|
@@ -1553,12 +1591,12 @@ function Ws(e) {
|
|
|
1553
1591
|
numerals: t.numerals
|
|
1554
1592
|
}, _);
|
|
1555
1593
|
return {
|
|
1556
|
-
dateLib:
|
|
1557
|
-
components:
|
|
1558
|
-
formatters:
|
|
1559
|
-
labels:
|
|
1560
|
-
locale:
|
|
1561
|
-
classNames: { ...
|
|
1594
|
+
dateLib: P,
|
|
1595
|
+
components: Sr(t.components),
|
|
1596
|
+
formatters: Ar(t.formatters),
|
|
1597
|
+
labels: qr(t.labels, P.options),
|
|
1598
|
+
locale: D,
|
|
1599
|
+
classNames: { ...xr(), ...t.classNames }
|
|
1562
1600
|
};
|
|
1563
1601
|
}, [
|
|
1564
1602
|
t.locale,
|
|
@@ -1577,69 +1615,69 @@ function Ws(e) {
|
|
|
1577
1615
|
t.classNames
|
|
1578
1616
|
]);
|
|
1579
1617
|
t.today || (t = { ...t, today: a.today() });
|
|
1580
|
-
const { captionLayout:
|
|
1581
|
-
|
|
1582
|
-
}, [
|
|
1583
|
-
U && (L(U),
|
|
1584
|
-
}, [L, U,
|
|
1585
|
-
|
|
1586
|
-
}, [de, O,
|
|
1587
|
-
|
|
1588
|
-
}, [W,
|
|
1589
|
-
|
|
1590
|
-
}, [
|
|
1618
|
+
const { captionLayout: l, mode: f, navLayout: u, numberOfMonths: y = 1, onDayBlur: g, onDayClick: O, onDayFocus: W, onDayKeyDown: k, onDayMouseEnter: S, onDayMouseLeave: M, onNextClick: v, onPrevClick: N, showWeekNumber: p, styles: c } = t, { formatCaption: w, formatDay: T, formatMonthDropdown: I, formatWeekNumber: E, formatWeekNumberHeader: j, formatWeekdayName: re, formatYearDropdown: X } = s, $ = ds(t, a), { days: oe, months: ge, navStart: Ne, navEnd: Ce, previousMonth: V, nextMonth: U, goToMonth: L } = $, Se = Nr(oe, t, Ne, Ce, a), { isSelected: ie, select: de, selected: be } = vs(t, a) ?? {}, { blur: Ue, focused: ve, isFocusTarget: zt, moveFocus: Ke, setFocused: pe } = cs(t, $, Se, ie ?? (() => !1), a), { labelDayButton: Pt, labelGridcell: At, labelGrid: Ht, labelMonthDropdown: jt, labelNav: Ze, labelPrevious: $t, labelNext: Gt, labelWeekday: qt, labelWeekNumber: Rt, labelWeekNumberHeader: Vt, labelYearDropdown: Ut } = o, Kt = he(() => Ur(a, t.ISOWeek, t.broadcastCalendar, t.today), [a, t.ISOWeek, t.broadcastCalendar, t.today]), Je = f !== void 0 || O !== void 0, _e = G(() => {
|
|
1619
|
+
V && (L(V), N == null || N(V));
|
|
1620
|
+
}, [V, L, N]), xe = G(() => {
|
|
1621
|
+
U && (L(U), v == null || v(U));
|
|
1622
|
+
}, [L, U, v]), Zt = G((D, x) => (b) => {
|
|
1623
|
+
b.preventDefault(), b.stopPropagation(), pe(D), !x.disabled && (de == null || de(D.date, x, b), O == null || O(D.date, x, b));
|
|
1624
|
+
}, [de, O, pe]), Jt = G((D, x) => (b) => {
|
|
1625
|
+
pe(D), W == null || W(D.date, x, b);
|
|
1626
|
+
}, [W, pe]), Qt = G((D, x) => (b) => {
|
|
1627
|
+
Ue(), g == null || g(D.date, x, b);
|
|
1628
|
+
}, [Ue, g]), Xt = G((D, x) => (b) => {
|
|
1591
1629
|
const _ = {
|
|
1592
1630
|
ArrowLeft: [
|
|
1593
|
-
|
|
1631
|
+
b.shiftKey ? "month" : "day",
|
|
1594
1632
|
t.dir === "rtl" ? "after" : "before"
|
|
1595
1633
|
],
|
|
1596
1634
|
ArrowRight: [
|
|
1597
|
-
|
|
1635
|
+
b.shiftKey ? "month" : "day",
|
|
1598
1636
|
t.dir === "rtl" ? "before" : "after"
|
|
1599
1637
|
],
|
|
1600
|
-
ArrowDown: [
|
|
1601
|
-
ArrowUp: [
|
|
1602
|
-
PageUp: [
|
|
1603
|
-
PageDown: [
|
|
1638
|
+
ArrowDown: [b.shiftKey ? "year" : "week", "after"],
|
|
1639
|
+
ArrowUp: [b.shiftKey ? "year" : "week", "before"],
|
|
1640
|
+
PageUp: [b.shiftKey ? "year" : "month", "before"],
|
|
1641
|
+
PageDown: [b.shiftKey ? "year" : "month", "after"],
|
|
1604
1642
|
Home: ["startOfWeek", "before"],
|
|
1605
1643
|
End: ["endOfWeek", "after"]
|
|
1606
1644
|
};
|
|
1607
|
-
if (_[
|
|
1608
|
-
|
|
1609
|
-
const [
|
|
1610
|
-
|
|
1645
|
+
if (_[b.key]) {
|
|
1646
|
+
b.preventDefault(), b.stopPropagation();
|
|
1647
|
+
const [P, C] = _[b.key];
|
|
1648
|
+
Ke(P, C);
|
|
1611
1649
|
}
|
|
1612
|
-
|
|
1613
|
-
}, [
|
|
1614
|
-
S == null || S(
|
|
1615
|
-
}, [S]),
|
|
1616
|
-
M == null || M(
|
|
1617
|
-
}, [M]),
|
|
1618
|
-
const
|
|
1650
|
+
k == null || k(D.date, x, b);
|
|
1651
|
+
}, [Ke, k, t.dir]), Lt = G((D, x) => (b) => {
|
|
1652
|
+
S == null || S(D.date, x, b);
|
|
1653
|
+
}, [S]), en = G((D, x) => (b) => {
|
|
1654
|
+
M == null || M(D.date, x, b);
|
|
1655
|
+
}, [M]), tn = G((D) => (x) => {
|
|
1656
|
+
const b = Number(x.target.value), _ = a.setMonth(a.startOfMonth(D), b);
|
|
1619
1657
|
L(_);
|
|
1620
|
-
}, [a, L]),
|
|
1621
|
-
const
|
|
1658
|
+
}, [a, L]), nn = G((D) => (x) => {
|
|
1659
|
+
const b = Number(x.target.value), _ = a.setYear(a.startOfMonth(D), b);
|
|
1622
1660
|
L(_);
|
|
1623
|
-
}, [a, L]), { className:
|
|
1661
|
+
}, [a, L]), { className: rn, style: sn } = he(() => ({
|
|
1624
1662
|
className: [d[h.Root], t.className].filter(Boolean).join(" "),
|
|
1625
1663
|
style: { ...c == null ? void 0 : c[h.Root], ...t.style }
|
|
1626
|
-
}), [d, t.className, t.style, c]),
|
|
1627
|
-
|
|
1664
|
+
}), [d, t.className, t.style, c]), on = _r(t), Qe = ke(null);
|
|
1665
|
+
Lr(Qe, !!t.animate, {
|
|
1628
1666
|
classNames: d,
|
|
1629
|
-
months:
|
|
1630
|
-
focused:
|
|
1667
|
+
months: ge,
|
|
1668
|
+
focused: ve,
|
|
1631
1669
|
dateLib: a
|
|
1632
1670
|
});
|
|
1633
|
-
const
|
|
1671
|
+
const an = {
|
|
1634
1672
|
dayPickerProps: t,
|
|
1635
|
-
selected:
|
|
1673
|
+
selected: be,
|
|
1636
1674
|
select: de,
|
|
1637
1675
|
isSelected: ie,
|
|
1638
|
-
months:
|
|
1676
|
+
months: ge,
|
|
1639
1677
|
nextMonth: U,
|
|
1640
|
-
previousMonth:
|
|
1678
|
+
previousMonth: V,
|
|
1641
1679
|
goToMonth: L,
|
|
1642
|
-
getModifiers:
|
|
1680
|
+
getModifiers: Se,
|
|
1643
1681
|
components: n,
|
|
1644
1682
|
classNames: d,
|
|
1645
1683
|
styles: c,
|
|
@@ -1648,15 +1686,15 @@ function Ws(e) {
|
|
|
1648
1686
|
};
|
|
1649
1687
|
return m.createElement(
|
|
1650
1688
|
Dt.Provider,
|
|
1651
|
-
{ value:
|
|
1689
|
+
{ value: an },
|
|
1652
1690
|
m.createElement(
|
|
1653
1691
|
n.Root,
|
|
1654
|
-
{ rootRef: t.animate ?
|
|
1692
|
+
{ rootRef: t.animate ? Qe : void 0, className: rn, 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"], ...on },
|
|
1655
1693
|
m.createElement(
|
|
1656
1694
|
n.Months,
|
|
1657
1695
|
{ className: d[h.Months], style: c == null ? void 0 : c[h.Months] },
|
|
1658
|
-
!t.hideNavigation && !u && m.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[h.Nav], style: c == null ? void 0 : c[h.Nav], "aria-label":
|
|
1659
|
-
|
|
1696
|
+
!t.hideNavigation && !u && m.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[h.Nav], style: c == null ? void 0 : c[h.Nav], "aria-label": Ze(), onPreviousClick: _e, onNextClick: xe, previousMonth: V, nextMonth: U }),
|
|
1697
|
+
ge.map((D, x) => m.createElement(
|
|
1660
1698
|
n.Month,
|
|
1661
1699
|
{
|
|
1662
1700
|
"data-animated-month": t.animate ? "true" : void 0,
|
|
@@ -1665,19 +1703,19 @@ function Ws(e) {
|
|
|
1665
1703
|
// biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
|
|
1666
1704
|
key: x,
|
|
1667
1705
|
displayIndex: x,
|
|
1668
|
-
calendarMonth:
|
|
1706
|
+
calendarMonth: D
|
|
1669
1707
|
},
|
|
1670
1708
|
u === "around" && !t.hideNavigation && x === 0 && m.createElement(
|
|
1671
1709
|
n.PreviousMonthButton,
|
|
1672
|
-
{ type: "button", className: d[h.PreviousMonthButton], tabIndex:
|
|
1673
|
-
m.createElement(n.Chevron, { disabled:
|
|
1710
|
+
{ type: "button", className: d[h.PreviousMonthButton], tabIndex: V ? void 0 : -1, "aria-disabled": V ? void 0 : !0, "aria-label": $t(V), onClick: _e, "data-animated-button": t.animate ? "true" : void 0 },
|
|
1711
|
+
m.createElement(n.Chevron, { disabled: V ? void 0 : !0, className: d[h.Chevron], orientation: t.dir === "rtl" ? "right" : "left" })
|
|
1674
1712
|
),
|
|
1675
|
-
m.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: d[h.MonthCaption], style: c == null ? void 0 : c[h.MonthCaption], calendarMonth:
|
|
1713
|
+
m.createElement(n.MonthCaption, { "data-animated-caption": t.animate ? "true" : void 0, className: d[h.MonthCaption], style: c == null ? void 0 : c[h.MonthCaption], calendarMonth: D, displayIndex: x }, l != null && l.startsWith("dropdown") ? m.createElement(
|
|
1676
1714
|
n.DropdownNav,
|
|
1677
1715
|
{ className: d[h.Dropdowns], style: c == null ? void 0 : c[h.Dropdowns] },
|
|
1678
1716
|
(() => {
|
|
1679
|
-
const
|
|
1680
|
-
return a.getMonthYearOrder() === "year-first" ? [_,
|
|
1717
|
+
const b = l === "dropdown" || l === "dropdown-months" ? m.createElement(n.MonthsDropdown, { key: "month", className: d[h.MonthsDropdown], "aria-label": jt(), classNames: d, components: n, disabled: !!t.disableNavigation, onChange: tn(D.date), options: Rr(D.date, Ne, Ce, s, a), style: c == null ? void 0 : c[h.Dropdown], value: a.getMonth(D.date) }) : m.createElement("span", { key: "month" }, I(D.date, a)), _ = l === "dropdown" || l === "dropdown-years" ? m.createElement(n.YearsDropdown, { key: "year", className: d[h.YearsDropdown], "aria-label": Ut(a.options), classNames: d, components: n, disabled: !!t.disableNavigation, onChange: nn(D.date), options: Kr(Ne, Ce, s, a, !!t.reverseYears), style: c == null ? void 0 : c[h.Dropdown], value: a.getYear(D.date) }) : m.createElement("span", { key: "year" }, X(D.date, a));
|
|
1718
|
+
return a.getMonthYearOrder() === "year-first" ? [_, b] : [b, _];
|
|
1681
1719
|
})(),
|
|
1682
1720
|
m.createElement("span", { role: "status", "aria-live": "polite", style: {
|
|
1683
1721
|
border: 0,
|
|
@@ -1690,37 +1728,37 @@ function Ws(e) {
|
|
|
1690
1728
|
width: "1px",
|
|
1691
1729
|
whiteSpace: "nowrap",
|
|
1692
1730
|
wordWrap: "normal"
|
|
1693
|
-
} }, w(
|
|
1694
|
-
) : m.createElement(n.CaptionLabel, { className: d[h.CaptionLabel], role: "status", "aria-live": "polite" }, w(
|
|
1731
|
+
} }, w(D.date, a.options, a))
|
|
1732
|
+
) : m.createElement(n.CaptionLabel, { className: d[h.CaptionLabel], role: "status", "aria-live": "polite" }, w(D.date, a.options, a))),
|
|
1695
1733
|
u === "around" && !t.hideNavigation && x === y - 1 && m.createElement(
|
|
1696
1734
|
n.NextMonthButton,
|
|
1697
|
-
{ type: "button", className: d[h.NextMonthButton], tabIndex: U ? void 0 : -1, "aria-disabled": U ? void 0 : !0, "aria-label":
|
|
1735
|
+
{ type: "button", className: d[h.NextMonthButton], tabIndex: U ? void 0 : -1, "aria-disabled": U ? void 0 : !0, "aria-label": Gt(U), onClick: xe, "data-animated-button": t.animate ? "true" : void 0 },
|
|
1698
1736
|
m.createElement(n.Chevron, { disabled: U ? void 0 : !0, className: d[h.Chevron], orientation: t.dir === "rtl" ? "left" : "right" })
|
|
1699
1737
|
),
|
|
1700
|
-
x === y - 1 && u === "after" && !t.hideNavigation && m.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[h.Nav], style: c == null ? void 0 : c[h.Nav], "aria-label":
|
|
1738
|
+
x === y - 1 && u === "after" && !t.hideNavigation && m.createElement(n.Nav, { "data-animated-nav": t.animate ? "true" : void 0, className: d[h.Nav], style: c == null ? void 0 : c[h.Nav], "aria-label": Ze(), onPreviousClick: _e, onNextClick: xe, previousMonth: V, nextMonth: U }),
|
|
1701
1739
|
m.createElement(
|
|
1702
1740
|
n.MonthGrid,
|
|
1703
|
-
{ role: "grid", "aria-multiselectable":
|
|
1741
|
+
{ role: "grid", "aria-multiselectable": f === "multiple" || f === "range", "aria-label": Ht(D.date, a.options, a) || void 0, className: d[h.MonthGrid], style: c == null ? void 0 : c[h.MonthGrid] },
|
|
1704
1742
|
!t.hideWeekdays && m.createElement(
|
|
1705
1743
|
n.Weekdays,
|
|
1706
1744
|
{ "data-animated-weekdays": t.animate ? "true" : void 0, className: d[h.Weekdays], style: c == null ? void 0 : c[h.Weekdays] },
|
|
1707
1745
|
p && m.createElement(n.WeekNumberHeader, { "aria-label": Vt(a.options), className: d[h.WeekNumberHeader], style: c == null ? void 0 : c[h.WeekNumberHeader], scope: "col" }, j()),
|
|
1708
|
-
|
|
1746
|
+
Kt.map((b) => m.createElement(n.Weekday, { "aria-label": qt(b, a.options, a), className: d[h.Weekday], key: String(b), style: c == null ? void 0 : c[h.Weekday], scope: "col" }, re(b, a.options, a)))
|
|
1709
1747
|
),
|
|
1710
|
-
m.createElement(n.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: d[h.Weeks], style: c == null ? void 0 : c[h.Weeks] },
|
|
1748
|
+
m.createElement(n.Weeks, { "data-animated-weeks": t.animate ? "true" : void 0, className: d[h.Weeks], style: c == null ? void 0 : c[h.Weeks] }, D.weeks.map((b) => m.createElement(
|
|
1711
1749
|
n.Week,
|
|
1712
|
-
{ className: d[h.Week], key:
|
|
1713
|
-
p && m.createElement(n.WeekNumber, { week:
|
|
1750
|
+
{ className: d[h.Week], key: b.weekNumber, style: c == null ? void 0 : c[h.Week], week: b },
|
|
1751
|
+
p && m.createElement(n.WeekNumber, { week: b, style: c == null ? void 0 : c[h.WeekNumber], "aria-label": Rt(b.weekNumber, {
|
|
1714
1752
|
locale: i
|
|
1715
|
-
}), className: d[h.WeekNumber], scope: "row", role: "rowheader" }, E(
|
|
1716
|
-
|
|
1717
|
-
const { date:
|
|
1718
|
-
if (C[Y.focused] = !C.hidden && !!(
|
|
1719
|
-
const { from:
|
|
1720
|
-
C[z.range_start] = !!(
|
|
1753
|
+
}), className: d[h.WeekNumber], scope: "row", role: "rowheader" }, E(b.weekNumber, a)),
|
|
1754
|
+
b.days.map((_) => {
|
|
1755
|
+
const { date: P } = _, C = Se(_);
|
|
1756
|
+
if (C[Y.focused] = !C.hidden && !!(ve != null && ve.isEqualTo(_)), C[z.selected] = (ie == null ? void 0 : ie(P)) || C.selected, we(be)) {
|
|
1757
|
+
const { from: Ye, to: Te } = be;
|
|
1758
|
+
C[z.range_start] = !!(Ye && Te && a.isSameDay(P, Ye)), C[z.range_end] = !!(Ye && Te && a.isSameDay(P, Te)), C[z.range_middle] = ee(be, P, !0, a);
|
|
1721
1759
|
}
|
|
1722
|
-
const
|
|
1723
|
-
return m.createElement(n.Day, { key: `${_.isoDate}_${_.displayMonthId}`, day: _, modifiers: C, className:
|
|
1760
|
+
const dn = Vr(C, c, t.modifiersStyles), ln = Cr(C, d, t.modifiersClassNames), fn = !Je && !C.hidden ? At(P, C, a.options, a) : void 0;
|
|
1761
|
+
return m.createElement(n.Day, { key: `${_.isoDate}_${_.displayMonthId}`, day: _, modifiers: C, className: ln.join(" "), style: dn, role: "gridcell", "aria-selected": C.selected || void 0, "aria-label": fn, "data-day": _.isoDate, "data-month": _.outside ? _.dateMonthId : void 0, "data-selected": C.selected || void 0, "data-disabled": C.disabled || void 0, "data-hidden": C.hidden || void 0, "data-outside": _.outside || void 0, "data-focused": C.focused || void 0, "data-today": C.today || void 0 }, !C.hidden && Je ? m.createElement(n.DayButton, { className: d[h.DayButton], style: c == null ? void 0 : c[h.DayButton], type: "button", day: _, modifiers: C, disabled: !C.focused && C.disabled || void 0, "aria-disabled": C.focused && C.disabled || void 0, tabIndex: zt(_) ? 0 : -1, "aria-label": Pt(P, C, a.options, a), onClick: Zt(_, C), onBlur: Qt(_, C), onFocus: Jt(_, C), onKeyDown: Xt(_, C), onMouseEnter: Lt(_, C), onMouseLeave: en(_, C) }, T(P, a.options, a)) : !C.hidden && T(_.date, a.options, a));
|
|
1724
1762
|
})
|
|
1725
1763
|
)))
|
|
1726
1764
|
)
|
|
@@ -1730,50 +1768,59 @@ function Ws(e) {
|
|
|
1730
1768
|
)
|
|
1731
1769
|
);
|
|
1732
1770
|
}
|
|
1733
|
-
const
|
|
1734
|
-
en: () => import("./
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1771
|
+
const ue = {
|
|
1772
|
+
en: () => import("./en-GB-CwxYmmhU.js").then((e) => e.enGB),
|
|
1773
|
+
"en-us": () => import("./format-D-1gTdHF.js").then((e) => e.I).then((e) => e.enUS),
|
|
1774
|
+
it: () => import("./it-DBoNIelY.js").then((e) => e.it),
|
|
1775
|
+
de: () => import("./de-lVkJRPnh.js").then((e) => e.de),
|
|
1776
|
+
es: () => import("./es-Ck-oxbHW.js").then((e) => e.es),
|
|
1777
|
+
fr: () => import("./fr-fWRnDcSD.js").then((e) => e.fr),
|
|
1778
|
+
pt: () => import("./pt-BxhT5ZQH.js").then((e) => e.pt),
|
|
1779
|
+
nl: () => import("./nl-BCBwxYi8.js").then((e) => e.nl),
|
|
1780
|
+
pl: () => import("./pl-HwLM6gPs.js").then((e) => e.pl),
|
|
1781
|
+
ro: () => import("./ro-Do9W55ae.js").then((e) => e.ro),
|
|
1782
|
+
ru: () => import("./ru-PDBX5gdf.js").then((e) => e.ru),
|
|
1783
|
+
sv: () => import("./sv-CpFSK8xS.js").then((e) => e.sv),
|
|
1784
|
+
el: () => import("./el-CHzxNWPj.js").then((e) => e.el),
|
|
1785
|
+
ja: () => import("./ja-Du8gfg8p.js").then((e) => e.ja),
|
|
1786
|
+
zh: () => import("./zh-CN-QGEs29fQ.js").then((e) => e.zhCN),
|
|
1787
|
+
hi: () => import("./hi-B5uX0h3V.js").then((e) => e.hi),
|
|
1788
|
+
ar: () => import("./ar-pLopgMbL.js").then((e) => e.ar),
|
|
1789
|
+
tr: () => import("./tr-DW4oQYHT.js").then((e) => e.tr),
|
|
1790
|
+
sq: () => import("./sq-DnvsgyIh.js").then((e) => e.sq)
|
|
1752
1791
|
};
|
|
1753
|
-
async function
|
|
1754
|
-
const t = e.toLowerCase().split("-")[0];
|
|
1755
|
-
return (
|
|
1756
|
-
}
|
|
1757
|
-
const
|
|
1758
|
-
function
|
|
1759
|
-
const t = e.toLowerCase().split("-")[0], [
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1792
|
+
async function it(e) {
|
|
1793
|
+
const t = e.toLowerCase().replaceAll("_", "-"), r = Object.hasOwn(ue, t) ? t : t.split("-")[0];
|
|
1794
|
+
return (Object.hasOwn(ue, r) ? ue[r] : ue.en)();
|
|
1795
|
+
}
|
|
1796
|
+
const Me = /* @__PURE__ */ new Map();
|
|
1797
|
+
function Ts(e) {
|
|
1798
|
+
const t = e.toLowerCase().replaceAll("_", "-"), r = Object.hasOwn(ue, t) ? t : t.split("-")[0], [n, s] = De(() => ({
|
|
1799
|
+
key: r,
|
|
1800
|
+
locale: Me.get(r)
|
|
1801
|
+
}));
|
|
1802
|
+
return lt(() => {
|
|
1803
|
+
const o = Me.get(r);
|
|
1804
|
+
if (o) {
|
|
1805
|
+
s({ key: r, locale: o });
|
|
1766
1806
|
return;
|
|
1767
1807
|
}
|
|
1768
|
-
let
|
|
1769
|
-
return
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1808
|
+
let a = !1;
|
|
1809
|
+
return it(r).then(
|
|
1810
|
+
(i) => {
|
|
1811
|
+
Me.set(r, i), a || s({ key: r, locale: i });
|
|
1812
|
+
},
|
|
1813
|
+
// A failed chunk shows English instead of an endless wait. It is not
|
|
1814
|
+
// cached, so the next mount retries the language.
|
|
1815
|
+
() => it("en").then((i) => {
|
|
1816
|
+
a || s({ key: r, locale: i });
|
|
1817
|
+
})
|
|
1818
|
+
), () => {
|
|
1819
|
+
a = !0;
|
|
1773
1820
|
};
|
|
1774
|
-
}, [
|
|
1821
|
+
}, [r]), n.key === r ? n.locale : Me.get(r);
|
|
1775
1822
|
}
|
|
1776
|
-
const
|
|
1823
|
+
const Pe = {
|
|
1777
1824
|
en: "dd/MM/yyyy",
|
|
1778
1825
|
"en-us": "MM/dd/yyyy",
|
|
1779
1826
|
de: "dd.MM.yyyy",
|
|
@@ -1794,18 +1841,18 @@ const ze = {
|
|
|
1794
1841
|
ar: "dd/MM/yyyy",
|
|
1795
1842
|
he: "dd.MM.yyyy"
|
|
1796
1843
|
};
|
|
1797
|
-
function
|
|
1844
|
+
function Es(e) {
|
|
1798
1845
|
const t = e.toLowerCase();
|
|
1799
|
-
return
|
|
1846
|
+
return Pe[t] ?? Pe[t.split("-")[0]] ?? Pe.en;
|
|
1800
1847
|
}
|
|
1801
|
-
function
|
|
1848
|
+
function Is(e, t, r) {
|
|
1802
1849
|
const n = [];
|
|
1803
1850
|
return e && n.push({ before: e }), t && n.push({ after: t }), Array.isArray(r) ? n.push(...r) : typeof r == "function" && n.push(r), n.length === 1 ? n[0] : n;
|
|
1804
1851
|
}
|
|
1805
|
-
function
|
|
1806
|
-
return e === "left" ? /* @__PURE__ */
|
|
1852
|
+
function Bs({ orientation: e }) {
|
|
1853
|
+
return e === "left" ? /* @__PURE__ */ Le(On, { className: "ds:size-4 ds:rtl:-scale-x-100" }) : /* @__PURE__ */ Le(wn, { className: "ds:size-4 ds:rtl:-scale-x-100" });
|
|
1807
1854
|
}
|
|
1808
|
-
const Ae = "ds:bg-[var(--calendar-range-fill)]",
|
|
1855
|
+
const Ae = "ds:bg-[var(--calendar-range-fill)]", ps = "ds:size-[var(--min-target-size)] ds:text-center ds:align-middle", Ms = [
|
|
1809
1856
|
// `rdp-day_button` stays as a stable structural/test hook. Selection fills
|
|
1810
1857
|
// target the descendant `button` instead: inside an arbitrary variant an
|
|
1811
1858
|
// underscore reads as a SPACE, so `.rdp-day_button` would compile to the
|
|
@@ -1828,7 +1875,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
1828
1875
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1829
1876
|
"ds:forced-colors:focus-visible:outline-[Highlight]",
|
|
1830
1877
|
"ds:disabled:cursor-default"
|
|
1831
|
-
].join(" "),
|
|
1878
|
+
].join(" "), ks = [
|
|
1832
1879
|
"rdp-today",
|
|
1833
1880
|
"ds:[&_button]:font-semibold",
|
|
1834
1881
|
"ds:[&_button]:after:content-['']",
|
|
@@ -1848,7 +1895,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
1848
1895
|
// pairing in every state without a separate (and previously wrong, because
|
|
1849
1896
|
// it pinned CanvasText even on a Highlight cap) forced-colors override.
|
|
1850
1897
|
"ds:[&_button]:after:bg-current"
|
|
1851
|
-
].join(" "),
|
|
1898
|
+
].join(" "), dt = [
|
|
1852
1899
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
1853
1900
|
"ds:size-[var(--min-target-size)] ds:rounded-[var(--radius-sm)]",
|
|
1854
1901
|
"ds:cursor-pointer ds:bg-transparent ds:text-foreground",
|
|
@@ -1858,7 +1905,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
1858
1905
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1859
1906
|
"ds:disabled:opacity-50 ds:disabled:cursor-default",
|
|
1860
1907
|
"ds:aria-disabled:opacity-50 ds:aria-disabled:cursor-default"
|
|
1861
|
-
].join(" "),
|
|
1908
|
+
].join(" "), Fs = {
|
|
1862
1909
|
/* ---- Layout shell ---- */
|
|
1863
1910
|
// `ds:font-sans` is Tailwind's DEFAULT stack (ui-sans-serif, system-ui …), not
|
|
1864
1911
|
// the kit's face, so it overrode the correct font the portal root had already
|
|
@@ -1873,8 +1920,8 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
1873
1920
|
// `top-0` is the block-axis (RTL-agnostic) inset; `end-0` is the
|
|
1874
1921
|
// inline-axis logical inset → `inset-inline-end: 0`, mirroring under RTL.
|
|
1875
1922
|
[h.Nav]: "rdp-nav ds:absolute ds:top-0 ds:end-0 ds:flex ds:items-center ds:h-[var(--min-target-size)]",
|
|
1876
|
-
[h.PreviousMonthButton]: `rdp-button_previous ${
|
|
1877
|
-
[h.NextMonthButton]: `rdp-button_next ${
|
|
1923
|
+
[h.PreviousMonthButton]: `rdp-button_previous ${dt}`,
|
|
1924
|
+
[h.NextMonthButton]: `rdp-button_next ${dt}`,
|
|
1878
1925
|
[h.Chevron]: "rdp-chevron ds:inline-block ds:fill-current",
|
|
1879
1926
|
/* ---- Weekday header row ---- */
|
|
1880
1927
|
[h.Weekdays]: "rdp-weekdays",
|
|
@@ -1884,8 +1931,8 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
1884
1931
|
/* ---- Week rows + day cells ---- */
|
|
1885
1932
|
[h.Weeks]: "rdp-weeks",
|
|
1886
1933
|
[h.Week]: "rdp-week",
|
|
1887
|
-
[h.Day]: `rdp-day ${
|
|
1888
|
-
[h.DayButton]:
|
|
1934
|
+
[h.Day]: `rdp-day ${ps}`,
|
|
1935
|
+
[h.DayButton]: Ms,
|
|
1889
1936
|
[h.WeekNumber]: "rdp-week_number ds:text-muted-foreground ds:text-center ds:text-[length:var(--font-size-sm)] ds:size-[var(--min-target-size)]",
|
|
1890
1937
|
/* ---- Day flags ----
|
|
1891
1938
|
De-emphasised states now ride tokened colours with GUARANTEED contrast
|
|
@@ -1893,7 +1940,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
1893
1940
|
dodge the ratio). `today` is a shape marker (see TODAY_DOT) that survives
|
|
1894
1941
|
inside a range and on a solid cap; `disabled` adds a `line-through`
|
|
1895
1942
|
non-colour "unavailable" cue on top of the muted colour. */
|
|
1896
|
-
[Y.today]:
|
|
1943
|
+
[Y.today]: ks,
|
|
1897
1944
|
[Y.outside]: "rdp-outside ds:text-muted-foreground",
|
|
1898
1945
|
[Y.disabled]: "rdp-disabled ds:text-muted-foreground ds:[&_button]:line-through",
|
|
1899
1946
|
[Y.hidden]: "rdp-hidden ds:invisible",
|
|
@@ -1911,11 +1958,11 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
1911
1958
|
// (Tailwind emits same-specificity utilities in an unstable order otherwise).
|
|
1912
1959
|
[z.range_middle]: `rdp-range_middle ${Ae} 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]`,
|
|
1913
1960
|
[z.range_end]: `rdp-range_end ${Ae} 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]`
|
|
1914
|
-
},
|
|
1915
|
-
compareStart: `rdp-compare_start ${
|
|
1916
|
-
compareMiddle: `rdp-compare_middle ${
|
|
1917
|
-
compareEnd: `rdp-compare_end ${
|
|
1918
|
-
},
|
|
1961
|
+
}, He = "ds:bg-[var(--calendar-compare-fill)] ds:border-b-2 ds:border-dashed ds:border-b-[var(--calendar-compare-edge)]", zs = {
|
|
1962
|
+
compareStart: `rdp-compare_start ${He} ds:rounded-s-[var(--radius-sm)]`,
|
|
1963
|
+
compareMiddle: `rdp-compare_middle ${He}`,
|
|
1964
|
+
compareEnd: `rdp-compare_end ${He} ds:rounded-e-[var(--radius-sm)]`
|
|
1965
|
+
}, Ps = ne(
|
|
1919
1966
|
[
|
|
1920
1967
|
"ds:relative ds:flex ds:items-center ds:w-full",
|
|
1921
1968
|
"ds:border ds:text-foreground",
|
|
@@ -1963,7 +2010,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
1963
2010
|
chrome: "input"
|
|
1964
2011
|
}
|
|
1965
2012
|
}
|
|
1966
|
-
),
|
|
2013
|
+
), As = ne(
|
|
1967
2014
|
[
|
|
1968
2015
|
"ds:w-full ds:min-w-0 ds:rounded-[var(--radius-sm)] ds:border ds:bg-input",
|
|
1969
2016
|
"ds:ps-[var(--spacing-sm)] ds:pe-[var(--spacing-sm)] ds:py-[var(--spacing-xs)]",
|
|
@@ -1983,7 +2030,7 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
1983
2030
|
},
|
|
1984
2031
|
defaultVariants: { state: "default" }
|
|
1985
2032
|
}
|
|
1986
|
-
),
|
|
2033
|
+
), Hs = ne(
|
|
1987
2034
|
[
|
|
1988
2035
|
"ds:inline-flex ds:items-center ds:justify-center ds:min-h-[var(--min-target-size)]",
|
|
1989
2036
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)] ds:rounded-[var(--radius-sm)]",
|
|
@@ -2002,9 +2049,9 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
2002
2049
|
},
|
|
2003
2050
|
defaultVariants: { intent: "ghost" }
|
|
2004
2051
|
}
|
|
2005
|
-
),
|
|
2052
|
+
), js = ne(
|
|
2006
2053
|
"ds:inline-flex ds:items-center ds:rounded-[var(--radius-sm)] ds:border ds:border-border ds:bg-input ds:p-[2px]"
|
|
2007
|
-
),
|
|
2054
|
+
), $s = ne(
|
|
2008
2055
|
[
|
|
2009
2056
|
"ds:inline-flex ds:items-center ds:justify-center ds:cursor-pointer",
|
|
2010
2057
|
// Meet the kit touch-target rule (44px base / 48px accessible), matching
|
|
@@ -2018,9 +2065,9 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
2018
2065
|
"ds:focus-visible:outline-[length:var(--focus-ring-width)] ds:focus-visible:outline-solid",
|
|
2019
2066
|
"ds:focus-visible:outline-ring ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]"
|
|
2020
2067
|
].join(" ")
|
|
2021
|
-
),
|
|
2068
|
+
), Gs = ne(
|
|
2022
2069
|
"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"
|
|
2023
|
-
),
|
|
2070
|
+
), qs = ne(
|
|
2024
2071
|
"ds:absolute ds:inset-y-0 ds:end-0 ds:flex ds:items-center ds:pointer-events-none ds:text-muted-foreground",
|
|
2025
2072
|
{
|
|
2026
2073
|
variants: {
|
|
@@ -2032,13 +2079,13 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
2032
2079
|
},
|
|
2033
2080
|
defaultVariants: { size: "md" }
|
|
2034
2081
|
}
|
|
2035
|
-
),
|
|
2082
|
+
), Rs = ne(
|
|
2036
2083
|
[
|
|
2037
2084
|
"ds:z-[var(--z-popover)] ds:rounded-[var(--radius-md)]",
|
|
2038
2085
|
"ds:border ds:border-border ds:bg-background ds:shadow-[var(--shadow-lg)]",
|
|
2039
2086
|
"ds:p-[var(--spacing-md)]"
|
|
2040
2087
|
].join(" ")
|
|
2041
|
-
),
|
|
2088
|
+
), Vs = ne(
|
|
2042
2089
|
[
|
|
2043
2090
|
// A flex row so an `active` preset can carry a trailing check icon and the
|
|
2044
2091
|
// label still fills the width and truncates rather than wrapping.
|
|
@@ -2067,31 +2114,32 @@ const Ae = "ds:bg-[var(--calendar-range-fill)]", gs = "ds:size-[var(--min-target
|
|
|
2067
2114
|
}
|
|
2068
2115
|
);
|
|
2069
2116
|
export {
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2117
|
+
Bs as C,
|
|
2118
|
+
Ys as D,
|
|
2119
|
+
mt as a,
|
|
2120
|
+
xs as b,
|
|
2121
|
+
Is as c,
|
|
2122
|
+
$n as d,
|
|
2123
|
+
qs as e,
|
|
2124
|
+
Fs as f,
|
|
2125
|
+
Es as g,
|
|
2126
|
+
Rs as h,
|
|
2127
|
+
Gn as i,
|
|
2128
|
+
_n as j,
|
|
2129
|
+
xn as k,
|
|
2130
|
+
vt as l,
|
|
2131
|
+
En as m,
|
|
2132
|
+
$s as n,
|
|
2133
|
+
js as o,
|
|
2134
|
+
Vs as p,
|
|
2135
|
+
Gs as q,
|
|
2136
|
+
As as r,
|
|
2137
|
+
Bn as s,
|
|
2138
|
+
Ps as t,
|
|
2139
|
+
Ts as u,
|
|
2140
|
+
zs as v,
|
|
2141
|
+
Hs as w,
|
|
2142
|
+
yt as x,
|
|
2143
|
+
qn as y
|
|
2096
2144
|
};
|
|
2097
|
-
//# sourceMappingURL=date-picker-variants-
|
|
2145
|
+
//# sourceMappingURL=date-picker-variants-B3AFKDSu.js.map
|