@burdenoff/microfe-mybodyshield 2026.705.1 → 2026.706.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js +10 -0
- package/dist/_virtual/__vite-optional-peer-dep_@emotion/is-prop-valid_framer-motion.js.map +1 -0
- package/dist/_virtual/_rolldown/runtime.js +5 -5
- package/dist/mybodyshield/components/DataTable.js +8 -4
- package/dist/mybodyshield/components/DataTable.js.map +1 -1
- package/dist/mybodyshield/components/EvidenceUpload.js +92 -4
- package/dist/mybodyshield/components/EvidenceUpload.js.map +1 -0
- package/dist/mybodyshield/components/FileLink.js +35 -2
- package/dist/mybodyshield/components/FileLink.js.map +1 -0
- package/dist/mybodyshield/components/MybDiscussion.js +107 -6
- package/dist/mybodyshield/components/MybDiscussion.js.map +1 -0
- package/dist/mybodyshield/components/MybTags.js +148 -4
- package/dist/mybodyshield/components/MybTags.js.map +1 -0
- package/dist/mybodyshield/components/Pagination.js.map +1 -1
- package/dist/mybodyshield/components/UserSearchSelect.js +148 -0
- package/dist/mybodyshield/components/UserSearchSelect.js.map +1 -0
- package/dist/mybodyshield/components/index.js +1 -0
- package/dist/mybodyshield/hooks/index.js +1 -0
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js +47 -27
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js.map +1 -1
- package/dist/mybodyshield/hooks/useMybComments.js +44 -2
- package/dist/mybodyshield/hooks/useMybComments.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybFiles.js +80 -3
- package/dist/mybodyshield/hooks/useMybFiles.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybTags.js +88 -2
- package/dist/mybodyshield/hooks/useMybTags.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybUsers.js +36 -0
- package/dist/mybodyshield/hooks/useMybUsers.js.map +1 -0
- package/dist/mybodyshield/pages/DashboardPage.js +444 -340
- package/dist/mybodyshield/pages/DashboardPage.js.map +1 -1
- package/dist/mybodyshield/pages/_shared/visuals.js +29 -23
- package/dist/mybodyshield/pages/_shared/visuals.js.map +1 -1
- package/dist/mybodyshield/pages/coaching/CoachingPage.js +272 -179
- package/dist/mybodyshield/pages/coaching/CoachingPage.js.map +1 -1
- package/dist/mybodyshield/pages/goals/GoalsPage.js +304 -257
- package/dist/mybodyshield/pages/goals/GoalsPage.js.map +1 -1
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js +745 -504
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js +688 -320
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramsPage.js +282 -234
- package/dist/mybodyshield/pages/programs/ProgramsPage.js.map +1 -1
- package/dist/mybodyshield/pages/progress/ProgressPage.js +447 -299
- package/dist/mybodyshield/pages/progress/ProgressPage.js.map +1 -1
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js +335 -246
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionDetailPage.js +380 -267
- package/dist/mybodyshield/pages/train/SessionDetailPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionsPage.js +111 -78
- package/dist/mybodyshield/pages/train/SessionsPage.js.map +1 -1
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +55 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +62 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +19 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +260 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +24 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +61 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +29 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +22 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +140 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +44 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +41 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +53 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +17 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +63 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +48 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +26 -0
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +72 -0
- package/dist/node_modules/framer-motion/dist/es/motion/index.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +60 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +52 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +12 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +23 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +21 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +32 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +28 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +13 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +10 -0
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +6 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +8 -0
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js +15 -0
- package/dist/node_modules/framer-motion/dist/es/utils/reduced-motion/use-reduced-motion.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +27 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +11 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js.map +1 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +9 -0
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +109 -0
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +131 -0
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +86 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js +168 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +47 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +59 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +63 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +69 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +29 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/is-browser-color.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +27 -0
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +41 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +45 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +31 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +586 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +53 -0
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +19 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +20 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +206 -0
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +58 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +37 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +38 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/store.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +42 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +30 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +137 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +13 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +22 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +12 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js +39 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js +24 -0
- package/dist/node_modules/motion-dom/dist/es/resize/handle-window.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/resize/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/stats/buffer.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/border-radius.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +35 -0
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +32 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +54 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +11 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +7 -0
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js +94 -0
- package/dist/node_modules/motion-dom/dist/es/value/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +21 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +23 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +28 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +54 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js +16 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/mask.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +18 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +10 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +26 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +66 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +34 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +17 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +14 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +8 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +6 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +15 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js.map +1 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +9 -0
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/array.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/array.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/clamp.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/easing/back.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +20 -0
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +7 -0
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +33 -0
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js +12 -0
- package/dist/node_modules/motion-utils/dist/es/errors.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +8 -0
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/global-config.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-object.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js +10 -0
- package/dist/node_modules/motion-utils/dist/es/memo.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/noop.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/pipe.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js +9 -0
- package/dist/node_modules/motion-utils/dist/es/progress.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +28 -0
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +6 -0
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js.map +1 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +10 -0
- package/dist/node_modules/motion-utils/dist/es/warn-once.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Area.js +435 -0
- package/dist/node_modules/recharts/es6/cartesian/Area.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/{LineChart.js → AreaChart.js} +5 -5
- package/dist/node_modules/recharts/es6/chart/{LineChart.js.map → AreaChart.js.map} +1 -1
- package/package.json +2 -2
- package/dist/node_modules/recharts/es6/cartesian/Line.js +0 -473
- package/dist/node_modules/recharts/es6/cartesian/Line.js.map +0 -1
|
@@ -1,26 +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
|
|
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";
|
|
12
17
|
import "../../components/index.js";
|
|
13
|
-
import { useMemo as
|
|
14
|
-
import { CalendarClock as
|
|
15
|
-
import { jsx as
|
|
16
|
-
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";
|
|
17
22
|
//#region src/mybodyshield/pages/coaching/CoachingPage.tsx
|
|
18
|
-
var
|
|
23
|
+
var G = [
|
|
19
24
|
"PENDING",
|
|
20
25
|
"ACTIVE",
|
|
21
26
|
"PAUSED",
|
|
22
27
|
"ENDED"
|
|
23
|
-
],
|
|
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 = {
|
|
24
50
|
PENDING: [{
|
|
25
51
|
to: "ACTIVE",
|
|
26
52
|
label: "Accept",
|
|
@@ -46,43 +72,45 @@ var P = [
|
|
|
46
72
|
}],
|
|
47
73
|
ENDED: []
|
|
48
74
|
};
|
|
49
|
-
function
|
|
75
|
+
function X(e) {
|
|
50
76
|
return e.length <= 10 ? e : `${e.slice(0, 8)}…`;
|
|
51
77
|
}
|
|
52
|
-
function
|
|
78
|
+
function Z(e) {
|
|
53
79
|
return {
|
|
54
|
-
memberId: e,
|
|
80
|
+
memberId: e.userId,
|
|
81
|
+
memberName: e.displayName,
|
|
55
82
|
coachId: "",
|
|
83
|
+
coachName: "",
|
|
56
84
|
specialty: "",
|
|
57
85
|
shareWorkouts: !0,
|
|
58
86
|
shareNutrition: !0,
|
|
59
87
|
shareMetrics: !0
|
|
60
88
|
};
|
|
61
89
|
}
|
|
62
|
-
function
|
|
63
|
-
return /* @__PURE__ */
|
|
90
|
+
function Q({ id: e, label: t, description: n, checked: r, onChange: i }) {
|
|
91
|
+
return /* @__PURE__ */ N("div", {
|
|
64
92
|
className: "flex items-center justify-between gap-4 rounded-xl bg-bg-sunken/60 p-3",
|
|
65
|
-
children: [/* @__PURE__ */
|
|
93
|
+
children: [/* @__PURE__ */ N("div", {
|
|
66
94
|
className: "min-w-0",
|
|
67
|
-
children: [/* @__PURE__ */
|
|
95
|
+
children: [/* @__PURE__ */ M(L, {
|
|
68
96
|
htmlFor: e,
|
|
69
97
|
className: "cursor-pointer",
|
|
70
98
|
children: t
|
|
71
|
-
}), /* @__PURE__ */
|
|
99
|
+
}), /* @__PURE__ */ M("p", {
|
|
72
100
|
className: "text-xs text-text-tertiary",
|
|
73
101
|
children: n
|
|
74
102
|
})]
|
|
75
|
-
}), /* @__PURE__ */
|
|
103
|
+
}), /* @__PURE__ */ M(W, {
|
|
76
104
|
id: e,
|
|
77
105
|
checked: r,
|
|
78
106
|
onCheckedChange: i
|
|
79
107
|
})]
|
|
80
108
|
});
|
|
81
109
|
}
|
|
82
|
-
function
|
|
83
|
-
let r =
|
|
84
|
-
e || (a(
|
|
85
|
-
},
|
|
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 () => {
|
|
86
114
|
let e = i.coachId.trim(), o = i.memberId.trim();
|
|
87
115
|
if (!e) {
|
|
88
116
|
s("Coach user id is required.");
|
|
@@ -102,74 +130,53 @@ function z({ open: e, onOpenChange: t, defaultMemberId: n }) {
|
|
|
102
130
|
shareMetrics: i.shareMetrics
|
|
103
131
|
};
|
|
104
132
|
try {
|
|
105
|
-
await r.mutateAsync(c), a(
|
|
133
|
+
await r.mutateAsync(c), a(Z(n)), t(!1);
|
|
106
134
|
} catch (e) {
|
|
107
135
|
s(e instanceof Error ? e.message : "Failed to create coaching relationship.");
|
|
108
136
|
}
|
|
109
137
|
};
|
|
110
|
-
return /* @__PURE__ */
|
|
138
|
+
return /* @__PURE__ */ M(R, {
|
|
111
139
|
open: e,
|
|
112
140
|
onOpenChange: c,
|
|
113
|
-
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", {
|
|
114
142
|
className: "space-y-4",
|
|
115
143
|
onSubmit: (e) => {
|
|
116
|
-
e.preventDefault(),
|
|
144
|
+
e.preventDefault(), l();
|
|
117
145
|
},
|
|
118
146
|
children: [
|
|
119
|
-
o && /* @__PURE__ */
|
|
147
|
+
o && /* @__PURE__ */ M("p", {
|
|
120
148
|
className: "rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
121
149
|
children: o
|
|
122
150
|
}),
|
|
123
|
-
/* @__PURE__ */
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
...t,
|
|
135
|
-
memberId: e.target.value
|
|
136
|
-
})),
|
|
137
|
-
placeholder: "member user id"
|
|
138
|
-
}),
|
|
139
|
-
/* @__PURE__ */ x("p", {
|
|
140
|
-
className: "text-xs text-text-tertiary",
|
|
141
|
-
children: "member user id"
|
|
142
|
-
})
|
|
143
|
-
]
|
|
151
|
+
/* @__PURE__ */ M(g, {
|
|
152
|
+
label: "Coach",
|
|
153
|
+
required: !0,
|
|
154
|
+
htmlId: "myb-coaching-coach",
|
|
155
|
+
userId: i.coachId,
|
|
156
|
+
displayName: i.coachName,
|
|
157
|
+
onSelect: ({ userId: e, displayName: t }) => a((n) => ({
|
|
158
|
+
...n,
|
|
159
|
+
coachId: e,
|
|
160
|
+
coachName: t
|
|
161
|
+
}))
|
|
144
162
|
}),
|
|
145
|
-
/* @__PURE__ */
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
onChange: (e) => a((t) => ({
|
|
156
|
-
...t,
|
|
157
|
-
coachId: e.target.value
|
|
158
|
-
})),
|
|
159
|
-
placeholder: "coach user id"
|
|
160
|
-
}),
|
|
161
|
-
/* @__PURE__ */ x("p", {
|
|
162
|
-
className: "text-xs text-text-tertiary",
|
|
163
|
-
children: "coach user id"
|
|
164
|
-
})
|
|
165
|
-
]
|
|
163
|
+
/* @__PURE__ */ M(g, {
|
|
164
|
+
label: "Member",
|
|
165
|
+
htmlId: "myb-coaching-member",
|
|
166
|
+
userId: i.memberId,
|
|
167
|
+
displayName: i.memberName,
|
|
168
|
+
onSelect: ({ userId: e, displayName: t }) => a((n) => ({
|
|
169
|
+
...n,
|
|
170
|
+
memberId: e,
|
|
171
|
+
memberName: t
|
|
172
|
+
}))
|
|
166
173
|
}),
|
|
167
|
-
/* @__PURE__ */
|
|
174
|
+
/* @__PURE__ */ N("div", {
|
|
168
175
|
className: "space-y-2",
|
|
169
|
-
children: [/* @__PURE__ */
|
|
176
|
+
children: [/* @__PURE__ */ M(L, {
|
|
170
177
|
htmlFor: "myb-coaching-specialty",
|
|
171
178
|
children: "Specialty"
|
|
172
|
-
}), /* @__PURE__ */
|
|
179
|
+
}), /* @__PURE__ */ M(I, {
|
|
173
180
|
id: "myb-coaching-specialty",
|
|
174
181
|
value: i.specialty,
|
|
175
182
|
onChange: (e) => a((t) => ({
|
|
@@ -179,14 +186,14 @@ function z({ open: e, onOpenChange: t, defaultMemberId: n }) {
|
|
|
179
186
|
placeholder: "e.g., Strength & conditioning"
|
|
180
187
|
})]
|
|
181
188
|
}),
|
|
182
|
-
/* @__PURE__ */
|
|
189
|
+
/* @__PURE__ */ N("div", {
|
|
183
190
|
className: "space-y-2",
|
|
184
191
|
children: [
|
|
185
|
-
/* @__PURE__ */
|
|
192
|
+
/* @__PURE__ */ M("p", {
|
|
186
193
|
className: "text-sm font-medium text-text-primary",
|
|
187
194
|
children: "Shared with the coach"
|
|
188
195
|
}),
|
|
189
|
-
/* @__PURE__ */
|
|
196
|
+
/* @__PURE__ */ M(Q, {
|
|
190
197
|
id: "myb-coaching-share-workouts",
|
|
191
198
|
label: "Workouts",
|
|
192
199
|
description: "Programs, sessions and logged sets.",
|
|
@@ -196,7 +203,7 @@ function z({ open: e, onOpenChange: t, defaultMemberId: n }) {
|
|
|
196
203
|
shareWorkouts: e
|
|
197
204
|
}))
|
|
198
205
|
}),
|
|
199
|
-
/* @__PURE__ */
|
|
206
|
+
/* @__PURE__ */ M(Q, {
|
|
200
207
|
id: "myb-coaching-share-nutrition",
|
|
201
208
|
label: "Nutrition",
|
|
202
209
|
description: "Plans, meals and daily macros.",
|
|
@@ -206,7 +213,7 @@ function z({ open: e, onOpenChange: t, defaultMemberId: n }) {
|
|
|
206
213
|
shareNutrition: e
|
|
207
214
|
}))
|
|
208
215
|
}),
|
|
209
|
-
/* @__PURE__ */
|
|
216
|
+
/* @__PURE__ */ M(Q, {
|
|
210
217
|
id: "myb-coaching-share-metrics",
|
|
211
218
|
label: "Metrics",
|
|
212
219
|
description: "Body metrics and recovery logs.",
|
|
@@ -218,13 +225,13 @@ function z({ open: e, onOpenChange: t, defaultMemberId: n }) {
|
|
|
218
225
|
})
|
|
219
226
|
]
|
|
220
227
|
}),
|
|
221
|
-
/* @__PURE__ */
|
|
228
|
+
/* @__PURE__ */ N(V, { children: [/* @__PURE__ */ M(P, {
|
|
222
229
|
type: "button",
|
|
223
230
|
variant: "outline",
|
|
224
231
|
onClick: () => c(!1),
|
|
225
232
|
disabled: r.isPending,
|
|
226
233
|
children: "Cancel"
|
|
227
|
-
}), /* @__PURE__ */
|
|
234
|
+
}), /* @__PURE__ */ M(P, {
|
|
228
235
|
type: "submit",
|
|
229
236
|
disabled: r.isPending,
|
|
230
237
|
children: r.isPending ? "Creating…" : "Create coaching"
|
|
@@ -233,190 +240,276 @@ function z({ open: e, onOpenChange: t, defaultMemberId: n }) {
|
|
|
233
240
|
})] })
|
|
234
241
|
});
|
|
235
242
|
}
|
|
236
|
-
function
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
243
|
+
function $({ label: e, icon: t, on: n }) {
|
|
244
|
+
let r = t, i = n ? x : O;
|
|
245
|
+
return /* @__PURE__ */ N("span", {
|
|
246
|
+
"aria-label": `${e} ${n ? "shared" : "not shared"}`,
|
|
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"}`,
|
|
248
|
+
children: [
|
|
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" })
|
|
253
|
+
}),
|
|
254
|
+
/* @__PURE__ */ M(r, {
|
|
255
|
+
className: "h-3 w-3",
|
|
256
|
+
"aria-hidden": "true"
|
|
257
|
+
}),
|
|
258
|
+
/* @__PURE__ */ N("span", { children: [
|
|
259
|
+
e,
|
|
260
|
+
" · ",
|
|
261
|
+
n ? "On" : "Off"
|
|
262
|
+
] })
|
|
263
|
+
]
|
|
240
264
|
});
|
|
241
265
|
}
|
|
242
|
-
function
|
|
243
|
-
let
|
|
244
|
-
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, {
|
|
245
269
|
treatment: "glass",
|
|
246
|
-
|
|
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)]" : ""),
|
|
247
272
|
children: [
|
|
248
|
-
/* @__PURE__ */
|
|
273
|
+
/* @__PURE__ */ N("div", {
|
|
249
274
|
className: "flex items-start justify-between gap-3",
|
|
250
|
-
children: [/* @__PURE__ */
|
|
275
|
+
children: [/* @__PURE__ */ N("div", {
|
|
251
276
|
className: "flex min-w-0 items-start gap-3",
|
|
252
|
-
children: [/* @__PURE__ */
|
|
277
|
+
children: [/* @__PURE__ */ M(u, { icon: /* @__PURE__ */ M(T, { className: "h-4 w-4" }) }), /* @__PURE__ */ N("div", {
|
|
253
278
|
className: "min-w-0",
|
|
254
|
-
children: [/* @__PURE__ */
|
|
279
|
+
children: [/* @__PURE__ */ M("p", {
|
|
255
280
|
className: "truncate text-sm font-semibold text-text-primary",
|
|
256
281
|
children: e.specialty?.trim() || "Coaching relationship"
|
|
257
|
-
}), /* @__PURE__ */
|
|
282
|
+
}), /* @__PURE__ */ M("p", {
|
|
258
283
|
className: "text-xs text-text-tertiary",
|
|
259
284
|
children: "Coach ↔ member"
|
|
260
285
|
})]
|
|
261
286
|
})]
|
|
262
|
-
}), /* @__PURE__ */
|
|
287
|
+
}), /* @__PURE__ */ M(o, { status: e.status })]
|
|
263
288
|
}),
|
|
264
|
-
/* @__PURE__ */
|
|
289
|
+
/* @__PURE__ */ N("div", {
|
|
265
290
|
className: "grid grid-cols-2 gap-3",
|
|
266
|
-
children: [/* @__PURE__ */
|
|
267
|
-
className: "rounded-lg bg-bg-sunken/60 p-2.5",
|
|
268
|
-
children: [/* @__PURE__ */
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
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
|
+
})]
|
|
275
307
|
})]
|
|
276
|
-
}), /* @__PURE__ */
|
|
277
|
-
className: "rounded-lg bg-bg-sunken/60 p-2.5",
|
|
278
|
-
children: [/* @__PURE__ */
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
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
|
+
})]
|
|
285
324
|
})]
|
|
286
325
|
})]
|
|
287
326
|
}),
|
|
288
|
-
/* @__PURE__ */
|
|
327
|
+
/* @__PURE__ */ N("div", {
|
|
289
328
|
className: "flex flex-wrap gap-1.5",
|
|
290
329
|
children: [
|
|
291
|
-
/* @__PURE__ */
|
|
330
|
+
/* @__PURE__ */ M($, {
|
|
292
331
|
label: "Workouts",
|
|
293
|
-
icon:
|
|
332
|
+
icon: w,
|
|
294
333
|
on: e.shareWorkouts
|
|
295
334
|
}),
|
|
296
|
-
/* @__PURE__ */
|
|
335
|
+
/* @__PURE__ */ M($, {
|
|
297
336
|
label: "Nutrition",
|
|
298
|
-
icon:
|
|
337
|
+
icon: A,
|
|
299
338
|
on: e.shareNutrition
|
|
300
339
|
}),
|
|
301
|
-
/* @__PURE__ */
|
|
340
|
+
/* @__PURE__ */ M($, {
|
|
302
341
|
label: "Metrics",
|
|
303
|
-
icon:
|
|
342
|
+
icon: E,
|
|
304
343
|
on: e.shareMetrics
|
|
305
344
|
})
|
|
306
345
|
]
|
|
307
346
|
}),
|
|
308
|
-
(e.startedAt || e.endedAt) && /* @__PURE__ */
|
|
347
|
+
(e.startedAt || e.endedAt) && /* @__PURE__ */ N("div", {
|
|
309
348
|
className: "flex flex-wrap items-center gap-x-4 gap-y-1 text-xs text-text-tertiary",
|
|
310
|
-
children: [e.startedAt && /* @__PURE__ */
|
|
349
|
+
children: [e.startedAt && /* @__PURE__ */ N("span", {
|
|
311
350
|
className: "inline-flex items-center gap-1",
|
|
312
351
|
children: [
|
|
313
|
-
/* @__PURE__ */
|
|
352
|
+
/* @__PURE__ */ M(y, { className: "h-3.5 w-3.5" }),
|
|
314
353
|
"Started ",
|
|
315
|
-
|
|
354
|
+
a(e.startedAt)
|
|
316
355
|
]
|
|
317
|
-
}), e.endedAt && /* @__PURE__ */
|
|
356
|
+
}), e.endedAt && /* @__PURE__ */ N("span", {
|
|
318
357
|
className: "inline-flex items-center gap-1",
|
|
319
358
|
children: [
|
|
320
|
-
/* @__PURE__ */
|
|
359
|
+
/* @__PURE__ */ M(b, { className: "h-3.5 w-3.5" }),
|
|
321
360
|
"Ended ",
|
|
322
|
-
|
|
361
|
+
a(e.endedAt)
|
|
323
362
|
]
|
|
324
363
|
})]
|
|
325
364
|
}),
|
|
326
|
-
|
|
365
|
+
f.length > 0 && /* @__PURE__ */ M("div", {
|
|
327
366
|
className: "mt-auto flex flex-wrap gap-2 pt-1",
|
|
328
|
-
children:
|
|
367
|
+
children: f.map((t) => /* @__PURE__ */ M(P, {
|
|
329
368
|
size: "sm",
|
|
330
369
|
variant: t.primary ? void 0 : "outline",
|
|
331
|
-
disabled:
|
|
332
|
-
onClick: () =>
|
|
370
|
+
disabled: s,
|
|
371
|
+
onClick: () => c(e.id, t.to),
|
|
333
372
|
children: t.label
|
|
334
373
|
}, t.to))
|
|
374
|
+
}),
|
|
375
|
+
p && /* @__PURE__ */ N("div", {
|
|
376
|
+
className: `border-t border-border-seam pt-3 ${f.length === 0 ? "mt-auto" : ""}`,
|
|
377
|
+
children: [/* @__PURE__ */ N("button", {
|
|
378
|
+
type: "button",
|
|
379
|
+
onClick: () => g((e) => !e),
|
|
380
|
+
"aria-expanded": m,
|
|
381
|
+
className: "inline-flex items-center gap-1.5 text-sm font-medium text-accent hover:underline",
|
|
382
|
+
children: [
|
|
383
|
+
/* @__PURE__ */ M(D, { className: "h-4 w-4" }),
|
|
384
|
+
m ? "Hide discussion" : "Discussion",
|
|
385
|
+
M(m ? C : S, { className: "h-4 w-4" })
|
|
386
|
+
]
|
|
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")
|
|
417
|
+
})]
|
|
335
418
|
})
|
|
336
419
|
]
|
|
337
420
|
});
|
|
338
421
|
}
|
|
339
|
-
function
|
|
340
|
-
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 = _(() => {
|
|
341
424
|
let e = {
|
|
342
425
|
PENDING: 0,
|
|
343
426
|
ACTIVE: 0,
|
|
344
427
|
PAUSED: 0,
|
|
345
428
|
ENDED: 0
|
|
346
429
|
};
|
|
347
|
-
for (let t of
|
|
430
|
+
for (let t of w) e[t.status] += 1;
|
|
348
431
|
return e;
|
|
349
|
-
}, [
|
|
432
|
+
}, [w]), D = _(() => [{
|
|
350
433
|
value: "ALL",
|
|
351
434
|
label: "All",
|
|
352
|
-
count:
|
|
353
|
-
}, ...
|
|
435
|
+
count: w.length
|
|
436
|
+
}, ...G.map((e) => ({
|
|
354
437
|
value: e,
|
|
355
438
|
label: e.charAt(0) + e.slice(1).toLowerCase(),
|
|
356
|
-
count:
|
|
357
|
-
}))], [
|
|
358
|
-
|
|
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);
|
|
359
442
|
try {
|
|
360
|
-
await
|
|
443
|
+
await C.mutateAsync({
|
|
361
444
|
id: e,
|
|
362
445
|
status: t
|
|
363
446
|
});
|
|
364
447
|
} catch (e) {
|
|
365
|
-
|
|
448
|
+
x(e instanceof Error ? e.message : "Failed to update the relationship.");
|
|
366
449
|
} finally {
|
|
367
|
-
|
|
450
|
+
y(null);
|
|
368
451
|
}
|
|
369
|
-
}, j =
|
|
370
|
-
return /* @__PURE__ */
|
|
452
|
+
}, j = S.isLoading && !S.data;
|
|
453
|
+
return /* @__PURE__ */ N(i, {
|
|
371
454
|
title: "Coaching",
|
|
372
455
|
description: "Coach ↔ member relationships and what's shared.",
|
|
373
|
-
actions: /* @__PURE__ */
|
|
374
|
-
onClick: () =>
|
|
375
|
-
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"]
|
|
376
459
|
}),
|
|
377
460
|
children: [
|
|
378
|
-
/* @__PURE__ */
|
|
461
|
+
/* @__PURE__ */ M("div", {
|
|
379
462
|
className: "mb-6",
|
|
380
|
-
children: /* @__PURE__ */
|
|
381
|
-
options:
|
|
382
|
-
value:
|
|
383
|
-
onChange:
|
|
463
|
+
children: /* @__PURE__ */ M(m, {
|
|
464
|
+
options: D,
|
|
465
|
+
value: o,
|
|
466
|
+
onChange: u
|
|
384
467
|
})
|
|
385
468
|
}),
|
|
386
|
-
|
|
469
|
+
b && /* @__PURE__ */ M("p", {
|
|
387
470
|
className: "mb-4 rounded-lg bg-status-error-bg-subtle px-3 py-2 text-sm text-status-error-text",
|
|
388
|
-
children:
|
|
471
|
+
children: b
|
|
389
472
|
}),
|
|
390
|
-
j ? /* @__PURE__ */
|
|
473
|
+
j ? /* @__PURE__ */ M(c, { label: "Loading coaching relationships…" }) : S.isError ? /* @__PURE__ */ M(s, {
|
|
391
474
|
message: "We couldn't load your coaching relationships.",
|
|
392
|
-
onRetry: () => void
|
|
393
|
-
}) :
|
|
475
|
+
onRetry: () => void S.refetch()
|
|
476
|
+
}) : O.length === 0 ? /* @__PURE__ */ M(l, {
|
|
394
477
|
illustration: "empty-data",
|
|
395
|
-
icon: /* @__PURE__ */
|
|
396
|
-
title:
|
|
397
|
-
description:
|
|
398
|
-
action: /* @__PURE__ */
|
|
399
|
-
onClick: () =>
|
|
400
|
-
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"]
|
|
401
484
|
})
|
|
402
|
-
}) : /* @__PURE__ */
|
|
485
|
+
}) : /* @__PURE__ */ M(n.div, {
|
|
403
486
|
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
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
|
+
})
|
|
409
499
|
}, e.id))
|
|
410
500
|
}),
|
|
411
|
-
/* @__PURE__ */
|
|
412
|
-
open:
|
|
413
|
-
onOpenChange:
|
|
414
|
-
|
|
501
|
+
/* @__PURE__ */ M(ee, {
|
|
502
|
+
open: f,
|
|
503
|
+
onOpenChange: h,
|
|
504
|
+
defaultMember: {
|
|
505
|
+
userId: t?.id ?? "",
|
|
506
|
+
displayName: t?.name || t?.email || ""
|
|
507
|
+
}
|
|
415
508
|
})
|
|
416
509
|
]
|
|
417
510
|
});
|
|
418
511
|
}
|
|
419
512
|
//#endregion
|
|
420
|
-
export {
|
|
513
|
+
export { ne as CoachingPage };
|
|
421
514
|
|
|
422
515
|
//# sourceMappingURL=CoachingPage.js.map
|