@burdenoff/microfe-mybodyshield 2026.705.1 → 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/components/DataTable.js +8 -4
- package/dist/mybodyshield/components/DataTable.js.map +1 -1
- package/dist/mybodyshield/components/EvidenceUpload.js +92 -4
- package/dist/mybodyshield/components/EvidenceUpload.js.map +1 -0
- package/dist/mybodyshield/components/FileLink.js +35 -2
- package/dist/mybodyshield/components/FileLink.js.map +1 -0
- package/dist/mybodyshield/components/MybDiscussion.js +107 -6
- package/dist/mybodyshield/components/MybDiscussion.js.map +1 -0
- package/dist/mybodyshield/components/MybTags.js +148 -4
- package/dist/mybodyshield/components/MybTags.js.map +1 -0
- package/dist/mybodyshield/components/Pagination.js.map +1 -1
- package/dist/mybodyshield/components/UserSearchSelect.js +148 -0
- package/dist/mybodyshield/components/UserSearchSelect.js.map +1 -0
- package/dist/mybodyshield/components/index.js +1 -0
- package/dist/mybodyshield/hooks/index.js +1 -0
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js +47 -27
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js.map +1 -1
- package/dist/mybodyshield/hooks/useMybComments.js +44 -2
- package/dist/mybodyshield/hooks/useMybComments.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybFiles.js +80 -3
- package/dist/mybodyshield/hooks/useMybFiles.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybTags.js +88 -2
- package/dist/mybodyshield/hooks/useMybTags.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybUsers.js +36 -0
- package/dist/mybodyshield/hooks/useMybUsers.js.map +1 -0
- package/dist/mybodyshield/pages/DashboardPage.js +444 -340
- package/dist/mybodyshield/pages/DashboardPage.js.map +1 -1
- package/dist/mybodyshield/pages/_shared/visuals.js +29 -23
- package/dist/mybodyshield/pages/_shared/visuals.js.map +1 -1
- package/dist/mybodyshield/pages/coaching/CoachingPage.js +272 -179
- package/dist/mybodyshield/pages/coaching/CoachingPage.js.map +1 -1
- package/dist/mybodyshield/pages/goals/GoalsPage.js +304 -257
- package/dist/mybodyshield/pages/goals/GoalsPage.js.map +1 -1
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js +745 -504
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js +688 -320
- 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 +447 -299
- 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 +380 -267
- package/dist/mybodyshield/pages/train/SessionDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionsPage.js +111 -78
- 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 +2 -2
- package/dist/node_modules/recharts/es6/cartesian/Line.js +0 -473
- package/dist/node_modules/recharts/es6/cartesian/Line.js.map +0 -1
|
@@ -1,28 +1,53 @@
|
|
|
1
1
|
import { useMyBodyShield as e } from "../../context/MyBodyShieldContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
2
|
+
import { motion as t } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
3
|
+
import { useReducedMotion as n } from "../../../node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js";
|
|
4
|
+
import { PageLayout as r } from "../../components/PageLayout.js";
|
|
5
|
+
import { MetricsCard as i } from "../../components/MetricsCard.js";
|
|
6
|
+
import { formatDateTime as a, formatDuration as o, formatKcal as s, formatNumber as c, formatRelativeTime as l, formatWeight as ee } from "../../utils/formatters.js";
|
|
7
|
+
import { StatusBadge as u } from "../../components/StatusBadge.js";
|
|
8
|
+
import { ErrorView as te, LoadingView as ne } from "../../components/StateViews.js";
|
|
9
|
+
import { EmptyState as re } from "../../components/EmptyState.js";
|
|
10
|
+
import { IconChip as ie } from "../_shared/visuals.js";
|
|
9
11
|
import "../../context/index.js";
|
|
10
|
-
import { useMybCompleteSession as
|
|
12
|
+
import { useMybCompleteSession as ae, useMybLogSet as oe, useMybSession as se } from "../../hooks/useMyBodyShieldApi.js";
|
|
11
13
|
import "../../hooks/index.js";
|
|
14
|
+
import { MybDiscussion as ce } from "../../components/MybDiscussion.js";
|
|
12
15
|
import "../../components/index.js";
|
|
13
|
-
import { useMemo as
|
|
14
|
-
import { ArrowLeft as
|
|
15
|
-
import { useParams as
|
|
16
|
-
import { Fragment as
|
|
17
|
-
import { Button as v, GlassCard as
|
|
16
|
+
import { useMemo as d, useState as f } from "react";
|
|
17
|
+
import { AlertTriangle as le, ArrowLeft as ue, CheckCircle2 as de, Dumbbell as p, Flame as fe, Gauge as pe, Plus as m, Ruler as me, Timer as h, Weight as he } from "lucide-react";
|
|
18
|
+
import { useParams as ge } from "react-router-dom";
|
|
19
|
+
import { Fragment as _e, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
20
|
+
import { Button as v, GlassCard as ve, Input as y, Label as b, ResponsiveDialog as ye, ResponsiveDialogContent as x, ResponsiveDialogDescription as S, ResponsiveDialogFooter as C, ResponsiveDialogHeader as w, ResponsiveDialogTitle as T, Switch as be, Textarea as xe } from "@burdenoff/fe-libs/ui";
|
|
18
21
|
//#region src/mybodyshield/pages/train/SessionDetailPage.tsx
|
|
19
|
-
|
|
22
|
+
var E = [
|
|
23
|
+
.16,
|
|
24
|
+
1,
|
|
25
|
+
.3,
|
|
26
|
+
1
|
|
27
|
+
], D = {
|
|
28
|
+
hidden: {},
|
|
29
|
+
show: { transition: { staggerChildren: .06 } }
|
|
30
|
+
}, O = {
|
|
31
|
+
hidden: {
|
|
32
|
+
opacity: 0,
|
|
33
|
+
y: 12
|
|
34
|
+
},
|
|
35
|
+
show: {
|
|
36
|
+
opacity: 1,
|
|
37
|
+
y: 0,
|
|
38
|
+
transition: {
|
|
39
|
+
duration: .35,
|
|
40
|
+
ease: E
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
function k(e) {
|
|
20
45
|
let t = e.trim();
|
|
21
46
|
if (!t) return;
|
|
22
47
|
let n = Number(t);
|
|
23
48
|
return Number.isFinite(n) ? n : void 0;
|
|
24
49
|
}
|
|
25
|
-
var
|
|
50
|
+
var A = {
|
|
26
51
|
exerciseName: "",
|
|
27
52
|
setNumber: "",
|
|
28
53
|
reps: "",
|
|
@@ -30,15 +55,15 @@ var O = {
|
|
|
30
55
|
distanceM: "",
|
|
31
56
|
durationSec: "",
|
|
32
57
|
isPersonalRecord: !1
|
|
33
|
-
},
|
|
58
|
+
}, j = {
|
|
34
59
|
caloriesBurned: "",
|
|
35
60
|
perceivedExertion: "",
|
|
36
61
|
notes: ""
|
|
37
62
|
};
|
|
38
|
-
function
|
|
39
|
-
let { navigateTo:
|
|
63
|
+
function M() {
|
|
64
|
+
let { navigateTo: M } = e(), N = n(), { id: P } = ge(), F = se(P), I = oe(), L = ae(), [Se, R] = f(!1), [z, B] = f(A), [V, H] = f(null), [Ce, U] = f(!1), [W, G] = f(j), [we, K] = f(null), q = F.data, J = d(() => q?.sets ?? [], [q?.sets]), Y = d(() => {
|
|
40
65
|
let e = /* @__PURE__ */ new Map();
|
|
41
|
-
for (let t of
|
|
66
|
+
for (let t of J) {
|
|
42
67
|
let n = e.get(t.exerciseName) ?? [];
|
|
43
68
|
n.push(t), e.set(t.exerciseName, n);
|
|
44
69
|
}
|
|
@@ -46,147 +71,189 @@ function A() {
|
|
|
46
71
|
name: e,
|
|
47
72
|
sets: t.slice().sort((e, t) => e.setNumber - t.setNumber)
|
|
48
73
|
}));
|
|
49
|
-
}, [
|
|
50
|
-
if (!
|
|
51
|
-
let e = new Date(
|
|
74
|
+
}, [J]), Te = d(() => J.reduce((e, t) => e + t.reps * t.weight, 0), [J]), X = q?.startedAt, Z = q?.completedAt, Ee = d(() => {
|
|
75
|
+
if (!X || !Z) return;
|
|
76
|
+
let e = new Date(X).getTime(), t = new Date(Z).getTime();
|
|
52
77
|
if (!(!Number.isFinite(e) || !Number.isFinite(t) || t < e)) return (t - e) / 1e3;
|
|
53
|
-
}, [
|
|
54
|
-
if (!
|
|
78
|
+
}, [X, Z]);
|
|
79
|
+
if (!P) return /* @__PURE__ */ g(r, {
|
|
55
80
|
title: "Workout session",
|
|
56
|
-
children: /* @__PURE__ */ g(
|
|
81
|
+
children: /* @__PURE__ */ g(te, {
|
|
57
82
|
message: "No session was specified.",
|
|
58
|
-
onRetry: () =>
|
|
83
|
+
onRetry: () => M("train")
|
|
59
84
|
})
|
|
60
85
|
});
|
|
61
|
-
if (
|
|
86
|
+
if (F.isLoading) return /* @__PURE__ */ g(r, {
|
|
62
87
|
title: "Workout session",
|
|
63
|
-
children: /* @__PURE__ */ g(
|
|
88
|
+
children: /* @__PURE__ */ g(ne, { label: "Loading session…" })
|
|
64
89
|
});
|
|
65
|
-
if (
|
|
90
|
+
if (F.isError || !q) return /* @__PURE__ */ g(r, {
|
|
66
91
|
title: "Workout session",
|
|
67
|
-
children: /* @__PURE__ */ g(
|
|
92
|
+
children: /* @__PURE__ */ g(te, {
|
|
68
93
|
title: "Session not found",
|
|
69
94
|
message: "This workout session may have been removed, or you don't have access to it.",
|
|
70
|
-
onRetry: () =>
|
|
95
|
+
onRetry: () => F.refetch()
|
|
71
96
|
})
|
|
72
97
|
});
|
|
73
|
-
let
|
|
74
|
-
|
|
98
|
+
let Q = q.status === "IN_PROGRESS", De = q.completedAt ? `Completed ${l(q.completedAt)}` : q.startedAt ? `Started ${l(q.startedAt)}` : q.scheduledFor ? `Scheduled ${l(q.scheduledFor)}` : `Created ${l(q.createdAt)}`, $ = () => {
|
|
99
|
+
B(A), H(null), R(!0);
|
|
75
100
|
};
|
|
76
|
-
return /* @__PURE__ */ _(
|
|
101
|
+
return /* @__PURE__ */ _(r, {
|
|
77
102
|
title: "Workout session",
|
|
78
|
-
description:
|
|
79
|
-
actions:
|
|
103
|
+
description: De,
|
|
104
|
+
actions: Q ? /* @__PURE__ */ _(_e, { children: [/* @__PURE__ */ _(v, {
|
|
80
105
|
variant: "outline",
|
|
81
106
|
onClick: $,
|
|
82
107
|
children: [/* @__PURE__ */ g(m, { className: "h-4 w-4" }), " Log set"]
|
|
83
108
|
}), /* @__PURE__ */ _(v, {
|
|
84
109
|
onClick: () => {
|
|
85
|
-
|
|
110
|
+
G(j), K(null), U(!0);
|
|
86
111
|
},
|
|
87
|
-
children: [/* @__PURE__ */ g(
|
|
112
|
+
children: [/* @__PURE__ */ g(de, { className: "h-4 w-4" }), " Complete"]
|
|
88
113
|
})] }) : void 0,
|
|
89
114
|
children: [
|
|
90
115
|
/* @__PURE__ */ _("button", {
|
|
91
116
|
type: "button",
|
|
92
|
-
onClick: () =>
|
|
117
|
+
onClick: () => M("train"),
|
|
93
118
|
className: "mb-4 inline-flex items-center gap-1.5 text-sm font-medium text-text-secondary hover:text-text-primary",
|
|
94
|
-
children: [/* @__PURE__ */ g(
|
|
119
|
+
children: [/* @__PURE__ */ g(ue, { className: "h-4 w-4" }), " Back to sessions"]
|
|
95
120
|
}),
|
|
96
|
-
/* @__PURE__ */
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
children: "
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
121
|
+
/* @__PURE__ */ g(t.div, {
|
|
122
|
+
initial: N ? !1 : {
|
|
123
|
+
opacity: 0,
|
|
124
|
+
y: 10
|
|
125
|
+
},
|
|
126
|
+
animate: {
|
|
127
|
+
opacity: 1,
|
|
128
|
+
y: 0
|
|
129
|
+
},
|
|
130
|
+
transition: N ? { duration: 0 } : {
|
|
131
|
+
duration: .35,
|
|
132
|
+
ease: E
|
|
133
|
+
},
|
|
134
|
+
children: /* @__PURE__ */ _(ve, {
|
|
135
|
+
treatment: "glass",
|
|
136
|
+
glow: Q,
|
|
137
|
+
className: "p-6",
|
|
138
|
+
children: [
|
|
139
|
+
/* @__PURE__ */ g("div", {
|
|
140
|
+
className: "flex flex-wrap items-start justify-between gap-3",
|
|
141
|
+
children: /* @__PURE__ */ _("div", {
|
|
142
|
+
className: "flex items-center gap-3",
|
|
143
|
+
children: [/* @__PURE__ */ g(ie, {
|
|
144
|
+
icon: g(Q ? fe : p, { className: "h-5 w-5" }),
|
|
145
|
+
tint: Q ? "var(--color-accent-teal)" : "var(--color-accent-primary)"
|
|
146
|
+
}), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("div", {
|
|
147
|
+
className: "flex items-center gap-2",
|
|
148
|
+
children: /* @__PURE__ */ g(u, { status: q.status })
|
|
149
|
+
}), /* @__PURE__ */ g("p", {
|
|
150
|
+
className: "mt-1 text-sm text-text-secondary",
|
|
151
|
+
children: De
|
|
152
|
+
})] })]
|
|
153
|
+
})
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ _("div", {
|
|
156
|
+
className: "mt-5 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
157
|
+
children: [
|
|
158
|
+
q.scheduledFor && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
159
|
+
className: "text-xs text-text-tertiary",
|
|
160
|
+
children: "Scheduled for"
|
|
161
|
+
}), /* @__PURE__ */ g("p", {
|
|
162
|
+
className: "mt-0.5 text-sm font-medium text-text-primary",
|
|
163
|
+
children: a(q.scheduledFor)
|
|
164
|
+
})] }),
|
|
165
|
+
q.startedAt && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
166
|
+
className: "text-xs text-text-tertiary",
|
|
167
|
+
children: "Started"
|
|
168
|
+
}), /* @__PURE__ */ g("p", {
|
|
169
|
+
className: "mt-0.5 text-sm font-medium text-text-primary",
|
|
170
|
+
children: a(q.startedAt)
|
|
171
|
+
})] }),
|
|
172
|
+
q.completedAt && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
173
|
+
className: "text-xs text-text-tertiary",
|
|
174
|
+
children: "Completed"
|
|
175
|
+
}), /* @__PURE__ */ g("p", {
|
|
176
|
+
className: "mt-0.5 text-sm font-medium text-text-primary",
|
|
177
|
+
children: a(q.completedAt)
|
|
178
|
+
})] }),
|
|
179
|
+
q.perceivedExertion != null && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
180
|
+
className: "text-xs text-text-tertiary",
|
|
181
|
+
children: "Perceived exertion"
|
|
182
|
+
}), /* @__PURE__ */ _("p", {
|
|
183
|
+
className: "mt-0.5 text-sm font-medium tabular-nums text-text-primary",
|
|
184
|
+
children: [q.perceivedExertion, "/10 RPE"]
|
|
185
|
+
})] }),
|
|
186
|
+
q.caloriesBurned > 0 && /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
187
|
+
className: "text-xs text-text-tertiary",
|
|
188
|
+
children: "Calories burned"
|
|
189
|
+
}), /* @__PURE__ */ g("p", {
|
|
190
|
+
className: "mt-0.5 text-sm font-medium tabular-nums text-text-primary",
|
|
191
|
+
children: s(q.caloriesBurned)
|
|
192
|
+
})] })
|
|
193
|
+
]
|
|
194
|
+
}),
|
|
195
|
+
q.notes && /* @__PURE__ */ _("div", {
|
|
196
|
+
className: "mt-5 rounded-xl bg-bg-sunken/60 p-4",
|
|
197
|
+
children: [/* @__PURE__ */ g("p", {
|
|
148
198
|
className: "text-xs text-text-tertiary",
|
|
149
|
-
children: "
|
|
199
|
+
children: "Notes"
|
|
150
200
|
}), /* @__PURE__ */ g("p", {
|
|
151
|
-
className: "mt-
|
|
152
|
-
children:
|
|
153
|
-
})]
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
className: "mt-5 rounded-xl bg-bg-sunken/60 p-4",
|
|
158
|
-
children: [/* @__PURE__ */ g("p", {
|
|
159
|
-
className: "text-xs text-text-tertiary",
|
|
160
|
-
children: "Notes"
|
|
161
|
-
}), /* @__PURE__ */ g("p", {
|
|
162
|
-
className: "mt-1 whitespace-pre-wrap text-sm text-text-secondary",
|
|
163
|
-
children: G.notes
|
|
164
|
-
})]
|
|
165
|
-
})
|
|
166
|
-
]
|
|
201
|
+
className: "mt-1 whitespace-pre-wrap text-sm text-text-secondary",
|
|
202
|
+
children: q.notes
|
|
203
|
+
})]
|
|
204
|
+
})
|
|
205
|
+
]
|
|
206
|
+
})
|
|
167
207
|
}),
|
|
168
|
-
/* @__PURE__ */ _(
|
|
208
|
+
/* @__PURE__ */ _(t.div, {
|
|
169
209
|
className: "mt-6 grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-4",
|
|
210
|
+
variants: N ? void 0 : D,
|
|
211
|
+
initial: N ? !1 : "hidden",
|
|
212
|
+
animate: "show",
|
|
170
213
|
children: [
|
|
171
|
-
/* @__PURE__ */ g(
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
214
|
+
/* @__PURE__ */ g(t.div, {
|
|
215
|
+
variants: N ? void 0 : O,
|
|
216
|
+
children: /* @__PURE__ */ g(i, {
|
|
217
|
+
icon: /* @__PURE__ */ g("span", {
|
|
218
|
+
className: "text-action-primary-bg",
|
|
219
|
+
children: /* @__PURE__ */ g(p, { className: "h-5 w-5" })
|
|
220
|
+
}),
|
|
221
|
+
value: c(J.length),
|
|
222
|
+
label: "Total sets"
|
|
223
|
+
})
|
|
175
224
|
}),
|
|
176
|
-
/* @__PURE__ */ g(
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
225
|
+
/* @__PURE__ */ g(t.div, {
|
|
226
|
+
variants: N ? void 0 : O,
|
|
227
|
+
children: /* @__PURE__ */ g(i, {
|
|
228
|
+
icon: /* @__PURE__ */ g("span", {
|
|
229
|
+
className: "text-action-primary-bg",
|
|
230
|
+
children: /* @__PURE__ */ g(he, { className: "h-5 w-5" })
|
|
231
|
+
}),
|
|
232
|
+
value: `${c(Te)} kg`,
|
|
233
|
+
label: "Total volume"
|
|
234
|
+
})
|
|
180
235
|
}),
|
|
181
|
-
/* @__PURE__ */ g(
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
236
|
+
/* @__PURE__ */ g(t.div, {
|
|
237
|
+
variants: N ? void 0 : O,
|
|
238
|
+
children: /* @__PURE__ */ g(i, {
|
|
239
|
+
icon: /* @__PURE__ */ g("span", {
|
|
240
|
+
className: "text-action-primary-bg",
|
|
241
|
+
children: /* @__PURE__ */ g(h, { className: "h-5 w-5" })
|
|
242
|
+
}),
|
|
243
|
+
value: Ee == null ? "—" : o(Ee),
|
|
244
|
+
label: "Duration"
|
|
245
|
+
})
|
|
185
246
|
}),
|
|
186
|
-
/* @__PURE__ */ g(
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
247
|
+
/* @__PURE__ */ g(t.div, {
|
|
248
|
+
variants: N ? void 0 : O,
|
|
249
|
+
children: /* @__PURE__ */ g(i, {
|
|
250
|
+
icon: /* @__PURE__ */ g("span", {
|
|
251
|
+
className: "text-action-primary-bg",
|
|
252
|
+
children: /* @__PURE__ */ g(fe, { className: "h-5 w-5" })
|
|
253
|
+
}),
|
|
254
|
+
value: q.caloriesBurned > 0 ? s(q.caloriesBurned) : "—",
|
|
255
|
+
label: "Calories burned"
|
|
256
|
+
})
|
|
190
257
|
})
|
|
191
258
|
]
|
|
192
259
|
}),
|
|
@@ -200,96 +267,132 @@ function A() {
|
|
|
200
267
|
}), /* @__PURE__ */ g("p", {
|
|
201
268
|
className: "mt-0.5 text-sm text-text-secondary",
|
|
202
269
|
children: "Every set recorded during this session, grouped by exercise."
|
|
203
|
-
})] }),
|
|
270
|
+
})] }), Q && /* @__PURE__ */ _(v, {
|
|
204
271
|
variant: "outline",
|
|
205
272
|
size: "sm",
|
|
206
273
|
onClick: $,
|
|
207
274
|
className: "shrink-0",
|
|
208
275
|
children: [/* @__PURE__ */ g(m, { className: "h-4 w-4" }), " Log set"]
|
|
209
276
|
})]
|
|
210
|
-
}),
|
|
277
|
+
}), Y.length === 0 ? /* @__PURE__ */ g(re, {
|
|
211
278
|
illustration: "empty-data",
|
|
212
|
-
icon: /* @__PURE__ */ g(
|
|
279
|
+
icon: /* @__PURE__ */ g(p, { className: "h-10 w-10" }),
|
|
213
280
|
title: "No sets logged yet",
|
|
214
|
-
description:
|
|
215
|
-
action:
|
|
281
|
+
description: Q ? "Log your first set to start tracking this workout." : "No sets were recorded for this session.",
|
|
282
|
+
action: Q ? /* @__PURE__ */ _(v, {
|
|
216
283
|
onClick: $,
|
|
217
284
|
children: [/* @__PURE__ */ g(m, { className: "h-4 w-4" }), " Log set"]
|
|
218
285
|
}) : void 0
|
|
219
|
-
}) : /* @__PURE__ */ g(
|
|
286
|
+
}) : /* @__PURE__ */ g(t.div, {
|
|
220
287
|
className: "space-y-4",
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
className: "
|
|
231
|
-
children: [
|
|
232
|
-
|
|
233
|
-
" ",
|
|
234
|
-
e.sets.length === 1 ? "set" : "sets"
|
|
235
|
-
]
|
|
236
|
-
})]
|
|
237
|
-
}), /* @__PURE__ */ g("ul", {
|
|
238
|
-
className: "divide-y divide-border-seam",
|
|
239
|
-
children: e.sets.map((e) => {
|
|
240
|
-
let t = e.durationSec > 0 || e.distanceM > 0;
|
|
241
|
-
return /* @__PURE__ */ _("li", {
|
|
242
|
-
className: "flex flex-wrap items-center justify-between gap-2 py-2",
|
|
288
|
+
variants: N ? void 0 : D,
|
|
289
|
+
initial: N ? !1 : "hidden",
|
|
290
|
+
animate: "show",
|
|
291
|
+
children: Y.map((e) => {
|
|
292
|
+
let n = e.sets.filter((e) => e.isPersonalRecord).length;
|
|
293
|
+
return /* @__PURE__ */ g(t.div, {
|
|
294
|
+
variants: N ? void 0 : O,
|
|
295
|
+
children: /* @__PURE__ */ _(ve, {
|
|
296
|
+
treatment: "plain",
|
|
297
|
+
className: "p-4 transition-shadow hover:shadow-float",
|
|
298
|
+
children: [/* @__PURE__ */ _("div", {
|
|
299
|
+
className: "mb-3 flex items-center justify-between gap-2",
|
|
243
300
|
children: [/* @__PURE__ */ _("div", {
|
|
244
|
-
className: "flex items-center gap-2",
|
|
245
|
-
children: [
|
|
246
|
-
className: "
|
|
247
|
-
|
|
248
|
-
"
|
|
249
|
-
e.
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
"
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
]
|
|
268
|
-
})]
|
|
301
|
+
className: "flex min-w-0 items-center gap-2.5",
|
|
302
|
+
children: [
|
|
303
|
+
/* @__PURE__ */ g(ie, { icon: /* @__PURE__ */ g(p, { className: "h-4 w-4" }) }),
|
|
304
|
+
/* @__PURE__ */ g("h3", {
|
|
305
|
+
className: "truncate text-sm font-semibold text-text-primary",
|
|
306
|
+
children: e.name
|
|
307
|
+
}),
|
|
308
|
+
n > 0 && /* @__PURE__ */ _("span", {
|
|
309
|
+
className: "inline-flex items-center rounded-full bg-status-success-bg-subtle px-2 py-0.5 text-[11px] font-semibold text-status-success-text shadow-[0_0_0_3px_color-mix(in_oklab,var(--color-status-success-text)_14%,transparent)]",
|
|
310
|
+
children: [
|
|
311
|
+
n,
|
|
312
|
+
" PR",
|
|
313
|
+
n === 1 ? "" : "s"
|
|
314
|
+
]
|
|
315
|
+
})
|
|
316
|
+
]
|
|
317
|
+
}), /* @__PURE__ */ _("span", {
|
|
318
|
+
className: "shrink-0 text-xs tabular-nums text-text-tertiary",
|
|
319
|
+
children: [
|
|
320
|
+
c(e.sets.length),
|
|
321
|
+
" ",
|
|
322
|
+
e.sets.length === 1 ? "set" : "sets"
|
|
323
|
+
]
|
|
269
324
|
})]
|
|
270
|
-
},
|
|
325
|
+
}), /* @__PURE__ */ g("ul", {
|
|
326
|
+
className: "divide-y divide-border-seam",
|
|
327
|
+
children: e.sets.map((e) => {
|
|
328
|
+
let t = e.durationSec > 0 || e.distanceM > 0;
|
|
329
|
+
return /* @__PURE__ */ _("li", {
|
|
330
|
+
className: "flex flex-wrap items-center justify-between gap-2 rounded-lg px-2 py-2 transition-colors" + (e.isPersonalRecord ? " bg-[color-mix(in_oklab,var(--color-status-success-text)_9%,transparent)]" : " hover:bg-bg-sunken/40"),
|
|
331
|
+
children: [/* @__PURE__ */ _("div", {
|
|
332
|
+
className: "flex items-center gap-2",
|
|
333
|
+
children: [/* @__PURE__ */ _("span", {
|
|
334
|
+
className: "text-sm font-medium text-text-primary tabular-nums",
|
|
335
|
+
children: [
|
|
336
|
+
"Set ",
|
|
337
|
+
e.setNumber,
|
|
338
|
+
": ",
|
|
339
|
+
c(e.reps),
|
|
340
|
+
" ×",
|
|
341
|
+
" ",
|
|
342
|
+
ee(e.weight)
|
|
343
|
+
]
|
|
344
|
+
}), e.isPersonalRecord && /* @__PURE__ */ g("span", {
|
|
345
|
+
className: "inline-flex rounded-full shadow-[0_0_0_3px_color-mix(in_oklab,var(--color-status-success-text)_16%,transparent)]",
|
|
346
|
+
children: /* @__PURE__ */ g(u, { status: "PR" })
|
|
347
|
+
})]
|
|
348
|
+
}), /* @__PURE__ */ _("div", {
|
|
349
|
+
className: "flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-text-secondary",
|
|
350
|
+
children: [t && e.durationSec > 0 && /* @__PURE__ */ _("span", {
|
|
351
|
+
className: "inline-flex items-center gap-1 tabular-nums",
|
|
352
|
+
children: [/* @__PURE__ */ g(h, { className: "h-3.5 w-3.5 text-accent" }), o(e.durationSec)]
|
|
353
|
+
}), t && e.distanceM > 0 && /* @__PURE__ */ _("span", {
|
|
354
|
+
className: "inline-flex items-center gap-1 tabular-nums",
|
|
355
|
+
children: [
|
|
356
|
+
/* @__PURE__ */ g(me, { className: "h-3.5 w-3.5 text-accent" }),
|
|
357
|
+
c(e.distanceM),
|
|
358
|
+
" m"
|
|
359
|
+
]
|
|
360
|
+
})]
|
|
361
|
+
})]
|
|
362
|
+
}, e.id);
|
|
363
|
+
})
|
|
364
|
+
})]
|
|
271
365
|
})
|
|
272
|
-
})
|
|
273
|
-
}
|
|
366
|
+
}, e.name);
|
|
367
|
+
})
|
|
274
368
|
})]
|
|
275
369
|
}),
|
|
276
|
-
/* @__PURE__ */ g(
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
370
|
+
/* @__PURE__ */ g("div", {
|
|
371
|
+
className: "mt-8",
|
|
372
|
+
children: /* @__PURE__ */ g(ce, {
|
|
373
|
+
entityType: "mybodyshield-session",
|
|
374
|
+
entityId: q.id,
|
|
375
|
+
title: "Coach feedback",
|
|
376
|
+
description: "Discuss form, cues and this session's results with your coach and team."
|
|
377
|
+
})
|
|
378
|
+
}),
|
|
379
|
+
/* @__PURE__ */ g(ye, {
|
|
380
|
+
open: Se,
|
|
381
|
+
onOpenChange: R,
|
|
382
|
+
children: /* @__PURE__ */ _(x, { children: [
|
|
383
|
+
/* @__PURE__ */ _(w, { children: [/* @__PURE__ */ g(T, { children: "Log a set" }), /* @__PURE__ */ g(S, { children: "Record reps and load for strength work, or duration and distance for cardio. The dialog stays open so you can log sets back-to-back." })] }),
|
|
281
384
|
/* @__PURE__ */ _("div", {
|
|
282
385
|
className: "space-y-4 px-1",
|
|
283
386
|
children: [
|
|
284
387
|
/* @__PURE__ */ _("div", {
|
|
285
388
|
className: "space-y-1.5",
|
|
286
|
-
children: [/* @__PURE__ */ g(
|
|
389
|
+
children: [/* @__PURE__ */ g(b, {
|
|
287
390
|
htmlFor: "myb-set-exercise",
|
|
288
391
|
children: "Exercise"
|
|
289
|
-
}), /* @__PURE__ */ g(
|
|
392
|
+
}), /* @__PURE__ */ g(y, {
|
|
290
393
|
id: "myb-set-exercise",
|
|
291
|
-
value:
|
|
292
|
-
onChange: (e) =>
|
|
394
|
+
value: z.exerciseName,
|
|
395
|
+
onChange: (e) => B((t) => ({
|
|
293
396
|
...t,
|
|
294
397
|
exerciseName: e.target.value
|
|
295
398
|
})),
|
|
@@ -301,16 +404,16 @@ function A() {
|
|
|
301
404
|
children: [
|
|
302
405
|
/* @__PURE__ */ _("div", {
|
|
303
406
|
className: "space-y-1.5",
|
|
304
|
-
children: [/* @__PURE__ */ g(
|
|
407
|
+
children: [/* @__PURE__ */ g(b, {
|
|
305
408
|
htmlFor: "myb-set-number",
|
|
306
409
|
children: "Set number"
|
|
307
|
-
}), /* @__PURE__ */ g(
|
|
410
|
+
}), /* @__PURE__ */ g(y, {
|
|
308
411
|
id: "myb-set-number",
|
|
309
412
|
type: "number",
|
|
310
413
|
inputMode: "numeric",
|
|
311
414
|
min: 1,
|
|
312
|
-
value:
|
|
313
|
-
onChange: (e) =>
|
|
415
|
+
value: z.setNumber,
|
|
416
|
+
onChange: (e) => B((t) => ({
|
|
314
417
|
...t,
|
|
315
418
|
setNumber: e.target.value
|
|
316
419
|
})),
|
|
@@ -319,16 +422,16 @@ function A() {
|
|
|
319
422
|
}),
|
|
320
423
|
/* @__PURE__ */ _("div", {
|
|
321
424
|
className: "space-y-1.5",
|
|
322
|
-
children: [/* @__PURE__ */ g(
|
|
425
|
+
children: [/* @__PURE__ */ g(b, {
|
|
323
426
|
htmlFor: "myb-set-reps",
|
|
324
427
|
children: "Reps"
|
|
325
|
-
}), /* @__PURE__ */ g(
|
|
428
|
+
}), /* @__PURE__ */ g(y, {
|
|
326
429
|
id: "myb-set-reps",
|
|
327
430
|
type: "number",
|
|
328
431
|
inputMode: "numeric",
|
|
329
432
|
min: 0,
|
|
330
|
-
value:
|
|
331
|
-
onChange: (e) =>
|
|
433
|
+
value: z.reps,
|
|
434
|
+
onChange: (e) => B((t) => ({
|
|
332
435
|
...t,
|
|
333
436
|
reps: e.target.value
|
|
334
437
|
})),
|
|
@@ -337,17 +440,17 @@ function A() {
|
|
|
337
440
|
}),
|
|
338
441
|
/* @__PURE__ */ _("div", {
|
|
339
442
|
className: "space-y-1.5",
|
|
340
|
-
children: [/* @__PURE__ */ g(
|
|
443
|
+
children: [/* @__PURE__ */ g(b, {
|
|
341
444
|
htmlFor: "myb-set-weight",
|
|
342
445
|
children: "Weight (kg)"
|
|
343
|
-
}), /* @__PURE__ */ g(
|
|
446
|
+
}), /* @__PURE__ */ g(y, {
|
|
344
447
|
id: "myb-set-weight",
|
|
345
448
|
type: "number",
|
|
346
449
|
inputMode: "decimal",
|
|
347
450
|
min: 0,
|
|
348
451
|
step: "0.5",
|
|
349
|
-
value:
|
|
350
|
-
onChange: (e) =>
|
|
452
|
+
value: z.weight,
|
|
453
|
+
onChange: (e) => B((t) => ({
|
|
351
454
|
...t,
|
|
352
455
|
weight: e.target.value
|
|
353
456
|
})),
|
|
@@ -356,16 +459,16 @@ function A() {
|
|
|
356
459
|
}),
|
|
357
460
|
/* @__PURE__ */ _("div", {
|
|
358
461
|
className: "space-y-1.5",
|
|
359
|
-
children: [/* @__PURE__ */ g(
|
|
462
|
+
children: [/* @__PURE__ */ g(b, {
|
|
360
463
|
htmlFor: "myb-set-distance",
|
|
361
464
|
children: "Distance (m)"
|
|
362
|
-
}), /* @__PURE__ */ g(
|
|
465
|
+
}), /* @__PURE__ */ g(y, {
|
|
363
466
|
id: "myb-set-distance",
|
|
364
467
|
type: "number",
|
|
365
468
|
inputMode: "numeric",
|
|
366
469
|
min: 0,
|
|
367
|
-
value:
|
|
368
|
-
onChange: (e) =>
|
|
470
|
+
value: z.distanceM,
|
|
471
|
+
onChange: (e) => B((t) => ({
|
|
369
472
|
...t,
|
|
370
473
|
distanceM: e.target.value
|
|
371
474
|
})),
|
|
@@ -374,16 +477,16 @@ function A() {
|
|
|
374
477
|
}),
|
|
375
478
|
/* @__PURE__ */ _("div", {
|
|
376
479
|
className: "space-y-1.5",
|
|
377
|
-
children: [/* @__PURE__ */ g(
|
|
480
|
+
children: [/* @__PURE__ */ g(b, {
|
|
378
481
|
htmlFor: "myb-set-duration",
|
|
379
482
|
children: "Duration (sec)"
|
|
380
|
-
}), /* @__PURE__ */ g(
|
|
483
|
+
}), /* @__PURE__ */ g(y, {
|
|
381
484
|
id: "myb-set-duration",
|
|
382
485
|
type: "number",
|
|
383
486
|
inputMode: "numeric",
|
|
384
487
|
min: 0,
|
|
385
|
-
value:
|
|
386
|
-
onChange: (e) =>
|
|
488
|
+
value: z.durationSec,
|
|
489
|
+
onChange: (e) => B((t) => ({
|
|
387
490
|
...t,
|
|
388
491
|
durationSec: e.target.value
|
|
389
492
|
})),
|
|
@@ -396,7 +499,7 @@ function A() {
|
|
|
396
499
|
className: "flex items-center justify-between gap-3 rounded-xl bg-bg-sunken/60 p-3",
|
|
397
500
|
children: [/* @__PURE__ */ _("div", {
|
|
398
501
|
className: "flex items-center gap-2",
|
|
399
|
-
children: [/* @__PURE__ */ g(
|
|
502
|
+
children: [/* @__PURE__ */ g(pe, { className: "h-4 w-4 text-accent" }), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g(b, {
|
|
400
503
|
htmlFor: "myb-set-pr",
|
|
401
504
|
className: "cursor-pointer",
|
|
402
505
|
children: "Personal record"
|
|
@@ -404,80 +507,90 @@ function A() {
|
|
|
404
507
|
className: "text-xs text-text-tertiary",
|
|
405
508
|
children: "Flag this set as a new PR."
|
|
406
509
|
})] })]
|
|
407
|
-
}), /* @__PURE__ */ g(
|
|
510
|
+
}), /* @__PURE__ */ g(be, {
|
|
408
511
|
id: "myb-set-pr",
|
|
409
|
-
checked:
|
|
410
|
-
onCheckedChange: (e) =>
|
|
512
|
+
checked: z.isPersonalRecord,
|
|
513
|
+
onCheckedChange: (e) => B((t) => ({
|
|
411
514
|
...t,
|
|
412
515
|
isPersonalRecord: e
|
|
413
516
|
}))
|
|
414
517
|
})]
|
|
415
518
|
}),
|
|
416
|
-
|
|
519
|
+
V && /* @__PURE__ */ g("p", {
|
|
417
520
|
className: "text-sm text-status-error-text",
|
|
418
|
-
children:
|
|
521
|
+
children: V
|
|
419
522
|
})
|
|
420
523
|
]
|
|
421
524
|
}),
|
|
422
|
-
/* @__PURE__ */ _(
|
|
525
|
+
/* @__PURE__ */ _(C, { children: [/* @__PURE__ */ g(v, {
|
|
423
526
|
variant: "outline",
|
|
424
|
-
onClick: () =>
|
|
527
|
+
onClick: () => R(!1),
|
|
425
528
|
children: "Done"
|
|
426
529
|
}), /* @__PURE__ */ g(v, {
|
|
427
530
|
onClick: async () => {
|
|
428
|
-
|
|
429
|
-
let e =
|
|
531
|
+
H(null);
|
|
532
|
+
let e = z.exerciseName.trim();
|
|
430
533
|
if (!e) {
|
|
431
|
-
|
|
534
|
+
H("Exercise name is required.");
|
|
432
535
|
return;
|
|
433
536
|
}
|
|
434
537
|
try {
|
|
435
|
-
let t = await
|
|
436
|
-
sessionId:
|
|
538
|
+
let t = await I.mutateAsync({
|
|
539
|
+
sessionId: P,
|
|
437
540
|
exerciseName: e,
|
|
438
|
-
setNumber:
|
|
439
|
-
reps:
|
|
440
|
-
weight:
|
|
441
|
-
distanceM:
|
|
442
|
-
durationSec:
|
|
443
|
-
isPersonalRecord:
|
|
541
|
+
setNumber: k(z.setNumber),
|
|
542
|
+
reps: k(z.reps),
|
|
543
|
+
weight: k(z.weight),
|
|
544
|
+
distanceM: k(z.distanceM),
|
|
545
|
+
durationSec: k(z.durationSec),
|
|
546
|
+
isPersonalRecord: z.isPersonalRecord
|
|
444
547
|
});
|
|
445
|
-
|
|
446
|
-
...
|
|
548
|
+
B({
|
|
549
|
+
...A,
|
|
447
550
|
exerciseName: e,
|
|
448
551
|
setNumber: String(t.setNumber + 1)
|
|
449
552
|
});
|
|
450
553
|
} catch (e) {
|
|
451
|
-
|
|
554
|
+
H(e instanceof Error ? e.message : "Failed to log the set.");
|
|
452
555
|
}
|
|
453
556
|
},
|
|
454
|
-
disabled:
|
|
455
|
-
children:
|
|
557
|
+
disabled: I.isPending,
|
|
558
|
+
children: I.isPending ? "Logging…" : "Log set"
|
|
456
559
|
})] })
|
|
457
560
|
] })
|
|
458
561
|
}),
|
|
459
|
-
/* @__PURE__ */ g(
|
|
460
|
-
open:
|
|
461
|
-
onOpenChange:
|
|
462
|
-
children: /* @__PURE__ */ _(
|
|
463
|
-
/* @__PURE__ */ _(
|
|
562
|
+
/* @__PURE__ */ g(ye, {
|
|
563
|
+
open: Ce,
|
|
564
|
+
onOpenChange: U,
|
|
565
|
+
children: /* @__PURE__ */ _(x, { children: [
|
|
566
|
+
/* @__PURE__ */ _(w, { children: [/* @__PURE__ */ g(T, { children: "Complete session" }), /* @__PURE__ */ g(S, { children: "Wrap up this workout and record how it went." })] }),
|
|
464
567
|
/* @__PURE__ */ _("div", {
|
|
465
568
|
className: "space-y-4 px-1",
|
|
466
569
|
children: [
|
|
570
|
+
J.length === 0 && /* @__PURE__ */ _("div", {
|
|
571
|
+
className: "flex items-start gap-2.5 rounded-xl border border-status-warning-text/40 bg-status-warning-bg-subtle p-3",
|
|
572
|
+
children: [/* @__PURE__ */ g(le, { className: "mt-0.5 h-4 w-4 shrink-0 text-status-warning-text" }), /* @__PURE__ */ _("p", {
|
|
573
|
+
className: "text-sm text-text-secondary",
|
|
574
|
+
children: [/* @__PURE__ */ g("span", {
|
|
575
|
+
className: "font-medium text-text-primary",
|
|
576
|
+
children: "No sets logged."
|
|
577
|
+
}), " You can still complete this session, but nothing was recorded for it."]
|
|
578
|
+
})]
|
|
579
|
+
}),
|
|
467
580
|
/* @__PURE__ */ _("div", {
|
|
468
581
|
className: "grid grid-cols-2 gap-3",
|
|
469
582
|
children: [/* @__PURE__ */ _("div", {
|
|
470
583
|
className: "space-y-1.5",
|
|
471
|
-
children: [/* @__PURE__ */ g(
|
|
584
|
+
children: [/* @__PURE__ */ g(b, {
|
|
472
585
|
htmlFor: "myb-complete-calories",
|
|
473
586
|
children: "Calories burned"
|
|
474
|
-
}), /* @__PURE__ */ g(
|
|
587
|
+
}), /* @__PURE__ */ g(y, {
|
|
475
588
|
id: "myb-complete-calories",
|
|
476
589
|
type: "number",
|
|
477
590
|
inputMode: "numeric",
|
|
478
591
|
min: 0,
|
|
479
|
-
value:
|
|
480
|
-
onChange: (e) =>
|
|
592
|
+
value: W.caloriesBurned,
|
|
593
|
+
onChange: (e) => G((t) => ({
|
|
481
594
|
...t,
|
|
482
595
|
caloriesBurned: e.target.value
|
|
483
596
|
})),
|
|
@@ -485,17 +598,17 @@ function A() {
|
|
|
485
598
|
})]
|
|
486
599
|
}), /* @__PURE__ */ _("div", {
|
|
487
600
|
className: "space-y-1.5",
|
|
488
|
-
children: [/* @__PURE__ */ g(
|
|
601
|
+
children: [/* @__PURE__ */ g(b, {
|
|
489
602
|
htmlFor: "myb-complete-rpe",
|
|
490
603
|
children: "Perceived exertion (1–10)"
|
|
491
|
-
}), /* @__PURE__ */ g(
|
|
604
|
+
}), /* @__PURE__ */ g(y, {
|
|
492
605
|
id: "myb-complete-rpe",
|
|
493
606
|
type: "number",
|
|
494
607
|
inputMode: "numeric",
|
|
495
608
|
min: 1,
|
|
496
609
|
max: 10,
|
|
497
|
-
value:
|
|
498
|
-
onChange: (e) =>
|
|
610
|
+
value: W.perceivedExertion,
|
|
611
|
+
onChange: (e) => G((t) => ({
|
|
499
612
|
...t,
|
|
500
613
|
perceivedExertion: e.target.value
|
|
501
614
|
})),
|
|
@@ -505,48 +618,48 @@ function A() {
|
|
|
505
618
|
}),
|
|
506
619
|
/* @__PURE__ */ _("div", {
|
|
507
620
|
className: "space-y-1.5",
|
|
508
|
-
children: [/* @__PURE__ */ g(
|
|
621
|
+
children: [/* @__PURE__ */ g(b, {
|
|
509
622
|
htmlFor: "myb-complete-notes",
|
|
510
623
|
children: "Notes"
|
|
511
|
-
}), /* @__PURE__ */ g(
|
|
624
|
+
}), /* @__PURE__ */ g(xe, {
|
|
512
625
|
id: "myb-complete-notes",
|
|
513
626
|
rows: 3,
|
|
514
|
-
value:
|
|
515
|
-
onChange: (e) =>
|
|
627
|
+
value: W.notes,
|
|
628
|
+
onChange: (e) => G((t) => ({
|
|
516
629
|
...t,
|
|
517
630
|
notes: e.target.value
|
|
518
631
|
})),
|
|
519
632
|
placeholder: "How did the session feel?"
|
|
520
633
|
})]
|
|
521
634
|
}),
|
|
522
|
-
|
|
635
|
+
we && /* @__PURE__ */ g("p", {
|
|
523
636
|
className: "text-sm text-status-error-text",
|
|
524
|
-
children:
|
|
637
|
+
children: we
|
|
525
638
|
})
|
|
526
639
|
]
|
|
527
640
|
}),
|
|
528
|
-
/* @__PURE__ */ _(
|
|
641
|
+
/* @__PURE__ */ _(C, { children: [/* @__PURE__ */ g(v, {
|
|
529
642
|
variant: "outline",
|
|
530
|
-
onClick: () =>
|
|
643
|
+
onClick: () => U(!1),
|
|
531
644
|
children: "Cancel"
|
|
532
645
|
}), /* @__PURE__ */ g(v, {
|
|
533
646
|
onClick: async () => {
|
|
534
|
-
|
|
647
|
+
K(null);
|
|
535
648
|
try {
|
|
536
|
-
await
|
|
537
|
-
id:
|
|
649
|
+
await L.mutateAsync({
|
|
650
|
+
id: P,
|
|
538
651
|
input: {
|
|
539
|
-
caloriesBurned:
|
|
540
|
-
perceivedExertion:
|
|
541
|
-
notes:
|
|
652
|
+
caloriesBurned: k(W.caloriesBurned),
|
|
653
|
+
perceivedExertion: k(W.perceivedExertion),
|
|
654
|
+
notes: W.notes.trim() ? W.notes.trim() : void 0
|
|
542
655
|
}
|
|
543
|
-
}),
|
|
656
|
+
}), U(!1);
|
|
544
657
|
} catch (e) {
|
|
545
|
-
|
|
658
|
+
K(e instanceof Error ? e.message : "Failed to complete the session.");
|
|
546
659
|
}
|
|
547
660
|
},
|
|
548
|
-
disabled:
|
|
549
|
-
children:
|
|
661
|
+
disabled: L.isPending,
|
|
662
|
+
children: L.isPending ? "Completing…" : "Complete session"
|
|
550
663
|
})] })
|
|
551
664
|
] })
|
|
552
665
|
})
|
|
@@ -554,6 +667,6 @@ function A() {
|
|
|
554
667
|
});
|
|
555
668
|
}
|
|
556
669
|
//#endregion
|
|
557
|
-
export {
|
|
670
|
+
export { M as SessionDetailPage };
|
|
558
671
|
|
|
559
672
|
//# sourceMappingURL=SessionDetailPage.js.map
|