@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,30 +1,32 @@
|
|
|
1
1
|
import { useMyBodyShield as e } from "../../context/MyBodyShieldContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
2
|
+
import { motion as t } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
3
|
+
import { useReducedMotion as n } from "../../../node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js";
|
|
4
|
+
import { PageLayout as r } from "../../components/PageLayout.js";
|
|
5
|
+
import { MetricsCard as i } from "../../components/MetricsCard.js";
|
|
6
|
+
import { formatEnumLabel as a, formatNumber as o, formatRelativeTime as s } from "../../utils/formatters.js";
|
|
7
|
+
import { StatusBadge as c } from "../../components/StatusBadge.js";
|
|
8
|
+
import { ErrorView as l, LoadingView as ee } from "../../components/StateViews.js";
|
|
7
9
|
import { EmptyState as te } from "../../components/EmptyState.js";
|
|
8
|
-
import { GOAL_TYPE_META as
|
|
10
|
+
import { GOAL_TYPE_META as u, IconChip as d } from "../_shared/visuals.js";
|
|
9
11
|
import "../../context/index.js";
|
|
10
|
-
import { useMybCreateProgram as
|
|
11
|
-
import { useOffsetPager as
|
|
12
|
+
import { useMybCreateProgram as f, useMybPrograms as p } from "../../hooks/useMyBodyShieldApi.js";
|
|
13
|
+
import { useOffsetPager as m } from "../../hooks/usePager.js";
|
|
12
14
|
import "../../hooks/index.js";
|
|
13
|
-
import { FilterTabs as
|
|
14
|
-
import { Pagination as
|
|
15
|
+
import { FilterTabs as h } from "../../components/FilterTabs.js";
|
|
16
|
+
import { Pagination as ne } from "../../components/Pagination.js";
|
|
15
17
|
import "../../components/index.js";
|
|
16
|
-
import { useMemo as
|
|
17
|
-
import { Dumbbell as
|
|
18
|
-
import { jsx as
|
|
19
|
-
import { Button as
|
|
18
|
+
import { useMemo as g, useState as _ } from "react";
|
|
19
|
+
import { Clock as v, Dumbbell as y, FilePenLine as re, Layers as ie, Plus as b } from "lucide-react";
|
|
20
|
+
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
21
|
+
import { Button as C, GlassCard as w, Input as T, Label as E, ResponsiveDialog as D, ResponsiveDialogContent as O, ResponsiveDialogDescription as ae, ResponsiveDialogFooter as oe, ResponsiveDialogHeader as se, ResponsiveDialogTitle as k, Select as A, SelectContent as j, SelectItem as M, SelectTrigger as N, SelectValue as P, Textarea as ce } from "@burdenoff/fe-libs/ui";
|
|
20
22
|
//#region src/mybodyshield/pages/programs/ProgramsPage.tsx
|
|
21
|
-
var
|
|
23
|
+
var F = 24, le = [
|
|
22
24
|
"ALL",
|
|
23
25
|
"DRAFT",
|
|
24
26
|
"ACTIVE",
|
|
25
27
|
"COMPLETED",
|
|
26
28
|
"ARCHIVED"
|
|
27
|
-
],
|
|
29
|
+
], I = [
|
|
28
30
|
"WEIGHT_LOSS",
|
|
29
31
|
"MUSCLE_GAIN",
|
|
30
32
|
"STRENGTH",
|
|
@@ -36,12 +38,12 @@ var M = 24, le = [
|
|
|
36
38
|
"INTERMEDIATE",
|
|
37
39
|
"ADVANCED",
|
|
38
40
|
"ELITE"
|
|
39
|
-
],
|
|
41
|
+
], L = [
|
|
40
42
|
"BUILD",
|
|
41
43
|
"PEAK",
|
|
42
44
|
"DELOAD",
|
|
43
45
|
"MAINTENANCE"
|
|
44
|
-
],
|
|
46
|
+
], R = {
|
|
45
47
|
name: "",
|
|
46
48
|
description: "",
|
|
47
49
|
goalType: "GENERAL_FITNESS",
|
|
@@ -50,376 +52,422 @@ var M = 24, le = [
|
|
|
50
52
|
weeks: "",
|
|
51
53
|
daysPerWeek: "",
|
|
52
54
|
startDate: ""
|
|
53
|
-
},
|
|
55
|
+
}, z = (e) => {
|
|
54
56
|
let t = e.trim();
|
|
55
57
|
if (t === "") return null;
|
|
56
58
|
let n = Number(t);
|
|
57
59
|
return Number.isFinite(n) ? n : null;
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
}, B = [
|
|
61
|
+
.22,
|
|
62
|
+
1,
|
|
63
|
+
.36,
|
|
64
|
+
1
|
|
65
|
+
], V = ({ index: e = 0, hover: r = !1, className: i, children: a }) => {
|
|
66
|
+
let o = n();
|
|
67
|
+
return /* @__PURE__ */ x(t.div, {
|
|
68
|
+
className: i,
|
|
69
|
+
initial: o ? !1 : {
|
|
70
|
+
opacity: 0,
|
|
71
|
+
y: 12
|
|
72
|
+
},
|
|
73
|
+
animate: {
|
|
74
|
+
opacity: 1,
|
|
75
|
+
y: 0
|
|
76
|
+
},
|
|
77
|
+
transition: o ? { duration: 0 } : {
|
|
78
|
+
duration: .35,
|
|
79
|
+
delay: Math.min(e * .05, .45),
|
|
80
|
+
ease: B
|
|
81
|
+
},
|
|
82
|
+
whileHover: o || !r ? void 0 : { y: -4 },
|
|
83
|
+
children: a
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
function H({ id: e, value: t, onChange: n, options: r }) {
|
|
87
|
+
return /* @__PURE__ */ S(A, {
|
|
64
88
|
value: t,
|
|
65
89
|
onValueChange: (e) => n(e),
|
|
66
|
-
children: [/* @__PURE__ */
|
|
90
|
+
children: [/* @__PURE__ */ x(N, {
|
|
67
91
|
id: e,
|
|
68
|
-
children: /* @__PURE__ */
|
|
69
|
-
}), /* @__PURE__ */
|
|
92
|
+
children: /* @__PURE__ */ x(P, {})
|
|
93
|
+
}), /* @__PURE__ */ x(j, { children: r.map((e) => /* @__PURE__ */ x(M, {
|
|
70
94
|
value: e,
|
|
71
|
-
children:
|
|
95
|
+
children: a(e)
|
|
72
96
|
}, e)) })]
|
|
73
97
|
});
|
|
74
98
|
}
|
|
75
|
-
function
|
|
76
|
-
let
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
className: "
|
|
99
|
-
|
|
99
|
+
function de({ program: e, index: t, onOpen: n }) {
|
|
100
|
+
let r = u[e.goalType], i = r.icon, l = [
|
|
101
|
+
e.phase,
|
|
102
|
+
e.level,
|
|
103
|
+
e.goalType
|
|
104
|
+
].map((e) => a(e)).join(" · ");
|
|
105
|
+
return /* @__PURE__ */ x(V, {
|
|
106
|
+
index: t,
|
|
107
|
+
hover: !0,
|
|
108
|
+
className: "h-full",
|
|
109
|
+
children: /* @__PURE__ */ x("button", {
|
|
110
|
+
type: "button",
|
|
111
|
+
onClick: () => n(e.id),
|
|
112
|
+
className: "block h-full w-full text-left",
|
|
113
|
+
children: /* @__PURE__ */ S(w, {
|
|
114
|
+
treatment: "glass",
|
|
115
|
+
className: "flex h-full flex-col p-5 transition-shadow hover:shadow-[var(--shadow-pop-hover)]",
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ S("div", {
|
|
118
|
+
className: "flex items-start justify-between gap-3",
|
|
119
|
+
children: [/* @__PURE__ */ S("div", {
|
|
120
|
+
className: "flex min-w-0 items-start gap-3",
|
|
121
|
+
children: [/* @__PURE__ */ x(d, {
|
|
122
|
+
icon: /* @__PURE__ */ x(i, { className: "h-4 w-4" }),
|
|
123
|
+
tint: r.tint
|
|
124
|
+
}), /* @__PURE__ */ S("div", {
|
|
125
|
+
className: "min-w-0",
|
|
126
|
+
children: [/* @__PURE__ */ x("p", {
|
|
127
|
+
className: "truncate font-semibold text-text-primary",
|
|
128
|
+
children: e.name
|
|
129
|
+
}), /* @__PURE__ */ x("p", {
|
|
130
|
+
className: "mt-0.5 truncate text-xs text-text-tertiary",
|
|
131
|
+
children: l
|
|
132
|
+
})]
|
|
100
133
|
})]
|
|
134
|
+
}), /* @__PURE__ */ x(c, { status: e.status })]
|
|
135
|
+
}),
|
|
136
|
+
e.description && /* @__PURE__ */ x("p", {
|
|
137
|
+
className: "mt-3 line-clamp-2 text-sm text-text-secondary",
|
|
138
|
+
children: e.description
|
|
139
|
+
}),
|
|
140
|
+
/* @__PURE__ */ S("div", {
|
|
141
|
+
className: "mt-3 inline-flex items-center gap-1.5 text-sm text-text-secondary",
|
|
142
|
+
children: [/* @__PURE__ */ x(v, { className: "h-4 w-4 shrink-0 text-action-primary-bg" }), /* @__PURE__ */ S("span", {
|
|
143
|
+
className: "tabular-nums",
|
|
144
|
+
children: [
|
|
145
|
+
o(e.weeks),
|
|
146
|
+
" wk × ",
|
|
147
|
+
o(e.daysPerWeek),
|
|
148
|
+
" days"
|
|
149
|
+
]
|
|
101
150
|
})]
|
|
102
|
-
}),
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
i(e.daysPerWeek),
|
|
117
|
-
" days"
|
|
118
|
-
] })
|
|
119
|
-
]
|
|
120
|
-
}),
|
|
121
|
-
e.tags.length > 0 && /* @__PURE__ */ v("div", {
|
|
122
|
-
className: "mt-3 flex flex-wrap gap-1.5",
|
|
123
|
-
children: e.tags.slice(0, 4).map((e) => /* @__PURE__ */ y("span", {
|
|
124
|
-
className: "inline-flex items-center rounded-full bg-[var(--color-accent-soft)] px-2 py-0.5 text-xs font-medium text-text-secondary",
|
|
125
|
-
children: ["#", e]
|
|
126
|
-
}, e))
|
|
127
|
-
}),
|
|
128
|
-
/* @__PURE__ */ y("div", {
|
|
129
|
-
className: "mt-auto pt-4 text-xs text-text-tertiary",
|
|
130
|
-
children: ["Updated ", a(e.updatedAt)]
|
|
131
|
-
})
|
|
132
|
-
]
|
|
151
|
+
}),
|
|
152
|
+
e.tags.length > 0 && /* @__PURE__ */ x("div", {
|
|
153
|
+
className: "mt-3 flex flex-wrap gap-1.5",
|
|
154
|
+
children: e.tags.slice(0, 4).map((e) => /* @__PURE__ */ S("span", {
|
|
155
|
+
className: "inline-flex items-center rounded-full bg-[var(--color-accent-soft)] px-2 py-0.5 text-xs font-medium text-text-secondary",
|
|
156
|
+
children: ["#", e]
|
|
157
|
+
}, e))
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ S("div", {
|
|
160
|
+
className: "mt-auto pt-4 text-xs text-text-tertiary",
|
|
161
|
+
children: ["Updated ", s(e.updatedAt)]
|
|
162
|
+
})
|
|
163
|
+
]
|
|
164
|
+
})
|
|
133
165
|
})
|
|
134
166
|
});
|
|
135
167
|
}
|
|
136
|
-
function
|
|
137
|
-
let { navigateTo:
|
|
138
|
-
let e = (e) =>
|
|
168
|
+
function U() {
|
|
169
|
+
let { navigateTo: t } = e(), n = m(F), [s, c] = _("ALL"), [u, d] = _("ALL"), [v, w] = _(!1), [B, U] = _(R), [W, G] = _(null), K = f(), q = p({ pagination: { limit: 100 } }), J = g(() => q.data?.items ?? [], [q.data]), Y = g(() => {
|
|
170
|
+
let e = (e) => J.filter((t) => t.status === e).length;
|
|
139
171
|
return {
|
|
140
|
-
ALL:
|
|
172
|
+
ALL: J.length,
|
|
141
173
|
DRAFT: e("DRAFT"),
|
|
142
174
|
ACTIVE: e("ACTIVE"),
|
|
143
175
|
COMPLETED: e("COMPLETED"),
|
|
144
176
|
ARCHIVED: e("ARCHIVED")
|
|
145
177
|
};
|
|
146
|
-
}, [
|
|
147
|
-
status:
|
|
178
|
+
}, [J]), X = p({
|
|
179
|
+
status: s === "ALL" ? void 0 : s,
|
|
148
180
|
pagination: {
|
|
149
|
-
limit:
|
|
150
|
-
offset:
|
|
181
|
+
limit: F,
|
|
182
|
+
offset: n.offset
|
|
151
183
|
}
|
|
152
|
-
}),
|
|
153
|
-
|
|
154
|
-
},
|
|
155
|
-
|
|
184
|
+
}), Z = X.data?.items ?? [], Q = u === "ALL" ? Z : Z.filter((e) => e.goalType === u), fe = (e) => {
|
|
185
|
+
c(e), n.reset();
|
|
186
|
+
}, pe = (e) => {
|
|
187
|
+
d(e), n.reset();
|
|
156
188
|
}, $ = () => {
|
|
157
|
-
|
|
158
|
-
},
|
|
159
|
-
if (!
|
|
160
|
-
|
|
189
|
+
U(R), G(null), w(!0);
|
|
190
|
+
}, me = async () => {
|
|
191
|
+
if (!B.name.trim()) {
|
|
192
|
+
G("Program name is required.");
|
|
161
193
|
return;
|
|
162
194
|
}
|
|
163
195
|
let e = {
|
|
164
|
-
name:
|
|
165
|
-
description:
|
|
166
|
-
goalType:
|
|
167
|
-
level:
|
|
168
|
-
phase:
|
|
169
|
-
weeks:
|
|
170
|
-
daysPerWeek:
|
|
171
|
-
startDate:
|
|
196
|
+
name: B.name.trim(),
|
|
197
|
+
description: B.description.trim() || null,
|
|
198
|
+
goalType: B.goalType,
|
|
199
|
+
level: B.level,
|
|
200
|
+
phase: B.phase,
|
|
201
|
+
weeks: z(B.weeks),
|
|
202
|
+
daysPerWeek: z(B.daysPerWeek),
|
|
203
|
+
startDate: B.startDate ? new Date(B.startDate).toISOString() : null
|
|
172
204
|
};
|
|
173
205
|
try {
|
|
174
|
-
let
|
|
175
|
-
|
|
206
|
+
let n = await K.mutateAsync(e);
|
|
207
|
+
w(!1), t(`programs/${n.id}`);
|
|
176
208
|
} catch (e) {
|
|
177
|
-
|
|
209
|
+
G(e instanceof Error ? e.message : "Failed to create program.");
|
|
178
210
|
}
|
|
179
|
-
},
|
|
211
|
+
}, he = le.map((e) => ({
|
|
180
212
|
value: e,
|
|
181
|
-
label: e === "ALL" ? "All" :
|
|
182
|
-
count:
|
|
213
|
+
label: e === "ALL" ? "All" : a(e),
|
|
214
|
+
count: Y[e]
|
|
183
215
|
}));
|
|
184
|
-
return /* @__PURE__ */
|
|
216
|
+
return /* @__PURE__ */ S(r, {
|
|
185
217
|
title: "Programs",
|
|
186
218
|
description: "Structured training blocks — build, peak, deload & maintain.",
|
|
187
|
-
actions: /* @__PURE__ */
|
|
219
|
+
actions: /* @__PURE__ */ S(C, {
|
|
188
220
|
onClick: $,
|
|
189
|
-
children: [/* @__PURE__ */
|
|
221
|
+
children: [/* @__PURE__ */ x(b, { className: "mr-1 h-4 w-4" }), " New program"]
|
|
190
222
|
}),
|
|
191
223
|
children: [
|
|
192
|
-
/* @__PURE__ */
|
|
224
|
+
/* @__PURE__ */ S("div", {
|
|
193
225
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
194
226
|
children: [
|
|
195
|
-
/* @__PURE__ */
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
227
|
+
/* @__PURE__ */ x(V, {
|
|
228
|
+
index: 0,
|
|
229
|
+
className: "h-full",
|
|
230
|
+
children: /* @__PURE__ */ x(i, {
|
|
231
|
+
className: "h-full",
|
|
232
|
+
icon: /* @__PURE__ */ x(y, { className: "h-5 w-5" }),
|
|
233
|
+
value: o(Y.ACTIVE),
|
|
234
|
+
label: "Active programs",
|
|
235
|
+
accent: "success"
|
|
236
|
+
})
|
|
200
237
|
}),
|
|
201
|
-
/* @__PURE__ */
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
238
|
+
/* @__PURE__ */ x(V, {
|
|
239
|
+
index: 1,
|
|
240
|
+
className: "h-full",
|
|
241
|
+
children: /* @__PURE__ */ x(i, {
|
|
242
|
+
className: "h-full",
|
|
243
|
+
icon: /* @__PURE__ */ x(re, { className: "h-5 w-5" }),
|
|
244
|
+
value: o(Y.DRAFT),
|
|
245
|
+
label: "Draft programs"
|
|
246
|
+
})
|
|
205
247
|
}),
|
|
206
|
-
/* @__PURE__ */
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
248
|
+
/* @__PURE__ */ x(V, {
|
|
249
|
+
index: 2,
|
|
250
|
+
className: "h-full",
|
|
251
|
+
children: /* @__PURE__ */ x(i, {
|
|
252
|
+
className: "h-full",
|
|
253
|
+
icon: /* @__PURE__ */ x(ie, { className: "h-5 w-5" }),
|
|
254
|
+
value: o(Y.ALL),
|
|
255
|
+
label: "Total programs"
|
|
256
|
+
})
|
|
210
257
|
})
|
|
211
258
|
]
|
|
212
259
|
}),
|
|
213
|
-
/* @__PURE__ */
|
|
260
|
+
/* @__PURE__ */ S("div", {
|
|
214
261
|
className: "mt-6 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",
|
|
215
|
-
children: [/* @__PURE__ */
|
|
216
|
-
options:
|
|
217
|
-
value:
|
|
218
|
-
onChange:
|
|
219
|
-
}), /* @__PURE__ */
|
|
262
|
+
children: [/* @__PURE__ */ x(h, {
|
|
263
|
+
options: he,
|
|
264
|
+
value: s,
|
|
265
|
+
onChange: fe
|
|
266
|
+
}), /* @__PURE__ */ S("div", {
|
|
220
267
|
className: "flex items-center gap-2",
|
|
221
|
-
children: [/* @__PURE__ */
|
|
268
|
+
children: [/* @__PURE__ */ x("span", {
|
|
222
269
|
className: "text-sm text-text-tertiary",
|
|
223
270
|
children: "Goal"
|
|
224
|
-
}), /* @__PURE__ */
|
|
271
|
+
}), /* @__PURE__ */ x("div", {
|
|
225
272
|
className: "w-48",
|
|
226
|
-
children: /* @__PURE__ */
|
|
227
|
-
value:
|
|
228
|
-
onValueChange: (e) =>
|
|
229
|
-
children: [/* @__PURE__ */
|
|
273
|
+
children: /* @__PURE__ */ S(A, {
|
|
274
|
+
value: u,
|
|
275
|
+
onValueChange: (e) => pe(e),
|
|
276
|
+
children: [/* @__PURE__ */ x(N, { children: /* @__PURE__ */ x(P, {}) }), /* @__PURE__ */ S(j, { children: [/* @__PURE__ */ x(M, {
|
|
230
277
|
value: "ALL",
|
|
231
278
|
children: "All goals"
|
|
232
|
-
}),
|
|
279
|
+
}), I.map((e) => /* @__PURE__ */ x(M, {
|
|
233
280
|
value: e,
|
|
234
|
-
children:
|
|
281
|
+
children: a(e)
|
|
235
282
|
}, e))] })]
|
|
236
283
|
})
|
|
237
284
|
})]
|
|
238
285
|
})]
|
|
239
286
|
}),
|
|
240
|
-
/* @__PURE__ */
|
|
287
|
+
/* @__PURE__ */ S("div", {
|
|
241
288
|
className: "mt-6",
|
|
242
|
-
children: [
|
|
289
|
+
children: [X.isLoading ? /* @__PURE__ */ x(ee, { label: "Loading programs…" }) : X.isError ? /* @__PURE__ */ x(l, {
|
|
243
290
|
message: "We couldn't load your programs.",
|
|
244
|
-
onRetry: () => void
|
|
245
|
-
}) :
|
|
291
|
+
onRetry: () => void X.refetch()
|
|
292
|
+
}) : Z.length === 0 ? /* @__PURE__ */ x(te, {
|
|
246
293
|
illustration: "empty-data",
|
|
247
|
-
icon: /* @__PURE__ */
|
|
248
|
-
title:
|
|
294
|
+
icon: /* @__PURE__ */ x(y, { className: "h-10 w-10" }),
|
|
295
|
+
title: s === "ALL" ? "No programs yet" : "No programs in this status",
|
|
249
296
|
description: "Create a structured training program to plan your workouts week by week.",
|
|
250
|
-
action: /* @__PURE__ */
|
|
297
|
+
action: /* @__PURE__ */ S(C, {
|
|
251
298
|
onClick: $,
|
|
252
|
-
children: [/* @__PURE__ */
|
|
299
|
+
children: [/* @__PURE__ */ x(b, { className: "mr-1 h-4 w-4" }), " New program"]
|
|
253
300
|
})
|
|
254
|
-
}) :
|
|
301
|
+
}) : Q.length === 0 ? /* @__PURE__ */ S("div", {
|
|
255
302
|
className: "rounded-xl border border-dashed border-border-seam py-10 text-center text-sm text-text-secondary",
|
|
256
303
|
children: [
|
|
257
304
|
"No programs on this page match",
|
|
258
305
|
" ",
|
|
259
|
-
/* @__PURE__ */
|
|
306
|
+
/* @__PURE__ */ x("span", {
|
|
260
307
|
className: "font-medium text-text-primary",
|
|
261
|
-
children:
|
|
308
|
+
children: a(u)
|
|
262
309
|
}),
|
|
263
310
|
"."
|
|
264
311
|
]
|
|
265
|
-
}) : /* @__PURE__ */
|
|
312
|
+
}) : /* @__PURE__ */ x("div", {
|
|
266
313
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
267
|
-
children:
|
|
314
|
+
children: Q.map((e, n) => /* @__PURE__ */ x(de, {
|
|
268
315
|
program: e,
|
|
269
|
-
|
|
316
|
+
index: n,
|
|
317
|
+
onOpen: (e) => t(`programs/${e}`)
|
|
270
318
|
}, e.id))
|
|
271
|
-
}), !
|
|
272
|
-
page:
|
|
273
|
-
pageSize:
|
|
274
|
-
itemCount:
|
|
275
|
-
hasMore:
|
|
276
|
-
onPageChange: (e) =>
|
|
319
|
+
}), !X.isLoading && !X.isError && Z.length > 0 && /* @__PURE__ */ x(ne, {
|
|
320
|
+
page: n.page,
|
|
321
|
+
pageSize: F,
|
|
322
|
+
itemCount: Z.length,
|
|
323
|
+
hasMore: X.data?.pageInfo?.hasMore ?? !1,
|
|
324
|
+
onPageChange: (e) => n.onPageChange(e)
|
|
277
325
|
})]
|
|
278
326
|
}),
|
|
279
|
-
/* @__PURE__ */
|
|
280
|
-
open:
|
|
281
|
-
onOpenChange:
|
|
282
|
-
children: /* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ x(D, {
|
|
328
|
+
open: v,
|
|
329
|
+
onOpenChange: w,
|
|
330
|
+
children: /* @__PURE__ */ S(O, {
|
|
283
331
|
className: "sm:max-w-lg",
|
|
284
332
|
children: [
|
|
285
|
-
/* @__PURE__ */
|
|
286
|
-
/* @__PURE__ */
|
|
333
|
+
/* @__PURE__ */ S(se, { children: [/* @__PURE__ */ x(k, { children: "New program" }), /* @__PURE__ */ x(ae, { children: "Define a structured training block. You can add workouts & exercises after creating it." })] }),
|
|
334
|
+
/* @__PURE__ */ S("div", {
|
|
287
335
|
className: "space-y-4 py-2",
|
|
288
336
|
children: [
|
|
289
|
-
|
|
337
|
+
W && /* @__PURE__ */ x("p", {
|
|
290
338
|
className: "rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
291
|
-
children:
|
|
339
|
+
children: W
|
|
292
340
|
}),
|
|
293
|
-
/* @__PURE__ */
|
|
341
|
+
/* @__PURE__ */ S("div", {
|
|
294
342
|
className: "space-y-1.5",
|
|
295
|
-
children: [/* @__PURE__ */
|
|
343
|
+
children: [/* @__PURE__ */ x(E, {
|
|
296
344
|
htmlFor: "myb-prog-name",
|
|
297
345
|
children: "Name"
|
|
298
|
-
}), /* @__PURE__ */
|
|
346
|
+
}), /* @__PURE__ */ x(T, {
|
|
299
347
|
id: "myb-prog-name",
|
|
300
|
-
value:
|
|
301
|
-
onChange: (e) =>
|
|
302
|
-
...
|
|
348
|
+
value: B.name,
|
|
349
|
+
onChange: (e) => U({
|
|
350
|
+
...B,
|
|
303
351
|
name: e.target.value
|
|
304
352
|
}),
|
|
305
353
|
placeholder: "e.g. Hypertrophy Block A"
|
|
306
354
|
})]
|
|
307
355
|
}),
|
|
308
|
-
/* @__PURE__ */
|
|
356
|
+
/* @__PURE__ */ S("div", {
|
|
309
357
|
className: "space-y-1.5",
|
|
310
|
-
children: [/* @__PURE__ */
|
|
358
|
+
children: [/* @__PURE__ */ x(E, {
|
|
311
359
|
htmlFor: "myb-prog-desc",
|
|
312
360
|
children: "Description"
|
|
313
|
-
}), /* @__PURE__ */
|
|
361
|
+
}), /* @__PURE__ */ x(ce, {
|
|
314
362
|
id: "myb-prog-desc",
|
|
315
363
|
rows: 3,
|
|
316
|
-
value:
|
|
317
|
-
onChange: (e) =>
|
|
318
|
-
...
|
|
364
|
+
value: B.description,
|
|
365
|
+
onChange: (e) => U({
|
|
366
|
+
...B,
|
|
319
367
|
description: e.target.value
|
|
320
368
|
}),
|
|
321
369
|
placeholder: "Focus, progression scheme, notes…"
|
|
322
370
|
})]
|
|
323
371
|
}),
|
|
324
|
-
/* @__PURE__ */
|
|
372
|
+
/* @__PURE__ */ S("div", {
|
|
325
373
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
326
374
|
children: [
|
|
327
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ S("div", {
|
|
328
376
|
className: "space-y-1.5",
|
|
329
|
-
children: [/* @__PURE__ */
|
|
377
|
+
children: [/* @__PURE__ */ x(E, {
|
|
330
378
|
htmlFor: "myb-prog-goal",
|
|
331
379
|
children: "Goal type"
|
|
332
|
-
}), /* @__PURE__ */
|
|
380
|
+
}), /* @__PURE__ */ x(H, {
|
|
333
381
|
id: "myb-prog-goal",
|
|
334
|
-
value:
|
|
335
|
-
onChange: (e) =>
|
|
336
|
-
...
|
|
382
|
+
value: B.goalType,
|
|
383
|
+
onChange: (e) => U({
|
|
384
|
+
...B,
|
|
337
385
|
goalType: e
|
|
338
386
|
}),
|
|
339
|
-
options:
|
|
387
|
+
options: I
|
|
340
388
|
})]
|
|
341
389
|
}),
|
|
342
|
-
/* @__PURE__ */
|
|
390
|
+
/* @__PURE__ */ S("div", {
|
|
343
391
|
className: "space-y-1.5",
|
|
344
|
-
children: [/* @__PURE__ */
|
|
392
|
+
children: [/* @__PURE__ */ x(E, {
|
|
345
393
|
htmlFor: "myb-prog-level",
|
|
346
394
|
children: "Level"
|
|
347
|
-
}), /* @__PURE__ */
|
|
395
|
+
}), /* @__PURE__ */ x(H, {
|
|
348
396
|
id: "myb-prog-level",
|
|
349
|
-
value:
|
|
350
|
-
onChange: (e) =>
|
|
351
|
-
...
|
|
397
|
+
value: B.level,
|
|
398
|
+
onChange: (e) => U({
|
|
399
|
+
...B,
|
|
352
400
|
level: e
|
|
353
401
|
}),
|
|
354
402
|
options: ue
|
|
355
403
|
})]
|
|
356
404
|
}),
|
|
357
|
-
/* @__PURE__ */
|
|
405
|
+
/* @__PURE__ */ S("div", {
|
|
358
406
|
className: "space-y-1.5",
|
|
359
|
-
children: [/* @__PURE__ */
|
|
407
|
+
children: [/* @__PURE__ */ x(E, {
|
|
360
408
|
htmlFor: "myb-prog-phase",
|
|
361
409
|
children: "Phase"
|
|
362
|
-
}), /* @__PURE__ */
|
|
410
|
+
}), /* @__PURE__ */ x(H, {
|
|
363
411
|
id: "myb-prog-phase",
|
|
364
|
-
value:
|
|
365
|
-
onChange: (e) =>
|
|
366
|
-
...
|
|
412
|
+
value: B.phase,
|
|
413
|
+
onChange: (e) => U({
|
|
414
|
+
...B,
|
|
367
415
|
phase: e
|
|
368
416
|
}),
|
|
369
|
-
options:
|
|
417
|
+
options: L
|
|
370
418
|
})]
|
|
371
419
|
})
|
|
372
420
|
]
|
|
373
421
|
}),
|
|
374
|
-
/* @__PURE__ */
|
|
422
|
+
/* @__PURE__ */ S("div", {
|
|
375
423
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-3",
|
|
376
424
|
children: [
|
|
377
|
-
/* @__PURE__ */
|
|
425
|
+
/* @__PURE__ */ S("div", {
|
|
378
426
|
className: "space-y-1.5",
|
|
379
|
-
children: [/* @__PURE__ */
|
|
427
|
+
children: [/* @__PURE__ */ x(E, {
|
|
380
428
|
htmlFor: "myb-prog-weeks",
|
|
381
429
|
children: "Weeks"
|
|
382
|
-
}), /* @__PURE__ */
|
|
430
|
+
}), /* @__PURE__ */ x(T, {
|
|
383
431
|
id: "myb-prog-weeks",
|
|
384
432
|
type: "number",
|
|
385
433
|
min: 1,
|
|
386
|
-
value:
|
|
387
|
-
onChange: (e) =>
|
|
388
|
-
...
|
|
434
|
+
value: B.weeks,
|
|
435
|
+
onChange: (e) => U({
|
|
436
|
+
...B,
|
|
389
437
|
weeks: e.target.value
|
|
390
438
|
}),
|
|
391
439
|
placeholder: "8"
|
|
392
440
|
})]
|
|
393
441
|
}),
|
|
394
|
-
/* @__PURE__ */
|
|
442
|
+
/* @__PURE__ */ S("div", {
|
|
395
443
|
className: "space-y-1.5",
|
|
396
|
-
children: [/* @__PURE__ */
|
|
444
|
+
children: [/* @__PURE__ */ x(E, {
|
|
397
445
|
htmlFor: "myb-prog-days",
|
|
398
446
|
children: "Days / week"
|
|
399
|
-
}), /* @__PURE__ */
|
|
447
|
+
}), /* @__PURE__ */ x(T, {
|
|
400
448
|
id: "myb-prog-days",
|
|
401
449
|
type: "number",
|
|
402
450
|
min: 1,
|
|
403
451
|
max: 7,
|
|
404
|
-
value:
|
|
405
|
-
onChange: (e) =>
|
|
406
|
-
...
|
|
452
|
+
value: B.daysPerWeek,
|
|
453
|
+
onChange: (e) => U({
|
|
454
|
+
...B,
|
|
407
455
|
daysPerWeek: e.target.value
|
|
408
456
|
}),
|
|
409
457
|
placeholder: "4"
|
|
410
458
|
})]
|
|
411
459
|
}),
|
|
412
|
-
/* @__PURE__ */
|
|
460
|
+
/* @__PURE__ */ S("div", {
|
|
413
461
|
className: "space-y-1.5",
|
|
414
|
-
children: [/* @__PURE__ */
|
|
462
|
+
children: [/* @__PURE__ */ x(E, {
|
|
415
463
|
htmlFor: "myb-prog-start",
|
|
416
464
|
children: "Start date"
|
|
417
|
-
}), /* @__PURE__ */
|
|
465
|
+
}), /* @__PURE__ */ x(T, {
|
|
418
466
|
id: "myb-prog-start",
|
|
419
467
|
type: "date",
|
|
420
|
-
value:
|
|
421
|
-
onChange: (e) =>
|
|
422
|
-
...
|
|
468
|
+
value: B.startDate,
|
|
469
|
+
onChange: (e) => U({
|
|
470
|
+
...B,
|
|
423
471
|
startDate: e.target.value
|
|
424
472
|
})
|
|
425
473
|
})]
|
|
@@ -428,15 +476,15 @@ function z() {
|
|
|
428
476
|
})
|
|
429
477
|
]
|
|
430
478
|
}),
|
|
431
|
-
/* @__PURE__ */
|
|
479
|
+
/* @__PURE__ */ S(oe, { children: [/* @__PURE__ */ x(C, {
|
|
432
480
|
variant: "outline",
|
|
433
|
-
onClick: () =>
|
|
434
|
-
disabled:
|
|
481
|
+
onClick: () => w(!1),
|
|
482
|
+
disabled: K.isPending,
|
|
435
483
|
children: "Cancel"
|
|
436
|
-
}), /* @__PURE__ */
|
|
437
|
-
onClick: () => void
|
|
438
|
-
disabled:
|
|
439
|
-
children:
|
|
484
|
+
}), /* @__PURE__ */ x(C, {
|
|
485
|
+
onClick: () => void me(),
|
|
486
|
+
disabled: K.isPending,
|
|
487
|
+
children: K.isPending ? "Creating…" : "Create program"
|
|
440
488
|
})] })
|
|
441
489
|
]
|
|
442
490
|
})
|
|
@@ -445,6 +493,6 @@ function z() {
|
|
|
445
493
|
});
|
|
446
494
|
}
|
|
447
495
|
//#endregion
|
|
448
|
-
export {
|
|
496
|
+
export { U as ProgramsPage };
|
|
449
497
|
|
|
450
498
|
//# sourceMappingURL=ProgramsPage.js.map
|