@burdenoff/microfe-mybodyshield 2026.705.2 → 2026.706.1
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/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +10 -0
- package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js.map +1 -0
- package/dist/_virtual/_rolldown/runtime.js +5 -5
- package/dist/mybodyshield/pages/DashboardPage.js +422 -323
- package/dist/mybodyshield/pages/DashboardPage.js.map +1 -1
- package/dist/mybodyshield/pages/_shared/visuals.js +16 -16
- package/dist/mybodyshield/pages/_shared/visuals.js.map +1 -1
- package/dist/mybodyshield/pages/coaching/CoachingPage.js +235 -166
- package/dist/mybodyshield/pages/coaching/CoachingPage.js.map +1 -1
- package/dist/mybodyshield/pages/goals/GoalsPage.js +304 -249
- package/dist/mybodyshield/pages/goals/GoalsPage.js.map +1 -1
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js +700 -533
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js +518 -454
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramsPage.js +282 -234
- package/dist/mybodyshield/pages/programs/ProgramsPage.js.map +1 -1
- package/dist/mybodyshield/pages/progress/ProgressPage.js +422 -311
- package/dist/mybodyshield/pages/progress/ProgressPage.js.map +1 -1
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js +335 -246
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionDetailPage.js +395 -302
- package/dist/mybodyshield/pages/train/SessionDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionsPage.js +111 -75
- package/dist/mybodyshield/pages/train/SessionsPage.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +55 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +62 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +260 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +61 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +140 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +48 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +72 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +109 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +131 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +86 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +168 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +47 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +59 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +63 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +69 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +41 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +45 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +586 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +53 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +206 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +58 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +137 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +35 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +54 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +94 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +54 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +66 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/array.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +20 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +33 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +10 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +28 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +10 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Area.js +435 -0
- package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/{LineChart.js → AreaChart.js} +5 -5
- package/dist/node_modules/recharts/es6/chart/{LineChart.js.map → AreaChart.js.map} +1 -1
- package/package.json +1 -1
- package/dist/node_modules/recharts/es6/cartesian/Line.js +0 -473
- package/dist/node_modules/recharts/es6/cartesian/Line.js.map +0 -1
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { motion as e } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
2
|
+
import { useReducedMotion as t } from "../../../node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js";
|
|
3
|
+
import { PageLayout as ee } from "../../components/PageLayout.js";
|
|
4
|
+
import { MetricsCard as n } from "../../components/MetricsCard.js";
|
|
5
|
+
import { formatDate as te, formatDateTime as r, formatEnumLabel as i, formatNumber as a, formatRelativeTime as ne } from "../../utils/formatters.js";
|
|
6
|
+
import { ErrorView as o, LoadingView as re, Section as ie } from "../../components/StateViews.js";
|
|
7
|
+
import { EmptyState as s } from "../../components/EmptyState.js";
|
|
8
|
+
import { IconChip as c, METRIC_META as l, TrendPill as ae } from "../_shared/visuals.js";
|
|
9
|
+
import { useMybBodyMetrics as u, useMybRecordBodyMetric as oe } from "../../hooks/useMyBodyShieldApi.js";
|
|
10
|
+
import { useOffsetPager as se } from "../../hooks/usePager.js";
|
|
9
11
|
import "../../hooks/index.js";
|
|
10
|
-
import { DataTable as
|
|
11
|
-
import { FilterTabs as
|
|
12
|
-
import { Pagination as
|
|
13
|
-
import { EvidenceUpload as
|
|
14
|
-
import { FileLink as
|
|
12
|
+
import { DataTable as ce } from "../../components/DataTable.js";
|
|
13
|
+
import { FilterTabs as le } from "../../components/FilterTabs.js";
|
|
14
|
+
import { Pagination as ue } from "../../components/Pagination.js";
|
|
15
|
+
import { EvidenceUpload as de } from "../../components/EvidenceUpload.js";
|
|
16
|
+
import { FileLink as fe } from "../../components/FileLink.js";
|
|
15
17
|
import "../../components/index.js";
|
|
16
|
-
import { Tooltip as
|
|
18
|
+
import { Tooltip as pe } from "../../../node_modules/recharts/es6/component/Tooltip.js";
|
|
17
19
|
import { ResponsiveContainer as me } from "../../../node_modules/recharts/es6/component/ResponsiveContainer.js";
|
|
20
|
+
import { ReferenceDot as d } from "../../../node_modules/recharts/es6/cartesian/ReferenceDot.js";
|
|
18
21
|
import { CartesianGrid as he } from "../../../node_modules/recharts/es6/cartesian/CartesianGrid.js";
|
|
19
|
-
import {
|
|
22
|
+
import { Area as ge } from "../../../node_modules/recharts/es6/cartesian/Area.js";
|
|
20
23
|
import { XAxis as _e } from "../../../node_modules/recharts/es6/cartesian/XAxis.js";
|
|
21
24
|
import { YAxis as ve } from "../../../node_modules/recharts/es6/cartesian/YAxis.js";
|
|
22
|
-
import {
|
|
23
|
-
import { useEffect as be, useMemo as
|
|
24
|
-
import { Activity as xe, ArrowDownUp as Se, Plus as
|
|
25
|
-
import { Fragment as we, jsx as
|
|
26
|
-
import { Button as
|
|
25
|
+
import { AreaChart as ye } from "../../../node_modules/recharts/es6/chart/AreaChart.js";
|
|
26
|
+
import { useEffect as be, useMemo as f, useState as p } from "react";
|
|
27
|
+
import { Activity as xe, ArrowDownUp as Se, Plus as m, Sigma as Ce } from "lucide-react";
|
|
28
|
+
import { Fragment as we, jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
29
|
+
import { Button as _, GlassCard as Te, Input as v, Label as y, ResponsiveDialog as Ee, ResponsiveDialogContent as De, ResponsiveDialogDescription as Oe, ResponsiveDialogFooter as ke, ResponsiveDialogHeader as Ae, ResponsiveDialogTitle as je, Select as b, SelectContent as x, SelectItem as S, SelectTrigger as Me, SelectValue as Ne, Textarea as Pe } from "@burdenoff/fe-libs/ui";
|
|
27
30
|
//#region src/mybodyshield/pages/progress/ProgressPage.tsx
|
|
28
|
-
var
|
|
31
|
+
var C = [
|
|
29
32
|
"WEIGHT",
|
|
30
33
|
"BODY_FAT",
|
|
31
34
|
"RESTING_HEART_RATE",
|
|
@@ -34,7 +37,7 @@ var O = [
|
|
|
34
37
|
"HIPS",
|
|
35
38
|
"ARM",
|
|
36
39
|
"THIGH"
|
|
37
|
-
],
|
|
40
|
+
], Fe = {
|
|
38
41
|
WEIGHT: "down",
|
|
39
42
|
BODY_FAT: "down",
|
|
40
43
|
RESTING_HEART_RATE: "down",
|
|
@@ -43,401 +46,509 @@ var O = [
|
|
|
43
46
|
CHEST: "up",
|
|
44
47
|
ARM: "up",
|
|
45
48
|
THIGH: "up"
|
|
46
|
-
},
|
|
49
|
+
}, w = 100, T = 25, E = "var(--color-action-primary-bg)", D = (e) => {
|
|
47
50
|
let t = (e) => String(e).padStart(2, "0");
|
|
48
51
|
return `${e.getFullYear()}-${t(e.getMonth() + 1)}-${t(e.getDate())}T${t(e.getHours())}:${t(e.getMinutes())}`;
|
|
49
|
-
},
|
|
52
|
+
}, O = (e) => ({
|
|
50
53
|
type: e,
|
|
51
54
|
value: "",
|
|
52
|
-
unit:
|
|
53
|
-
measuredAt:
|
|
55
|
+
unit: l[e].unit,
|
|
56
|
+
measuredAt: D(/* @__PURE__ */ new Date()),
|
|
54
57
|
notes: "",
|
|
55
58
|
photo: null
|
|
56
59
|
});
|
|
57
|
-
function
|
|
58
|
-
let [
|
|
60
|
+
function k() {
|
|
61
|
+
let [D, k] = p("WEIGHT"), [Ie, A] = p(!1), [j, M] = p(() => O("WEIGHT")), [N, P] = p(null), F = se(T), I = F.reset;
|
|
59
62
|
be(() => {
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
let
|
|
63
|
-
type:
|
|
64
|
-
pagination: { limit:
|
|
65
|
-
}),
|
|
66
|
-
type:
|
|
63
|
+
I();
|
|
64
|
+
}, [D, I]);
|
|
65
|
+
let L = u({
|
|
66
|
+
type: D,
|
|
67
|
+
pagination: { limit: w }
|
|
68
|
+
}), R = u({
|
|
69
|
+
type: D,
|
|
67
70
|
pagination: {
|
|
68
|
-
limit:
|
|
69
|
-
offset:
|
|
71
|
+
limit: T,
|
|
72
|
+
offset: F.offset
|
|
70
73
|
}
|
|
71
|
-
}),
|
|
72
|
-
|
|
74
|
+
}), z = oe(), B = t(), V = (e, t = !0) => B ? { initial: !1 } : {
|
|
75
|
+
initial: {
|
|
76
|
+
opacity: 0,
|
|
77
|
+
y: 14
|
|
78
|
+
},
|
|
79
|
+
animate: {
|
|
80
|
+
opacity: 1,
|
|
81
|
+
y: 0
|
|
82
|
+
},
|
|
83
|
+
transition: {
|
|
84
|
+
duration: .45,
|
|
85
|
+
delay: e,
|
|
86
|
+
ease: "easeOut"
|
|
87
|
+
},
|
|
88
|
+
...t ? { whileHover: {
|
|
89
|
+
y: -3,
|
|
90
|
+
transition: {
|
|
91
|
+
type: "spring",
|
|
92
|
+
stiffness: 300,
|
|
93
|
+
damping: 22
|
|
94
|
+
}
|
|
95
|
+
} } : {}
|
|
96
|
+
}, H = l[D], U = H.icon, Le = Fe[D], W = f(() => L.data?.items ?? [], [L.data]), G = f(() => [...W].sort((e, t) => new Date(e.measuredAt).getTime() - new Date(t.measuredAt).getTime()), [W]), K = G[G.length - 1], q = G[G.length - 2], J = K && q ? K.value - q.value : void 0, Y = f(() => G.map((e) => ({
|
|
97
|
+
label: te(e.measuredAt),
|
|
73
98
|
value: e.value
|
|
74
|
-
})), [
|
|
75
|
-
if (
|
|
76
|
-
let e =
|
|
99
|
+
})), [G]), X = Y.length > 0 ? Y[Y.length - 1] : void 0, Z = f(() => {
|
|
100
|
+
if (G.length === 0) return null;
|
|
101
|
+
let e = G.map((e) => e.value);
|
|
77
102
|
return {
|
|
78
103
|
count: e.length,
|
|
79
104
|
min: Math.min(...e),
|
|
80
105
|
max: Math.max(...e),
|
|
81
106
|
avg: e.reduce((e, t) => e + t, 0) / e.length
|
|
82
107
|
};
|
|
83
|
-
}, [
|
|
108
|
+
}, [G]), Re = C.map((e) => ({
|
|
84
109
|
value: e,
|
|
85
|
-
label:
|
|
110
|
+
label: i(e)
|
|
86
111
|
})), Q = () => {
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
let e = Number(
|
|
90
|
-
if (
|
|
91
|
-
|
|
112
|
+
M(O(D)), P(null), A(!0);
|
|
113
|
+
}, ze = async () => {
|
|
114
|
+
let e = Number(j.value);
|
|
115
|
+
if (j.value.trim() === "" || !Number.isFinite(e)) {
|
|
116
|
+
P("Enter a valid measurement value.");
|
|
92
117
|
return;
|
|
93
118
|
}
|
|
94
|
-
|
|
119
|
+
P(null);
|
|
95
120
|
let t = {
|
|
96
|
-
type:
|
|
121
|
+
type: j.type,
|
|
97
122
|
value: e,
|
|
98
|
-
unit:
|
|
99
|
-
measuredAt:
|
|
100
|
-
notes:
|
|
101
|
-
photoFileId:
|
|
123
|
+
unit: j.unit.trim() || l[j.type].unit,
|
|
124
|
+
measuredAt: j.measuredAt ? new Date(j.measuredAt).toISOString() : (/* @__PURE__ */ new Date()).toISOString(),
|
|
125
|
+
notes: j.notes.trim() ? j.notes.trim() : null,
|
|
126
|
+
photoFileId: j.photo?.fileId ?? null
|
|
102
127
|
};
|
|
103
128
|
try {
|
|
104
|
-
await
|
|
129
|
+
await z.mutateAsync(t), A(!1), k(j.type), F.reset();
|
|
105
130
|
} catch (e) {
|
|
106
|
-
|
|
131
|
+
P(e instanceof Error ? e.message : "Failed to record measurement.");
|
|
107
132
|
}
|
|
108
|
-
}, $ =
|
|
109
|
-
|
|
133
|
+
}, $ = R.data?.items ?? [], Be = [
|
|
134
|
+
{
|
|
135
|
+
key: "value",
|
|
136
|
+
header: "Value",
|
|
137
|
+
align: "right",
|
|
138
|
+
sortValue: (e) => e.value,
|
|
139
|
+
render: (e) => /* @__PURE__ */ g("span", {
|
|
140
|
+
className: "font-medium tabular-nums text-text-primary",
|
|
141
|
+
children: [a(e.value), /* @__PURE__ */ h("span", {
|
|
142
|
+
className: "ml-1 text-xs font-normal text-text-tertiary",
|
|
143
|
+
children: e.unit
|
|
144
|
+
})]
|
|
145
|
+
})
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
key: "measuredAt",
|
|
149
|
+
header: "Measured",
|
|
150
|
+
sortValue: (e) => new Date(e.measuredAt).getTime(),
|
|
151
|
+
render: (e) => /* @__PURE__ */ h("span", {
|
|
152
|
+
className: "whitespace-nowrap text-text-secondary",
|
|
153
|
+
children: r(e.measuredAt)
|
|
154
|
+
})
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
key: "notes",
|
|
158
|
+
header: "Notes",
|
|
159
|
+
hideOnMobile: !0,
|
|
160
|
+
render: (e) => e.notes ? /* @__PURE__ */ h("span", {
|
|
161
|
+
className: "text-text-secondary",
|
|
162
|
+
children: e.notes
|
|
163
|
+
}) : /* @__PURE__ */ h("span", {
|
|
164
|
+
className: "text-text-tertiary",
|
|
165
|
+
children: "—"
|
|
166
|
+
})
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
key: "photo",
|
|
170
|
+
header: "Photo",
|
|
171
|
+
render: (e) => e.photo?.id ? /* @__PURE__ */ h(fe, { fileId: e.photo.id }) : /* @__PURE__ */ h("span", {
|
|
172
|
+
className: "text-text-tertiary",
|
|
173
|
+
children: "—"
|
|
174
|
+
})
|
|
175
|
+
}
|
|
176
|
+
];
|
|
177
|
+
return /* @__PURE__ */ g(ee, {
|
|
110
178
|
title: "Progress",
|
|
111
179
|
description: "Body metrics over time — weight, composition & measurements.",
|
|
112
|
-
actions: /* @__PURE__ */
|
|
180
|
+
actions: /* @__PURE__ */ g(_, {
|
|
113
181
|
onClick: Q,
|
|
114
|
-
children: [/* @__PURE__ */
|
|
182
|
+
children: [/* @__PURE__ */ h(m, { className: "mr-1.5 h-4 w-4" }), " Record measurement"]
|
|
115
183
|
}),
|
|
116
184
|
children: [
|
|
117
|
-
/* @__PURE__ */
|
|
185
|
+
/* @__PURE__ */ h("div", {
|
|
118
186
|
className: "mb-6 overflow-x-auto",
|
|
119
|
-
children: /* @__PURE__ */
|
|
120
|
-
options:
|
|
121
|
-
value:
|
|
122
|
-
onChange:
|
|
187
|
+
children: /* @__PURE__ */ h(le, {
|
|
188
|
+
options: Re,
|
|
189
|
+
value: D,
|
|
190
|
+
onChange: k
|
|
123
191
|
})
|
|
124
192
|
}),
|
|
125
|
-
|
|
193
|
+
L.isLoading && W.length === 0 ? /* @__PURE__ */ h(re, { label: `Loading ${i(D).toLowerCase()} history…` }) : L.isError ? /* @__PURE__ */ h(o, {
|
|
126
194
|
message: "We couldn't load your body-metric history.",
|
|
127
|
-
onRetry: () =>
|
|
128
|
-
}) :
|
|
195
|
+
onRetry: () => L.refetch()
|
|
196
|
+
}) : W.length === 0 ? /* @__PURE__ */ h(s, {
|
|
129
197
|
illustration: "empty-data",
|
|
130
|
-
icon: /* @__PURE__ */
|
|
131
|
-
title: `No ${
|
|
198
|
+
icon: /* @__PURE__ */ h(U, { className: "h-10 w-10" }),
|
|
199
|
+
title: `No ${i(D).toLowerCase()} readings yet`,
|
|
132
200
|
description: "Record a measurement to start tracking this metric over time.",
|
|
133
|
-
action: /* @__PURE__ */
|
|
201
|
+
action: /* @__PURE__ */ g(_, {
|
|
134
202
|
onClick: Q,
|
|
135
|
-
children: [/* @__PURE__ */
|
|
203
|
+
children: [/* @__PURE__ */ h(m, { className: "mr-1.5 h-4 w-4" }), " Record measurement"]
|
|
136
204
|
})
|
|
137
|
-
}) : /* @__PURE__ */
|
|
205
|
+
}) : /* @__PURE__ */ g("div", {
|
|
138
206
|
className: "space-y-6",
|
|
139
207
|
children: [
|
|
140
|
-
/* @__PURE__ */
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
className: "
|
|
145
|
-
children: [/* @__PURE__ */
|
|
146
|
-
className: "flex items-
|
|
147
|
-
children: [/* @__PURE__ */
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
children:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
className: "text-
|
|
161
|
-
children: [
|
|
162
|
-
className: "
|
|
163
|
-
children:
|
|
208
|
+
/* @__PURE__ */ h(e.div, {
|
|
209
|
+
...V(0),
|
|
210
|
+
children: /* @__PURE__ */ g(Te, {
|
|
211
|
+
treatment: "glass",
|
|
212
|
+
className: "rounded-2xl p-6 transition-shadow duration-300 hover:shadow-2xl",
|
|
213
|
+
children: [/* @__PURE__ */ g("div", {
|
|
214
|
+
className: "flex flex-wrap items-start justify-between gap-4",
|
|
215
|
+
children: [/* @__PURE__ */ g("div", {
|
|
216
|
+
className: "flex items-center gap-3",
|
|
217
|
+
children: [/* @__PURE__ */ h(c, {
|
|
218
|
+
icon: /* @__PURE__ */ h(U, { className: "h-5 w-5" }),
|
|
219
|
+
tint: H.tint
|
|
220
|
+
}), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("h2", {
|
|
221
|
+
className: "text-base font-semibold text-text-primary",
|
|
222
|
+
children: i(D)
|
|
223
|
+
}), /* @__PURE__ */ h("p", {
|
|
224
|
+
className: "text-sm text-text-secondary",
|
|
225
|
+
children: K ? `Last measured ${ne(K.measuredAt)}` : "No measurements yet"
|
|
226
|
+
})] })]
|
|
227
|
+
}), /* @__PURE__ */ g("div", {
|
|
228
|
+
className: "text-right",
|
|
229
|
+
children: [/* @__PURE__ */ g("p", {
|
|
230
|
+
className: "text-3xl font-bold leading-none tracking-tight tabular-nums text-text-primary sm:text-4xl",
|
|
231
|
+
children: [K ? a(K.value) : "—", K && /* @__PURE__ */ h("span", {
|
|
232
|
+
className: "ml-1 text-base font-medium text-text-tertiary",
|
|
233
|
+
children: H.unit
|
|
234
|
+
})]
|
|
235
|
+
}), J != null && /* @__PURE__ */ h("div", {
|
|
236
|
+
className: "mt-2 flex justify-end",
|
|
237
|
+
children: /* @__PURE__ */ h("span", {
|
|
238
|
+
className: "inline-flex items-center rounded-full bg-bg-sunken px-2.5 py-1 ring-1 ring-border-seam",
|
|
239
|
+
children: /* @__PURE__ */ h(ae, {
|
|
240
|
+
delta: J,
|
|
241
|
+
unit: ` ${H.unit}`,
|
|
242
|
+
goodDirection: Le
|
|
243
|
+
})
|
|
244
|
+
})
|
|
164
245
|
})]
|
|
165
|
-
}), X != null && /* @__PURE__ */ f("div", {
|
|
166
|
-
className: "mt-1 flex justify-end",
|
|
167
|
-
children: /* @__PURE__ */ f(oe, {
|
|
168
|
-
delta: X,
|
|
169
|
-
unit: ` ${W.unit}`,
|
|
170
|
-
goodDirection: ke
|
|
171
|
-
})
|
|
172
246
|
})]
|
|
173
|
-
})
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
247
|
+
}), /* @__PURE__ */ h("div", {
|
|
248
|
+
className: "mt-6 h-64 w-full",
|
|
249
|
+
children: /* @__PURE__ */ h(me, {
|
|
250
|
+
width: "100%",
|
|
251
|
+
height: "100%",
|
|
252
|
+
children: /* @__PURE__ */ g(ye, {
|
|
253
|
+
data: Y,
|
|
254
|
+
margin: {
|
|
255
|
+
top: 8,
|
|
256
|
+
right: 14,
|
|
257
|
+
bottom: 4,
|
|
258
|
+
left: -8
|
|
259
|
+
},
|
|
260
|
+
children: [
|
|
261
|
+
/* @__PURE__ */ h("defs", { children: /* @__PURE__ */ g("linearGradient", {
|
|
262
|
+
id: "myb-progress-fill",
|
|
263
|
+
x1: "0",
|
|
264
|
+
y1: "0",
|
|
265
|
+
x2: "0",
|
|
266
|
+
y2: "1",
|
|
267
|
+
children: [
|
|
268
|
+
/* @__PURE__ */ h("stop", {
|
|
269
|
+
offset: "0%",
|
|
270
|
+
stopColor: E,
|
|
271
|
+
stopOpacity: .38
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ h("stop", {
|
|
274
|
+
offset: "55%",
|
|
275
|
+
stopColor: E,
|
|
276
|
+
stopOpacity: .12
|
|
277
|
+
}),
|
|
278
|
+
/* @__PURE__ */ h("stop", {
|
|
279
|
+
offset: "100%",
|
|
280
|
+
stopColor: E,
|
|
281
|
+
stopOpacity: 0
|
|
282
|
+
})
|
|
283
|
+
]
|
|
284
|
+
}) }),
|
|
285
|
+
/* @__PURE__ */ h(he, {
|
|
286
|
+
stroke: "var(--color-border-seam)",
|
|
287
|
+
strokeDasharray: "4 4",
|
|
288
|
+
vertical: !1
|
|
289
|
+
}),
|
|
290
|
+
/* @__PURE__ */ h(_e, {
|
|
291
|
+
dataKey: "label",
|
|
292
|
+
stroke: "var(--color-border-seam)",
|
|
293
|
+
tickLine: !1,
|
|
294
|
+
axisLine: !1,
|
|
295
|
+
tick: {
|
|
296
|
+
fill: "var(--color-text-tertiary)",
|
|
297
|
+
fontSize: 12
|
|
298
|
+
},
|
|
299
|
+
tickMargin: 8,
|
|
300
|
+
minTickGap: 24
|
|
301
|
+
}),
|
|
302
|
+
/* @__PURE__ */ h(ve, {
|
|
303
|
+
stroke: "var(--color-border-seam)",
|
|
304
|
+
tickLine: !1,
|
|
305
|
+
axisLine: !1,
|
|
306
|
+
tick: {
|
|
307
|
+
fill: "var(--color-text-tertiary)",
|
|
308
|
+
fontSize: 12
|
|
309
|
+
},
|
|
310
|
+
width: 44,
|
|
311
|
+
domain: ["auto", "auto"]
|
|
312
|
+
}),
|
|
313
|
+
/* @__PURE__ */ h(pe, {
|
|
314
|
+
cursor: {
|
|
315
|
+
stroke: "var(--color-border-seam)",
|
|
316
|
+
strokeDasharray: "4 4"
|
|
317
|
+
},
|
|
318
|
+
contentStyle: {
|
|
319
|
+
background: "var(--color-bg-surface)",
|
|
320
|
+
border: "1px solid var(--color-border-seam)",
|
|
321
|
+
borderRadius: 12,
|
|
322
|
+
color: "var(--color-text-primary)"
|
|
323
|
+
},
|
|
324
|
+
labelStyle: { color: "var(--color-text-tertiary)" },
|
|
325
|
+
itemStyle: { color: "var(--color-text-primary)" },
|
|
326
|
+
formatter: (e) => [`${a(Number(e))} ${H.unit}`, i(D)]
|
|
327
|
+
}),
|
|
328
|
+
/* @__PURE__ */ h(ge, {
|
|
329
|
+
type: "monotone",
|
|
330
|
+
dataKey: "value",
|
|
331
|
+
name: i(D),
|
|
332
|
+
stroke: E,
|
|
333
|
+
strokeWidth: 2.5,
|
|
334
|
+
fill: "url(#myb-progress-fill)",
|
|
335
|
+
fillOpacity: 1,
|
|
336
|
+
dot: !1,
|
|
337
|
+
activeDot: {
|
|
338
|
+
r: 5,
|
|
339
|
+
strokeWidth: 2,
|
|
340
|
+
stroke: "var(--color-bg-surface)",
|
|
341
|
+
fill: E
|
|
342
|
+
},
|
|
343
|
+
isAnimationActive: !B,
|
|
344
|
+
animationDuration: 900
|
|
345
|
+
}),
|
|
346
|
+
X && /* @__PURE__ */ h(d, {
|
|
347
|
+
x: X.label,
|
|
348
|
+
y: X.value,
|
|
349
|
+
r: 12,
|
|
350
|
+
isFront: !0,
|
|
351
|
+
ifOverflow: "visible",
|
|
352
|
+
fill: E,
|
|
353
|
+
fillOpacity: .16,
|
|
354
|
+
stroke: "none"
|
|
355
|
+
}),
|
|
356
|
+
X && /* @__PURE__ */ h(d, {
|
|
357
|
+
x: X.label,
|
|
358
|
+
y: X.value,
|
|
359
|
+
r: 5,
|
|
360
|
+
isFront: !0,
|
|
361
|
+
ifOverflow: "visible",
|
|
362
|
+
fill: E,
|
|
363
|
+
stroke: "var(--color-bg-surface)",
|
|
364
|
+
strokeWidth: 2
|
|
365
|
+
})
|
|
366
|
+
]
|
|
367
|
+
})
|
|
238
368
|
})
|
|
239
|
-
})
|
|
240
|
-
})
|
|
369
|
+
})]
|
|
370
|
+
})
|
|
241
371
|
}),
|
|
242
|
-
Z && /* @__PURE__ */
|
|
372
|
+
Z && /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ g("div", {
|
|
243
373
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
244
374
|
children: [
|
|
245
|
-
/* @__PURE__ */
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
375
|
+
/* @__PURE__ */ h(e.div, {
|
|
376
|
+
...V(.08),
|
|
377
|
+
children: /* @__PURE__ */ h(n, {
|
|
378
|
+
className: "h-full rounded-2xl transition-shadow duration-300 hover:shadow-xl",
|
|
379
|
+
icon: /* @__PURE__ */ h(c, {
|
|
380
|
+
icon: /* @__PURE__ */ h(xe, { className: "h-5 w-5" }),
|
|
381
|
+
tint: E
|
|
382
|
+
}),
|
|
383
|
+
value: a(Z.count),
|
|
384
|
+
label: "Recent readings"
|
|
385
|
+
})
|
|
249
386
|
}),
|
|
250
|
-
/* @__PURE__ */
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
387
|
+
/* @__PURE__ */ h(e.div, {
|
|
388
|
+
...V(.14),
|
|
389
|
+
children: /* @__PURE__ */ h(n, {
|
|
390
|
+
className: "h-full rounded-2xl transition-shadow duration-300 hover:shadow-xl",
|
|
391
|
+
icon: /* @__PURE__ */ h(c, {
|
|
392
|
+
icon: /* @__PURE__ */ h(Ce, { className: "h-5 w-5" }),
|
|
393
|
+
tint: E
|
|
394
|
+
}),
|
|
395
|
+
value: `${a(Z.avg, { maximumFractionDigits: 1 })} ${H.unit}`,
|
|
396
|
+
label: `Window average ${i(D).toLowerCase()}`
|
|
397
|
+
})
|
|
254
398
|
}),
|
|
255
|
-
/* @__PURE__ */
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
399
|
+
/* @__PURE__ */ h(e.div, {
|
|
400
|
+
...V(.2),
|
|
401
|
+
children: /* @__PURE__ */ h(n, {
|
|
402
|
+
className: "h-full rounded-2xl transition-shadow duration-300 hover:shadow-xl",
|
|
403
|
+
icon: /* @__PURE__ */ h(c, {
|
|
404
|
+
icon: /* @__PURE__ */ h(Se, { className: "h-5 w-5" }),
|
|
405
|
+
tint: E
|
|
406
|
+
}),
|
|
407
|
+
value: `${a(Z.min)}–${a(Z.max)}`,
|
|
408
|
+
label: `Window range (${H.unit})`
|
|
409
|
+
})
|
|
259
410
|
})
|
|
260
411
|
]
|
|
261
|
-
}), /* @__PURE__ */
|
|
412
|
+
}), /* @__PURE__ */ g("p", {
|
|
262
413
|
className: "mt-2 text-xs text-text-tertiary",
|
|
263
414
|
children: [
|
|
264
415
|
"Based on your most recent ",
|
|
265
|
-
|
|
416
|
+
a(Z.count),
|
|
266
417
|
" ",
|
|
267
|
-
|
|
418
|
+
i(D).toLowerCase(),
|
|
268
419
|
" reading",
|
|
269
420
|
Z.count === 1 ? "" : "s",
|
|
270
421
|
" (up to ",
|
|
271
|
-
|
|
422
|
+
a(w),
|
|
272
423
|
") — not a full-history total."
|
|
273
424
|
]
|
|
274
425
|
})] }),
|
|
275
|
-
/* @__PURE__ */
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
render: (e) => /* @__PURE__ */ p("span", {
|
|
297
|
-
className: "font-medium tabular-nums text-text-primary",
|
|
298
|
-
children: [r(e.value), /* @__PURE__ */ f("span", {
|
|
299
|
-
className: "ml-1 text-xs font-normal text-text-tertiary",
|
|
300
|
-
children: e.unit
|
|
301
|
-
})]
|
|
302
|
-
})
|
|
303
|
-
},
|
|
304
|
-
{
|
|
426
|
+
/* @__PURE__ */ h(e.div, {
|
|
427
|
+
...V(.26, !1),
|
|
428
|
+
children: /* @__PURE__ */ h(ie, {
|
|
429
|
+
title: "Measurement log",
|
|
430
|
+
description: "Every recorded reading for this metric.",
|
|
431
|
+
children: R.isError ? /* @__PURE__ */ h(o, {
|
|
432
|
+
message: "We couldn't load this page of measurements.",
|
|
433
|
+
onRetry: () => R.refetch()
|
|
434
|
+
}) : R.isLoading && $.length === 0 ? /* @__PURE__ */ h("div", {
|
|
435
|
+
className: "py-8 text-center text-sm text-text-secondary",
|
|
436
|
+
children: "Loading measurements…"
|
|
437
|
+
}) : $.length === 0 ? /* @__PURE__ */ h(s, {
|
|
438
|
+
illustration: "empty-data",
|
|
439
|
+
icon: /* @__PURE__ */ h(U, { className: "h-10 w-10" }),
|
|
440
|
+
title: "No measurements on this page",
|
|
441
|
+
description: "Go back a page or record a new measurement."
|
|
442
|
+
}) : /* @__PURE__ */ g(we, { children: [/* @__PURE__ */ h(ce, {
|
|
443
|
+
columns: Be,
|
|
444
|
+
rows: $,
|
|
445
|
+
rowKey: (e) => e.id,
|
|
446
|
+
defaultSort: {
|
|
305
447
|
key: "measuredAt",
|
|
306
|
-
|
|
307
|
-
sortValue: (e) => new Date(e.measuredAt).getTime(),
|
|
308
|
-
render: (e) => /* @__PURE__ */ f("span", {
|
|
309
|
-
className: "whitespace-nowrap text-text-secondary",
|
|
310
|
-
children: te(e.measuredAt)
|
|
311
|
-
})
|
|
312
|
-
},
|
|
313
|
-
{
|
|
314
|
-
key: "notes",
|
|
315
|
-
header: "Notes",
|
|
316
|
-
hideOnMobile: !0,
|
|
317
|
-
render: (e) => e.notes ? /* @__PURE__ */ f("span", {
|
|
318
|
-
className: "text-text-secondary",
|
|
319
|
-
children: e.notes
|
|
320
|
-
}) : /* @__PURE__ */ f("span", {
|
|
321
|
-
className: "text-text-tertiary",
|
|
322
|
-
children: "—"
|
|
323
|
-
})
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
key: "photo",
|
|
327
|
-
header: "Photo",
|
|
328
|
-
render: (e) => e.photo?.id ? /* @__PURE__ */ f(pe, { fileId: e.photo.id }) : /* @__PURE__ */ f("span", {
|
|
329
|
-
className: "text-text-tertiary",
|
|
330
|
-
children: "—"
|
|
331
|
-
})
|
|
448
|
+
dir: "desc"
|
|
332
449
|
}
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
}
|
|
340
|
-
})
|
|
341
|
-
page: z.page,
|
|
342
|
-
pageSize: A,
|
|
343
|
-
itemCount: $.length,
|
|
344
|
-
hasMore: H.data?.pageInfo?.hasMore ?? !1,
|
|
345
|
-
onPageChange: (e) => z.onPageChange(e)
|
|
346
|
-
})] })
|
|
450
|
+
}), /* @__PURE__ */ h(ue, {
|
|
451
|
+
page: F.page,
|
|
452
|
+
pageSize: T,
|
|
453
|
+
itemCount: $.length,
|
|
454
|
+
hasMore: R.data?.pageInfo?.hasMore ?? !1,
|
|
455
|
+
onPageChange: (e) => F.onPageChange(e)
|
|
456
|
+
})] })
|
|
457
|
+
})
|
|
347
458
|
})
|
|
348
459
|
]
|
|
349
460
|
}),
|
|
350
|
-
/* @__PURE__ */
|
|
351
|
-
open:
|
|
352
|
-
onOpenChange:
|
|
353
|
-
children: /* @__PURE__ */
|
|
354
|
-
/* @__PURE__ */
|
|
355
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ h(Ee, {
|
|
462
|
+
open: Ie,
|
|
463
|
+
onOpenChange: A,
|
|
464
|
+
children: /* @__PURE__ */ g(De, { children: [
|
|
465
|
+
/* @__PURE__ */ g(Ae, { children: [/* @__PURE__ */ h(je, { children: "Record measurement" }), /* @__PURE__ */ h(Oe, { children: "Log a new body-metric reading to track your progress over time." })] }),
|
|
466
|
+
/* @__PURE__ */ g("div", {
|
|
356
467
|
className: "space-y-4 py-2",
|
|
357
468
|
children: [
|
|
358
|
-
/* @__PURE__ */
|
|
469
|
+
/* @__PURE__ */ g("div", {
|
|
359
470
|
className: "space-y-1.5",
|
|
360
|
-
children: [/* @__PURE__ */
|
|
471
|
+
children: [/* @__PURE__ */ h(y, {
|
|
361
472
|
htmlFor: "myb-metric-type",
|
|
362
473
|
children: "Metric"
|
|
363
|
-
}), /* @__PURE__ */
|
|
364
|
-
value:
|
|
474
|
+
}), /* @__PURE__ */ g(b, {
|
|
475
|
+
value: j.type,
|
|
365
476
|
onValueChange: (e) => {
|
|
366
477
|
let t = e;
|
|
367
|
-
|
|
478
|
+
M((e) => ({
|
|
368
479
|
...e,
|
|
369
480
|
type: t,
|
|
370
|
-
unit:
|
|
481
|
+
unit: l[t].unit
|
|
371
482
|
}));
|
|
372
483
|
},
|
|
373
|
-
children: [/* @__PURE__ */
|
|
484
|
+
children: [/* @__PURE__ */ h(Me, {
|
|
374
485
|
id: "myb-metric-type",
|
|
375
|
-
children: /* @__PURE__ */
|
|
376
|
-
}), /* @__PURE__ */
|
|
486
|
+
children: /* @__PURE__ */ h(Ne, { placeholder: "Select a metric" })
|
|
487
|
+
}), /* @__PURE__ */ h(x, { children: C.map((e) => /* @__PURE__ */ h(S, {
|
|
377
488
|
value: e,
|
|
378
|
-
children:
|
|
489
|
+
children: i(e)
|
|
379
490
|
}, e)) })]
|
|
380
491
|
})]
|
|
381
492
|
}),
|
|
382
|
-
/* @__PURE__ */
|
|
493
|
+
/* @__PURE__ */ g("div", {
|
|
383
494
|
className: "grid grid-cols-2 gap-3",
|
|
384
|
-
children: [/* @__PURE__ */
|
|
495
|
+
children: [/* @__PURE__ */ g("div", {
|
|
385
496
|
className: "space-y-1.5",
|
|
386
|
-
children: [/* @__PURE__ */
|
|
497
|
+
children: [/* @__PURE__ */ h(y, {
|
|
387
498
|
htmlFor: "myb-metric-value",
|
|
388
499
|
children: "Value"
|
|
389
|
-
}), /* @__PURE__ */
|
|
500
|
+
}), /* @__PURE__ */ h(v, {
|
|
390
501
|
id: "myb-metric-value",
|
|
391
502
|
type: "number",
|
|
392
503
|
inputMode: "decimal",
|
|
393
504
|
step: "any",
|
|
394
|
-
value:
|
|
395
|
-
onChange: (e) =>
|
|
505
|
+
value: j.value,
|
|
506
|
+
onChange: (e) => M((t) => ({
|
|
396
507
|
...t,
|
|
397
508
|
value: e.target.value
|
|
398
509
|
})),
|
|
399
510
|
placeholder: "0"
|
|
400
511
|
})]
|
|
401
|
-
}), /* @__PURE__ */
|
|
512
|
+
}), /* @__PURE__ */ g("div", {
|
|
402
513
|
className: "space-y-1.5",
|
|
403
|
-
children: [/* @__PURE__ */
|
|
514
|
+
children: [/* @__PURE__ */ h(y, {
|
|
404
515
|
htmlFor: "myb-metric-unit",
|
|
405
516
|
children: "Unit"
|
|
406
|
-
}), /* @__PURE__ */
|
|
517
|
+
}), /* @__PURE__ */ h(v, {
|
|
407
518
|
id: "myb-metric-unit",
|
|
408
|
-
value:
|
|
409
|
-
onChange: (e) =>
|
|
519
|
+
value: j.unit,
|
|
520
|
+
onChange: (e) => M((t) => ({
|
|
410
521
|
...t,
|
|
411
522
|
unit: e.target.value
|
|
412
523
|
})),
|
|
413
|
-
placeholder:
|
|
524
|
+
placeholder: l[j.type].unit
|
|
414
525
|
})]
|
|
415
526
|
})]
|
|
416
527
|
}),
|
|
417
|
-
/* @__PURE__ */
|
|
528
|
+
/* @__PURE__ */ g("div", {
|
|
418
529
|
className: "space-y-1.5",
|
|
419
|
-
children: [/* @__PURE__ */
|
|
530
|
+
children: [/* @__PURE__ */ h(y, {
|
|
420
531
|
htmlFor: "myb-metric-measured",
|
|
421
532
|
children: "Measured at"
|
|
422
|
-
}), /* @__PURE__ */
|
|
533
|
+
}), /* @__PURE__ */ h(v, {
|
|
423
534
|
id: "myb-metric-measured",
|
|
424
535
|
type: "datetime-local",
|
|
425
|
-
value:
|
|
426
|
-
onChange: (e) =>
|
|
536
|
+
value: j.measuredAt,
|
|
537
|
+
onChange: (e) => M((t) => ({
|
|
427
538
|
...t,
|
|
428
539
|
measuredAt: e.target.value
|
|
429
540
|
}))
|
|
430
541
|
})]
|
|
431
542
|
}),
|
|
432
|
-
/* @__PURE__ */
|
|
543
|
+
/* @__PURE__ */ g("div", {
|
|
433
544
|
className: "space-y-1.5",
|
|
434
|
-
children: [/* @__PURE__ */
|
|
545
|
+
children: [/* @__PURE__ */ h(y, {
|
|
435
546
|
htmlFor: "myb-metric-notes",
|
|
436
547
|
children: "Notes"
|
|
437
|
-
}), /* @__PURE__ */
|
|
548
|
+
}), /* @__PURE__ */ h(Pe, {
|
|
438
549
|
id: "myb-metric-notes",
|
|
439
|
-
value:
|
|
440
|
-
onChange: (e) =>
|
|
550
|
+
value: j.notes,
|
|
551
|
+
onChange: (e) => M((t) => ({
|
|
441
552
|
...t,
|
|
442
553
|
notes: e.target.value
|
|
443
554
|
})),
|
|
@@ -445,33 +556,33 @@ function N() {
|
|
|
445
556
|
rows: 3
|
|
446
557
|
})]
|
|
447
558
|
}),
|
|
448
|
-
/* @__PURE__ */
|
|
559
|
+
/* @__PURE__ */ h(de, {
|
|
449
560
|
id: "myb-metric-photo",
|
|
450
561
|
label: "Progress photo (optional)",
|
|
451
|
-
value:
|
|
452
|
-
onChange: (e) =>
|
|
562
|
+
value: j.photo,
|
|
563
|
+
onChange: (e) => M((t) => ({
|
|
453
564
|
...t,
|
|
454
565
|
photo: e
|
|
455
566
|
})),
|
|
456
567
|
accept: "image/*",
|
|
457
|
-
disabled:
|
|
568
|
+
disabled: z.isPending,
|
|
458
569
|
hint: "Attach a progress photo for this reading."
|
|
459
570
|
}),
|
|
460
|
-
|
|
571
|
+
N && /* @__PURE__ */ h("p", {
|
|
461
572
|
className: "text-sm text-status-error-text",
|
|
462
|
-
children:
|
|
573
|
+
children: N
|
|
463
574
|
})
|
|
464
575
|
]
|
|
465
576
|
}),
|
|
466
|
-
/* @__PURE__ */
|
|
577
|
+
/* @__PURE__ */ g(ke, { children: [/* @__PURE__ */ h(_, {
|
|
467
578
|
variant: "outline",
|
|
468
|
-
onClick: () =>
|
|
469
|
-
disabled:
|
|
579
|
+
onClick: () => A(!1),
|
|
580
|
+
disabled: z.isPending,
|
|
470
581
|
children: "Cancel"
|
|
471
|
-
}), /* @__PURE__ */
|
|
472
|
-
onClick:
|
|
473
|
-
disabled:
|
|
474
|
-
children:
|
|
582
|
+
}), /* @__PURE__ */ h(_, {
|
|
583
|
+
onClick: ze,
|
|
584
|
+
disabled: z.isPending,
|
|
585
|
+
children: z.isPending ? "Recording…" : "Record"
|
|
475
586
|
})] })
|
|
476
587
|
] })
|
|
477
588
|
})
|
|
@@ -479,6 +590,6 @@ function N() {
|
|
|
479
590
|
});
|
|
480
591
|
}
|
|
481
592
|
//#endregion
|
|
482
|
-
export {
|
|
593
|
+
export { k as ProgressPage };
|
|
483
594
|
|
|
484
595
|
//# sourceMappingURL=ProgressPage.js.map
|