@burdenoff/microfe-mybodyshield 2026.525.1 → 2026.705.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +20 -0
- package/dist/index.js +6 -4
- package/dist/mybodyshield/MyBodyShieldRoot.js +101 -350
- package/dist/mybodyshield/MyBodyShieldRoot.js.map +1 -1
- package/dist/mybodyshield/MyBodyShieldRoutes.js +66 -193
- package/dist/mybodyshield/MyBodyShieldRoutes.js.map +1 -1
- package/dist/mybodyshield/components/DataTable.js +75 -0
- package/dist/mybodyshield/components/DataTable.js.map +1 -0
- package/dist/mybodyshield/components/EmptyState.js +35 -0
- package/dist/mybodyshield/components/EmptyState.js.map +1 -0
- package/dist/mybodyshield/components/EvidenceUpload.js +93 -0
- package/dist/mybodyshield/components/EvidenceUpload.js.map +1 -0
- package/dist/mybodyshield/components/FileLink.js +36 -0
- package/dist/mybodyshield/components/FileLink.js.map +1 -0
- package/dist/mybodyshield/components/FilterTabs.js +27 -0
- package/dist/mybodyshield/components/FilterTabs.js.map +1 -0
- package/dist/mybodyshield/components/MetricsCard.js +64 -0
- package/dist/mybodyshield/components/MetricsCard.js.map +1 -0
- package/dist/mybodyshield/components/MiniBar.js +22 -0
- package/dist/mybodyshield/components/MiniBar.js.map +1 -0
- package/dist/mybodyshield/components/MybDiscussion.js +109 -0
- package/dist/mybodyshield/components/MybDiscussion.js.map +1 -0
- package/dist/mybodyshield/components/MybTags.js +149 -0
- package/dist/mybodyshield/components/MybTags.js.map +1 -0
- package/dist/mybodyshield/components/PageLayout.js +38 -0
- package/dist/mybodyshield/components/PageLayout.js.map +1 -0
- package/dist/mybodyshield/components/Pagination.js +50 -0
- package/dist/mybodyshield/components/Pagination.js.map +1 -0
- package/dist/mybodyshield/components/StateViews.js +49 -0
- package/dist/mybodyshield/components/StateViews.js.map +1 -0
- package/dist/mybodyshield/components/StatusBadge.js +62 -0
- package/dist/mybodyshield/components/StatusBadge.js.map +1 -0
- package/dist/mybodyshield/components/Tabs.js +31 -0
- package/dist/mybodyshield/components/Tabs.js.map +1 -0
- package/dist/mybodyshield/components/UserSearchSelect.js +148 -0
- package/dist/mybodyshield/components/UserSearchSelect.js.map +1 -0
- package/dist/mybodyshield/components/index.js +15 -0
- package/dist/mybodyshield/context/MyBodyShieldContext.js +85 -0
- package/dist/mybodyshield/context/MyBodyShieldContext.js.map +1 -0
- package/dist/mybodyshield/context/index.js +1 -0
- package/dist/mybodyshield/hooks/index.js +6 -0
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js +398 -0
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybComments.js +45 -0
- package/dist/mybodyshield/hooks/useMybComments.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybFiles.js +81 -0
- package/dist/mybodyshield/hooks/useMybFiles.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybTags.js +89 -0
- package/dist/mybodyshield/hooks/useMybTags.js.map +1 -0
- package/dist/mybodyshield/hooks/useMybUsers.js +36 -0
- package/dist/mybodyshield/hooks/useMybUsers.js.map +1 -0
- package/dist/mybodyshield/hooks/usePager.js +27 -0
- package/dist/mybodyshield/hooks/usePager.js.map +1 -0
- package/dist/mybodyshield/index.js +5 -2
- package/dist/mybodyshield/pages/DashboardPage.js +432 -0
- package/dist/mybodyshield/pages/DashboardPage.js.map +1 -0
- package/dist/mybodyshield/pages/_shared/visuals.js +261 -0
- package/dist/mybodyshield/pages/_shared/visuals.js.map +1 -0
- package/dist/mybodyshield/pages/coaching/CoachingPage.js +446 -0
- package/dist/mybodyshield/pages/coaching/CoachingPage.js.map +1 -0
- package/dist/mybodyshield/pages/goals/GoalsPage.js +510 -0
- package/dist/mybodyshield/pages/goals/GoalsPage.js.map +1 -0
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js +1012 -0
- package/dist/mybodyshield/pages/nutrition/NutritionPage.js.map +1 -0
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js +932 -0
- package/dist/mybodyshield/pages/programs/ProgramDetailPage.js.map +1 -0
- package/dist/mybodyshield/pages/programs/ProgramsPage.js +450 -0
- package/dist/mybodyshield/pages/programs/ProgramsPage.js.map +1 -0
- package/dist/mybodyshield/pages/progress/ProgressPage.js +484 -0
- package/dist/mybodyshield/pages/progress/ProgressPage.js.map +1 -0
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js +484 -0
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js.map +1 -0
- package/dist/mybodyshield/pages/train/SessionDetailPage.js +579 -0
- package/dist/mybodyshield/pages/train/SessionDetailPage.js.map +1 -0
- package/dist/mybodyshield/pages/train/SessionsPage.js +294 -0
- package/dist/mybodyshield/pages/train/SessionsPage.js.map +1 -0
- package/dist/mybodyshield/utils/cn.js +10 -0
- package/dist/mybodyshield/utils/cn.js.map +1 -0
- package/dist/mybodyshield/utils/formatters.js +76 -0
- package/dist/mybodyshield/utils/formatters.js.map +1 -0
- package/dist/mybodyshield/utils/navigation.js +2 -1
- package/dist/mybodyshield/utils/navigation.js.map +1 -1
- package/dist/node_modules/clsx/dist/clsx.js +18 -0
- package/dist/node_modules/clsx/dist/clsx.js.map +1 -0
- package/dist/node_modules/d3-array/src/ascending.js +8 -0
- package/dist/node_modules/d3-array/src/ascending.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisect.js +10 -0
- package/dist/node_modules/d3-array/src/bisect.js.map +1 -0
- package/dist/node_modules/d3-array/src/bisector.js +43 -0
- package/dist/node_modules/d3-array/src/bisector.js.map +1 -0
- package/dist/node_modules/d3-array/src/descending.js +8 -0
- package/dist/node_modules/d3-array/src/descending.js.map +1 -0
- package/dist/node_modules/d3-array/src/max.js +14 -0
- package/dist/node_modules/d3-array/src/max.js.map +1 -0
- package/dist/node_modules/d3-array/src/min.js +14 -0
- package/dist/node_modules/d3-array/src/min.js.map +1 -0
- package/dist/node_modules/d3-array/src/number.js +15 -0
- package/dist/node_modules/d3-array/src/number.js.map +1 -0
- package/dist/node_modules/d3-array/src/quantile.js +25 -0
- package/dist/node_modules/d3-array/src/quantile.js.map +1 -0
- package/dist/node_modules/d3-array/src/quickselect.js +26 -0
- package/dist/node_modules/d3-array/src/quickselect.js.map +1 -0
- package/dist/node_modules/d3-array/src/range.js +10 -0
- package/dist/node_modules/d3-array/src/range.js.map +1 -0
- package/dist/node_modules/d3-array/src/sort.js +17 -0
- package/dist/node_modules/d3-array/src/sort.js.map +1 -0
- package/dist/node_modules/d3-array/src/ticks.js +34 -0
- package/dist/node_modules/d3-array/src/ticks.js.map +1 -0
- package/dist/node_modules/d3-color/src/color.js +291 -0
- package/dist/node_modules/d3-color/src/color.js.map +1 -0
- package/dist/node_modules/d3-color/src/define.js +13 -0
- package/dist/node_modules/d3-color/src/define.js.map +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js.map +1 -0
- package/dist/node_modules/d3-format/src/exponent.js +9 -0
- package/dist/node_modules/d3-format/src/exponent.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +13 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +11 -0
- package/dist/node_modules/d3-format/src/formatGroup.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +12 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +13 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +12 -0
- package/dist/node_modules/d3-format/src/formatRounded.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +29 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +20 -0
- package/dist/node_modules/d3-format/src/formatTrim.js.map +1 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +23 -0
- package/dist/node_modules/d3-format/src/formatTypes.js.map +1 -0
- package/dist/node_modules/d3-format/src/identity.js +8 -0
- package/dist/node_modules/d3-format/src/identity.js.map +1 -0
- package/dist/node_modules/d3-format/src/locale.js +86 -0
- package/dist/node_modules/d3-format/src/locale.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +9 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +9 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js.map +1 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +9 -0
- package/dist/node_modules/d3-format/src/precisionRound.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/array.js +15 -0
- package/dist/node_modules/d3-interpolate/src/array.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/basis.js +16 -0
- package/dist/node_modules/d3-interpolate/src/basis.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +13 -0
- package/dist/node_modules/d3-interpolate/src/basisClosed.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/color.js +25 -0
- package/dist/node_modules/d3-interpolate/src/color.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +6 -0
- package/dist/node_modules/d3-interpolate/src/constant.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/date.js +11 -0
- package/dist/node_modules/d3-interpolate/src/date.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/number.js +10 -0
- package/dist/node_modules/d3-interpolate/src/number.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +16 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/object.js +14 -0
- package/dist/node_modules/d3-interpolate/src/object.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js +14 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +19 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/round.js +10 -0
- package/dist/node_modules/d3-interpolate/src/round.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/string.js +28 -0
- package/dist/node_modules/d3-interpolate/src/string.js.map +1 -0
- package/dist/node_modules/d3-interpolate/src/value.js +18 -0
- package/dist/node_modules/d3-interpolate/src/value.js.map +1 -0
- package/dist/node_modules/d3-path/src/path.js +65 -0
- package/dist/node_modules/d3-path/src/path.js.map +1 -0
- package/dist/node_modules/d3-scale/src/band.js +52 -0
- package/dist/node_modules/d3-scale/src/band.js.map +1 -0
- package/dist/node_modules/d3-scale/src/constant.js +10 -0
- package/dist/node_modules/d3-scale/src/constant.js.map +1 -0
- package/dist/node_modules/d3-scale/src/continuous.js +73 -0
- package/dist/node_modules/d3-scale/src/continuous.js.map +1 -0
- package/dist/node_modules/d3-scale/src/diverging.js +82 -0
- package/dist/node_modules/d3-scale/src/diverging.js.map +1 -0
- package/dist/node_modules/d3-scale/src/identity.js +20 -0
- package/dist/node_modules/d3-scale/src/identity.js.map +1 -0
- package/dist/node_modules/d3-scale/src/init.js +29 -0
- package/dist/node_modules/d3-scale/src/init.js.map +1 -0
- package/dist/node_modules/d3-scale/src/linear.js +36 -0
- package/dist/node_modules/d3-scale/src/linear.js.map +1 -0
- package/dist/node_modules/d3-scale/src/log.js +77 -0
- package/dist/node_modules/d3-scale/src/log.js.map +1 -0
- package/dist/node_modules/d3-scale/src/nice.js +10 -0
- package/dist/node_modules/d3-scale/src/nice.js.map +1 -0
- package/dist/node_modules/d3-scale/src/number.js +8 -0
- package/dist/node_modules/d3-scale/src/number.js.map +1 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/node_modules/d3-scale/src/ordinal.js.map +1 -0
- package/dist/node_modules/d3-scale/src/pow.js +37 -0
- package/dist/node_modules/d3-scale/src/pow.js.map +1 -0
- package/dist/node_modules/d3-scale/src/quantile.js +37 -0
- package/dist/node_modules/d3-scale/src/quantile.js.map +1 -0
- package/dist/node_modules/d3-scale/src/quantize.js +33 -0
- package/dist/node_modules/d3-scale/src/quantize.js.map +1 -0
- package/dist/node_modules/d3-scale/src/radial.js +39 -0
- package/dist/node_modules/d3-scale/src/radial.js.map +1 -0
- package/dist/node_modules/d3-scale/src/sequential.js +67 -0
- package/dist/node_modules/d3-scale/src/sequential.js.map +1 -0
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +30 -0
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js.map +1 -0
- package/dist/node_modules/d3-scale/src/symlog.js +30 -0
- package/dist/node_modules/d3-scale/src/symlog.js.map +1 -0
- package/dist/node_modules/d3-scale/src/threshold.js +25 -0
- package/dist/node_modules/d3-scale/src/threshold.js.map +1 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +31 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js.map +1 -0
- package/dist/node_modules/d3-scale/src/time.js +47 -0
- package/dist/node_modules/d3-scale/src/time.js.map +1 -0
- package/dist/node_modules/d3-scale/src/utcTime.js +19 -0
- package/dist/node_modules/d3-scale/src/utcTime.js.map +1 -0
- package/dist/node_modules/d3-shape/src/area.js +55 -0
- package/dist/node_modules/d3-shape/src/area.js.map +1 -0
- package/dist/node_modules/d3-shape/src/array.js +8 -0
- package/dist/node_modules/d3-shape/src/array.js.map +1 -0
- package/dist/node_modules/d3-shape/src/constant.js +10 -0
- package/dist/node_modules/d3-shape/src/constant.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +49 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +50 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +40 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +25 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +94 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +39 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js.map +1 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +47 -0
- package/dist/node_modules/d3-shape/src/curve/step.js.map +1 -0
- package/dist/node_modules/d3-shape/src/line.js +30 -0
- package/dist/node_modules/d3-shape/src/line.js.map +1 -0
- package/dist/node_modules/d3-shape/src/math.js +8 -0
- package/dist/node_modules/d3-shape/src/math.js.map +1 -0
- package/dist/node_modules/d3-shape/src/noop.js +6 -0
- package/dist/node_modules/d3-shape/src/noop.js.map +1 -0
- package/dist/node_modules/d3-shape/src/offset/expand.js +15 -0
- package/dist/node_modules/d3-shape/src/offset/expand.js.map +1 -0
- package/dist/node_modules/d3-shape/src/offset/none.js +8 -0
- package/dist/node_modules/d3-shape/src/offset/none.js.map +1 -0
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +15 -0
- package/dist/node_modules/d3-shape/src/offset/silhouette.js.map +1 -0
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +21 -0
- package/dist/node_modules/d3-shape/src/offset/wiggle.js.map +1 -0
- package/dist/node_modules/d3-shape/src/order/none.js +9 -0
- package/dist/node_modules/d3-shape/src/order/none.js.map +1 -0
- package/dist/node_modules/d3-shape/src/path.js +19 -0
- package/dist/node_modules/d3-shape/src/path.js.map +1 -0
- package/dist/node_modules/d3-shape/src/point.js +11 -0
- package/dist/node_modules/d3-shape/src/point.js.map +1 -0
- package/dist/node_modules/d3-shape/src/stack.js +34 -0
- package/dist/node_modules/d3-shape/src/stack.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/circle.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/circle.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/cross.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/cross.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/square.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/square.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/star.js +15 -0
- package/dist/node_modules/d3-shape/src/symbol/star.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol/wye.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/wye.js.map +1 -0
- package/dist/node_modules/d3-shape/src/symbol.js +23 -0
- package/dist/node_modules/d3-shape/src/symbol.js.map +1 -0
- package/dist/node_modules/d3-time/src/day.js +21 -0
- package/dist/node_modules/d3-time/src/day.js.map +1 -0
- package/dist/node_modules/d3-time/src/duration.js +6 -0
- package/dist/node_modules/d3-time/src/duration.js.map +1 -0
- package/dist/node_modules/d3-time/src/hour.js +19 -0
- package/dist/node_modules/d3-time/src/hour.js.map +1 -0
- package/dist/node_modules/d3-time/src/interval.js +28 -0
- package/dist/node_modules/d3-time/src/interval.js.map +1 -0
- package/dist/node_modules/d3-time/src/millisecond.js +14 -0
- package/dist/node_modules/d3-time/src/millisecond.js.map +1 -0
- package/dist/node_modules/d3-time/src/minute.js +19 -0
- package/dist/node_modules/d3-time/src/minute.js.map +1 -0
- package/dist/node_modules/d3-time/src/month.js +18 -0
- package/dist/node_modules/d3-time/src/month.js.map +1 -0
- package/dist/node_modules/d3-time/src/second.js +13 -0
- package/dist/node_modules/d3-time/src/second.js.map +1 -0
- package/dist/node_modules/d3-time/src/ticks.js +125 -0
- package/dist/node_modules/d3-time/src/ticks.js.map +1 -0
- package/dist/node_modules/d3-time/src/week.js +25 -0
- package/dist/node_modules/d3-time/src/week.js.map +1 -0
- package/dist/node_modules/d3-time/src/year.js +26 -0
- package/dist/node_modules/d3-time/src/year.js.map +1 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +62 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +1 -0
- package/dist/node_modules/d3-time-format/src/locale.js +490 -0
- package/dist/node_modules/d3-time-format/src/locale.js.map +1 -0
- package/dist/node_modules/decimal.js-light/decimal.js +378 -0
- package/dist/node_modules/decimal.js-light/decimal.js.map +1 -0
- package/dist/node_modules/eventemitter3/index.js +95 -0
- package/dist/node_modules/eventemitter3/index.js.map +1 -0
- package/dist/node_modules/fast-equals/dist/es/index.js +267 -0
- package/dist/node_modules/fast-equals/dist/es/index.js.map +1 -0
- package/dist/node_modules/internmap/src/index.js +40 -0
- package/dist/node_modules/internmap/src/index.js.map +1 -0
- package/dist/node_modules/lodash/_DataView.js +12 -0
- package/dist/node_modules/lodash/_DataView.js.map +1 -0
- package/dist/node_modules/lodash/_Hash.js +23 -0
- package/dist/node_modules/lodash/_Hash.js.map +1 -0
- package/dist/node_modules/lodash/_ListCache.js +23 -0
- package/dist/node_modules/lodash/_ListCache.js.map +1 -0
- package/dist/node_modules/lodash/_Map.js +12 -0
- package/dist/node_modules/lodash/_Map.js.map +1 -0
- package/dist/node_modules/lodash/_MapCache.js +23 -0
- package/dist/node_modules/lodash/_MapCache.js.map +1 -0
- package/dist/node_modules/lodash/_Promise.js +12 -0
- package/dist/node_modules/lodash/_Promise.js.map +1 -0
- package/dist/node_modules/lodash/_Set.js +12 -0
- package/dist/node_modules/lodash/_Set.js.map +1 -0
- package/dist/node_modules/lodash/_SetCache.js +18 -0
- package/dist/node_modules/lodash/_SetCache.js.map +1 -0
- package/dist/node_modules/lodash/_Stack.js +20 -0
- package/dist/node_modules/lodash/_Stack.js.map +1 -0
- package/dist/node_modules/lodash/_Symbol.js +11 -0
- package/dist/node_modules/lodash/_Symbol.js.map +1 -0
- package/dist/node_modules/lodash/_Uint8Array.js +11 -0
- package/dist/node_modules/lodash/_Uint8Array.js.map +1 -0
- package/dist/node_modules/lodash/_WeakMap.js +12 -0
- package/dist/node_modules/lodash/_WeakMap.js.map +1 -0
- package/dist/node_modules/lodash/_apply.js +19 -0
- package/dist/node_modules/lodash/_apply.js.map +1 -0
- package/dist/node_modules/lodash/_arrayEvery.js +14 -0
- package/dist/node_modules/lodash/_arrayEvery.js.map +1 -0
- package/dist/node_modules/lodash/_arrayFilter.js +17 -0
- package/dist/node_modules/lodash/_arrayFilter.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludes.js +15 -0
- package/dist/node_modules/lodash/_arrayIncludes.js.map +1 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js +14 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js.map +1 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +22 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_arrayMap.js +14 -0
- package/dist/node_modules/lodash/_arrayMap.js.map +1 -0
- package/dist/node_modules/lodash/_arrayPush.js +14 -0
- package/dist/node_modules/lodash/_arrayPush.js.map +1 -0
- package/dist/node_modules/lodash/_arraySome.js +14 -0
- package/dist/node_modules/lodash/_arraySome.js.map +1 -0
- package/dist/node_modules/lodash/_asciiToArray.js +13 -0
- package/dist/node_modules/lodash/_asciiToArray.js.map +1 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +16 -0
- package/dist/node_modules/lodash/_assocIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseAssignValue.js +20 -0
- package/dist/node_modules/lodash/_baseAssignValue.js.map +1 -0
- package/dist/node_modules/lodash/_baseEach.js +13 -0
- package/dist/node_modules/lodash/_baseEach.js.map +1 -0
- package/dist/node_modules/lodash/_baseEvery.js +18 -0
- package/dist/node_modules/lodash/_baseEvery.js.map +1 -0
- package/dist/node_modules/lodash/_baseExtremum.js +19 -0
- package/dist/node_modules/lodash/_baseExtremum.js.map +1 -0
- package/dist/node_modules/lodash/_baseFindIndex.js +14 -0
- package/dist/node_modules/lodash/_baseFindIndex.js.map +1 -0
- package/dist/node_modules/lodash/_baseFlatten.js +21 -0
- package/dist/node_modules/lodash/_baseFlatten.js.map +1 -0
- package/dist/node_modules/lodash/_baseFor.js +11 -0
- package/dist/node_modules/lodash/_baseFor.js.map +1 -0
- package/dist/node_modules/lodash/_baseForOwn.js +16 -0
- package/dist/node_modules/lodash/_baseForOwn.js.map +1 -0
- package/dist/node_modules/lodash/_baseGet.js +18 -0
- package/dist/node_modules/lodash/_baseGet.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +17 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseGetTag.js +17 -0
- package/dist/node_modules/lodash/_baseGetTag.js.map +1 -0
- package/dist/node_modules/lodash/_baseGt.js +13 -0
- package/dist/node_modules/lodash/_baseGt.js.map +1 -0
- package/dist/node_modules/lodash/_baseHasIn.js +13 -0
- package/dist/node_modules/lodash/_baseHasIn.js.map +1 -0
- package/dist/node_modules/lodash/_baseIndexOf.js +17 -0
- package/dist/node_modules/lodash/_baseIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +16 -0
- package/dist/node_modules/lodash/_baseIsArguments.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +16 -0
- package/dist/node_modules/lodash/_baseIsEqual.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +37 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +33 -0
- package/dist/node_modules/lodash/_baseIsMatch.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNaN.js +13 -0
- package/dist/node_modules/lodash/_baseIsNaN.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsNative.js +18 -0
- package/dist/node_modules/lodash/_baseIsNative.js.map +1 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +18 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/_baseIteratee.js +19 -0
- package/dist/node_modules/lodash/_baseIteratee.js.map +1 -0
- package/dist/node_modules/lodash/_baseKeys.js +19 -0
- package/dist/node_modules/lodash/_baseKeys.js.map +1 -0
- package/dist/node_modules/lodash/_baseLt.js +13 -0
- package/dist/node_modules/lodash/_baseLt.js.map +1 -0
- package/dist/node_modules/lodash/_baseMap.js +19 -0
- package/dist/node_modules/lodash/_baseMap.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatches.js +20 -0
- package/dist/node_modules/lodash/_baseMatches.js.map +1 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +24 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js.map +1 -0
- package/dist/node_modules/lodash/_baseOrderBy.js +39 -0
- package/dist/node_modules/lodash/_baseOrderBy.js.map +1 -0
- package/dist/node_modules/lodash/_baseProperty.js +15 -0
- package/dist/node_modules/lodash/_baseProperty.js.map +1 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +17 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js.map +1 -0
- package/dist/node_modules/lodash/_baseRange.js +15 -0
- package/dist/node_modules/lodash/_baseRange.js.map +1 -0
- package/dist/node_modules/lodash/_baseRest.js +17 -0
- package/dist/node_modules/lodash/_baseRest.js.map +1 -0
- package/dist/node_modules/lodash/_baseSetToString.js +21 -0
- package/dist/node_modules/lodash/_baseSetToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseSlice.js +16 -0
- package/dist/node_modules/lodash/_baseSlice.js.map +1 -0
- package/dist/node_modules/lodash/_baseSome.js +18 -0
- package/dist/node_modules/lodash/_baseSome.js.map +1 -0
- package/dist/node_modules/lodash/_baseSortBy.js +15 -0
- package/dist/node_modules/lodash/_baseSortBy.js.map +1 -0
- package/dist/node_modules/lodash/_baseTimes.js +14 -0
- package/dist/node_modules/lodash/_baseTimes.js.map +1 -0
- package/dist/node_modules/lodash/_baseToString.js +22 -0
- package/dist/node_modules/lodash/_baseToString.js.map +1 -0
- package/dist/node_modules/lodash/_baseTrim.js +15 -0
- package/dist/node_modules/lodash/_baseTrim.js.map +1 -0
- package/dist/node_modules/lodash/_baseUnary.js +15 -0
- package/dist/node_modules/lodash/_baseUnary.js.map +1 -0
- package/dist/node_modules/lodash/_baseUniq.js +34 -0
- package/dist/node_modules/lodash/_baseUniq.js.map +1 -0
- package/dist/node_modules/lodash/_cacheHas.js +13 -0
- package/dist/node_modules/lodash/_cacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_castPath.js +18 -0
- package/dist/node_modules/lodash/_castPath.js.map +1 -0
- package/dist/node_modules/lodash/_castSlice.js +16 -0
- package/dist/node_modules/lodash/_castSlice.js.map +1 -0
- package/dist/node_modules/lodash/_compareAscending.js +20 -0
- package/dist/node_modules/lodash/_compareAscending.js.map +1 -0
- package/dist/node_modules/lodash/_compareMultiple.js +19 -0
- package/dist/node_modules/lodash/_compareMultiple.js.map +1 -0
- package/dist/node_modules/lodash/_coreJsData.js +11 -0
- package/dist/node_modules/lodash/_coreJsData.js.map +1 -0
- package/dist/node_modules/lodash/_createBaseEach.js +20 -0
- package/dist/node_modules/lodash/_createBaseEach.js.map +1 -0
- package/dist/node_modules/lodash/_createBaseFor.js +19 -0
- package/dist/node_modules/lodash/_createBaseFor.js.map +1 -0
- package/dist/node_modules/lodash/_createCaseFirst.js +22 -0
- package/dist/node_modules/lodash/_createCaseFirst.js.map +1 -0
- package/dist/node_modules/lodash/_createFind.js +27 -0
- package/dist/node_modules/lodash/_createFind.js.map +1 -0
- package/dist/node_modules/lodash/_createRange.js +19 -0
- package/dist/node_modules/lodash/_createRange.js.map +1 -0
- package/dist/node_modules/lodash/_createSet.js +16 -0
- package/dist/node_modules/lodash/_createSet.js.map +1 -0
- package/dist/node_modules/lodash/_defineProperty.js +17 -0
- package/dist/node_modules/lodash/_defineProperty.js.map +1 -0
- package/dist/node_modules/lodash/_equalArrays.js +42 -0
- package/dist/node_modules/lodash/_equalArrays.js.map +1 -0
- package/dist/node_modules/lodash/_equalByTag.js +42 -0
- package/dist/node_modules/lodash/_equalByTag.js.map +1 -0
- package/dist/node_modules/lodash/_equalObjects.js +39 -0
- package/dist/node_modules/lodash/_equalObjects.js.map +1 -0
- package/dist/node_modules/lodash/_freeGlobal.js +10 -0
- package/dist/node_modules/lodash/_freeGlobal.js.map +1 -0
- package/dist/node_modules/lodash/_getAllKeys.js +17 -0
- package/dist/node_modules/lodash/_getAllKeys.js.map +1 -0
- package/dist/node_modules/lodash/_getMapData.js +16 -0
- package/dist/node_modules/lodash/_getMapData.js.map +1 -0
- package/dist/node_modules/lodash/_getMatchData.js +24 -0
- package/dist/node_modules/lodash/_getMatchData.js.map +1 -0
- package/dist/node_modules/lodash/_getNative.js +17 -0
- package/dist/node_modules/lodash/_getNative.js.map +1 -0
- package/dist/node_modules/lodash/_getPrototype.js +11 -0
- package/dist/node_modules/lodash/_getPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_getRawTag.js +21 -0
- package/dist/node_modules/lodash/_getRawTag.js.map +1 -0
- package/dist/node_modules/lodash/_getSymbols.js +17 -0
- package/dist/node_modules/lodash/_getSymbols.js.map +1 -0
- package/dist/node_modules/lodash/_getTag.js +28 -0
- package/dist/node_modules/lodash/_getTag.js.map +1 -0
- package/dist/node_modules/lodash/_getValue.js +13 -0
- package/dist/node_modules/lodash/_getValue.js.map +1 -0
- package/dist/node_modules/lodash/_hasPath.js +26 -0
- package/dist/node_modules/lodash/_hasPath.js.map +1 -0
- package/dist/node_modules/lodash/_hasUnicode.js +14 -0
- package/dist/node_modules/lodash/_hasUnicode.js.map +1 -0
- package/dist/node_modules/lodash/_hashClear.js +15 -0
- package/dist/node_modules/lodash/_hashClear.js.map +1 -0
- package/dist/node_modules/lodash/_hashDelete.js +14 -0
- package/dist/node_modules/lodash/_hashDelete.js.map +1 -0
- package/dist/node_modules/lodash/_hashGet.js +20 -0
- package/dist/node_modules/lodash/_hashGet.js.map +1 -0
- package/dist/node_modules/lodash/_hashHas.js +16 -0
- package/dist/node_modules/lodash/_hashHas.js.map +1 -0
- package/dist/node_modules/lodash/_hashSet.js +16 -0
- package/dist/node_modules/lodash/_hashSet.js.map +1 -0
- package/dist/node_modules/lodash/_isFlattenable.js +17 -0
- package/dist/node_modules/lodash/_isFlattenable.js.map +1 -0
- package/dist/node_modules/lodash/_isIndex.js +15 -0
- package/dist/node_modules/lodash/_isIndex.js.map +1 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +20 -0
- package/dist/node_modules/lodash/_isIterateeCall.js.map +1 -0
- package/dist/node_modules/lodash/_isKey.js +18 -0
- package/dist/node_modules/lodash/_isKey.js.map +1 -0
- package/dist/node_modules/lodash/_isKeyable.js +14 -0
- package/dist/node_modules/lodash/_isKeyable.js.map +1 -0
- package/dist/node_modules/lodash/_isMasked.js +18 -0
- package/dist/node_modules/lodash/_isMasked.js.map +1 -0
- package/dist/node_modules/lodash/_isPrototype.js +15 -0
- package/dist/node_modules/lodash/_isPrototype.js.map +1 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +15 -0
- package/dist/node_modules/lodash/_isStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheClear.js +13 -0
- package/dist/node_modules/lodash/_listCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +16 -0
- package/dist/node_modules/lodash/_listCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheGet.js +16 -0
- package/dist/node_modules/lodash/_listCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheHas.js +15 -0
- package/dist/node_modules/lodash/_listCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_listCacheSet.js +16 -0
- package/dist/node_modules/lodash/_listCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +21 -0
- package/dist/node_modules/lodash/_mapCacheClear.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +16 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +15 -0
- package/dist/node_modules/lodash/_mapCacheGet.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +15 -0
- package/dist/node_modules/lodash/_mapCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +16 -0
- package/dist/node_modules/lodash/_mapCacheSet.js.map +1 -0
- package/dist/node_modules/lodash/_mapToArray.js +16 -0
- package/dist/node_modules/lodash/_mapToArray.js.map +1 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +15 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js.map +1 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +18 -0
- package/dist/node_modules/lodash/_memoizeCapped.js.map +1 -0
- package/dist/node_modules/lodash/_nativeCreate.js +11 -0
- package/dist/node_modules/lodash/_nativeCreate.js.map +1 -0
- package/dist/node_modules/lodash/_nativeKeys.js +11 -0
- package/dist/node_modules/lodash/_nativeKeys.js.map +1 -0
- package/dist/node_modules/lodash/_nodeUtil.js +16 -0
- package/dist/node_modules/lodash/_nodeUtil.js.map +1 -0
- package/dist/node_modules/lodash/_objectToString.js +14 -0
- package/dist/node_modules/lodash/_objectToString.js.map +1 -0
- package/dist/node_modules/lodash/_overArg.js +15 -0
- package/dist/node_modules/lodash/_overArg.js.map +1 -0
- package/dist/node_modules/lodash/_overRest.js +20 -0
- package/dist/node_modules/lodash/_overRest.js.map +1 -0
- package/dist/node_modules/lodash/_root.js +12 -0
- package/dist/node_modules/lodash/_root.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +14 -0
- package/dist/node_modules/lodash/_setCacheAdd.js.map +1 -0
- package/dist/node_modules/lodash/_setCacheHas.js +13 -0
- package/dist/node_modules/lodash/_setCacheHas.js.map +1 -0
- package/dist/node_modules/lodash/_setToArray.js +16 -0
- package/dist/node_modules/lodash/_setToArray.js.map +1 -0
- package/dist/node_modules/lodash/_setToString.js +13 -0
- package/dist/node_modules/lodash/_setToString.js.map +1 -0
- package/dist/node_modules/lodash/_shortOut.js +21 -0
- package/dist/node_modules/lodash/_shortOut.js.map +1 -0
- package/dist/node_modules/lodash/_stackClear.js +15 -0
- package/dist/node_modules/lodash/_stackClear.js.map +1 -0
- package/dist/node_modules/lodash/_stackDelete.js +14 -0
- package/dist/node_modules/lodash/_stackDelete.js.map +1 -0
- package/dist/node_modules/lodash/_stackGet.js +13 -0
- package/dist/node_modules/lodash/_stackGet.js.map +1 -0
- package/dist/node_modules/lodash/_stackHas.js +13 -0
- package/dist/node_modules/lodash/_stackHas.js.map +1 -0
- package/dist/node_modules/lodash/_stackSet.js +23 -0
- package/dist/node_modules/lodash/_stackSet.js.map +1 -0
- package/dist/node_modules/lodash/_strictIndexOf.js +14 -0
- package/dist/node_modules/lodash/_strictIndexOf.js.map +1 -0
- package/dist/node_modules/lodash/_stringToArray.js +17 -0
- package/dist/node_modules/lodash/_stringToArray.js.map +1 -0
- package/dist/node_modules/lodash/_stringToPath.js +17 -0
- package/dist/node_modules/lodash/_stringToPath.js.map +1 -0
- package/dist/node_modules/lodash/_toKey.js +17 -0
- package/dist/node_modules/lodash/_toKey.js.map +1 -0
- package/dist/node_modules/lodash/_toSource.js +22 -0
- package/dist/node_modules/lodash/_toSource.js.map +1 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +15 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js.map +1 -0
- package/dist/node_modules/lodash/_unicodeToArray.js +24 -0
- package/dist/node_modules/lodash/_unicodeToArray.js.map +1 -0
- package/dist/node_modules/lodash/constant.js +15 -0
- package/dist/node_modules/lodash/constant.js.map +1 -0
- package/dist/node_modules/lodash/debounce.js +57 -0
- package/dist/node_modules/lodash/debounce.js.map +1 -0
- package/dist/node_modules/lodash/eq.js +13 -0
- package/dist/node_modules/lodash/eq.js.map +1 -0
- package/dist/node_modules/lodash/every.js +20 -0
- package/dist/node_modules/lodash/every.js.map +1 -0
- package/dist/node_modules/lodash/find.js +12 -0
- package/dist/node_modules/lodash/find.js.map +1 -0
- package/dist/node_modules/lodash/findIndex.js +20 -0
- package/dist/node_modules/lodash/findIndex.js.map +1 -0
- package/dist/node_modules/lodash/flatMap.js +16 -0
- package/dist/node_modules/lodash/flatMap.js.map +1 -0
- package/dist/node_modules/lodash/get.js +16 -0
- package/dist/node_modules/lodash/get.js.map +1 -0
- package/dist/node_modules/lodash/hasIn.js +16 -0
- package/dist/node_modules/lodash/hasIn.js.map +1 -0
- package/dist/node_modules/lodash/identity.js +13 -0
- package/dist/node_modules/lodash/identity.js.map +1 -0
- package/dist/node_modules/lodash/isArguments.js +17 -0
- package/dist/node_modules/lodash/isArguments.js.map +1 -0
- package/dist/node_modules/lodash/isArray.js +10 -0
- package/dist/node_modules/lodash/isArray.js.map +1 -0
- package/dist/node_modules/lodash/isArrayLike.js +16 -0
- package/dist/node_modules/lodash/isArrayLike.js.map +1 -0
- package/dist/node_modules/lodash/isBoolean.js +16 -0
- package/dist/node_modules/lodash/isBoolean.js.map +1 -0
- package/dist/node_modules/lodash/isBuffer.js +13 -0
- package/dist/node_modules/lodash/isBuffer.js.map +1 -0
- package/dist/node_modules/lodash/isEqual.js +15 -0
- package/dist/node_modules/lodash/isEqual.js.map +1 -0
- package/dist/node_modules/lodash/isFunction.js +18 -0
- package/dist/node_modules/lodash/isFunction.js.map +1 -0
- package/dist/node_modules/lodash/isLength.js +14 -0
- package/dist/node_modules/lodash/isLength.js.map +1 -0
- package/dist/node_modules/lodash/isNaN.js +15 -0
- package/dist/node_modules/lodash/isNaN.js.map +1 -0
- package/dist/node_modules/lodash/isNil.js +13 -0
- package/dist/node_modules/lodash/isNil.js.map +1 -0
- package/dist/node_modules/lodash/isNumber.js +16 -0
- package/dist/node_modules/lodash/isNumber.js.map +1 -0
- package/dist/node_modules/lodash/isObject.js +14 -0
- package/dist/node_modules/lodash/isObject.js.map +1 -0
- package/dist/node_modules/lodash/isObjectLike.js +13 -0
- package/dist/node_modules/lodash/isObjectLike.js.map +1 -0
- package/dist/node_modules/lodash/isPlainObject.js +21 -0
- package/dist/node_modules/lodash/isPlainObject.js.map +1 -0
- package/dist/node_modules/lodash/isString.js +17 -0
- package/dist/node_modules/lodash/isString.js.map +1 -0
- package/dist/node_modules/lodash/isSymbol.js +16 -0
- package/dist/node_modules/lodash/isSymbol.js.map +1 -0
- package/dist/node_modules/lodash/isTypedArray.js +14 -0
- package/dist/node_modules/lodash/isTypedArray.js.map +1 -0
- package/dist/node_modules/lodash/keys.js +17 -0
- package/dist/node_modules/lodash/keys.js.map +1 -0
- package/dist/node_modules/lodash/last.js +14 -0
- package/dist/node_modules/lodash/last.js.map +1 -0
- package/dist/node_modules/lodash/map.js +18 -0
- package/dist/node_modules/lodash/map.js.map +1 -0
- package/dist/node_modules/lodash/mapValues.js +20 -0
- package/dist/node_modules/lodash/mapValues.js.map +1 -0
- package/dist/node_modules/lodash/max.js +17 -0
- package/dist/node_modules/lodash/max.js.map +1 -0
- package/dist/node_modules/lodash/memoize.js +22 -0
- package/dist/node_modules/lodash/memoize.js.map +1 -0
- package/dist/node_modules/lodash/min.js +17 -0
- package/dist/node_modules/lodash/min.js.map +1 -0
- package/dist/node_modules/lodash/noop.js +11 -0
- package/dist/node_modules/lodash/noop.js.map +1 -0
- package/dist/node_modules/lodash/now.js +14 -0
- package/dist/node_modules/lodash/now.js.map +1 -0
- package/dist/node_modules/lodash/property.js +18 -0
- package/dist/node_modules/lodash/property.js.map +1 -0
- package/dist/node_modules/lodash/range.js +11 -0
- package/dist/node_modules/lodash/range.js.map +1 -0
- package/dist/node_modules/lodash/some.js +20 -0
- package/dist/node_modules/lodash/some.js.map +1 -0
- package/dist/node_modules/lodash/sortBy.js +19 -0
- package/dist/node_modules/lodash/sortBy.js.map +1 -0
- package/dist/node_modules/lodash/stubArray.js +13 -0
- package/dist/node_modules/lodash/stubArray.js.map +1 -0
- package/dist/node_modules/lodash/stubFalse.js +13 -0
- package/dist/node_modules/lodash/stubFalse.js.map +1 -0
- package/dist/node_modules/lodash/throttle.js +22 -0
- package/dist/node_modules/lodash/throttle.js.map +1 -0
- package/dist/node_modules/lodash/toFinite.js +15 -0
- package/dist/node_modules/lodash/toFinite.js.map +1 -0
- package/dist/node_modules/lodash/toInteger.js +16 -0
- package/dist/node_modules/lodash/toInteger.js.map +1 -0
- package/dist/node_modules/lodash/toNumber.js +26 -0
- package/dist/node_modules/lodash/toNumber.js.map +1 -0
- package/dist/node_modules/lodash/toString.js +15 -0
- package/dist/node_modules/lodash/toString.js.map +1 -0
- package/dist/node_modules/lodash/uniqBy.js +16 -0
- package/dist/node_modules/lodash/uniqBy.js.map +1 -0
- package/dist/node_modules/lodash/upperFirst.js +11 -0
- package/dist/node_modules/lodash/upperFirst.js.map +1 -0
- package/dist/node_modules/object-assign/index.js +41 -0
- package/dist/node_modules/object-assign/index.js.map +1 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +46 -0
- package/dist/node_modules/prop-types/checkPropTypes.js.map +1 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +49 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js.map +1 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +272 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js.map +1 -0
- package/dist/node_modules/prop-types/index.js +16 -0
- package/dist/node_modules/prop-types/index.js.map +1 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +10 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js.map +1 -0
- package/dist/node_modules/prop-types/lib/has.js +10 -0
- package/dist/node_modules/prop-types/lib/has.js.map +1 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +84 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +64 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +12 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +87 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js.map +1 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +65 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js.map +1 -0
- package/dist/node_modules/react-is/index.js +12 -0
- package/dist/node_modules/react-is/index.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/Animate.js +374 -0
- package/dist/node_modules/react-smooth/es6/Animate.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/AnimateManager.js +73 -0
- package/dist/node_modules/react-smooth/es6/AnimateManager.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/configUpdate.js +173 -0
- package/dist/node_modules/react-smooth/es6/configUpdate.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/easing.js +152 -0
- package/dist/node_modules/react-smooth/es6/easing.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/index.js +9 -0
- package/dist/node_modules/react-smooth/es6/index.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js +14 -0
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js.map +1 -0
- package/dist/node_modules/react-smooth/es6/util.js +92 -0
- package/dist/node_modules/react-smooth/es6/util.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +387 -0
- package/dist/node_modules/recharts/es6/cartesian/Bar.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +499 -0
- package/dist/node_modules/recharts/es6/cartesian/Brush.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +338 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +305 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +243 -0
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/Line.js +473 -0
- package/dist/node_modules/recharts/es6/cartesian/Line.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +173 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +178 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +254 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +144 -0
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +143 -0
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +18 -0
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js.map +1 -0
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js +121 -0
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +101 -0
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/LineChart.js +22 -0
- package/dist/node_modules/recharts/es6/chart/LineChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +1245 -0
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Cell.js +9 -0
- package/dist/node_modules/recharts/es6/component/Cell.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js +93 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +237 -0
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +171 -0
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Label.js +353 -0
- package/dist/node_modules/recharts/es6/component/Label.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/LabelList.js +166 -0
- package/dist/node_modules/recharts/es6/component/LabelList.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Legend.js +234 -0
- package/dist/node_modules/recharts/es6/component/Legend.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +187 -0
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Text.js +225 -0
- package/dist/node_modules/recharts/es6/component/Text.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/Tooltip.js +182 -0
- package/dist/node_modules/recharts/es6/component/Tooltip.js.map +1 -0
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +198 -0
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js.map +1 -0
- package/dist/node_modules/recharts/es6/container/Layer.js +40 -0
- package/dist/node_modules/recharts/es6/container/Layer.js.map +1 -0
- package/dist/node_modules/recharts/es6/container/Surface.js +60 -0
- package/dist/node_modules/recharts/es6/container/Surface.js.map +1 -0
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +57 -0
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Cross.js +112 -0
- package/dist/node_modules/recharts/es6/shape/Cross.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Curve.js +136 -0
- package/dist/node_modules/recharts/es6/shape/Curve.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Dot.js +27 -0
- package/dist/node_modules/recharts/es6/shape/Dot.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +205 -0
- package/dist/node_modules/recharts/es6/shape/Rectangle.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Sector.js +192 -0
- package/dist/node_modules/recharts/es6/shape/Sector.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Symbols.js +143 -0
- package/dist/node_modules/recharts/es6/shape/Symbols.js.map +1 -0
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +175 -0
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +181 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/BarUtils.js +112 -0
- package/dist/node_modules/recharts/es6/util/BarUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +234 -0
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +562 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +70 -0
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +108 -0
- package/dist/node_modules/recharts/es6/util/DOMUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js +57 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +58 -0
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/Events.js +7 -0
- package/dist/node_modules/recharts/es6/util/Events.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/Global.js +21 -0
- package/dist/node_modules/recharts/es6/util/Global.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +9 -0
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/LogUtils.js +15 -0
- package/dist/node_modules/recharts/es6/util/LogUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +116 -0
- package/dist/node_modules/recharts/es6/util/PolarUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +137 -0
- package/dist/node_modules/recharts/es6/util/ReactUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +181 -0
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js +10 -0
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/TickUtils.js +31 -0
- package/dist/node_modules/recharts/es6/util/TickUtils.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js +25 -0
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +23 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +16 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +17 -0
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +12 -0
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/getLegendProps.js +88 -0
- package/dist/node_modules/recharts/es6/util/getLegendProps.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +13 -0
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +12 -0
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js +87 -0
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js.map +1 -0
- package/dist/node_modules/recharts/es6/util/types.js +43 -0
- package/dist/node_modules/recharts/es6/util/types.js.map +1 -0
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +132 -0
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js.map +1 -0
- package/dist/node_modules/recharts-scale/es6/index.js +1 -0
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +32 -0
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js.map +1 -0
- package/dist/node_modules/recharts-scale/es6/util/utils.js +79 -0
- package/dist/node_modules/recharts-scale/es6/util/utils.js.map +1 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1716 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +1 -0
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +13 -0
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js.map +1 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js +53 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js.map +1 -0
- package/package.json +3 -3
- package/dist/mybodyshield/pages/AdminAiinsightsPage.js +0 -161
- package/dist/mybodyshield/pages/AdminAiinsightsPage.js.map +0 -1
- package/dist/mybodyshield/pages/AdminAnalyticsPage.js +0 -193
- package/dist/mybodyshield/pages/AdminAnalyticsPage.js.map +0 -1
- package/dist/mybodyshield/pages/AdminComplianceReportsPage.js +0 -214
- package/dist/mybodyshield/pages/AdminComplianceReportsPage.js.map +0 -1
- package/dist/mybodyshield/pages/AdminDashboardPage.js +0 -186
- package/dist/mybodyshield/pages/AdminDashboardPage.js.map +0 -1
- package/dist/mybodyshield/pages/AdminOrganizationManagementPage.js +0 -252
- package/dist/mybodyshield/pages/AdminOrganizationManagementPage.js.map +0 -1
- package/dist/mybodyshield/pages/AdminSystemSettingsPage.js +0 -159
- package/dist/mybodyshield/pages/AdminSystemSettingsPage.js.map +0 -1
- package/dist/mybodyshield/pages/AdminUserManagementPage.js +0 -208
- package/dist/mybodyshield/pages/AdminUserManagementPage.js.map +0 -1
- package/dist/mybodyshield/pages/FitnessAssessmentsPage.js +0 -194
- package/dist/mybodyshield/pages/FitnessAssessmentsPage.js.map +0 -1
- package/dist/mybodyshield/pages/FitnessClientDetailsPage.js +0 -192
- package/dist/mybodyshield/pages/FitnessClientDetailsPage.js.map +0 -1
- package/dist/mybodyshield/pages/FitnessClientManagementPage.js +0 -128
- package/dist/mybodyshield/pages/FitnessClientManagementPage.js.map +0 -1
- package/dist/mybodyshield/pages/FitnessDashboardPage.js +0 -156
- package/dist/mybodyshield/pages/FitnessDashboardPage.js.map +0 -1
- package/dist/mybodyshield/pages/FitnessReportsPage.js +0 -138
- package/dist/mybodyshield/pages/FitnessReportsPage.js.map +0 -1
- package/dist/mybodyshield/pages/FitnessWorkoutPlansPage.js +0 -176
- package/dist/mybodyshield/pages/FitnessWorkoutPlansPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientAppointmentsPage.js +0 -132
- package/dist/mybodyshield/pages/PatientAppointmentsPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientDashboardPage.js +0 -190
- package/dist/mybodyshield/pages/PatientDashboardPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientFitnessTrackingPage.js +0 -137
- package/dist/mybodyshield/pages/PatientFitnessTrackingPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientHealthGoalsPage.js +0 -131
- package/dist/mybodyshield/pages/PatientHealthGoalsPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientHealthOverviewPage.js +0 -273
- package/dist/mybodyshield/pages/PatientHealthOverviewPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientLabResultsPage.js +0 -133
- package/dist/mybodyshield/pages/PatientLabResultsPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientMedicationsPage.js +0 -158
- package/dist/mybodyshield/pages/PatientMedicationsPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientMentalHealthPage.js +0 -152
- package/dist/mybodyshield/pages/PatientMentalHealthPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientNutritionTrackingPage.js +0 -141
- package/dist/mybodyshield/pages/PatientNutritionTrackingPage.js.map +0 -1
- package/dist/mybodyshield/pages/PatientVitalSignsPage.js +0 -160
- package/dist/mybodyshield/pages/PatientVitalSignsPage.js.map +0 -1
- package/dist/mybodyshield/pages/ProviderCalendarPage.js +0 -127
- package/dist/mybodyshield/pages/ProviderCalendarPage.js.map +0 -1
- package/dist/mybodyshield/pages/ProviderCarePlansPage.js +0 -153
- package/dist/mybodyshield/pages/ProviderCarePlansPage.js.map +0 -1
- package/dist/mybodyshield/pages/ProviderClinicalToolsPage.js +0 -174
- package/dist/mybodyshield/pages/ProviderClinicalToolsPage.js.map +0 -1
- package/dist/mybodyshield/pages/ProviderDashboardPage.js +0 -154
- package/dist/mybodyshield/pages/ProviderDashboardPage.js.map +0 -1
- package/dist/mybodyshield/pages/ProviderPatientDetailsPage.js +0 -295
- package/dist/mybodyshield/pages/ProviderPatientDetailsPage.js.map +0 -1
- package/dist/mybodyshield/pages/ProviderPatientManagementPage.js +0 -133
- package/dist/mybodyshield/pages/ProviderPatientManagementPage.js.map +0 -1
- package/dist/mybodyshield/pages/ProviderPrescriptionsPage.js +0 -138
- package/dist/mybodyshield/pages/ProviderPrescriptionsPage.js.map +0 -1
- package/dist/mybodyshield/pages/ProviderReportsPage.js +0 -149
- package/dist/mybodyshield/pages/ProviderReportsPage.js.map +0 -1
- package/dist/mybodyshield/pages/SharedAppointmentsPage.js +0 -129
- package/dist/mybodyshield/pages/SharedAppointmentsPage.js.map +0 -1
- package/dist/mybodyshield/pages/SharedCommunityPage.js +0 -152
- package/dist/mybodyshield/pages/SharedCommunityPage.js.map +0 -1
- package/dist/mybodyshield/pages/SharedEmergencyAlertsPage.js +0 -165
- package/dist/mybodyshield/pages/SharedEmergencyAlertsPage.js.map +0 -1
- package/dist/mybodyshield/pages/SharedEmergencyPage.js +0 -183
- package/dist/mybodyshield/pages/SharedEmergencyPage.js.map +0 -1
- package/dist/mybodyshield/pages/SharedHealthAnalyticsPage.js +0 -159
- package/dist/mybodyshield/pages/SharedHealthAnalyticsPage.js.map +0 -1
- package/dist/mybodyshield/pages/SharedMarketplacePage.js +0 -193
- package/dist/mybodyshield/pages/SharedMarketplacePage.js.map +0 -1
- package/dist/mybodyshield/pages/SharedMessagesPage.js +0 -156
- package/dist/mybodyshield/pages/SharedMessagesPage.js.map +0 -1
- package/dist/mybodyshield/pages/WellnessAssessmentsPage.js +0 -147
- package/dist/mybodyshield/pages/WellnessAssessmentsPage.js.map +0 -1
- package/dist/mybodyshield/pages/WellnessClientsPage.js +0 -182
- package/dist/mybodyshield/pages/WellnessClientsPage.js.map +0 -1
- package/dist/mybodyshield/pages/WellnessDashboardPage.js +0 -136
- package/dist/mybodyshield/pages/WellnessDashboardPage.js.map +0 -1
- package/dist/mybodyshield/pages/WellnessProgramsPage.js +0 -140
- package/dist/mybodyshield/pages/WellnessProgramsPage.js.map +0 -1
- package/dist/mybodyshield/providers/MyBodyShieldProvider.js +0 -27
- package/dist/mybodyshield/providers/MyBodyShieldProvider.js.map +0 -1
- package/dist/mybodyshield/store/mybodyshieldStore.js +0 -710
- package/dist/mybodyshield/store/mybodyshieldStore.js.map +0 -1
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { useMyBodyShield as e } from "../context/MyBodyShieldContext.js";
|
|
2
|
+
import "../context/index.js";
|
|
3
|
+
import { wspaceFetch as t } from "./useMybFiles.js";
|
|
4
|
+
import { useMutation as n, useQuery as r, useQueryClient as i } from "@tanstack/react-query";
|
|
5
|
+
//#region src/mybodyshield/hooks/useMybTags.ts
|
|
6
|
+
var a = "mybodyshield", o = (e, t) => [
|
|
7
|
+
"mybodyshield",
|
|
8
|
+
"entity-tags",
|
|
9
|
+
e,
|
|
10
|
+
t
|
|
11
|
+
], s = "id label color key", c = (e) => e.toLowerCase().trim().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "").slice(0, 48) || "tag", l = (n, i) => {
|
|
12
|
+
let { apiGatewayUrl: a } = e();
|
|
13
|
+
return r({
|
|
14
|
+
queryKey: o(n, i ?? ""),
|
|
15
|
+
enabled: !!i,
|
|
16
|
+
queryFn: async () => (await t(`query MybGetEntityTags($entityType: String!, $entityId: ID!) {
|
|
17
|
+
getEntityTags(entityType: $entityType, entityId: $entityId) {
|
|
18
|
+
id
|
|
19
|
+
tag { ${s} }
|
|
20
|
+
}
|
|
21
|
+
}`, {
|
|
22
|
+
entityType: n,
|
|
23
|
+
entityId: i
|
|
24
|
+
}, a)).getEntityTags
|
|
25
|
+
});
|
|
26
|
+
}, u = (n) => {
|
|
27
|
+
let { apiGatewayUrl: i } = e(), a = n.trim();
|
|
28
|
+
return r({
|
|
29
|
+
queryKey: [
|
|
30
|
+
"mybodyshield",
|
|
31
|
+
"tag-search",
|
|
32
|
+
a
|
|
33
|
+
],
|
|
34
|
+
enabled: a.length > 0,
|
|
35
|
+
queryFn: async () => (await t(`query MybSearchTags($query: String!, $limit: Int) {
|
|
36
|
+
searchTags(query: $query, limit: $limit) { ${s} }
|
|
37
|
+
}`, {
|
|
38
|
+
query: a,
|
|
39
|
+
limit: 8
|
|
40
|
+
}, i)).searchTags
|
|
41
|
+
});
|
|
42
|
+
}, d = (r, a) => {
|
|
43
|
+
let { apiGatewayUrl: s } = e(), c = i();
|
|
44
|
+
return n({
|
|
45
|
+
mutationFn: async (e) => (await t("mutation MybAssignTag($input: AssignTagInput!) {\n assignTag(input: $input) { id }\n }", { input: {
|
|
46
|
+
entityType: r,
|
|
47
|
+
entityId: a,
|
|
48
|
+
tagId: e
|
|
49
|
+
} }, s)).assignTag,
|
|
50
|
+
onSuccess: () => c.invalidateQueries({ queryKey: o(r, a) })
|
|
51
|
+
});
|
|
52
|
+
}, f = (r, a) => {
|
|
53
|
+
let { apiGatewayUrl: s } = e(), c = i();
|
|
54
|
+
return n({
|
|
55
|
+
mutationFn: async (e) => (await t("mutation MybRemoveTagAssignment($id: ID!) {\n removeTagAssignment(id: $id)\n }", { id: e }, s)).removeTagAssignment,
|
|
56
|
+
onSuccess: () => c.invalidateQueries({ queryKey: o(r, a) })
|
|
57
|
+
});
|
|
58
|
+
}, p = async (e) => {
|
|
59
|
+
let n = await t("query MybGetVocabulary($key: String!) {\n getVocabularyByKey(key: $key) { id }\n }", { key: a }, e);
|
|
60
|
+
return n.getVocabularyByKey?.id ? n.getVocabularyByKey.id : (await t("mutation MybCreateVocabulary($input: CreateVocabularyInput!) {\n createVocabulary(input: $input) { id }\n }", { input: {
|
|
61
|
+
key: a,
|
|
62
|
+
name: "MyBodyShield",
|
|
63
|
+
description: "Tags for MyBodyShield programs, coaching and other records.",
|
|
64
|
+
allowCustomTags: !0
|
|
65
|
+
} }, e)).createVocabulary.id;
|
|
66
|
+
}, m = (r, a) => {
|
|
67
|
+
let { apiGatewayUrl: s } = e(), l = i();
|
|
68
|
+
return n({
|
|
69
|
+
mutationFn: async (e) => {
|
|
70
|
+
let n = e.trim();
|
|
71
|
+
if (!n) throw Error("A tag label is required.");
|
|
72
|
+
let i = await t("mutation MybCreateTag($input: CreateTagInput!) {\n createTag(input: $input) { id }\n }", { input: {
|
|
73
|
+
vocabularyId: await p(s),
|
|
74
|
+
key: `${c(n)}-${Math.random().toString(36).slice(2, 6)}`,
|
|
75
|
+
label: n
|
|
76
|
+
} }, s);
|
|
77
|
+
return await t("mutation MybAssignCreatedTag($input: AssignTagInput!) {\n assignTag(input: $input) { id }\n }", { input: {
|
|
78
|
+
entityType: r,
|
|
79
|
+
entityId: a,
|
|
80
|
+
tagId: i.createTag.id
|
|
81
|
+
} }, s), i.createTag;
|
|
82
|
+
},
|
|
83
|
+
onSuccess: () => l.invalidateQueries({ queryKey: o(r, a) })
|
|
84
|
+
});
|
|
85
|
+
};
|
|
86
|
+
//#endregion
|
|
87
|
+
export { d as useMybAssignTag, m as useMybCreateAndAssignTag, l as useMybEntityTags, f as useMybRemoveTagAssignment, u as useMybTagSearch };
|
|
88
|
+
|
|
89
|
+
//# sourceMappingURL=useMybTags.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMybTags.js","names":[],"sources":["../../../src/mybodyshield/hooks/useMybTags.ts"],"sourcesContent":["/**\n * MyBodyShield — wspace-tags-svc UniversalTag REUSE hooks (Integration C).\n * @module mybodyshield/hooks/useMybTags\n *\n * The mybodyshield svc does NOT expose a tags field, so we drive the platform tag\n * assignment store directly (approach (b) in the reuse audit) — no mybodyshield-svc\n * change. All operations are composed into the WORKSPACE supergraph:\n * - `getEntityTags(entityType, entityId)` → current assignments (display)\n * - `searchTags(query)` → pick an existing tag\n * - `createTag(input)` → create a new tag (needs a vocabulary)\n * - `assignTag(input)` → link tag ↔ entity\n * - `removeTagAssignment(id)` → unlink\n *\n * `createTag` requires a `vocabularyId`; we resolve a stable, workspace-scoped\n * \"mybodyshield\" vocabulary (`getVocabularyByKey`, creating it on first use).\n *\n * Transport reuses `wspaceFetch` from `useMybFiles`. Lives in a separate file;\n * `useMyBodyShieldApi.ts` is untouched.\n */\n\nimport { useMutation, useQuery, useQueryClient } from '@tanstack/react-query';\n\nimport { useMyBodyShield } from '../context';\nimport { wspaceFetch } from './useMybFiles';\n\nexport interface MybTag {\n id: string;\n label: string;\n color: string | null;\n key: string;\n}\n\nexport interface MybTagAssignment {\n id: string;\n tag: MybTag;\n}\n\nconst MYB_VOCABULARY_KEY = 'mybodyshield';\n\nconst entityTagsKey = (entityType: string, entityId: string) =>\n ['mybodyshield', 'entity-tags', entityType, entityId] as const;\n\nconst TAG_FIELDS = 'id label color key';\n\nconst slugify = (value: string): string =>\n value\n .toLowerCase()\n .trim()\n .replace(/[^a-z0-9]+/g, '-')\n .replace(/^-+|-+$/g, '')\n .slice(0, 48) || 'tag';\n\n/** Current tag assignments for an mybodyshield entity. */\nexport const useMybEntityTags = (entityType: string, entityId: string | undefined) => {\n const { apiGatewayUrl } = useMyBodyShield();\n return useQuery({\n queryKey: entityTagsKey(entityType, entityId ?? ''),\n enabled: Boolean(entityId),\n queryFn: async () => {\n const data = await wspaceFetch<{ getEntityTags: MybTagAssignment[] }>(\n `query MybGetEntityTags($entityType: String!, $entityId: ID!) {\n getEntityTags(entityType: $entityType, entityId: $entityId) {\n id\n tag { ${TAG_FIELDS} }\n }\n }`,\n { entityType, entityId },\n apiGatewayUrl\n );\n return data.getEntityTags;\n },\n });\n};\n\n/** Search existing tags (enabled only for a non-empty query). */\nexport const useMybTagSearch = (query: string) => {\n const { apiGatewayUrl } = useMyBodyShield();\n const trimmed = query.trim();\n return useQuery({\n queryKey: ['mybodyshield', 'tag-search', trimmed],\n enabled: trimmed.length > 0,\n queryFn: async () => {\n const data = await wspaceFetch<{ searchTags: MybTag[] }>(\n `query MybSearchTags($query: String!, $limit: Int) {\n searchTags(query: $query, limit: $limit) { ${TAG_FIELDS} }\n }`,\n { query: trimmed, limit: 8 },\n apiGatewayUrl\n );\n return data.searchTags;\n },\n });\n};\n\n/** Assign an existing tag to the entity. */\nexport const useMybAssignTag = (entityType: string, entityId: string) => {\n const { apiGatewayUrl } = useMyBodyShield();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (tagId: string) => {\n const data = await wspaceFetch<{ assignTag: { id: string } }>(\n `mutation MybAssignTag($input: AssignTagInput!) {\n assignTag(input: $input) { id }\n }`,\n { input: { entityType, entityId, tagId } },\n apiGatewayUrl\n );\n return data.assignTag;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: entityTagsKey(entityType, entityId) }),\n });\n};\n\n/** Remove a tag assignment by its assignment id. */\nexport const useMybRemoveTagAssignment = (entityType: string, entityId: string) => {\n const { apiGatewayUrl } = useMyBodyShield();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (assignmentId: string) => {\n const data = await wspaceFetch<{ removeTagAssignment: boolean }>(\n `mutation MybRemoveTagAssignment($id: ID!) {\n removeTagAssignment(id: $id)\n }`,\n { id: assignmentId },\n apiGatewayUrl\n );\n return data.removeTagAssignment;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: entityTagsKey(entityType, entityId) }),\n });\n};\n\n/** Resolve (creating on first use) the workspace-scoped \"mybodyshield\" vocabulary. */\nconst resolveMybVocabularyId = async (baseUrl?: string): Promise<string> => {\n const existing = await wspaceFetch<{ getVocabularyByKey: { id: string } | null }>(\n `query MybGetVocabulary($key: String!) {\n getVocabularyByKey(key: $key) { id }\n }`,\n { key: MYB_VOCABULARY_KEY },\n baseUrl\n );\n if (existing.getVocabularyByKey?.id) {\n return existing.getVocabularyByKey.id;\n }\n const created = await wspaceFetch<{ createVocabulary: { id: string } }>(\n `mutation MybCreateVocabulary($input: CreateVocabularyInput!) {\n createVocabulary(input: $input) { id }\n }`,\n {\n input: {\n key: MYB_VOCABULARY_KEY,\n name: 'MyBodyShield',\n description: 'Tags for MyBodyShield programs, coaching and other records.',\n allowCustomTags: true,\n },\n },\n baseUrl\n );\n return created.createVocabulary.id;\n};\n\n/** Create a new tag from a free-text label and assign it to the entity. */\nexport const useMybCreateAndAssignTag = (entityType: string, entityId: string) => {\n const { apiGatewayUrl } = useMyBodyShield();\n const qc = useQueryClient();\n return useMutation({\n mutationFn: async (label: string) => {\n const trimmed = label.trim();\n if (!trimmed) {\n throw new Error('A tag label is required.');\n }\n const vocabularyId = await resolveMybVocabularyId(apiGatewayUrl);\n // A unique key avoids collisions with existing tags in the vocabulary;\n // the (non-unique) label is what users see.\n const key = `${slugify(trimmed)}-${Math.random().toString(36).slice(2, 6)}`;\n const created = await wspaceFetch<{ createTag: { id: string } }>(\n `mutation MybCreateTag($input: CreateTagInput!) {\n createTag(input: $input) { id }\n }`,\n { input: { vocabularyId, key, label: trimmed } },\n apiGatewayUrl\n );\n await wspaceFetch<{ assignTag: { id: string } }>(\n `mutation MybAssignCreatedTag($input: AssignTagInput!) {\n assignTag(input: $input) { id }\n }`,\n { input: { entityType, entityId, tagId: created.createTag.id } },\n apiGatewayUrl\n );\n return created.createTag;\n },\n onSuccess: () => qc.invalidateQueries({ queryKey: entityTagsKey(entityType, entityId) }),\n });\n};\n"],"mappings":";;;;;AAqCA,IAAM,IAAqB,gBAErB,KAAiB,GAAoB,MACzC;CAAC;CAAgB;CAAe;CAAY;CAAS,EAEjD,IAAa,sBAEb,KAAW,MACf,EACG,aAAa,CACb,MAAM,CACN,QAAQ,eAAe,IAAI,CAC3B,QAAQ,YAAY,GAAG,CACvB,MAAM,GAAG,GAAG,IAAI,OAGR,KAAoB,GAAoB,MAAiC;CACpF,IAAM,EAAE,qBAAkB,GAAiB;AAC3C,QAAO,EAAS;EACd,UAAU,EAAc,GAAY,KAAY,GAAG;EACnD,SAAS,EAAQ;EACjB,SAAS,aACM,MAAM,EACjB;;;oBAGY,EAAW;;YAGvB;GAAE;GAAY;GAAU,EACxB,EACD,EACW;EAEf,CAAC;GAIS,KAAmB,MAAkB;CAChD,IAAM,EAAE,qBAAkB,GAAiB,EACrC,IAAU,EAAM,MAAM;AAC5B,QAAO,EAAS;EACd,UAAU;GAAC;GAAgB;GAAc;GAAQ;EACjD,SAAS,EAAQ,SAAS;EAC1B,SAAS,aACM,MAAM,EACjB;uDAC+C,EAAW;YAE1D;GAAE,OAAO;GAAS,OAAO;GAAG,EAC5B,EACD,EACW;EAEf,CAAC;GAIS,KAAmB,GAAoB,MAAqB;CACvE,IAAM,EAAE,qBAAkB,GAAiB,EACrC,IAAK,GAAgB;AAC3B,QAAO,EAAY;EACjB,YAAY,OAAO,OACJ,MAAM,EACjB,0GAGA,EAAE,OAAO;GAAE;GAAY;GAAU;GAAO,EAAE,EAC1C,EACD,EACW;EAEd,iBAAiB,EAAG,kBAAkB,EAAE,UAAU,EAAc,GAAY,EAAS,EAAE,CAAC;EACzF,CAAC;GAIS,KAA6B,GAAoB,MAAqB;CACjF,IAAM,EAAE,qBAAkB,GAAiB,EACrC,IAAK,GAAgB;AAC3B,QAAO,EAAY;EACjB,YAAY,OAAO,OACJ,MAAM,EACjB,kGAGA,EAAE,IAAI,GAAc,EACpB,EACD,EACW;EAEd,iBAAiB,EAAG,kBAAkB,EAAE,UAAU,EAAc,GAAY,EAAS,EAAE,CAAC;EACzF,CAAC;GAIE,IAAyB,OAAO,MAAsC;CAC1E,IAAM,IAAW,MAAM,EACrB,8FAGA,EAAE,KAAK,GAAoB,EAC3B,EACD;AAkBD,QAjBI,EAAS,oBAAoB,KACxB,EAAS,mBAAmB,MAErB,MAAM,EACpB,uHAGA,EACE,OAAO;EACL,KAAK;EACL,MAAM;EACN,aAAa;EACb,iBAAiB;EAClB,EACF,EACD,EACD,EACc,iBAAiB;GAIrB,KAA4B,GAAoB,MAAqB;CAChF,IAAM,EAAE,qBAAkB,GAAiB,EACrC,IAAK,GAAgB;AAC3B,QAAO,EAAY;EACjB,YAAY,OAAO,MAAkB;GACnC,IAAM,IAAU,EAAM,MAAM;AAC5B,OAAI,CAAC,EACH,OAAU,MAAM,2BAA2B;GAM7C,IAAM,IAAU,MAAM,EACpB,0GAGA,EAAE,OAAO;IAAE,cARQ,MAAM,EAAuB,EAAc;IAQrC,KALf,GAAG,EAAQ,EAAQ,CAAC,GAAG,KAAK,QAAQ,CAAC,SAAS,GAAG,CAAC,MAAM,GAAG,EAAE;IAKzC,OAAO;IAAS,EAAE,EAChD,EACD;AAQD,UAPA,MAAM,EACJ,iHAGA,EAAE,OAAO;IAAE;IAAY;IAAU,OAAO,EAAQ,UAAU;IAAI,EAAE,EAChE,EACD,EACM,EAAQ;;EAEjB,iBAAiB,EAAG,kBAAkB,EAAE,UAAU,EAAc,GAAY,EAAS,EAAE,CAAC;EACzF,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { useQuery as e } from "@tanstack/react-query";
|
|
2
|
+
import { graphqlFetch as t } from "@burdenoff/fe-libs/shared/graphql";
|
|
3
|
+
//#region src/mybodyshield/hooks/useMybUsers.ts
|
|
4
|
+
var n = (e) => e.name?.trim() ? e.name.trim() : [e.firstName, e.lastName].filter(Boolean).join(" ").trim() || (e.username?.trim() ? e.username.trim() : e.email), r = async (e, n) => {
|
|
5
|
+
let r = await t({
|
|
6
|
+
gateway: "global",
|
|
7
|
+
query: e,
|
|
8
|
+
variables: n
|
|
9
|
+
});
|
|
10
|
+
if (r.errors?.length) throw Error(r.errors[0]?.message ?? "GraphQL request failed");
|
|
11
|
+
if (!r.data) throw Error("GraphQL response did not include data");
|
|
12
|
+
return r.data;
|
|
13
|
+
}, i = (t) => {
|
|
14
|
+
let n = t.trim();
|
|
15
|
+
return e({
|
|
16
|
+
queryKey: [
|
|
17
|
+
"mybodyshield",
|
|
18
|
+
"user-search",
|
|
19
|
+
n
|
|
20
|
+
],
|
|
21
|
+
enabled: n.length >= 2,
|
|
22
|
+
staleTime: 3e4,
|
|
23
|
+
retry: !1,
|
|
24
|
+
queryFn: async () => (await r("query MybUserSearch($filter: UserFilterInput, $pagination: PaginationInput) {\n users(filter: $filter, pagination: $pagination) {\n users { id name firstName lastName email username }\n hasMore\n }\n }", {
|
|
25
|
+
filter: { search: n },
|
|
26
|
+
pagination: {
|
|
27
|
+
limit: 8,
|
|
28
|
+
offset: 0
|
|
29
|
+
}
|
|
30
|
+
})).users.users
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { n as directoryUserName, i as useMybUserSearch };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=useMybUsers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMybUsers.js","names":[],"sources":["../../../src/mybodyshield/hooks/useMybUsers.ts"],"sourcesContent":["/**\n * MyBodyShield — global user directory search (identity reuse).\n * @module mybodyshield/hooks/useMybUsers\n *\n * Resolves real users (coach / member) from the global auth directory so the\n * coaching form can pick a person by name/email instead of pasting a raw UUID.\n * Reuses the composed GLOBAL supergraph `users(filter, pagination)` op — no\n * bespoke identity storage in the mybodyshield svc. Transport mirrors the other\n * hooks (`graphqlFetch`) but targets the GLOBAL gateway.\n */\n\nimport { useQuery } from '@tanstack/react-query';\nimport { graphqlFetch } from '@burdenoff/fe-libs/shared/graphql';\n\nimport { useMyBodyShield } from '../context';\n\nexport interface DirectoryUser {\n id: string;\n name: string | null;\n firstName: string | null;\n lastName: string | null;\n email: string;\n username: string;\n}\n\n/** Best display name for a directory user (name → first+last → username → email). */\nexport const directoryUserName = (user: DirectoryUser): string => {\n if (user.name?.trim()) return user.name.trim();\n const full = [user.firstName, user.lastName].filter(Boolean).join(' ').trim();\n if (full) return full;\n if (user.username?.trim()) return user.username.trim();\n return user.email;\n};\n\nconst globalQuery = async <TData>(\n query: string,\n variables: Record<string, unknown>\n): Promise<TData> => {\n const response = await graphqlFetch<TData>({ gateway: 'global', query, variables });\n if (response.errors?.length) {\n throw new Error(response.errors[0]?.message ?? 'GraphQL request failed');\n }\n if (!response.data) {\n throw new Error('GraphQL response did not include data');\n }\n return response.data;\n};\n\n/**\n * Search the tenant user directory by name/email. Enabled once the term is at\n * least two characters; failures are surfaced to the caller (which offers a\n * manual-id fallback) rather than as a global error toast.\n */\nexport const useMybUserSearch = (search: string) => {\n const term = search.trim();\n return useQuery({\n queryKey: ['mybodyshield', 'user-search', term],\n enabled: term.length >= 2,\n staleTime: 30_000,\n retry: false,\n queryFn: async () => {\n const result = await globalQuery<{\n users: { users: DirectoryUser[]; hasMore: boolean };\n }>(\n `query MybUserSearch($filter: UserFilterInput, $pagination: PaginationInput) {\n users(filter: $filter, pagination: $pagination) {\n users { id name firstName lastName email username }\n hasMore\n }\n }`,\n { filter: { search: term }, pagination: { limit: 8, offset: 0 } }\n );\n return result.users.users;\n },\n });\n};\n"],"mappings":";;;AA0BA,IAAa,KAAqB,MAC5B,EAAK,MAAM,MAAM,GAAS,EAAK,KAAK,MAAM,GACjC,CAAC,EAAK,WAAW,EAAK,SAAS,CAAC,OAAO,QAAQ,CAAC,KAAK,IAAI,CAAC,MAAM,KAEzE,EAAK,UAAU,MAAM,GAAS,EAAK,SAAS,MAAM,GAC/C,EAAK,QAGR,IAAc,OAClB,GACA,MACmB;CACnB,IAAM,IAAW,MAAM,EAAoB;EAAE,SAAS;EAAU;EAAO;EAAW,CAAC;AACnF,KAAI,EAAS,QAAQ,OACnB,OAAU,MAAM,EAAS,OAAO,IAAI,WAAW,yBAAyB;AAE1E,KAAI,CAAC,EAAS,KACZ,OAAU,MAAM,wCAAwC;AAE1D,QAAO,EAAS;GAQL,KAAoB,MAAmB;CAClD,IAAM,IAAO,EAAO,MAAM;AAC1B,QAAO,EAAS;EACd,UAAU;GAAC;GAAgB;GAAe;GAAK;EAC/C,SAAS,EAAK,UAAU;EACxB,WAAW;EACX,OAAO;EACP,SAAS,aACQ,MAAM,EAGnB,4PAMA;GAAE,QAAQ,EAAE,QAAQ,GAAM;GAAE,YAAY;IAAE,OAAO;IAAG,QAAQ;IAAG;GAAE,CAClE,EACa,MAAM;EAEvB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { useCallback as e, useMemo as t, useState as n } from "react";
|
|
2
|
+
//#region src/mybodyshield/hooks/usePager.ts
|
|
3
|
+
function r(r = 25) {
|
|
4
|
+
let [i, a] = n(0), o = e(() => a((e) => e + 1), []), s = e(() => a((e) => e > 0 ? e - 1 : 0), []), c = e(() => a(0), []), l = e((e) => {
|
|
5
|
+
a(e < 0 ? 0 : e);
|
|
6
|
+
}, []);
|
|
7
|
+
return t(() => ({
|
|
8
|
+
page: i,
|
|
9
|
+
offset: i * r,
|
|
10
|
+
pageSize: r,
|
|
11
|
+
next: o,
|
|
12
|
+
prev: s,
|
|
13
|
+
reset: c,
|
|
14
|
+
onPageChange: l
|
|
15
|
+
}), [
|
|
16
|
+
i,
|
|
17
|
+
r,
|
|
18
|
+
o,
|
|
19
|
+
s,
|
|
20
|
+
c,
|
|
21
|
+
l
|
|
22
|
+
]);
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as useOffsetPager };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=usePager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePager.js","names":[],"sources":["../../../src/mybodyshield/hooks/usePager.ts"],"sourcesContent":["/**\n * useOffsetPager — offset/limit pagination for Myb* list connections.\n * @module mybodyshield/hooks\n *\n * The workspaces public gateway's composed `PaginationInput` does NOT reliably\n * carry `cursor` (the federated intersection drops it) — sending\n * `pagination.cursor` fails (GRAPHQL_VALIDATION_FAILED, or INTERNAL_SERVER_ERROR\n * on a null end-cursor). So MFE lists paginate by **offset**: pass\n * `pagination: { limit, offset: page * limit }` and drive \"Next\" from\n * `pageInfo.hasMore`. This hook keeps a 0-indexed `page` and derives `offset`.\n */\n\nimport { useCallback, useMemo, useState } from 'react';\n\nexport interface OffsetPager {\n /** 0-indexed page number for display. */\n page: number;\n /** Number of rows to skip — pass as `pagination.offset`. */\n offset: number;\n /** Rows per page. */\n pageSize: number;\n /** Advance to the next page. */\n next: () => void;\n /** Go back one page (no-op on the first page). */\n prev: () => void;\n /** Reset to the first page (call when filters change). */\n reset: () => void;\n /** Adapter for `<Pagination onPageChange>` — jumps to an absolute 0-indexed page. */\n onPageChange: (targetPage: number) => void;\n}\n\nexport function useOffsetPager(pageSize = 25): OffsetPager {\n const [page, setPage] = useState(0);\n\n const next = useCallback(() => setPage((p) => p + 1), []);\n const prev = useCallback(() => setPage((p) => (p > 0 ? p - 1 : 0)), []);\n const reset = useCallback(() => setPage(0), []);\n const onPageChange = useCallback((targetPage: number) => {\n setPage(targetPage < 0 ? 0 : targetPage);\n }, []);\n\n return useMemo(\n () => ({ page, offset: page * pageSize, pageSize, next, prev, reset, onPageChange }),\n [page, pageSize, next, prev, reset, onPageChange]\n );\n}\n"],"mappings":";;AA+BA,SAAgB,EAAe,IAAW,IAAiB;CACzD,IAAM,CAAC,GAAM,KAAW,EAAS,EAAE,EAE7B,IAAO,QAAkB,GAAS,MAAM,IAAI,EAAE,EAAE,EAAE,CAAC,EACnD,IAAO,QAAkB,GAAS,MAAO,IAAI,IAAI,IAAI,IAAI,EAAG,EAAE,EAAE,CAAC,EACjE,IAAQ,QAAkB,EAAQ,EAAE,EAAE,EAAE,CAAC,EACzC,IAAe,GAAa,MAAuB;AACvD,IAAQ,IAAa,IAAI,IAAI,EAAW;IACvC,EAAE,CAAC;AAEN,QAAO,SACE;EAAE;EAAM,QAAQ,IAAO;EAAU;EAAU;EAAM;EAAM;EAAO;EAAc,GACnF;EAAC;EAAM;EAAU;EAAM;EAAM;EAAO;EAAa,CAClD"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
import "./
|
|
2
|
-
import "./
|
|
1
|
+
import "./utils/navigation.js";
|
|
2
|
+
import "./context/MyBodyShieldContext.js";
|
|
3
|
+
import "./utils/cn.js";
|
|
4
|
+
import "./utils/formatters.js";
|
|
5
|
+
import "./context/index.js";
|
|
3
6
|
import "./MyBodyShieldRoot.js";
|
|
@@ -0,0 +1,432 @@
|
|
|
1
|
+
import { useMyBodyShield as e } from "../context/MyBodyShieldContext.js";
|
|
2
|
+
import { PageLayout as t } from "../components/PageLayout.js";
|
|
3
|
+
import { MetricsCard as n } from "../components/MetricsCard.js";
|
|
4
|
+
import { formatEnumLabel as r, formatNumber as i, formatPercent as a, formatRelativeTime as o, formatWeight as ee } from "../utils/formatters.js";
|
|
5
|
+
import { StatusBadge as s } from "../components/StatusBadge.js";
|
|
6
|
+
import { MiniBar as te } from "../components/MiniBar.js";
|
|
7
|
+
import { LoadingView as c, Section as l } from "../components/StateViews.js";
|
|
8
|
+
import { EmptyState as u } from "../components/EmptyState.js";
|
|
9
|
+
import { GOAL_TYPE_META as ne, IconChip as d, MacroBar as f, MacroLegend as p, Meter as m, ProgressRing as re, WORKOUT_TYPE_META as h, computeGoalProgress as g } from "./_shared/visuals.js";
|
|
10
|
+
import "../context/index.js";
|
|
11
|
+
import { useMybBodyMetrics as _, useMybDailyMacros as v, useMybGoals as y, useMybPrograms as b, useMybRecoveryLogs as x, useMybSessions as S } from "../hooks/useMyBodyShieldApi.js";
|
|
12
|
+
import "../hooks/index.js";
|
|
13
|
+
import { useMemo as C } from "react";
|
|
14
|
+
import { ArrowRight as w, CalendarCheck as T, CheckCircle2 as ie, Dumbbell as ae, Flame as E, Moon as oe, Salad as se, Target as D, Weight as ce } from "lucide-react";
|
|
15
|
+
import { jsx as O, jsxs as k } from "react/jsx-runtime";
|
|
16
|
+
import { GlassCard as A } from "@burdenoff/fe-libs/ui";
|
|
17
|
+
//#region src/mybodyshield/pages/DashboardPage.tsx
|
|
18
|
+
function j() {
|
|
19
|
+
let { navigateTo: j, currentUser: M } = e(), N = b({
|
|
20
|
+
status: "ACTIVE",
|
|
21
|
+
pagination: { limit: 50 }
|
|
22
|
+
}), P = S({ pagination: { limit: 20 } }), F = y({
|
|
23
|
+
status: "ACTIVE",
|
|
24
|
+
pagination: { limit: 50 }
|
|
25
|
+
}), I = v(), L = _({
|
|
26
|
+
type: "WEIGHT",
|
|
27
|
+
pagination: { limit: 30 }
|
|
28
|
+
}), R = x("READINESS"), z = N.data?.items ?? [], B = P.data?.items ?? [], V = F.data?.items ?? [], H = L.data?.items ?? [], U = R.data ?? [], W = (/* @__PURE__ */ new Date()).getTime() - 10080 * 60 * 1e3, G = B.filter((e) => {
|
|
29
|
+
let t = e.completedAt ?? e.startedAt ?? e.scheduledFor ?? e.createdAt;
|
|
30
|
+
return t ? new Date(t).getTime() >= W : !1;
|
|
31
|
+
}), le = G.filter((e) => e.status === "COMPLETED").length, K = B.find((e) => e.status === "IN_PROGRESS"), q = B.filter((e) => e.status === "SCHEDULED" && e.scheduledFor).sort((e, t) => new Date(e.scheduledFor).getTime() - new Date(t.scheduledFor).getTime())[0], J = H[0], Y = H[1], X = J && Y ? J.value - Y.value : void 0, Z = U.slice().sort((e, t) => new Date(t.loggedAt).getTime() - new Date(e.loggedAt).getTime())[0], Q = C(() => V.length === 0 ? 0 : V.reduce((e, t) => e + g(t), 0) / V.length, [V]), $ = I.data, ue = $?.calorieTarget ? $.calories / $.calorieTarget * 100 : 0;
|
|
32
|
+
return N.isLoading && P.isLoading && F.isLoading && I.isLoading ? /* @__PURE__ */ O(t, {
|
|
33
|
+
title: "MyBodyShield",
|
|
34
|
+
titleGradient: !0,
|
|
35
|
+
aurora: !0,
|
|
36
|
+
children: /* @__PURE__ */ O(c, { label: "Loading your fitness overview…" })
|
|
37
|
+
}) : /* @__PURE__ */ k(t, {
|
|
38
|
+
title: "MyBodyShield",
|
|
39
|
+
titleGradient: !0,
|
|
40
|
+
aurora: !0,
|
|
41
|
+
description: `Welcome back, ${M?.firstName || M?.name || "there"} — your training, nutrition, progress & recovery control room.`,
|
|
42
|
+
children: [
|
|
43
|
+
/* @__PURE__ */ k("div", {
|
|
44
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-5",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ O(n, {
|
|
47
|
+
icon: /* @__PURE__ */ O(ae, { className: "h-5 w-5" }),
|
|
48
|
+
value: i(z.length),
|
|
49
|
+
label: "Active programs",
|
|
50
|
+
footer: /* @__PURE__ */ O("p", {
|
|
51
|
+
className: "text-xs text-text-tertiary",
|
|
52
|
+
children: /* @__PURE__ */ O("button", {
|
|
53
|
+
type: "button",
|
|
54
|
+
onClick: () => j("programs"),
|
|
55
|
+
className: "font-medium text-accent hover:underline",
|
|
56
|
+
children: "Manage programs"
|
|
57
|
+
})
|
|
58
|
+
})
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ O(n, {
|
|
61
|
+
icon: /* @__PURE__ */ O(E, { className: "h-5 w-5" }),
|
|
62
|
+
value: i(le),
|
|
63
|
+
label: "Sessions this week",
|
|
64
|
+
accent: K ? "warning" : void 0,
|
|
65
|
+
footer: K ? /* @__PURE__ */ O("button", {
|
|
66
|
+
type: "button",
|
|
67
|
+
onClick: () => j(`train/${K.id}`),
|
|
68
|
+
className: "text-xs font-medium text-status-warning-text hover:underline",
|
|
69
|
+
children: "Resume live session →"
|
|
70
|
+
}) : /* @__PURE__ */ k("p", {
|
|
71
|
+
className: "text-xs text-text-tertiary",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ O("span", {
|
|
74
|
+
className: "tabular-nums text-text-secondary",
|
|
75
|
+
children: G.length
|
|
76
|
+
}),
|
|
77
|
+
" ",
|
|
78
|
+
"logged"
|
|
79
|
+
]
|
|
80
|
+
})
|
|
81
|
+
}),
|
|
82
|
+
/* @__PURE__ */ O(n, {
|
|
83
|
+
icon: /* @__PURE__ */ O(D, { className: "h-5 w-5" }),
|
|
84
|
+
value: i(V.length),
|
|
85
|
+
label: "Active goals",
|
|
86
|
+
footer: /* @__PURE__ */ k("div", {
|
|
87
|
+
className: "space-y-2",
|
|
88
|
+
children: [/* @__PURE__ */ O(te, {
|
|
89
|
+
value: Q,
|
|
90
|
+
height: 4,
|
|
91
|
+
barClassName: "bg-accent-teal"
|
|
92
|
+
}), /* @__PURE__ */ k("p", {
|
|
93
|
+
className: "text-xs text-text-tertiary",
|
|
94
|
+
children: [
|
|
95
|
+
/* @__PURE__ */ O("span", {
|
|
96
|
+
className: "tabular-nums text-text-secondary",
|
|
97
|
+
children: a(Q)
|
|
98
|
+
}),
|
|
99
|
+
" ",
|
|
100
|
+
"avg progress"
|
|
101
|
+
]
|
|
102
|
+
})]
|
|
103
|
+
})
|
|
104
|
+
}),
|
|
105
|
+
/* @__PURE__ */ O(n, {
|
|
106
|
+
icon: /* @__PURE__ */ O(ce, { className: "h-5 w-5" }),
|
|
107
|
+
value: J ? ee(J.value) : "—",
|
|
108
|
+
label: "Latest weight",
|
|
109
|
+
footer: X == null ? /* @__PURE__ */ O("button", {
|
|
110
|
+
type: "button",
|
|
111
|
+
onClick: () => j("progress"),
|
|
112
|
+
className: "text-xs font-medium text-accent hover:underline",
|
|
113
|
+
children: "Log a measurement →"
|
|
114
|
+
}) : /* @__PURE__ */ k("p", {
|
|
115
|
+
className: "text-xs text-text-tertiary",
|
|
116
|
+
children: [
|
|
117
|
+
/* @__PURE__ */ k("span", {
|
|
118
|
+
className: X <= 0 ? "font-medium text-status-success-text" : "font-medium text-text-secondary",
|
|
119
|
+
children: [
|
|
120
|
+
X > 0 ? "+" : "",
|
|
121
|
+
X.toFixed(1),
|
|
122
|
+
" kg"
|
|
123
|
+
]
|
|
124
|
+
}),
|
|
125
|
+
" ",
|
|
126
|
+
"vs last"
|
|
127
|
+
]
|
|
128
|
+
})
|
|
129
|
+
}),
|
|
130
|
+
/* @__PURE__ */ O(n, {
|
|
131
|
+
icon: /* @__PURE__ */ O(oe, { className: "h-5 w-5" }),
|
|
132
|
+
value: Z ? `${Z.score}` : "—",
|
|
133
|
+
label: "Recovery readiness",
|
|
134
|
+
accent: Z ? Z.score >= 70 ? "success" : Z.score >= 40 ? "warning" : "error" : void 0,
|
|
135
|
+
footer: Z ? /* @__PURE__ */ O("p", {
|
|
136
|
+
className: "text-xs text-text-tertiary",
|
|
137
|
+
children: o(Z.loggedAt)
|
|
138
|
+
}) : /* @__PURE__ */ O("button", {
|
|
139
|
+
type: "button",
|
|
140
|
+
onClick: () => j("recovery"),
|
|
141
|
+
className: "text-xs font-medium text-accent hover:underline",
|
|
142
|
+
children: "Log recovery →"
|
|
143
|
+
})
|
|
144
|
+
})
|
|
145
|
+
]
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ k("div", {
|
|
148
|
+
className: "mt-6 grid grid-cols-1 gap-6 lg:grid-cols-3",
|
|
149
|
+
children: [/* @__PURE__ */ k(A, {
|
|
150
|
+
treatment: "glass",
|
|
151
|
+
className: "p-6 lg:col-span-2",
|
|
152
|
+
children: [/* @__PURE__ */ k("div", {
|
|
153
|
+
className: "mb-4 flex flex-wrap items-start justify-between gap-3",
|
|
154
|
+
children: [/* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("h2", {
|
|
155
|
+
className: "text-base font-semibold text-text-primary",
|
|
156
|
+
children: "Today's nutrition"
|
|
157
|
+
}), /* @__PURE__ */ O("p", {
|
|
158
|
+
className: "mt-0.5 text-sm text-text-secondary",
|
|
159
|
+
children: "Calories & macros logged against your active plan."
|
|
160
|
+
})] }), /* @__PURE__ */ k("button", {
|
|
161
|
+
type: "button",
|
|
162
|
+
onClick: () => j("nutrition"),
|
|
163
|
+
className: "inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",
|
|
164
|
+
children: ["Nutrition ", /* @__PURE__ */ O(w, { className: "h-4 w-4" })]
|
|
165
|
+
})]
|
|
166
|
+
}), !$ || $.calorieTarget === 0 && $.calories === 0 ? /* @__PURE__ */ O(u, {
|
|
167
|
+
illustration: "empty-data",
|
|
168
|
+
icon: /* @__PURE__ */ O(se, { className: "h-10 w-10" }),
|
|
169
|
+
title: "No nutrition data yet",
|
|
170
|
+
description: "Activate a nutrition plan and log meals to track your daily macros here."
|
|
171
|
+
}) : /* @__PURE__ */ k("div", {
|
|
172
|
+
className: "flex flex-col gap-6 sm:flex-row sm:items-center",
|
|
173
|
+
children: [/* @__PURE__ */ k(re, {
|
|
174
|
+
value: ue,
|
|
175
|
+
size: 128,
|
|
176
|
+
stroke: 12,
|
|
177
|
+
children: [/* @__PURE__ */ O("span", {
|
|
178
|
+
className: "text-xl font-bold tabular-nums text-text-primary",
|
|
179
|
+
children: i($.calories)
|
|
180
|
+
}), /* @__PURE__ */ k("span", {
|
|
181
|
+
className: "text-xs text-text-tertiary",
|
|
182
|
+
children: [
|
|
183
|
+
"/ ",
|
|
184
|
+
i($.calorieTarget),
|
|
185
|
+
" kcal"
|
|
186
|
+
]
|
|
187
|
+
})]
|
|
188
|
+
}), /* @__PURE__ */ k("div", {
|
|
189
|
+
className: "flex-1 space-y-4",
|
|
190
|
+
children: [/* @__PURE__ */ k("div", {
|
|
191
|
+
className: "space-y-2",
|
|
192
|
+
children: [/* @__PURE__ */ O(f, {
|
|
193
|
+
proteinG: $.proteinG,
|
|
194
|
+
carbsG: $.carbsG,
|
|
195
|
+
fatG: $.fatG,
|
|
196
|
+
height: 10
|
|
197
|
+
}), /* @__PURE__ */ O(p, {})]
|
|
198
|
+
}), /* @__PURE__ */ O("div", {
|
|
199
|
+
className: "grid grid-cols-3 gap-3",
|
|
200
|
+
children: [
|
|
201
|
+
[
|
|
202
|
+
"Protein",
|
|
203
|
+
$.proteinG,
|
|
204
|
+
$.proteinTarget
|
|
205
|
+
],
|
|
206
|
+
[
|
|
207
|
+
"Carbs",
|
|
208
|
+
$.carbsG,
|
|
209
|
+
$.carbsTarget
|
|
210
|
+
],
|
|
211
|
+
[
|
|
212
|
+
"Fat",
|
|
213
|
+
$.fatG,
|
|
214
|
+
$.fatTarget
|
|
215
|
+
]
|
|
216
|
+
].map(([e, t, n]) => /* @__PURE__ */ k("div", {
|
|
217
|
+
className: "rounded-xl bg-bg-sunken/60 p-3",
|
|
218
|
+
children: [
|
|
219
|
+
/* @__PURE__ */ O("p", {
|
|
220
|
+
className: "text-xs text-text-tertiary",
|
|
221
|
+
children: e
|
|
222
|
+
}),
|
|
223
|
+
/* @__PURE__ */ k("p", {
|
|
224
|
+
className: "mt-0.5 text-sm font-semibold tabular-nums text-text-primary",
|
|
225
|
+
children: [i(t), /* @__PURE__ */ k("span", {
|
|
226
|
+
className: "text-xs font-normal text-text-tertiary",
|
|
227
|
+
children: [
|
|
228
|
+
" ",
|
|
229
|
+
"/ ",
|
|
230
|
+
i(n),
|
|
231
|
+
" g"
|
|
232
|
+
]
|
|
233
|
+
})]
|
|
234
|
+
}),
|
|
235
|
+
/* @__PURE__ */ O(m, {
|
|
236
|
+
value: n ? t / n * 100 : 0,
|
|
237
|
+
height: 4,
|
|
238
|
+
className: "mt-2"
|
|
239
|
+
})
|
|
240
|
+
]
|
|
241
|
+
}, e))
|
|
242
|
+
})]
|
|
243
|
+
})]
|
|
244
|
+
})]
|
|
245
|
+
}), /* @__PURE__ */ k(A, {
|
|
246
|
+
treatment: "glass",
|
|
247
|
+
className: "p-6",
|
|
248
|
+
children: [/* @__PURE__ */ k("div", {
|
|
249
|
+
className: "mb-4 flex items-center justify-between gap-3",
|
|
250
|
+
children: [/* @__PURE__ */ O("h2", {
|
|
251
|
+
className: "text-base font-semibold text-text-primary",
|
|
252
|
+
children: "Next up"
|
|
253
|
+
}), /* @__PURE__ */ k("button", {
|
|
254
|
+
type: "button",
|
|
255
|
+
onClick: () => j("train"),
|
|
256
|
+
className: "inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",
|
|
257
|
+
children: ["Train ", /* @__PURE__ */ O(w, { className: "h-4 w-4" })]
|
|
258
|
+
})]
|
|
259
|
+
}), K ? /* @__PURE__ */ k("button", {
|
|
260
|
+
type: "button",
|
|
261
|
+
onClick: () => j(`train/${K.id}`),
|
|
262
|
+
className: "w-full rounded-xl border border-status-warning-text/40 bg-status-warning-bg-subtle p-4 text-left",
|
|
263
|
+
children: [
|
|
264
|
+
/* @__PURE__ */ O("div", {
|
|
265
|
+
className: "flex items-center gap-2",
|
|
266
|
+
children: /* @__PURE__ */ O(s, { status: K.status })
|
|
267
|
+
}),
|
|
268
|
+
/* @__PURE__ */ O("p", {
|
|
269
|
+
className: "mt-2 text-sm font-medium text-text-primary",
|
|
270
|
+
children: "Live workout in progress"
|
|
271
|
+
}),
|
|
272
|
+
/* @__PURE__ */ k("p", {
|
|
273
|
+
className: "mt-0.5 text-xs text-text-tertiary",
|
|
274
|
+
children: ["Started ", o(K.startedAt)]
|
|
275
|
+
})
|
|
276
|
+
]
|
|
277
|
+
}) : q ? /* @__PURE__ */ O("button", {
|
|
278
|
+
type: "button",
|
|
279
|
+
onClick: () => j(`train/${q.id}`),
|
|
280
|
+
className: "w-full rounded-xl bg-bg-sunken/60 p-4 text-left transition-shadow hover:shadow-float",
|
|
281
|
+
children: /* @__PURE__ */ k("div", {
|
|
282
|
+
className: "flex items-center gap-2",
|
|
283
|
+
children: [/* @__PURE__ */ O(d, { icon: /* @__PURE__ */ O(T, { className: "h-4 w-4" }) }), /* @__PURE__ */ k("div", { children: [/* @__PURE__ */ O("p", {
|
|
284
|
+
className: "text-sm font-medium text-text-primary",
|
|
285
|
+
children: "Scheduled session"
|
|
286
|
+
}), /* @__PURE__ */ O("p", {
|
|
287
|
+
className: "text-xs text-text-tertiary",
|
|
288
|
+
children: o(q.scheduledFor)
|
|
289
|
+
})] })]
|
|
290
|
+
})
|
|
291
|
+
}) : /* @__PURE__ */ k("div", {
|
|
292
|
+
className: "flex flex-col items-center justify-center rounded-xl border border-dashed border-border-seam py-8 text-center",
|
|
293
|
+
children: [
|
|
294
|
+
/* @__PURE__ */ O("span", {
|
|
295
|
+
className: "flex size-11 items-center justify-center rounded-full bg-[var(--color-accent-soft)]",
|
|
296
|
+
children: /* @__PURE__ */ O(E, { className: "h-5 w-5 text-accent" })
|
|
297
|
+
}),
|
|
298
|
+
/* @__PURE__ */ O("p", {
|
|
299
|
+
className: "mt-3 text-sm font-medium text-text-primary",
|
|
300
|
+
children: "No session scheduled"
|
|
301
|
+
}),
|
|
302
|
+
/* @__PURE__ */ O("button", {
|
|
303
|
+
type: "button",
|
|
304
|
+
onClick: () => j("train"),
|
|
305
|
+
className: "mt-1 text-xs font-medium text-accent hover:underline",
|
|
306
|
+
children: "Start a workout"
|
|
307
|
+
})
|
|
308
|
+
]
|
|
309
|
+
})]
|
|
310
|
+
})]
|
|
311
|
+
}),
|
|
312
|
+
/* @__PURE__ */ O(l, {
|
|
313
|
+
title: "Active goals",
|
|
314
|
+
description: "Your current targets across training, nutrition and body composition.",
|
|
315
|
+
action: /* @__PURE__ */ k("button", {
|
|
316
|
+
type: "button",
|
|
317
|
+
onClick: () => j("goals"),
|
|
318
|
+
className: "inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",
|
|
319
|
+
children: ["All goals ", /* @__PURE__ */ O(w, { className: "h-4 w-4" })]
|
|
320
|
+
}),
|
|
321
|
+
children: V.length === 0 ? /* @__PURE__ */ O(u, {
|
|
322
|
+
illustration: "empty-data",
|
|
323
|
+
icon: /* @__PURE__ */ O(D, { className: "h-10 w-10" }),
|
|
324
|
+
title: "No active goals",
|
|
325
|
+
description: "Set a goal to give your training and nutrition a clear target to work toward."
|
|
326
|
+
}) : /* @__PURE__ */ O("div", {
|
|
327
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
328
|
+
children: V.slice(0, 6).map((e) => {
|
|
329
|
+
let t = g(e), n = ne[e.type], o = n.icon;
|
|
330
|
+
return /* @__PURE__ */ O("button", {
|
|
331
|
+
type: "button",
|
|
332
|
+
onClick: () => j("goals"),
|
|
333
|
+
className: "text-left",
|
|
334
|
+
children: /* @__PURE__ */ k(A, {
|
|
335
|
+
treatment: "plain",
|
|
336
|
+
className: "h-full p-4 transition-shadow hover:shadow-float",
|
|
337
|
+
children: [/* @__PURE__ */ k("div", {
|
|
338
|
+
className: "flex items-start gap-3",
|
|
339
|
+
children: [/* @__PURE__ */ O(d, {
|
|
340
|
+
icon: /* @__PURE__ */ O(o, { className: "h-4 w-4" }),
|
|
341
|
+
tint: n.tint
|
|
342
|
+
}), /* @__PURE__ */ k("div", {
|
|
343
|
+
className: "min-w-0 flex-1",
|
|
344
|
+
children: [/* @__PURE__ */ O("p", {
|
|
345
|
+
className: "truncate text-sm font-semibold text-text-primary",
|
|
346
|
+
children: e.title
|
|
347
|
+
}), /* @__PURE__ */ O("p", {
|
|
348
|
+
className: "text-xs text-text-tertiary",
|
|
349
|
+
children: r(e.type)
|
|
350
|
+
})]
|
|
351
|
+
})]
|
|
352
|
+
}), /* @__PURE__ */ k("div", {
|
|
353
|
+
className: "mt-3 space-y-1.5",
|
|
354
|
+
children: [/* @__PURE__ */ O(m, {
|
|
355
|
+
value: t,
|
|
356
|
+
color: n.tint
|
|
357
|
+
}), /* @__PURE__ */ k("div", {
|
|
358
|
+
className: "flex items-center justify-between text-xs",
|
|
359
|
+
children: [/* @__PURE__ */ k("span", {
|
|
360
|
+
className: "tabular-nums text-text-secondary",
|
|
361
|
+
children: [
|
|
362
|
+
i(e.currentValue),
|
|
363
|
+
e.unit ? ` ${e.unit}` : "",
|
|
364
|
+
" / ",
|
|
365
|
+
i(e.targetValue),
|
|
366
|
+
e.unit ? ` ${e.unit}` : ""
|
|
367
|
+
]
|
|
368
|
+
}), /* @__PURE__ */ O("span", {
|
|
369
|
+
className: "tabular-nums text-text-tertiary",
|
|
370
|
+
children: a(t)
|
|
371
|
+
})]
|
|
372
|
+
})]
|
|
373
|
+
})]
|
|
374
|
+
})
|
|
375
|
+
}, e.id);
|
|
376
|
+
})
|
|
377
|
+
})
|
|
378
|
+
}),
|
|
379
|
+
/* @__PURE__ */ O(l, {
|
|
380
|
+
title: "Recent sessions",
|
|
381
|
+
description: "Your latest logged and scheduled workouts.",
|
|
382
|
+
action: /* @__PURE__ */ k("button", {
|
|
383
|
+
type: "button",
|
|
384
|
+
onClick: () => j("train"),
|
|
385
|
+
className: "inline-flex items-center gap-1 text-sm font-medium text-accent hover:underline",
|
|
386
|
+
children: ["All sessions ", /* @__PURE__ */ O(w, { className: "h-4 w-4" })]
|
|
387
|
+
}),
|
|
388
|
+
children: B.length === 0 ? /* @__PURE__ */ O(u, {
|
|
389
|
+
illustration: "empty-data",
|
|
390
|
+
icon: /* @__PURE__ */ O(E, { className: "h-10 w-10" }),
|
|
391
|
+
title: "No sessions yet",
|
|
392
|
+
description: "Start a workout session to begin logging sets and tracking your training."
|
|
393
|
+
}) : /* @__PURE__ */ O("div", {
|
|
394
|
+
className: "grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",
|
|
395
|
+
children: B.slice(0, 6).map((e) => {
|
|
396
|
+
let t = h.STRENGTH;
|
|
397
|
+
return /* @__PURE__ */ O("button", {
|
|
398
|
+
type: "button",
|
|
399
|
+
onClick: () => j(`train/${e.id}`),
|
|
400
|
+
className: "text-left",
|
|
401
|
+
children: /* @__PURE__ */ k(A, {
|
|
402
|
+
treatment: "plain",
|
|
403
|
+
className: "p-4 transition-shadow hover:shadow-float",
|
|
404
|
+
children: [
|
|
405
|
+
/* @__PURE__ */ k("div", {
|
|
406
|
+
className: "flex items-center justify-between gap-2",
|
|
407
|
+
children: [/* @__PURE__ */ O(d, {
|
|
408
|
+
icon: /* @__PURE__ */ O(e.status === "COMPLETED" ? ie : t.icon, { className: "h-4 w-4" }),
|
|
409
|
+
tint: t.tint
|
|
410
|
+
}), /* @__PURE__ */ O(s, { status: e.status })]
|
|
411
|
+
}),
|
|
412
|
+
/* @__PURE__ */ O("p", {
|
|
413
|
+
className: "mt-3 text-sm font-medium text-text-primary",
|
|
414
|
+
children: e.caloriesBurned > 0 ? `${i(e.caloriesBurned)} kcal burned` : "Workout session"
|
|
415
|
+
}),
|
|
416
|
+
/* @__PURE__ */ O("p", {
|
|
417
|
+
className: "mt-0.5 text-xs text-text-tertiary",
|
|
418
|
+
children: o(e.completedAt ?? e.startedAt ?? e.createdAt)
|
|
419
|
+
})
|
|
420
|
+
]
|
|
421
|
+
})
|
|
422
|
+
}, e.id);
|
|
423
|
+
})
|
|
424
|
+
})
|
|
425
|
+
})
|
|
426
|
+
]
|
|
427
|
+
});
|
|
428
|
+
}
|
|
429
|
+
//#endregion
|
|
430
|
+
export { j as DashboardPage };
|
|
431
|
+
|
|
432
|
+
//# sourceMappingURL=DashboardPage.js.map
|