@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,11 +1,12 @@
|
|
|
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 n } from "../../components/PageLayout.js";
|
|
4
|
+
import { formatDate as r, formatEnumLabel as i, formatGrams as a, formatKcal as ee, formatNumber as o, formatRelativeTime as te } from "../../utils/formatters.js";
|
|
5
|
+
import { StatusBadge as s } from "../../components/StatusBadge.js";
|
|
6
|
+
import { ErrorView as c, LoadingView as l, Section as ne } from "../../components/StateViews.js";
|
|
7
|
+
import { EmptyState as u } from "../../components/EmptyState.js";
|
|
8
|
+
import { IconChip as d, MACRO_HUE as f, MacroBar as re, Meter as ie, ProgressRing as ae } from "../_shared/visuals.js";
|
|
9
|
+
import { useMybActivateNutritionPlan as oe, useMybActiveNutritionPlan as se, useMybCreateNutritionPlan as ce, useMybDailyMacros as le, useMybDeleteMeal as ue, useMybLogMeal as de, useMybMeals as fe, useMybUpdateNutritionPlan as pe } from "../../hooks/useMyBodyShieldApi.js";
|
|
9
10
|
import { useOffsetPager as me } from "../../hooks/usePager.js";
|
|
10
11
|
import "../../hooks/index.js";
|
|
11
12
|
import { DataTable as he } from "../../components/DataTable.js";
|
|
@@ -13,55 +14,55 @@ import { FilterTabs as ge } from "../../components/FilterTabs.js";
|
|
|
13
14
|
import { Tabs as _e } from "../../components/Tabs.js";
|
|
14
15
|
import { Pagination as ve } from "../../components/Pagination.js";
|
|
15
16
|
import "../../components/index.js";
|
|
16
|
-
import { useMemo as ye, useState as
|
|
17
|
-
import { Beef as be,
|
|
18
|
-
import { Fragment as Ae, jsx as
|
|
19
|
-
import { Button as
|
|
17
|
+
import { useMemo as ye, useState as p } from "react";
|
|
18
|
+
import { Beef as be, Calendar as xe, CheckCircle2 as m, ClipboardList as Se, Droplet as Ce, Flame as we, Pencil as Te, Plus as h, Salad as Ee, Star as g, Trash2 as De, UtensilsCrossed as Oe, Wheat as ke } from "lucide-react";
|
|
19
|
+
import { Fragment as Ae, jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
20
|
+
import { Button as y, GlassCard as b, Input as x, Label as S, ResponsiveDialog as je, ResponsiveDialogContent as Me, ResponsiveDialogDescription as Ne, ResponsiveDialogFooter as Pe, ResponsiveDialogHeader as Fe, ResponsiveDialogTitle as Ie, Select as Le, SelectContent as Re, SelectItem as ze, SelectTrigger as Be, SelectValue as Ve, Switch as He, Textarea as Ue } from "@burdenoff/fe-libs/ui";
|
|
20
21
|
//#region src/mybodyshield/pages/nutrition/NutritionPage.tsx
|
|
21
|
-
var
|
|
22
|
+
var C = 25, We = [
|
|
22
23
|
"BREAKFAST",
|
|
23
24
|
"LUNCH",
|
|
24
25
|
"DINNER",
|
|
25
26
|
"SNACK"
|
|
26
|
-
],
|
|
27
|
+
], Ge = [
|
|
27
28
|
"WEIGHT_LOSS",
|
|
28
29
|
"MUSCLE_GAIN",
|
|
29
30
|
"STRENGTH",
|
|
30
31
|
"ENDURANCE",
|
|
31
32
|
"MOBILITY",
|
|
32
33
|
"GENERAL_FITNESS"
|
|
33
|
-
],
|
|
34
|
+
], Ke = [
|
|
34
35
|
{
|
|
35
36
|
value: "today",
|
|
36
37
|
label: "Today",
|
|
37
|
-
icon: /* @__PURE__ */
|
|
38
|
+
icon: /* @__PURE__ */ _(we, { className: "h-4 w-4" })
|
|
38
39
|
},
|
|
39
40
|
{
|
|
40
41
|
value: "plan",
|
|
41
42
|
label: "Plan",
|
|
42
|
-
icon: /* @__PURE__ */
|
|
43
|
+
icon: /* @__PURE__ */ _(Se, { className: "h-4 w-4" })
|
|
43
44
|
},
|
|
44
45
|
{
|
|
45
46
|
value: "meals",
|
|
46
47
|
label: "Meals",
|
|
47
|
-
icon: /* @__PURE__ */
|
|
48
|
+
icon: /* @__PURE__ */ _(Oe, { className: "h-4 w-4" })
|
|
48
49
|
}
|
|
49
|
-
],
|
|
50
|
+
], qe = [{
|
|
50
51
|
value: "ALL",
|
|
51
52
|
label: "All"
|
|
52
|
-
}, ...
|
|
53
|
+
}, ...We.map((e) => ({
|
|
53
54
|
value: e,
|
|
54
|
-
label:
|
|
55
|
-
}))],
|
|
55
|
+
label: i(e)
|
|
56
|
+
}))], w = (e) => {
|
|
56
57
|
let t = e.trim();
|
|
57
58
|
if (!t) return;
|
|
58
59
|
let n = Number(t);
|
|
59
60
|
return Number.isFinite(n) ? n : void 0;
|
|
60
|
-
},
|
|
61
|
+
}, T = (e) => e ? String(e) : "", Je = (e) => {
|
|
61
62
|
if (!e) return "";
|
|
62
63
|
let t = new Date(e);
|
|
63
64
|
return Number.isNaN(t.getTime()) ? "" : t.toISOString().slice(0, 10);
|
|
64
|
-
},
|
|
65
|
+
}, Ye = (e) => e ? new Date(e).toISOString() : void 0, E = {
|
|
65
66
|
name: "",
|
|
66
67
|
mealType: "BREAKFAST",
|
|
67
68
|
calories: "",
|
|
@@ -70,7 +71,7 @@ var w = 25, Be = [
|
|
|
70
71
|
fatG: "",
|
|
71
72
|
servings: "",
|
|
72
73
|
isFavorite: !1
|
|
73
|
-
},
|
|
74
|
+
}, Xe = {
|
|
74
75
|
name: "",
|
|
75
76
|
goalType: "GENERAL_FITNESS",
|
|
76
77
|
calorieTarget: "",
|
|
@@ -81,38 +82,38 @@ var w = 25, Be = [
|
|
|
81
82
|
endDate: "",
|
|
82
83
|
notes: ""
|
|
83
84
|
};
|
|
84
|
-
function
|
|
85
|
-
let [
|
|
85
|
+
function D() {
|
|
86
|
+
let [D, Ze] = p("today"), O = t(), k = le(), A = se(), j = fe({}), [M, Qe] = p("ALL"), N = me(C), P = fe({
|
|
86
87
|
mealType: M === "ALL" ? void 0 : M,
|
|
87
88
|
pagination: {
|
|
88
|
-
limit:
|
|
89
|
+
limit: C,
|
|
89
90
|
offset: N.offset
|
|
90
91
|
}
|
|
91
|
-
}), F =
|
|
92
|
+
}), F = de(), $e = ue(), et = ce(), tt = pe(), I = oe(), [nt, L] = p(null), [rt, it] = p(null), [at, R] = p(null), [ot, z] = p(!1), [B, V] = p(E), [st, H] = p(null), [ct, U] = p(!1), [W, lt] = p("create"), [G, K] = p(Xe), [ut, q] = p(null), dt = A.data ?? null, J = at ?? dt, Y = ye(() => {
|
|
92
93
|
let e = j.data?.items ?? [], t = (/* @__PURE__ */ new Date()).toDateString();
|
|
93
94
|
return e.filter((e) => {
|
|
94
95
|
let n = new Date(e.loggedAt);
|
|
95
96
|
return !Number.isNaN(n.getTime()) && n.toDateString() === t;
|
|
96
97
|
}).sort((e, t) => new Date(t.loggedAt).getTime() - new Date(e.loggedAt).getTime());
|
|
97
|
-
}, [j.data]),
|
|
98
|
-
|
|
99
|
-
},
|
|
100
|
-
V(
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
},
|
|
104
|
-
J && (
|
|
98
|
+
}, [j.data]), ft = P.data?.items ?? [], pt = (e) => {
|
|
99
|
+
Qe(e), N.reset();
|
|
100
|
+
}, X = () => {
|
|
101
|
+
V(E), H(null), z(!0);
|
|
102
|
+
}, mt = () => {
|
|
103
|
+
lt("create"), K(Xe), q(null), U(!0);
|
|
104
|
+
}, ht = () => {
|
|
105
|
+
J && (lt("edit"), K({
|
|
105
106
|
name: J.name,
|
|
106
107
|
goalType: J.goalType,
|
|
107
|
-
calorieTarget:
|
|
108
|
-
proteinTarget:
|
|
109
|
-
carbsTarget:
|
|
110
|
-
fatTarget:
|
|
111
|
-
startDate:
|
|
112
|
-
endDate:
|
|
108
|
+
calorieTarget: T(J.calorieTarget),
|
|
109
|
+
proteinTarget: T(J.proteinTarget),
|
|
110
|
+
carbsTarget: T(J.carbsTarget),
|
|
111
|
+
fatTarget: T(J.fatTarget),
|
|
112
|
+
startDate: Je(J.startDate),
|
|
113
|
+
endDate: Je(J.endDate),
|
|
113
114
|
notes: J.notes ?? ""
|
|
114
115
|
}), q(null), U(!0));
|
|
115
|
-
},
|
|
116
|
+
}, gt = async () => {
|
|
116
117
|
if (!B.name.trim()) {
|
|
117
118
|
H("Meal name is required.");
|
|
118
119
|
return;
|
|
@@ -122,19 +123,19 @@ function O() {
|
|
|
122
123
|
await F.mutateAsync({
|
|
123
124
|
name: B.name.trim(),
|
|
124
125
|
mealType: B.mealType,
|
|
125
|
-
calories:
|
|
126
|
-
proteinG:
|
|
127
|
-
carbsG:
|
|
128
|
-
fatG:
|
|
129
|
-
servings:
|
|
126
|
+
calories: w(B.calories),
|
|
127
|
+
proteinG: w(B.proteinG),
|
|
128
|
+
carbsG: w(B.carbsG),
|
|
129
|
+
fatG: w(B.fatG),
|
|
130
|
+
servings: w(B.servings),
|
|
130
131
|
isFavorite: B.isFavorite,
|
|
131
132
|
planId: J?.id ?? void 0,
|
|
132
133
|
loggedAt: (/* @__PURE__ */ new Date()).toISOString()
|
|
133
|
-
}), z(!1), V(
|
|
134
|
+
}), z(!1), V(E);
|
|
134
135
|
} catch (e) {
|
|
135
136
|
H(e instanceof Error ? e.message : "Failed to log meal.");
|
|
136
137
|
}
|
|
137
|
-
},
|
|
138
|
+
}, _t = async () => {
|
|
138
139
|
if (!G.name.trim()) {
|
|
139
140
|
q("Plan name is required.");
|
|
140
141
|
return;
|
|
@@ -142,17 +143,17 @@ function O() {
|
|
|
142
143
|
q(null);
|
|
143
144
|
let e = {
|
|
144
145
|
goalType: G.goalType,
|
|
145
|
-
calorieTarget:
|
|
146
|
-
proteinTarget:
|
|
147
|
-
carbsTarget:
|
|
148
|
-
fatTarget:
|
|
149
|
-
startDate:
|
|
150
|
-
endDate:
|
|
146
|
+
calorieTarget: w(G.calorieTarget),
|
|
147
|
+
proteinTarget: w(G.proteinTarget),
|
|
148
|
+
carbsTarget: w(G.carbsTarget),
|
|
149
|
+
fatTarget: w(G.fatTarget),
|
|
150
|
+
startDate: Ye(G.startDate),
|
|
151
|
+
endDate: Ye(G.endDate),
|
|
151
152
|
notes: G.notes.trim() || void 0
|
|
152
153
|
};
|
|
153
154
|
try {
|
|
154
155
|
if (W === "edit" && J) {
|
|
155
|
-
let t = await
|
|
156
|
+
let t = await tt.mutateAsync({
|
|
156
157
|
id: J.id,
|
|
157
158
|
input: {
|
|
158
159
|
name: G.name.trim(),
|
|
@@ -160,506 +161,672 @@ function O() {
|
|
|
160
161
|
}
|
|
161
162
|
});
|
|
162
163
|
R((e) => e && e.id === t.id ? t : e);
|
|
163
|
-
} else R(await
|
|
164
|
+
} else R(await et.mutateAsync({
|
|
164
165
|
name: G.name.trim(),
|
|
165
166
|
...e
|
|
166
|
-
})),
|
|
167
|
+
})), Ze("plan");
|
|
167
168
|
U(!1);
|
|
168
169
|
} catch (e) {
|
|
169
170
|
q(e instanceof Error ? e.message : "Failed to save plan.");
|
|
170
171
|
}
|
|
171
|
-
},
|
|
172
|
+
}, vt = async (e) => {
|
|
172
173
|
L(null);
|
|
173
174
|
try {
|
|
174
175
|
await I.mutateAsync(e), R(null);
|
|
175
176
|
} catch (e) {
|
|
176
177
|
L(e instanceof Error ? e.message : "Failed to activate plan.");
|
|
177
178
|
}
|
|
178
|
-
},
|
|
179
|
+
}, yt = async (e) => {
|
|
179
180
|
if (window.confirm("Delete this meal log? This cannot be undone.")) {
|
|
180
|
-
|
|
181
|
+
it(e), L(null);
|
|
181
182
|
try {
|
|
182
|
-
await
|
|
183
|
+
await $e.mutateAsync(e);
|
|
183
184
|
} catch (e) {
|
|
184
185
|
L(e instanceof Error ? e.message : "Failed to delete meal.");
|
|
185
186
|
} finally {
|
|
186
|
-
|
|
187
|
+
it(null);
|
|
187
188
|
}
|
|
188
189
|
}
|
|
189
|
-
},
|
|
190
|
-
|
|
190
|
+
}, Z = W === "edit" ? tt.isPending : et.isPending, Q = {
|
|
191
|
+
hidden: {},
|
|
192
|
+
show: { transition: {
|
|
193
|
+
staggerChildren: O ? 0 : .06,
|
|
194
|
+
delayChildren: O ? 0 : .03
|
|
195
|
+
} }
|
|
196
|
+
}, $ = {
|
|
197
|
+
hidden: O ? { opacity: 0 } : {
|
|
198
|
+
opacity: 0,
|
|
199
|
+
y: 14
|
|
200
|
+
},
|
|
201
|
+
show: {
|
|
202
|
+
opacity: 1,
|
|
203
|
+
y: 0,
|
|
204
|
+
transition: {
|
|
205
|
+
duration: O ? .2 : .45,
|
|
206
|
+
ease: "easeOut"
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}, bt = [
|
|
210
|
+
{
|
|
211
|
+
key: "favorite",
|
|
212
|
+
header: /* @__PURE__ */ _(g, {
|
|
213
|
+
className: "h-3.5 w-3.5 text-action-primary-bg",
|
|
214
|
+
"aria-hidden": "true"
|
|
215
|
+
}),
|
|
216
|
+
align: "center",
|
|
217
|
+
sortValue: (e) => +!!e.isFavorite,
|
|
218
|
+
render: (e) => /* @__PURE__ */ v("span", {
|
|
219
|
+
className: "inline-flex",
|
|
220
|
+
title: e.isFavorite ? "Favorite meal" : "Not a favorite",
|
|
221
|
+
children: [/* @__PURE__ */ _(g, { className: `h-4 w-4 transition-colors ${e.isFavorite ? "fill-current text-action-primary-bg" : "text-text-tertiary"}` }), /* @__PURE__ */ _("span", {
|
|
222
|
+
className: "sr-only",
|
|
223
|
+
children: e.isFavorite ? "Favorite" : "Not favorite"
|
|
224
|
+
})]
|
|
225
|
+
})
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
key: "name",
|
|
229
|
+
header: "Meal",
|
|
230
|
+
render: (e) => /* @__PURE__ */ _("span", {
|
|
231
|
+
className: "font-medium text-text-primary",
|
|
232
|
+
children: e.name
|
|
233
|
+
})
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
key: "mealType",
|
|
237
|
+
header: "Type",
|
|
238
|
+
render: (e) => /* @__PURE__ */ _(s, { status: e.mealType })
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
key: "calories",
|
|
242
|
+
header: "Calories",
|
|
243
|
+
align: "right",
|
|
244
|
+
sortValue: (e) => e.calories,
|
|
245
|
+
render: (e) => /* @__PURE__ */ _("span", {
|
|
246
|
+
className: "font-semibold tabular-nums text-text-primary",
|
|
247
|
+
children: ee(e.calories)
|
|
248
|
+
})
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
key: "proteinG",
|
|
252
|
+
header: "Protein",
|
|
253
|
+
align: "right",
|
|
254
|
+
hideOnMobile: !0,
|
|
255
|
+
sortValue: (e) => e.proteinG,
|
|
256
|
+
render: (e) => /* @__PURE__ */ _("span", {
|
|
257
|
+
className: "tabular-nums text-text-secondary",
|
|
258
|
+
children: a(e.proteinG)
|
|
259
|
+
})
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
key: "carbsG",
|
|
263
|
+
header: "Carbs",
|
|
264
|
+
align: "right",
|
|
265
|
+
hideOnMobile: !0,
|
|
266
|
+
sortValue: (e) => e.carbsG,
|
|
267
|
+
render: (e) => /* @__PURE__ */ _("span", {
|
|
268
|
+
className: "tabular-nums text-text-secondary",
|
|
269
|
+
children: a(e.carbsG)
|
|
270
|
+
})
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
key: "fatG",
|
|
274
|
+
header: "Fat",
|
|
275
|
+
align: "right",
|
|
276
|
+
hideOnMobile: !0,
|
|
277
|
+
sortValue: (e) => e.fatG,
|
|
278
|
+
render: (e) => /* @__PURE__ */ _("span", {
|
|
279
|
+
className: "tabular-nums text-text-secondary",
|
|
280
|
+
children: a(e.fatG)
|
|
281
|
+
})
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
key: "servings",
|
|
285
|
+
header: "Servings",
|
|
286
|
+
align: "right",
|
|
287
|
+
sortValue: (e) => e.servings,
|
|
288
|
+
render: (e) => /* @__PURE__ */ _("span", {
|
|
289
|
+
className: "tabular-nums",
|
|
290
|
+
children: o(e.servings)
|
|
291
|
+
})
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
key: "loggedAt",
|
|
295
|
+
header: "Logged",
|
|
296
|
+
hideOnMobile: !0,
|
|
297
|
+
sortValue: (e) => new Date(e.loggedAt).getTime(),
|
|
298
|
+
render: (e) => /* @__PURE__ */ _("span", {
|
|
299
|
+
className: "text-text-secondary",
|
|
300
|
+
children: te(e.loggedAt)
|
|
301
|
+
})
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
key: "actions",
|
|
305
|
+
header: "",
|
|
306
|
+
align: "right",
|
|
307
|
+
render: (e) => /* @__PURE__ */ _(y, {
|
|
308
|
+
variant: "ghost",
|
|
309
|
+
size: "icon-sm",
|
|
310
|
+
onClick: () => yt(e.id),
|
|
311
|
+
disabled: rt === e.id,
|
|
312
|
+
"aria-label": "Delete meal",
|
|
313
|
+
children: /* @__PURE__ */ _(De, { className: "h-4 w-4 text-status-error-text" })
|
|
314
|
+
})
|
|
315
|
+
}
|
|
316
|
+
];
|
|
317
|
+
return /* @__PURE__ */ v(n, {
|
|
191
318
|
title: "Nutrition",
|
|
192
319
|
description: "Plans, meal logging and daily macro targets.",
|
|
193
|
-
actions:
|
|
194
|
-
onClick: Z,
|
|
195
|
-
children: [/* @__PURE__ */ m(f, { className: "mr-1.5 h-4 w-4" }), " Log meal"]
|
|
196
|
-
}) : O === "plan" ? /* @__PURE__ */ h("div", {
|
|
320
|
+
actions: D === "plan" ? /* @__PURE__ */ v("div", {
|
|
197
321
|
className: "flex flex-wrap items-center gap-2",
|
|
198
|
-
children: [J && /* @__PURE__ */
|
|
322
|
+
children: [J && /* @__PURE__ */ v(y, {
|
|
199
323
|
variant: "outline",
|
|
200
|
-
onClick:
|
|
201
|
-
children: [/* @__PURE__ */
|
|
202
|
-
}), /* @__PURE__ */
|
|
203
|
-
onClick:
|
|
204
|
-
children: [/* @__PURE__ */
|
|
324
|
+
onClick: ht,
|
|
325
|
+
children: [/* @__PURE__ */ _(Te, { className: "mr-1.5 h-4 w-4" }), " Edit targets"]
|
|
326
|
+
}), /* @__PURE__ */ v(y, {
|
|
327
|
+
onClick: mt,
|
|
328
|
+
children: [/* @__PURE__ */ _(h, { className: "mr-1.5 h-4 w-4" }), " Create plan"]
|
|
205
329
|
})]
|
|
206
|
-
}) :
|
|
330
|
+
}) : /* @__PURE__ */ v(y, {
|
|
331
|
+
onClick: X,
|
|
332
|
+
children: [/* @__PURE__ */ _(h, { className: "mr-1.5 h-4 w-4" }), " Log meal"]
|
|
333
|
+
}),
|
|
207
334
|
children: [
|
|
208
|
-
/* @__PURE__ */
|
|
209
|
-
items:
|
|
210
|
-
value:
|
|
211
|
-
onChange:
|
|
335
|
+
/* @__PURE__ */ _(_e, {
|
|
336
|
+
items: Ke,
|
|
337
|
+
value: D,
|
|
338
|
+
onChange: Ze,
|
|
212
339
|
className: "mb-6"
|
|
213
340
|
}),
|
|
214
|
-
|
|
341
|
+
nt && /* @__PURE__ */ _("div", {
|
|
215
342
|
className: "mb-4 rounded-lg border border-status-error-text/40 bg-status-error-bg-subtle px-4 py-2 text-sm text-status-error-text",
|
|
216
|
-
children:
|
|
343
|
+
children: nt
|
|
217
344
|
}),
|
|
218
|
-
|
|
219
|
-
if (k.isLoading) return /* @__PURE__ */
|
|
220
|
-
if (k.isError) return /* @__PURE__ */
|
|
345
|
+
D === "today" && (() => {
|
|
346
|
+
if (k.isLoading) return /* @__PURE__ */ _(l, { label: "Loading today's nutrition…" });
|
|
347
|
+
if (k.isError) return /* @__PURE__ */ _(c, {
|
|
221
348
|
message: "We couldn't load your daily macros.",
|
|
222
349
|
onRetry: () => k.refetch()
|
|
223
350
|
});
|
|
224
|
-
let
|
|
225
|
-
if (!
|
|
226
|
-
let
|
|
227
|
-
if (!
|
|
351
|
+
let t = k.data;
|
|
352
|
+
if (!t) return /* @__PURE__ */ _(l, { label: "Loading today's nutrition…" });
|
|
353
|
+
let n = t.calorieTarget > 0, r = t.calories > 0 || Y.length > 0;
|
|
354
|
+
if (!n && !r) return /* @__PURE__ */ _(u, {
|
|
228
355
|
illustration: "empty-data",
|
|
229
|
-
icon: /* @__PURE__ */
|
|
356
|
+
icon: /* @__PURE__ */ _(Ee, { className: "h-10 w-10" }),
|
|
230
357
|
title: "No nutrition tracked yet",
|
|
231
358
|
description: "Activate a nutrition plan or log your first meal to start tracking daily macros.",
|
|
232
|
-
action: /* @__PURE__ */
|
|
233
|
-
onClick:
|
|
234
|
-
children: [/* @__PURE__ */
|
|
359
|
+
action: /* @__PURE__ */ v(y, {
|
|
360
|
+
onClick: X,
|
|
361
|
+
children: [/* @__PURE__ */ _(h, { className: "mr-1.5 h-4 w-4" }), " Log meal"]
|
|
235
362
|
})
|
|
236
363
|
});
|
|
237
|
-
let
|
|
238
|
-
|
|
364
|
+
let i = t.calorieTarget ? t.calories / t.calorieTarget * 100 : 0, te = Math.round(Math.max(0, Math.min(100, i))), d = [
|
|
365
|
+
{
|
|
366
|
+
label: "Protein",
|
|
367
|
+
value: t.proteinG,
|
|
368
|
+
target: t.proteinTarget,
|
|
369
|
+
color: f.protein
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
label: "Carbs",
|
|
373
|
+
value: t.carbsG,
|
|
374
|
+
target: t.carbsTarget,
|
|
375
|
+
color: f.carbs
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
label: "Fat",
|
|
379
|
+
value: t.fatG,
|
|
380
|
+
target: t.fatTarget,
|
|
381
|
+
color: f.fat
|
|
382
|
+
}
|
|
383
|
+
];
|
|
384
|
+
return /* @__PURE__ */ v(e.div, {
|
|
385
|
+
initial: "hidden",
|
|
386
|
+
animate: "show",
|
|
387
|
+
variants: Q,
|
|
239
388
|
className: "space-y-6",
|
|
240
|
-
children: [
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
className: "
|
|
247
|
-
children: "
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
389
|
+
children: [
|
|
390
|
+
/* @__PURE__ */ _(e.div, {
|
|
391
|
+
variants: $,
|
|
392
|
+
children: /* @__PURE__ */ v(b, {
|
|
393
|
+
treatment: "glass",
|
|
394
|
+
glow: !0,
|
|
395
|
+
className: "p-6 sm:p-7",
|
|
396
|
+
children: [/* @__PURE__ */ v("div", {
|
|
397
|
+
className: "mb-5",
|
|
398
|
+
children: [/* @__PURE__ */ _("h2", {
|
|
399
|
+
className: "text-base font-semibold text-text-primary",
|
|
400
|
+
children: "Today's macros"
|
|
401
|
+
}), /* @__PURE__ */ _("p", {
|
|
402
|
+
className: "mt-0.5 text-sm text-text-secondary",
|
|
403
|
+
children: "Calories & macros logged against your active plan."
|
|
404
|
+
})]
|
|
405
|
+
}), /* @__PURE__ */ v("div", {
|
|
406
|
+
className: "flex flex-col items-center gap-6 sm:flex-row sm:items-center sm:gap-8",
|
|
407
|
+
children: [/* @__PURE__ */ v("div", {
|
|
408
|
+
className: "relative flex shrink-0 items-center justify-center",
|
|
409
|
+
children: [/* @__PURE__ */ _("div", {
|
|
410
|
+
"aria-hidden": "true",
|
|
411
|
+
className: "pointer-events-none absolute inset-3 rounded-full blur-2xl",
|
|
412
|
+
style: { background: "radial-gradient(circle, color-mix(in srgb, var(--color-action-primary-bg) 30%, transparent), transparent 68%)" }
|
|
413
|
+
}), /* @__PURE__ */ v(ae, {
|
|
414
|
+
value: i,
|
|
415
|
+
size: 168,
|
|
416
|
+
stroke: 14,
|
|
417
|
+
className: "relative",
|
|
418
|
+
children: [/* @__PURE__ */ _("span", {
|
|
419
|
+
className: "text-3xl font-bold tabular-nums text-text-primary",
|
|
420
|
+
children: o(t.calories)
|
|
421
|
+
}), /* @__PURE__ */ v("span", {
|
|
422
|
+
className: "mt-0.5 text-xs text-text-tertiary",
|
|
423
|
+
children: [
|
|
424
|
+
"/ ",
|
|
425
|
+
o(t.calorieTarget),
|
|
426
|
+
" kcal"
|
|
427
|
+
]
|
|
428
|
+
})]
|
|
429
|
+
})]
|
|
430
|
+
}), /* @__PURE__ */ v("div", {
|
|
431
|
+
className: "flex w-full flex-1 flex-col gap-4",
|
|
432
|
+
children: [/* @__PURE__ */ _(re, {
|
|
433
|
+
proteinG: t.proteinG,
|
|
434
|
+
carbsG: t.carbsG,
|
|
435
|
+
fatG: t.fatG,
|
|
436
|
+
height: 12
|
|
437
|
+
}), /* @__PURE__ */ v("div", {
|
|
438
|
+
className: "flex flex-col gap-4 sm:flex-row sm:items-stretch",
|
|
439
|
+
children: [/* @__PURE__ */ _("div", {
|
|
440
|
+
className: "flex-1 space-y-2.5",
|
|
441
|
+
children: d.map((e) => /* @__PURE__ */ v("div", {
|
|
442
|
+
className: "flex items-center justify-between gap-3",
|
|
443
|
+
children: [/* @__PURE__ */ v("span", {
|
|
444
|
+
className: "inline-flex items-center gap-2 text-sm text-text-secondary",
|
|
445
|
+
children: [/* @__PURE__ */ _("span", {
|
|
446
|
+
className: "h-2.5 w-2.5 rounded-full",
|
|
447
|
+
style: { backgroundColor: e.color }
|
|
448
|
+
}), e.label]
|
|
449
|
+
}), /* @__PURE__ */ _("span", {
|
|
450
|
+
className: "text-sm font-semibold tabular-nums text-text-primary",
|
|
451
|
+
children: a(e.value)
|
|
452
|
+
})]
|
|
453
|
+
}, e.label))
|
|
454
|
+
}), /* @__PURE__ */ v("div", {
|
|
455
|
+
className: "flex flex-col justify-center rounded-2xl px-4 py-3 sm:min-w-[9rem]",
|
|
456
|
+
style: { backgroundColor: "color-mix(in srgb, var(--color-action-primary-bg) 12%, transparent)" },
|
|
457
|
+
children: [
|
|
458
|
+
/* @__PURE__ */ _("span", {
|
|
459
|
+
className: "text-xs font-medium text-text-tertiary",
|
|
460
|
+
children: "Calorie ring"
|
|
461
|
+
}),
|
|
462
|
+
/* @__PURE__ */ v("span", {
|
|
463
|
+
className: "text-2xl font-bold tabular-nums text-action-primary-bg",
|
|
464
|
+
children: [te, "%"]
|
|
465
|
+
}),
|
|
466
|
+
/* @__PURE__ */ _("span", {
|
|
467
|
+
className: "text-xs text-text-secondary",
|
|
468
|
+
children: "of daily target"
|
|
469
|
+
})
|
|
470
|
+
]
|
|
471
|
+
})]
|
|
472
|
+
})]
|
|
473
|
+
})]
|
|
268
474
|
})]
|
|
269
|
-
})
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
"
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
"
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
475
|
+
})
|
|
476
|
+
}),
|
|
477
|
+
/* @__PURE__ */ _(e.div, {
|
|
478
|
+
variants: Q,
|
|
479
|
+
className: "grid grid-cols-1 gap-3 sm:grid-cols-3 sm:gap-4",
|
|
480
|
+
children: d.map((t) => /* @__PURE__ */ _(e.div, {
|
|
481
|
+
variants: $,
|
|
482
|
+
children: /* @__PURE__ */ v(b, {
|
|
483
|
+
treatment: "metric",
|
|
484
|
+
className: "p-4",
|
|
485
|
+
children: [/* @__PURE__ */ v("div", {
|
|
486
|
+
className: "flex flex-wrap items-center justify-between gap-2",
|
|
487
|
+
children: [/* @__PURE__ */ v("span", {
|
|
488
|
+
className: "inline-flex items-center gap-2 text-sm font-medium text-text-primary",
|
|
489
|
+
children: [/* @__PURE__ */ _("span", {
|
|
490
|
+
className: "h-2.5 w-2.5 rounded-full",
|
|
491
|
+
style: { backgroundColor: t.color }
|
|
492
|
+
}), t.label]
|
|
493
|
+
}), /* @__PURE__ */ v("span", {
|
|
494
|
+
className: "text-sm tabular-nums text-text-secondary",
|
|
495
|
+
children: [
|
|
496
|
+
/* @__PURE__ */ _("span", {
|
|
497
|
+
className: "font-semibold text-text-primary",
|
|
498
|
+
children: o(t.value)
|
|
499
|
+
}),
|
|
500
|
+
" ",
|
|
501
|
+
"/ ",
|
|
502
|
+
o(t.target),
|
|
503
|
+
" g"
|
|
504
|
+
]
|
|
505
|
+
})]
|
|
506
|
+
}), /* @__PURE__ */ _(ie, {
|
|
507
|
+
value: t.target ? t.value / t.target * 100 : 0,
|
|
508
|
+
color: t.color,
|
|
509
|
+
height: 8,
|
|
510
|
+
className: "mt-3"
|
|
511
|
+
})]
|
|
512
|
+
})
|
|
513
|
+
}, t.label))
|
|
514
|
+
}),
|
|
515
|
+
/* @__PURE__ */ _(e.div, {
|
|
516
|
+
variants: $,
|
|
517
|
+
children: /* @__PURE__ */ _(ne, {
|
|
518
|
+
title: "Today's meals",
|
|
519
|
+
description: "Everything you've logged today.",
|
|
520
|
+
children: j.isLoading ? /* @__PURE__ */ _(l, { label: "Loading meals…" }) : j.isError ? /* @__PURE__ */ _(c, {
|
|
521
|
+
message: "We couldn't load today's meals.",
|
|
522
|
+
onRetry: () => j.refetch()
|
|
523
|
+
}) : Y.length === 0 ? /* @__PURE__ */ _(u, {
|
|
524
|
+
illustration: "empty-data",
|
|
525
|
+
icon: /* @__PURE__ */ _(Ee, { className: "h-10 w-10" }),
|
|
526
|
+
title: "No meals logged today",
|
|
527
|
+
description: "Use “Log meal” to record what you've eaten and keep your macros current.",
|
|
528
|
+
action: /* @__PURE__ */ v(y, {
|
|
529
|
+
onClick: X,
|
|
530
|
+
children: [/* @__PURE__ */ _(h, { className: "mr-1.5 h-4 w-4" }), " Log meal"]
|
|
531
|
+
})
|
|
532
|
+
}) : /* @__PURE__ */ _(b, {
|
|
533
|
+
treatment: "plain",
|
|
534
|
+
className: "divide-y divide-border-seam/60 px-2 sm:px-3",
|
|
535
|
+
children: Y.map((e) => /* @__PURE__ */ v("div", {
|
|
536
|
+
className: "flex items-center gap-3 rounded-xl px-2 py-3 transition-colors hover:bg-bg-sunken/40",
|
|
299
537
|
children: [
|
|
300
|
-
/* @__PURE__ */
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
538
|
+
/* @__PURE__ */ _(s, { status: e.mealType }),
|
|
539
|
+
/* @__PURE__ */ v("div", {
|
|
540
|
+
className: "min-w-0 flex-1",
|
|
541
|
+
children: [/* @__PURE__ */ v("div", {
|
|
542
|
+
className: "flex items-center gap-1.5",
|
|
543
|
+
children: [/* @__PURE__ */ _("p", {
|
|
544
|
+
className: "truncate text-sm font-medium text-text-primary",
|
|
545
|
+
children: e.name
|
|
546
|
+
}), e.isFavorite && /* @__PURE__ */ _(g, {
|
|
547
|
+
className: "h-3.5 w-3.5 shrink-0 fill-current text-action-primary-bg",
|
|
548
|
+
"aria-label": "Favorite meal"
|
|
549
|
+
})]
|
|
550
|
+
}), /* @__PURE__ */ v("p", {
|
|
551
|
+
className: "text-xs text-text-tertiary",
|
|
308
552
|
children: [
|
|
553
|
+
a(e.proteinG),
|
|
554
|
+
" P · ",
|
|
555
|
+
a(e.carbsG),
|
|
556
|
+
" C ·",
|
|
309
557
|
" ",
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
558
|
+
a(e.fatG),
|
|
559
|
+
" F · ",
|
|
560
|
+
o(e.servings),
|
|
561
|
+
" serving",
|
|
562
|
+
e.servings === 1 ? "" : "s"
|
|
313
563
|
]
|
|
314
564
|
})]
|
|
315
565
|
}),
|
|
316
|
-
/* @__PURE__ */
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
566
|
+
/* @__PURE__ */ _("span", {
|
|
567
|
+
className: "shrink-0 text-sm font-semibold tabular-nums text-text-primary",
|
|
568
|
+
children: ee(e.calories)
|
|
569
|
+
}),
|
|
570
|
+
/* @__PURE__ */ _(y, {
|
|
571
|
+
variant: "ghost",
|
|
572
|
+
size: "icon-sm",
|
|
573
|
+
onClick: () => yt(e.id),
|
|
574
|
+
disabled: rt === e.id,
|
|
575
|
+
"aria-label": "Delete meal",
|
|
576
|
+
className: "shrink-0",
|
|
577
|
+
children: /* @__PURE__ */ _(De, { className: "h-4 w-4 text-status-error-text" })
|
|
320
578
|
})
|
|
321
579
|
]
|
|
322
|
-
}, e))
|
|
323
|
-
})
|
|
324
|
-
})]
|
|
325
|
-
})]
|
|
326
|
-
}), /* @__PURE__ */ m(ne, {
|
|
327
|
-
title: "Today's meals",
|
|
328
|
-
description: "Everything you've logged today.",
|
|
329
|
-
children: j.isLoading ? /* @__PURE__ */ m(c, { label: "Loading meals…" }) : j.isError ? /* @__PURE__ */ m(s, {
|
|
330
|
-
message: "We couldn't load today's meals.",
|
|
331
|
-
onRetry: () => j.refetch()
|
|
332
|
-
}) : Y.length === 0 ? /* @__PURE__ */ m(l, {
|
|
333
|
-
illustration: "empty-data",
|
|
334
|
-
icon: /* @__PURE__ */ m(Ee, { className: "h-10 w-10" }),
|
|
335
|
-
title: "No meals logged today",
|
|
336
|
-
description: "Use “Log meal” to record what you've eaten and keep your macros current.",
|
|
337
|
-
action: /* @__PURE__ */ h(g, {
|
|
338
|
-
onClick: Z,
|
|
339
|
-
children: [/* @__PURE__ */ m(f, { className: "mr-1.5 h-4 w-4" }), " Log meal"]
|
|
580
|
+
}, e.id))
|
|
581
|
+
})
|
|
340
582
|
})
|
|
341
|
-
}) : /* @__PURE__ */ m(_, {
|
|
342
|
-
treatment: "plain",
|
|
343
|
-
className: "divide-y divide-border-seam/60 px-4",
|
|
344
|
-
children: Y.map((e) => /* @__PURE__ */ h("div", {
|
|
345
|
-
className: "flex items-center gap-3 py-3",
|
|
346
|
-
children: [
|
|
347
|
-
/* @__PURE__ */ m(o, { status: e.mealType }),
|
|
348
|
-
/* @__PURE__ */ h("div", {
|
|
349
|
-
className: "min-w-0 flex-1",
|
|
350
|
-
children: [/* @__PURE__ */ m("p", {
|
|
351
|
-
className: "truncate text-sm font-medium text-text-primary",
|
|
352
|
-
children: e.name
|
|
353
|
-
}), /* @__PURE__ */ h("p", {
|
|
354
|
-
className: "text-xs text-text-tertiary",
|
|
355
|
-
children: [
|
|
356
|
-
i(e.proteinG),
|
|
357
|
-
" P · ",
|
|
358
|
-
i(e.carbsG),
|
|
359
|
-
" C ·",
|
|
360
|
-
" ",
|
|
361
|
-
i(e.fatG),
|
|
362
|
-
" F · ",
|
|
363
|
-
a(e.servings),
|
|
364
|
-
" serving",
|
|
365
|
-
e.servings === 1 ? "" : "s"
|
|
366
|
-
]
|
|
367
|
-
})]
|
|
368
|
-
}),
|
|
369
|
-
/* @__PURE__ */ m("span", {
|
|
370
|
-
className: "shrink-0 text-sm font-semibold tabular-nums text-text-primary",
|
|
371
|
-
children: ee(e.calories)
|
|
372
|
-
}),
|
|
373
|
-
/* @__PURE__ */ m(g, {
|
|
374
|
-
variant: "ghost",
|
|
375
|
-
size: "icon-sm",
|
|
376
|
-
onClick: () => Q(e.id),
|
|
377
|
-
disabled: $e === e.id,
|
|
378
|
-
"aria-label": "Delete meal",
|
|
379
|
-
className: "shrink-0",
|
|
380
|
-
children: /* @__PURE__ */ m(p, { className: "h-4 w-4 text-status-error-text" })
|
|
381
|
-
})
|
|
382
|
-
]
|
|
383
|
-
}, e.id))
|
|
384
583
|
})
|
|
385
|
-
|
|
584
|
+
]
|
|
386
585
|
});
|
|
387
586
|
})(),
|
|
388
|
-
|
|
389
|
-
if (A.isLoading) return /* @__PURE__ */
|
|
390
|
-
if (A.isError) return /* @__PURE__ */
|
|
587
|
+
D === "plan" && (() => {
|
|
588
|
+
if (A.isLoading) return /* @__PURE__ */ _(l, { label: "Loading your nutrition plan…" });
|
|
589
|
+
if (A.isError) return /* @__PURE__ */ _(c, {
|
|
391
590
|
message: "We couldn't load your active nutrition plan.",
|
|
392
591
|
onRetry: () => A.refetch()
|
|
393
592
|
});
|
|
394
|
-
if (!J) return /* @__PURE__ */
|
|
593
|
+
if (!J) return /* @__PURE__ */ _(u, {
|
|
395
594
|
illustration: "empty-data",
|
|
396
|
-
icon: /* @__PURE__ */
|
|
595
|
+
icon: /* @__PURE__ */ _(Se, { className: "h-10 w-10" }),
|
|
397
596
|
title: "No active nutrition plan",
|
|
398
597
|
description: "Create a nutrition plan to set your daily calorie and macro targets.",
|
|
399
|
-
action: /* @__PURE__ */
|
|
400
|
-
onClick:
|
|
401
|
-
children: [/* @__PURE__ */
|
|
598
|
+
action: /* @__PURE__ */ v(y, {
|
|
599
|
+
onClick: mt,
|
|
600
|
+
children: [/* @__PURE__ */ _(h, { className: "mr-1.5 h-4 w-4" }), " Create plan"]
|
|
402
601
|
})
|
|
403
602
|
});
|
|
404
|
-
let
|
|
603
|
+
let t = [
|
|
405
604
|
{
|
|
406
|
-
icon: /* @__PURE__ */
|
|
605
|
+
icon: /* @__PURE__ */ _(we, { className: "h-5 w-5" }),
|
|
407
606
|
label: "Calorie target",
|
|
408
|
-
value: J.calorieTarget ? `${
|
|
607
|
+
value: J.calorieTarget ? `${o(J.calorieTarget)} kcal` : "—",
|
|
608
|
+
tint: "var(--color-action-primary-bg)"
|
|
409
609
|
},
|
|
410
610
|
{
|
|
411
|
-
icon: /* @__PURE__ */
|
|
611
|
+
icon: /* @__PURE__ */ _(be, { className: "h-5 w-5" }),
|
|
412
612
|
label: "Protein target",
|
|
413
|
-
value: J.proteinTarget ?
|
|
613
|
+
value: J.proteinTarget ? a(J.proteinTarget) : "—",
|
|
614
|
+
tint: f.protein
|
|
414
615
|
},
|
|
415
616
|
{
|
|
416
|
-
icon: /* @__PURE__ */
|
|
617
|
+
icon: /* @__PURE__ */ _(ke, { className: "h-5 w-5" }),
|
|
417
618
|
label: "Carbs target",
|
|
418
|
-
value: J.carbsTarget ?
|
|
619
|
+
value: J.carbsTarget ? a(J.carbsTarget) : "—",
|
|
620
|
+
tint: f.carbs
|
|
419
621
|
},
|
|
420
622
|
{
|
|
421
|
-
icon: /* @__PURE__ */
|
|
623
|
+
icon: /* @__PURE__ */ _(Ce, { className: "h-5 w-5" }),
|
|
422
624
|
label: "Fat target",
|
|
423
|
-
value: J.fatTarget ?
|
|
625
|
+
value: J.fatTarget ? a(J.fatTarget) : "—",
|
|
626
|
+
tint: f.fat
|
|
424
627
|
}
|
|
425
628
|
];
|
|
426
|
-
return /* @__PURE__ */
|
|
629
|
+
return /* @__PURE__ */ v(e.div, {
|
|
630
|
+
initial: "hidden",
|
|
631
|
+
animate: "show",
|
|
632
|
+
variants: Q,
|
|
427
633
|
className: "space-y-6",
|
|
428
634
|
children: [
|
|
429
|
-
!J.isActive && /* @__PURE__ */
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
635
|
+
!J.isActive && /* @__PURE__ */ v(e.div, {
|
|
636
|
+
variants: $,
|
|
637
|
+
className: "flex flex-wrap items-center justify-between gap-3 rounded-2xl border p-4",
|
|
638
|
+
style: {
|
|
639
|
+
borderColor: "color-mix(in srgb, var(--color-action-primary-bg) 32%, transparent)",
|
|
640
|
+
backgroundColor: "color-mix(in srgb, var(--color-action-primary-bg) 8%, transparent)"
|
|
641
|
+
},
|
|
642
|
+
children: [/* @__PURE__ */ v("div", {
|
|
643
|
+
className: "flex min-w-0 items-center gap-3",
|
|
644
|
+
children: [/* @__PURE__ */ _(d, { icon: /* @__PURE__ */ _(m, { className: "h-5 w-5" }) }), /* @__PURE__ */ v("div", {
|
|
645
|
+
className: "min-w-0",
|
|
646
|
+
children: [/* @__PURE__ */ _("p", {
|
|
647
|
+
className: "text-sm font-medium text-text-primary",
|
|
648
|
+
children: "This plan isn't active yet"
|
|
649
|
+
}), /* @__PURE__ */ _("p", {
|
|
650
|
+
className: "text-xs text-text-secondary",
|
|
651
|
+
children: "Activate it to track today's macros against these targets."
|
|
652
|
+
})]
|
|
439
653
|
})]
|
|
440
|
-
}), /* @__PURE__ */
|
|
441
|
-
onClick: () =>
|
|
654
|
+
}), /* @__PURE__ */ v(y, {
|
|
655
|
+
onClick: () => vt(J.id),
|
|
442
656
|
disabled: I.isPending,
|
|
443
|
-
children: [/* @__PURE__ */ m
|
|
657
|
+
children: [/* @__PURE__ */ _(m, { className: "mr-1.5 h-4 w-4" }), I.isPending ? "Activating…" : "Activate this plan"]
|
|
444
658
|
})]
|
|
445
659
|
}),
|
|
446
|
-
/* @__PURE__ */
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
660
|
+
/* @__PURE__ */ _(e.div, {
|
|
661
|
+
variants: $,
|
|
662
|
+
children: /* @__PURE__ */ v(b, {
|
|
663
|
+
treatment: "glass",
|
|
664
|
+
glow: !0,
|
|
665
|
+
className: "relative overflow-hidden p-6 sm:p-7",
|
|
666
|
+
children: [
|
|
667
|
+
/* @__PURE__ */ _("div", {
|
|
668
|
+
"aria-hidden": "true",
|
|
669
|
+
className: "pointer-events-none absolute inset-0",
|
|
670
|
+
style: { background: "radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--color-action-primary-bg) 13%, transparent), transparent 55%)" }
|
|
671
|
+
}),
|
|
672
|
+
/* @__PURE__ */ v("div", {
|
|
673
|
+
className: "relative flex flex-wrap items-start justify-between gap-4",
|
|
674
|
+
children: [/* @__PURE__ */ v("div", {
|
|
675
|
+
className: "min-w-0",
|
|
676
|
+
children: [
|
|
677
|
+
/* @__PURE__ */ _("p", {
|
|
678
|
+
className: "text-xs font-semibold uppercase tracking-wide text-action-primary-bg",
|
|
679
|
+
children: J.isActive ? "Active plan" : "Nutrition plan"
|
|
680
|
+
}),
|
|
681
|
+
/* @__PURE__ */ v("div", {
|
|
682
|
+
className: "mt-1.5 flex flex-wrap items-baseline gap-x-2 gap-y-1",
|
|
683
|
+
children: [
|
|
684
|
+
/* @__PURE__ */ _("h2", {
|
|
685
|
+
className: "text-2xl font-bold text-text-primary",
|
|
686
|
+
children: J.name
|
|
687
|
+
}),
|
|
688
|
+
J.calorieTarget > 0 && /* @__PURE__ */ v("span", {
|
|
689
|
+
className: "text-lg font-semibold tabular-nums text-text-tertiary",
|
|
690
|
+
children: [o(J.calorieTarget), " kcal"]
|
|
691
|
+
}),
|
|
692
|
+
J.isActive ? /* @__PURE__ */ v("span", {
|
|
693
|
+
className: "inline-flex items-center gap-1 rounded-full bg-status-success-bg-subtle px-2.5 py-0.5 text-xs font-medium text-status-success-text",
|
|
694
|
+
children: [/* @__PURE__ */ _(m, { className: "h-3.5 w-3.5" }), " Active"]
|
|
695
|
+
}) : /* @__PURE__ */ _("span", {
|
|
696
|
+
className: "inline-flex items-center gap-1 rounded-full bg-bg-sunken px-2.5 py-0.5 text-xs font-medium text-text-secondary",
|
|
697
|
+
children: "Inactive"
|
|
698
|
+
})
|
|
699
|
+
]
|
|
700
|
+
}),
|
|
701
|
+
(J.startDate || J.endDate) && /* @__PURE__ */ v("p", {
|
|
702
|
+
className: "mt-2 inline-flex items-center gap-1.5 text-sm text-text-secondary",
|
|
703
|
+
children: [
|
|
704
|
+
/* @__PURE__ */ _(xe, { className: "h-4 w-4 text-text-tertiary" }),
|
|
705
|
+
r(J.startDate),
|
|
706
|
+
" – ",
|
|
707
|
+
r(J.endDate)
|
|
708
|
+
]
|
|
709
|
+
})
|
|
710
|
+
]
|
|
711
|
+
}), /* @__PURE__ */ v("div", {
|
|
712
|
+
className: "flex shrink-0 items-center gap-2",
|
|
713
|
+
children: [/* @__PURE__ */ _("span", {
|
|
714
|
+
className: "text-sm text-text-tertiary",
|
|
715
|
+
children: "Goal"
|
|
716
|
+
}), /* @__PURE__ */ _(s, { status: J.goalType })]
|
|
717
|
+
})]
|
|
718
|
+
}),
|
|
719
|
+
/* @__PURE__ */ _(e.div, {
|
|
720
|
+
variants: Q,
|
|
721
|
+
className: "relative mt-6 grid grid-cols-2 gap-3 sm:gap-4 lg:grid-cols-4",
|
|
722
|
+
children: t.map((t) => /* @__PURE__ */ v(e.div, {
|
|
723
|
+
variants: $,
|
|
724
|
+
className: "rounded-2xl border border-border-seam bg-bg-sunken/40 p-4 transition-shadow duration-200 hover:shadow-elevation-2",
|
|
725
|
+
children: [
|
|
726
|
+
/* @__PURE__ */ _(d, {
|
|
727
|
+
icon: t.icon,
|
|
728
|
+
tint: t.tint
|
|
729
|
+
}),
|
|
730
|
+
/* @__PURE__ */ _("p", {
|
|
731
|
+
className: "mt-3 text-xs text-text-tertiary",
|
|
732
|
+
children: t.label
|
|
733
|
+
}),
|
|
734
|
+
/* @__PURE__ */ _("p", {
|
|
735
|
+
className: "mt-1 text-xl font-bold tabular-nums text-text-primary",
|
|
736
|
+
children: t.value
|
|
737
|
+
})
|
|
738
|
+
]
|
|
739
|
+
}, t.label))
|
|
740
|
+
})
|
|
741
|
+
]
|
|
482
742
|
})
|
|
483
743
|
}),
|
|
484
|
-
/* @__PURE__ */
|
|
485
|
-
|
|
486
|
-
children:
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
treatment: "plain",
|
|
496
|
-
className: "p-4",
|
|
497
|
-
children: /* @__PURE__ */ m("p", {
|
|
498
|
-
className: "whitespace-pre-wrap text-sm text-text-secondary",
|
|
499
|
-
children: J.notes
|
|
744
|
+
J.notes && /* @__PURE__ */ _(e.div, {
|
|
745
|
+
variants: $,
|
|
746
|
+
children: /* @__PURE__ */ _(ne, {
|
|
747
|
+
title: "Notes",
|
|
748
|
+
children: /* @__PURE__ */ _(b, {
|
|
749
|
+
treatment: "plain",
|
|
750
|
+
className: "p-4",
|
|
751
|
+
children: /* @__PURE__ */ _("p", {
|
|
752
|
+
className: "whitespace-pre-wrap text-sm text-text-secondary",
|
|
753
|
+
children: J.notes
|
|
754
|
+
})
|
|
500
755
|
})
|
|
501
756
|
})
|
|
502
757
|
})
|
|
503
758
|
]
|
|
504
759
|
});
|
|
505
760
|
})(),
|
|
506
|
-
|
|
761
|
+
D === "meals" && (P.isLoading ? /* @__PURE__ */ _(l, { label: "Loading meal log…" }) : P.isError ? /* @__PURE__ */ _(c, {
|
|
507
762
|
message: "We couldn't load your meal log.",
|
|
508
763
|
onRetry: () => P.refetch()
|
|
509
|
-
}) : /* @__PURE__ */
|
|
764
|
+
}) : /* @__PURE__ */ v(e.div, {
|
|
765
|
+
initial: "hidden",
|
|
766
|
+
animate: "show",
|
|
767
|
+
variants: Q,
|
|
510
768
|
className: "space-y-4",
|
|
511
|
-
children: [/* @__PURE__ */
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
icon: /* @__PURE__ */ m(Oe, { className: "h-10 w-10" }),
|
|
518
|
-
title: M === "ALL" ? "No meals logged yet" : "No meals for this filter",
|
|
519
|
-
description: M === "ALL" ? "Log meals from the Today tab to build up your nutrition history." : "Try a different meal type, or log a meal to get started.",
|
|
520
|
-
action: /* @__PURE__ */ h(g, {
|
|
521
|
-
onClick: Z,
|
|
522
|
-
children: [/* @__PURE__ */ m(f, { className: "mr-1.5 h-4 w-4" }), " Log meal"]
|
|
769
|
+
children: [/* @__PURE__ */ _(e.div, {
|
|
770
|
+
variants: $,
|
|
771
|
+
children: /* @__PURE__ */ _(ge, {
|
|
772
|
+
options: qe,
|
|
773
|
+
value: M,
|
|
774
|
+
onChange: pt
|
|
523
775
|
})
|
|
524
|
-
})
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
className: "font-medium text-text-primary",
|
|
544
|
-
children: e.name
|
|
545
|
-
})
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
key: "mealType",
|
|
549
|
-
header: "Type",
|
|
550
|
-
render: (e) => /* @__PURE__ */ m(o, { status: e.mealType })
|
|
551
|
-
},
|
|
552
|
-
{
|
|
553
|
-
key: "calories",
|
|
554
|
-
header: "Calories",
|
|
555
|
-
align: "right",
|
|
556
|
-
sortValue: (e) => e.calories,
|
|
557
|
-
render: (e) => /* @__PURE__ */ m("span", {
|
|
558
|
-
className: "tabular-nums",
|
|
559
|
-
children: ee(e.calories)
|
|
560
|
-
})
|
|
561
|
-
},
|
|
562
|
-
{
|
|
563
|
-
key: "proteinG",
|
|
564
|
-
header: "Protein",
|
|
565
|
-
align: "right",
|
|
566
|
-
hideOnMobile: !0,
|
|
567
|
-
sortValue: (e) => e.proteinG,
|
|
568
|
-
render: (e) => /* @__PURE__ */ m("span", {
|
|
569
|
-
className: "tabular-nums text-text-secondary",
|
|
570
|
-
children: i(e.proteinG)
|
|
571
|
-
})
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
key: "carbsG",
|
|
575
|
-
header: "Carbs",
|
|
576
|
-
align: "right",
|
|
577
|
-
hideOnMobile: !0,
|
|
578
|
-
sortValue: (e) => e.carbsG,
|
|
579
|
-
render: (e) => /* @__PURE__ */ m("span", {
|
|
580
|
-
className: "tabular-nums text-text-secondary",
|
|
581
|
-
children: i(e.carbsG)
|
|
582
|
-
})
|
|
583
|
-
},
|
|
584
|
-
{
|
|
585
|
-
key: "fatG",
|
|
586
|
-
header: "Fat",
|
|
587
|
-
align: "right",
|
|
588
|
-
hideOnMobile: !0,
|
|
589
|
-
sortValue: (e) => e.fatG,
|
|
590
|
-
render: (e) => /* @__PURE__ */ m("span", {
|
|
591
|
-
className: "tabular-nums text-text-secondary",
|
|
592
|
-
children: i(e.fatG)
|
|
593
|
-
})
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
key: "servings",
|
|
597
|
-
header: "Servings",
|
|
598
|
-
align: "right",
|
|
599
|
-
sortValue: (e) => e.servings,
|
|
600
|
-
render: (e) => /* @__PURE__ */ m("span", {
|
|
601
|
-
className: "tabular-nums",
|
|
602
|
-
children: a(e.servings)
|
|
603
|
-
})
|
|
604
|
-
},
|
|
605
|
-
{
|
|
776
|
+
}), ft.length === 0 ? /* @__PURE__ */ _(e.div, {
|
|
777
|
+
variants: $,
|
|
778
|
+
children: /* @__PURE__ */ _(u, {
|
|
779
|
+
illustration: "empty-data",
|
|
780
|
+
icon: /* @__PURE__ */ _(Oe, { className: "h-10 w-10" }),
|
|
781
|
+
title: M === "ALL" ? "No meals logged yet" : "No meals for this filter",
|
|
782
|
+
description: M === "ALL" ? "Log meals from the Today tab to build up your nutrition history." : "Try a different meal type, or log a meal to get started.",
|
|
783
|
+
action: /* @__PURE__ */ v(y, {
|
|
784
|
+
onClick: X,
|
|
785
|
+
children: [/* @__PURE__ */ _(h, { className: "mr-1.5 h-4 w-4" }), " Log meal"]
|
|
786
|
+
})
|
|
787
|
+
})
|
|
788
|
+
}) : /* @__PURE__ */ v(Ae, { children: [/* @__PURE__ */ _(e.div, {
|
|
789
|
+
variants: $,
|
|
790
|
+
children: /* @__PURE__ */ _(he, {
|
|
791
|
+
columns: bt,
|
|
792
|
+
rows: ft,
|
|
793
|
+
rowKey: (e) => e.id,
|
|
794
|
+
defaultSort: {
|
|
606
795
|
key: "loggedAt",
|
|
607
|
-
|
|
608
|
-
hideOnMobile: !0,
|
|
609
|
-
sortValue: (e) => new Date(e.loggedAt).getTime(),
|
|
610
|
-
render: (e) => /* @__PURE__ */ m("span", {
|
|
611
|
-
className: "text-text-secondary",
|
|
612
|
-
children: te(e.loggedAt)
|
|
613
|
-
})
|
|
614
|
-
},
|
|
615
|
-
{
|
|
616
|
-
key: "actions",
|
|
617
|
-
header: "",
|
|
618
|
-
align: "right",
|
|
619
|
-
render: (e) => /* @__PURE__ */ m(g, {
|
|
620
|
-
variant: "ghost",
|
|
621
|
-
size: "icon-sm",
|
|
622
|
-
onClick: () => Q(e.id),
|
|
623
|
-
disabled: $e === e.id,
|
|
624
|
-
"aria-label": "Delete meal",
|
|
625
|
-
children: /* @__PURE__ */ m(p, { className: "h-4 w-4 text-status-error-text" })
|
|
626
|
-
})
|
|
796
|
+
dir: "desc"
|
|
627
797
|
}
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
itemCount: X.length,
|
|
639
|
-
hasMore: P.data?.pageInfo?.hasMore ?? !1,
|
|
640
|
-
onPageChange: (e) => N.onPageChange(e)
|
|
798
|
+
})
|
|
799
|
+
}), /* @__PURE__ */ _(e.div, {
|
|
800
|
+
variants: $,
|
|
801
|
+
children: /* @__PURE__ */ _(ve, {
|
|
802
|
+
page: N.page,
|
|
803
|
+
pageSize: C,
|
|
804
|
+
itemCount: ft.length,
|
|
805
|
+
hasMore: P.data?.pageInfo?.hasMore ?? !1,
|
|
806
|
+
onPageChange: (e) => N.onPageChange(e)
|
|
807
|
+
})
|
|
641
808
|
})] })]
|
|
642
809
|
})),
|
|
643
|
-
/* @__PURE__ */
|
|
644
|
-
open:
|
|
810
|
+
/* @__PURE__ */ _(je, {
|
|
811
|
+
open: ot,
|
|
645
812
|
onOpenChange: z,
|
|
646
|
-
children: /* @__PURE__ */
|
|
813
|
+
children: /* @__PURE__ */ v(Me, {
|
|
647
814
|
className: "sm:max-w-lg",
|
|
648
815
|
children: [
|
|
649
|
-
/* @__PURE__ */
|
|
650
|
-
/* @__PURE__ */
|
|
816
|
+
/* @__PURE__ */ v(Fe, { children: [/* @__PURE__ */ _(Ie, { children: "Log a meal" }), /* @__PURE__ */ _(Ne, { children: "Record what you ate to update today's macros." })] }),
|
|
817
|
+
/* @__PURE__ */ v("div", {
|
|
651
818
|
className: "space-y-4 py-2",
|
|
652
819
|
children: [
|
|
653
|
-
|
|
820
|
+
st && /* @__PURE__ */ _("div", {
|
|
654
821
|
className: "rounded-lg border border-status-error-text/40 bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
655
|
-
children:
|
|
822
|
+
children: st
|
|
656
823
|
}),
|
|
657
|
-
/* @__PURE__ */
|
|
824
|
+
/* @__PURE__ */ v("div", {
|
|
658
825
|
className: "space-y-1.5",
|
|
659
|
-
children: [/* @__PURE__ */
|
|
826
|
+
children: [/* @__PURE__ */ _(S, {
|
|
660
827
|
htmlFor: "meal-name",
|
|
661
828
|
children: "Name"
|
|
662
|
-
}), /* @__PURE__ */
|
|
829
|
+
}), /* @__PURE__ */ _(x, {
|
|
663
830
|
id: "meal-name",
|
|
664
831
|
value: B.name,
|
|
665
832
|
onChange: (e) => V({
|
|
@@ -669,33 +836,33 @@ function O() {
|
|
|
669
836
|
placeholder: "Grilled chicken salad"
|
|
670
837
|
})]
|
|
671
838
|
}),
|
|
672
|
-
/* @__PURE__ */
|
|
839
|
+
/* @__PURE__ */ v("div", {
|
|
673
840
|
className: "grid grid-cols-2 gap-3",
|
|
674
|
-
children: [/* @__PURE__ */
|
|
841
|
+
children: [/* @__PURE__ */ v("div", {
|
|
675
842
|
className: "space-y-1.5",
|
|
676
|
-
children: [/* @__PURE__ */
|
|
843
|
+
children: [/* @__PURE__ */ _(S, {
|
|
677
844
|
htmlFor: "meal-type",
|
|
678
845
|
children: "Meal type"
|
|
679
|
-
}), /* @__PURE__ */
|
|
846
|
+
}), /* @__PURE__ */ v(Le, {
|
|
680
847
|
value: B.mealType,
|
|
681
848
|
onValueChange: (e) => V({
|
|
682
849
|
...B,
|
|
683
850
|
mealType: e
|
|
684
851
|
}),
|
|
685
|
-
children: [/* @__PURE__ */
|
|
852
|
+
children: [/* @__PURE__ */ _(Be, {
|
|
686
853
|
id: "meal-type",
|
|
687
|
-
children: /* @__PURE__ */
|
|
688
|
-
}), /* @__PURE__ */
|
|
854
|
+
children: /* @__PURE__ */ _(Ve, {})
|
|
855
|
+
}), /* @__PURE__ */ _(Re, { children: We.map((e) => /* @__PURE__ */ _(ze, {
|
|
689
856
|
value: e,
|
|
690
|
-
children:
|
|
857
|
+
children: i(e)
|
|
691
858
|
}, e)) })]
|
|
692
859
|
})]
|
|
693
|
-
}), /* @__PURE__ */
|
|
860
|
+
}), /* @__PURE__ */ v("div", {
|
|
694
861
|
className: "space-y-1.5",
|
|
695
|
-
children: [/* @__PURE__ */
|
|
862
|
+
children: [/* @__PURE__ */ _(S, {
|
|
696
863
|
htmlFor: "meal-servings",
|
|
697
864
|
children: "Servings"
|
|
698
|
-
}), /* @__PURE__ */
|
|
865
|
+
}), /* @__PURE__ */ _(x, {
|
|
699
866
|
id: "meal-servings",
|
|
700
867
|
type: "number",
|
|
701
868
|
min: 0,
|
|
@@ -709,15 +876,15 @@ function O() {
|
|
|
709
876
|
})]
|
|
710
877
|
})]
|
|
711
878
|
}),
|
|
712
|
-
/* @__PURE__ */
|
|
879
|
+
/* @__PURE__ */ v("div", {
|
|
713
880
|
className: "grid grid-cols-2 gap-3",
|
|
714
881
|
children: [
|
|
715
|
-
/* @__PURE__ */
|
|
882
|
+
/* @__PURE__ */ v("div", {
|
|
716
883
|
className: "space-y-1.5",
|
|
717
|
-
children: [/* @__PURE__ */
|
|
884
|
+
children: [/* @__PURE__ */ _(S, {
|
|
718
885
|
htmlFor: "meal-calories",
|
|
719
886
|
children: "Calories (kcal)"
|
|
720
|
-
}), /* @__PURE__ */
|
|
887
|
+
}), /* @__PURE__ */ _(x, {
|
|
721
888
|
id: "meal-calories",
|
|
722
889
|
type: "number",
|
|
723
890
|
min: 0,
|
|
@@ -729,12 +896,12 @@ function O() {
|
|
|
729
896
|
placeholder: "0"
|
|
730
897
|
})]
|
|
731
898
|
}),
|
|
732
|
-
/* @__PURE__ */
|
|
899
|
+
/* @__PURE__ */ v("div", {
|
|
733
900
|
className: "space-y-1.5",
|
|
734
|
-
children: [/* @__PURE__ */
|
|
901
|
+
children: [/* @__PURE__ */ _(S, {
|
|
735
902
|
htmlFor: "meal-protein",
|
|
736
903
|
children: "Protein (g)"
|
|
737
|
-
}), /* @__PURE__ */
|
|
904
|
+
}), /* @__PURE__ */ _(x, {
|
|
738
905
|
id: "meal-protein",
|
|
739
906
|
type: "number",
|
|
740
907
|
min: 0,
|
|
@@ -746,12 +913,12 @@ function O() {
|
|
|
746
913
|
placeholder: "0"
|
|
747
914
|
})]
|
|
748
915
|
}),
|
|
749
|
-
/* @__PURE__ */
|
|
916
|
+
/* @__PURE__ */ v("div", {
|
|
750
917
|
className: "space-y-1.5",
|
|
751
|
-
children: [/* @__PURE__ */
|
|
918
|
+
children: [/* @__PURE__ */ _(S, {
|
|
752
919
|
htmlFor: "meal-carbs",
|
|
753
920
|
children: "Carbs (g)"
|
|
754
|
-
}), /* @__PURE__ */
|
|
921
|
+
}), /* @__PURE__ */ _(x, {
|
|
755
922
|
id: "meal-carbs",
|
|
756
923
|
type: "number",
|
|
757
924
|
min: 0,
|
|
@@ -763,12 +930,12 @@ function O() {
|
|
|
763
930
|
placeholder: "0"
|
|
764
931
|
})]
|
|
765
932
|
}),
|
|
766
|
-
/* @__PURE__ */
|
|
933
|
+
/* @__PURE__ */ v("div", {
|
|
767
934
|
className: "space-y-1.5",
|
|
768
|
-
children: [/* @__PURE__ */
|
|
935
|
+
children: [/* @__PURE__ */ _(S, {
|
|
769
936
|
htmlFor: "meal-fat",
|
|
770
937
|
children: "Fat (g)"
|
|
771
|
-
}), /* @__PURE__ */
|
|
938
|
+
}), /* @__PURE__ */ _(x, {
|
|
772
939
|
id: "meal-fat",
|
|
773
940
|
type: "number",
|
|
774
941
|
min: 0,
|
|
@@ -782,19 +949,19 @@ function O() {
|
|
|
782
949
|
})
|
|
783
950
|
]
|
|
784
951
|
}),
|
|
785
|
-
/* @__PURE__ */
|
|
952
|
+
/* @__PURE__ */ v("div", {
|
|
786
953
|
className: "flex items-center justify-between gap-4 rounded-xl bg-bg-sunken/60 p-3",
|
|
787
|
-
children: [/* @__PURE__ */
|
|
954
|
+
children: [/* @__PURE__ */ v("div", {
|
|
788
955
|
className: "min-w-0",
|
|
789
|
-
children: [/* @__PURE__ */
|
|
956
|
+
children: [/* @__PURE__ */ _(S, {
|
|
790
957
|
htmlFor: "meal-favorite",
|
|
791
958
|
className: "cursor-pointer",
|
|
792
959
|
children: "Favorite"
|
|
793
|
-
}), /* @__PURE__ */
|
|
960
|
+
}), /* @__PURE__ */ _("p", {
|
|
794
961
|
className: "text-xs text-text-tertiary",
|
|
795
962
|
children: "Save for quick re-log"
|
|
796
963
|
})]
|
|
797
|
-
}), /* @__PURE__ */
|
|
964
|
+
}), /* @__PURE__ */ _(He, {
|
|
798
965
|
id: "meal-favorite",
|
|
799
966
|
checked: B.isFavorite,
|
|
800
967
|
onCheckedChange: (e) => V({
|
|
@@ -805,39 +972,39 @@ function O() {
|
|
|
805
972
|
})
|
|
806
973
|
]
|
|
807
974
|
}),
|
|
808
|
-
/* @__PURE__ */
|
|
975
|
+
/* @__PURE__ */ v(Pe, { children: [/* @__PURE__ */ _(y, {
|
|
809
976
|
variant: "outline",
|
|
810
977
|
onClick: () => z(!1),
|
|
811
978
|
disabled: F.isPending,
|
|
812
979
|
children: "Cancel"
|
|
813
|
-
}), /* @__PURE__ */
|
|
814
|
-
onClick:
|
|
980
|
+
}), /* @__PURE__ */ _(y, {
|
|
981
|
+
onClick: gt,
|
|
815
982
|
disabled: F.isPending,
|
|
816
983
|
children: F.isPending ? "Logging…" : "Log meal"
|
|
817
984
|
})] })
|
|
818
985
|
]
|
|
819
986
|
})
|
|
820
987
|
}),
|
|
821
|
-
/* @__PURE__ */
|
|
822
|
-
open:
|
|
988
|
+
/* @__PURE__ */ _(je, {
|
|
989
|
+
open: ct,
|
|
823
990
|
onOpenChange: U,
|
|
824
|
-
children: /* @__PURE__ */
|
|
991
|
+
children: /* @__PURE__ */ v(Me, {
|
|
825
992
|
className: "sm:max-w-lg",
|
|
826
993
|
children: [
|
|
827
|
-
/* @__PURE__ */
|
|
828
|
-
/* @__PURE__ */
|
|
994
|
+
/* @__PURE__ */ v(Fe, { children: [/* @__PURE__ */ _(Ie, { children: W === "edit" ? "Edit nutrition targets" : "Create nutrition plan" }), /* @__PURE__ */ _(Ne, { children: W === "edit" ? "Update your calorie and macro targets for this plan." : "Set your daily calorie and macro targets." })] }),
|
|
995
|
+
/* @__PURE__ */ v("div", {
|
|
829
996
|
className: "space-y-4 py-2",
|
|
830
997
|
children: [
|
|
831
|
-
|
|
998
|
+
ut && /* @__PURE__ */ _("div", {
|
|
832
999
|
className: "rounded-lg border border-status-error-text/40 bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
833
|
-
children:
|
|
1000
|
+
children: ut
|
|
834
1001
|
}),
|
|
835
|
-
/* @__PURE__ */
|
|
1002
|
+
/* @__PURE__ */ v("div", {
|
|
836
1003
|
className: "space-y-1.5",
|
|
837
|
-
children: [/* @__PURE__ */
|
|
1004
|
+
children: [/* @__PURE__ */ _(S, {
|
|
838
1005
|
htmlFor: "plan-name",
|
|
839
1006
|
children: "Name"
|
|
840
|
-
}), /* @__PURE__ */
|
|
1007
|
+
}), /* @__PURE__ */ _(x, {
|
|
841
1008
|
id: "plan-name",
|
|
842
1009
|
value: G.name,
|
|
843
1010
|
onChange: (e) => K({
|
|
@@ -847,35 +1014,35 @@ function O() {
|
|
|
847
1014
|
placeholder: "Lean bulk — Q3"
|
|
848
1015
|
})]
|
|
849
1016
|
}),
|
|
850
|
-
/* @__PURE__ */
|
|
1017
|
+
/* @__PURE__ */ v("div", {
|
|
851
1018
|
className: "space-y-1.5",
|
|
852
|
-
children: [/* @__PURE__ */
|
|
1019
|
+
children: [/* @__PURE__ */ _(S, {
|
|
853
1020
|
htmlFor: "plan-goal",
|
|
854
1021
|
children: "Goal type"
|
|
855
|
-
}), /* @__PURE__ */
|
|
1022
|
+
}), /* @__PURE__ */ v(Le, {
|
|
856
1023
|
value: G.goalType,
|
|
857
1024
|
onValueChange: (e) => K({
|
|
858
1025
|
...G,
|
|
859
1026
|
goalType: e
|
|
860
1027
|
}),
|
|
861
|
-
children: [/* @__PURE__ */
|
|
1028
|
+
children: [/* @__PURE__ */ _(Be, {
|
|
862
1029
|
id: "plan-goal",
|
|
863
|
-
children: /* @__PURE__ */
|
|
864
|
-
}), /* @__PURE__ */
|
|
1030
|
+
children: /* @__PURE__ */ _(Ve, {})
|
|
1031
|
+
}), /* @__PURE__ */ _(Re, { children: Ge.map((e) => /* @__PURE__ */ _(ze, {
|
|
865
1032
|
value: e,
|
|
866
|
-
children:
|
|
1033
|
+
children: i(e)
|
|
867
1034
|
}, e)) })]
|
|
868
1035
|
})]
|
|
869
1036
|
}),
|
|
870
|
-
/* @__PURE__ */
|
|
1037
|
+
/* @__PURE__ */ v("div", {
|
|
871
1038
|
className: "grid grid-cols-2 gap-3",
|
|
872
1039
|
children: [
|
|
873
|
-
/* @__PURE__ */
|
|
1040
|
+
/* @__PURE__ */ v("div", {
|
|
874
1041
|
className: "space-y-1.5",
|
|
875
|
-
children: [/* @__PURE__ */
|
|
1042
|
+
children: [/* @__PURE__ */ _(S, {
|
|
876
1043
|
htmlFor: "plan-calories",
|
|
877
1044
|
children: "Calorie target (kcal)"
|
|
878
|
-
}), /* @__PURE__ */
|
|
1045
|
+
}), /* @__PURE__ */ _(x, {
|
|
879
1046
|
id: "plan-calories",
|
|
880
1047
|
type: "number",
|
|
881
1048
|
min: 0,
|
|
@@ -887,12 +1054,12 @@ function O() {
|
|
|
887
1054
|
placeholder: "2400"
|
|
888
1055
|
})]
|
|
889
1056
|
}),
|
|
890
|
-
/* @__PURE__ */
|
|
1057
|
+
/* @__PURE__ */ v("div", {
|
|
891
1058
|
className: "space-y-1.5",
|
|
892
|
-
children: [/* @__PURE__ */
|
|
1059
|
+
children: [/* @__PURE__ */ _(S, {
|
|
893
1060
|
htmlFor: "plan-protein",
|
|
894
1061
|
children: "Protein target (g)"
|
|
895
|
-
}), /* @__PURE__ */
|
|
1062
|
+
}), /* @__PURE__ */ _(x, {
|
|
896
1063
|
id: "plan-protein",
|
|
897
1064
|
type: "number",
|
|
898
1065
|
min: 0,
|
|
@@ -904,12 +1071,12 @@ function O() {
|
|
|
904
1071
|
placeholder: "180"
|
|
905
1072
|
})]
|
|
906
1073
|
}),
|
|
907
|
-
/* @__PURE__ */
|
|
1074
|
+
/* @__PURE__ */ v("div", {
|
|
908
1075
|
className: "space-y-1.5",
|
|
909
|
-
children: [/* @__PURE__ */
|
|
1076
|
+
children: [/* @__PURE__ */ _(S, {
|
|
910
1077
|
htmlFor: "plan-carbs",
|
|
911
1078
|
children: "Carbs target (g)"
|
|
912
|
-
}), /* @__PURE__ */
|
|
1079
|
+
}), /* @__PURE__ */ _(x, {
|
|
913
1080
|
id: "plan-carbs",
|
|
914
1081
|
type: "number",
|
|
915
1082
|
min: 0,
|
|
@@ -921,12 +1088,12 @@ function O() {
|
|
|
921
1088
|
placeholder: "250"
|
|
922
1089
|
})]
|
|
923
1090
|
}),
|
|
924
|
-
/* @__PURE__ */
|
|
1091
|
+
/* @__PURE__ */ v("div", {
|
|
925
1092
|
className: "space-y-1.5",
|
|
926
|
-
children: [/* @__PURE__ */
|
|
1093
|
+
children: [/* @__PURE__ */ _(S, {
|
|
927
1094
|
htmlFor: "plan-fat",
|
|
928
1095
|
children: "Fat target (g)"
|
|
929
|
-
}), /* @__PURE__ */
|
|
1096
|
+
}), /* @__PURE__ */ _(x, {
|
|
930
1097
|
id: "plan-fat",
|
|
931
1098
|
type: "number",
|
|
932
1099
|
min: 0,
|
|
@@ -940,14 +1107,14 @@ function O() {
|
|
|
940
1107
|
})
|
|
941
1108
|
]
|
|
942
1109
|
}),
|
|
943
|
-
/* @__PURE__ */
|
|
1110
|
+
/* @__PURE__ */ v("div", {
|
|
944
1111
|
className: "grid grid-cols-2 gap-3",
|
|
945
|
-
children: [/* @__PURE__ */
|
|
1112
|
+
children: [/* @__PURE__ */ v("div", {
|
|
946
1113
|
className: "space-y-1.5",
|
|
947
|
-
children: [/* @__PURE__ */
|
|
1114
|
+
children: [/* @__PURE__ */ _(S, {
|
|
948
1115
|
htmlFor: "plan-start",
|
|
949
1116
|
children: "Start date"
|
|
950
|
-
}), /* @__PURE__ */
|
|
1117
|
+
}), /* @__PURE__ */ _(x, {
|
|
951
1118
|
id: "plan-start",
|
|
952
1119
|
type: "date",
|
|
953
1120
|
value: G.startDate,
|
|
@@ -956,12 +1123,12 @@ function O() {
|
|
|
956
1123
|
startDate: e.target.value
|
|
957
1124
|
})
|
|
958
1125
|
})]
|
|
959
|
-
}), /* @__PURE__ */
|
|
1126
|
+
}), /* @__PURE__ */ v("div", {
|
|
960
1127
|
className: "space-y-1.5",
|
|
961
|
-
children: [/* @__PURE__ */
|
|
1128
|
+
children: [/* @__PURE__ */ _(S, {
|
|
962
1129
|
htmlFor: "plan-end",
|
|
963
1130
|
children: "End date"
|
|
964
|
-
}), /* @__PURE__ */
|
|
1131
|
+
}), /* @__PURE__ */ _(x, {
|
|
965
1132
|
id: "plan-end",
|
|
966
1133
|
type: "date",
|
|
967
1134
|
value: G.endDate,
|
|
@@ -972,12 +1139,12 @@ function O() {
|
|
|
972
1139
|
})]
|
|
973
1140
|
})]
|
|
974
1141
|
}),
|
|
975
|
-
/* @__PURE__ */
|
|
1142
|
+
/* @__PURE__ */ v("div", {
|
|
976
1143
|
className: "space-y-1.5",
|
|
977
|
-
children: [/* @__PURE__ */
|
|
1144
|
+
children: [/* @__PURE__ */ _(S, {
|
|
978
1145
|
htmlFor: "plan-notes",
|
|
979
1146
|
children: "Notes"
|
|
980
|
-
}), /* @__PURE__ */
|
|
1147
|
+
}), /* @__PURE__ */ _(Ue, {
|
|
981
1148
|
id: "plan-notes",
|
|
982
1149
|
value: G.notes,
|
|
983
1150
|
onChange: (e) => K({
|
|
@@ -990,15 +1157,15 @@ function O() {
|
|
|
990
1157
|
})
|
|
991
1158
|
]
|
|
992
1159
|
}),
|
|
993
|
-
/* @__PURE__ */
|
|
1160
|
+
/* @__PURE__ */ v(Pe, { children: [/* @__PURE__ */ _(y, {
|
|
994
1161
|
variant: "outline",
|
|
995
1162
|
onClick: () => U(!1),
|
|
996
|
-
disabled:
|
|
1163
|
+
disabled: Z,
|
|
997
1164
|
children: "Cancel"
|
|
998
|
-
}), /* @__PURE__ */
|
|
999
|
-
onClick:
|
|
1000
|
-
disabled:
|
|
1001
|
-
children:
|
|
1165
|
+
}), /* @__PURE__ */ _(y, {
|
|
1166
|
+
onClick: _t,
|
|
1167
|
+
disabled: Z,
|
|
1168
|
+
children: Z ? "Saving…" : W === "edit" ? "Save targets" : "Create plan"
|
|
1002
1169
|
})] })
|
|
1003
1170
|
]
|
|
1004
1171
|
})
|
|
@@ -1007,6 +1174,6 @@ function O() {
|
|
|
1007
1174
|
});
|
|
1008
1175
|
}
|
|
1009
1176
|
//#endregion
|
|
1010
|
-
export {
|
|
1177
|
+
export { D as NutritionPage };
|
|
1011
1178
|
|
|
1012
1179
|
//# sourceMappingURL=NutritionPage.js.map
|