@burdenoff/microfe-mybodyshield 2026.705.2 → 2026.706.2
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/_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/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +13 -0
- package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +14 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
- 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 +5 -4
- 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,52 @@
|
|
|
1
1
|
import { useMyBodyShield as e } from "../../context/MyBodyShieldContext.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { AnimatePresence as t } from "../../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.js";
|
|
3
|
+
import { motion as n } from "../../../node_modules/framer-motion/dist/es/render/components/motion/proxy.js";
|
|
4
|
+
import { useReducedMotion as r } from "../../../node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js";
|
|
5
|
+
import { PageLayout as i } from "../../components/PageLayout.js";
|
|
6
|
+
import { formatDate as a } from "../../utils/formatters.js";
|
|
7
|
+
import { StatusBadge as o } from "../../components/StatusBadge.js";
|
|
8
|
+
import { ErrorView as s, LoadingView as c } from "../../components/StateViews.js";
|
|
9
|
+
import { EmptyState as l } from "../../components/EmptyState.js";
|
|
10
|
+
import { IconChip as u } from "../_shared/visuals.js";
|
|
8
11
|
import "../../context/index.js";
|
|
9
|
-
import { useMybCoaching as
|
|
12
|
+
import { useMybCoaching as d, useMybCreateCoaching as f, useMybTransitionCoaching as p } from "../../hooks/useMyBodyShieldApi.js";
|
|
10
13
|
import "../../hooks/index.js";
|
|
11
|
-
import { FilterTabs as
|
|
12
|
-
import { MybDiscussion as
|
|
13
|
-
import { UserSearchSelect as
|
|
14
|
+
import { FilterTabs as m } from "../../components/FilterTabs.js";
|
|
15
|
+
import { MybDiscussion as h } from "../../components/MybDiscussion.js";
|
|
16
|
+
import { UserSearchSelect as g } from "../../components/UserSearchSelect.js";
|
|
14
17
|
import "../../components/index.js";
|
|
15
|
-
import { useMemo as
|
|
16
|
-
import { CalendarClock as
|
|
17
|
-
import { jsx as
|
|
18
|
-
import { Button as
|
|
18
|
+
import { useMemo as _, useState as v } from "react";
|
|
19
|
+
import { CalendarClock as y, CalendarX as b, Check as x, ChevronDown as S, ChevronUp as C, Dumbbell as w, HeartHandshake as T, LineChart as E, MessageSquare as D, Minus as O, Plus as k, Salad as A, User as j } from "lucide-react";
|
|
20
|
+
import { jsx as M, jsxs as N } from "react/jsx-runtime";
|
|
21
|
+
import { Button as P, GlassCard as F, Input as I, Label as L, ResponsiveDialog as R, ResponsiveDialogContent as z, ResponsiveDialogDescription as B, ResponsiveDialogFooter as V, ResponsiveDialogHeader as H, ResponsiveDialogTitle as U, Switch as W } from "@burdenoff/fe-libs/ui";
|
|
19
22
|
//#region src/mybodyshield/pages/coaching/CoachingPage.tsx
|
|
20
|
-
var
|
|
23
|
+
var G = [
|
|
21
24
|
"PENDING",
|
|
22
25
|
"ACTIVE",
|
|
23
26
|
"PAUSED",
|
|
24
27
|
"ENDED"
|
|
25
|
-
],
|
|
28
|
+
], K = [
|
|
29
|
+
.16,
|
|
30
|
+
1,
|
|
31
|
+
.3,
|
|
32
|
+
1
|
|
33
|
+
], q = {
|
|
34
|
+
hidden: {},
|
|
35
|
+
show: { transition: { staggerChildren: .06 } }
|
|
36
|
+
}, J = {
|
|
37
|
+
hidden: {
|
|
38
|
+
opacity: 0,
|
|
39
|
+
y: 12
|
|
40
|
+
},
|
|
41
|
+
show: {
|
|
42
|
+
opacity: 1,
|
|
43
|
+
y: 0,
|
|
44
|
+
transition: {
|
|
45
|
+
duration: .35,
|
|
46
|
+
ease: K
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}, Y = {
|
|
26
50
|
PENDING: [{
|
|
27
51
|
to: "ACTIVE",
|
|
28
52
|
label: "Accept",
|
|
@@ -48,10 +72,10 @@ var V = [
|
|
|
48
72
|
}],
|
|
49
73
|
ENDED: []
|
|
50
74
|
};
|
|
51
|
-
function
|
|
75
|
+
function X(e) {
|
|
52
76
|
return e.length <= 10 ? e : `${e.slice(0, 8)}…`;
|
|
53
77
|
}
|
|
54
|
-
function
|
|
78
|
+
function Z(e) {
|
|
55
79
|
return {
|
|
56
80
|
memberId: e.userId,
|
|
57
81
|
memberName: e.displayName,
|
|
@@ -63,30 +87,30 @@ function W(e) {
|
|
|
63
87
|
shareMetrics: !0
|
|
64
88
|
};
|
|
65
89
|
}
|
|
66
|
-
function
|
|
67
|
-
return /* @__PURE__ */
|
|
90
|
+
function Q({ id: e, label: t, description: n, checked: r, onChange: i }) {
|
|
91
|
+
return /* @__PURE__ */ N("div", {
|
|
68
92
|
className: "flex items-center justify-between gap-4 rounded-xl bg-bg-sunken/60 p-3",
|
|
69
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ N("div", {
|
|
70
94
|
className: "min-w-0",
|
|
71
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ M(L, {
|
|
72
96
|
htmlFor: e,
|
|
73
97
|
className: "cursor-pointer",
|
|
74
98
|
children: t
|
|
75
|
-
}), /* @__PURE__ */
|
|
99
|
+
}), /* @__PURE__ */ M("p", {
|
|
76
100
|
className: "text-xs text-text-tertiary",
|
|
77
101
|
children: n
|
|
78
102
|
})]
|
|
79
|
-
}), /* @__PURE__ */
|
|
103
|
+
}), /* @__PURE__ */ M(W, {
|
|
80
104
|
id: e,
|
|
81
105
|
checked: r,
|
|
82
106
|
onCheckedChange: i
|
|
83
107
|
})]
|
|
84
108
|
});
|
|
85
109
|
}
|
|
86
|
-
function
|
|
87
|
-
let r =
|
|
88
|
-
e || (a(
|
|
89
|
-
},
|
|
110
|
+
function ee({ open: e, onOpenChange: t, defaultMember: n }) {
|
|
111
|
+
let r = f(), [i, a] = v(() => Z(n)), [o, s] = v(null), c = (e) => {
|
|
112
|
+
e || (a(Z(n)), s(null)), t(e);
|
|
113
|
+
}, l = async () => {
|
|
90
114
|
let e = i.coachId.trim(), o = i.memberId.trim();
|
|
91
115
|
if (!e) {
|
|
92
116
|
s("Coach user id is required.");
|
|
@@ -106,25 +130,25 @@ function K({ open: e, onOpenChange: t, defaultMember: n }) {
|
|
|
106
130
|
shareMetrics: i.shareMetrics
|
|
107
131
|
};
|
|
108
132
|
try {
|
|
109
|
-
await r.mutateAsync(c), a(
|
|
133
|
+
await r.mutateAsync(c), a(Z(n)), t(!1);
|
|
110
134
|
} catch (e) {
|
|
111
135
|
s(e instanceof Error ? e.message : "Failed to create coaching relationship.");
|
|
112
136
|
}
|
|
113
137
|
};
|
|
114
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ M(R, {
|
|
115
139
|
open: e,
|
|
116
140
|
onOpenChange: c,
|
|
117
|
-
children: /* @__PURE__ */
|
|
141
|
+
children: /* @__PURE__ */ N(z, { children: [/* @__PURE__ */ N(H, { children: [/* @__PURE__ */ M(U, { children: "New coaching" }), /* @__PURE__ */ M(B, { children: "Link a coach and member, and choose exactly what training, nutrition and progress data is shared." })] }), /* @__PURE__ */ N("form", {
|
|
118
142
|
className: "space-y-4",
|
|
119
143
|
onSubmit: (e) => {
|
|
120
|
-
e.preventDefault(),
|
|
144
|
+
e.preventDefault(), l();
|
|
121
145
|
},
|
|
122
146
|
children: [
|
|
123
|
-
o && /* @__PURE__ */
|
|
147
|
+
o && /* @__PURE__ */ M("p", {
|
|
124
148
|
className: "rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
125
149
|
children: o
|
|
126
150
|
}),
|
|
127
|
-
/* @__PURE__ */
|
|
151
|
+
/* @__PURE__ */ M(g, {
|
|
128
152
|
label: "Coach",
|
|
129
153
|
required: !0,
|
|
130
154
|
htmlId: "myb-coaching-coach",
|
|
@@ -136,7 +160,7 @@ function K({ open: e, onOpenChange: t, defaultMember: n }) {
|
|
|
136
160
|
coachName: t
|
|
137
161
|
}))
|
|
138
162
|
}),
|
|
139
|
-
/* @__PURE__ */
|
|
163
|
+
/* @__PURE__ */ M(g, {
|
|
140
164
|
label: "Member",
|
|
141
165
|
htmlId: "myb-coaching-member",
|
|
142
166
|
userId: i.memberId,
|
|
@@ -147,12 +171,12 @@ function K({ open: e, onOpenChange: t, defaultMember: n }) {
|
|
|
147
171
|
memberName: t
|
|
148
172
|
}))
|
|
149
173
|
}),
|
|
150
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ N("div", {
|
|
151
175
|
className: "space-y-2",
|
|
152
|
-
children: [/* @__PURE__ */
|
|
176
|
+
children: [/* @__PURE__ */ M(L, {
|
|
153
177
|
htmlFor: "myb-coaching-specialty",
|
|
154
178
|
children: "Specialty"
|
|
155
|
-
}), /* @__PURE__ */
|
|
179
|
+
}), /* @__PURE__ */ M(I, {
|
|
156
180
|
id: "myb-coaching-specialty",
|
|
157
181
|
value: i.specialty,
|
|
158
182
|
onChange: (e) => a((t) => ({
|
|
@@ -162,14 +186,14 @@ function K({ open: e, onOpenChange: t, defaultMember: n }) {
|
|
|
162
186
|
placeholder: "e.g., Strength & conditioning"
|
|
163
187
|
})]
|
|
164
188
|
}),
|
|
165
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ N("div", {
|
|
166
190
|
className: "space-y-2",
|
|
167
191
|
children: [
|
|
168
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ M("p", {
|
|
169
193
|
className: "text-sm font-medium text-text-primary",
|
|
170
194
|
children: "Shared with the coach"
|
|
171
195
|
}),
|
|
172
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ M(Q, {
|
|
173
197
|
id: "myb-coaching-share-workouts",
|
|
174
198
|
label: "Workouts",
|
|
175
199
|
description: "Programs, sessions and logged sets.",
|
|
@@ -179,7 +203,7 @@ function K({ open: e, onOpenChange: t, defaultMember: n }) {
|
|
|
179
203
|
shareWorkouts: e
|
|
180
204
|
}))
|
|
181
205
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ M(Q, {
|
|
183
207
|
id: "myb-coaching-share-nutrition",
|
|
184
208
|
label: "Nutrition",
|
|
185
209
|
description: "Plans, meals and daily macros.",
|
|
@@ -189,7 +213,7 @@ function K({ open: e, onOpenChange: t, defaultMember: n }) {
|
|
|
189
213
|
shareNutrition: e
|
|
190
214
|
}))
|
|
191
215
|
}),
|
|
192
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ M(Q, {
|
|
193
217
|
id: "myb-coaching-share-metrics",
|
|
194
218
|
label: "Metrics",
|
|
195
219
|
description: "Body metrics and recovery logs.",
|
|
@@ -201,13 +225,13 @@ function K({ open: e, onOpenChange: t, defaultMember: n }) {
|
|
|
201
225
|
})
|
|
202
226
|
]
|
|
203
227
|
}),
|
|
204
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ N(V, { children: [/* @__PURE__ */ M(P, {
|
|
205
229
|
type: "button",
|
|
206
230
|
variant: "outline",
|
|
207
231
|
onClick: () => c(!1),
|
|
208
232
|
disabled: r.isPending,
|
|
209
233
|
children: "Cancel"
|
|
210
|
-
}), /* @__PURE__ */
|
|
234
|
+
}), /* @__PURE__ */ M(P, {
|
|
211
235
|
type: "submit",
|
|
212
236
|
disabled: r.isPending,
|
|
213
237
|
children: r.isPending ? "Creating…" : "Create coaching"
|
|
@@ -216,231 +240,276 @@ function K({ open: e, onOpenChange: t, defaultMember: n }) {
|
|
|
216
240
|
})] })
|
|
217
241
|
});
|
|
218
242
|
}
|
|
219
|
-
function
|
|
220
|
-
let r = t, i = n ?
|
|
221
|
-
return /* @__PURE__ */
|
|
243
|
+
function $({ label: e, icon: t, on: n }) {
|
|
244
|
+
let r = t, i = n ? x : O;
|
|
245
|
+
return /* @__PURE__ */ N("span", {
|
|
222
246
|
"aria-label": `${e} ${n ? "shared" : "not shared"}`,
|
|
223
|
-
className: `inline-flex items-center gap-1 rounded-full
|
|
247
|
+
className: `inline-flex items-center gap-1.5 rounded-full py-0.5 pl-1 pr-2.5 text-xs font-medium ${n ? "bg-status-success-bg-subtle text-status-success-text ring-1 ring-inset ring-[color-mix(in_oklab,var(--color-status-success-text)_28%,transparent)]" : "bg-bg-sunken text-text-tertiary ring-1 ring-inset ring-border-seam"}`,
|
|
224
248
|
children: [
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
-
|
|
227
|
-
"
|
|
249
|
+
/* @__PURE__ */ M("span", {
|
|
250
|
+
"aria-hidden": "true",
|
|
251
|
+
className: `inline-flex size-4 items-center justify-center rounded-full ${n ? "bg-[color-mix(in_oklab,var(--color-status-success-text)_22%,transparent)]" : "bg-[color-mix(in_oklab,var(--color-text-tertiary)_18%,transparent)]"}`,
|
|
252
|
+
children: /* @__PURE__ */ M(i, { className: "h-2.5 w-2.5" })
|
|
228
253
|
}),
|
|
229
|
-
|
|
230
|
-
/* @__PURE__ */ O(i, {
|
|
254
|
+
/* @__PURE__ */ M(r, {
|
|
231
255
|
className: "h-3 w-3",
|
|
232
256
|
"aria-hidden": "true"
|
|
233
257
|
}),
|
|
234
|
-
/* @__PURE__ */
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
258
|
+
/* @__PURE__ */ N("span", { children: [
|
|
259
|
+
e,
|
|
260
|
+
" · ",
|
|
261
|
+
n ? "On" : "Off"
|
|
262
|
+
] })
|
|
238
263
|
]
|
|
239
264
|
});
|
|
240
265
|
}
|
|
241
|
-
function
|
|
242
|
-
let
|
|
243
|
-
return /* @__PURE__ */
|
|
266
|
+
function te({ relationship: e, currentUserId: i, busy: s, onTransition: c }) {
|
|
267
|
+
let l = !!i && e.coachId === i, d = !!i && e.memberId === i, f = Y[e.status], p = e.status === "ACTIVE" || e.status === "PAUSED", [m, g] = v(!1), _ = r();
|
|
268
|
+
return /* @__PURE__ */ N(F, {
|
|
244
269
|
treatment: "glass",
|
|
245
|
-
|
|
270
|
+
glow: e.status === "ACTIVE",
|
|
271
|
+
className: "flex h-full flex-col gap-4 p-5 transition-shadow hover:shadow-float" + (e.status === "PENDING" ? " ring-1 ring-inset ring-[color-mix(in_oklab,var(--color-status-warning-text)_35%,transparent)]" : ""),
|
|
246
272
|
children: [
|
|
247
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ N("div", {
|
|
248
274
|
className: "flex items-start justify-between gap-3",
|
|
249
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ N("div", {
|
|
250
276
|
className: "flex min-w-0 items-start gap-3",
|
|
251
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ M(u, { icon: /* @__PURE__ */ M(T, { className: "h-4 w-4" }) }), /* @__PURE__ */ N("div", {
|
|
252
278
|
className: "min-w-0",
|
|
253
|
-
children: [/* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ M("p", {
|
|
254
280
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
255
281
|
children: e.specialty?.trim() || "Coaching relationship"
|
|
256
|
-
}), /* @__PURE__ */
|
|
282
|
+
}), /* @__PURE__ */ M("p", {
|
|
257
283
|
className: "text-xs text-text-tertiary",
|
|
258
284
|
children: "Coach ↔ member"
|
|
259
285
|
})]
|
|
260
286
|
})]
|
|
261
|
-
}), /* @__PURE__ */
|
|
287
|
+
}), /* @__PURE__ */ M(o, { status: e.status })]
|
|
262
288
|
}),
|
|
263
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ N("div", {
|
|
264
290
|
className: "grid grid-cols-2 gap-3",
|
|
265
|
-
children: [/* @__PURE__ */
|
|
266
|
-
className: "rounded-lg bg-bg-sunken/60 p-2.5",
|
|
267
|
-
children: [/* @__PURE__ */
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
children:
|
|
291
|
+
children: [/* @__PURE__ */ N("div", {
|
|
292
|
+
className: "flex items-center gap-2.5 rounded-lg bg-bg-sunken/60 p-2.5",
|
|
293
|
+
children: [/* @__PURE__ */ M("span", {
|
|
294
|
+
"aria-hidden": "true",
|
|
295
|
+
className: `flex size-8 shrink-0 items-center justify-center rounded-full ring-1 ring-inset ${l ? "bg-[color-mix(in_oklab,var(--color-action-primary-bg)_16%,transparent)] text-action-primary-bg ring-[color-mix(in_oklab,var(--color-action-primary-bg)_40%,transparent)]" : "bg-bg-surface text-text-tertiary ring-border-seam"}`,
|
|
296
|
+
children: /* @__PURE__ */ M(j, { className: "h-4 w-4" })
|
|
297
|
+
}), /* @__PURE__ */ N("div", {
|
|
298
|
+
className: "min-w-0",
|
|
299
|
+
children: [/* @__PURE__ */ M("p", {
|
|
300
|
+
className: "text-[11px] font-medium uppercase tracking-wide text-text-tertiary",
|
|
301
|
+
children: "Coach"
|
|
302
|
+
}), /* @__PURE__ */ M("p", {
|
|
303
|
+
className: "mt-0.5 truncate text-sm font-medium text-text-primary",
|
|
304
|
+
title: e.coachId,
|
|
305
|
+
children: l ? "You" : `#${X(e.coachId)}`
|
|
306
|
+
})]
|
|
274
307
|
})]
|
|
275
|
-
}), /* @__PURE__ */
|
|
276
|
-
className: "rounded-lg bg-bg-sunken/60 p-2.5",
|
|
277
|
-
children: [/* @__PURE__ */
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
children:
|
|
308
|
+
}), /* @__PURE__ */ N("div", {
|
|
309
|
+
className: "flex items-center gap-2.5 rounded-lg bg-bg-sunken/60 p-2.5",
|
|
310
|
+
children: [/* @__PURE__ */ M("span", {
|
|
311
|
+
"aria-hidden": "true",
|
|
312
|
+
className: `flex size-8 shrink-0 items-center justify-center rounded-full ring-1 ring-inset ${d ? "bg-[color-mix(in_oklab,var(--color-action-primary-bg)_16%,transparent)] text-action-primary-bg ring-[color-mix(in_oklab,var(--color-action-primary-bg)_40%,transparent)]" : "bg-bg-surface text-text-tertiary ring-border-seam"}`,
|
|
313
|
+
children: /* @__PURE__ */ M(j, { className: "h-4 w-4" })
|
|
314
|
+
}), /* @__PURE__ */ N("div", {
|
|
315
|
+
className: "min-w-0",
|
|
316
|
+
children: [/* @__PURE__ */ M("p", {
|
|
317
|
+
className: "text-[11px] font-medium uppercase tracking-wide text-text-tertiary",
|
|
318
|
+
children: "Member"
|
|
319
|
+
}), /* @__PURE__ */ M("p", {
|
|
320
|
+
className: "mt-0.5 truncate text-sm font-medium text-text-primary",
|
|
321
|
+
title: e.memberId,
|
|
322
|
+
children: d ? "You" : `#${X(e.memberId)}`
|
|
323
|
+
})]
|
|
284
324
|
})]
|
|
285
325
|
})]
|
|
286
326
|
}),
|
|
287
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ N("div", {
|
|
288
328
|
className: "flex flex-wrap gap-1.5",
|
|
289
329
|
children: [
|
|
290
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ M($, {
|
|
291
331
|
label: "Workouts",
|
|
292
|
-
icon:
|
|
332
|
+
icon: w,
|
|
293
333
|
on: e.shareWorkouts
|
|
294
334
|
}),
|
|
295
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ M($, {
|
|
296
336
|
label: "Nutrition",
|
|
297
|
-
icon:
|
|
337
|
+
icon: A,
|
|
298
338
|
on: e.shareNutrition
|
|
299
339
|
}),
|
|
300
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ M($, {
|
|
301
341
|
label: "Metrics",
|
|
302
|
-
icon:
|
|
342
|
+
icon: E,
|
|
303
343
|
on: e.shareMetrics
|
|
304
344
|
})
|
|
305
345
|
]
|
|
306
346
|
}),
|
|
307
|
-
(e.startedAt || e.endedAt) && /* @__PURE__ */
|
|
347
|
+
(e.startedAt || e.endedAt) && /* @__PURE__ */ N("div", {
|
|
308
348
|
className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-text-tertiary",
|
|
309
|
-
children: [e.startedAt && /* @__PURE__ */
|
|
349
|
+
children: [e.startedAt && /* @__PURE__ */ N("span", {
|
|
310
350
|
className: "inline-flex items-center gap-1",
|
|
311
351
|
children: [
|
|
312
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ M(y, { className: "h-3.5 w-3.5" }),
|
|
313
353
|
"Started ",
|
|
314
|
-
|
|
354
|
+
a(e.startedAt)
|
|
315
355
|
]
|
|
316
|
-
}), e.endedAt && /* @__PURE__ */
|
|
356
|
+
}), e.endedAt && /* @__PURE__ */ N("span", {
|
|
317
357
|
className: "inline-flex items-center gap-1",
|
|
318
358
|
children: [
|
|
319
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ M(b, { className: "h-3.5 w-3.5" }),
|
|
320
360
|
"Ended ",
|
|
321
|
-
|
|
361
|
+
a(e.endedAt)
|
|
322
362
|
]
|
|
323
363
|
})]
|
|
324
364
|
}),
|
|
325
|
-
|
|
365
|
+
f.length > 0 && /* @__PURE__ */ M("div", {
|
|
326
366
|
className: "mt-auto flex flex-wrap gap-2 pt-1",
|
|
327
|
-
children:
|
|
367
|
+
children: f.map((t) => /* @__PURE__ */ M(P, {
|
|
328
368
|
size: "sm",
|
|
329
369
|
variant: t.primary ? void 0 : "outline",
|
|
330
|
-
disabled:
|
|
331
|
-
onClick: () =>
|
|
370
|
+
disabled: s,
|
|
371
|
+
onClick: () => c(e.id, t.to),
|
|
332
372
|
children: t.label
|
|
333
373
|
}, t.to))
|
|
334
374
|
}),
|
|
335
|
-
|
|
336
|
-
className: `border-t border-border-seam pt-3 ${
|
|
337
|
-
children: [/* @__PURE__ */
|
|
375
|
+
p && /* @__PURE__ */ N("div", {
|
|
376
|
+
className: `border-t border-border-seam pt-3 ${f.length === 0 ? "mt-auto" : ""}`,
|
|
377
|
+
children: [/* @__PURE__ */ N("button", {
|
|
338
378
|
type: "button",
|
|
339
|
-
onClick: () =>
|
|
340
|
-
"aria-expanded":
|
|
379
|
+
onClick: () => g((e) => !e),
|
|
380
|
+
"aria-expanded": m,
|
|
341
381
|
className: "inline-flex items-center gap-1.5 text-sm font-medium text-accent hover:underline",
|
|
342
382
|
children: [
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
|
|
345
|
-
|
|
383
|
+
/* @__PURE__ */ M(D, { className: "h-4 w-4" }),
|
|
384
|
+
m ? "Hide discussion" : "Discussion",
|
|
385
|
+
M(m ? C : S, { className: "h-4 w-4" })
|
|
346
386
|
]
|
|
347
|
-
}),
|
|
348
|
-
|
|
349
|
-
children: /* @__PURE__ */
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
387
|
+
}), /* @__PURE__ */ M(t, {
|
|
388
|
+
initial: !1,
|
|
389
|
+
children: m && /* @__PURE__ */ M(n.div, {
|
|
390
|
+
initial: _ ? !1 : {
|
|
391
|
+
opacity: 0,
|
|
392
|
+
height: 0
|
|
393
|
+
},
|
|
394
|
+
animate: {
|
|
395
|
+
opacity: 1,
|
|
396
|
+
height: "auto"
|
|
397
|
+
},
|
|
398
|
+
exit: _ ? { opacity: 0 } : {
|
|
399
|
+
opacity: 0,
|
|
400
|
+
height: 0
|
|
401
|
+
},
|
|
402
|
+
transition: _ ? { duration: 0 } : {
|
|
403
|
+
duration: .25,
|
|
404
|
+
ease: K
|
|
405
|
+
},
|
|
406
|
+
className: "overflow-hidden",
|
|
407
|
+
children: /* @__PURE__ */ M("div", {
|
|
408
|
+
className: "mt-3",
|
|
409
|
+
children: /* @__PURE__ */ M(h, {
|
|
410
|
+
entityType: "mybodyshield-coaching",
|
|
411
|
+
entityId: e.id,
|
|
412
|
+
title: "Coaching discussion",
|
|
413
|
+
description: "A private thread between the coach and member."
|
|
414
|
+
})
|
|
415
|
+
})
|
|
416
|
+
}, "discussion")
|
|
355
417
|
})]
|
|
356
418
|
})
|
|
357
419
|
]
|
|
358
420
|
});
|
|
359
421
|
}
|
|
360
|
-
function
|
|
361
|
-
let { currentUser:
|
|
422
|
+
function ne() {
|
|
423
|
+
let { currentUser: t } = e(), a = r(), [o, u] = v("ALL"), [f, h] = v(!1), [g, y] = v(null), [b, x] = v(null), S = d(), C = p(), w = S.data ?? [], E = _(() => {
|
|
362
424
|
let e = {
|
|
363
425
|
PENDING: 0,
|
|
364
426
|
ACTIVE: 0,
|
|
365
427
|
PAUSED: 0,
|
|
366
428
|
ENDED: 0
|
|
367
429
|
};
|
|
368
|
-
for (let t of
|
|
430
|
+
for (let t of w) e[t.status] += 1;
|
|
369
431
|
return e;
|
|
370
|
-
}, [
|
|
432
|
+
}, [w]), D = _(() => [{
|
|
371
433
|
value: "ALL",
|
|
372
434
|
label: "All",
|
|
373
|
-
count:
|
|
374
|
-
}, ...
|
|
435
|
+
count: w.length
|
|
436
|
+
}, ...G.map((e) => ({
|
|
375
437
|
value: e,
|
|
376
438
|
label: e.charAt(0) + e.slice(1).toLowerCase(),
|
|
377
|
-
count:
|
|
378
|
-
}))], [
|
|
379
|
-
|
|
439
|
+
count: E[e]
|
|
440
|
+
}))], [w.length, E]), O = _(() => o === "ALL" ? w : w.filter((e) => e.status === o), [w, o]), A = async (e, t) => {
|
|
441
|
+
y(e), x(null);
|
|
380
442
|
try {
|
|
381
|
-
await
|
|
443
|
+
await C.mutateAsync({
|
|
382
444
|
id: e,
|
|
383
445
|
status: t
|
|
384
446
|
});
|
|
385
447
|
} catch (e) {
|
|
386
|
-
|
|
448
|
+
x(e instanceof Error ? e.message : "Failed to update the relationship.");
|
|
387
449
|
} finally {
|
|
388
|
-
|
|
450
|
+
y(null);
|
|
389
451
|
}
|
|
390
|
-
}, j =
|
|
391
|
-
return /* @__PURE__ */
|
|
452
|
+
}, j = S.isLoading && !S.data;
|
|
453
|
+
return /* @__PURE__ */ N(i, {
|
|
392
454
|
title: "Coaching",
|
|
393
455
|
description: "Coach ↔ member relationships and what's shared.",
|
|
394
|
-
actions: /* @__PURE__ */
|
|
395
|
-
onClick: () =>
|
|
396
|
-
children: [/* @__PURE__ */
|
|
456
|
+
actions: /* @__PURE__ */ N(P, {
|
|
457
|
+
onClick: () => h(!0),
|
|
458
|
+
children: [/* @__PURE__ */ M(k, { className: "mr-2 h-4 w-4" }), "New coaching"]
|
|
397
459
|
}),
|
|
398
460
|
children: [
|
|
399
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ M("div", {
|
|
400
462
|
className: "mb-6",
|
|
401
|
-
children: /* @__PURE__ */
|
|
402
|
-
options:
|
|
403
|
-
value:
|
|
404
|
-
onChange:
|
|
463
|
+
children: /* @__PURE__ */ M(m, {
|
|
464
|
+
options: D,
|
|
465
|
+
value: o,
|
|
466
|
+
onChange: u
|
|
405
467
|
})
|
|
406
468
|
}),
|
|
407
|
-
|
|
469
|
+
b && /* @__PURE__ */ M("p", {
|
|
408
470
|
className: "mb-4 rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
409
|
-
children:
|
|
471
|
+
children: b
|
|
410
472
|
}),
|
|
411
|
-
j ? /* @__PURE__ */
|
|
473
|
+
j ? /* @__PURE__ */ M(c, { label: "Loading coaching relationships…" }) : S.isError ? /* @__PURE__ */ M(s, {
|
|
412
474
|
message: "We couldn't load your coaching relationships.",
|
|
413
|
-
onRetry: () => void
|
|
414
|
-
}) :
|
|
475
|
+
onRetry: () => void S.refetch()
|
|
476
|
+
}) : O.length === 0 ? /* @__PURE__ */ M(l, {
|
|
415
477
|
illustration: "empty-data",
|
|
416
|
-
icon: /* @__PURE__ */
|
|
417
|
-
title:
|
|
418
|
-
description:
|
|
419
|
-
action: /* @__PURE__ */
|
|
420
|
-
onClick: () =>
|
|
421
|
-
children: [/* @__PURE__ */
|
|
478
|
+
icon: /* @__PURE__ */ M(T, { className: "h-10 w-10" }),
|
|
479
|
+
title: w.length === 0 ? "No coaching relationships" : "No relationships match this filter",
|
|
480
|
+
description: w.length === 0 ? "Connect a coach and a member to start sharing training, nutrition and progress data." : "Try a different status filter, or create a new coaching relationship.",
|
|
481
|
+
action: /* @__PURE__ */ N(P, {
|
|
482
|
+
onClick: () => h(!0),
|
|
483
|
+
children: [/* @__PURE__ */ M(k, { className: "mr-2 h-4 w-4" }), "New coaching"]
|
|
422
484
|
})
|
|
423
|
-
}) : /* @__PURE__ */
|
|
485
|
+
}) : /* @__PURE__ */ M(n.div, {
|
|
424
486
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
487
|
+
variants: a ? void 0 : q,
|
|
488
|
+
initial: a ? !1 : "hidden",
|
|
489
|
+
animate: "show",
|
|
490
|
+
children: O.map((e) => /* @__PURE__ */ M(n.div, {
|
|
491
|
+
className: "h-full",
|
|
492
|
+
variants: a ? void 0 : J,
|
|
493
|
+
children: /* @__PURE__ */ M(te, {
|
|
494
|
+
relationship: e,
|
|
495
|
+
currentUserId: t?.id,
|
|
496
|
+
busy: g === e.id,
|
|
497
|
+
onTransition: (e, t) => void A(e, t)
|
|
498
|
+
})
|
|
430
499
|
}, e.id))
|
|
431
500
|
}),
|
|
432
|
-
/* @__PURE__ */
|
|
433
|
-
open:
|
|
434
|
-
onOpenChange:
|
|
501
|
+
/* @__PURE__ */ M(ee, {
|
|
502
|
+
open: f,
|
|
503
|
+
onOpenChange: h,
|
|
435
504
|
defaultMember: {
|
|
436
|
-
userId:
|
|
437
|
-
displayName:
|
|
505
|
+
userId: t?.id ?? "",
|
|
506
|
+
displayName: t?.name || t?.email || ""
|
|
438
507
|
}
|
|
439
508
|
})
|
|
440
509
|
]
|
|
441
510
|
});
|
|
442
511
|
}
|
|
443
512
|
//#endregion
|
|
444
|
-
export {
|
|
513
|
+
export { ne as CoachingPage };
|
|
445
514
|
|
|
446
515
|
//# sourceMappingURL=CoachingPage.js.map
|