@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,373 +1,470 @@
|
|
|
1
1
|
import { useMyBodyShield as e } from "../context/MyBodyShieldContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
2
|
+
import { motion as t } from "../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
3
|
+
import { useReducedMotion as n } from "../../node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js";
|
|
4
|
+
import { PageLayout as r } from "../components/PageLayout.js";
|
|
5
|
+
import { MetricsCard as i } from "../components/MetricsCard.js";
|
|
6
|
+
import { formatEnumLabel as ee, formatNumber as a, formatPercent as o, formatRelativeTime as s, formatWeight as c } from "../utils/formatters.js";
|
|
7
|
+
import { StatusBadge as l } from "../components/StatusBadge.js";
|
|
8
|
+
import { MiniBar as u } from "../components/MiniBar.js";
|
|
9
|
+
import { LoadingView as te, Section as d } from "../components/StateViews.js";
|
|
10
|
+
import { EmptyState as f } from "../components/EmptyState.js";
|
|
11
|
+
import { GOAL_TYPE_META as ne, IconChip as p, MacroBar as re, MacroLegend as ie, Meter as m, ProgressRing as ae, WORKOUT_TYPE_META as oe, computeGoalProgress as h } from "./_shared/visuals.js";
|
|
10
12
|
import "../context/index.js";
|
|
11
|
-
import { useMybBodyMetrics as
|
|
13
|
+
import { useMybBodyMetrics as g, useMybDailyMacros as _, useMybGoals as v, useMybPrograms as y, useMybRecoveryLogs as b, useMybSessions as x } from "../hooks/useMyBodyShieldApi.js";
|
|
12
14
|
import "../hooks/index.js";
|
|
13
|
-
import { useMemo as
|
|
14
|
-
import { ArrowRight as
|
|
15
|
-
import { jsx as
|
|
16
|
-
import { GlassCard as
|
|
15
|
+
import { useMemo as S } from "react";
|
|
16
|
+
import { ArrowRight as C, CalendarCheck as w, CheckCircle2 as se, Dumbbell as ce, Flame as T, Moon as le, Salad as ue, Target as E, Weight as de } from "lucide-react";
|
|
17
|
+
import { jsx as D, jsxs as O } from "react/jsx-runtime";
|
|
18
|
+
import { GlassCard as k } from "@burdenoff/fe-libs/ui";
|
|
17
19
|
//#region src/mybodyshield/pages/DashboardPage.tsx
|
|
20
|
+
var A = [
|
|
21
|
+
.16,
|
|
22
|
+
1,
|
|
23
|
+
.3,
|
|
24
|
+
1
|
|
25
|
+
];
|
|
18
26
|
function j() {
|
|
19
|
-
let { navigateTo: j, currentUser: M } = e(), N =
|
|
27
|
+
let { navigateTo: j, currentUser: M } = e(), N = n(), P = (e) => N ? {} : {
|
|
28
|
+
initial: {
|
|
29
|
+
opacity: 0,
|
|
30
|
+
y: 14
|
|
31
|
+
},
|
|
32
|
+
whileInView: {
|
|
33
|
+
opacity: 1,
|
|
34
|
+
y: 0
|
|
35
|
+
},
|
|
36
|
+
viewport: {
|
|
37
|
+
once: !0,
|
|
38
|
+
amount: .15
|
|
39
|
+
},
|
|
40
|
+
transition: {
|
|
41
|
+
duration: .45,
|
|
42
|
+
delay: Math.min(e, 8) * .05,
|
|
43
|
+
ease: A
|
|
44
|
+
}
|
|
45
|
+
}, F = N ? {} : { whileHover: {
|
|
46
|
+
y: -3,
|
|
47
|
+
transition: {
|
|
48
|
+
duration: .2,
|
|
49
|
+
ease: A
|
|
50
|
+
}
|
|
51
|
+
} }, I = N ? {} : {
|
|
52
|
+
whileHover: {
|
|
53
|
+
y: -3,
|
|
54
|
+
transition: {
|
|
55
|
+
duration: .2,
|
|
56
|
+
ease: A
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
whileTap: { scale: .985 }
|
|
60
|
+
}, L = y({
|
|
20
61
|
status: "ACTIVE",
|
|
21
62
|
pagination: { limit: 50 }
|
|
22
|
-
}),
|
|
63
|
+
}), R = x({ pagination: { limit: 20 } }), z = v({
|
|
23
64
|
status: "ACTIVE",
|
|
24
65
|
pagination: { limit: 50 }
|
|
25
|
-
}),
|
|
66
|
+
}), B = _(), V = g({
|
|
26
67
|
type: "WEIGHT",
|
|
27
68
|
pagination: { limit: 30 }
|
|
28
|
-
}),
|
|
69
|
+
}), fe = b("READINESS"), pe = L.data?.items ?? [], H = R.data?.items ?? [], U = z.data?.items ?? [], W = V.data?.items ?? [], me = fe.data ?? [], he = (/* @__PURE__ */ new Date()).getTime() - 10080 * 60 * 1e3, G = H.filter((e) => {
|
|
29
70
|
let t = e.completedAt ?? e.startedAt ?? e.scheduledFor ?? e.createdAt;
|
|
30
|
-
return t ? new Date(t).getTime() >=
|
|
31
|
-
}),
|
|
32
|
-
|
|
71
|
+
return t ? new Date(t).getTime() >= he : !1;
|
|
72
|
+
}), ge = G.filter((e) => e.status === "COMPLETED").length, K = H.find((e) => e.status === "IN_PROGRESS"), q = H.filter((e) => e.status === "SCHEDULED" && e.scheduledFor).sort((e, t) => new Date(e.scheduledFor).getTime() - new Date(t.scheduledFor).getTime())[0], J = W[0], Y = W[1], X = J && Y ? J.value - Y.value : void 0, Z = me.slice().sort((e, t) => new Date(t.loggedAt).getTime() - new Date(e.loggedAt).getTime())[0], Q = S(() => U.length === 0 ? 0 : U.reduce((e, t) => e + h(t), 0) / U.length, [U]), $ = B.data, _e = $?.calorieTarget ? $.calories / $.calorieTarget * 100 : 0;
|
|
73
|
+
if (L.isLoading && R.isLoading && z.isLoading && B.isLoading) return /* @__PURE__ */ D(r, {
|
|
33
74
|
title: "MyBodyShield",
|
|
34
75
|
titleGradient: !0,
|
|
35
76
|
aurora: !0,
|
|
36
|
-
children: /* @__PURE__ */
|
|
37
|
-
})
|
|
77
|
+
children: /* @__PURE__ */ D(te, { label: "Loading your fitness overview…" })
|
|
78
|
+
});
|
|
79
|
+
let ve = M?.firstName || M?.name || "there", ye = [
|
|
80
|
+
{
|
|
81
|
+
id: "programs",
|
|
82
|
+
node: /* @__PURE__ */ D(i, {
|
|
83
|
+
icon: /* @__PURE__ */ D(ce, { className: "h-5 w-5" }),
|
|
84
|
+
value: a(pe.length),
|
|
85
|
+
label: "Active programs",
|
|
86
|
+
footer: /* @__PURE__ */ D("p", {
|
|
87
|
+
className: "text-xs text-text-tertiary",
|
|
88
|
+
children: /* @__PURE__ */ D("button", {
|
|
89
|
+
type: "button",
|
|
90
|
+
onClick: () => j("programs"),
|
|
91
|
+
className: "font-medium text-accent hover:underline",
|
|
92
|
+
children: "Manage programs"
|
|
93
|
+
})
|
|
94
|
+
})
|
|
95
|
+
})
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: "sessions",
|
|
99
|
+
node: /* @__PURE__ */ D(i, {
|
|
100
|
+
icon: /* @__PURE__ */ D(T, { className: "h-5 w-5" }),
|
|
101
|
+
value: a(ge),
|
|
102
|
+
label: "Sessions this week",
|
|
103
|
+
accent: K ? "warning" : void 0,
|
|
104
|
+
footer: K ? /* @__PURE__ */ D("button", {
|
|
105
|
+
type: "button",
|
|
106
|
+
onClick: () => j(`train/${K.id}`),
|
|
107
|
+
className: "text-xs font-medium text-status-warning-text hover:underline",
|
|
108
|
+
children: "Resume live session →"
|
|
109
|
+
}) : /* @__PURE__ */ O("p", {
|
|
110
|
+
className: "text-xs text-text-tertiary",
|
|
111
|
+
children: [
|
|
112
|
+
/* @__PURE__ */ D("span", {
|
|
113
|
+
className: "tabular-nums text-text-secondary",
|
|
114
|
+
children: G.length
|
|
115
|
+
}),
|
|
116
|
+
" ",
|
|
117
|
+
"logged"
|
|
118
|
+
]
|
|
119
|
+
})
|
|
120
|
+
})
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
id: "goals",
|
|
124
|
+
node: /* @__PURE__ */ D(i, {
|
|
125
|
+
icon: /* @__PURE__ */ D(E, { className: "h-5 w-5" }),
|
|
126
|
+
value: a(U.length),
|
|
127
|
+
label: "Active goals",
|
|
128
|
+
footer: /* @__PURE__ */ O("div", {
|
|
129
|
+
className: "space-y-2",
|
|
130
|
+
children: [/* @__PURE__ */ D(u, {
|
|
131
|
+
value: Q,
|
|
132
|
+
height: 4,
|
|
133
|
+
barClassName: "bg-action-primary-bg"
|
|
134
|
+
}), /* @__PURE__ */ O("p", {
|
|
135
|
+
className: "text-xs text-text-tertiary",
|
|
136
|
+
children: [
|
|
137
|
+
/* @__PURE__ */ D("span", {
|
|
138
|
+
className: "tabular-nums text-text-secondary",
|
|
139
|
+
children: o(Q)
|
|
140
|
+
}),
|
|
141
|
+
" ",
|
|
142
|
+
"avg progress"
|
|
143
|
+
]
|
|
144
|
+
})]
|
|
145
|
+
})
|
|
146
|
+
})
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
id: "weight",
|
|
150
|
+
node: /* @__PURE__ */ D(i, {
|
|
151
|
+
icon: /* @__PURE__ */ D(de, { className: "h-5 w-5" }),
|
|
152
|
+
value: J ? c(J.value) : "—",
|
|
153
|
+
label: "Latest weight",
|
|
154
|
+
footer: X == null ? /* @__PURE__ */ D("button", {
|
|
155
|
+
type: "button",
|
|
156
|
+
onClick: () => j("progress"),
|
|
157
|
+
className: "text-xs font-medium text-accent hover:underline",
|
|
158
|
+
children: "Log a measurement →"
|
|
159
|
+
}) : /* @__PURE__ */ O("p", {
|
|
160
|
+
className: "text-xs text-text-tertiary",
|
|
161
|
+
children: [
|
|
162
|
+
/* @__PURE__ */ O("span", {
|
|
163
|
+
className: X <= 0 ? "font-medium text-status-success-text" : "font-medium text-text-secondary",
|
|
164
|
+
children: [
|
|
165
|
+
X > 0 ? "+" : "",
|
|
166
|
+
X.toFixed(1),
|
|
167
|
+
" kg"
|
|
168
|
+
]
|
|
169
|
+
}),
|
|
170
|
+
" ",
|
|
171
|
+
"vs last"
|
|
172
|
+
]
|
|
173
|
+
})
|
|
174
|
+
})
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
id: "recovery",
|
|
178
|
+
node: /* @__PURE__ */ D(i, {
|
|
179
|
+
icon: /* @__PURE__ */ D(le, { className: "h-5 w-5" }),
|
|
180
|
+
value: Z ? `${Z.score}` : "—",
|
|
181
|
+
label: "Recovery readiness",
|
|
182
|
+
accent: Z ? Z.score >= 70 ? "success" : Z.score >= 40 ? "warning" : "error" : void 0,
|
|
183
|
+
footer: Z ? /* @__PURE__ */ D("p", {
|
|
184
|
+
className: "text-xs text-text-tertiary",
|
|
185
|
+
children: s(Z.loggedAt)
|
|
186
|
+
}) : /* @__PURE__ */ D("button", {
|
|
187
|
+
type: "button",
|
|
188
|
+
onClick: () => j("recovery"),
|
|
189
|
+
className: "text-xs font-medium text-accent hover:underline",
|
|
190
|
+
children: "Log recovery →"
|
|
191
|
+
})
|
|
192
|
+
})
|
|
193
|
+
}
|
|
194
|
+
];
|
|
195
|
+
return /* @__PURE__ */ O(r, {
|
|
38
196
|
title: "MyBodyShield",
|
|
39
197
|
titleGradient: !0,
|
|
40
198
|
aurora: !0,
|
|
41
|
-
description: `Welcome back, ${
|
|
199
|
+
description: `Welcome back, ${ve} — your training, nutrition, progress & recovery control room.`,
|
|
42
200
|
children: [
|
|
43
|
-
/* @__PURE__ */
|
|
201
|
+
/* @__PURE__ */ D("div", {
|
|
44
202
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5",
|
|
45
|
-
children:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
onClick: () => j("programs"),
|
|
55
|
-
className: "font-medium text-accent hover:underline",
|
|
56
|
-
children: "Manage programs"
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
}),
|
|
60
|
-
/* @__PURE__ */ O(n, {
|
|
61
|
-
icon: /* @__PURE__ */ O(E, { className: "h-5 w-5" }),
|
|
62
|
-
value: i(le),
|
|
63
|
-
label: "Sessions this week",
|
|
64
|
-
accent: K ? "warning" : void 0,
|
|
65
|
-
footer: K ? /* @__PURE__ */ O("button", {
|
|
66
|
-
type: "button",
|
|
67
|
-
onClick: () => j(`train/${K.id}`),
|
|
68
|
-
className: "text-xs font-medium text-status-warning-text hover:underline",
|
|
69
|
-
children: "Resume live session →"
|
|
70
|
-
}) : /* @__PURE__ */ k("p", {
|
|
71
|
-
className: "text-xs text-text-tertiary",
|
|
72
|
-
children: [
|
|
73
|
-
/* @__PURE__ */ O("span", {
|
|
74
|
-
className: "tabular-nums text-text-secondary",
|
|
75
|
-
children: G.length
|
|
76
|
-
}),
|
|
77
|
-
" ",
|
|
78
|
-
"logged"
|
|
79
|
-
]
|
|
80
|
-
})
|
|
81
|
-
}),
|
|
82
|
-
/* @__PURE__ */ O(n, {
|
|
83
|
-
icon: /* @__PURE__ */ O(D, { className: "h-5 w-5" }),
|
|
84
|
-
value: i(V.length),
|
|
85
|
-
label: "Active goals",
|
|
86
|
-
footer: /* @__PURE__ */ k("div", {
|
|
87
|
-
className: "space-y-2",
|
|
88
|
-
children: [/* @__PURE__ */ O(te, {
|
|
89
|
-
value: Q,
|
|
90
|
-
height: 4,
|
|
91
|
-
barClassName: "bg-accent-teal"
|
|
92
|
-
}), /* @__PURE__ */ k("p", {
|
|
93
|
-
className: "text-xs text-text-tertiary",
|
|
94
|
-
children: [
|
|
95
|
-
/* @__PURE__ */ O("span", {
|
|
96
|
-
className: "tabular-nums text-text-secondary",
|
|
97
|
-
children: a(Q)
|
|
98
|
-
}),
|
|
99
|
-
" ",
|
|
100
|
-
"avg progress"
|
|
101
|
-
]
|
|
102
|
-
})]
|
|
103
|
-
})
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ O(n, {
|
|
106
|
-
icon: /* @__PURE__ */ O(ce, { className: "h-5 w-5" }),
|
|
107
|
-
value: J ? ee(J.value) : "—",
|
|
108
|
-
label: "Latest weight",
|
|
109
|
-
footer: X == null ? /* @__PURE__ */ O("button", {
|
|
110
|
-
type: "button",
|
|
111
|
-
onClick: () => j("progress"),
|
|
112
|
-
className: "text-xs font-medium text-accent hover:underline",
|
|
113
|
-
children: "Log a measurement →"
|
|
114
|
-
}) : /* @__PURE__ */ k("p", {
|
|
115
|
-
className: "text-xs text-text-tertiary",
|
|
116
|
-
children: [
|
|
117
|
-
/* @__PURE__ */ k("span", {
|
|
118
|
-
className: X <= 0 ? "font-medium text-status-success-text" : "font-medium text-text-secondary",
|
|
119
|
-
children: [
|
|
120
|
-
X > 0 ? "+" : "",
|
|
121
|
-
X.toFixed(1),
|
|
122
|
-
" kg"
|
|
123
|
-
]
|
|
124
|
-
}),
|
|
125
|
-
" ",
|
|
126
|
-
"vs last"
|
|
127
|
-
]
|
|
128
|
-
})
|
|
129
|
-
}),
|
|
130
|
-
/* @__PURE__ */ O(n, {
|
|
131
|
-
icon: /* @__PURE__ */ O(oe, { className: "h-5 w-5" }),
|
|
132
|
-
value: Z ? `${Z.score}` : "—",
|
|
133
|
-
label: "Recovery readiness",
|
|
134
|
-
accent: Z ? Z.score >= 70 ? "success" : Z.score >= 40 ? "warning" : "error" : void 0,
|
|
135
|
-
footer: Z ? /* @__PURE__ */ O("p", {
|
|
136
|
-
className: "text-xs text-text-tertiary",
|
|
137
|
-
children: o(Z.loggedAt)
|
|
138
|
-
}) : /* @__PURE__ */ O("button", {
|
|
139
|
-
type: "button",
|
|
140
|
-
onClick: () => j("recovery"),
|
|
141
|
-
className: "text-xs font-medium text-accent hover:underline",
|
|
142
|
-
children: "Log recovery →"
|
|
143
|
-
})
|
|
144
|
-
})
|
|
145
|
-
]
|
|
203
|
+
children: ye.map((e, n) => /* @__PURE__ */ O(t.div, {
|
|
204
|
+
className: "group relative rounded-2xl transition-shadow duration-300 hover:shadow-float",
|
|
205
|
+
...P(n),
|
|
206
|
+
...F,
|
|
207
|
+
children: [/* @__PURE__ */ D("span", {
|
|
208
|
+
"aria-hidden": !0,
|
|
209
|
+
className: "pointer-events-none absolute inset-x-6 top-0 z-10 h-px rounded-full bg-gradient-to-r from-transparent via-action-primary-bg to-transparent opacity-40 transition-opacity duration-300 group-hover:opacity-90"
|
|
210
|
+
}), e.node]
|
|
211
|
+
}, e.id))
|
|
146
212
|
}),
|
|
147
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ O("div", {
|
|
148
214
|
className: "mt-6 grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
149
|
-
children: [/* @__PURE__ */
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
children:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
icon: /* @__PURE__ */ O(se, { className: "h-10 w-10" }),
|
|
169
|
-
title: "No nutrition data yet",
|
|
170
|
-
description: "Activate a nutrition plan and log meals to track your daily macros here."
|
|
171
|
-
}) : /* @__PURE__ */ k("div", {
|
|
172
|
-
className: "flex flex-col gap-6 sm:flex-row sm:items-center",
|
|
173
|
-
children: [/* @__PURE__ */ k(re, {
|
|
174
|
-
value: ue,
|
|
175
|
-
size: 128,
|
|
176
|
-
stroke: 12,
|
|
177
|
-
children: [/* @__PURE__ */ O("span", {
|
|
178
|
-
className: "text-xl font-bold tabular-nums text-text-primary",
|
|
179
|
-
children: i($.calories)
|
|
180
|
-
}), /* @__PURE__ */ k("span", {
|
|
181
|
-
className: "text-xs text-text-tertiary",
|
|
182
|
-
children: [
|
|
183
|
-
"/ ",
|
|
184
|
-
i($.calorieTarget),
|
|
185
|
-
" kcal"
|
|
186
|
-
]
|
|
215
|
+
children: [/* @__PURE__ */ D(t.div, {
|
|
216
|
+
className: "lg:col-span-2",
|
|
217
|
+
...P(0),
|
|
218
|
+
children: /* @__PURE__ */ O(k, {
|
|
219
|
+
treatment: "glass",
|
|
220
|
+
className: "h-full p-6",
|
|
221
|
+
children: [/* @__PURE__ */ O("div", {
|
|
222
|
+
className: "mb-4 flex flex-wrap items-start justify-between gap-3",
|
|
223
|
+
children: [/* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("h2", {
|
|
224
|
+
className: "text-base font-semibold text-text-primary",
|
|
225
|
+
children: "Today's nutrition"
|
|
226
|
+
}), /* @__PURE__ */ D("p", {
|
|
227
|
+
className: "mt-0.5 text-sm text-text-secondary",
|
|
228
|
+
children: "Calories & macros logged against your active plan."
|
|
229
|
+
})] }), /* @__PURE__ */ O("button", {
|
|
230
|
+
type: "button",
|
|
231
|
+
onClick: () => j("nutrition"),
|
|
232
|
+
className: "inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",
|
|
233
|
+
children: ["Nutrition ", /* @__PURE__ */ D(C, { className: "h-4 w-4" })]
|
|
187
234
|
})]
|
|
188
|
-
}), /* @__PURE__ */
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
],
|
|
206
|
-
[
|
|
207
|
-
"Carbs",
|
|
208
|
-
$.carbsG,
|
|
209
|
-
$.carbsTarget
|
|
210
|
-
],
|
|
211
|
-
[
|
|
212
|
-
"Fat",
|
|
213
|
-
$.fatG,
|
|
214
|
-
$.fatTarget
|
|
215
|
-
]
|
|
216
|
-
].map(([e, t, n]) => /* @__PURE__ */ k("div", {
|
|
217
|
-
className: "rounded-xl bg-bg-sunken/60 p-3",
|
|
235
|
+
}), !$ || $.calorieTarget === 0 && $.calories === 0 ? /* @__PURE__ */ D(f, {
|
|
236
|
+
illustration: "empty-data",
|
|
237
|
+
icon: /* @__PURE__ */ D(ue, { className: "h-10 w-10" }),
|
|
238
|
+
title: "No nutrition data yet",
|
|
239
|
+
description: "Activate a nutrition plan and log meals to track your daily macros here."
|
|
240
|
+
}) : /* @__PURE__ */ O("div", {
|
|
241
|
+
className: "flex flex-col gap-8 sm:flex-row sm:items-center",
|
|
242
|
+
children: [/* @__PURE__ */ O("div", {
|
|
243
|
+
className: "relative mx-auto flex shrink-0 items-center justify-center sm:mx-0",
|
|
244
|
+
children: [/* @__PURE__ */ D("span", {
|
|
245
|
+
"aria-hidden": !0,
|
|
246
|
+
className: "pointer-events-none absolute inset-2 rounded-full opacity-70 blur-2xl",
|
|
247
|
+
style: { background: "radial-gradient(circle, color-mix(in srgb, var(--color-action-primary-bg) 26%, transparent), transparent 70%)" }
|
|
248
|
+
}), /* @__PURE__ */ O(ae, {
|
|
249
|
+
value: _e,
|
|
250
|
+
size: 188,
|
|
251
|
+
stroke: 16,
|
|
218
252
|
children: [
|
|
219
|
-
/* @__PURE__ */
|
|
220
|
-
className: "text-
|
|
221
|
-
children:
|
|
253
|
+
/* @__PURE__ */ D("span", {
|
|
254
|
+
className: "text-[11px] font-medium uppercase tracking-wide text-text-tertiary",
|
|
255
|
+
children: "Calories"
|
|
222
256
|
}),
|
|
223
|
-
/* @__PURE__ */
|
|
224
|
-
className: "
|
|
225
|
-
children:
|
|
226
|
-
className: "text-xs font-normal text-text-tertiary",
|
|
227
|
-
children: [
|
|
228
|
-
" ",
|
|
229
|
-
"/ ",
|
|
230
|
-
i(n),
|
|
231
|
-
" g"
|
|
232
|
-
]
|
|
233
|
-
})]
|
|
257
|
+
/* @__PURE__ */ D("span", {
|
|
258
|
+
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
259
|
+
children: a($.calories)
|
|
234
260
|
}),
|
|
235
|
-
/* @__PURE__ */ O(
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
261
|
+
/* @__PURE__ */ O("span", {
|
|
262
|
+
className: "mt-0.5 text-xs text-text-tertiary",
|
|
263
|
+
children: [
|
|
264
|
+
"/ ",
|
|
265
|
+
a($.calorieTarget),
|
|
266
|
+
" kcal"
|
|
267
|
+
]
|
|
239
268
|
})
|
|
240
269
|
]
|
|
241
|
-
}
|
|
270
|
+
})]
|
|
271
|
+
}), /* @__PURE__ */ O("div", {
|
|
272
|
+
className: "flex-1 space-y-4",
|
|
273
|
+
children: [/* @__PURE__ */ O("div", {
|
|
274
|
+
className: "space-y-2",
|
|
275
|
+
children: [/* @__PURE__ */ D(re, {
|
|
276
|
+
proteinG: $.proteinG,
|
|
277
|
+
carbsG: $.carbsG,
|
|
278
|
+
fatG: $.fatG,
|
|
279
|
+
height: 12
|
|
280
|
+
}), /* @__PURE__ */ D(ie, {})]
|
|
281
|
+
}), /* @__PURE__ */ D("div", {
|
|
282
|
+
className: "grid grid-cols-3 gap-3",
|
|
283
|
+
children: [
|
|
284
|
+
[
|
|
285
|
+
"Protein",
|
|
286
|
+
$.proteinG,
|
|
287
|
+
$.proteinTarget
|
|
288
|
+
],
|
|
289
|
+
[
|
|
290
|
+
"Carbs",
|
|
291
|
+
$.carbsG,
|
|
292
|
+
$.carbsTarget
|
|
293
|
+
],
|
|
294
|
+
[
|
|
295
|
+
"Fat",
|
|
296
|
+
$.fatG,
|
|
297
|
+
$.fatTarget
|
|
298
|
+
]
|
|
299
|
+
].map(([e, t, n]) => {
|
|
300
|
+
let r = n ? t / n * 100 : 0;
|
|
301
|
+
return /* @__PURE__ */ O("div", {
|
|
302
|
+
className: "rounded-2xl bg-bg-sunken/60 p-3 ring-1 ring-inset ring-border-seam/40 transition-shadow hover:shadow-float",
|
|
303
|
+
children: [
|
|
304
|
+
/* @__PURE__ */ O("div", {
|
|
305
|
+
className: "flex items-center justify-between gap-1",
|
|
306
|
+
children: [/* @__PURE__ */ D("p", {
|
|
307
|
+
className: "text-xs font-medium text-text-tertiary",
|
|
308
|
+
children: e
|
|
309
|
+
}), /* @__PURE__ */ D("span", {
|
|
310
|
+
className: "text-[11px] tabular-nums text-text-tertiary",
|
|
311
|
+
children: o(r)
|
|
312
|
+
})]
|
|
313
|
+
}),
|
|
314
|
+
/* @__PURE__ */ O("p", {
|
|
315
|
+
className: "mt-1 text-sm font-semibold tabular-nums text-text-primary",
|
|
316
|
+
children: [a(t), /* @__PURE__ */ O("span", {
|
|
317
|
+
className: "text-xs font-normal text-text-tertiary",
|
|
318
|
+
children: [
|
|
319
|
+
" ",
|
|
320
|
+
"/ ",
|
|
321
|
+
a(n),
|
|
322
|
+
" g"
|
|
323
|
+
]
|
|
324
|
+
})]
|
|
325
|
+
}),
|
|
326
|
+
/* @__PURE__ */ D(m, {
|
|
327
|
+
value: r,
|
|
328
|
+
height: 5,
|
|
329
|
+
className: "mt-2"
|
|
330
|
+
})
|
|
331
|
+
]
|
|
332
|
+
}, e);
|
|
333
|
+
})
|
|
334
|
+
})]
|
|
242
335
|
})]
|
|
243
336
|
})]
|
|
244
|
-
})
|
|
245
|
-
}), /* @__PURE__ */
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
className: "
|
|
250
|
-
children: [/* @__PURE__ */ O("
|
|
251
|
-
className: "
|
|
252
|
-
children: "
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
className: "inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",
|
|
257
|
-
children: ["Train ", /* @__PURE__ */ O(w, { className: "h-4 w-4" })]
|
|
258
|
-
})]
|
|
259
|
-
}), K ? /* @__PURE__ */ k("button", {
|
|
260
|
-
type: "button",
|
|
261
|
-
onClick: () => j(`train/${K.id}`),
|
|
262
|
-
className: "w-full rounded-xl border border-status-warning-text/40 bg-status-warning-bg-subtle p-4 text-left",
|
|
263
|
-
children: [
|
|
264
|
-
/* @__PURE__ */ O("div", {
|
|
265
|
-
className: "flex items-center gap-2",
|
|
266
|
-
children: /* @__PURE__ */ O(s, { status: K.status })
|
|
267
|
-
}),
|
|
268
|
-
/* @__PURE__ */ O("p", {
|
|
269
|
-
className: "mt-2 text-sm font-medium text-text-primary",
|
|
270
|
-
children: "Live workout in progress"
|
|
271
|
-
}),
|
|
272
|
-
/* @__PURE__ */ k("p", {
|
|
273
|
-
className: "mt-0.5 text-xs text-text-tertiary",
|
|
274
|
-
children: ["Started ", o(K.startedAt)]
|
|
275
|
-
})
|
|
276
|
-
]
|
|
277
|
-
}) : q ? /* @__PURE__ */ O("button", {
|
|
278
|
-
type: "button",
|
|
279
|
-
onClick: () => j(`train/${q.id}`),
|
|
280
|
-
className: "w-full rounded-xl bg-bg-sunken/60 p-4 text-left transition-shadow hover:shadow-float",
|
|
281
|
-
children: /* @__PURE__ */ k("div", {
|
|
282
|
-
className: "flex items-center gap-2",
|
|
283
|
-
children: [/* @__PURE__ */ O(d, { icon: /* @__PURE__ */ O(T, { className: "h-4 w-4" }) }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
|
|
284
|
-
className: "text-sm font-medium text-text-primary",
|
|
285
|
-
children: "Scheduled session"
|
|
286
|
-
}), /* @__PURE__ */ O("p", {
|
|
287
|
-
className: "text-xs text-text-tertiary",
|
|
288
|
-
children: o(q.scheduledFor)
|
|
289
|
-
})] })]
|
|
290
|
-
})
|
|
291
|
-
}) : /* @__PURE__ */ k("div", {
|
|
292
|
-
className: "flex flex-col items-center justify-center rounded-xl border border-dashed border-border-seam py-8 text-center",
|
|
293
|
-
children: [
|
|
294
|
-
/* @__PURE__ */ O("span", {
|
|
295
|
-
className: "flex size-11 items-center justify-center rounded-full bg-[var(--color-accent-soft)]",
|
|
296
|
-
children: /* @__PURE__ */ O(E, { className: "h-5 w-5 text-accent" })
|
|
297
|
-
}),
|
|
298
|
-
/* @__PURE__ */ O("p", {
|
|
299
|
-
className: "mt-3 text-sm font-medium text-text-primary",
|
|
300
|
-
children: "No session scheduled"
|
|
301
|
-
}),
|
|
302
|
-
/* @__PURE__ */ O("button", {
|
|
337
|
+
})
|
|
338
|
+
}), /* @__PURE__ */ D(t.div, {
|
|
339
|
+
...P(1),
|
|
340
|
+
children: /* @__PURE__ */ O(k, {
|
|
341
|
+
treatment: "glass",
|
|
342
|
+
className: "h-full p-6",
|
|
343
|
+
children: [/* @__PURE__ */ O("div", {
|
|
344
|
+
className: "mb-4 flex items-center justify-between gap-3",
|
|
345
|
+
children: [/* @__PURE__ */ D("h2", {
|
|
346
|
+
className: "text-base font-semibold text-text-primary",
|
|
347
|
+
children: "Next up"
|
|
348
|
+
}), /* @__PURE__ */ O("button", {
|
|
303
349
|
type: "button",
|
|
304
350
|
onClick: () => j("train"),
|
|
305
|
-
className: "
|
|
306
|
-
children: "
|
|
351
|
+
className: "inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",
|
|
352
|
+
children: ["Train ", /* @__PURE__ */ D(C, { className: "h-4 w-4" })]
|
|
353
|
+
})]
|
|
354
|
+
}), K ? /* @__PURE__ */ O(t.button, {
|
|
355
|
+
type: "button",
|
|
356
|
+
onClick: () => j(`train/${K.id}`),
|
|
357
|
+
className: "w-full rounded-2xl border border-status-warning-text/40 bg-status-warning-bg-subtle p-4 text-left transition-shadow hover:shadow-float",
|
|
358
|
+
...I,
|
|
359
|
+
children: [
|
|
360
|
+
/* @__PURE__ */ D("div", {
|
|
361
|
+
className: "flex items-center gap-2",
|
|
362
|
+
children: /* @__PURE__ */ D(l, { status: K.status })
|
|
363
|
+
}),
|
|
364
|
+
/* @__PURE__ */ D("p", {
|
|
365
|
+
className: "mt-2 text-sm font-medium text-text-primary",
|
|
366
|
+
children: "Live workout in progress"
|
|
367
|
+
}),
|
|
368
|
+
/* @__PURE__ */ O("p", {
|
|
369
|
+
className: "mt-0.5 text-xs text-text-tertiary",
|
|
370
|
+
children: ["Started ", s(K.startedAt)]
|
|
371
|
+
})
|
|
372
|
+
]
|
|
373
|
+
}) : q ? /* @__PURE__ */ D(t.button, {
|
|
374
|
+
type: "button",
|
|
375
|
+
onClick: () => j(`train/${q.id}`),
|
|
376
|
+
className: "w-full rounded-2xl bg-bg-sunken/60 p-4 text-left ring-1 ring-inset ring-border-seam/40 transition-shadow hover:shadow-float",
|
|
377
|
+
...I,
|
|
378
|
+
children: /* @__PURE__ */ O("div", {
|
|
379
|
+
className: "flex items-center gap-2",
|
|
380
|
+
children: [/* @__PURE__ */ D(p, { icon: /* @__PURE__ */ D(w, { className: "h-4 w-4" }) }), /* @__PURE__ */ O("div", { children: [/* @__PURE__ */ D("p", {
|
|
381
|
+
className: "text-sm font-medium text-text-primary",
|
|
382
|
+
children: "Scheduled session"
|
|
383
|
+
}), /* @__PURE__ */ D("p", {
|
|
384
|
+
className: "text-xs text-text-tertiary",
|
|
385
|
+
children: s(q.scheduledFor)
|
|
386
|
+
})] })]
|
|
307
387
|
})
|
|
308
|
-
|
|
309
|
-
|
|
388
|
+
}) : /* @__PURE__ */ O("div", {
|
|
389
|
+
className: "flex flex-col items-center justify-center rounded-2xl border border-dashed border-border-seam py-8 text-center",
|
|
390
|
+
children: [
|
|
391
|
+
/* @__PURE__ */ D("span", {
|
|
392
|
+
className: "flex size-11 items-center justify-center rounded-full bg-[var(--color-accent-soft)]",
|
|
393
|
+
children: /* @__PURE__ */ D(T, { className: "h-5 w-5 text-accent" })
|
|
394
|
+
}),
|
|
395
|
+
/* @__PURE__ */ D("p", {
|
|
396
|
+
className: "mt-3 text-sm font-medium text-text-primary",
|
|
397
|
+
children: "No session scheduled"
|
|
398
|
+
}),
|
|
399
|
+
/* @__PURE__ */ D("button", {
|
|
400
|
+
type: "button",
|
|
401
|
+
onClick: () => j("train"),
|
|
402
|
+
className: "mt-1 text-xs font-medium text-accent hover:underline",
|
|
403
|
+
children: "Start a workout"
|
|
404
|
+
})
|
|
405
|
+
]
|
|
406
|
+
})]
|
|
407
|
+
})
|
|
310
408
|
})]
|
|
311
409
|
}),
|
|
312
|
-
/* @__PURE__ */
|
|
410
|
+
/* @__PURE__ */ D(d, {
|
|
313
411
|
title: "Active goals",
|
|
314
412
|
description: "Your current targets across training, nutrition and body composition.",
|
|
315
|
-
action: /* @__PURE__ */
|
|
413
|
+
action: /* @__PURE__ */ O("button", {
|
|
316
414
|
type: "button",
|
|
317
415
|
onClick: () => j("goals"),
|
|
318
416
|
className: "inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",
|
|
319
|
-
children: ["All goals ", /* @__PURE__ */
|
|
417
|
+
children: ["All goals ", /* @__PURE__ */ D(C, { className: "h-4 w-4" })]
|
|
320
418
|
}),
|
|
321
|
-
children:
|
|
419
|
+
children: U.length === 0 ? /* @__PURE__ */ D(f, {
|
|
322
420
|
illustration: "empty-data",
|
|
323
|
-
icon: /* @__PURE__ */
|
|
421
|
+
icon: /* @__PURE__ */ D(E, { className: "h-10 w-10" }),
|
|
324
422
|
title: "No active goals",
|
|
325
423
|
description: "Set a goal to give your training and nutrition a clear target to work toward."
|
|
326
|
-
}) : /* @__PURE__ */
|
|
424
|
+
}) : /* @__PURE__ */ D("div", {
|
|
327
425
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
328
|
-
children:
|
|
329
|
-
let
|
|
330
|
-
return /* @__PURE__ */
|
|
426
|
+
children: U.slice(0, 6).map((e, n) => {
|
|
427
|
+
let r = h(e), i = ne[e.type], s = i.icon;
|
|
428
|
+
return /* @__PURE__ */ D(t.button, {
|
|
331
429
|
type: "button",
|
|
332
430
|
onClick: () => j("goals"),
|
|
333
431
|
className: "text-left",
|
|
334
|
-
|
|
432
|
+
...P(n),
|
|
433
|
+
...I,
|
|
434
|
+
children: /* @__PURE__ */ O(k, {
|
|
335
435
|
treatment: "plain",
|
|
336
436
|
className: "h-full p-4 transition-shadow hover:shadow-float",
|
|
337
|
-
children: [/* @__PURE__ */
|
|
437
|
+
children: [/* @__PURE__ */ O("div", {
|
|
338
438
|
className: "flex items-start gap-3",
|
|
339
|
-
children: [/* @__PURE__ */
|
|
340
|
-
icon: /* @__PURE__ */
|
|
341
|
-
tint:
|
|
342
|
-
}), /* @__PURE__ */
|
|
439
|
+
children: [/* @__PURE__ */ D(p, {
|
|
440
|
+
icon: /* @__PURE__ */ D(s, { className: "h-4 w-4" }),
|
|
441
|
+
tint: i.tint
|
|
442
|
+
}), /* @__PURE__ */ O("div", {
|
|
343
443
|
className: "min-w-0 flex-1",
|
|
344
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ D("p", {
|
|
345
445
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
346
446
|
children: e.title
|
|
347
|
-
}), /* @__PURE__ */
|
|
447
|
+
}), /* @__PURE__ */ D("p", {
|
|
348
448
|
className: "text-xs text-text-tertiary",
|
|
349
|
-
children:
|
|
449
|
+
children: ee(e.type)
|
|
350
450
|
})]
|
|
351
451
|
})]
|
|
352
|
-
}), /* @__PURE__ */
|
|
452
|
+
}), /* @__PURE__ */ O("div", {
|
|
353
453
|
className: "mt-3 space-y-1.5",
|
|
354
|
-
children: [/* @__PURE__ */
|
|
355
|
-
value: t,
|
|
356
|
-
color: n.tint
|
|
357
|
-
}), /* @__PURE__ */ k("div", {
|
|
454
|
+
children: [/* @__PURE__ */ D(m, { value: r }), /* @__PURE__ */ O("div", {
|
|
358
455
|
className: "flex items-center justify-between text-xs",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
456
|
+
children: [/* @__PURE__ */ O("span", {
|
|
360
457
|
className: "tabular-nums text-text-secondary",
|
|
361
458
|
children: [
|
|
362
|
-
|
|
459
|
+
a(e.currentValue),
|
|
363
460
|
e.unit ? ` ${e.unit}` : "",
|
|
364
461
|
" / ",
|
|
365
|
-
|
|
462
|
+
a(e.targetValue),
|
|
366
463
|
e.unit ? ` ${e.unit}` : ""
|
|
367
464
|
]
|
|
368
|
-
}), /* @__PURE__ */
|
|
465
|
+
}), /* @__PURE__ */ D("span", {
|
|
369
466
|
className: "tabular-nums text-text-tertiary",
|
|
370
|
-
children:
|
|
467
|
+
children: o(r)
|
|
371
468
|
})]
|
|
372
469
|
})]
|
|
373
470
|
})]
|
|
@@ -376,46 +473,48 @@ function j() {
|
|
|
376
473
|
})
|
|
377
474
|
})
|
|
378
475
|
}),
|
|
379
|
-
/* @__PURE__ */
|
|
476
|
+
/* @__PURE__ */ D(d, {
|
|
380
477
|
title: "Recent sessions",
|
|
381
478
|
description: "Your latest logged and scheduled workouts.",
|
|
382
|
-
action: /* @__PURE__ */
|
|
479
|
+
action: /* @__PURE__ */ O("button", {
|
|
383
480
|
type: "button",
|
|
384
481
|
onClick: () => j("train"),
|
|
385
482
|
className: "inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",
|
|
386
|
-
children: ["All sessions ", /* @__PURE__ */
|
|
483
|
+
children: ["All sessions ", /* @__PURE__ */ D(C, { className: "h-4 w-4" })]
|
|
387
484
|
}),
|
|
388
|
-
children:
|
|
485
|
+
children: H.length === 0 ? /* @__PURE__ */ D(f, {
|
|
389
486
|
illustration: "empty-data",
|
|
390
|
-
icon: /* @__PURE__ */
|
|
487
|
+
icon: /* @__PURE__ */ D(T, { className: "h-10 w-10" }),
|
|
391
488
|
title: "No sessions yet",
|
|
392
489
|
description: "Start a workout session to begin logging sets and tracking your training."
|
|
393
|
-
}) : /* @__PURE__ */
|
|
490
|
+
}) : /* @__PURE__ */ D("div", {
|
|
394
491
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
395
|
-
children:
|
|
396
|
-
let
|
|
397
|
-
return /* @__PURE__ */
|
|
492
|
+
children: H.slice(0, 6).map((e, n) => {
|
|
493
|
+
let r = oe.STRENGTH, i = e.status === "COMPLETED" ? se : r.icon;
|
|
494
|
+
return /* @__PURE__ */ D(t.button, {
|
|
398
495
|
type: "button",
|
|
399
496
|
onClick: () => j(`train/${e.id}`),
|
|
400
497
|
className: "text-left",
|
|
401
|
-
|
|
498
|
+
...P(n),
|
|
499
|
+
...I,
|
|
500
|
+
children: /* @__PURE__ */ O(k, {
|
|
402
501
|
treatment: "plain",
|
|
403
502
|
className: "p-4 transition-shadow hover:shadow-float",
|
|
404
503
|
children: [
|
|
405
|
-
/* @__PURE__ */
|
|
504
|
+
/* @__PURE__ */ O("div", {
|
|
406
505
|
className: "flex items-center justify-between gap-2",
|
|
407
|
-
children: [/* @__PURE__ */
|
|
408
|
-
icon: /* @__PURE__ */
|
|
409
|
-
tint:
|
|
410
|
-
}), /* @__PURE__ */
|
|
506
|
+
children: [/* @__PURE__ */ D(p, {
|
|
507
|
+
icon: /* @__PURE__ */ D(i, { className: "h-4 w-4" }),
|
|
508
|
+
tint: r.tint
|
|
509
|
+
}), /* @__PURE__ */ D(l, { status: e.status })]
|
|
411
510
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
511
|
+
/* @__PURE__ */ D("p", {
|
|
413
512
|
className: "mt-3 text-sm font-medium text-text-primary",
|
|
414
|
-
children: e.caloriesBurned > 0 ? `${
|
|
513
|
+
children: e.caloriesBurned > 0 ? `${a(e.caloriesBurned)} kcal burned` : "Workout session"
|
|
415
514
|
}),
|
|
416
|
-
/* @__PURE__ */
|
|
515
|
+
/* @__PURE__ */ D("p", {
|
|
417
516
|
className: "mt-0.5 text-xs text-text-tertiary",
|
|
418
|
-
children:
|
|
517
|
+
children: s(e.completedAt ?? e.startedAt ?? e.createdAt)
|
|
419
518
|
})
|
|
420
519
|
]
|
|
421
520
|
})
|