@alfadocs/ui-kit 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks/{accordion-B6fyINUk.js → accordion-BEnrZmAn.js} +34 -32
- package/dist/_chunks/accordion.agent-BTjeO1Sx.js +52 -0
- package/dist/_chunks/{agenda-card-DIWDvWum.js → agenda-card-DwLIxgi7.js} +2 -1
- package/dist/_chunks/agenda-card.agent-B_R47-c9.js +22 -0
- package/dist/_chunks/agenda-tray-DUvengGQ.js +178 -0
- package/dist/_chunks/ai-prompt-input.agent-0NHYLTWD.js +476 -0
- package/dist/_chunks/{aspect-ratio-CxsdG8vk.js → aspect-ratio-DeSNzASA.js} +12 -12
- package/dist/_chunks/audio-recorder.agent--VKeykUp.js +458 -0
- package/dist/_chunks/autocomplete.agent-Dh7KioS6.js +432 -0
- package/dist/_chunks/{balance-cell-renderer-BWm3knY9.js → balance-cell-renderer-5CA7zpAi.js} +3 -3
- package/dist/_chunks/breadcrumb.agent-GM2hAKFX.js +371 -0
- package/dist/_chunks/{chart.agent-BdS-_8MO.js → chart.agent-_pRYS17d.js} +112 -105
- package/dist/_chunks/{chat-container-Cm3SlR2p.js → chat-container-Dl0Kfy5a.js} +33 -32
- package/dist/_chunks/{chat-container.agent-Dhw9xCJt.js → chat-container.agent-CM4WModE.js} +9 -4
- package/dist/_chunks/{chat-input-DreOPP8A.js → chat-input-C_tMQv92.js} +108 -82
- package/dist/_chunks/chat-input.agent-Bsz3ckGa.js +69 -0
- package/dist/_chunks/checkbox-CtPM6Rup.js +196 -0
- package/dist/_chunks/checkbox-group-BTdEB6Yo.js +208 -0
- package/dist/_chunks/collapsible.agent-DkS1jVyn.js +149 -0
- package/dist/_chunks/{color-picker-e9PmpaGH.js → color-picker-94qcBZqZ.js} +234 -184
- package/dist/_chunks/combobox.agent-CAvUkkIe.js +410 -0
- package/dist/_chunks/{command-palette.agent-js2rxgeR.js → command-palette.agent-HatEt_EM.js} +161 -121
- package/dist/_chunks/date-picker-BqPTn7bO.js +1813 -0
- package/dist/_chunks/date-range-picker-B2hGsffw.js +274 -0
- package/dist/_chunks/date-time-picker-Bzt0S8yO.js +293 -0
- package/dist/_chunks/dialog.agent-Daf1TTko.js +179 -0
- package/dist/_chunks/{dropdown-menu-Cw3EyPZv.js → dropdown-menu-C7AZipNz.js} +75 -71
- package/dist/_chunks/dropdown-menu.agent-BcxIKOjK.js +43 -0
- package/dist/_chunks/{file-upload.agent-B9AN82LA.js → file-upload.agent-DJaH2dHg.js} +275 -243
- package/dist/_chunks/freemium-paywall.agent-_nQqLyRF.js +260 -0
- package/dist/_chunks/{leo-sidebar-nbHib2D-.js → leo-sidebar-BwINPdix.js} +6 -6
- package/dist/_chunks/link-QheANk74.js +121 -0
- package/dist/_chunks/list.agent-D0iWt4VI.js +420 -0
- package/dist/_chunks/{message-card-qAp2-WQK.js → message-card-qhoGv947.js} +2 -1
- package/dist/_chunks/message-card.agent-4IeIgrnJ.js +22 -0
- package/dist/_chunks/message-tray-xHUCra-Y.js +419 -0
- package/dist/_chunks/{multi-select.agent-CNsyW3n9.js → multi-select.agent-Do6CeQUT.js} +239 -179
- package/dist/_chunks/navigation-menu.agent-D69ND6Qq.js +266 -0
- package/dist/_chunks/{notification-card-BF2_veHy.js → notification-card-CsVEYJE-.js} +13 -12
- package/dist/_chunks/notification-card.agent-Rqt3ofk9.js +22 -0
- package/dist/_chunks/notification-tray-DTXMq42J.js +444 -0
- package/dist/_chunks/number-input-fvGmnRy9.js +333 -0
- package/dist/_chunks/otp-input-EglXOUue.js +257 -0
- package/dist/_chunks/pagination.agent-BkZQl45y.js +422 -0
- package/dist/_chunks/password-input-D6kuYXmr.js +304 -0
- package/dist/_chunks/{patient-shell-7cXqIMFg.js → patient-shell-BRmrrUUW.js} +3 -3
- package/dist/_chunks/{payment-form-hcl-gGrp.js → payment-form-BWaXas8z.js} +120 -118
- package/dist/_chunks/{payment-form.agent-BkEnRerR.js → payment-form.agent-kuIfodCj.js} +7 -2
- package/dist/_chunks/{pdf-viewer.agent-CfIHhcHx.js → pdf-viewer.agent-BaGEDheA.js} +358 -351
- package/dist/_chunks/phone-input-C8Op4sEc.js +513 -0
- package/dist/_chunks/popover-kFN8s84V.js +229 -0
- package/dist/_chunks/popover.agent-K_d1cfbj.js +39 -0
- package/dist/_chunks/privacy-lock.agent-C1i1-T58.js +185 -0
- package/dist/_chunks/progress-wNsqkw8I.js +253 -0
- package/dist/_chunks/progress.agent-C68rDOXL.js +27 -0
- package/dist/_chunks/{radio-cs8N1wJi.js → radio-DvF59ThA.js} +14 -13
- package/dist/_chunks/radio-group-Cz1a4QCA.js +152 -0
- package/dist/_chunks/recaptcha-widget.agent-BGHpU5zD.js +183 -0
- package/dist/_chunks/resizable.agent-CMwZzvsi.js +456 -0
- package/dist/_chunks/{rich-text-editor.agent-COSb5_2D.js → rich-text-editor.agent-DnE125Tz.js} +221 -214
- package/dist/_chunks/search-bar.agent-DxFAxctc.js +562 -0
- package/dist/_chunks/search-input-Xw3cdWXW.js +227 -0
- package/dist/_chunks/search-input.agent-CfZvViOd.js +69 -0
- package/dist/_chunks/select-DY1Cb2Tg.js +410 -0
- package/dist/_chunks/{sheet-BhNpLHc9.js → sheet-B9kH9pcI.js} +55 -54
- package/dist/_chunks/sheet.agent-QAyTOxgk.js +46 -0
- package/dist/_chunks/{sidebar-OVzwN3jE.js → sidebar-CHF5xr_P.js} +188 -185
- package/dist/_chunks/sidebar.agent-C9TM_ZDZ.js +49 -0
- package/dist/_chunks/{signature-capture.agent-C38VPXxg.js → signature-capture.agent-BpeDwFht.js} +127 -120
- package/dist/_chunks/slider-CcsQTZTA.js +322 -0
- package/dist/_chunks/sparkline.agent-56Sj7nOP.js +245 -0
- package/dist/_chunks/stepper-accordion.agent-ckKYZCIP.js +322 -0
- package/dist/_chunks/stepper-calendar.agent-9iT3ClIB.js +646 -0
- package/dist/_chunks/stepper-progress-Bmen-YXB.js +149 -0
- package/dist/_chunks/stepper-progress.agent-q9InWca4.js +61 -0
- package/dist/_chunks/suggestion-chip-DhFrkRPj.js +169 -0
- package/dist/_chunks/suggestion-chip.agent-6sNWFj7m.js +46 -0
- package/dist/_chunks/switch-BYEH8I53.js +196 -0
- package/dist/_chunks/{tabs.agent-BpbVA-Zh.js → tabs.agent-h7NvsTR1.js} +146 -123
- package/dist/_chunks/{task-card-yW7tKlG4.js → task-card-CY5ztNkU.js} +2 -1
- package/dist/_chunks/task-card.agent-CUPKYd7w.js +22 -0
- package/dist/_chunks/task-tray-CCoUdorl.js +194 -0
- package/dist/_chunks/text-area-C_M8wliK.js +239 -0
- package/dist/_chunks/text-input-BX39e6T6.js +272 -0
- package/dist/_chunks/theme-toggle.agent-btmXTWdW.js +394 -0
- package/dist/_chunks/time-picker-B8AMIrX7.js +410 -0
- package/dist/_chunks/timeline.agent-CRPza9wc.js +279 -0
- package/dist/_chunks/{toast-lOhJDKOH.js → toast.agent-BjEGuq1Z.js} +403 -342
- package/dist/_chunks/{tooth-scheme.agent-BlDyu-Gx.js → tooth-scheme.agent-CWrQBjJM.js} +218 -211
- package/dist/_chunks/transcript-panel.agent-BXEYP6w-.js +337 -0
- package/dist/_chunks/{workflow-map-XeqHDFvp.js → workflow-map-D2A7rTEG.js} +465 -368
- package/dist/agent-catalog.json +2929 -268
- package/dist/components/accordion/accordion.agent.d.ts +2 -1
- package/dist/components/accordion/accordion.d.ts +6 -0
- package/dist/components/accordion/index.js +2 -2
- package/dist/components/agenda-card/agenda-card.agent.d.ts +3 -0
- package/dist/components/agenda-card/index.d.ts +1 -0
- package/dist/components/agenda-card/index.js +3 -1
- package/dist/components/agenda-tray/agenda-tray.agent.d.ts +4 -0
- package/dist/components/agenda-tray/agenda-tray.d.ts +19 -2
- package/dist/components/agenda-tray/index.d.ts +2 -1
- package/dist/components/agenda-tray/index.js +3 -2
- package/dist/components/ai-prompt-input/ai-prompt-input.agent.d.ts +4 -0
- package/dist/components/ai-prompt-input/ai-prompt-input.d.ts +18 -1
- package/dist/components/ai-prompt-input/index.d.ts +2 -1
- package/dist/components/ai-prompt-input/index.js +3 -2
- package/dist/components/aspect-ratio/index.js +1 -1
- package/dist/components/audio-recorder/audio-recorder.agent.d.ts +4 -0
- package/dist/components/audio-recorder/audio-recorder.d.ts +10 -1
- package/dist/components/audio-recorder/index.d.ts +2 -1
- package/dist/components/audio-recorder/index.js +3 -2
- package/dist/components/autocomplete/autocomplete.agent.d.ts +2 -1
- package/dist/components/autocomplete/autocomplete.d.ts +10 -0
- package/dist/components/autocomplete/index.js +1 -1
- package/dist/components/breadcrumb/breadcrumb.agent.d.ts +8 -0
- package/dist/components/breadcrumb/breadcrumb.d.ts +21 -2
- package/dist/components/breadcrumb/index.d.ts +2 -1
- package/dist/components/breadcrumb/index.js +5 -4
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/chart/chart.d.ts +2 -0
- package/dist/components/chart/index.js +1 -1
- package/dist/components/chat-container/chat-container.d.ts +3 -1
- package/dist/components/chat-container/index.js +2 -2
- package/dist/components/chat-input/chat-input.agent.d.ts +4 -0
- package/dist/components/chat-input/chat-input.d.ts +10 -1
- package/dist/components/chat-input/index.d.ts +2 -1
- package/dist/components/chat-input/index.js +4 -2
- package/dist/components/checkbox/checkbox.agent.d.ts +4 -0
- package/dist/components/checkbox/checkbox.d.ts +6 -0
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/checkbox-group/checkbox-group.agent.d.ts +4 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +8 -0
- package/dist/components/checkbox-group/index.js +1 -1
- package/dist/components/collapsible/collapsible.agent.d.ts +4 -0
- package/dist/components/collapsible/collapsible.d.ts +8 -1
- package/dist/components/collapsible/index.d.ts +2 -1
- package/dist/components/collapsible/index.js +4 -3
- package/dist/components/color-picker/color-picker.agent.d.ts +4 -0
- package/dist/components/color-picker/color-picker.d.ts +5 -0
- package/dist/components/color-picker/index.js +1 -1
- package/dist/components/combobox/combobox.agent.d.ts +2 -1
- package/dist/components/combobox/combobox.d.ts +10 -0
- package/dist/components/combobox/index.js +1 -1
- package/dist/components/command-palette/command-palette.agent.d.ts +2 -1
- package/dist/components/command-palette/command-palette.d.ts +7 -0
- package/dist/components/command-palette/index.js +1 -1
- package/dist/components/data-table/index.js +1 -1
- package/dist/components/date-picker/date-picker.agent.d.ts +4 -0
- package/dist/components/date-picker/date-picker.d.ts +16 -1
- package/dist/components/date-picker/index.d.ts +2 -1
- package/dist/components/date-picker/index.js +3 -2
- package/dist/components/date-range-picker/date-range-picker.agent.d.ts +4 -0
- package/dist/components/date-range-picker/date-range-picker.d.ts +16 -1
- package/dist/components/date-range-picker/index.d.ts +2 -1
- package/dist/components/date-range-picker/index.js +3 -2
- package/dist/components/date-time-picker/date-time-picker.agent.d.ts +4 -0
- package/dist/components/date-time-picker/date-time-picker.d.ts +16 -1
- package/dist/components/date-time-picker/index.d.ts +2 -1
- package/dist/components/date-time-picker/index.js +3 -2
- package/dist/components/dialog/dialog.agent.d.ts +5 -6
- package/dist/components/dialog/dialog.d.ts +11 -2
- package/dist/components/dialog/index.js +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.agent.d.ts +2 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +10 -2
- package/dist/components/dropdown-menu/index.js +2 -2
- package/dist/components/file-upload/file-upload.agent.d.ts +2 -1
- package/dist/components/file-upload/file-upload.d.ts +12 -0
- package/dist/components/file-upload/index.js +1 -1
- package/dist/components/freemium-paywall/freemium-paywall.agent.d.ts +4 -0
- package/dist/components/freemium-paywall/freemium-paywall.d.ts +8 -1
- package/dist/components/freemium-paywall/index.d.ts +2 -1
- package/dist/components/freemium-paywall/index.js +3 -2
- package/dist/components/index.d.ts +2 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/index.js +5 -0
- package/dist/components/link/link.d.ts +39 -0
- package/dist/components/list/index.d.ts +2 -1
- package/dist/components/list/index.js +3 -2
- package/dist/components/list/list.agent.d.ts +4 -0
- package/dist/components/list/list.d.ts +8 -2
- package/dist/components/message-card/index.d.ts +1 -0
- package/dist/components/message-card/index.js +5 -3
- package/dist/components/message-card/message-card.agent.d.ts +3 -0
- package/dist/components/message-tray/index.d.ts +2 -1
- package/dist/components/message-tray/index.js +3 -2
- package/dist/components/message-tray/message-tray.agent.d.ts +4 -0
- package/dist/components/message-tray/message-tray.d.ts +27 -2
- package/dist/components/multi-select/index.js +1 -1
- package/dist/components/multi-select/multi-select.agent.d.ts +2 -1
- package/dist/components/multi-select/multi-select.d.ts +10 -0
- package/dist/components/navigation-menu/index.d.ts +2 -1
- package/dist/components/navigation-menu/index.js +7 -6
- package/dist/components/navigation-menu/navigation-menu.agent.d.ts +4 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +28 -2
- package/dist/components/notification-card/index.d.ts +1 -0
- package/dist/components/notification-card/index.js +5 -3
- package/dist/components/notification-card/notification-card.agent.d.ts +3 -0
- package/dist/components/notification-tray/index.d.ts +2 -1
- package/dist/components/notification-tray/index.js +3 -2
- package/dist/components/notification-tray/notification-tray.agent.d.ts +4 -0
- package/dist/components/notification-tray/notification-tray.d.ts +27 -2
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/number-input/number-input.agent.d.ts +4 -0
- package/dist/components/number-input/number-input.d.ts +7 -0
- package/dist/components/otp-input/index.js +1 -1
- package/dist/components/otp-input/otp-input.agent.d.ts +4 -0
- package/dist/components/otp-input/otp-input.d.ts +10 -0
- package/dist/components/pagination/index.js +1 -1
- package/dist/components/pagination/pagination.agent.d.ts +2 -1
- package/dist/components/pagination/pagination.d.ts +7 -0
- package/dist/components/password-input/index.js +1 -1
- package/dist/components/password-input/password-input.agent.d.ts +4 -0
- package/dist/components/password-input/password-input.d.ts +9 -0
- package/dist/components/payment-form/index.js +2 -2
- package/dist/components/payment-form/payment-form.d.ts +2 -0
- package/dist/components/pdf-viewer/index.js +1 -1
- package/dist/components/pdf-viewer/pdf-viewer.d.ts +2 -0
- package/dist/components/phone-input/index.js +1 -1
- package/dist/components/phone-input/phone-input.agent.d.ts +4 -0
- package/dist/components/phone-input/phone-input.d.ts +7 -0
- package/dist/components/popover/index.js +2 -2
- package/dist/components/popover/popover.agent.d.ts +2 -1
- package/dist/components/popover/popover.d.ts +8 -1
- package/dist/components/privacy-lock/index.d.ts +2 -1
- package/dist/components/privacy-lock/index.js +3 -2
- package/dist/components/privacy-lock/privacy-lock.agent.d.ts +4 -0
- package/dist/components/privacy-lock/privacy-lock.d.ts +7 -1
- package/dist/components/progress/index.js +2 -2
- package/dist/components/radio/index.js +1 -1
- package/dist/components/radio-group/index.js +2 -2
- package/dist/components/radio-group/radio-group.agent.d.ts +4 -0
- package/dist/components/radio-group/radio-group.d.ts +5 -0
- package/dist/components/recaptcha-widget/index.d.ts +3 -0
- package/dist/components/recaptcha-widget/index.js +6 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.agent.d.ts +4 -0
- package/dist/components/recaptcha-widget/recaptcha-widget.d.ts +56 -0
- package/dist/components/resizable/index.js +1 -1
- package/dist/components/resizable/resizable.agent.d.ts +2 -1
- package/dist/components/resizable/resizable.d.ts +6 -0
- package/dist/components/rich-text-editor/index.js +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +2 -0
- package/dist/components/search-bar/index.d.ts +2 -1
- package/dist/components/search-bar/index.js +3 -2
- package/dist/components/search-bar/search-bar.agent.d.ts +4 -0
- package/dist/components/search-bar/search-bar.d.ts +27 -1
- package/dist/components/search-input/index.d.ts +2 -1
- package/dist/components/search-input/index.js +4 -2
- package/dist/components/search-input/search-input.agent.d.ts +4 -0
- package/dist/components/search-input/search-input.d.ts +27 -0
- package/dist/components/select/index.js +1 -1
- package/dist/components/select/select.agent.d.ts +4 -0
- package/dist/components/select/select.d.ts +9 -0
- package/dist/components/sheet/index.js +2 -2
- package/dist/components/sheet/sheet.agent.d.ts +2 -1
- package/dist/components/sheet/sheet.d.ts +11 -2
- package/dist/components/sidebar/index.js +2 -2
- package/dist/components/sidebar/sidebar.agent.d.ts +2 -1
- package/dist/components/sidebar/sidebar.d.ts +6 -0
- package/dist/components/signature-capture/index.js +1 -1
- package/dist/components/signature-capture/signature-capture.d.ts +2 -0
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/slider.agent.d.ts +4 -0
- package/dist/components/slider/slider.d.ts +5 -0
- package/dist/components/sparkline/index.js +1 -1
- package/dist/components/stepper-accordion/index.d.ts +2 -1
- package/dist/components/stepper-accordion/index.js +3 -2
- package/dist/components/stepper-accordion/stepper-accordion.agent.d.ts +4 -0
- package/dist/components/stepper-accordion/stepper-accordion.d.ts +19 -1
- package/dist/components/stepper-calendar/index.d.ts +2 -1
- package/dist/components/stepper-calendar/index.js +3 -2
- package/dist/components/stepper-calendar/stepper-calendar.agent.d.ts +4 -0
- package/dist/components/stepper-calendar/stepper-calendar.d.ts +19 -1
- package/dist/components/stepper-progress/index.d.ts +2 -1
- package/dist/components/stepper-progress/index.js +4 -2
- package/dist/components/stepper-progress/stepper-progress.agent.d.ts +4 -0
- package/dist/components/stepper-progress/stepper-progress.d.ts +26 -1
- package/dist/components/suggestion-chip/index.d.ts +2 -1
- package/dist/components/suggestion-chip/index.js +5 -3
- package/dist/components/suggestion-chip/suggestion-chip.agent.d.ts +4 -0
- package/dist/components/suggestion-chip/suggestion-chip.d.ts +7 -1
- package/dist/components/switch/index.js +1 -1
- package/dist/components/switch/switch.agent.d.ts +4 -0
- package/dist/components/switch/switch.d.ts +6 -0
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tabs.agent.d.ts +2 -1
- package/dist/components/tabs/tabs.d.ts +4 -0
- package/dist/components/task-card/index.d.ts +1 -0
- package/dist/components/task-card/index.js +5 -3
- package/dist/components/task-card/task-card.agent.d.ts +3 -0
- package/dist/components/task-tray/index.d.ts +2 -1
- package/dist/components/task-tray/index.js +3 -2
- package/dist/components/task-tray/task-tray.agent.d.ts +4 -0
- package/dist/components/task-tray/task-tray.d.ts +25 -2
- package/dist/components/text-area/index.js +1 -1
- package/dist/components/text-area/text-area.agent.d.ts +4 -0
- package/dist/components/text-area/text-area.d.ts +7 -0
- package/dist/components/text-input/index.js +1 -1
- package/dist/components/text-input/text-input.agent.d.ts +4 -0
- package/dist/components/text-input/text-input.d.ts +10 -0
- package/dist/components/theme-toggle/index.d.ts +2 -1
- package/dist/components/theme-toggle/index.js +3 -2
- package/dist/components/theme-toggle/theme-toggle.agent.d.ts +4 -0
- package/dist/components/theme-toggle/theme-toggle.d.ts +9 -2
- package/dist/components/time-picker/index.d.ts +2 -1
- package/dist/components/time-picker/index.js +3 -2
- package/dist/components/time-picker/time-picker.agent.d.ts +4 -0
- package/dist/components/time-picker/time-picker.d.ts +16 -1
- package/dist/components/timeline/index.d.ts +2 -1
- package/dist/components/timeline/index.js +3 -2
- package/dist/components/timeline/timeline.agent.d.ts +4 -0
- package/dist/components/timeline/timeline.d.ts +8 -1
- package/dist/components/toast/index.d.ts +3 -2
- package/dist/components/toast/index.js +7 -5
- package/dist/components/toast/toast.agent.d.ts +4 -0
- package/dist/components/toast/toast.d.ts +8 -0
- package/dist/components/tooth-scheme/index.js +1 -1
- package/dist/components/tooth-scheme/tooth-scheme.d.ts +2 -0
- package/dist/components/transcript-panel/index.d.ts +2 -1
- package/dist/components/transcript-panel/index.js +3 -2
- package/dist/components/transcript-panel/transcript-panel.agent.d.ts +4 -0
- package/dist/components/transcript-panel/transcript-panel.d.ts +10 -1
- package/dist/components/workflow/index.d.ts +2 -1
- package/dist/components/workflow/index.js +10 -7
- package/dist/components/workflow/workflow-editor.d.ts +7 -1
- package/dist/components/workflow/workflow-map.d.ts +2 -0
- package/dist/components/workflow/workflow.agent.d.ts +6 -0
- package/dist/i18n/config.js +24 -11
- package/dist/i18n/resources.d.ts +7 -0
- package/dist/index.js +471 -423
- package/dist/locales/en.json +7 -0
- package/dist/patterns/leo-assistant/index.js +1 -1
- package/dist/patterns/patient-shell/index.js +1 -1
- package/dist/tokens.css +1 -1
- package/package.json +18 -2
- package/dist/_chunks/accordion.agent-Cz-yglRa.js +0 -17
- package/dist/_chunks/agenda-tray-BqQZwiHc.js +0 -120
- package/dist/_chunks/ai-prompt-input-CI27KmZ1.js +0 -380
- package/dist/_chunks/audio-recorder-B-8SKgKn.js +0 -376
- package/dist/_chunks/autocomplete.agent-DqOy0_1P.js +0 -372
- package/dist/_chunks/breadcrumb-D6xpsP7n.js +0 -293
- package/dist/_chunks/checkbox-DNK4qS2_.js +0 -116
- package/dist/_chunks/checkbox-group-CWpGZEF6.js +0 -146
- package/dist/_chunks/collapsible-D4LOdLxp.js +0 -67
- package/dist/_chunks/combobox.agent-ByobCLJ_.js +0 -350
- package/dist/_chunks/date-picker-DYXNsWmM.js +0 -1726
- package/dist/_chunks/date-range-picker-BcNDJI7m.js +0 -183
- package/dist/_chunks/date-time-picker-CmGiTU__.js +0 -202
- package/dist/_chunks/dialog.agent-DEG_fVzG.js +0 -147
- package/dist/_chunks/dropdown-menu.agent-Cry4Nmes.js +0 -17
- package/dist/_chunks/freemium-paywall-CkefGLM_.js +0 -198
- package/dist/_chunks/list-B1ozIjQe.js +0 -359
- package/dist/_chunks/message-tray-VaLpQU5t.js +0 -303
- package/dist/_chunks/navigation-menu-EVFau1O2.js +0 -180
- package/dist/_chunks/notification-tray-B7U5YZYg.js +0 -328
- package/dist/_chunks/number-input-DjpT_RXJ.js +0 -249
- package/dist/_chunks/otp-input-De5_Ih7B.js +0 -189
- package/dist/_chunks/pagination.agent-oEaqmtx5.js +0 -380
- package/dist/_chunks/password-input-DJDVznWH.js +0 -193
- package/dist/_chunks/phone-input-DE_39q65.js +0 -428
- package/dist/_chunks/popover-C3CTUsqh.js +0 -227
- package/dist/_chunks/popover.agent-C0qOx9WT.js +0 -13
- package/dist/_chunks/privacy-lock-CQpgkLec.js +0 -132
- package/dist/_chunks/progress-B4Of_pzz.js +0 -252
- package/dist/_chunks/progress.agent-CXkHURjX.js +0 -22
- package/dist/_chunks/radio-group-BIUbpWml.js +0 -89
- package/dist/_chunks/resizable.agent-DBpPGNdy.js +0 -435
- package/dist/_chunks/search-bar-fcGqDFW3.js +0 -397
- package/dist/_chunks/search-input-BVMCONyN.js +0 -197
- package/dist/_chunks/select-IY_JQa-F.js +0 -321
- package/dist/_chunks/sheet.agent-DwQlBqK9.js +0 -13
- package/dist/_chunks/sidebar.agent-B0fnH9CC.js +0 -17
- package/dist/_chunks/slider-DjyRt3Mp.js +0 -274
- package/dist/_chunks/sparkline.agent-C_xp3NRB.js +0 -238
- package/dist/_chunks/stepper-accordion-CGog0JSF.js +0 -233
- package/dist/_chunks/stepper-calendar-_fLOAjus.js +0 -570
- package/dist/_chunks/stepper-progress-rE7tn7WY.js +0 -129
- package/dist/_chunks/suggestion-chip-BNJ2M8Os.js +0 -158
- package/dist/_chunks/switch-aN2EYxHh.js +0 -138
- package/dist/_chunks/task-tray-BzahI5FQ.js +0 -100
- package/dist/_chunks/text-area-DmKSd2DG.js +0 -152
- package/dist/_chunks/text-input-CRHvl5zk.js +0 -188
- package/dist/_chunks/theme-toggle-BHiMMEQN.js +0 -329
- package/dist/_chunks/time-picker-D-EueWUG.js +0 -322
- package/dist/_chunks/timeline-RgAIzpMd.js +0 -220
- package/dist/_chunks/transcript-panel-CNbVGG9L.js +0 -266
|
@@ -0,0 +1,1813 @@
|
|
|
1
|
+
var Pe = Object.defineProperty;
|
|
2
|
+
var ve = (n, s, e) => s in n ? Pe(n, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[s] = e;
|
|
3
|
+
var i = (n, s, e) => ve(n, typeof s != "symbol" ? s + "" : s, e);
|
|
4
|
+
import { jsx as D, jsxs as S } from "react/jsx-runtime";
|
|
5
|
+
import { forwardRef as Me, useState as G, useRef as Oe, useEffect as _e, useCallback as se, useMemo as Ie, useImperativeHandle as Ye } from "react";
|
|
6
|
+
import { useTranslation as Ee } from "react-i18next";
|
|
7
|
+
import * as Z from "@radix-ui/react-popover";
|
|
8
|
+
import { u as He } from "./form-field-context-94LwgYTQ.js";
|
|
9
|
+
import { g as qe, k as Le, b as Ne, i as Ce, j as Re, t as Qe, C as We, d as Ae, p as Fe, D as Be, f as Ge, h as Ve } from "./react-day-picker-C04L_28V.js";
|
|
10
|
+
import { g as ce, e as Xe, b as ee, h as ue, j as Ke, k as ze, c as le, l as de, m as Ze, n as ae, o as je, w as ie, p as $e, f as oe, q as Ue } from "./isSameMonth-5wNF2f4I.js";
|
|
11
|
+
import { u as Je } from "./registry-C9nwlNyL.js";
|
|
12
|
+
import { t as H, c as _, m as Se, a as et, e as tt } from "./isSameDay-ecuM8PBB.js";
|
|
13
|
+
function rt() {
|
|
14
|
+
return Object.assign({}, ce());
|
|
15
|
+
}
|
|
16
|
+
function nt(n, s) {
|
|
17
|
+
const e = H(n, s == null ? void 0 : s.in).getDay();
|
|
18
|
+
return e === 0 ? 7 : e;
|
|
19
|
+
}
|
|
20
|
+
function st(n, s) {
|
|
21
|
+
const e = at(s) ? new s(0) : _(s, 0);
|
|
22
|
+
return e.setFullYear(n.getFullYear(), n.getMonth(), n.getDate()), e.setHours(
|
|
23
|
+
n.getHours(),
|
|
24
|
+
n.getMinutes(),
|
|
25
|
+
n.getSeconds(),
|
|
26
|
+
n.getMilliseconds()
|
|
27
|
+
), e;
|
|
28
|
+
}
|
|
29
|
+
function at(n) {
|
|
30
|
+
var s;
|
|
31
|
+
return typeof n == "function" && ((s = n.prototype) == null ? void 0 : s.constructor) === n;
|
|
32
|
+
}
|
|
33
|
+
const it = 10;
|
|
34
|
+
class fe {
|
|
35
|
+
constructor() {
|
|
36
|
+
i(this, "subPriority", 0);
|
|
37
|
+
}
|
|
38
|
+
validate(s, e) {
|
|
39
|
+
return !0;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
class ot extends fe {
|
|
43
|
+
constructor(s, e, t, r, a) {
|
|
44
|
+
super(), this.value = s, this.validateValue = e, this.setValue = t, this.priority = r, a && (this.subPriority = a);
|
|
45
|
+
}
|
|
46
|
+
validate(s, e) {
|
|
47
|
+
return this.validateValue(s, this.value, e);
|
|
48
|
+
}
|
|
49
|
+
set(s, e, t) {
|
|
50
|
+
return this.setValue(s, e, this.value, t);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
class ct extends fe {
|
|
54
|
+
constructor(e, t) {
|
|
55
|
+
super();
|
|
56
|
+
i(this, "priority", it);
|
|
57
|
+
i(this, "subPriority", -1);
|
|
58
|
+
this.context = e || ((r) => _(t, r));
|
|
59
|
+
}
|
|
60
|
+
set(e, t) {
|
|
61
|
+
return t.timestampIsSet ? e : _(e, st(e, this.context));
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
class u {
|
|
65
|
+
run(s, e, t, r) {
|
|
66
|
+
const a = this.parse(s, e, t, r);
|
|
67
|
+
return a ? {
|
|
68
|
+
setter: new ot(
|
|
69
|
+
a.value,
|
|
70
|
+
this.validate,
|
|
71
|
+
this.set,
|
|
72
|
+
this.priority,
|
|
73
|
+
this.subPriority
|
|
74
|
+
),
|
|
75
|
+
rest: a.rest
|
|
76
|
+
} : null;
|
|
77
|
+
}
|
|
78
|
+
validate(s, e, t) {
|
|
79
|
+
return !0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
class ut extends u {
|
|
83
|
+
constructor() {
|
|
84
|
+
super(...arguments);
|
|
85
|
+
i(this, "priority", 140);
|
|
86
|
+
i(this, "incompatibleTokens", ["R", "u", "t", "T"]);
|
|
87
|
+
}
|
|
88
|
+
parse(e, t, r) {
|
|
89
|
+
switch (t) {
|
|
90
|
+
// AD, BC
|
|
91
|
+
case "G":
|
|
92
|
+
case "GG":
|
|
93
|
+
case "GGG":
|
|
94
|
+
return r.era(e, { width: "abbreviated" }) || r.era(e, { width: "narrow" });
|
|
95
|
+
// A, B
|
|
96
|
+
case "GGGGG":
|
|
97
|
+
return r.era(e, { width: "narrow" });
|
|
98
|
+
// Anno Domini, Before Christ
|
|
99
|
+
case "GGGG":
|
|
100
|
+
default:
|
|
101
|
+
return r.era(e, { width: "wide" }) || r.era(e, { width: "abbreviated" }) || r.era(e, { width: "narrow" });
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
set(e, t, r) {
|
|
105
|
+
return t.era = r, e.setFullYear(r, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
const h = {
|
|
109
|
+
month: /^(1[0-2]|0?\d)/,
|
|
110
|
+
// 0 to 12
|
|
111
|
+
date: /^(3[0-1]|[0-2]?\d)/,
|
|
112
|
+
// 0 to 31
|
|
113
|
+
dayOfYear: /^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,
|
|
114
|
+
// 0 to 366
|
|
115
|
+
week: /^(5[0-3]|[0-4]?\d)/,
|
|
116
|
+
// 0 to 53
|
|
117
|
+
hour23h: /^(2[0-3]|[0-1]?\d)/,
|
|
118
|
+
// 0 to 23
|
|
119
|
+
hour24h: /^(2[0-4]|[0-1]?\d)/,
|
|
120
|
+
// 0 to 24
|
|
121
|
+
hour11h: /^(1[0-1]|0?\d)/,
|
|
122
|
+
// 0 to 11
|
|
123
|
+
hour12h: /^(1[0-2]|0?\d)/,
|
|
124
|
+
// 0 to 12
|
|
125
|
+
minute: /^[0-5]?\d/,
|
|
126
|
+
// 0 to 59
|
|
127
|
+
second: /^[0-5]?\d/,
|
|
128
|
+
// 0 to 59
|
|
129
|
+
singleDigit: /^\d/,
|
|
130
|
+
// 0 to 9
|
|
131
|
+
twoDigits: /^\d{1,2}/,
|
|
132
|
+
// 0 to 99
|
|
133
|
+
threeDigits: /^\d{1,3}/,
|
|
134
|
+
// 0 to 999
|
|
135
|
+
fourDigits: /^\d{1,4}/,
|
|
136
|
+
// 0 to 9999
|
|
137
|
+
anyDigitsSigned: /^-?\d+/,
|
|
138
|
+
singleDigitSigned: /^-?\d/,
|
|
139
|
+
// 0 to 9, -0 to -9
|
|
140
|
+
twoDigitsSigned: /^-?\d{1,2}/,
|
|
141
|
+
// 0 to 99, -0 to -99
|
|
142
|
+
threeDigitsSigned: /^-?\d{1,3}/,
|
|
143
|
+
// 0 to 999, -0 to -999
|
|
144
|
+
fourDigitsSigned: /^-?\d{1,4}/
|
|
145
|
+
// 0 to 9999, -0 to -9999
|
|
146
|
+
}, P = {
|
|
147
|
+
basicOptionalMinutes: /^([+-])(\d{2})(\d{2})?|Z/,
|
|
148
|
+
basic: /^([+-])(\d{2})(\d{2})|Z/,
|
|
149
|
+
basicOptionalSeconds: /^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,
|
|
150
|
+
extended: /^([+-])(\d{2}):(\d{2})|Z/,
|
|
151
|
+
extendedOptionalSeconds: /^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/
|
|
152
|
+
};
|
|
153
|
+
function y(n, s) {
|
|
154
|
+
return n && {
|
|
155
|
+
value: s(n.value),
|
|
156
|
+
rest: n.rest
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function f(n, s) {
|
|
160
|
+
const e = s.match(n);
|
|
161
|
+
return e ? {
|
|
162
|
+
value: parseInt(e[0], 10),
|
|
163
|
+
rest: s.slice(e[0].length)
|
|
164
|
+
} : null;
|
|
165
|
+
}
|
|
166
|
+
function v(n, s) {
|
|
167
|
+
const e = s.match(n);
|
|
168
|
+
if (!e)
|
|
169
|
+
return null;
|
|
170
|
+
if (e[0] === "Z")
|
|
171
|
+
return {
|
|
172
|
+
value: 0,
|
|
173
|
+
rest: s.slice(1)
|
|
174
|
+
};
|
|
175
|
+
const t = e[1] === "+" ? 1 : -1, r = e[2] ? parseInt(e[2], 10) : 0, a = e[3] ? parseInt(e[3], 10) : 0, o = e[5] ? parseInt(e[5], 10) : 0;
|
|
176
|
+
return {
|
|
177
|
+
value: t * (r * Se + a * et + o * tt),
|
|
178
|
+
rest: s.slice(e[0].length)
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
function we(n) {
|
|
182
|
+
return f(h.anyDigitsSigned, n);
|
|
183
|
+
}
|
|
184
|
+
function w(n, s) {
|
|
185
|
+
switch (n) {
|
|
186
|
+
case 1:
|
|
187
|
+
return f(h.singleDigit, s);
|
|
188
|
+
case 2:
|
|
189
|
+
return f(h.twoDigits, s);
|
|
190
|
+
case 3:
|
|
191
|
+
return f(h.threeDigits, s);
|
|
192
|
+
case 4:
|
|
193
|
+
return f(h.fourDigits, s);
|
|
194
|
+
default:
|
|
195
|
+
return f(new RegExp("^\\d{1," + n + "}"), s);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
function j(n, s) {
|
|
199
|
+
switch (n) {
|
|
200
|
+
case 1:
|
|
201
|
+
return f(h.singleDigitSigned, s);
|
|
202
|
+
case 2:
|
|
203
|
+
return f(h.twoDigitsSigned, s);
|
|
204
|
+
case 3:
|
|
205
|
+
return f(h.threeDigitsSigned, s);
|
|
206
|
+
case 4:
|
|
207
|
+
return f(h.fourDigitsSigned, s);
|
|
208
|
+
default:
|
|
209
|
+
return f(new RegExp("^-?\\d{1," + n + "}"), s);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function te(n) {
|
|
213
|
+
switch (n) {
|
|
214
|
+
case "morning":
|
|
215
|
+
return 4;
|
|
216
|
+
case "evening":
|
|
217
|
+
return 17;
|
|
218
|
+
case "pm":
|
|
219
|
+
case "noon":
|
|
220
|
+
case "afternoon":
|
|
221
|
+
return 12;
|
|
222
|
+
case "am":
|
|
223
|
+
case "midnight":
|
|
224
|
+
case "night":
|
|
225
|
+
default:
|
|
226
|
+
return 0;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function he(n, s) {
|
|
230
|
+
const e = s > 0, t = e ? s : 1 - s;
|
|
231
|
+
let r;
|
|
232
|
+
if (t <= 50)
|
|
233
|
+
r = n || 100;
|
|
234
|
+
else {
|
|
235
|
+
const a = t + 50, o = Math.trunc(a / 100) * 100, b = n >= a % 100;
|
|
236
|
+
r = n + o - (b ? 100 : 0);
|
|
237
|
+
}
|
|
238
|
+
return e ? r : 1 - r;
|
|
239
|
+
}
|
|
240
|
+
function ye(n) {
|
|
241
|
+
return n % 400 === 0 || n % 4 === 0 && n % 100 !== 0;
|
|
242
|
+
}
|
|
243
|
+
class lt extends u {
|
|
244
|
+
constructor() {
|
|
245
|
+
super(...arguments);
|
|
246
|
+
i(this, "priority", 130);
|
|
247
|
+
i(this, "incompatibleTokens", ["Y", "R", "u", "w", "I", "i", "e", "c", "t", "T"]);
|
|
248
|
+
}
|
|
249
|
+
parse(e, t, r) {
|
|
250
|
+
const a = (o) => ({
|
|
251
|
+
year: o,
|
|
252
|
+
isTwoDigitYear: t === "yy"
|
|
253
|
+
});
|
|
254
|
+
switch (t) {
|
|
255
|
+
case "y":
|
|
256
|
+
return y(w(4, e), a);
|
|
257
|
+
case "yo":
|
|
258
|
+
return y(
|
|
259
|
+
r.ordinalNumber(e, {
|
|
260
|
+
unit: "year"
|
|
261
|
+
}),
|
|
262
|
+
a
|
|
263
|
+
);
|
|
264
|
+
default:
|
|
265
|
+
return y(w(t.length, e), a);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
validate(e, t) {
|
|
269
|
+
return t.isTwoDigitYear || t.year > 0;
|
|
270
|
+
}
|
|
271
|
+
set(e, t, r) {
|
|
272
|
+
const a = e.getFullYear();
|
|
273
|
+
if (r.isTwoDigitYear) {
|
|
274
|
+
const b = he(
|
|
275
|
+
r.year,
|
|
276
|
+
a
|
|
277
|
+
);
|
|
278
|
+
return e.setFullYear(b, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
279
|
+
}
|
|
280
|
+
const o = !("era" in t) || t.era === 1 ? r.year : 1 - r.year;
|
|
281
|
+
return e.setFullYear(o, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
class dt extends u {
|
|
285
|
+
constructor() {
|
|
286
|
+
super(...arguments);
|
|
287
|
+
i(this, "priority", 130);
|
|
288
|
+
i(this, "incompatibleTokens", [
|
|
289
|
+
"y",
|
|
290
|
+
"R",
|
|
291
|
+
"u",
|
|
292
|
+
"Q",
|
|
293
|
+
"q",
|
|
294
|
+
"M",
|
|
295
|
+
"L",
|
|
296
|
+
"I",
|
|
297
|
+
"d",
|
|
298
|
+
"D",
|
|
299
|
+
"i",
|
|
300
|
+
"t",
|
|
301
|
+
"T"
|
|
302
|
+
]);
|
|
303
|
+
}
|
|
304
|
+
parse(e, t, r) {
|
|
305
|
+
const a = (o) => ({
|
|
306
|
+
year: o,
|
|
307
|
+
isTwoDigitYear: t === "YY"
|
|
308
|
+
});
|
|
309
|
+
switch (t) {
|
|
310
|
+
case "Y":
|
|
311
|
+
return y(w(4, e), a);
|
|
312
|
+
case "Yo":
|
|
313
|
+
return y(
|
|
314
|
+
r.ordinalNumber(e, {
|
|
315
|
+
unit: "year"
|
|
316
|
+
}),
|
|
317
|
+
a
|
|
318
|
+
);
|
|
319
|
+
default:
|
|
320
|
+
return y(w(t.length, e), a);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
validate(e, t) {
|
|
324
|
+
return t.isTwoDigitYear || t.year > 0;
|
|
325
|
+
}
|
|
326
|
+
set(e, t, r, a) {
|
|
327
|
+
const o = Xe(e, a);
|
|
328
|
+
if (r.isTwoDigitYear) {
|
|
329
|
+
const x = he(
|
|
330
|
+
r.year,
|
|
331
|
+
o
|
|
332
|
+
);
|
|
333
|
+
return e.setFullYear(
|
|
334
|
+
x,
|
|
335
|
+
0,
|
|
336
|
+
a.firstWeekContainsDate
|
|
337
|
+
), e.setHours(0, 0, 0, 0), ee(e, a);
|
|
338
|
+
}
|
|
339
|
+
const b = !("era" in t) || t.era === 1 ? r.year : 1 - r.year;
|
|
340
|
+
return e.setFullYear(b, 0, a.firstWeekContainsDate), e.setHours(0, 0, 0, 0), ee(e, a);
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
class ft extends u {
|
|
344
|
+
constructor() {
|
|
345
|
+
super(...arguments);
|
|
346
|
+
i(this, "priority", 130);
|
|
347
|
+
i(this, "incompatibleTokens", [
|
|
348
|
+
"G",
|
|
349
|
+
"y",
|
|
350
|
+
"Y",
|
|
351
|
+
"u",
|
|
352
|
+
"Q",
|
|
353
|
+
"q",
|
|
354
|
+
"M",
|
|
355
|
+
"L",
|
|
356
|
+
"w",
|
|
357
|
+
"d",
|
|
358
|
+
"D",
|
|
359
|
+
"e",
|
|
360
|
+
"c",
|
|
361
|
+
"t",
|
|
362
|
+
"T"
|
|
363
|
+
]);
|
|
364
|
+
}
|
|
365
|
+
parse(e, t) {
|
|
366
|
+
return j(t === "R" ? 4 : t.length, e);
|
|
367
|
+
}
|
|
368
|
+
set(e, t, r) {
|
|
369
|
+
const a = _(e, 0);
|
|
370
|
+
return a.setFullYear(r, 0, 4), a.setHours(0, 0, 0, 0), ue(a);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
class wt extends u {
|
|
374
|
+
constructor() {
|
|
375
|
+
super(...arguments);
|
|
376
|
+
i(this, "priority", 130);
|
|
377
|
+
i(this, "incompatibleTokens", ["G", "y", "Y", "R", "w", "I", "i", "e", "c", "t", "T"]);
|
|
378
|
+
}
|
|
379
|
+
parse(e, t) {
|
|
380
|
+
return j(t === "u" ? 4 : t.length, e);
|
|
381
|
+
}
|
|
382
|
+
set(e, t, r) {
|
|
383
|
+
return e.setFullYear(r, 0, 1), e.setHours(0, 0, 0, 0), e;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
class ht extends u {
|
|
387
|
+
constructor() {
|
|
388
|
+
super(...arguments);
|
|
389
|
+
i(this, "priority", 120);
|
|
390
|
+
i(this, "incompatibleTokens", [
|
|
391
|
+
"Y",
|
|
392
|
+
"R",
|
|
393
|
+
"q",
|
|
394
|
+
"M",
|
|
395
|
+
"L",
|
|
396
|
+
"w",
|
|
397
|
+
"I",
|
|
398
|
+
"d",
|
|
399
|
+
"D",
|
|
400
|
+
"i",
|
|
401
|
+
"e",
|
|
402
|
+
"c",
|
|
403
|
+
"t",
|
|
404
|
+
"T"
|
|
405
|
+
]);
|
|
406
|
+
}
|
|
407
|
+
parse(e, t, r) {
|
|
408
|
+
switch (t) {
|
|
409
|
+
// 1, 2, 3, 4
|
|
410
|
+
case "Q":
|
|
411
|
+
case "QQ":
|
|
412
|
+
return w(t.length, e);
|
|
413
|
+
// 1st, 2nd, 3rd, 4th
|
|
414
|
+
case "Qo":
|
|
415
|
+
return r.ordinalNumber(e, { unit: "quarter" });
|
|
416
|
+
// Q1, Q2, Q3, Q4
|
|
417
|
+
case "QQQ":
|
|
418
|
+
return r.quarter(e, {
|
|
419
|
+
width: "abbreviated",
|
|
420
|
+
context: "formatting"
|
|
421
|
+
}) || r.quarter(e, {
|
|
422
|
+
width: "narrow",
|
|
423
|
+
context: "formatting"
|
|
424
|
+
});
|
|
425
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
426
|
+
case "QQQQQ":
|
|
427
|
+
return r.quarter(e, {
|
|
428
|
+
width: "narrow",
|
|
429
|
+
context: "formatting"
|
|
430
|
+
});
|
|
431
|
+
// 1st quarter, 2nd quarter, ...
|
|
432
|
+
case "QQQQ":
|
|
433
|
+
default:
|
|
434
|
+
return r.quarter(e, {
|
|
435
|
+
width: "wide",
|
|
436
|
+
context: "formatting"
|
|
437
|
+
}) || r.quarter(e, {
|
|
438
|
+
width: "abbreviated",
|
|
439
|
+
context: "formatting"
|
|
440
|
+
}) || r.quarter(e, {
|
|
441
|
+
width: "narrow",
|
|
442
|
+
context: "formatting"
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
validate(e, t) {
|
|
447
|
+
return t >= 1 && t <= 4;
|
|
448
|
+
}
|
|
449
|
+
set(e, t, r) {
|
|
450
|
+
return e.setMonth((r - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
class yt extends u {
|
|
454
|
+
constructor() {
|
|
455
|
+
super(...arguments);
|
|
456
|
+
i(this, "priority", 120);
|
|
457
|
+
i(this, "incompatibleTokens", [
|
|
458
|
+
"Y",
|
|
459
|
+
"R",
|
|
460
|
+
"Q",
|
|
461
|
+
"M",
|
|
462
|
+
"L",
|
|
463
|
+
"w",
|
|
464
|
+
"I",
|
|
465
|
+
"d",
|
|
466
|
+
"D",
|
|
467
|
+
"i",
|
|
468
|
+
"e",
|
|
469
|
+
"c",
|
|
470
|
+
"t",
|
|
471
|
+
"T"
|
|
472
|
+
]);
|
|
473
|
+
}
|
|
474
|
+
parse(e, t, r) {
|
|
475
|
+
switch (t) {
|
|
476
|
+
// 1, 2, 3, 4
|
|
477
|
+
case "q":
|
|
478
|
+
case "qq":
|
|
479
|
+
return w(t.length, e);
|
|
480
|
+
// 1st, 2nd, 3rd, 4th
|
|
481
|
+
case "qo":
|
|
482
|
+
return r.ordinalNumber(e, { unit: "quarter" });
|
|
483
|
+
// Q1, Q2, Q3, Q4
|
|
484
|
+
case "qqq":
|
|
485
|
+
return r.quarter(e, {
|
|
486
|
+
width: "abbreviated",
|
|
487
|
+
context: "standalone"
|
|
488
|
+
}) || r.quarter(e, {
|
|
489
|
+
width: "narrow",
|
|
490
|
+
context: "standalone"
|
|
491
|
+
});
|
|
492
|
+
// 1, 2, 3, 4 (narrow quarter; could be not numerical)
|
|
493
|
+
case "qqqqq":
|
|
494
|
+
return r.quarter(e, {
|
|
495
|
+
width: "narrow",
|
|
496
|
+
context: "standalone"
|
|
497
|
+
});
|
|
498
|
+
// 1st quarter, 2nd quarter, ...
|
|
499
|
+
case "qqqq":
|
|
500
|
+
default:
|
|
501
|
+
return r.quarter(e, {
|
|
502
|
+
width: "wide",
|
|
503
|
+
context: "standalone"
|
|
504
|
+
}) || r.quarter(e, {
|
|
505
|
+
width: "abbreviated",
|
|
506
|
+
context: "standalone"
|
|
507
|
+
}) || r.quarter(e, {
|
|
508
|
+
width: "narrow",
|
|
509
|
+
context: "standalone"
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
validate(e, t) {
|
|
514
|
+
return t >= 1 && t <= 4;
|
|
515
|
+
}
|
|
516
|
+
set(e, t, r) {
|
|
517
|
+
return e.setMonth((r - 1) * 3, 1), e.setHours(0, 0, 0, 0), e;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
class pt extends u {
|
|
521
|
+
constructor() {
|
|
522
|
+
super(...arguments);
|
|
523
|
+
i(this, "incompatibleTokens", [
|
|
524
|
+
"Y",
|
|
525
|
+
"R",
|
|
526
|
+
"q",
|
|
527
|
+
"Q",
|
|
528
|
+
"L",
|
|
529
|
+
"w",
|
|
530
|
+
"I",
|
|
531
|
+
"D",
|
|
532
|
+
"i",
|
|
533
|
+
"e",
|
|
534
|
+
"c",
|
|
535
|
+
"t",
|
|
536
|
+
"T"
|
|
537
|
+
]);
|
|
538
|
+
i(this, "priority", 110);
|
|
539
|
+
}
|
|
540
|
+
parse(e, t, r) {
|
|
541
|
+
const a = (o) => o - 1;
|
|
542
|
+
switch (t) {
|
|
543
|
+
// 1, 2, ..., 12
|
|
544
|
+
case "M":
|
|
545
|
+
return y(
|
|
546
|
+
f(h.month, e),
|
|
547
|
+
a
|
|
548
|
+
);
|
|
549
|
+
// 01, 02, ..., 12
|
|
550
|
+
case "MM":
|
|
551
|
+
return y(w(2, e), a);
|
|
552
|
+
// 1st, 2nd, ..., 12th
|
|
553
|
+
case "Mo":
|
|
554
|
+
return y(
|
|
555
|
+
r.ordinalNumber(e, {
|
|
556
|
+
unit: "month"
|
|
557
|
+
}),
|
|
558
|
+
a
|
|
559
|
+
);
|
|
560
|
+
// Jan, Feb, ..., Dec
|
|
561
|
+
case "MMM":
|
|
562
|
+
return r.month(e, {
|
|
563
|
+
width: "abbreviated",
|
|
564
|
+
context: "formatting"
|
|
565
|
+
}) || r.month(e, { width: "narrow", context: "formatting" });
|
|
566
|
+
// J, F, ..., D
|
|
567
|
+
case "MMMMM":
|
|
568
|
+
return r.month(e, {
|
|
569
|
+
width: "narrow",
|
|
570
|
+
context: "formatting"
|
|
571
|
+
});
|
|
572
|
+
// January, February, ..., December
|
|
573
|
+
case "MMMM":
|
|
574
|
+
default:
|
|
575
|
+
return r.month(e, { width: "wide", context: "formatting" }) || r.month(e, {
|
|
576
|
+
width: "abbreviated",
|
|
577
|
+
context: "formatting"
|
|
578
|
+
}) || r.month(e, { width: "narrow", context: "formatting" });
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
validate(e, t) {
|
|
582
|
+
return t >= 0 && t <= 11;
|
|
583
|
+
}
|
|
584
|
+
set(e, t, r) {
|
|
585
|
+
return e.setMonth(r, 1), e.setHours(0, 0, 0, 0), e;
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
class bt extends u {
|
|
589
|
+
constructor() {
|
|
590
|
+
super(...arguments);
|
|
591
|
+
i(this, "priority", 110);
|
|
592
|
+
i(this, "incompatibleTokens", [
|
|
593
|
+
"Y",
|
|
594
|
+
"R",
|
|
595
|
+
"q",
|
|
596
|
+
"Q",
|
|
597
|
+
"M",
|
|
598
|
+
"w",
|
|
599
|
+
"I",
|
|
600
|
+
"D",
|
|
601
|
+
"i",
|
|
602
|
+
"e",
|
|
603
|
+
"c",
|
|
604
|
+
"t",
|
|
605
|
+
"T"
|
|
606
|
+
]);
|
|
607
|
+
}
|
|
608
|
+
parse(e, t, r) {
|
|
609
|
+
const a = (o) => o - 1;
|
|
610
|
+
switch (t) {
|
|
611
|
+
// 1, 2, ..., 12
|
|
612
|
+
case "L":
|
|
613
|
+
return y(
|
|
614
|
+
f(h.month, e),
|
|
615
|
+
a
|
|
616
|
+
);
|
|
617
|
+
// 01, 02, ..., 12
|
|
618
|
+
case "LL":
|
|
619
|
+
return y(w(2, e), a);
|
|
620
|
+
// 1st, 2nd, ..., 12th
|
|
621
|
+
case "Lo":
|
|
622
|
+
return y(
|
|
623
|
+
r.ordinalNumber(e, {
|
|
624
|
+
unit: "month"
|
|
625
|
+
}),
|
|
626
|
+
a
|
|
627
|
+
);
|
|
628
|
+
// Jan, Feb, ..., Dec
|
|
629
|
+
case "LLL":
|
|
630
|
+
return r.month(e, {
|
|
631
|
+
width: "abbreviated",
|
|
632
|
+
context: "standalone"
|
|
633
|
+
}) || r.month(e, { width: "narrow", context: "standalone" });
|
|
634
|
+
// J, F, ..., D
|
|
635
|
+
case "LLLLL":
|
|
636
|
+
return r.month(e, {
|
|
637
|
+
width: "narrow",
|
|
638
|
+
context: "standalone"
|
|
639
|
+
});
|
|
640
|
+
// January, February, ..., December
|
|
641
|
+
case "LLLL":
|
|
642
|
+
default:
|
|
643
|
+
return r.month(e, { width: "wide", context: "standalone" }) || r.month(e, {
|
|
644
|
+
width: "abbreviated",
|
|
645
|
+
context: "standalone"
|
|
646
|
+
}) || r.month(e, { width: "narrow", context: "standalone" });
|
|
647
|
+
}
|
|
648
|
+
}
|
|
649
|
+
validate(e, t) {
|
|
650
|
+
return t >= 0 && t <= 11;
|
|
651
|
+
}
|
|
652
|
+
set(e, t, r) {
|
|
653
|
+
return e.setMonth(r, 1), e.setHours(0, 0, 0, 0), e;
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
function mt(n, s, e) {
|
|
657
|
+
const t = H(n, e == null ? void 0 : e.in), r = Ke(t, e) - s;
|
|
658
|
+
return t.setDate(t.getDate() - r * 7), H(t, e == null ? void 0 : e.in);
|
|
659
|
+
}
|
|
660
|
+
class xt extends u {
|
|
661
|
+
constructor() {
|
|
662
|
+
super(...arguments);
|
|
663
|
+
i(this, "priority", 100);
|
|
664
|
+
i(this, "incompatibleTokens", [
|
|
665
|
+
"y",
|
|
666
|
+
"R",
|
|
667
|
+
"u",
|
|
668
|
+
"q",
|
|
669
|
+
"Q",
|
|
670
|
+
"M",
|
|
671
|
+
"L",
|
|
672
|
+
"I",
|
|
673
|
+
"d",
|
|
674
|
+
"D",
|
|
675
|
+
"i",
|
|
676
|
+
"t",
|
|
677
|
+
"T"
|
|
678
|
+
]);
|
|
679
|
+
}
|
|
680
|
+
parse(e, t, r) {
|
|
681
|
+
switch (t) {
|
|
682
|
+
case "w":
|
|
683
|
+
return f(h.week, e);
|
|
684
|
+
case "wo":
|
|
685
|
+
return r.ordinalNumber(e, { unit: "week" });
|
|
686
|
+
default:
|
|
687
|
+
return w(t.length, e);
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
validate(e, t) {
|
|
691
|
+
return t >= 1 && t <= 53;
|
|
692
|
+
}
|
|
693
|
+
set(e, t, r, a) {
|
|
694
|
+
return ee(mt(e, r, a), a);
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
function gt(n, s, e) {
|
|
698
|
+
const t = H(n, e == null ? void 0 : e.in), r = ze(t, e) - s;
|
|
699
|
+
return t.setDate(t.getDate() - r * 7), t;
|
|
700
|
+
}
|
|
701
|
+
class kt extends u {
|
|
702
|
+
constructor() {
|
|
703
|
+
super(...arguments);
|
|
704
|
+
i(this, "priority", 100);
|
|
705
|
+
i(this, "incompatibleTokens", [
|
|
706
|
+
"y",
|
|
707
|
+
"Y",
|
|
708
|
+
"u",
|
|
709
|
+
"q",
|
|
710
|
+
"Q",
|
|
711
|
+
"M",
|
|
712
|
+
"L",
|
|
713
|
+
"w",
|
|
714
|
+
"d",
|
|
715
|
+
"D",
|
|
716
|
+
"e",
|
|
717
|
+
"c",
|
|
718
|
+
"t",
|
|
719
|
+
"T"
|
|
720
|
+
]);
|
|
721
|
+
}
|
|
722
|
+
parse(e, t, r) {
|
|
723
|
+
switch (t) {
|
|
724
|
+
case "I":
|
|
725
|
+
return f(h.week, e);
|
|
726
|
+
case "Io":
|
|
727
|
+
return r.ordinalNumber(e, { unit: "week" });
|
|
728
|
+
default:
|
|
729
|
+
return w(t.length, e);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
validate(e, t) {
|
|
733
|
+
return t >= 1 && t <= 53;
|
|
734
|
+
}
|
|
735
|
+
set(e, t, r) {
|
|
736
|
+
return ue(gt(e, r));
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
const Tt = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], Dt = [
|
|
740
|
+
31,
|
|
741
|
+
29,
|
|
742
|
+
31,
|
|
743
|
+
30,
|
|
744
|
+
31,
|
|
745
|
+
30,
|
|
746
|
+
31,
|
|
747
|
+
31,
|
|
748
|
+
30,
|
|
749
|
+
31,
|
|
750
|
+
30,
|
|
751
|
+
31
|
|
752
|
+
];
|
|
753
|
+
class Pt extends u {
|
|
754
|
+
constructor() {
|
|
755
|
+
super(...arguments);
|
|
756
|
+
i(this, "priority", 90);
|
|
757
|
+
i(this, "subPriority", 1);
|
|
758
|
+
i(this, "incompatibleTokens", [
|
|
759
|
+
"Y",
|
|
760
|
+
"R",
|
|
761
|
+
"q",
|
|
762
|
+
"Q",
|
|
763
|
+
"w",
|
|
764
|
+
"I",
|
|
765
|
+
"D",
|
|
766
|
+
"i",
|
|
767
|
+
"e",
|
|
768
|
+
"c",
|
|
769
|
+
"t",
|
|
770
|
+
"T"
|
|
771
|
+
]);
|
|
772
|
+
}
|
|
773
|
+
parse(e, t, r) {
|
|
774
|
+
switch (t) {
|
|
775
|
+
case "d":
|
|
776
|
+
return f(h.date, e);
|
|
777
|
+
case "do":
|
|
778
|
+
return r.ordinalNumber(e, { unit: "date" });
|
|
779
|
+
default:
|
|
780
|
+
return w(t.length, e);
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
validate(e, t) {
|
|
784
|
+
const r = e.getFullYear(), a = ye(r), o = e.getMonth();
|
|
785
|
+
return a ? t >= 1 && t <= Dt[o] : t >= 1 && t <= Tt[o];
|
|
786
|
+
}
|
|
787
|
+
set(e, t, r) {
|
|
788
|
+
return e.setDate(r), e.setHours(0, 0, 0, 0), e;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
class vt extends u {
|
|
792
|
+
constructor() {
|
|
793
|
+
super(...arguments);
|
|
794
|
+
i(this, "priority", 90);
|
|
795
|
+
i(this, "subpriority", 1);
|
|
796
|
+
i(this, "incompatibleTokens", [
|
|
797
|
+
"Y",
|
|
798
|
+
"R",
|
|
799
|
+
"q",
|
|
800
|
+
"Q",
|
|
801
|
+
"M",
|
|
802
|
+
"L",
|
|
803
|
+
"w",
|
|
804
|
+
"I",
|
|
805
|
+
"d",
|
|
806
|
+
"E",
|
|
807
|
+
"i",
|
|
808
|
+
"e",
|
|
809
|
+
"c",
|
|
810
|
+
"t",
|
|
811
|
+
"T"
|
|
812
|
+
]);
|
|
813
|
+
}
|
|
814
|
+
parse(e, t, r) {
|
|
815
|
+
switch (t) {
|
|
816
|
+
case "D":
|
|
817
|
+
case "DD":
|
|
818
|
+
return f(h.dayOfYear, e);
|
|
819
|
+
case "Do":
|
|
820
|
+
return r.ordinalNumber(e, { unit: "date" });
|
|
821
|
+
default:
|
|
822
|
+
return w(t.length, e);
|
|
823
|
+
}
|
|
824
|
+
}
|
|
825
|
+
validate(e, t) {
|
|
826
|
+
const r = e.getFullYear();
|
|
827
|
+
return ye(r) ? t >= 1 && t <= 366 : t >= 1 && t <= 365;
|
|
828
|
+
}
|
|
829
|
+
set(e, t, r) {
|
|
830
|
+
return e.setMonth(0, r), e.setHours(0, 0, 0, 0), e;
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
function re(n, s, e) {
|
|
834
|
+
var C, I, R, g;
|
|
835
|
+
const t = ce(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((I = (C = e == null ? void 0 : e.locale) == null ? void 0 : C.options) == null ? void 0 : I.weekStartsOn) ?? t.weekStartsOn ?? ((g = (R = t.locale) == null ? void 0 : R.options) == null ? void 0 : g.weekStartsOn) ?? 0, a = H(n, e == null ? void 0 : e.in), o = a.getDay(), x = (s % 7 + 7) % 7, M = 7 - r, q = s < 0 || s > 6 ? s - (o + M) % 7 : (x + M) % 7 - (o + M) % 7;
|
|
836
|
+
return le(a, q, e);
|
|
837
|
+
}
|
|
838
|
+
class Mt extends u {
|
|
839
|
+
constructor() {
|
|
840
|
+
super(...arguments);
|
|
841
|
+
i(this, "priority", 90);
|
|
842
|
+
i(this, "incompatibleTokens", ["D", "i", "e", "c", "t", "T"]);
|
|
843
|
+
}
|
|
844
|
+
parse(e, t, r) {
|
|
845
|
+
switch (t) {
|
|
846
|
+
// Tue
|
|
847
|
+
case "E":
|
|
848
|
+
case "EE":
|
|
849
|
+
case "EEE":
|
|
850
|
+
return r.day(e, {
|
|
851
|
+
width: "abbreviated",
|
|
852
|
+
context: "formatting"
|
|
853
|
+
}) || r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
854
|
+
// T
|
|
855
|
+
case "EEEEE":
|
|
856
|
+
return r.day(e, {
|
|
857
|
+
width: "narrow",
|
|
858
|
+
context: "formatting"
|
|
859
|
+
});
|
|
860
|
+
// Tu
|
|
861
|
+
case "EEEEEE":
|
|
862
|
+
return r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
863
|
+
// Tuesday
|
|
864
|
+
case "EEEE":
|
|
865
|
+
default:
|
|
866
|
+
return r.day(e, { width: "wide", context: "formatting" }) || r.day(e, {
|
|
867
|
+
width: "abbreviated",
|
|
868
|
+
context: "formatting"
|
|
869
|
+
}) || r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
validate(e, t) {
|
|
873
|
+
return t >= 0 && t <= 6;
|
|
874
|
+
}
|
|
875
|
+
set(e, t, r, a) {
|
|
876
|
+
return e = re(e, r, a), e.setHours(0, 0, 0, 0), e;
|
|
877
|
+
}
|
|
878
|
+
}
|
|
879
|
+
class Ot extends u {
|
|
880
|
+
constructor() {
|
|
881
|
+
super(...arguments);
|
|
882
|
+
i(this, "priority", 90);
|
|
883
|
+
i(this, "incompatibleTokens", [
|
|
884
|
+
"y",
|
|
885
|
+
"R",
|
|
886
|
+
"u",
|
|
887
|
+
"q",
|
|
888
|
+
"Q",
|
|
889
|
+
"M",
|
|
890
|
+
"L",
|
|
891
|
+
"I",
|
|
892
|
+
"d",
|
|
893
|
+
"D",
|
|
894
|
+
"E",
|
|
895
|
+
"i",
|
|
896
|
+
"c",
|
|
897
|
+
"t",
|
|
898
|
+
"T"
|
|
899
|
+
]);
|
|
900
|
+
}
|
|
901
|
+
parse(e, t, r, a) {
|
|
902
|
+
const o = (b) => {
|
|
903
|
+
const x = Math.floor((b - 1) / 7) * 7;
|
|
904
|
+
return (b + a.weekStartsOn + 6) % 7 + x;
|
|
905
|
+
};
|
|
906
|
+
switch (t) {
|
|
907
|
+
// 3
|
|
908
|
+
case "e":
|
|
909
|
+
case "ee":
|
|
910
|
+
return y(w(t.length, e), o);
|
|
911
|
+
// 3rd
|
|
912
|
+
case "eo":
|
|
913
|
+
return y(
|
|
914
|
+
r.ordinalNumber(e, {
|
|
915
|
+
unit: "day"
|
|
916
|
+
}),
|
|
917
|
+
o
|
|
918
|
+
);
|
|
919
|
+
// Tue
|
|
920
|
+
case "eee":
|
|
921
|
+
return r.day(e, {
|
|
922
|
+
width: "abbreviated",
|
|
923
|
+
context: "formatting"
|
|
924
|
+
}) || r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
925
|
+
// T
|
|
926
|
+
case "eeeee":
|
|
927
|
+
return r.day(e, {
|
|
928
|
+
width: "narrow",
|
|
929
|
+
context: "formatting"
|
|
930
|
+
});
|
|
931
|
+
// Tu
|
|
932
|
+
case "eeeeee":
|
|
933
|
+
return r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
934
|
+
// Tuesday
|
|
935
|
+
case "eeee":
|
|
936
|
+
default:
|
|
937
|
+
return r.day(e, { width: "wide", context: "formatting" }) || r.day(e, {
|
|
938
|
+
width: "abbreviated",
|
|
939
|
+
context: "formatting"
|
|
940
|
+
}) || r.day(e, { width: "short", context: "formatting" }) || r.day(e, { width: "narrow", context: "formatting" });
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
validate(e, t) {
|
|
944
|
+
return t >= 0 && t <= 6;
|
|
945
|
+
}
|
|
946
|
+
set(e, t, r, a) {
|
|
947
|
+
return e = re(e, r, a), e.setHours(0, 0, 0, 0), e;
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
class _t extends u {
|
|
951
|
+
constructor() {
|
|
952
|
+
super(...arguments);
|
|
953
|
+
i(this, "priority", 90);
|
|
954
|
+
i(this, "incompatibleTokens", [
|
|
955
|
+
"y",
|
|
956
|
+
"R",
|
|
957
|
+
"u",
|
|
958
|
+
"q",
|
|
959
|
+
"Q",
|
|
960
|
+
"M",
|
|
961
|
+
"L",
|
|
962
|
+
"I",
|
|
963
|
+
"d",
|
|
964
|
+
"D",
|
|
965
|
+
"E",
|
|
966
|
+
"i",
|
|
967
|
+
"e",
|
|
968
|
+
"t",
|
|
969
|
+
"T"
|
|
970
|
+
]);
|
|
971
|
+
}
|
|
972
|
+
parse(e, t, r, a) {
|
|
973
|
+
const o = (b) => {
|
|
974
|
+
const x = Math.floor((b - 1) / 7) * 7;
|
|
975
|
+
return (b + a.weekStartsOn + 6) % 7 + x;
|
|
976
|
+
};
|
|
977
|
+
switch (t) {
|
|
978
|
+
// 3
|
|
979
|
+
case "c":
|
|
980
|
+
case "cc":
|
|
981
|
+
return y(w(t.length, e), o);
|
|
982
|
+
// 3rd
|
|
983
|
+
case "co":
|
|
984
|
+
return y(
|
|
985
|
+
r.ordinalNumber(e, {
|
|
986
|
+
unit: "day"
|
|
987
|
+
}),
|
|
988
|
+
o
|
|
989
|
+
);
|
|
990
|
+
// Tue
|
|
991
|
+
case "ccc":
|
|
992
|
+
return r.day(e, {
|
|
993
|
+
width: "abbreviated",
|
|
994
|
+
context: "standalone"
|
|
995
|
+
}) || r.day(e, { width: "short", context: "standalone" }) || r.day(e, { width: "narrow", context: "standalone" });
|
|
996
|
+
// T
|
|
997
|
+
case "ccccc":
|
|
998
|
+
return r.day(e, {
|
|
999
|
+
width: "narrow",
|
|
1000
|
+
context: "standalone"
|
|
1001
|
+
});
|
|
1002
|
+
// Tu
|
|
1003
|
+
case "cccccc":
|
|
1004
|
+
return r.day(e, { width: "short", context: "standalone" }) || r.day(e, { width: "narrow", context: "standalone" });
|
|
1005
|
+
// Tuesday
|
|
1006
|
+
case "cccc":
|
|
1007
|
+
default:
|
|
1008
|
+
return r.day(e, { width: "wide", context: "standalone" }) || r.day(e, {
|
|
1009
|
+
width: "abbreviated",
|
|
1010
|
+
context: "standalone"
|
|
1011
|
+
}) || r.day(e, { width: "short", context: "standalone" }) || r.day(e, { width: "narrow", context: "standalone" });
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
validate(e, t) {
|
|
1015
|
+
return t >= 0 && t <= 6;
|
|
1016
|
+
}
|
|
1017
|
+
set(e, t, r, a) {
|
|
1018
|
+
return e = re(e, r, a), e.setHours(0, 0, 0, 0), e;
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
function It(n, s, e) {
|
|
1022
|
+
const t = H(n, e == null ? void 0 : e.in), r = nt(t, e), a = s - r;
|
|
1023
|
+
return le(t, a, e);
|
|
1024
|
+
}
|
|
1025
|
+
class Yt extends u {
|
|
1026
|
+
constructor() {
|
|
1027
|
+
super(...arguments);
|
|
1028
|
+
i(this, "priority", 90);
|
|
1029
|
+
i(this, "incompatibleTokens", [
|
|
1030
|
+
"y",
|
|
1031
|
+
"Y",
|
|
1032
|
+
"u",
|
|
1033
|
+
"q",
|
|
1034
|
+
"Q",
|
|
1035
|
+
"M",
|
|
1036
|
+
"L",
|
|
1037
|
+
"w",
|
|
1038
|
+
"d",
|
|
1039
|
+
"D",
|
|
1040
|
+
"E",
|
|
1041
|
+
"e",
|
|
1042
|
+
"c",
|
|
1043
|
+
"t",
|
|
1044
|
+
"T"
|
|
1045
|
+
]);
|
|
1046
|
+
}
|
|
1047
|
+
parse(e, t, r) {
|
|
1048
|
+
const a = (o) => o === 0 ? 7 : o;
|
|
1049
|
+
switch (t) {
|
|
1050
|
+
// 2
|
|
1051
|
+
case "i":
|
|
1052
|
+
case "ii":
|
|
1053
|
+
return w(t.length, e);
|
|
1054
|
+
// 2nd
|
|
1055
|
+
case "io":
|
|
1056
|
+
return r.ordinalNumber(e, { unit: "day" });
|
|
1057
|
+
// Tue
|
|
1058
|
+
case "iii":
|
|
1059
|
+
return y(
|
|
1060
|
+
r.day(e, {
|
|
1061
|
+
width: "abbreviated",
|
|
1062
|
+
context: "formatting"
|
|
1063
|
+
}) || r.day(e, {
|
|
1064
|
+
width: "short",
|
|
1065
|
+
context: "formatting"
|
|
1066
|
+
}) || r.day(e, {
|
|
1067
|
+
width: "narrow",
|
|
1068
|
+
context: "formatting"
|
|
1069
|
+
}),
|
|
1070
|
+
a
|
|
1071
|
+
);
|
|
1072
|
+
// T
|
|
1073
|
+
case "iiiii":
|
|
1074
|
+
return y(
|
|
1075
|
+
r.day(e, {
|
|
1076
|
+
width: "narrow",
|
|
1077
|
+
context: "formatting"
|
|
1078
|
+
}),
|
|
1079
|
+
a
|
|
1080
|
+
);
|
|
1081
|
+
// Tu
|
|
1082
|
+
case "iiiiii":
|
|
1083
|
+
return y(
|
|
1084
|
+
r.day(e, {
|
|
1085
|
+
width: "short",
|
|
1086
|
+
context: "formatting"
|
|
1087
|
+
}) || r.day(e, {
|
|
1088
|
+
width: "narrow",
|
|
1089
|
+
context: "formatting"
|
|
1090
|
+
}),
|
|
1091
|
+
a
|
|
1092
|
+
);
|
|
1093
|
+
// Tuesday
|
|
1094
|
+
case "iiii":
|
|
1095
|
+
default:
|
|
1096
|
+
return y(
|
|
1097
|
+
r.day(e, {
|
|
1098
|
+
width: "wide",
|
|
1099
|
+
context: "formatting"
|
|
1100
|
+
}) || r.day(e, {
|
|
1101
|
+
width: "abbreviated",
|
|
1102
|
+
context: "formatting"
|
|
1103
|
+
}) || r.day(e, {
|
|
1104
|
+
width: "short",
|
|
1105
|
+
context: "formatting"
|
|
1106
|
+
}) || r.day(e, {
|
|
1107
|
+
width: "narrow",
|
|
1108
|
+
context: "formatting"
|
|
1109
|
+
}),
|
|
1110
|
+
a
|
|
1111
|
+
);
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
validate(e, t) {
|
|
1115
|
+
return t >= 1 && t <= 7;
|
|
1116
|
+
}
|
|
1117
|
+
set(e, t, r) {
|
|
1118
|
+
return e = It(e, r), e.setHours(0, 0, 0, 0), e;
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
class Et extends u {
|
|
1122
|
+
constructor() {
|
|
1123
|
+
super(...arguments);
|
|
1124
|
+
i(this, "priority", 80);
|
|
1125
|
+
i(this, "incompatibleTokens", ["b", "B", "H", "k", "t", "T"]);
|
|
1126
|
+
}
|
|
1127
|
+
parse(e, t, r) {
|
|
1128
|
+
switch (t) {
|
|
1129
|
+
case "a":
|
|
1130
|
+
case "aa":
|
|
1131
|
+
case "aaa":
|
|
1132
|
+
return r.dayPeriod(e, {
|
|
1133
|
+
width: "abbreviated",
|
|
1134
|
+
context: "formatting"
|
|
1135
|
+
}) || r.dayPeriod(e, {
|
|
1136
|
+
width: "narrow",
|
|
1137
|
+
context: "formatting"
|
|
1138
|
+
});
|
|
1139
|
+
case "aaaaa":
|
|
1140
|
+
return r.dayPeriod(e, {
|
|
1141
|
+
width: "narrow",
|
|
1142
|
+
context: "formatting"
|
|
1143
|
+
});
|
|
1144
|
+
case "aaaa":
|
|
1145
|
+
default:
|
|
1146
|
+
return r.dayPeriod(e, {
|
|
1147
|
+
width: "wide",
|
|
1148
|
+
context: "formatting"
|
|
1149
|
+
}) || r.dayPeriod(e, {
|
|
1150
|
+
width: "abbreviated",
|
|
1151
|
+
context: "formatting"
|
|
1152
|
+
}) || r.dayPeriod(e, {
|
|
1153
|
+
width: "narrow",
|
|
1154
|
+
context: "formatting"
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
set(e, t, r) {
|
|
1159
|
+
return e.setHours(te(r), 0, 0, 0), e;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
class Ht extends u {
|
|
1163
|
+
constructor() {
|
|
1164
|
+
super(...arguments);
|
|
1165
|
+
i(this, "priority", 80);
|
|
1166
|
+
i(this, "incompatibleTokens", ["a", "B", "H", "k", "t", "T"]);
|
|
1167
|
+
}
|
|
1168
|
+
parse(e, t, r) {
|
|
1169
|
+
switch (t) {
|
|
1170
|
+
case "b":
|
|
1171
|
+
case "bb":
|
|
1172
|
+
case "bbb":
|
|
1173
|
+
return r.dayPeriod(e, {
|
|
1174
|
+
width: "abbreviated",
|
|
1175
|
+
context: "formatting"
|
|
1176
|
+
}) || r.dayPeriod(e, {
|
|
1177
|
+
width: "narrow",
|
|
1178
|
+
context: "formatting"
|
|
1179
|
+
});
|
|
1180
|
+
case "bbbbb":
|
|
1181
|
+
return r.dayPeriod(e, {
|
|
1182
|
+
width: "narrow",
|
|
1183
|
+
context: "formatting"
|
|
1184
|
+
});
|
|
1185
|
+
case "bbbb":
|
|
1186
|
+
default:
|
|
1187
|
+
return r.dayPeriod(e, {
|
|
1188
|
+
width: "wide",
|
|
1189
|
+
context: "formatting"
|
|
1190
|
+
}) || r.dayPeriod(e, {
|
|
1191
|
+
width: "abbreviated",
|
|
1192
|
+
context: "formatting"
|
|
1193
|
+
}) || r.dayPeriod(e, {
|
|
1194
|
+
width: "narrow",
|
|
1195
|
+
context: "formatting"
|
|
1196
|
+
});
|
|
1197
|
+
}
|
|
1198
|
+
}
|
|
1199
|
+
set(e, t, r) {
|
|
1200
|
+
return e.setHours(te(r), 0, 0, 0), e;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
class qt extends u {
|
|
1204
|
+
constructor() {
|
|
1205
|
+
super(...arguments);
|
|
1206
|
+
i(this, "priority", 80);
|
|
1207
|
+
i(this, "incompatibleTokens", ["a", "b", "t", "T"]);
|
|
1208
|
+
}
|
|
1209
|
+
parse(e, t, r) {
|
|
1210
|
+
switch (t) {
|
|
1211
|
+
case "B":
|
|
1212
|
+
case "BB":
|
|
1213
|
+
case "BBB":
|
|
1214
|
+
return r.dayPeriod(e, {
|
|
1215
|
+
width: "abbreviated",
|
|
1216
|
+
context: "formatting"
|
|
1217
|
+
}) || r.dayPeriod(e, {
|
|
1218
|
+
width: "narrow",
|
|
1219
|
+
context: "formatting"
|
|
1220
|
+
});
|
|
1221
|
+
case "BBBBB":
|
|
1222
|
+
return r.dayPeriod(e, {
|
|
1223
|
+
width: "narrow",
|
|
1224
|
+
context: "formatting"
|
|
1225
|
+
});
|
|
1226
|
+
case "BBBB":
|
|
1227
|
+
default:
|
|
1228
|
+
return r.dayPeriod(e, {
|
|
1229
|
+
width: "wide",
|
|
1230
|
+
context: "formatting"
|
|
1231
|
+
}) || r.dayPeriod(e, {
|
|
1232
|
+
width: "abbreviated",
|
|
1233
|
+
context: "formatting"
|
|
1234
|
+
}) || r.dayPeriod(e, {
|
|
1235
|
+
width: "narrow",
|
|
1236
|
+
context: "formatting"
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
set(e, t, r) {
|
|
1241
|
+
return e.setHours(te(r), 0, 0, 0), e;
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
class Lt extends u {
|
|
1245
|
+
constructor() {
|
|
1246
|
+
super(...arguments);
|
|
1247
|
+
i(this, "priority", 70);
|
|
1248
|
+
i(this, "incompatibleTokens", ["H", "K", "k", "t", "T"]);
|
|
1249
|
+
}
|
|
1250
|
+
parse(e, t, r) {
|
|
1251
|
+
switch (t) {
|
|
1252
|
+
case "h":
|
|
1253
|
+
return f(h.hour12h, e);
|
|
1254
|
+
case "ho":
|
|
1255
|
+
return r.ordinalNumber(e, { unit: "hour" });
|
|
1256
|
+
default:
|
|
1257
|
+
return w(t.length, e);
|
|
1258
|
+
}
|
|
1259
|
+
}
|
|
1260
|
+
validate(e, t) {
|
|
1261
|
+
return t >= 1 && t <= 12;
|
|
1262
|
+
}
|
|
1263
|
+
set(e, t, r) {
|
|
1264
|
+
const a = e.getHours() >= 12;
|
|
1265
|
+
return a && r < 12 ? e.setHours(r + 12, 0, 0, 0) : !a && r === 12 ? e.setHours(0, 0, 0, 0) : e.setHours(r, 0, 0, 0), e;
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
class Nt extends u {
|
|
1269
|
+
constructor() {
|
|
1270
|
+
super(...arguments);
|
|
1271
|
+
i(this, "priority", 70);
|
|
1272
|
+
i(this, "incompatibleTokens", ["a", "b", "h", "K", "k", "t", "T"]);
|
|
1273
|
+
}
|
|
1274
|
+
parse(e, t, r) {
|
|
1275
|
+
switch (t) {
|
|
1276
|
+
case "H":
|
|
1277
|
+
return f(h.hour23h, e);
|
|
1278
|
+
case "Ho":
|
|
1279
|
+
return r.ordinalNumber(e, { unit: "hour" });
|
|
1280
|
+
default:
|
|
1281
|
+
return w(t.length, e);
|
|
1282
|
+
}
|
|
1283
|
+
}
|
|
1284
|
+
validate(e, t) {
|
|
1285
|
+
return t >= 0 && t <= 23;
|
|
1286
|
+
}
|
|
1287
|
+
set(e, t, r) {
|
|
1288
|
+
return e.setHours(r, 0, 0, 0), e;
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
class Ct extends u {
|
|
1292
|
+
constructor() {
|
|
1293
|
+
super(...arguments);
|
|
1294
|
+
i(this, "priority", 70);
|
|
1295
|
+
i(this, "incompatibleTokens", ["h", "H", "k", "t", "T"]);
|
|
1296
|
+
}
|
|
1297
|
+
parse(e, t, r) {
|
|
1298
|
+
switch (t) {
|
|
1299
|
+
case "K":
|
|
1300
|
+
return f(h.hour11h, e);
|
|
1301
|
+
case "Ko":
|
|
1302
|
+
return r.ordinalNumber(e, { unit: "hour" });
|
|
1303
|
+
default:
|
|
1304
|
+
return w(t.length, e);
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1307
|
+
validate(e, t) {
|
|
1308
|
+
return t >= 0 && t <= 11;
|
|
1309
|
+
}
|
|
1310
|
+
set(e, t, r) {
|
|
1311
|
+
return e.getHours() >= 12 && r < 12 ? e.setHours(r + 12, 0, 0, 0) : e.setHours(r, 0, 0, 0), e;
|
|
1312
|
+
}
|
|
1313
|
+
}
|
|
1314
|
+
class Rt extends u {
|
|
1315
|
+
constructor() {
|
|
1316
|
+
super(...arguments);
|
|
1317
|
+
i(this, "priority", 70);
|
|
1318
|
+
i(this, "incompatibleTokens", ["a", "b", "h", "H", "K", "t", "T"]);
|
|
1319
|
+
}
|
|
1320
|
+
parse(e, t, r) {
|
|
1321
|
+
switch (t) {
|
|
1322
|
+
case "k":
|
|
1323
|
+
return f(h.hour24h, e);
|
|
1324
|
+
case "ko":
|
|
1325
|
+
return r.ordinalNumber(e, { unit: "hour" });
|
|
1326
|
+
default:
|
|
1327
|
+
return w(t.length, e);
|
|
1328
|
+
}
|
|
1329
|
+
}
|
|
1330
|
+
validate(e, t) {
|
|
1331
|
+
return t >= 1 && t <= 24;
|
|
1332
|
+
}
|
|
1333
|
+
set(e, t, r) {
|
|
1334
|
+
const a = r <= 24 ? r % 24 : r;
|
|
1335
|
+
return e.setHours(a, 0, 0, 0), e;
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
class Qt extends u {
|
|
1339
|
+
constructor() {
|
|
1340
|
+
super(...arguments);
|
|
1341
|
+
i(this, "priority", 60);
|
|
1342
|
+
i(this, "incompatibleTokens", ["t", "T"]);
|
|
1343
|
+
}
|
|
1344
|
+
parse(e, t, r) {
|
|
1345
|
+
switch (t) {
|
|
1346
|
+
case "m":
|
|
1347
|
+
return f(h.minute, e);
|
|
1348
|
+
case "mo":
|
|
1349
|
+
return r.ordinalNumber(e, { unit: "minute" });
|
|
1350
|
+
default:
|
|
1351
|
+
return w(t.length, e);
|
|
1352
|
+
}
|
|
1353
|
+
}
|
|
1354
|
+
validate(e, t) {
|
|
1355
|
+
return t >= 0 && t <= 59;
|
|
1356
|
+
}
|
|
1357
|
+
set(e, t, r) {
|
|
1358
|
+
return e.setMinutes(r, 0, 0), e;
|
|
1359
|
+
}
|
|
1360
|
+
}
|
|
1361
|
+
class Wt extends u {
|
|
1362
|
+
constructor() {
|
|
1363
|
+
super(...arguments);
|
|
1364
|
+
i(this, "priority", 50);
|
|
1365
|
+
i(this, "incompatibleTokens", ["t", "T"]);
|
|
1366
|
+
}
|
|
1367
|
+
parse(e, t, r) {
|
|
1368
|
+
switch (t) {
|
|
1369
|
+
case "s":
|
|
1370
|
+
return f(h.second, e);
|
|
1371
|
+
case "so":
|
|
1372
|
+
return r.ordinalNumber(e, { unit: "second" });
|
|
1373
|
+
default:
|
|
1374
|
+
return w(t.length, e);
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1377
|
+
validate(e, t) {
|
|
1378
|
+
return t >= 0 && t <= 59;
|
|
1379
|
+
}
|
|
1380
|
+
set(e, t, r) {
|
|
1381
|
+
return e.setSeconds(r, 0), e;
|
|
1382
|
+
}
|
|
1383
|
+
}
|
|
1384
|
+
class At extends u {
|
|
1385
|
+
constructor() {
|
|
1386
|
+
super(...arguments);
|
|
1387
|
+
i(this, "priority", 30);
|
|
1388
|
+
i(this, "incompatibleTokens", ["t", "T"]);
|
|
1389
|
+
}
|
|
1390
|
+
parse(e, t) {
|
|
1391
|
+
const r = (a) => Math.trunc(a * Math.pow(10, -t.length + 3));
|
|
1392
|
+
return y(w(t.length, e), r);
|
|
1393
|
+
}
|
|
1394
|
+
set(e, t, r) {
|
|
1395
|
+
return e.setMilliseconds(r), e;
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
class Ft extends u {
|
|
1399
|
+
constructor() {
|
|
1400
|
+
super(...arguments);
|
|
1401
|
+
i(this, "priority", 10);
|
|
1402
|
+
i(this, "incompatibleTokens", ["t", "T", "x"]);
|
|
1403
|
+
}
|
|
1404
|
+
parse(e, t) {
|
|
1405
|
+
switch (t) {
|
|
1406
|
+
case "X":
|
|
1407
|
+
return v(
|
|
1408
|
+
P.basicOptionalMinutes,
|
|
1409
|
+
e
|
|
1410
|
+
);
|
|
1411
|
+
case "XX":
|
|
1412
|
+
return v(P.basic, e);
|
|
1413
|
+
case "XXXX":
|
|
1414
|
+
return v(
|
|
1415
|
+
P.basicOptionalSeconds,
|
|
1416
|
+
e
|
|
1417
|
+
);
|
|
1418
|
+
case "XXXXX":
|
|
1419
|
+
return v(
|
|
1420
|
+
P.extendedOptionalSeconds,
|
|
1421
|
+
e
|
|
1422
|
+
);
|
|
1423
|
+
case "XXX":
|
|
1424
|
+
default:
|
|
1425
|
+
return v(P.extended, e);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
set(e, t, r) {
|
|
1429
|
+
return t.timestampIsSet ? e : _(
|
|
1430
|
+
e,
|
|
1431
|
+
e.getTime() - de(e) - r
|
|
1432
|
+
);
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
class Bt extends u {
|
|
1436
|
+
constructor() {
|
|
1437
|
+
super(...arguments);
|
|
1438
|
+
i(this, "priority", 10);
|
|
1439
|
+
i(this, "incompatibleTokens", ["t", "T", "X"]);
|
|
1440
|
+
}
|
|
1441
|
+
parse(e, t) {
|
|
1442
|
+
switch (t) {
|
|
1443
|
+
case "x":
|
|
1444
|
+
return v(
|
|
1445
|
+
P.basicOptionalMinutes,
|
|
1446
|
+
e
|
|
1447
|
+
);
|
|
1448
|
+
case "xx":
|
|
1449
|
+
return v(P.basic, e);
|
|
1450
|
+
case "xxxx":
|
|
1451
|
+
return v(
|
|
1452
|
+
P.basicOptionalSeconds,
|
|
1453
|
+
e
|
|
1454
|
+
);
|
|
1455
|
+
case "xxxxx":
|
|
1456
|
+
return v(
|
|
1457
|
+
P.extendedOptionalSeconds,
|
|
1458
|
+
e
|
|
1459
|
+
);
|
|
1460
|
+
case "xxx":
|
|
1461
|
+
default:
|
|
1462
|
+
return v(P.extended, e);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
set(e, t, r) {
|
|
1466
|
+
return t.timestampIsSet ? e : _(
|
|
1467
|
+
e,
|
|
1468
|
+
e.getTime() - de(e) - r
|
|
1469
|
+
);
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
class Gt extends u {
|
|
1473
|
+
constructor() {
|
|
1474
|
+
super(...arguments);
|
|
1475
|
+
i(this, "priority", 40);
|
|
1476
|
+
i(this, "incompatibleTokens", "*");
|
|
1477
|
+
}
|
|
1478
|
+
parse(e) {
|
|
1479
|
+
return we(e);
|
|
1480
|
+
}
|
|
1481
|
+
set(e, t, r) {
|
|
1482
|
+
return [_(e, r * 1e3), { timestampIsSet: !0 }];
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
class Vt extends u {
|
|
1486
|
+
constructor() {
|
|
1487
|
+
super(...arguments);
|
|
1488
|
+
i(this, "priority", 20);
|
|
1489
|
+
i(this, "incompatibleTokens", "*");
|
|
1490
|
+
}
|
|
1491
|
+
parse(e) {
|
|
1492
|
+
return we(e);
|
|
1493
|
+
}
|
|
1494
|
+
set(e, t, r) {
|
|
1495
|
+
return [_(e, r), { timestampIsSet: !0 }];
|
|
1496
|
+
}
|
|
1497
|
+
}
|
|
1498
|
+
const Xt = {
|
|
1499
|
+
G: new ut(),
|
|
1500
|
+
y: new lt(),
|
|
1501
|
+
Y: new dt(),
|
|
1502
|
+
R: new ft(),
|
|
1503
|
+
u: new wt(),
|
|
1504
|
+
Q: new ht(),
|
|
1505
|
+
q: new yt(),
|
|
1506
|
+
M: new pt(),
|
|
1507
|
+
L: new bt(),
|
|
1508
|
+
w: new xt(),
|
|
1509
|
+
I: new kt(),
|
|
1510
|
+
d: new Pt(),
|
|
1511
|
+
D: new vt(),
|
|
1512
|
+
E: new Mt(),
|
|
1513
|
+
e: new Ot(),
|
|
1514
|
+
c: new _t(),
|
|
1515
|
+
i: new Yt(),
|
|
1516
|
+
a: new Et(),
|
|
1517
|
+
b: new Ht(),
|
|
1518
|
+
B: new qt(),
|
|
1519
|
+
h: new Lt(),
|
|
1520
|
+
H: new Nt(),
|
|
1521
|
+
K: new Ct(),
|
|
1522
|
+
k: new Rt(),
|
|
1523
|
+
m: new Qt(),
|
|
1524
|
+
s: new Wt(),
|
|
1525
|
+
S: new At(),
|
|
1526
|
+
X: new Ft(),
|
|
1527
|
+
x: new Bt(),
|
|
1528
|
+
t: new Gt(),
|
|
1529
|
+
T: new Vt()
|
|
1530
|
+
}, Kt = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, zt = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Zt = /^'([^]*?)'?$/, jt = /''/g, $t = /\S/, Ut = /[a-zA-Z]/;
|
|
1531
|
+
function Jt(n, s, e, t) {
|
|
1532
|
+
var O, Q, B, V, Y, E, X, W;
|
|
1533
|
+
const r = () => _((t == null ? void 0 : t.in) || e, NaN), a = rt(), o = (t == null ? void 0 : t.locale) ?? a.locale ?? Ze, b = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((Q = (O = t == null ? void 0 : t.locale) == null ? void 0 : O.options) == null ? void 0 : Q.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((V = (B = a.locale) == null ? void 0 : B.options) == null ? void 0 : V.firstWeekContainsDate) ?? 1, x = (t == null ? void 0 : t.weekStartsOn) ?? ((E = (Y = t == null ? void 0 : t.locale) == null ? void 0 : Y.options) == null ? void 0 : E.weekStartsOn) ?? a.weekStartsOn ?? ((W = (X = a.locale) == null ? void 0 : X.options) == null ? void 0 : W.weekStartsOn) ?? 0;
|
|
1534
|
+
if (!s)
|
|
1535
|
+
return n ? r() : H(e, t == null ? void 0 : t.in);
|
|
1536
|
+
const M = {
|
|
1537
|
+
firstWeekContainsDate: b,
|
|
1538
|
+
weekStartsOn: x,
|
|
1539
|
+
locale: o
|
|
1540
|
+
}, q = [new ct(t == null ? void 0 : t.in, e)], C = s.match(zt).map((c) => {
|
|
1541
|
+
const d = c[0];
|
|
1542
|
+
if (d in ae) {
|
|
1543
|
+
const p = ae[d];
|
|
1544
|
+
return p(c, o.formatLong);
|
|
1545
|
+
}
|
|
1546
|
+
return c;
|
|
1547
|
+
}).join("").match(Kt), I = [];
|
|
1548
|
+
for (let c of C) {
|
|
1549
|
+
!(t != null && t.useAdditionalWeekYearTokens) && je(c) && ie(c, s, n), !(t != null && t.useAdditionalDayOfYearTokens) && $e(c) && ie(c, s, n);
|
|
1550
|
+
const d = c[0], p = Xt[d];
|
|
1551
|
+
if (p) {
|
|
1552
|
+
const { incompatibleTokens: T } = p;
|
|
1553
|
+
if (Array.isArray(T)) {
|
|
1554
|
+
const K = I.find(
|
|
1555
|
+
(A) => T.includes(A.token) || A.token === d
|
|
1556
|
+
);
|
|
1557
|
+
if (K)
|
|
1558
|
+
throw new RangeError(
|
|
1559
|
+
`The format string mustn't contain \`${K.fullToken}\` and \`${c}\` at the same time`
|
|
1560
|
+
);
|
|
1561
|
+
} else if (p.incompatibleTokens === "*" && I.length > 0)
|
|
1562
|
+
throw new RangeError(
|
|
1563
|
+
`The format string mustn't contain \`${c}\` and any other token at the same time`
|
|
1564
|
+
);
|
|
1565
|
+
I.push({ token: d, fullToken: c });
|
|
1566
|
+
const m = p.run(
|
|
1567
|
+
n,
|
|
1568
|
+
c,
|
|
1569
|
+
o.match,
|
|
1570
|
+
M
|
|
1571
|
+
);
|
|
1572
|
+
if (!m)
|
|
1573
|
+
return r();
|
|
1574
|
+
q.push(m.setter), n = m.rest;
|
|
1575
|
+
} else {
|
|
1576
|
+
if (d.match(Ut))
|
|
1577
|
+
throw new RangeError(
|
|
1578
|
+
"Format string contains an unescaped latin alphabet character `" + d + "`"
|
|
1579
|
+
);
|
|
1580
|
+
if (c === "''" ? c = "'" : d === "'" && (c = St(c)), n.indexOf(c) === 0)
|
|
1581
|
+
n = n.slice(c.length);
|
|
1582
|
+
else
|
|
1583
|
+
return r();
|
|
1584
|
+
}
|
|
1585
|
+
}
|
|
1586
|
+
if (n.length > 0 && $t.test(n))
|
|
1587
|
+
return r();
|
|
1588
|
+
const R = q.map((c) => c.priority).sort((c, d) => d - c).filter((c, d, p) => p.indexOf(c) === d).map(
|
|
1589
|
+
(c) => q.filter((d) => d.priority === c).sort((d, p) => p.subPriority - d.subPriority)
|
|
1590
|
+
).map((c) => c[0]);
|
|
1591
|
+
let g = H(e, t == null ? void 0 : t.in);
|
|
1592
|
+
if (isNaN(+g)) return r();
|
|
1593
|
+
const F = {};
|
|
1594
|
+
for (const c of R) {
|
|
1595
|
+
if (!c.validate(g, M))
|
|
1596
|
+
return r();
|
|
1597
|
+
const d = c.set(g, F, M);
|
|
1598
|
+
Array.isArray(d) ? (g = d[0], Object.assign(F, d[1])) : g = d;
|
|
1599
|
+
}
|
|
1600
|
+
return g;
|
|
1601
|
+
}
|
|
1602
|
+
function St(n) {
|
|
1603
|
+
return n.match(Zt)[1].replace(jt, "'");
|
|
1604
|
+
}
|
|
1605
|
+
const er = {
|
|
1606
|
+
id: "date-picker",
|
|
1607
|
+
capabilities: ["pick", "open", "close"],
|
|
1608
|
+
state: {
|
|
1609
|
+
value: {
|
|
1610
|
+
type: "iso-date",
|
|
1611
|
+
descriptionKey: "ui.agent.datePicker.state.value",
|
|
1612
|
+
description: "Currently-selected ISO date, or null.",
|
|
1613
|
+
read: (n) => {
|
|
1614
|
+
var s;
|
|
1615
|
+
return ((s = n.getValue()) == null ? void 0 : s.toISOString()) ?? null;
|
|
1616
|
+
}
|
|
1617
|
+
},
|
|
1618
|
+
isOpen: {
|
|
1619
|
+
type: "boolean",
|
|
1620
|
+
descriptionKey: "ui.agent.datePicker.state.isOpen",
|
|
1621
|
+
description: "Whether the calendar popover is open.",
|
|
1622
|
+
read: (n) => n.isOpen()
|
|
1623
|
+
}
|
|
1624
|
+
},
|
|
1625
|
+
actions: {
|
|
1626
|
+
set_date: {
|
|
1627
|
+
safety: "write",
|
|
1628
|
+
argsType: "{ date: string }",
|
|
1629
|
+
descriptionKey: "ui.agent.datePicker.actions.setDate",
|
|
1630
|
+
description: "Select a specific date (ISO yyyy-mm-dd).",
|
|
1631
|
+
invoke: (n, s) => {
|
|
1632
|
+
n.setValue(new Date(s.date));
|
|
1633
|
+
}
|
|
1634
|
+
},
|
|
1635
|
+
clear: {
|
|
1636
|
+
safety: "destructive",
|
|
1637
|
+
descriptionKey: "ui.agent.datePicker.actions.clear",
|
|
1638
|
+
description: "Clear the selected date.",
|
|
1639
|
+
invoke: (n) => {
|
|
1640
|
+
n.clear();
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
1643
|
+
open: {
|
|
1644
|
+
safety: "read",
|
|
1645
|
+
descriptionKey: "ui.agent.datePicker.actions.open",
|
|
1646
|
+
description: "Open the calendar popover.",
|
|
1647
|
+
invoke: (n) => {
|
|
1648
|
+
n.open();
|
|
1649
|
+
}
|
|
1650
|
+
},
|
|
1651
|
+
close: {
|
|
1652
|
+
safety: "read",
|
|
1653
|
+
descriptionKey: "ui.agent.datePicker.actions.close",
|
|
1654
|
+
description: "Close the calendar popover.",
|
|
1655
|
+
invoke: (n) => {
|
|
1656
|
+
n.close();
|
|
1657
|
+
}
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1660
|
+
domHooks: {
|
|
1661
|
+
root: {
|
|
1662
|
+
attr: "data-component",
|
|
1663
|
+
value: "date-picker",
|
|
1664
|
+
description: "Marks the DatePicker wrapper."
|
|
1665
|
+
},
|
|
1666
|
+
instanceId: {
|
|
1667
|
+
attr: "data-component-id",
|
|
1668
|
+
sourceProp: "id",
|
|
1669
|
+
description: "Sourced from the id prop."
|
|
1670
|
+
}
|
|
1671
|
+
}
|
|
1672
|
+
}, tr = Me(
|
|
1673
|
+
({
|
|
1674
|
+
value: n,
|
|
1675
|
+
defaultValue: s,
|
|
1676
|
+
onChange: e,
|
|
1677
|
+
minDate: t,
|
|
1678
|
+
maxDate: r,
|
|
1679
|
+
disabledDates: a,
|
|
1680
|
+
weekStartsOn: o,
|
|
1681
|
+
presets: b,
|
|
1682
|
+
size: x = "md",
|
|
1683
|
+
disabled: M,
|
|
1684
|
+
placeholder: q,
|
|
1685
|
+
className: C,
|
|
1686
|
+
id: I
|
|
1687
|
+
}, R) => {
|
|
1688
|
+
const { t: g, i18n: F } = Ee(), O = He(), Q = I ?? O.id, B = O.disabled || M, V = O.invalid ? "error" : "default", Y = qe(F.language), E = Le(F.language), X = q ?? g("ui.inputs.datePicker.placeholder", "Select date"), W = n !== void 0, [c, d] = G(
|
|
1689
|
+
n ?? s
|
|
1690
|
+
), p = W ? n : c, [T, m] = G(!1), [K, A] = G(
|
|
1691
|
+
p ? oe(p, E, { locale: Y }) : ""
|
|
1692
|
+
), [ne, z] = G(!1), [pe, $] = G(p ?? /* @__PURE__ */ new Date()), U = Oe(null);
|
|
1693
|
+
_e(() => {
|
|
1694
|
+
p ? (A(oe(p, E, { locale: Y })), z(!1)) : A("");
|
|
1695
|
+
}, [p, E, Y]);
|
|
1696
|
+
const be = Ne(t, r, a), me = se(
|
|
1697
|
+
(l) => t && Ce(l, t) || r && Re(l, r) ? !0 : Array.isArray(a) ? a.some(
|
|
1698
|
+
(k) => k.toDateString() === l.toDateString()
|
|
1699
|
+
) : typeof a == "function" ? a(l) : !1,
|
|
1700
|
+
[t, r, a]
|
|
1701
|
+
), L = se(
|
|
1702
|
+
(l) => {
|
|
1703
|
+
W || d(l), e == null || e(l);
|
|
1704
|
+
},
|
|
1705
|
+
[W, e]
|
|
1706
|
+
), xe = (l) => {
|
|
1707
|
+
const k = l.target.value;
|
|
1708
|
+
if (A(k), k.length === 0) {
|
|
1709
|
+
z(!1), L(void 0);
|
|
1710
|
+
return;
|
|
1711
|
+
}
|
|
1712
|
+
const N = Jt(k, E, /* @__PURE__ */ new Date(), { locale: Y });
|
|
1713
|
+
Ue(N) && !me(N) ? (z(!1), L(N), $(N)) : k.length === E.length && z(!0);
|
|
1714
|
+
}, ge = (l) => {
|
|
1715
|
+
l.key === "Enter" && T && (l.preventDefault(), m(!1)), l.key === "Escape" && T && (l.preventDefault(), m(!1)), l.key === "ArrowDown" && !T && (l.preventDefault(), m(!0));
|
|
1716
|
+
}, ke = (l) => {
|
|
1717
|
+
var k;
|
|
1718
|
+
l && (L(l), m(!1), (k = U.current) == null || k.focus());
|
|
1719
|
+
}, Te = (l) => {
|
|
1720
|
+
var N;
|
|
1721
|
+
const k = l.date();
|
|
1722
|
+
L(k), $(k), m(!1), (N = U.current) == null || N.focus();
|
|
1723
|
+
}, De = g("ui.inputs.datePicker.gridLabel", "Calendar"), J = Ie(
|
|
1724
|
+
() => ({
|
|
1725
|
+
getValue: () => p,
|
|
1726
|
+
setValue: (l) => L(l),
|
|
1727
|
+
clear: () => L(void 0),
|
|
1728
|
+
isOpen: () => T,
|
|
1729
|
+
open: () => m(!0),
|
|
1730
|
+
close: () => m(!1)
|
|
1731
|
+
}),
|
|
1732
|
+
[p, L, T]
|
|
1733
|
+
);
|
|
1734
|
+
return Ye(R, () => J, [J]), Je(er, J, Q), /* @__PURE__ */ D(Z.Root, { open: T, onOpenChange: m, children: /* @__PURE__ */ S(
|
|
1735
|
+
"div",
|
|
1736
|
+
{
|
|
1737
|
+
className: C,
|
|
1738
|
+
"data-component": "date-picker",
|
|
1739
|
+
"data-component-id": Q,
|
|
1740
|
+
children: [
|
|
1741
|
+
/* @__PURE__ */ D(Z.Trigger, { asChild: !0, disabled: B, children: /* @__PURE__ */ S("div", { className: "ds:relative", children: [
|
|
1742
|
+
/* @__PURE__ */ D(
|
|
1743
|
+
"input",
|
|
1744
|
+
{
|
|
1745
|
+
ref: U,
|
|
1746
|
+
id: Q,
|
|
1747
|
+
type: "text",
|
|
1748
|
+
value: K,
|
|
1749
|
+
placeholder: X,
|
|
1750
|
+
disabled: B,
|
|
1751
|
+
"aria-describedby": O.describedBy || void 0,
|
|
1752
|
+
"aria-invalid": O.invalid || ne || void 0,
|
|
1753
|
+
"aria-required": O.required || void 0,
|
|
1754
|
+
"aria-haspopup": "dialog",
|
|
1755
|
+
"aria-expanded": T,
|
|
1756
|
+
onChange: xe,
|
|
1757
|
+
onKeyDown: ge,
|
|
1758
|
+
onClick: () => !T && m(!0),
|
|
1759
|
+
className: Qe({ size: x, tone: ne ? "error" : V })
|
|
1760
|
+
}
|
|
1761
|
+
),
|
|
1762
|
+
/* @__PURE__ */ D("span", { "aria-hidden": "true", className: Ae({ size: x }), children: /* @__PURE__ */ D(We, {}) })
|
|
1763
|
+
] }) }),
|
|
1764
|
+
/* @__PURE__ */ D(Z.Portal, { children: /* @__PURE__ */ D(
|
|
1765
|
+
Z.Content,
|
|
1766
|
+
{
|
|
1767
|
+
sideOffset: 4,
|
|
1768
|
+
align: "start",
|
|
1769
|
+
className: Ve(),
|
|
1770
|
+
onOpenAutoFocus: (l) => {
|
|
1771
|
+
l.preventDefault();
|
|
1772
|
+
},
|
|
1773
|
+
children: /* @__PURE__ */ S("div", { className: "ds:flex ds:gap-[var(--spacing-md)]", children: [
|
|
1774
|
+
b && b.length > 0 ? /* @__PURE__ */ D("div", { className: "ds:flex ds:flex-col ds:gap-[var(--spacing-xs)] ds:min-w-[8rem] ds:border-e ds:border-border ds:pe-[var(--spacing-md)]", children: b.map((l) => /* @__PURE__ */ D(
|
|
1775
|
+
"button",
|
|
1776
|
+
{
|
|
1777
|
+
type: "button",
|
|
1778
|
+
onClick: () => Te(l),
|
|
1779
|
+
className: Fe(),
|
|
1780
|
+
children: l.label
|
|
1781
|
+
},
|
|
1782
|
+
l.label
|
|
1783
|
+
)) }) : null,
|
|
1784
|
+
/* @__PURE__ */ D("div", { role: "region", "aria-label": De, children: /* @__PURE__ */ D(
|
|
1785
|
+
Be,
|
|
1786
|
+
{
|
|
1787
|
+
mode: "single",
|
|
1788
|
+
selected: p,
|
|
1789
|
+
onSelect: ke,
|
|
1790
|
+
month: pe,
|
|
1791
|
+
onMonthChange: $,
|
|
1792
|
+
disabled: be,
|
|
1793
|
+
weekStartsOn: o,
|
|
1794
|
+
locale: Y,
|
|
1795
|
+
showOutsideDays: !0,
|
|
1796
|
+
fixedWeeks: !0,
|
|
1797
|
+
components: { Chevron: Ge }
|
|
1798
|
+
}
|
|
1799
|
+
) })
|
|
1800
|
+
] })
|
|
1801
|
+
}
|
|
1802
|
+
) })
|
|
1803
|
+
]
|
|
1804
|
+
}
|
|
1805
|
+
) });
|
|
1806
|
+
}
|
|
1807
|
+
);
|
|
1808
|
+
tr.displayName = "DatePicker";
|
|
1809
|
+
export {
|
|
1810
|
+
tr as D,
|
|
1811
|
+
er as d
|
|
1812
|
+
};
|
|
1813
|
+
//# sourceMappingURL=date-picker-BqPTn7bO.js.map
|