laif-ds 0.1.9 → 0.1.11
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/_virtual/index2.js +5 -2
- package/dist/_virtual/index3.js +5 -5
- package/dist/_virtual/index4.js +2 -5
- package/dist/_virtual/index5.js +2 -5
- package/dist/_virtual/index6.js +5 -2
- package/dist/components/ui/accordion.js +20 -20
- package/dist/components/ui/alert-dialog.js +41 -41
- package/dist/components/ui/alert.js +10 -10
- package/dist/components/ui/aspect-ratio.js +4 -4
- package/dist/components/ui/async-select.js +112 -112
- package/dist/components/ui/audio-visualizer.js +26 -26
- package/dist/components/ui/avatar.js +17 -17
- package/dist/components/ui/badge.js +9 -10
- package/dist/components/ui/breadcrumb.js +24 -25
- package/dist/components/ui/button.js +17 -17
- package/dist/components/ui/calendar.js +8 -8
- package/dist/components/ui/card.js +15 -15
- package/dist/components/ui/carousel.js +66 -66
- package/dist/components/ui/chart.js +80 -80
- package/dist/components/ui/chat-message.js +104 -104
- package/dist/components/ui/chat.js +109 -109
- package/dist/components/ui/checkbox.js +5 -5
- package/dist/components/ui/collapsible.js +10 -10
- package/dist/components/ui/command.js +52 -52
- package/dist/components/ui/context-menu.js +61 -61
- package/dist/components/ui/copy-button.js +19 -19
- package/dist/components/ui/data-table.js +73 -73
- package/dist/components/ui/date-picker.js +18 -18
- package/dist/components/ui/dialog.js +49 -49
- package/dist/components/ui/drawer.js +43 -43
- package/dist/components/ui/file-preview.js +49 -49
- package/dist/components/ui/form.js +33 -33
- package/dist/components/ui/gantt/assets/icons/MinusSquareOutlined.js +5 -5
- package/dist/components/ui/gantt/assets/icons/PlusSquareOutlined.js +6 -6
- package/dist/components/ui/gantt/components/Chart/Bars/Bars.js +28 -28
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarItem/BarItem.js +80 -80
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsItems/BarItems.js +13 -13
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/BarsRow.js +10 -10
- package/dist/components/ui/gantt/components/Chart/Bars/BarsRow/RepeteadBars/RepeteadBars.js +25 -25
- package/dist/components/ui/gantt/components/Chart/Chart.js +30 -30
- package/dist/components/ui/gantt/components/Chart/Scale/Scale.js +45 -45
- package/dist/components/ui/gantt/components/Chart/Tree/Tree.js +37 -37
- package/dist/components/ui/gantt/components/Controls/Controls.js +53 -53
- package/dist/components/ui/gantt/components/Gantt/Gantt.js +29 -29
- package/dist/components/ui/hover-card.js +4 -4
- package/dist/components/ui/icon.js +9 -9
- package/dist/components/ui/input-otp.js +14 -14
- package/dist/components/ui/input-selector.js +38 -38
- package/dist/components/ui/input.js +32 -32
- package/dist/components/ui/interrupt-prompt.js +9 -10
- package/dist/components/ui/label.js +4 -4
- package/dist/components/ui/markdown-renderer.js +60 -63
- package/dist/components/ui/menubar.js +89 -89
- package/dist/components/ui/message-input.js +149 -150
- package/dist/components/ui/message-list.js +15 -15
- package/dist/components/ui/multiple-selector.js +159 -159
- package/dist/components/ui/navigation-menu.js +44 -44
- package/dist/components/ui/pagination.js +39 -39
- package/dist/components/ui/popover.js +13 -13
- package/dist/components/ui/progress.js +14 -14
- package/dist/components/ui/prompt-suggestions.js +10 -10
- package/dist/components/ui/radio-group.js +15 -15
- package/dist/components/ui/resizable.js +13 -13
- package/dist/components/ui/scroll-area.js +25 -25
- package/dist/components/ui/select.js +80 -80
- package/dist/components/ui/separator.js +4 -4
- package/dist/components/ui/sheet.js +48 -48
- package/dist/components/ui/sidebar.js +178 -182
- package/dist/components/ui/skeleton.js +4 -4
- package/dist/components/ui/switch.js +5 -5
- package/dist/components/ui/table.js +14 -14
- package/dist/components/ui/tabs.js +10 -10
- package/dist/components/ui/textarea.js +2 -2
- package/dist/components/ui/toaster.js +2 -2
- package/dist/components/ui/toggle-group.js +6 -6
- package/dist/components/ui/toggle.js +2 -2
- package/dist/components/ui/tooltip.js +19 -19
- package/dist/components/ui/typing-indicator.js +7 -7
- package/dist/components/ui/typo.js +10 -10
- package/dist/dist/components/ui/checkbox.js +6 -6
- package/dist/dist/components/ui/scroll-area.js +30 -30
- package/dist/dist/components/ui/table.js +15 -15
- package/dist/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +60 -60
- package/dist/dist/node_modules/@radix-ui/react-context/dist/index.js +19 -19
- package/dist/dist/node_modules/@radix-ui/react-direction/dist/index.js +3 -2
- package/dist/dist/node_modules/@radix-ui/react-primitive/dist/index.js +2 -2
- package/dist/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +116 -116
- package/dist/dist/node_modules/@radix-ui/react-slot/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-accordion/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-alert-dialog/dist/index.js +65 -65
- package/dist/node_modules/@radix-ui/react-arrow/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-aspect-ratio/dist/index.js +12 -12
- package/dist/node_modules/@radix-ui/react-avatar/dist/index.js +21 -21
- package/dist/node_modules/@radix-ui/react-checkbox/dist/index.js +58 -58
- package/dist/node_modules/@radix-ui/react-collapsible/dist/index.js +49 -49
- package/dist/node_modules/@radix-ui/react-collection/dist/index.js +16 -16
- package/dist/node_modules/@radix-ui/react-context/dist/index.js +36 -36
- package/dist/node_modules/@radix-ui/react-context-menu/dist/index.js +113 -113
- package/dist/node_modules/@radix-ui/react-dialog/dist/index.js +100 -100
- package/dist/node_modules/@radix-ui/react-direction/dist/index.js +1 -1
- package/dist/node_modules/@radix-ui/react-dismissable-layer/dist/index.js +18 -18
- package/dist/node_modules/@radix-ui/react-focus-scope/dist/index.js +9 -9
- package/dist/node_modules/@radix-ui/react-hover-card/dist/index.js +50 -50
- package/dist/node_modules/@radix-ui/react-label/dist/index.js +4 -4
- package/dist/node_modules/@radix-ui/react-menu/dist/index.js +223 -223
- package/dist/node_modules/@radix-ui/react-menubar/dist/index.js +95 -95
- package/dist/node_modules/@radix-ui/react-navigation-menu/dist/index.js +260 -260
- package/dist/node_modules/@radix-ui/react-popover/dist/index.js +92 -92
- package/dist/node_modules/@radix-ui/react-popper/dist/index.js +35 -35
- package/dist/node_modules/@radix-ui/react-portal/dist/index.js +8 -8
- package/dist/node_modules/@radix-ui/react-primitive/dist/index.js +7 -7
- package/dist/node_modules/@radix-ui/react-progress/dist/index.js +22 -22
- package/dist/node_modules/@radix-ui/react-radio-group/dist/index.js +105 -105
- package/dist/node_modules/@radix-ui/react-roving-focus/dist/index.js +29 -29
- package/dist/node_modules/@radix-ui/react-scroll-area/dist/index.js +157 -157
- package/dist/node_modules/@radix-ui/react-select/dist/index.js +345 -345
- package/dist/node_modules/@radix-ui/react-separator/dist/index.js +6 -6
- package/dist/node_modules/@radix-ui/react-slot/dist/index.js +19 -19
- package/dist/node_modules/@radix-ui/react-switch/dist/index.js +46 -46
- package/dist/node_modules/@radix-ui/react-tabs/dist/index.js +48 -48
- package/dist/node_modules/@radix-ui/react-toggle/dist/index.js +10 -10
- package/dist/node_modules/@radix-ui/react-toggle-group/dist/index.js +67 -71
- package/dist/node_modules/@radix-ui/react-tooltip/dist/index.js +77 -77
- package/dist/node_modules/@radix-ui/react-visually-hidden/dist/index.js +4 -4
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +1 -1
- package/dist/node_modules/react-day-picker/dist/index.esm.js +483 -483
- package/dist/node_modules/react-is/index.js +1 -1
- package/dist/node_modules/react-markdown/lib/index.js +39 -39
- package/dist/node_modules/style-to-object/cjs/index.js +1 -1
- package/dist/node_modules/unified/lib/index.js +1 -1
- package/package.json +3 -2
- package/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/_virtual/jsx-runtime.js +0 -6
- package/dist/dist/_virtual/jsx-runtime2.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.development.js +0 -5
- package/dist/dist/_virtual/react-jsx-runtime.production.js +0 -5
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/dist/node_modules/react/jsx-runtime.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animate/single-value.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/animation/animators/AcceleratedAnimation.js +0 -206
- package/dist/node_modules/framer-motion/dist/es/animation/animators/BaseAnimation.js +0 -83
- package/dist/node_modules/framer-motion/dist/es/animation/animators/MainThreadAnimation.js +0 -148
- package/dist/node_modules/framer-motion/dist/es/animation/animators/drivers/driver-frameloop.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/accelerated-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/animation/animators/utils/can-animate.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/index.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/get-final-keyframe.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/animation/animators/waapi/utils/supports-waapi.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/generators/inertia.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/animation/generators/keyframes.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/defaults.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/find.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/animation/generators/spring/index.js +0 -93
- package/dist/node_modules/framer-motion/dist/es/animation/generators/utils/velocity.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/motion-value.js +0 -48
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-target.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element-variant.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/animation/interfaces/visual-element.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/data-id.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/optimized-appear/get-appear-id.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/default-transitions.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animatable.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-animation-controls.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-keyframes-target.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-none.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-transition-defined.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/anticipate.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/easing/back.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/easing/circ.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/easing/cubic-bezier.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/easing/ease.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/mirror.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/modifiers/reverse.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/is-easing-array.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/easing/utils/map.js +0 -33
- package/dist/node_modules/framer-motion/dist/es/events/add-dom-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/frameloop/batcher.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/frameloop/frame.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/frameloop/microtask.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/frameloop/render-step.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/frameloop/sync-time.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -257
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -69
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -86
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/Feature.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -75
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -45
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -54
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/projection/animation/mix-values.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/conversion.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/copy.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-apply.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-calc.js +0 -37
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/delta-remove.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/models.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/projection/geometry/utils.js +0 -35
- package/dist/node_modules/framer-motion/dist/es/projection/node/DocumentProjectionNode.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/node/HTMLProjectionNode.js +0 -26
- package/dist/node_modules/framer-motion/dist/es/projection/node/create-projection-node.js +0 -615
- package/dist/node_modules/framer-motion/dist/es/projection/node/state.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/projection/shared/stack.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/projection/styles/scale-correction.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/projection/styles/transform.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/projection/utils/each-axis.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/projection/utils/has-transform.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/projection/utils/measure.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/VisualElement.js +0 -227
- package/dist/node_modules/framer-motion/dist/es/render/components/create-factory.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/create.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMKeyframesResolver.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/camel-to-dash.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/css-variables-conversion.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-css-variable.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-element.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/unit-conversion.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/animatable-none.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/defaults.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/dimensions.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/find.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/get-as-type.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number-browser.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/number.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/test.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-auto.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/render/dom/value-types/type-int.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/HTMLVisualElement.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/render/html/config-motion.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-styles.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/build-transform.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-position.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/keys-transform.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/make-none-animatable.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/render.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/scrape-motion-values.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/store.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/SVGVisualElement.js +0 -41
- package/dist/node_modules/framer-motion/dist/es/render/svg/config-motion.js +0 -55
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -31
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/build-attrs.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/camel-case-attrs.js +0 -29
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/is-svg-tag.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/path.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/render.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/scrape-motion-values.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/transform-origin.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/render/utils/KeyframesResolver.js +0 -77
- package/dist/node_modules/framer-motion/dist/es/render/utils/animation-state.js +0 -125
- package/dist/node_modules/framer-motion/dist/es/render/utils/compare-by-depth.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/render/utils/flat-tree.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/utils/get-variant-context.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-controlling-variants.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/render/utils/is-variant-label.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/utils/motion-values.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-dynamic-variants.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/utils/resolve-variants.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/render/utils/setters.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/render/utils/variant-props.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/GlobalConfig.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/array.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/utils/clamp.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/delay.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/hsla-to-rgba.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-numerical-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/is-zero-value-string.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/color.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/mix/complex.js +0 -53
- package/dist/node_modules/framer-motion/dist/es/utils/mix/immediate.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/mix/index.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/mix/number.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/mix/visibility.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/default.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/fill.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/offsets/time.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/pipe.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/index.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/state.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/resolve-value.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/shallow-compare.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/utils/subscription-manager.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/velocity-per-second.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/utils/warn-once.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/index.js +0 -208
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hex.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/value/types/color/hsla.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/value/types/color/index.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/value/types/color/rgba.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/value/types/color/utils.js +0 -19
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/filter.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/value/types/complex/index.js +0 -50
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/index.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/numbers/units.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/float-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/is-nullish.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/sanitize.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/types/utils/single-color-regex.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/add-will-change.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-will-change/is.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/value/utils/is-motion-value.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/value/utils/resolve-motion-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/controls/BaseGroup.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/controls/Group.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/attach-timeline.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/easing.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/is-bezier-definition.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -13
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -6
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -248
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -36
- package/dist/node_modules/react/jsx-runtime.js +0 -11
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useState as
|
|
4
|
-
import { startOfMonth as
|
|
5
|
-
import { endOfMonth as
|
|
6
|
-
import { startOfDay as
|
|
7
|
-
import { enUS as
|
|
8
|
-
import { addMonths as
|
|
9
|
-
import { differenceInCalendarMonths as
|
|
10
|
-
import { isSameMonth as
|
|
11
|
-
import { isBefore as
|
|
12
|
-
import { isSameDay as
|
|
13
|
-
import { addDays as
|
|
14
|
-
import { subDays as
|
|
15
|
-
import { differenceInCalendarDays as
|
|
16
|
-
import { getWeeksInMonth as
|
|
17
|
-
import { addWeeks as
|
|
18
|
-
import { getUnixTime as
|
|
19
|
-
import { formatDate as
|
|
20
|
-
import { isAfter as
|
|
21
|
-
import { addYears as
|
|
22
|
-
import { max as
|
|
23
|
-
import { min as
|
|
24
|
-
import { isSameYear as
|
|
25
|
-
import { setMonth as
|
|
26
|
-
import { setYear as
|
|
27
|
-
import { startOfYear as
|
|
28
|
-
import { endOfISOWeek as
|
|
29
|
-
import { endOfWeek as
|
|
30
|
-
import { startOfISOWeek as
|
|
31
|
-
import { startOfWeek as
|
|
32
|
-
import { getISOWeek as
|
|
33
|
-
import { getWeek as
|
|
34
|
-
import { isDate as
|
|
2
|
+
import { jsx as s, jsxs as P, Fragment as L } from "react/jsx-runtime";
|
|
3
|
+
import { useState as B, useEffect as V, createContext as I, useContext as T, useLayoutEffect as Ze, forwardRef as Ge, useRef as qe } from "react";
|
|
4
|
+
import { startOfMonth as C } from "../../date-fns/startOfMonth.js";
|
|
5
|
+
import { endOfMonth as ie } from "../../date-fns/endOfMonth.js";
|
|
6
|
+
import { startOfDay as pe } from "../../date-fns/startOfDay.js";
|
|
7
|
+
import { enUS as Xe } from "../../date-fns/locale/en-US.js";
|
|
8
|
+
import { addMonths as S } from "../../date-fns/addMonths.js";
|
|
9
|
+
import { differenceInCalendarMonths as Y } from "../../date-fns/differenceInCalendarMonths.js";
|
|
10
|
+
import { isSameMonth as le } from "../../date-fns/isSameMonth.js";
|
|
11
|
+
import { isBefore as Me } from "../../date-fns/isBefore.js";
|
|
12
|
+
import { isSameDay as N } from "../../date-fns/isSameDay.js";
|
|
13
|
+
import { addDays as k } from "../../date-fns/addDays.js";
|
|
14
|
+
import { subDays as Q } from "../../date-fns/subDays.js";
|
|
15
|
+
import { differenceInCalendarDays as W } from "../../date-fns/differenceInCalendarDays.js";
|
|
16
|
+
import { getWeeksInMonth as Je } from "../../date-fns/getWeeksInMonth.js";
|
|
17
|
+
import { addWeeks as ae } from "../../date-fns/addWeeks.js";
|
|
18
|
+
import { getUnixTime as Qe } from "../../date-fns/getUnixTime.js";
|
|
19
|
+
import { formatDate as E } from "../../date-fns/format.js";
|
|
20
|
+
import { isAfter as oe } from "../../date-fns/isAfter.js";
|
|
21
|
+
import { addYears as $e } from "../../date-fns/addYears.js";
|
|
22
|
+
import { max as en } from "../../date-fns/max.js";
|
|
23
|
+
import { min as nn } from "../../date-fns/min.js";
|
|
24
|
+
import { isSameYear as rn } from "../../date-fns/isSameYear.js";
|
|
25
|
+
import { setMonth as $ } from "../../date-fns/setMonth.js";
|
|
26
|
+
import { setYear as be } from "../../date-fns/setYear.js";
|
|
27
|
+
import { startOfYear as tn } from "../../date-fns/startOfYear.js";
|
|
28
|
+
import { endOfISOWeek as Ne } from "../../date-fns/endOfISOWeek.js";
|
|
29
|
+
import { endOfWeek as ke } from "../../date-fns/endOfWeek.js";
|
|
30
|
+
import { startOfISOWeek as se } from "../../date-fns/startOfISOWeek.js";
|
|
31
|
+
import { startOfWeek as de } from "../../date-fns/startOfWeek.js";
|
|
32
|
+
import { getISOWeek as an } from "../../date-fns/getISOWeek.js";
|
|
33
|
+
import { getWeek as on } from "../../date-fns/getWeek.js";
|
|
34
|
+
import { isDate as Ce } from "../../date-fns/isDate.js";
|
|
35
35
|
var y = function() {
|
|
36
36
|
return y = Object.assign || function(r) {
|
|
37
37
|
for (var n, t = 1, a = arguments.length; t < a; t++) {
|
|
@@ -41,7 +41,7 @@ var y = function() {
|
|
|
41
41
|
return r;
|
|
42
42
|
}, y.apply(this, arguments);
|
|
43
43
|
};
|
|
44
|
-
function
|
|
44
|
+
function ln(e, r) {
|
|
45
45
|
var n = {};
|
|
46
46
|
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && r.indexOf(t) < 0 && (n[t] = e[t]);
|
|
47
47
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -49,21 +49,21 @@ function an(e, r) {
|
|
|
49
49
|
r.indexOf(t[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[a]) && (n[t[a]] = e[t[a]]);
|
|
50
50
|
return n;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function xe(e, r, n) {
|
|
53
53
|
for (var t = 0, a = r.length, o; t < a; t++)
|
|
54
54
|
(o || !(t in r)) && (o || (o = Array.prototype.slice.call(r, 0, t)), o[t] = r[t]);
|
|
55
55
|
return e.concat(o || Array.prototype.slice.call(r));
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function A(e) {
|
|
58
58
|
return e.mode === "multiple";
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function j(e) {
|
|
61
61
|
return e.mode === "range";
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function z(e) {
|
|
64
64
|
return e.mode === "single";
|
|
65
65
|
}
|
|
66
|
-
var
|
|
66
|
+
var sn = {
|
|
67
67
|
root: "rdp",
|
|
68
68
|
multiple_months: "rdp-multiple_months",
|
|
69
69
|
with_weeknumber: "rdp-with_weeknumber",
|
|
@@ -106,63 +106,63 @@ var on = {
|
|
|
106
106
|
day_range_end: "rdp-day_range_end",
|
|
107
107
|
day_range_middle: "rdp-day_range_middle"
|
|
108
108
|
};
|
|
109
|
-
function
|
|
110
|
-
return
|
|
109
|
+
function dn(e, r) {
|
|
110
|
+
return E(e, "LLLL y", r);
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
return
|
|
112
|
+
function un(e, r) {
|
|
113
|
+
return E(e, "d", r);
|
|
114
114
|
}
|
|
115
|
-
function
|
|
116
|
-
return
|
|
115
|
+
function cn(e, r) {
|
|
116
|
+
return E(e, "LLLL", r);
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function fn(e) {
|
|
119
119
|
return "".concat(e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
122
|
-
return
|
|
121
|
+
function vn(e, r) {
|
|
122
|
+
return E(e, "cccccc", r);
|
|
123
123
|
}
|
|
124
|
-
function
|
|
125
|
-
return
|
|
124
|
+
function mn(e, r) {
|
|
125
|
+
return E(e, "yyyy", r);
|
|
126
126
|
}
|
|
127
|
-
var
|
|
127
|
+
var hn = /* @__PURE__ */ Object.freeze({
|
|
128
128
|
__proto__: null,
|
|
129
|
-
formatCaption:
|
|
130
|
-
formatDay:
|
|
131
|
-
formatMonthCaption:
|
|
132
|
-
formatWeekNumber:
|
|
133
|
-
formatWeekdayName:
|
|
134
|
-
formatYearCaption:
|
|
135
|
-
}),
|
|
136
|
-
return
|
|
137
|
-
},
|
|
129
|
+
formatCaption: dn,
|
|
130
|
+
formatDay: un,
|
|
131
|
+
formatMonthCaption: cn,
|
|
132
|
+
formatWeekNumber: fn,
|
|
133
|
+
formatWeekdayName: vn,
|
|
134
|
+
formatYearCaption: mn
|
|
135
|
+
}), yn = function(e, r, n) {
|
|
136
|
+
return E(e, "do MMMM (EEEE)", n);
|
|
137
|
+
}, pn = function() {
|
|
138
138
|
return "Month: ";
|
|
139
|
-
},
|
|
139
|
+
}, bn = function() {
|
|
140
140
|
return "Go to next month";
|
|
141
|
-
},
|
|
141
|
+
}, _n = function() {
|
|
142
142
|
return "Go to previous month";
|
|
143
|
-
},
|
|
144
|
-
return
|
|
145
|
-
},
|
|
143
|
+
}, gn = function(e, r) {
|
|
144
|
+
return E(e, "cccc", r);
|
|
145
|
+
}, Dn = function(e) {
|
|
146
146
|
return "Week n. ".concat(e);
|
|
147
|
-
},
|
|
147
|
+
}, wn = function() {
|
|
148
148
|
return "Year: ";
|
|
149
|
-
},
|
|
149
|
+
}, Mn = /* @__PURE__ */ Object.freeze({
|
|
150
150
|
__proto__: null,
|
|
151
|
-
labelDay:
|
|
152
|
-
labelMonthDropdown:
|
|
153
|
-
labelNext:
|
|
154
|
-
labelPrevious:
|
|
155
|
-
labelWeekNumber:
|
|
156
|
-
labelWeekday:
|
|
157
|
-
labelYearDropdown:
|
|
151
|
+
labelDay: yn,
|
|
152
|
+
labelMonthDropdown: pn,
|
|
153
|
+
labelNext: bn,
|
|
154
|
+
labelPrevious: _n,
|
|
155
|
+
labelWeekNumber: Dn,
|
|
156
|
+
labelWeekday: gn,
|
|
157
|
+
labelYearDropdown: wn
|
|
158
158
|
});
|
|
159
|
-
function
|
|
160
|
-
var e = "buttons", r =
|
|
159
|
+
function Nn() {
|
|
160
|
+
var e = "buttons", r = sn, n = Xe, t = {}, a = {}, o = 1, i = {}, l = /* @__PURE__ */ new Date();
|
|
161
161
|
return {
|
|
162
162
|
captionLayout: e,
|
|
163
163
|
classNames: r,
|
|
164
|
-
formatters:
|
|
165
|
-
labels:
|
|
164
|
+
formatters: hn,
|
|
165
|
+
labels: Mn,
|
|
166
166
|
locale: n,
|
|
167
167
|
modifiersClassNames: t,
|
|
168
168
|
modifiers: a,
|
|
@@ -172,133 +172,133 @@ function Dn() {
|
|
|
172
172
|
mode: "default"
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
function
|
|
175
|
+
function kn(e) {
|
|
176
176
|
var r = e.fromYear, n = e.toYear, t = e.fromMonth, a = e.toMonth, o = e.fromDate, i = e.toDate;
|
|
177
|
-
return t ? o =
|
|
178
|
-
fromDate: o ?
|
|
179
|
-
toDate: i ?
|
|
177
|
+
return t ? o = C(t) : r && (o = new Date(r, 0, 1)), a ? i = ie(a) : n && (i = new Date(n, 11, 31)), {
|
|
178
|
+
fromDate: o ? pe(o) : void 0,
|
|
179
|
+
toDate: i ? pe(i) : void 0
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
var
|
|
183
|
-
function
|
|
184
|
-
var r, n = e.initialProps, t =
|
|
182
|
+
var Pe = I(void 0);
|
|
183
|
+
function Cn(e) {
|
|
184
|
+
var r, n = e.initialProps, t = Nn(), a = kn(n), o = a.fromDate, i = a.toDate, l = (r = n.captionLayout) !== null && r !== void 0 ? r : t.captionLayout;
|
|
185
185
|
l !== "buttons" && (!o || !i) && (l = "buttons");
|
|
186
186
|
var d;
|
|
187
|
-
(
|
|
187
|
+
(z(n) || A(n) || j(n)) && (d = n.onSelect);
|
|
188
188
|
var c = y(y(y({}, t), n), { captionLayout: l, classNames: y(y({}, t.classNames), n.classNames), components: y({}, n.components), formatters: y(y({}, t.formatters), n.formatters), fromDate: o, labels: y(y({}, t.labels), n.labels), mode: n.mode || t.mode, modifiers: y(y({}, t.modifiers), n.modifiers), modifiersClassNames: y(y({}, t.modifiersClassNames), n.modifiersClassNames), onSelect: d, styles: y(y({}, t.styles), n.styles), toDate: i });
|
|
189
|
-
return s
|
|
189
|
+
return s(Pe.Provider, { value: c, children: e.children });
|
|
190
190
|
}
|
|
191
|
-
function
|
|
192
|
-
var e =
|
|
191
|
+
function D() {
|
|
192
|
+
var e = T(Pe);
|
|
193
193
|
if (!e)
|
|
194
194
|
throw new Error("useDayPicker must be used within a DayPickerProvider.");
|
|
195
195
|
return e;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
var r =
|
|
199
|
-
return s
|
|
197
|
+
function Se(e) {
|
|
198
|
+
var r = D(), n = r.locale, t = r.classNames, a = r.styles, o = r.formatters.formatCaption;
|
|
199
|
+
return s("div", { className: t.caption_label, style: a.caption_label, "aria-live": "polite", role: "presentation", id: e.id, children: o(e.displayMonth, { locale: n }) });
|
|
200
200
|
}
|
|
201
|
-
function
|
|
202
|
-
return s
|
|
201
|
+
function xn(e) {
|
|
202
|
+
return s("svg", y({ width: "8px", height: "8px", viewBox: "0 0 120 120", "data-testid": "iconDropdown" }, e, { children: s("path", { d: "M4.22182541,48.2218254 C8.44222828,44.0014225 15.2388494,43.9273804 19.5496459,47.9996989 L19.7781746,48.2218254 L60,88.443 L100.221825,48.2218254 C104.442228,44.0014225 111.238849,43.9273804 115.549646,47.9996989 L115.778175,48.2218254 C119.998577,52.4422283 120.07262,59.2388494 116.000301,63.5496459 L115.778175,63.7781746 L67.7781746,111.778175 C63.5577717,115.998577 56.7611506,116.07262 52.4503541,112.000301 L52.2218254,111.778175 L4.22182541,63.7781746 C-0.0739418023,59.4824074 -0.0739418023,52.5175926 4.22182541,48.2218254 Z", fill: "currentColor", fillRule: "nonzero" }) }));
|
|
203
203
|
}
|
|
204
|
-
function
|
|
205
|
-
var r, n, t = e.onChange, a = e.value, o = e.children, i = e.caption, l = e.className, d = e.style, c =
|
|
206
|
-
return
|
|
204
|
+
function Oe(e) {
|
|
205
|
+
var r, n, t = e.onChange, a = e.value, o = e.children, i = e.caption, l = e.className, d = e.style, c = D(), u = (n = (r = c.components) === null || r === void 0 ? void 0 : r.IconDropdown) !== null && n !== void 0 ? n : xn;
|
|
206
|
+
return P("div", { className: l, style: d, children: [s("span", { className: c.classNames.vhidden, children: e["aria-label"] }), s("select", { name: e.name, "aria-label": e["aria-label"], className: c.classNames.dropdown, style: c.styles.dropdown, value: a, onChange: t, children: o }), P("div", { className: c.classNames.caption_label, style: c.styles.caption_label, "aria-hidden": "true", children: [i, s(u, { className: c.classNames.dropdown_icon, style: c.styles.dropdown_icon })] })] });
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
var r, n =
|
|
208
|
+
function Pn(e) {
|
|
209
|
+
var r, n = D(), t = n.fromDate, a = n.toDate, o = n.styles, i = n.locale, l = n.formatters.formatMonthCaption, d = n.classNames, c = n.components, u = n.labels.labelMonthDropdown;
|
|
210
210
|
if (!t)
|
|
211
|
-
return s
|
|
211
|
+
return s(L, {});
|
|
212
212
|
if (!a)
|
|
213
|
-
return s
|
|
213
|
+
return s(L, {});
|
|
214
214
|
var f = [];
|
|
215
|
-
if (
|
|
216
|
-
for (var m =
|
|
217
|
-
f.push(
|
|
215
|
+
if (rn(t, a))
|
|
216
|
+
for (var m = C(t), h = t.getMonth(); h <= a.getMonth(); h++)
|
|
217
|
+
f.push($(m, h));
|
|
218
218
|
else
|
|
219
|
-
for (var m =
|
|
220
|
-
f.push(
|
|
219
|
+
for (var m = C(/* @__PURE__ */ new Date()), h = 0; h <= 11; h++)
|
|
220
|
+
f.push($(m, h));
|
|
221
221
|
var b = function(_) {
|
|
222
|
-
var
|
|
223
|
-
e.onChange(
|
|
224
|
-
},
|
|
225
|
-
return s
|
|
226
|
-
return s
|
|
222
|
+
var M = Number(_.target.value), w = $(C(e.displayMonth), M);
|
|
223
|
+
e.onChange(w);
|
|
224
|
+
}, g = (r = c == null ? void 0 : c.Dropdown) !== null && r !== void 0 ? r : Oe;
|
|
225
|
+
return s(g, { name: "months", "aria-label": u(), className: d.dropdown_month, style: o.dropdown_month, onChange: b, value: e.displayMonth.getMonth(), caption: l(e.displayMonth, { locale: i }), children: f.map(function(_) {
|
|
226
|
+
return s("option", { value: _.getMonth(), children: l(_, { locale: i }) }, _.getMonth());
|
|
227
227
|
}) });
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
var r, n = e.displayMonth, t =
|
|
229
|
+
function Sn(e) {
|
|
230
|
+
var r, n = e.displayMonth, t = D(), a = t.fromDate, o = t.toDate, i = t.locale, l = t.styles, d = t.classNames, c = t.components, u = t.formatters.formatYearCaption, f = t.labels.labelYearDropdown, m = [];
|
|
231
231
|
if (!a)
|
|
232
|
-
return s
|
|
232
|
+
return s(L, {});
|
|
233
233
|
if (!o)
|
|
234
|
-
return s
|
|
235
|
-
for (var h = a.getFullYear(), b = o.getFullYear(),
|
|
236
|
-
m.push(
|
|
237
|
-
var _ = function(
|
|
238
|
-
var
|
|
239
|
-
e.onChange(
|
|
240
|
-
},
|
|
241
|
-
return s
|
|
242
|
-
return s
|
|
234
|
+
return s(L, {});
|
|
235
|
+
for (var h = a.getFullYear(), b = o.getFullYear(), g = h; g <= b; g++)
|
|
236
|
+
m.push(be(tn(/* @__PURE__ */ new Date()), g));
|
|
237
|
+
var _ = function(w) {
|
|
238
|
+
var F = be(C(n), Number(w.target.value));
|
|
239
|
+
e.onChange(F);
|
|
240
|
+
}, M = (r = c == null ? void 0 : c.Dropdown) !== null && r !== void 0 ? r : Oe;
|
|
241
|
+
return s(M, { name: "years", "aria-label": f(), className: d.dropdown_year, style: l.dropdown_year, onChange: _, value: n.getFullYear(), caption: u(n, { locale: i }), children: m.map(function(w) {
|
|
242
|
+
return s("option", { value: w.getFullYear(), children: u(w, { locale: i }) }, w.getFullYear());
|
|
243
243
|
}) });
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
var n =
|
|
245
|
+
function On(e, r) {
|
|
246
|
+
var n = B(e), t = n[0], a = n[1], o = r === void 0 ? t : r;
|
|
247
247
|
return [o, a];
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function Wn(e) {
|
|
250
250
|
var r = e.month, n = e.defaultMonth, t = e.today, a = r || n || t || /* @__PURE__ */ new Date(), o = e.toDate, i = e.fromDate, l = e.numberOfMonths, d = l === void 0 ? 1 : l;
|
|
251
|
-
if (o &&
|
|
251
|
+
if (o && Y(o, a) < 0) {
|
|
252
252
|
var c = -1 * (d - 1);
|
|
253
|
-
a =
|
|
253
|
+
a = S(o, c);
|
|
254
254
|
}
|
|
255
|
-
return i &&
|
|
255
|
+
return i && Y(a, i) < 0 && (a = i), C(a);
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
var e =
|
|
257
|
+
function Ln() {
|
|
258
|
+
var e = D(), r = Wn(e), n = On(r, e.month), t = n[0], a = n[1], o = function(i) {
|
|
259
259
|
var l;
|
|
260
260
|
if (!e.disableNavigation) {
|
|
261
|
-
var d =
|
|
261
|
+
var d = C(i);
|
|
262
262
|
a(d), (l = e.onMonthChange) === null || l === void 0 || l.call(e, d);
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
265
|
return [t, o];
|
|
266
266
|
}
|
|
267
|
-
function
|
|
268
|
-
for (var n = r.reverseMonths, t = r.numberOfMonths, a =
|
|
269
|
-
var c =
|
|
267
|
+
function In(e, r) {
|
|
268
|
+
for (var n = r.reverseMonths, t = r.numberOfMonths, a = C(e), o = C(S(a, t)), i = Y(o, a), l = [], d = 0; d < i; d++) {
|
|
269
|
+
var c = S(a, d);
|
|
270
270
|
l.push(c);
|
|
271
271
|
}
|
|
272
272
|
return n && (l = l.reverse()), l;
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Tn(e, r) {
|
|
275
275
|
if (!r.disableNavigation) {
|
|
276
|
-
var n = r.toDate, t = r.pagedNavigation, a = r.numberOfMonths, o = a === void 0 ? 1 : a, i = t ? o : 1, l =
|
|
276
|
+
var n = r.toDate, t = r.pagedNavigation, a = r.numberOfMonths, o = a === void 0 ? 1 : a, i = t ? o : 1, l = C(e);
|
|
277
277
|
if (!n)
|
|
278
|
-
return
|
|
279
|
-
var d =
|
|
278
|
+
return S(l, i);
|
|
279
|
+
var d = Y(n, e);
|
|
280
280
|
if (!(d < o))
|
|
281
|
-
return
|
|
281
|
+
return S(l, i);
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function En(e, r) {
|
|
285
285
|
if (!r.disableNavigation) {
|
|
286
|
-
var n = r.fromDate, t = r.pagedNavigation, a = r.numberOfMonths, o = a === void 0 ? 1 : a, i = t ? o : 1, l =
|
|
286
|
+
var n = r.fromDate, t = r.pagedNavigation, a = r.numberOfMonths, o = a === void 0 ? 1 : a, i = t ? o : 1, l = C(e);
|
|
287
287
|
if (!n)
|
|
288
|
-
return
|
|
289
|
-
var d =
|
|
288
|
+
return S(l, -i);
|
|
289
|
+
var d = Y(l, n);
|
|
290
290
|
if (!(d <= 0))
|
|
291
|
-
return
|
|
291
|
+
return S(l, -i);
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
|
-
var
|
|
295
|
-
function
|
|
296
|
-
var r =
|
|
294
|
+
var We = I(void 0);
|
|
295
|
+
function Fn(e) {
|
|
296
|
+
var r = D(), n = Ln(), t = n[0], a = n[1], o = In(t, r), i = Tn(t, r), l = En(t, r), d = function(f) {
|
|
297
297
|
return o.some(function(m) {
|
|
298
|
-
return
|
|
298
|
+
return le(f, m);
|
|
299
299
|
});
|
|
300
300
|
}, c = function(f, m) {
|
|
301
|
-
d(f) || (m &&
|
|
301
|
+
d(f) || (m && Me(f, m) ? a(S(f, 1 + r.numberOfMonths * -1)) : a(f));
|
|
302
302
|
}, u = {
|
|
303
303
|
currentMonth: t,
|
|
304
304
|
displayMonths: o,
|
|
@@ -308,111 +308,111 @@ function In(e) {
|
|
|
308
308
|
nextMonth: i,
|
|
309
309
|
isDateDisplayed: d
|
|
310
310
|
};
|
|
311
|
-
return s
|
|
311
|
+
return s(We.Provider, { value: u, children: e.children });
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
var e =
|
|
313
|
+
function H() {
|
|
314
|
+
var e = T(We);
|
|
315
315
|
if (!e)
|
|
316
316
|
throw new Error("useNavigation must be used within a NavigationProvider");
|
|
317
317
|
return e;
|
|
318
318
|
}
|
|
319
|
-
function
|
|
320
|
-
var r, n =
|
|
321
|
-
i(
|
|
322
|
-
}, d = (r = o == null ? void 0 : o.CaptionLabel) !== null && r !== void 0 ? r :
|
|
323
|
-
return
|
|
319
|
+
function _e(e) {
|
|
320
|
+
var r, n = D(), t = n.classNames, a = n.styles, o = n.components, i = H().goToMonth, l = function(u) {
|
|
321
|
+
i(S(u, e.displayIndex ? -e.displayIndex : 0));
|
|
322
|
+
}, d = (r = o == null ? void 0 : o.CaptionLabel) !== null && r !== void 0 ? r : Se, c = s(d, { id: e.id, displayMonth: e.displayMonth });
|
|
323
|
+
return P("div", { className: t.caption_dropdowns, style: a.caption_dropdowns, children: [s("div", { className: t.vhidden, children: c }), s(Pn, { onChange: l, displayMonth: e.displayMonth }), s(Sn, { onChange: l, displayMonth: e.displayMonth })] });
|
|
324
324
|
}
|
|
325
|
-
function
|
|
326
|
-
return s
|
|
325
|
+
function Rn(e) {
|
|
326
|
+
return s("svg", y({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: s("path", { d: "M69.490332,3.34314575 C72.6145263,0.218951416 77.6798462,0.218951416 80.8040405,3.34314575 C83.8617626,6.40086786 83.9268205,11.3179931 80.9992143,14.4548388 L80.8040405,14.6568542 L35.461,60 L80.8040405,105.343146 C83.8617626,108.400868 83.9268205,113.317993 80.9992143,116.454839 L80.8040405,116.656854 C77.7463184,119.714576 72.8291931,119.779634 69.6923475,116.852028 L69.490332,116.656854 L18.490332,65.6568542 C15.4326099,62.5991321 15.367552,57.6820069 18.2951583,54.5451612 L18.490332,54.3431458 L69.490332,3.34314575 Z", fill: "currentColor", fillRule: "nonzero" }) }));
|
|
327
327
|
}
|
|
328
|
-
function
|
|
329
|
-
return s
|
|
328
|
+
function Bn(e) {
|
|
329
|
+
return s("svg", y({ width: "16px", height: "16px", viewBox: "0 0 120 120" }, e, { children: s("path", { d: "M49.8040405,3.34314575 C46.6798462,0.218951416 41.6145263,0.218951416 38.490332,3.34314575 C35.4326099,6.40086786 35.367552,11.3179931 38.2951583,14.4548388 L38.490332,14.6568542 L83.8333725,60 L38.490332,105.343146 C35.4326099,108.400868 35.367552,113.317993 38.2951583,116.454839 L38.490332,116.656854 C41.5480541,119.714576 46.4651794,119.779634 49.602025,116.852028 L49.8040405,116.656854 L100.804041,65.6568542 C103.861763,62.5991321 103.926821,57.6820069 100.999214,54.5451612 L100.804041,54.3431458 L49.8040405,3.34314575 Z", fill: "currentColor" }) }));
|
|
330
330
|
}
|
|
331
|
-
var
|
|
332
|
-
var n =
|
|
331
|
+
var U = Ge(function(e, r) {
|
|
332
|
+
var n = D(), t = n.classNames, a = n.styles, o = [t.button_reset, t.button];
|
|
333
333
|
e.className && o.push(e.className);
|
|
334
334
|
var i = o.join(" "), l = y(y({}, a.button_reset), a.button);
|
|
335
|
-
return e.style && Object.assign(l, e.style), s
|
|
335
|
+
return e.style && Object.assign(l, e.style), s("button", y({}, e, { ref: r, type: "button", className: i, style: l }));
|
|
336
336
|
});
|
|
337
|
-
function
|
|
338
|
-
var r, n, t =
|
|
337
|
+
function Yn(e) {
|
|
338
|
+
var r, n, t = D(), a = t.dir, o = t.locale, i = t.classNames, l = t.styles, d = t.labels, c = d.labelPrevious, u = d.labelNext, f = t.components;
|
|
339
339
|
if (!e.nextMonth && !e.previousMonth)
|
|
340
|
-
return s
|
|
340
|
+
return s(L, {});
|
|
341
341
|
var m = c(e.previousMonth, { locale: o }), h = [
|
|
342
342
|
i.nav_button,
|
|
343
343
|
i.nav_button_previous
|
|
344
|
-
].join(" "), b = u(e.nextMonth, { locale: o }),
|
|
344
|
+
].join(" "), b = u(e.nextMonth, { locale: o }), g = [
|
|
345
345
|
i.nav_button,
|
|
346
346
|
i.nav_button_next
|
|
347
|
-
].join(" "), _ = (r = f == null ? void 0 : f.IconRight) !== null && r !== void 0 ? r :
|
|
348
|
-
return
|
|
347
|
+
].join(" "), _ = (r = f == null ? void 0 : f.IconRight) !== null && r !== void 0 ? r : Bn, M = (n = f == null ? void 0 : f.IconLeft) !== null && n !== void 0 ? n : Rn;
|
|
348
|
+
return P("div", { className: i.nav, style: l.nav, children: [!e.hidePrevious && s(U, { name: "previous-month", "aria-label": m, className: h, style: l.nav_button_previous, disabled: !e.previousMonth, onClick: e.onPreviousClick, children: a === "rtl" ? s(_, { className: i.nav_icon, style: l.nav_icon }) : s(M, { className: i.nav_icon, style: l.nav_icon }) }), !e.hideNext && s(U, { name: "next-month", "aria-label": b, className: g, style: l.nav_button_next, disabled: !e.nextMonth, onClick: e.onNextClick, children: a === "rtl" ? s(M, { className: i.nav_icon, style: l.nav_icon }) : s(_, { className: i.nav_icon, style: l.nav_icon }) })] });
|
|
349
349
|
}
|
|
350
|
-
function
|
|
351
|
-
var r =
|
|
352
|
-
return
|
|
350
|
+
function ge(e) {
|
|
351
|
+
var r = D().numberOfMonths, n = H(), t = n.previousMonth, a = n.nextMonth, o = n.goToMonth, i = n.displayMonths, l = i.findIndex(function(b) {
|
|
352
|
+
return le(e.displayMonth, b);
|
|
353
353
|
}), d = l === 0, c = l === i.length - 1, u = r > 1 && (d || !c), f = r > 1 && (c || !d), m = function() {
|
|
354
354
|
t && o(t);
|
|
355
355
|
}, h = function() {
|
|
356
356
|
a && o(a);
|
|
357
357
|
};
|
|
358
|
-
return s
|
|
358
|
+
return s(Yn, { displayMonth: e.displayMonth, hideNext: u, hidePrevious: f, nextMonth: a, previousMonth: t, onPreviousClick: m, onNextClick: h });
|
|
359
359
|
}
|
|
360
|
-
function
|
|
361
|
-
var r, n =
|
|
362
|
-
return a ? c = s
|
|
360
|
+
function An(e) {
|
|
361
|
+
var r, n = D(), t = n.classNames, a = n.disableNavigation, o = n.styles, i = n.captionLayout, l = n.components, d = (r = l == null ? void 0 : l.CaptionLabel) !== null && r !== void 0 ? r : Se, c;
|
|
362
|
+
return a ? c = s(d, { id: e.id, displayMonth: e.displayMonth }) : i === "dropdown" ? c = s(_e, { displayMonth: e.displayMonth, id: e.id }) : i === "dropdown-buttons" ? c = P(L, { children: [s(_e, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id }), s(ge, { displayMonth: e.displayMonth, displayIndex: e.displayIndex, id: e.id })] }) : c = P(L, { children: [s(d, { id: e.id, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), s(ge, { displayMonth: e.displayMonth, id: e.id })] }), s("div", { className: t.caption, style: o.caption, children: c });
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
var r =
|
|
366
|
-
return n ? s
|
|
364
|
+
function jn(e) {
|
|
365
|
+
var r = D(), n = r.footer, t = r.styles, a = r.classNames.tfoot;
|
|
366
|
+
return n ? s("tfoot", { className: a, style: t.tfoot, children: s("tr", { children: s("td", { colSpan: 8, children: n }) }) }) : s(L, {});
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
for (var t = n ?
|
|
370
|
-
var i =
|
|
368
|
+
function Hn(e, r, n) {
|
|
369
|
+
for (var t = n ? se(/* @__PURE__ */ new Date()) : de(/* @__PURE__ */ new Date(), { locale: e, weekStartsOn: r }), a = [], o = 0; o < 7; o++) {
|
|
370
|
+
var i = k(t, o);
|
|
371
371
|
a.push(i);
|
|
372
372
|
}
|
|
373
373
|
return a;
|
|
374
374
|
}
|
|
375
|
-
function
|
|
376
|
-
var e =
|
|
377
|
-
return
|
|
378
|
-
return s
|
|
375
|
+
function Kn() {
|
|
376
|
+
var e = D(), r = e.classNames, n = e.styles, t = e.showWeekNumber, a = e.locale, o = e.weekStartsOn, i = e.ISOWeek, l = e.formatters.formatWeekdayName, d = e.labels.labelWeekday, c = Hn(a, o, i);
|
|
377
|
+
return P("tr", { style: n.head_row, className: r.head_row, children: [t && s("td", { style: n.head_cell, className: r.head_cell }), c.map(function(u, f) {
|
|
378
|
+
return s("th", { scope: "col", className: r.head_cell, style: n.head_cell, "aria-label": d(u, { locale: a }), children: l(u, { locale: a }) }, f);
|
|
379
379
|
})] });
|
|
380
380
|
}
|
|
381
|
-
function
|
|
382
|
-
var e, r =
|
|
383
|
-
return s
|
|
381
|
+
function Un() {
|
|
382
|
+
var e, r = D(), n = r.classNames, t = r.styles, a = r.components, o = (e = a == null ? void 0 : a.HeadRow) !== null && e !== void 0 ? e : Kn;
|
|
383
|
+
return s("thead", { style: t.head, className: n.head, children: s(o, {}) });
|
|
384
384
|
}
|
|
385
|
-
function
|
|
386
|
-
var r =
|
|
387
|
-
return s
|
|
385
|
+
function Vn(e) {
|
|
386
|
+
var r = D(), n = r.locale, t = r.formatters.formatDay;
|
|
387
|
+
return s(L, { children: t(e.date, { locale: n }) });
|
|
388
388
|
}
|
|
389
|
-
var
|
|
390
|
-
function
|
|
391
|
-
if (!
|
|
389
|
+
var ue = I(void 0);
|
|
390
|
+
function zn(e) {
|
|
391
|
+
if (!A(e.initialProps)) {
|
|
392
392
|
var r = {
|
|
393
393
|
selected: void 0,
|
|
394
394
|
modifiers: {
|
|
395
395
|
disabled: []
|
|
396
396
|
}
|
|
397
397
|
};
|
|
398
|
-
return s
|
|
398
|
+
return s(ue.Provider, { value: r, children: e.children });
|
|
399
399
|
}
|
|
400
|
-
return s
|
|
400
|
+
return s(Zn, { initialProps: e.initialProps, children: e.children });
|
|
401
401
|
}
|
|
402
|
-
function
|
|
402
|
+
function Zn(e) {
|
|
403
403
|
var r = e.initialProps, n = e.children, t = r.selected, a = r.min, o = r.max, i = function(c, u, f) {
|
|
404
404
|
var m, h;
|
|
405
405
|
(m = r.onDayClick) === null || m === void 0 || m.call(r, c, u, f);
|
|
406
406
|
var b = !!(u.selected && a && (t == null ? void 0 : t.length) === a);
|
|
407
407
|
if (!b) {
|
|
408
|
-
var
|
|
409
|
-
if (!
|
|
410
|
-
var _ = t ?
|
|
408
|
+
var g = !!(!u.selected && o && (t == null ? void 0 : t.length) === o);
|
|
409
|
+
if (!g) {
|
|
410
|
+
var _ = t ? xe([], t) : [];
|
|
411
411
|
if (u.selected) {
|
|
412
|
-
var
|
|
413
|
-
return
|
|
412
|
+
var M = _.findIndex(function(w) {
|
|
413
|
+
return N(c, w);
|
|
414
414
|
});
|
|
415
|
-
_.splice(
|
|
415
|
+
_.splice(M, 1);
|
|
416
416
|
} else
|
|
417
417
|
_.push(c);
|
|
418
418
|
(h = r.onSelect) === null || h === void 0 || h.call(r, _, c, u, f);
|
|
@@ -423,7 +423,7 @@ function Vn(e) {
|
|
|
423
423
|
};
|
|
424
424
|
t && l.disabled.push(function(c) {
|
|
425
425
|
var u = o && t.length > o - 1, f = t.some(function(m) {
|
|
426
|
-
return
|
|
426
|
+
return N(m, c);
|
|
427
427
|
});
|
|
428
428
|
return !!(u && !f);
|
|
429
429
|
});
|
|
@@ -432,21 +432,21 @@ function Vn(e) {
|
|
|
432
432
|
onDayClick: i,
|
|
433
433
|
modifiers: l
|
|
434
434
|
};
|
|
435
|
-
return s
|
|
435
|
+
return s(ue.Provider, { value: d, children: n });
|
|
436
436
|
}
|
|
437
|
-
function
|
|
438
|
-
var e =
|
|
437
|
+
function ce() {
|
|
438
|
+
var e = T(ue);
|
|
439
439
|
if (!e)
|
|
440
440
|
throw new Error("useSelectMultiple must be used within a SelectMultipleProvider");
|
|
441
441
|
return e;
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Gn(e, r) {
|
|
444
444
|
var n = r || {}, t = n.from, a = n.to;
|
|
445
|
-
return t && a ?
|
|
445
|
+
return t && a ? N(a, e) && N(t, e) ? void 0 : N(a, e) ? { from: a, to: void 0 } : N(t, e) ? void 0 : oe(t, e) ? { from: e, to: a } : { from: t, to: e } : a ? oe(e, a) ? { from: a, to: e } : { from: e, to: a } : t ? Me(e, t) ? { from: e, to: t } : { from: t, to: e } : { from: e, to: void 0 };
|
|
446
446
|
}
|
|
447
|
-
var
|
|
448
|
-
function
|
|
449
|
-
if (!
|
|
447
|
+
var fe = I(void 0);
|
|
448
|
+
function qn(e) {
|
|
449
|
+
if (!j(e.initialProps)) {
|
|
450
450
|
var r = {
|
|
451
451
|
selected: void 0,
|
|
452
452
|
modifiers: {
|
|
@@ -456,186 +456,186 @@ function Zn(e) {
|
|
|
456
456
|
disabled: []
|
|
457
457
|
}
|
|
458
458
|
};
|
|
459
|
-
return s
|
|
459
|
+
return s(fe.Provider, { value: r, children: e.children });
|
|
460
460
|
}
|
|
461
|
-
return s
|
|
462
|
-
}
|
|
463
|
-
function
|
|
464
|
-
var r = e.initialProps, n = e.children, t = r.selected, a = t || {}, o = a.from, i = a.to, l = r.min, d = r.max, c = function(h, b,
|
|
465
|
-
var _,
|
|
466
|
-
(_ = r.onDayClick) === null || _ === void 0 || _.call(r, h, b,
|
|
467
|
-
var
|
|
468
|
-
(
|
|
461
|
+
return s(Xn, { initialProps: e.initialProps, children: e.children });
|
|
462
|
+
}
|
|
463
|
+
function Xn(e) {
|
|
464
|
+
var r = e.initialProps, n = e.children, t = r.selected, a = t || {}, o = a.from, i = a.to, l = r.min, d = r.max, c = function(h, b, g) {
|
|
465
|
+
var _, M;
|
|
466
|
+
(_ = r.onDayClick) === null || _ === void 0 || _.call(r, h, b, g);
|
|
467
|
+
var w = Gn(h, t);
|
|
468
|
+
(M = r.onSelect) === null || M === void 0 || M.call(r, w, h, b, g);
|
|
469
469
|
}, u = {
|
|
470
470
|
range_start: [],
|
|
471
471
|
range_end: [],
|
|
472
472
|
range_middle: [],
|
|
473
473
|
disabled: []
|
|
474
474
|
};
|
|
475
|
-
if (o ? (u.range_start = [o], i ? (u.range_end = [i],
|
|
475
|
+
if (o ? (u.range_start = [o], i ? (u.range_end = [i], N(o, i) || (u.range_middle = [
|
|
476
476
|
{
|
|
477
477
|
after: o,
|
|
478
478
|
before: i
|
|
479
479
|
}
|
|
480
480
|
])) : u.range_end = [o]) : i && (u.range_start = [i], u.range_end = [i]), l && (o && !i && u.disabled.push({
|
|
481
|
-
after:
|
|
482
|
-
before:
|
|
481
|
+
after: Q(o, l - 1),
|
|
482
|
+
before: k(o, l - 1)
|
|
483
483
|
}), o && i && u.disabled.push({
|
|
484
484
|
after: o,
|
|
485
|
-
before:
|
|
485
|
+
before: k(o, l - 1)
|
|
486
486
|
}), !o && i && u.disabled.push({
|
|
487
|
-
after:
|
|
488
|
-
before:
|
|
487
|
+
after: Q(i, l - 1),
|
|
488
|
+
before: k(i, l - 1)
|
|
489
489
|
})), d) {
|
|
490
490
|
if (o && !i && (u.disabled.push({
|
|
491
|
-
before:
|
|
491
|
+
before: k(o, -d + 1)
|
|
492
492
|
}), u.disabled.push({
|
|
493
|
-
after:
|
|
493
|
+
after: k(o, d - 1)
|
|
494
494
|
})), o && i) {
|
|
495
|
-
var f =
|
|
495
|
+
var f = W(i, o) + 1, m = d - f;
|
|
496
496
|
u.disabled.push({
|
|
497
|
-
before:
|
|
497
|
+
before: Q(o, m)
|
|
498
498
|
}), u.disabled.push({
|
|
499
|
-
after:
|
|
499
|
+
after: k(i, m)
|
|
500
500
|
});
|
|
501
501
|
}
|
|
502
502
|
!o && i && (u.disabled.push({
|
|
503
|
-
before:
|
|
503
|
+
before: k(i, -d + 1)
|
|
504
504
|
}), u.disabled.push({
|
|
505
|
-
after:
|
|
505
|
+
after: k(i, d - 1)
|
|
506
506
|
}));
|
|
507
507
|
}
|
|
508
|
-
return s
|
|
508
|
+
return s(fe.Provider, { value: { selected: t, onDayClick: c, modifiers: u }, children: n });
|
|
509
509
|
}
|
|
510
|
-
function
|
|
511
|
-
var e =
|
|
510
|
+
function ve() {
|
|
511
|
+
var e = T(fe);
|
|
512
512
|
if (!e)
|
|
513
513
|
throw new Error("useSelectRange must be used within a SelectRangeProvider");
|
|
514
514
|
return e;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
return Array.isArray(e) ?
|
|
516
|
+
function K(e) {
|
|
517
|
+
return Array.isArray(e) ? xe([], e) : e !== void 0 ? [e] : [];
|
|
518
518
|
}
|
|
519
|
-
function
|
|
519
|
+
function Jn(e) {
|
|
520
520
|
var r = {};
|
|
521
521
|
return Object.entries(e).forEach(function(n) {
|
|
522
522
|
var t = n[0], a = n[1];
|
|
523
|
-
r[t] =
|
|
523
|
+
r[t] = K(a);
|
|
524
524
|
}), r;
|
|
525
525
|
}
|
|
526
|
-
var
|
|
526
|
+
var x;
|
|
527
527
|
(function(e) {
|
|
528
528
|
e.Outside = "outside", e.Disabled = "disabled", e.Selected = "selected", e.Hidden = "hidden", e.Today = "today", e.RangeStart = "range_start", e.RangeEnd = "range_end", e.RangeMiddle = "range_middle";
|
|
529
|
-
})(
|
|
530
|
-
var
|
|
531
|
-
function
|
|
532
|
-
var t, a = (t = {}, t[
|
|
533
|
-
return e.fromDate && a[
|
|
534
|
-
}
|
|
535
|
-
var
|
|
536
|
-
function
|
|
537
|
-
var r =
|
|
538
|
-
return s
|
|
539
|
-
}
|
|
540
|
-
function
|
|
541
|
-
var e =
|
|
529
|
+
})(x || (x = {}));
|
|
530
|
+
var Qn = x.Selected, O = x.Disabled, $n = x.Hidden, er = x.Today, ee = x.RangeEnd, ne = x.RangeMiddle, re = x.RangeStart, nr = x.Outside;
|
|
531
|
+
function rr(e, r, n) {
|
|
532
|
+
var t, a = (t = {}, t[Qn] = K(e.selected), t[O] = K(e.disabled), t[$n] = K(e.hidden), t[er] = [e.today], t[ee] = [], t[ne] = [], t[re] = [], t[nr] = [], t);
|
|
533
|
+
return e.fromDate && a[O].push({ before: e.fromDate }), e.toDate && a[O].push({ after: e.toDate }), A(e) ? a[O] = a[O].concat(r.modifiers[O]) : j(e) && (a[O] = a[O].concat(n.modifiers[O]), a[re] = n.modifiers[re], a[ne] = n.modifiers[ne], a[ee] = n.modifiers[ee]), a;
|
|
534
|
+
}
|
|
535
|
+
var Le = I(void 0);
|
|
536
|
+
function tr(e) {
|
|
537
|
+
var r = D(), n = ce(), t = ve(), a = rr(r, n, t), o = Jn(r.modifiers), i = y(y({}, a), o);
|
|
538
|
+
return s(Le.Provider, { value: i, children: e.children });
|
|
539
|
+
}
|
|
540
|
+
function Ie() {
|
|
541
|
+
var e = T(Le);
|
|
542
542
|
if (!e)
|
|
543
543
|
throw new Error("useModifiers must be used within a ModifiersProvider");
|
|
544
544
|
return e;
|
|
545
545
|
}
|
|
546
|
-
function
|
|
546
|
+
function ar(e) {
|
|
547
547
|
return !!(e && typeof e == "object" && "before" in e && "after" in e);
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function or(e) {
|
|
550
550
|
return !!(e && typeof e == "object" && "from" in e);
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function ir(e) {
|
|
553
553
|
return !!(e && typeof e == "object" && "after" in e);
|
|
554
554
|
}
|
|
555
|
-
function
|
|
555
|
+
function lr(e) {
|
|
556
556
|
return !!(e && typeof e == "object" && "before" in e);
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function sr(e) {
|
|
559
559
|
return !!(e && typeof e == "object" && "dayOfWeek" in e);
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function dr(e, r) {
|
|
562
562
|
var n, t = r.from, a = r.to;
|
|
563
563
|
if (t && a) {
|
|
564
|
-
var o =
|
|
564
|
+
var o = W(a, t) < 0;
|
|
565
565
|
o && (n = [a, t], t = n[0], a = n[1]);
|
|
566
|
-
var i =
|
|
566
|
+
var i = W(e, t) >= 0 && W(a, e) >= 0;
|
|
567
567
|
return i;
|
|
568
568
|
}
|
|
569
|
-
return a ?
|
|
569
|
+
return a ? N(a, e) : t ? N(t, e) : !1;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return
|
|
571
|
+
function ur(e) {
|
|
572
|
+
return Ce(e);
|
|
573
573
|
}
|
|
574
|
-
function
|
|
575
|
-
return Array.isArray(e) && e.every(
|
|
574
|
+
function cr(e) {
|
|
575
|
+
return Array.isArray(e) && e.every(Ce);
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function fr(e, r) {
|
|
578
578
|
return r.some(function(n) {
|
|
579
579
|
if (typeof n == "boolean")
|
|
580
580
|
return n;
|
|
581
|
-
if (
|
|
582
|
-
return
|
|
583
|
-
if (
|
|
581
|
+
if (ur(n))
|
|
582
|
+
return N(e, n);
|
|
583
|
+
if (cr(n))
|
|
584
584
|
return n.includes(e);
|
|
585
|
-
if (
|
|
586
|
-
return
|
|
587
|
-
if (
|
|
585
|
+
if (or(n))
|
|
586
|
+
return dr(e, n);
|
|
587
|
+
if (sr(n))
|
|
588
588
|
return n.dayOfWeek.includes(e.getDay());
|
|
589
|
-
if (
|
|
590
|
-
var t =
|
|
589
|
+
if (ar(n)) {
|
|
590
|
+
var t = W(n.before, e), a = W(n.after, e), o = t > 0, i = a < 0, l = oe(n.before, n.after);
|
|
591
591
|
return l ? i && o : o || i;
|
|
592
592
|
}
|
|
593
|
-
return
|
|
593
|
+
return ir(n) ? W(e, n.after) > 0 : lr(n) ? W(n.before, e) > 0 : typeof n == "function" ? n(e) : !1;
|
|
594
594
|
});
|
|
595
595
|
}
|
|
596
|
-
function
|
|
596
|
+
function me(e, r, n) {
|
|
597
597
|
var t = Object.keys(r).reduce(function(o, i) {
|
|
598
598
|
var l = r[i];
|
|
599
|
-
return
|
|
599
|
+
return fr(e, l) && o.push(i), o;
|
|
600
600
|
}, []), a = {};
|
|
601
601
|
return t.forEach(function(o) {
|
|
602
602
|
return a[o] = !0;
|
|
603
|
-
}), n && !
|
|
603
|
+
}), n && !le(e, n) && (a.outside = !0), a;
|
|
604
604
|
}
|
|
605
|
-
function
|
|
606
|
-
for (var n =
|
|
607
|
-
var l =
|
|
605
|
+
function vr(e, r) {
|
|
606
|
+
for (var n = C(e[0]), t = ie(e[e.length - 1]), a, o, i = n; i <= t; ) {
|
|
607
|
+
var l = me(i, r), d = !l.disabled && !l.hidden;
|
|
608
608
|
if (!d) {
|
|
609
|
-
i =
|
|
609
|
+
i = k(i, 1);
|
|
610
610
|
continue;
|
|
611
611
|
}
|
|
612
612
|
if (l.selected)
|
|
613
613
|
return i;
|
|
614
|
-
l.today && !o && (o = i), a || (a = i), i =
|
|
614
|
+
l.today && !o && (o = i), a || (a = i), i = k(i, 1);
|
|
615
615
|
}
|
|
616
616
|
return o || a;
|
|
617
617
|
}
|
|
618
|
-
var
|
|
619
|
-
function
|
|
618
|
+
var mr = 365;
|
|
619
|
+
function Te(e, r) {
|
|
620
620
|
var n = r.moveBy, t = r.direction, a = r.context, o = r.modifiers, i = r.retry, l = i === void 0 ? { count: 0, lastFocused: e } : i, d = a.weekStartsOn, c = a.fromDate, u = a.toDate, f = a.locale, m = {
|
|
621
|
-
day:
|
|
622
|
-
week:
|
|
623
|
-
month:
|
|
624
|
-
year:
|
|
621
|
+
day: k,
|
|
622
|
+
week: ae,
|
|
623
|
+
month: S,
|
|
624
|
+
year: $e,
|
|
625
625
|
startOfWeek: function(_) {
|
|
626
|
-
return a.ISOWeek ?
|
|
626
|
+
return a.ISOWeek ? se(_) : de(_, { locale: f, weekStartsOn: d });
|
|
627
627
|
},
|
|
628
628
|
endOfWeek: function(_) {
|
|
629
|
-
return a.ISOWeek ?
|
|
629
|
+
return a.ISOWeek ? Ne(_) : ke(_, { locale: f, weekStartsOn: d });
|
|
630
630
|
}
|
|
631
631
|
}, h = m[n](e, t === "after" ? 1 : -1);
|
|
632
|
-
t === "before" && c ? h =
|
|
632
|
+
t === "before" && c ? h = en([c, h]) : t === "after" && u && (h = nn([u, h]));
|
|
633
633
|
var b = !0;
|
|
634
634
|
if (o) {
|
|
635
|
-
var
|
|
636
|
-
b = !
|
|
635
|
+
var g = me(h, o);
|
|
636
|
+
b = !g.disabled && !g.hidden;
|
|
637
637
|
}
|
|
638
|
-
return b ? h : l.count >
|
|
638
|
+
return b ? h : l.count > mr ? l.lastFocused : Te(h, {
|
|
639
639
|
moveBy: n,
|
|
640
640
|
direction: t,
|
|
641
641
|
context: a,
|
|
@@ -643,23 +643,23 @@ function We(e, r) {
|
|
|
643
643
|
retry: y(y({}, l), { count: l.count + 1 })
|
|
644
644
|
});
|
|
645
645
|
}
|
|
646
|
-
var
|
|
647
|
-
function
|
|
648
|
-
var r =
|
|
646
|
+
var Ee = I(void 0);
|
|
647
|
+
function hr(e) {
|
|
648
|
+
var r = H(), n = Ie(), t = B(), a = t[0], o = t[1], i = B(), l = i[0], d = i[1], c = vr(r.displayMonths, n), u = a ?? (l && r.isDateDisplayed(l)) ? l : c, f = function() {
|
|
649
649
|
d(a), o(void 0);
|
|
650
650
|
}, m = function(_) {
|
|
651
651
|
o(_);
|
|
652
|
-
}, h =
|
|
652
|
+
}, h = D(), b = function(_, M) {
|
|
653
653
|
if (a) {
|
|
654
|
-
var
|
|
654
|
+
var w = Te(a, {
|
|
655
655
|
moveBy: _,
|
|
656
|
-
direction:
|
|
656
|
+
direction: M,
|
|
657
657
|
context: h,
|
|
658
658
|
modifiers: n
|
|
659
659
|
});
|
|
660
|
-
|
|
660
|
+
N(a, w) || (r.goToDate(w, a), m(w));
|
|
661
661
|
}
|
|
662
|
-
},
|
|
662
|
+
}, g = {
|
|
663
663
|
focusedDay: a,
|
|
664
664
|
focusTarget: u,
|
|
665
665
|
blur: f,
|
|
@@ -695,29 +695,29 @@ function vr(e) {
|
|
|
695
695
|
return b("endOfWeek", "after");
|
|
696
696
|
}
|
|
697
697
|
};
|
|
698
|
-
return s
|
|
698
|
+
return s(Ee.Provider, { value: g, children: e.children });
|
|
699
699
|
}
|
|
700
|
-
function
|
|
701
|
-
var e =
|
|
700
|
+
function he() {
|
|
701
|
+
var e = T(Ee);
|
|
702
702
|
if (!e)
|
|
703
703
|
throw new Error("useFocusContext must be used within a FocusProvider");
|
|
704
704
|
return e;
|
|
705
705
|
}
|
|
706
|
-
function
|
|
707
|
-
var n =
|
|
706
|
+
function yr(e, r) {
|
|
707
|
+
var n = Ie(), t = me(e, n, r);
|
|
708
708
|
return t;
|
|
709
709
|
}
|
|
710
|
-
var
|
|
711
|
-
function
|
|
712
|
-
if (!
|
|
710
|
+
var ye = I(void 0);
|
|
711
|
+
function pr(e) {
|
|
712
|
+
if (!z(e.initialProps)) {
|
|
713
713
|
var r = {
|
|
714
714
|
selected: void 0
|
|
715
715
|
};
|
|
716
|
-
return s
|
|
716
|
+
return s(ye.Provider, { value: r, children: e.children });
|
|
717
717
|
}
|
|
718
|
-
return s
|
|
718
|
+
return s(br, { initialProps: e.initialProps, children: e.children });
|
|
719
719
|
}
|
|
720
|
-
function
|
|
720
|
+
function br(e) {
|
|
721
721
|
var r = e.initialProps, n = e.children, t = function(o, i, l) {
|
|
722
722
|
var d, c, u;
|
|
723
723
|
if ((d = r.onDayClick) === null || d === void 0 || d.call(r, o, i, l), i.selected && !r.required) {
|
|
@@ -729,52 +729,52 @@ function yr(e) {
|
|
|
729
729
|
selected: r.selected,
|
|
730
730
|
onDayClick: t
|
|
731
731
|
};
|
|
732
|
-
return s
|
|
732
|
+
return s(ye.Provider, { value: a, children: n });
|
|
733
733
|
}
|
|
734
|
-
function
|
|
735
|
-
var e =
|
|
734
|
+
function Fe() {
|
|
735
|
+
var e = T(ye);
|
|
736
736
|
if (!e)
|
|
737
737
|
throw new Error("useSelectSingle must be used within a SelectSingleProvider");
|
|
738
738
|
return e;
|
|
739
739
|
}
|
|
740
|
-
function
|
|
741
|
-
var n =
|
|
742
|
-
var v,
|
|
743
|
-
|
|
744
|
-
},
|
|
740
|
+
function _r(e, r) {
|
|
741
|
+
var n = D(), t = Fe(), a = ce(), o = ve(), i = he(), l = i.focusDayAfter, d = i.focusDayBefore, c = i.focusWeekAfter, u = i.focusWeekBefore, f = i.blur, m = i.focus, h = i.focusMonthBefore, b = i.focusMonthAfter, g = i.focusYearBefore, _ = i.focusYearAfter, M = i.focusStartOfWeek, w = i.focusEndOfWeek, F = function(p) {
|
|
742
|
+
var v, q, X, J;
|
|
743
|
+
z(n) ? (v = t.onDayClick) === null || v === void 0 || v.call(t, e, r, p) : A(n) ? (q = a.onDayClick) === null || q === void 0 || q.call(a, e, r, p) : j(n) ? (X = o.onDayClick) === null || X === void 0 || X.call(o, e, r, p) : (J = n.onDayClick) === null || J === void 0 || J.call(n, e, r, p);
|
|
744
|
+
}, Z = function(p) {
|
|
745
745
|
var v;
|
|
746
746
|
m(e), (v = n.onDayFocus) === null || v === void 0 || v.call(n, e, r, p);
|
|
747
|
-
},
|
|
747
|
+
}, G = function(p) {
|
|
748
748
|
var v;
|
|
749
749
|
f(), (v = n.onDayBlur) === null || v === void 0 || v.call(n, e, r, p);
|
|
750
|
-
},
|
|
750
|
+
}, R = function(p) {
|
|
751
751
|
var v;
|
|
752
752
|
(v = n.onDayMouseEnter) === null || v === void 0 || v.call(n, e, r, p);
|
|
753
|
-
},
|
|
753
|
+
}, Re = function(p) {
|
|
754
754
|
var v;
|
|
755
755
|
(v = n.onDayMouseLeave) === null || v === void 0 || v.call(n, e, r, p);
|
|
756
|
-
},
|
|
756
|
+
}, Be = function(p) {
|
|
757
757
|
var v;
|
|
758
758
|
(v = n.onDayPointerEnter) === null || v === void 0 || v.call(n, e, r, p);
|
|
759
|
-
},
|
|
759
|
+
}, Ye = function(p) {
|
|
760
760
|
var v;
|
|
761
761
|
(v = n.onDayPointerLeave) === null || v === void 0 || v.call(n, e, r, p);
|
|
762
|
-
},
|
|
762
|
+
}, Ae = function(p) {
|
|
763
763
|
var v;
|
|
764
764
|
(v = n.onDayTouchCancel) === null || v === void 0 || v.call(n, e, r, p);
|
|
765
|
-
},
|
|
765
|
+
}, je = function(p) {
|
|
766
766
|
var v;
|
|
767
767
|
(v = n.onDayTouchEnd) === null || v === void 0 || v.call(n, e, r, p);
|
|
768
|
-
},
|
|
768
|
+
}, He = function(p) {
|
|
769
769
|
var v;
|
|
770
770
|
(v = n.onDayTouchMove) === null || v === void 0 || v.call(n, e, r, p);
|
|
771
|
-
},
|
|
771
|
+
}, Ke = function(p) {
|
|
772
772
|
var v;
|
|
773
773
|
(v = n.onDayTouchStart) === null || v === void 0 || v.call(n, e, r, p);
|
|
774
|
-
},
|
|
774
|
+
}, Ue = function(p) {
|
|
775
775
|
var v;
|
|
776
776
|
(v = n.onDayKeyUp) === null || v === void 0 || v.call(n, e, r, p);
|
|
777
|
-
},
|
|
777
|
+
}, Ve = function(p) {
|
|
778
778
|
var v;
|
|
779
779
|
switch (p.key) {
|
|
780
780
|
case "ArrowLeft":
|
|
@@ -790,67 +790,67 @@ function pr(e, r) {
|
|
|
790
790
|
p.preventDefault(), p.stopPropagation(), u();
|
|
791
791
|
break;
|
|
792
792
|
case "PageUp":
|
|
793
|
-
p.preventDefault(), p.stopPropagation(), p.shiftKey ?
|
|
793
|
+
p.preventDefault(), p.stopPropagation(), p.shiftKey ? g() : h();
|
|
794
794
|
break;
|
|
795
795
|
case "PageDown":
|
|
796
796
|
p.preventDefault(), p.stopPropagation(), p.shiftKey ? _() : b();
|
|
797
797
|
break;
|
|
798
798
|
case "Home":
|
|
799
|
-
p.preventDefault(), p.stopPropagation(),
|
|
799
|
+
p.preventDefault(), p.stopPropagation(), M();
|
|
800
800
|
break;
|
|
801
801
|
case "End":
|
|
802
|
-
p.preventDefault(), p.stopPropagation(),
|
|
802
|
+
p.preventDefault(), p.stopPropagation(), w();
|
|
803
803
|
break;
|
|
804
804
|
}
|
|
805
805
|
(v = n.onDayKeyDown) === null || v === void 0 || v.call(n, e, r, p);
|
|
806
|
-
},
|
|
807
|
-
onClick:
|
|
808
|
-
onFocus:
|
|
809
|
-
onBlur:
|
|
810
|
-
onKeyDown:
|
|
811
|
-
onKeyUp:
|
|
812
|
-
onMouseEnter:
|
|
813
|
-
onMouseLeave:
|
|
814
|
-
onPointerEnter:
|
|
815
|
-
onPointerLeave:
|
|
816
|
-
onTouchCancel:
|
|
817
|
-
onTouchEnd:
|
|
818
|
-
onTouchMove:
|
|
819
|
-
onTouchStart:
|
|
806
|
+
}, ze = {
|
|
807
|
+
onClick: F,
|
|
808
|
+
onFocus: Z,
|
|
809
|
+
onBlur: G,
|
|
810
|
+
onKeyDown: Ve,
|
|
811
|
+
onKeyUp: Ue,
|
|
812
|
+
onMouseEnter: R,
|
|
813
|
+
onMouseLeave: Re,
|
|
814
|
+
onPointerEnter: Be,
|
|
815
|
+
onPointerLeave: Ye,
|
|
816
|
+
onTouchCancel: Ae,
|
|
817
|
+
onTouchEnd: je,
|
|
818
|
+
onTouchMove: He,
|
|
819
|
+
onTouchStart: Ke
|
|
820
820
|
};
|
|
821
|
-
return
|
|
821
|
+
return ze;
|
|
822
822
|
}
|
|
823
|
-
function
|
|
824
|
-
var e =
|
|
823
|
+
function gr() {
|
|
824
|
+
var e = D(), r = Fe(), n = ce(), t = ve(), a = z(e) ? r.selected : A(e) ? n.selected : j(e) ? t.selected : void 0;
|
|
825
825
|
return a;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
return Object.values(
|
|
827
|
+
function Dr(e) {
|
|
828
|
+
return Object.values(x).includes(e);
|
|
829
829
|
}
|
|
830
|
-
function
|
|
830
|
+
function wr(e, r) {
|
|
831
831
|
var n = [e.classNames.day];
|
|
832
832
|
return Object.keys(r).forEach(function(t) {
|
|
833
833
|
var a = e.modifiersClassNames[t];
|
|
834
834
|
if (a)
|
|
835
835
|
n.push(a);
|
|
836
|
-
else if (
|
|
836
|
+
else if (Dr(t)) {
|
|
837
837
|
var o = e.classNames["day_".concat(t)];
|
|
838
838
|
o && n.push(o);
|
|
839
839
|
}
|
|
840
840
|
}), n;
|
|
841
841
|
}
|
|
842
|
-
function
|
|
842
|
+
function Mr(e, r) {
|
|
843
843
|
var n = y({}, e.styles.day);
|
|
844
844
|
return Object.keys(r).forEach(function(t) {
|
|
845
845
|
var a;
|
|
846
846
|
n = y(y({}, n), (a = e.modifiersStyles) === null || a === void 0 ? void 0 : a[t]);
|
|
847
847
|
}), n;
|
|
848
848
|
}
|
|
849
|
-
function
|
|
850
|
-
var t, a, o, i =
|
|
851
|
-
|
|
852
|
-
var
|
|
853
|
-
d.outside || l.focusedDay && f &&
|
|
849
|
+
function Nr(e, r, n) {
|
|
850
|
+
var t, a, o, i = D(), l = he(), d = yr(e, r), c = _r(e, d), u = gr(), f = !!(i.onDayClick || i.mode !== "default");
|
|
851
|
+
V(function() {
|
|
852
|
+
var R;
|
|
853
|
+
d.outside || l.focusedDay && f && N(l.focusedDay, e) && ((R = n.current) === null || R === void 0 || R.focus());
|
|
854
854
|
}, [
|
|
855
855
|
l.focusedDay,
|
|
856
856
|
e,
|
|
@@ -858,45 +858,45 @@ function Dr(e, r, n) {
|
|
|
858
858
|
f,
|
|
859
859
|
d.outside
|
|
860
860
|
]);
|
|
861
|
-
var m =
|
|
861
|
+
var m = wr(i, d).join(" "), h = Mr(i, d), b = !!(d.outside && !i.showOutsideDays || d.hidden), g = (o = (a = i.components) === null || a === void 0 ? void 0 : a.DayContent) !== null && o !== void 0 ? o : Vn, _ = s(g, { date: e, displayMonth: r, activeModifiers: d }), M = {
|
|
862
862
|
style: h,
|
|
863
863
|
className: m,
|
|
864
864
|
children: _,
|
|
865
865
|
role: "gridcell"
|
|
866
|
-
},
|
|
866
|
+
}, w = l.focusTarget && N(l.focusTarget, e) && !d.outside, F = l.focusedDay && N(l.focusedDay, e), Z = y(y(y({}, M), (t = { disabled: d.disabled, role: "gridcell" }, t["aria-selected"] = d.selected, t.tabIndex = F || w ? 0 : -1, t)), c), G = {
|
|
867
867
|
isButton: f,
|
|
868
868
|
isHidden: b,
|
|
869
869
|
activeModifiers: d,
|
|
870
870
|
selectedDays: u,
|
|
871
|
-
buttonProps:
|
|
872
|
-
divProps:
|
|
871
|
+
buttonProps: Z,
|
|
872
|
+
divProps: M
|
|
873
873
|
};
|
|
874
|
-
return
|
|
874
|
+
return G;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
877
|
-
var r =
|
|
878
|
-
return n.isHidden ? s
|
|
876
|
+
function kr(e) {
|
|
877
|
+
var r = qe(null), n = Nr(e.date, e.displayMonth, r);
|
|
878
|
+
return n.isHidden ? s("div", { role: "gridcell" }) : n.isButton ? s(U, y({ name: "day", ref: r }, n.buttonProps)) : s("div", y({}, n.divProps));
|
|
879
879
|
}
|
|
880
|
-
function
|
|
881
|
-
var r = e.number, n = e.dates, t =
|
|
880
|
+
function Cr(e) {
|
|
881
|
+
var r = e.number, n = e.dates, t = D(), a = t.onWeekNumberClick, o = t.styles, i = t.classNames, l = t.locale, d = t.labels.labelWeekNumber, c = t.formatters.formatWeekNumber, u = c(Number(r), { locale: l });
|
|
882
882
|
if (!a)
|
|
883
|
-
return s
|
|
883
|
+
return s("span", { className: i.weeknumber, style: o.weeknumber, children: u });
|
|
884
884
|
var f = d(Number(r), { locale: l }), m = function(h) {
|
|
885
885
|
a(r, n, h);
|
|
886
886
|
};
|
|
887
|
-
return s
|
|
887
|
+
return s(U, { name: "week-number", "aria-label": f, className: i.weeknumber, style: o.weeknumber, onClick: m, children: u });
|
|
888
888
|
}
|
|
889
|
-
function
|
|
890
|
-
var r, n, t =
|
|
891
|
-
return i && (u = s
|
|
892
|
-
return s
|
|
889
|
+
function xr(e) {
|
|
890
|
+
var r, n, t = D(), a = t.styles, o = t.classNames, i = t.showWeekNumber, l = t.components, d = (r = l == null ? void 0 : l.Day) !== null && r !== void 0 ? r : kr, c = (n = l == null ? void 0 : l.WeekNumber) !== null && n !== void 0 ? n : Cr, u;
|
|
891
|
+
return i && (u = s("td", { className: o.cell, style: a.cell, children: s(c, { number: e.weekNumber, dates: e.dates }) })), P("tr", { className: o.row, style: a.row, children: [u, e.dates.map(function(f) {
|
|
892
|
+
return s("td", { className: o.cell, style: a.cell, role: "presentation", children: s(d, { displayMonth: e.displayMonth, date: f }) }, Qe(f));
|
|
893
893
|
})] });
|
|
894
894
|
}
|
|
895
|
-
function
|
|
896
|
-
for (var t = n != null && n.ISOWeek ?
|
|
897
|
-
i.push(
|
|
895
|
+
function De(e, r, n) {
|
|
896
|
+
for (var t = n != null && n.ISOWeek ? Ne(r) : ke(r, n), a = n != null && n.ISOWeek ? se(e) : de(e, n), o = W(t, a), i = [], l = 0; l <= o; l++)
|
|
897
|
+
i.push(k(a, l));
|
|
898
898
|
var d = i.reduce(function(c, u) {
|
|
899
|
-
var f = n != null && n.ISOWeek ?
|
|
899
|
+
var f = n != null && n.ISOWeek ? an(u) : on(u, n), m = c.find(function(h) {
|
|
900
900
|
return h.weekNumber === f;
|
|
901
901
|
});
|
|
902
902
|
return m ? (m.dates.push(u), c) : (c.push({
|
|
@@ -906,57 +906,57 @@ function _e(e, r, n) {
|
|
|
906
906
|
}, []);
|
|
907
907
|
return d;
|
|
908
908
|
}
|
|
909
|
-
function
|
|
910
|
-
var n =
|
|
909
|
+
function Pr(e, r) {
|
|
910
|
+
var n = De(C(e), ie(e), r);
|
|
911
911
|
if (r != null && r.useFixedWeeks) {
|
|
912
|
-
var t =
|
|
912
|
+
var t = Je(e, r);
|
|
913
913
|
if (t < 6) {
|
|
914
|
-
var a = n[n.length - 1], o = a.dates[a.dates.length - 1], i =
|
|
914
|
+
var a = n[n.length - 1], o = a.dates[a.dates.length - 1], i = ae(o, 6 - t), l = De(ae(o, 1), i, r);
|
|
915
915
|
n.push.apply(n, l);
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
918
|
return n;
|
|
919
919
|
}
|
|
920
|
-
function
|
|
921
|
-
var r, n, t, a =
|
|
920
|
+
function Sr(e) {
|
|
921
|
+
var r, n, t, a = D(), o = a.locale, i = a.classNames, l = a.styles, d = a.hideHead, c = a.fixedWeeks, u = a.components, f = a.weekStartsOn, m = a.firstWeekContainsDate, h = a.ISOWeek, b = Pr(e.displayMonth, {
|
|
922
922
|
useFixedWeeks: !!c,
|
|
923
923
|
ISOWeek: h,
|
|
924
924
|
locale: o,
|
|
925
925
|
weekStartsOn: f,
|
|
926
926
|
firstWeekContainsDate: m
|
|
927
|
-
}),
|
|
928
|
-
return
|
|
929
|
-
return s
|
|
930
|
-
}) }), s
|
|
927
|
+
}), g = (r = u == null ? void 0 : u.Head) !== null && r !== void 0 ? r : Un, _ = (n = u == null ? void 0 : u.Row) !== null && n !== void 0 ? n : xr, M = (t = u == null ? void 0 : u.Footer) !== null && t !== void 0 ? t : jn;
|
|
928
|
+
return P("table", { id: e.id, className: i.table, style: l.table, role: "grid", "aria-labelledby": e["aria-labelledby"], children: [!d && s(g, {}), s("tbody", { className: i.tbody, style: l.tbody, children: b.map(function(w) {
|
|
929
|
+
return s(_, { displayMonth: e.displayMonth, dates: w.dates, weekNumber: w.weekNumber }, w.weekNumber);
|
|
930
|
+
}) }), s(M, { displayMonth: e.displayMonth })] });
|
|
931
931
|
}
|
|
932
|
-
function
|
|
932
|
+
function Or() {
|
|
933
933
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
934
934
|
}
|
|
935
|
-
var
|
|
936
|
-
function
|
|
937
|
-
return "react-day-picker-".concat(++
|
|
935
|
+
var Wr = Or() ? Ze : V, te = !1, Lr = 0;
|
|
936
|
+
function we() {
|
|
937
|
+
return "react-day-picker-".concat(++Lr);
|
|
938
938
|
}
|
|
939
|
-
function
|
|
940
|
-
var r, n = e ?? (
|
|
941
|
-
return
|
|
942
|
-
a === null && o(
|
|
943
|
-
}, []),
|
|
944
|
-
|
|
939
|
+
function Ir(e) {
|
|
940
|
+
var r, n = e ?? (te ? we() : null), t = B(n), a = t[0], o = t[1];
|
|
941
|
+
return Wr(function() {
|
|
942
|
+
a === null && o(we());
|
|
943
|
+
}, []), V(function() {
|
|
944
|
+
te === !1 && (te = !0);
|
|
945
945
|
}, []), (r = e ?? a) !== null && r !== void 0 ? r : void 0;
|
|
946
946
|
}
|
|
947
|
-
function
|
|
948
|
-
var r, n, t =
|
|
949
|
-
a === "rtl" && (r = [h, b], b = r[0], h = r[1]), h && (f.push(o.caption_start), m = y(y({}, m), i.caption_start)), b && (f.push(o.caption_end), m = y(y({}, m), i.caption_end)),
|
|
950
|
-
var _ = (n = l == null ? void 0 : l.Caption) !== null && n !== void 0 ? n :
|
|
951
|
-
return
|
|
947
|
+
function Tr(e) {
|
|
948
|
+
var r, n, t = D(), a = t.dir, o = t.classNames, i = t.styles, l = t.components, d = H().displayMonths, c = Ir(t.id ? "".concat(t.id, "-").concat(e.displayIndex) : void 0), u = t.id ? "".concat(t.id, "-grid-").concat(e.displayIndex) : void 0, f = [o.month], m = i.month, h = e.displayIndex === 0, b = e.displayIndex === d.length - 1, g = !h && !b;
|
|
949
|
+
a === "rtl" && (r = [h, b], b = r[0], h = r[1]), h && (f.push(o.caption_start), m = y(y({}, m), i.caption_start)), b && (f.push(o.caption_end), m = y(y({}, m), i.caption_end)), g && (f.push(o.caption_between), m = y(y({}, m), i.caption_between));
|
|
950
|
+
var _ = (n = l == null ? void 0 : l.Caption) !== null && n !== void 0 ? n : An;
|
|
951
|
+
return P("div", { className: f.join(" "), style: m, children: [s(_, { id: c, displayMonth: e.displayMonth, displayIndex: e.displayIndex }), s(Sr, { id: u, "aria-labelledby": c, displayMonth: e.displayMonth })] }, e.displayIndex);
|
|
952
952
|
}
|
|
953
|
-
function
|
|
954
|
-
var r =
|
|
955
|
-
return s
|
|
953
|
+
function Er(e) {
|
|
954
|
+
var r = D(), n = r.classNames, t = r.styles;
|
|
955
|
+
return s("div", { className: n.months, style: t.months, children: e.children });
|
|
956
956
|
}
|
|
957
|
-
function
|
|
958
|
-
var r, n, t = e.initialProps, a =
|
|
959
|
-
|
|
957
|
+
function Fr(e) {
|
|
958
|
+
var r, n, t = e.initialProps, a = D(), o = he(), i = H(), l = B(!1), d = l[0], c = l[1];
|
|
959
|
+
V(function() {
|
|
960
960
|
a.initialFocus && o.focusTarget && (d || (o.focus(o.focusTarget), c(!0)));
|
|
961
961
|
}, [
|
|
962
962
|
a.initialFocus,
|
|
@@ -969,73 +969,73 @@ function Ir(e) {
|
|
|
969
969
|
a.numberOfMonths > 1 && u.push(a.classNames.multiple_months), a.showWeekNumber && u.push(a.classNames.with_weeknumber);
|
|
970
970
|
var f = y(y({}, a.styles.root), a.style), m = Object.keys(t).filter(function(b) {
|
|
971
971
|
return b.startsWith("data-");
|
|
972
|
-
}).reduce(function(b,
|
|
972
|
+
}).reduce(function(b, g) {
|
|
973
973
|
var _;
|
|
974
|
-
return y(y({}, b), (_ = {}, _[
|
|
975
|
-
}, {}), h = (n = (r = t.components) === null || r === void 0 ? void 0 : r.Months) !== null && n !== void 0 ? n :
|
|
976
|
-
return s
|
|
977
|
-
return s
|
|
974
|
+
return y(y({}, b), (_ = {}, _[g] = t[g], _));
|
|
975
|
+
}, {}), h = (n = (r = t.components) === null || r === void 0 ? void 0 : r.Months) !== null && n !== void 0 ? n : Er;
|
|
976
|
+
return s("div", y({ className: u.join(" "), style: f, dir: a.dir, id: a.id, nonce: t.nonce, title: t.title, lang: t.lang }, m, { children: s(h, { children: i.displayMonths.map(function(b, g) {
|
|
977
|
+
return s(Tr, { displayIndex: g, displayMonth: b }, g);
|
|
978
978
|
}) }) }));
|
|
979
979
|
}
|
|
980
|
-
function
|
|
981
|
-
var r = e.children, n =
|
|
982
|
-
return s
|
|
980
|
+
function Rr(e) {
|
|
981
|
+
var r = e.children, n = ln(e, ["children"]);
|
|
982
|
+
return s(Cn, { initialProps: n, children: s(Fn, { children: s(pr, { initialProps: n, children: s(zn, { initialProps: n, children: s(qn, { initialProps: n, children: s(tr, { children: s(hr, { children: r }) }) }) }) }) }) });
|
|
983
983
|
}
|
|
984
|
-
function
|
|
985
|
-
return s
|
|
984
|
+
function pt(e) {
|
|
985
|
+
return s(Rr, y({}, e, { children: s(Fr, { initialProps: e }) }));
|
|
986
986
|
}
|
|
987
987
|
export {
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
988
|
+
U as Button,
|
|
989
|
+
An as Caption,
|
|
990
|
+
_e as CaptionDropdowns,
|
|
991
|
+
Se as CaptionLabel,
|
|
992
|
+
ge as CaptionNavigation,
|
|
993
|
+
kr as Day,
|
|
994
|
+
Vn as DayContent,
|
|
995
|
+
pt as DayPicker,
|
|
996
|
+
Pe as DayPickerContext,
|
|
997
|
+
Cn as DayPickerProvider,
|
|
998
|
+
Oe as Dropdown,
|
|
999
|
+
Ee as FocusContext,
|
|
1000
|
+
hr as FocusProvider,
|
|
1001
|
+
jn as Footer,
|
|
1002
|
+
Un as Head,
|
|
1003
|
+
Kn as HeadRow,
|
|
1004
|
+
xn as IconDropdown,
|
|
1005
|
+
Rn as IconLeft,
|
|
1006
|
+
Bn as IconRight,
|
|
1007
|
+
x as InternalModifier,
|
|
1008
|
+
Er as Months,
|
|
1009
|
+
We as NavigationContext,
|
|
1010
|
+
Fn as NavigationProvider,
|
|
1011
|
+
Rr as RootProvider,
|
|
1012
|
+
xr as Row,
|
|
1013
|
+
ue as SelectMultipleContext,
|
|
1014
|
+
zn as SelectMultipleProvider,
|
|
1015
|
+
Zn as SelectMultipleProviderInternal,
|
|
1016
|
+
fe as SelectRangeContext,
|
|
1017
|
+
qn as SelectRangeProvider,
|
|
1018
|
+
Xn as SelectRangeProviderInternal,
|
|
1019
|
+
ye as SelectSingleContext,
|
|
1020
|
+
pr as SelectSingleProvider,
|
|
1021
|
+
br as SelectSingleProviderInternal,
|
|
1022
|
+
Cr as WeekNumber,
|
|
1023
|
+
Gn as addToRange,
|
|
1024
|
+
ir as isDateAfterType,
|
|
1025
|
+
lr as isDateBeforeType,
|
|
1026
|
+
ar as isDateInterval,
|
|
1027
|
+
or as isDateRange,
|
|
1028
|
+
sr as isDayOfWeekType,
|
|
1029
|
+
A as isDayPickerMultiple,
|
|
1030
|
+
j as isDayPickerRange,
|
|
1031
|
+
z as isDayPickerSingle,
|
|
1032
|
+
fr as isMatch,
|
|
1033
|
+
yr as useActiveModifiers,
|
|
1034
|
+
D as useDayPicker,
|
|
1035
|
+
Nr as useDayRender,
|
|
1036
|
+
he as useFocusContext,
|
|
1037
|
+
H as useNavigation,
|
|
1038
|
+
ce as useSelectMultiple,
|
|
1039
|
+
ve as useSelectRange,
|
|
1040
|
+
Fe as useSelectSingle
|
|
1041
1041
|
};
|