@burdenoff/microfe-mybodyshield 2026.705.2 → 2026.706.1

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