@ssa-ui-kit/widgets 0.0.1-alpha
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/.babelrc.js +4 -0
- package/.env +7 -0
- package/.storybook/main.ts +42 -0
- package/.storybook/preview.tsx +21 -0
- package/.storybook/style.css +31 -0
- package/custom-shots/widgets-filters--default__[w1920px].png +0 -0
- package/custom-shots/widgets-filters--more-button__[w900px].png +0 -0
- package/custom-shots/widgets-heart-rate--hint-opened__[w1440px].png +0 -0
- package/custom-shots/widgets-heart-rate--hint-opened__[w1920px].png +0 -0
- package/custom-shots/widgets-heart-rate--hint-opened__[w390px].png +0 -0
- package/custom-shots/widgets-heart-rate--hint-opened__[w900px].png +0 -0
- package/custom-shots/widgets-linkstabbar--current-focus__[w1920px].png +0 -0
- package/custom-shots/widgets-linkstabbar--non-current-focus__[w1920px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__[w1440px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__[w1920px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__[w390px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__[w900px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__dropdown__[w1440px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__dropdown__[w1920px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__dropdown__[w390px].png +0 -0
- package/custom-shots/widgets-meal-nutrients--hint-opened__dropdown__[w900px].png +0 -0
- package/custom-shots/widgets-navbar-opened__[w1440px].png +0 -0
- package/custom-shots/widgets-navbar-opened__[w1920px].png +0 -0
- package/custom-shots/widgets-navbar-opened__[w390px].png +0 -0
- package/custom-shots/widgets-navbar-opened__[w900px].png +0 -0
- package/custom-shots/widgets-notification-menu--is-opened__[w1440px].png +0 -0
- package/custom-shots/widgets-notification-menu--is-opened__[w1920px].png +0 -0
- package/custom-shots/widgets-notification-menu--is-opened__[w390px].png +0 -0
- package/custom-shots/widgets-notification-menu--is-opened__[w900px].png +0 -0
- package/custom-shots/widgets-pagination--next-hover__[w1920px].png +0 -0
- package/custom-shots/widgets-pagination--not-selected-hover__[w1920px].png +0 -0
- package/custom-shots/widgets-pagination--previous-hover__[w1920px].png +0 -0
- package/custom-shots/widgets-pagination--selected-hover__[w1920px].png +0 -0
- package/custom-shots/widgets-progressInfo__[w1440px].png +0 -0
- package/custom-shots/widgets-progressInfo__[w1920px].png +0 -0
- package/custom-shots/widgets-progressInfo__[w390px].png +0 -0
- package/custom-shots/widgets-progressInfo__[w900px].png +0 -0
- package/custom-shots/widgets-progressInfo__dropdown__[w1440px].png +0 -0
- package/custom-shots/widgets-progressInfo__dropdown__[w1920px].png +0 -0
- package/custom-shots/widgets-progressInfo__dropdown__[w390px].png +0 -0
- package/custom-shots/widgets-progressInfo__dropdown__[w900px].png +0 -0
- package/custom-shots/widgets-searchbox--cross-icon__[w900px].png +0 -0
- package/custom-shots/widgets-searchbox--search-icon__[w900px].png +0 -0
- package/custom-shots/widgets-table-filters--opened__[w1920px].png +0 -0
- package/custom-shots/widgets-trading-info-card--hover__[w1920px].png +0 -0
- package/custom-shots/widgets-user-profile--is-opened__[w1920px].png +0 -0
- package/customTest.tsx +35 -0
- package/dist/components/AccountBalance/AccountBalance.d.ts +2 -0
- package/dist/components/AccountBalance/BalancePieChart.d.ts +5 -0
- package/dist/components/AccountBalance/BalancePieChartTitle.d.ts +5 -0
- package/dist/components/AccountBalance/WithLink.d.ts +5 -0
- package/dist/components/AccountBalance/index.d.ts +5 -0
- package/dist/components/AccountBalance/stories/fixtures.d.ts +6 -0
- package/dist/components/AccountBalance/types.d.ts +25 -0
- package/dist/components/Activity/Activity.d.ts +4 -0
- package/dist/components/Activity/ActivityItem.d.ts +3 -0
- package/dist/components/Activity/index.d.ts +2 -0
- package/dist/components/Activity/mockActivityRequest.d.ts +2 -0
- package/dist/components/Activity/styles.d.ts +2 -0
- package/dist/components/Activity/types.d.ts +11 -0
- package/dist/components/AddNewAccountCard/AddNewAccountCard.d.ts +2 -0
- package/dist/components/AddNewAccountCard/index.d.ts +2 -0
- package/dist/components/AddNewAccountCard/styles.d.ts +2 -0
- package/dist/components/AddNewAccountCard/types.d.ts +7 -0
- package/dist/components/Bmi/Bmi.d.ts +6 -0
- package/dist/components/Bmi/BmiHeatbar.d.ts +5 -0
- package/dist/components/Bmi/BmiInfo.d.ts +5 -0
- package/dist/components/Bmi/BmiLabel.d.ts +4 -0
- package/dist/components/Bmi/BmiLabels.d.ts +1 -0
- package/dist/components/Bmi/BmiPointer.d.ts +7 -0
- package/dist/components/Bmi/index.d.ts +2 -0
- package/dist/components/Bmi/styles.d.ts +3 -0
- package/dist/components/Bmi/types.d.ts +4 -0
- package/dist/components/BotsTable/BotsTable.d.ts +2 -0
- package/dist/components/BotsTable/BotsTableCell.d.ts +9 -0
- package/dist/components/BotsTable/BotsTableHead.d.ts +7 -0
- package/dist/components/BotsTable/BotsTableRow.d.ts +9 -0
- package/dist/components/BotsTable/BotsTableWrapper.d.ts +7 -0
- package/dist/components/BotsTable/index.d.ts +5 -0
- package/dist/components/BotsTable/stories/BotsTable/StoryComponent.d.ts +1 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionIcon.d.ts +4 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionItem.d.ts +2 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionMore.d.ts +4 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionRun.d.ts +4 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Actions/Actions.d.ts +4 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Actions/ActionsWrapper.d.ts +2 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Actions/consts.d.ts +5 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Actions/index.d.ts +6 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Exchange/Exchange.d.ts +2 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Exchange/consts.d.ts +15 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Exchange/index.d.ts +1 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Exchange/types.d.ts +5 -0
- package/dist/components/BotsTable/stories/BotsTable/components/PNL.d.ts +2 -0
- package/dist/components/BotsTable/stories/BotsTable/components/ROI.d.ts +2 -0
- package/dist/components/BotsTable/stories/BotsTable/components/TableTag.d.ts +4 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Trade/Trade.d.ts +2 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Trade/consts.d.ts +14 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Trade/index.d.ts +1 -0
- package/dist/components/BotsTable/stories/BotsTable/components/Trade/types.d.ts +4 -0
- package/dist/components/BotsTable/stories/BotsTable/components/index.d.ts +6 -0
- package/dist/components/BotsTable/stories/BotsTable/index.d.ts +1 -0
- package/dist/components/BotsTable/stories/BotsTable/mockData.d.ts +2 -0
- package/dist/components/BotsTable/stories/NoControlOrders/StoryComponent.d.ts +1 -0
- package/dist/components/BotsTable/stories/NoControlOrders/components/ActionMore.d.ts +4 -0
- package/dist/components/BotsTable/stories/NoControlOrders/components/Reason.d.ts +3 -0
- package/dist/components/BotsTable/stories/NoControlOrders/components/TableList.d.ts +2 -0
- package/dist/components/BotsTable/stories/NoControlOrders/components/TableRow.d.ts +2 -0
- package/dist/components/BotsTable/stories/NoControlOrders/components/index.d.ts +4 -0
- package/dist/components/BotsTable/stories/NoControlOrders/mockData.d.ts +14 -0
- package/dist/components/BotsTable/stories/NoControlOrders/types.d.ts +15 -0
- package/dist/components/BotsTable/types.d.ts +28 -0
- package/dist/components/Calories/Calories.d.ts +6 -0
- package/dist/components/Calories/index.d.ts +2 -0
- package/dist/components/Calories/innerContent.d.ts +2 -0
- package/dist/components/Calories/types.d.ts +4 -0
- package/dist/components/CardList/CardList.d.ts +6 -0
- package/dist/components/CardList/index.d.ts +2 -0
- package/dist/components/CardList/types.d.ts +10 -0
- package/dist/components/ExchangeAccount/ExchangeAccount.d.ts +2 -0
- package/dist/components/ExchangeAccount/helpers.d.ts +2 -0
- package/dist/components/ExchangeAccount/index.d.ts +2 -0
- package/dist/components/ExchangeAccount/styles.d.ts +7 -0
- package/dist/components/ExchangeAccount/types.d.ts +12 -0
- package/dist/components/ExchangeAccountKeys/ExchangeAccountKeys.d.ts +2 -0
- package/dist/components/ExchangeAccountKeys/helpers.d.ts +1 -0
- package/dist/components/ExchangeAccountKeys/index.d.ts +2 -0
- package/dist/components/ExchangeAccountKeys/stories/StoryComponent.d.ts +5 -0
- package/dist/components/ExchangeAccountKeys/styles.d.ts +9 -0
- package/dist/components/ExchangeAccountKeys/types.d.ts +9 -0
- package/dist/components/Filters/FilterBlockWrapper.d.ts +11 -0
- package/dist/components/Filters/Filters.d.ts +2 -0
- package/dist/components/Filters/FiltersBlock.d.ts +1 -0
- package/dist/components/Filters/FiltersContext.d.ts +34 -0
- package/dist/components/Filters/FiltersWrapper.d.ts +5 -0
- package/dist/components/Filters/hooks/useVisibility.d.ts +14 -0
- package/dist/components/Filters/index.d.ts +1 -0
- package/dist/components/Filters/stories/StoryComponent.d.ts +1 -0
- package/dist/components/Filters/stories/mockData.d.ts +2 -0
- package/dist/components/Filters/types.d.ts +4 -0
- package/dist/components/HeartRate/BPM.d.ts +2 -0
- package/dist/components/HeartRate/HeartRate.d.ts +6 -0
- package/dist/components/HeartRate/HeartRateLineChart.d.ts +2 -0
- package/dist/components/HeartRate/index.d.ts +2 -0
- package/dist/components/HeartRate/mockHeartRateRequest.d.ts +7 -0
- package/dist/components/HeartRate/types.d.ts +12 -0
- package/dist/components/HeartRate/utils.d.ts +1 -0
- package/dist/components/LinksTabBar/LinksTabBar.d.ts +2 -0
- package/dist/components/LinksTabBar/LinksTabBarBase.d.ts +5 -0
- package/dist/components/LinksTabBar/index.d.ts +2 -0
- package/dist/components/LinksTabBar/stories/decorators.d.ts +4 -0
- package/dist/components/LinksTabBar/stories/mockData.d.ts +5 -0
- package/dist/components/LinksTabBar/types.d.ts +10 -0
- package/dist/components/ListGoals/ListGoals.d.ts +6 -0
- package/dist/components/ListGoals/ListGoalsCard.d.ts +2 -0
- package/dist/components/ListGoals/index.d.ts +2 -0
- package/dist/components/ListGoals/styles.d.ts +2 -0
- package/dist/components/ListGoals/types.d.ts +20 -0
- package/dist/components/MealNutrients/MealNutrients.d.ts +6 -0
- package/dist/components/MealNutrients/MealNutrientsLineChart.d.ts +2 -0
- package/dist/components/MealNutrients/MealNutrientsTooltip.d.ts +2 -0
- package/dist/components/MealNutrients/chartDefaultConfig.d.ts +2 -0
- package/dist/components/MealNutrients/index.d.ts +2 -0
- package/dist/components/MealNutrients/mockMealNutrientsRequest.d.ts +42 -0
- package/dist/components/MealNutrients/types.d.ts +29 -0
- package/dist/components/MealNutrients/useChartConfig.d.ts +3 -0
- package/dist/components/MealPlanner/MealPlanner.d.ts +2 -0
- package/dist/components/MealPlanner/MealPlannerBadge.d.ts +5 -0
- package/dist/components/MealPlanner/MealPlannerBars.d.ts +6 -0
- package/dist/components/MealPlanner/MealPlannerCard.d.ts +2 -0
- package/dist/components/MealPlanner/MealPlannerLegends.d.ts +12 -0
- package/dist/components/MealPlanner/index.d.ts +2 -0
- package/dist/components/MealPlanner/mockMealPlannerRequest.d.ts +6 -0
- package/dist/components/MealPlanner/types.d.ts +20 -0
- package/dist/components/NavBar/NavBar.d.ts +6 -0
- package/dist/components/NavBar/NavBarBase.d.ts +6 -0
- package/dist/components/NavBar/NavBarItem.d.ts +6 -0
- package/dist/components/NavBar/NavBarLink.d.ts +7 -0
- package/dist/components/NavBar/NavBarList.d.ts +6 -0
- package/dist/components/NavBar/NavBarWrapper.d.ts +6 -0
- package/dist/components/NavBar/NavToggle.d.ts +4 -0
- package/dist/components/NavBar/NavToggleWrapper.d.ts +6 -0
- package/dist/components/NavBar/index.d.ts +2 -0
- package/dist/components/NavBar/types.d.ts +7 -0
- package/dist/components/NotificationCard/NotificationCard.d.ts +5 -0
- package/dist/components/NotificationCard/index.d.ts +2 -0
- package/dist/components/NotificationCard/styles.d.ts +7 -0
- package/dist/components/NotificationCard/types.d.ts +10 -0
- package/dist/components/NotificationMenu/NotificationMenu.d.ts +2 -0
- package/dist/components/NotificationMenu/helpers.d.ts +11 -0
- package/dist/components/NotificationMenu/index.d.ts +2 -0
- package/dist/components/NotificationMenu/stories/StoryComponent.d.ts +1 -0
- package/dist/components/NotificationMenu/stories/StoryContent.d.ts +6 -0
- package/dist/components/NotificationMenu/styles.d.ts +9 -0
- package/dist/components/NotificationMenu/types.d.ts +11 -0
- package/dist/components/Pagination/ArrowButton.d.ts +2 -0
- package/dist/components/Pagination/Pagination.d.ts +3 -0
- package/dist/components/Pagination/PaginationButtons.d.ts +2 -0
- package/dist/components/Pagination/PaginationContext.d.ts +5 -0
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Pagination/styles.d.ts +4 -0
- package/dist/components/Pagination/types.d.ts +30 -0
- package/dist/components/PieChart/PieChart.d.ts +2 -0
- package/dist/components/PieChart/PieChartBases.d.ts +9 -0
- package/dist/components/PieChart/PieChartLegend.d.ts +2 -0
- package/dist/components/PieChart/PieChartLegendList.d.ts +5 -0
- package/dist/components/PieChart/PieChartLegendMarker.d.ts +4 -0
- package/dist/components/PieChart/colorPalettes.d.ts +6 -0
- package/dist/components/PieChart/index.d.ts +4 -0
- package/dist/components/PieChart/stories/fixtures.d.ts +11 -0
- package/dist/components/PieChart/types.d.ts +24 -0
- package/dist/components/ProgressInfo/ProgressInfo.d.ts +2 -0
- package/dist/components/ProgressInfo/ProgressInfoTotals.d.ts +5 -0
- package/dist/components/ProgressInfo/index.d.ts +3 -0
- package/dist/components/ProgressInfo/mockProgressInfoRequest.d.ts +2 -0
- package/dist/components/ProgressInfo/styles.d.ts +2 -0
- package/dist/components/ProgressInfo/types.d.ts +28 -0
- package/dist/components/SearchBox/SearchBox.d.ts +2 -0
- package/dist/components/SearchBox/SearchBoxCrossIcon.d.ts +3 -0
- package/dist/components/SearchBox/SearchBoxInput.d.ts +4 -0
- package/dist/components/SearchBox/SearchBoxWrapper.d.ts +5 -0
- package/dist/components/SearchBox/index.d.ts +4 -0
- package/dist/components/SearchBox/stories/StoryComponent.d.ts +3 -0
- package/dist/components/SearchBox/types.d.ts +7 -0
- package/dist/components/StepsCounter/StepsCounter.d.ts +6 -0
- package/dist/components/StepsCounter/index.d.ts +2 -0
- package/dist/components/StepsCounter/types.d.ts +4 -0
- package/dist/components/TableFilters/TableFilterCancelButton.d.ts +6 -0
- package/dist/components/TableFilters/TableFilterCheckbox.d.ts +2 -0
- package/dist/components/TableFilters/TableFilterClearButton.d.ts +6 -0
- package/dist/components/TableFilters/TableFilterTrigger.d.ts +7 -0
- package/dist/components/TableFilters/TableFilterTriggerWithNotification.d.ts +5 -0
- package/dist/components/TableFilters/TableFilters.d.ts +2 -0
- package/dist/components/TableFilters/TableFiltersAccordion.d.ts +2 -0
- package/dist/components/TableFilters/TableFiltersAccordionContent.d.ts +9 -0
- package/dist/components/TableFilters/TableFiltersButtons.d.ts +4 -0
- package/dist/components/TableFilters/hooks/useTableData.d.ts +20 -0
- package/dist/components/TableFilters/index.d.ts +9 -0
- package/dist/components/TableFilters/stories/StoryComponent.d.ts +1 -0
- package/dist/components/TableFilters/stories/TableFiltersWrapper.d.ts +1 -0
- package/dist/components/TableFilters/stories/mockData.d.ts +2 -0
- package/dist/components/TableFilters/styles.d.ts +4 -0
- package/dist/components/TableFilters/types.d.ts +29 -0
- package/dist/components/TableFilters/utils/handlers.d.ts +11 -0
- package/dist/components/TradingInfoCard/TradingInfoCard.d.ts +3 -0
- package/dist/components/TradingInfoCard/TradingInfoCardContent.d.ts +3 -0
- package/dist/components/TradingInfoCard/TradingInfoCardTooltip.d.ts +3 -0
- package/dist/components/TradingInfoCard/TradingInfoCardWrapper.d.ts +3 -0
- package/dist/components/TradingInfoCard/index.d.ts +3 -0
- package/dist/components/TradingInfoCard/types.d.ts +17 -0
- package/dist/components/TradingScoreboard/TradingScoreboard.d.ts +3 -0
- package/dist/components/TradingScoreboard/TradingScoreboardBase.d.ts +8 -0
- package/dist/components/TradingScoreboard/helpers.d.ts +56 -0
- package/dist/components/TradingScoreboard/index.d.ts +2 -0
- package/dist/components/TradingScoreboard/types.d.ts +12 -0
- package/dist/components/UpcomingWorkouts/UpcomingWorkoutCard.d.ts +6 -0
- package/dist/components/UpcomingWorkouts/UpcomingWorkouts.d.ts +2 -0
- package/dist/components/UpcomingWorkouts/index.d.ts +2 -0
- package/dist/components/UpcomingWorkouts/style.d.ts +1 -0
- package/dist/components/UpcomingWorkouts/types.d.ts +22 -0
- package/dist/components/UserCard/UserCard.d.ts +5 -0
- package/dist/components/UserCard/UserCardBMI.d.ts +3 -0
- package/dist/components/UserCard/UserCardCredentials.d.ts +3 -0
- package/dist/components/UserCard/UserCardItem.d.ts +7 -0
- package/dist/components/UserCard/index.d.ts +2 -0
- package/dist/components/UserCard/types.d.ts +8 -0
- package/dist/components/UserProfile/UserProfile.d.ts +2 -0
- package/dist/components/UserProfile/index.d.ts +2 -0
- package/dist/components/UserProfile/styles.d.ts +6 -0
- package/dist/components/UserProfile/types.d.ts +7 -0
- package/dist/components/WaterConsume/WaterConsume.d.ts +7 -0
- package/dist/components/WaterConsume/index.d.ts +2 -0
- package/dist/components/WaterConsume/types.d.ts +11 -0
- package/dist/consts.d.ts +18 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/injectGlobal.d.ts +1 -0
- package/jest-setup.ts +17 -0
- package/lostpixel.config.ts +29 -0
- package/package.json +86 -0
- package/playwright.config.ts +7 -0
- package/src/components/AccountBalance/AccountBalance.spec.tsx +82 -0
- package/src/components/AccountBalance/AccountBalance.stories.tsx +35 -0
- package/src/components/AccountBalance/AccountBalance.tsx +63 -0
- package/src/components/AccountBalance/BalancePieChart.tsx +77 -0
- package/src/components/AccountBalance/BalancePieChartTitle.tsx +42 -0
- package/src/components/AccountBalance/WithLink.tsx +26 -0
- package/src/components/AccountBalance/index.ts +5 -0
- package/src/components/AccountBalance/stories/fixtures.ts +26 -0
- package/src/components/AccountBalance/types.ts +31 -0
- package/src/components/Activity/Activity.spec.tsx +79 -0
- package/src/components/Activity/Activity.stories.tsx +15 -0
- package/src/components/Activity/Activity.tsx +83 -0
- package/src/components/Activity/ActivityItem.tsx +38 -0
- package/src/components/Activity/index.tsx +2 -0
- package/src/components/Activity/mockActivityRequest.ts +106 -0
- package/src/components/Activity/styles.ts +12 -0
- package/src/components/Activity/types.ts +10 -0
- package/src/components/AddNewAccountCard/AddNewAccountCard.spec.tsx +39 -0
- package/src/components/AddNewAccountCard/AddNewAccountCard.stories.tsx +48 -0
- package/src/components/AddNewAccountCard/AddNewAccountCard.tsx +22 -0
- package/src/components/AddNewAccountCard/index.ts +2 -0
- package/src/components/AddNewAccountCard/styles.ts +29 -0
- package/src/components/AddNewAccountCard/types.ts +7 -0
- package/src/components/Bmi/Bmi.spec.tsx +68 -0
- package/src/components/Bmi/Bmi.stories.tsx +10 -0
- package/src/components/Bmi/Bmi.tsx +96 -0
- package/src/components/Bmi/BmiHeatbar.tsx +18 -0
- package/src/components/Bmi/BmiInfo.tsx +11 -0
- package/src/components/Bmi/BmiLabel.tsx +9 -0
- package/src/components/Bmi/BmiLabels.tsx +33 -0
- package/src/components/Bmi/BmiPointer.tsx +15 -0
- package/src/components/Bmi/index.tsx +2 -0
- package/src/components/Bmi/styles.ts +18 -0
- package/src/components/Bmi/types.ts +4 -0
- package/src/components/BotsTable/BotsTable.e2e.ts +77 -0
- package/src/components/BotsTable/BotsTable.spec.tsx +125 -0
- package/src/components/BotsTable/BotsTable.tsx +32 -0
- package/src/components/BotsTable/BotsTableCell.tsx +10 -0
- package/src/components/BotsTable/BotsTableHead.tsx +9 -0
- package/src/components/BotsTable/BotsTableRow.tsx +17 -0
- package/src/components/BotsTable/BotsTableWrapper.tsx +23 -0
- package/src/components/BotsTable/index.ts +5 -0
- package/src/components/BotsTable/stories/BotsTable/StoryComponent.tsx +59 -0
- package/src/components/BotsTable/stories/BotsTable/components/Actions/ActionIcon.tsx +11 -0
- package/src/components/BotsTable/stories/BotsTable/components/Actions/ActionItem.tsx +40 -0
- package/src/components/BotsTable/stories/BotsTable/components/Actions/ActionMore.tsx +89 -0
- package/src/components/BotsTable/stories/BotsTable/components/Actions/ActionRun.tsx +133 -0
- package/src/components/BotsTable/stories/BotsTable/components/Actions/Actions.tsx +13 -0
- package/src/components/BotsTable/stories/BotsTable/components/Actions/ActionsWrapper.tsx +21 -0
- package/src/components/BotsTable/stories/BotsTable/components/Actions/consts.tsx +118 -0
- package/src/components/BotsTable/stories/BotsTable/components/Actions/index.ts +6 -0
- package/src/components/BotsTable/stories/BotsTable/components/Exchange/Exchange.tsx +26 -0
- package/src/components/BotsTable/stories/BotsTable/components/Exchange/consts.tsx +157 -0
- package/src/components/BotsTable/stories/BotsTable/components/Exchange/index.ts +1 -0
- package/src/components/BotsTable/stories/BotsTable/components/Exchange/types.ts +6 -0
- package/src/components/BotsTable/stories/BotsTable/components/PNL.tsx +27 -0
- package/src/components/BotsTable/stories/BotsTable/components/ROI.tsx +25 -0
- package/src/components/BotsTable/stories/BotsTable/components/TableTag.tsx +22 -0
- package/src/components/BotsTable/stories/BotsTable/components/Trade/Trade.tsx +8 -0
- package/src/components/BotsTable/stories/BotsTable/components/Trade/consts.ts +14 -0
- package/src/components/BotsTable/stories/BotsTable/components/Trade/index.ts +1 -0
- package/src/components/BotsTable/stories/BotsTable/components/Trade/types.ts +5 -0
- package/src/components/BotsTable/stories/BotsTable/components/index.ts +6 -0
- package/src/components/BotsTable/stories/BotsTable/index.ts +1 -0
- package/src/components/BotsTable/stories/BotsTable/mockData.ts +84 -0
- package/src/components/BotsTable/stories/BotsTable.stories.tsx +39 -0
- package/src/components/BotsTable/stories/NoControlOrders/StoryComponent.tsx +35 -0
- package/src/components/BotsTable/stories/NoControlOrders/components/ActionMore.tsx +95 -0
- package/src/components/BotsTable/stories/NoControlOrders/components/Reason.tsx +11 -0
- package/src/components/BotsTable/stories/NoControlOrders/components/TableList.tsx +45 -0
- package/src/components/BotsTable/stories/NoControlOrders/components/TableRow.tsx +31 -0
- package/src/components/BotsTable/stories/NoControlOrders/components/index.ts +4 -0
- package/src/components/BotsTable/stories/NoControlOrders/mockData.ts +23 -0
- package/src/components/BotsTable/stories/NoControlOrders/types.ts +16 -0
- package/src/components/BotsTable/types.ts +31 -0
- package/src/components/Calories/Calories.spec.tsx +11 -0
- package/src/components/Calories/Calories.stories.tsx +26 -0
- package/src/components/Calories/Calories.tsx +54 -0
- package/src/components/Calories/index.tsx +2 -0
- package/src/components/Calories/innerContent.tsx +30 -0
- package/src/components/Calories/types.ts +4 -0
- package/src/components/CardList/CardList.spec.tsx +32 -0
- package/src/components/CardList/CardList.stories.tsx +37 -0
- package/src/components/CardList/CardList.tsx +37 -0
- package/src/components/CardList/index.ts +2 -0
- package/src/components/CardList/types.ts +10 -0
- package/src/components/ExchangeAccount/ExchangeAccount.spec.tsx +110 -0
- package/src/components/ExchangeAccount/ExchangeAccount.stories.tsx +90 -0
- package/src/components/ExchangeAccount/ExchangeAccount.tsx +73 -0
- package/src/components/ExchangeAccount/helpers.tsx +153 -0
- package/src/components/ExchangeAccount/index.ts +2 -0
- package/src/components/ExchangeAccount/styles.ts +134 -0
- package/src/components/ExchangeAccount/types.ts +12 -0
- package/src/components/ExchangeAccountKeys/ExchangeAccountKeys.spec.tsx +43 -0
- package/src/components/ExchangeAccountKeys/ExchangeAccountKeys.stories.tsx +14 -0
- package/src/components/ExchangeAccountKeys/ExchangeAccountKeys.tsx +71 -0
- package/src/components/ExchangeAccountKeys/helpers.ts +7 -0
- package/src/components/ExchangeAccountKeys/index.ts +2 -0
- package/src/components/ExchangeAccountKeys/stories/StoryComponent.tsx +33 -0
- package/src/components/ExchangeAccountKeys/styles.ts +96 -0
- package/src/components/ExchangeAccountKeys/types.ts +8 -0
- package/src/components/Filters/FilterBlockWrapper.tsx +11 -0
- package/src/components/Filters/Filters.e2e.ts +47 -0
- package/src/components/Filters/Filters.spec.tsx +38 -0
- package/src/components/Filters/Filters.tsx +75 -0
- package/src/components/Filters/FiltersBlock.tsx +70 -0
- package/src/components/Filters/FiltersContext.tsx +41 -0
- package/src/components/Filters/FiltersWrapper.tsx +8 -0
- package/src/components/Filters/hooks/useVisibility.ts +101 -0
- package/src/components/Filters/index.ts +1 -0
- package/src/components/Filters/stories/Filters.stories.tsx +17 -0
- package/src/components/Filters/stories/StoryComponent.tsx +18 -0
- package/src/components/Filters/stories/mockData.ts +212 -0
- package/src/components/Filters/types.ts +4 -0
- package/src/components/HeartRate/BPM.tsx +43 -0
- package/src/components/HeartRate/HeartRate.e2e.ts +78 -0
- package/src/components/HeartRate/HeartRate.spec.tsx +91 -0
- package/src/components/HeartRate/HeartRate.stories.tsx +36 -0
- package/src/components/HeartRate/HeartRate.tsx +105 -0
- package/src/components/HeartRate/HeartRateLineChart.tsx +53 -0
- package/src/components/HeartRate/index.ts +2 -0
- package/src/components/HeartRate/mockHeartRateRequest.ts +15 -0
- package/src/components/HeartRate/types.ts +15 -0
- package/src/components/HeartRate/utils.tsx +8 -0
- package/src/components/LinksTabBar/LinksTabBar.e2e.ts +23 -0
- package/src/components/LinksTabBar/LinksTabBar.spec.tsx +48 -0
- package/src/components/LinksTabBar/LinksTabBar.stories.tsx +45 -0
- package/src/components/LinksTabBar/LinksTabBar.tsx +14 -0
- package/src/components/LinksTabBar/LinksTabBarBase.tsx +36 -0
- package/src/components/LinksTabBar/index.ts +2 -0
- package/src/components/LinksTabBar/stories/decorators.tsx +34 -0
- package/src/components/LinksTabBar/stories/mockData.ts +27 -0
- package/src/components/LinksTabBar/types.ts +12 -0
- package/src/components/ListGoals/ListGoals.spec.tsx +82 -0
- package/src/components/ListGoals/ListGoals.stories.tsx +58 -0
- package/src/components/ListGoals/ListGoals.tsx +29 -0
- package/src/components/ListGoals/ListGoalsCard.tsx +61 -0
- package/src/components/ListGoals/index.ts +2 -0
- package/src/components/ListGoals/styles.tsx +11 -0
- package/src/components/ListGoals/types.ts +25 -0
- package/src/components/MealNutrients/MealNutrients.e2e.ts +68 -0
- package/src/components/MealNutrients/MealNutrients.spec.tsx +134 -0
- package/src/components/MealNutrients/MealNutrients.stories.tsx +37 -0
- package/src/components/MealNutrients/MealNutrients.tsx +84 -0
- package/src/components/MealNutrients/MealNutrientsLineChart.tsx +87 -0
- package/src/components/MealNutrients/MealNutrientsTooltip.tsx +30 -0
- package/src/components/MealNutrients/chartDefaultConfig.tsx +87 -0
- package/src/components/MealNutrients/index.tsx +2 -0
- package/src/components/MealNutrients/mockMealNutrientsRequest.ts +1246 -0
- package/src/components/MealNutrients/types.ts +37 -0
- package/src/components/MealNutrients/useChartConfig.ts +69 -0
- package/src/components/MealPlanner/MealPlanner.spec.tsx +77 -0
- package/src/components/MealPlanner/MealPlanner.stories.tsx +15 -0
- package/src/components/MealPlanner/MealPlanner.tsx +100 -0
- package/src/components/MealPlanner/MealPlannerBadge.tsx +15 -0
- package/src/components/MealPlanner/MealPlannerBars.tsx +19 -0
- package/src/components/MealPlanner/MealPlannerCard.tsx +73 -0
- package/src/components/MealPlanner/MealPlannerLegends.tsx +22 -0
- package/src/components/MealPlanner/index.ts +2 -0
- package/src/components/MealPlanner/mockMealPlannerRequest.ts +70 -0
- package/src/components/MealPlanner/types.ts +21 -0
- package/src/components/NavBar/NavBar.e2e.ts +64 -0
- package/src/components/NavBar/NavBar.stories.tsx +86 -0
- package/src/components/NavBar/NavBar.tsx +46 -0
- package/src/components/NavBar/NavBarBase.ts +48 -0
- package/src/components/NavBar/NavBarItem.ts +13 -0
- package/src/components/NavBar/NavBarLink.ts +27 -0
- package/src/components/NavBar/NavBarList.ts +16 -0
- package/src/components/NavBar/NavBarWrapper.ts +40 -0
- package/src/components/NavBar/NavToggle.tsx +36 -0
- package/src/components/NavBar/NavToggleWrapper.ts +21 -0
- package/src/components/NavBar/index.ts +2 -0
- package/src/components/NavBar/types.ts +5 -0
- package/src/components/NotificationCard/NotificationCard.spec.tsx +90 -0
- package/src/components/NotificationCard/NotificationCard.stories.tsx +112 -0
- package/src/components/NotificationCard/NotificationCard.tsx +94 -0
- package/src/components/NotificationCard/index.ts +2 -0
- package/src/components/NotificationCard/styles.tsx +134 -0
- package/src/components/NotificationCard/types.ts +9 -0
- package/src/components/NotificationMenu/NotificationMenu.e2e.ts +27 -0
- package/src/components/NotificationMenu/NotificationMenu.spec.tsx +64 -0
- package/src/components/NotificationMenu/NotificationMenu.tsx +77 -0
- package/src/components/NotificationMenu/helpers.ts +91 -0
- package/src/components/NotificationMenu/index.ts +2 -0
- package/src/components/NotificationMenu/stories/NotificationMenu.stories.tsx +14 -0
- package/src/components/NotificationMenu/stories/StoryComponent.tsx +84 -0
- package/src/components/NotificationMenu/stories/StoryContent.tsx +52 -0
- package/src/components/NotificationMenu/styles.ts +125 -0
- package/src/components/NotificationMenu/types.ts +11 -0
- package/src/components/Pagination/ArrowButton.tsx +32 -0
- package/src/components/Pagination/Pagination.e2e.ts +38 -0
- package/src/components/Pagination/Pagination.spec.tsx +218 -0
- package/src/components/Pagination/Pagination.stories.tsx +50 -0
- package/src/components/Pagination/Pagination.tsx +55 -0
- package/src/components/Pagination/PaginationButtons.tsx +55 -0
- package/src/components/Pagination/PaginationContext.tsx +20 -0
- package/src/components/Pagination/index.ts +3 -0
- package/src/components/Pagination/styles.tsx +81 -0
- package/src/components/Pagination/types.ts +35 -0
- package/src/components/PieChart/PieChart.spec.tsx +97 -0
- package/src/components/PieChart/PieChart.stories.tsx +129 -0
- package/src/components/PieChart/PieChart.tsx +40 -0
- package/src/components/PieChart/PieChartBases.tsx +26 -0
- package/src/components/PieChart/PieChartLegend.tsx +51 -0
- package/src/components/PieChart/PieChartLegendList.tsx +19 -0
- package/src/components/PieChart/PieChartLegendMarker.tsx +12 -0
- package/src/components/PieChart/colorPalettes.ts +28 -0
- package/src/components/PieChart/index.ts +4 -0
- package/src/components/PieChart/stories/fixtures.ts +39 -0
- package/src/components/PieChart/types.ts +28 -0
- package/src/components/ProgressInfo/ProgressInfo.e2e.ts +31 -0
- package/src/components/ProgressInfo/ProgressInfo.spec.tsx +91 -0
- package/src/components/ProgressInfo/ProgressInfo.stories.tsx +32 -0
- package/src/components/ProgressInfo/ProgressInfo.tsx +117 -0
- package/src/components/ProgressInfo/ProgressInfoTotals.tsx +60 -0
- package/src/components/ProgressInfo/index.ts +3 -0
- package/src/components/ProgressInfo/mockProgressInfoRequest.ts +166 -0
- package/src/components/ProgressInfo/styles.ts +20 -0
- package/src/components/ProgressInfo/types.ts +29 -0
- package/src/components/SearchBox/SearchBox.e2e.ts +37 -0
- package/src/components/SearchBox/SearchBox.spec.tsx +77 -0
- package/src/components/SearchBox/SearchBox.tsx +68 -0
- package/src/components/SearchBox/SearchBoxCrossIcon.tsx +26 -0
- package/src/components/SearchBox/SearchBoxInput.tsx +20 -0
- package/src/components/SearchBox/SearchBoxWrapper.tsx +6 -0
- package/src/components/SearchBox/index.ts +4 -0
- package/src/components/SearchBox/stories/SearchBox.stories.tsx +16 -0
- package/src/components/SearchBox/stories/StoryComponent.tsx +25 -0
- package/src/components/SearchBox/types.ts +9 -0
- package/src/components/StepsCounter/StepsCounter.spec.tsx +14 -0
- package/src/components/StepsCounter/StepsCounter.stories.tsx +16 -0
- package/src/components/StepsCounter/StepsCounter.tsx +74 -0
- package/src/components/StepsCounter/index.ts +2 -0
- package/src/components/StepsCounter/types.ts +4 -0
- package/src/components/TableFilters/TableFilterCancelButton.tsx +39 -0
- package/src/components/TableFilters/TableFilterCheckbox.tsx +24 -0
- package/src/components/TableFilters/TableFilterClearButton.tsx +47 -0
- package/src/components/TableFilters/TableFilterTrigger.tsx +50 -0
- package/src/components/TableFilters/TableFilterTriggerWithNotification.tsx +44 -0
- package/src/components/TableFilters/TableFilters.e2e.ts +28 -0
- package/src/components/TableFilters/TableFilters.spec.tsx +166 -0
- package/src/components/TableFilters/TableFilters.tsx +178 -0
- package/src/components/TableFilters/TableFiltersAccordion.tsx +15 -0
- package/src/components/TableFilters/TableFiltersAccordionContent.tsx +19 -0
- package/src/components/TableFilters/TableFiltersButtons.tsx +32 -0
- package/src/components/TableFilters/hooks/useTableData.ts +97 -0
- package/src/components/TableFilters/index.ts +9 -0
- package/src/components/TableFilters/stories/StoryComponent.tsx +35 -0
- package/src/components/TableFilters/stories/TableFilters.stories.tsx +17 -0
- package/src/components/TableFilters/stories/TableFiltersWrapper.tsx +7 -0
- package/src/components/TableFilters/stories/mockData.tsx +114 -0
- package/src/components/TableFilters/styles.ts +26 -0
- package/src/components/TableFilters/types.ts +33 -0
- package/src/components/TableFilters/utils/handlers.ts +73 -0
- package/src/components/TradingInfoCard/TradingInfoCard.e2e.ts +16 -0
- package/src/components/TradingInfoCard/TradingInfoCard.spec.tsx +116 -0
- package/src/components/TradingInfoCard/TradingInfoCard.stories.tsx +118 -0
- package/src/components/TradingInfoCard/TradingInfoCard.tsx +43 -0
- package/src/components/TradingInfoCard/TradingInfoCardContent.tsx +32 -0
- package/src/components/TradingInfoCard/TradingInfoCardTooltip.tsx +47 -0
- package/src/components/TradingInfoCard/TradingInfoCardWrapper.tsx +72 -0
- package/src/components/TradingInfoCard/index.ts +3 -0
- package/src/components/TradingInfoCard/types.ts +27 -0
- package/src/components/TradingScoreboard/TradingScoreboard.spec.tsx +119 -0
- package/src/components/TradingScoreboard/TradingScoreboard.stories.tsx +119 -0
- package/src/components/TradingScoreboard/TradingScoreboard.tsx +41 -0
- package/src/components/TradingScoreboard/TradingScoreboardBase.tsx +17 -0
- package/src/components/TradingScoreboard/helpers.tsx +134 -0
- package/src/components/TradingScoreboard/index.ts +2 -0
- package/src/components/TradingScoreboard/types.ts +18 -0
- package/src/components/UpcomingWorkouts/UpcomingWorkoutCard.tsx +64 -0
- package/src/components/UpcomingWorkouts/UpcomingWorkouts.spec.tsx +56 -0
- package/src/components/UpcomingWorkouts/UpcomingWorkouts.stories.tsx +32 -0
- package/src/components/UpcomingWorkouts/UpcomingWorkouts.tsx +27 -0
- package/src/components/UpcomingWorkouts/index.ts +2 -0
- package/src/components/UpcomingWorkouts/style.ts +12 -0
- package/src/components/UpcomingWorkouts/types.ts +23 -0
- package/src/components/UserCard/UserCard.tsx +46 -0
- package/src/components/UserCard/UserCardBMI.tsx +37 -0
- package/src/components/UserCard/UserCardCredentials.tsx +56 -0
- package/src/components/UserCard/UserCardItem.tsx +42 -0
- package/src/components/UserCard/index.tsx +2 -0
- package/src/components/UserCard/types.ts +8 -0
- package/src/components/UserProfile/UserProfile.e2e.ts +21 -0
- package/src/components/UserProfile/UserProfile.spec.tsx +55 -0
- package/src/components/UserProfile/UserProfile.stories.tsx +21 -0
- package/src/components/UserProfile/UserProfile.tsx +51 -0
- package/src/components/UserProfile/index.ts +2 -0
- package/src/components/UserProfile/styles.ts +47 -0
- package/src/components/UserProfile/types.ts +6 -0
- package/src/components/WaterConsume/WaterConsume.spec.tsx +62 -0
- package/src/components/WaterConsume/WaterConsume.stories.tsx +36 -0
- package/src/components/WaterConsume/WaterConsume.tsx +188 -0
- package/src/components/WaterConsume/index.ts +2 -0
- package/src/components/WaterConsume/types.ts +11 -0
- package/src/consts.ts +18 -0
- package/src/index.ts +50 -0
- package/src/injectGlobal.ts +41 -0
- package/storybook-static/0.19f2e251.iframe.bundle.js +1 -0
- package/storybook-static/106.f1e6d14d.iframe.bundle.js +44 -0
- package/storybook-static/106.f1e6d14d.iframe.bundle.js.map +1 -0
- package/storybook-static/162.50e9b926.iframe.bundle.js +1 -0
- package/storybook-static/291.c8585ee9.iframe.bundle.js +1 -0
- package/storybook-static/293.c50861da.iframe.bundle.js +2 -0
- package/storybook-static/293.c50861da.iframe.bundle.js.LICENSE.txt +9 -0
- package/storybook-static/36.713e1566.iframe.bundle.js +1 -0
- package/storybook-static/460.8dc4e7c6.iframe.bundle.js +402 -0
- package/storybook-static/460.8dc4e7c6.iframe.bundle.js.LICENSE.txt +64 -0
- package/storybook-static/460.8dc4e7c6.iframe.bundle.js.map +1 -0
- package/storybook-static/576.98c3eb27.iframe.bundle.js +1 -0
- package/storybook-static/620.61fd9060.iframe.bundle.js +1 -0
- package/storybook-static/696.e559304f.iframe.bundle.js +2 -0
- package/storybook-static/696.e559304f.iframe.bundle.js.LICENSE.txt +32 -0
- package/storybook-static/710.ab631936.iframe.bundle.js +1 -0
- package/storybook-static/829.7385f99b.iframe.bundle.js +139 -0
- package/storybook-static/829.7385f99b.iframe.bundle.js.map +1 -0
- package/storybook-static/834.04cdfc87.iframe.bundle.js +1 -0
- package/storybook-static/945.ddb2ee2f.iframe.bundle.js +1 -0
- package/storybook-static/components-Activity-Activity-stories.107a3fa3.iframe.bundle.js +1 -0
- package/storybook-static/components-Bmi-Bmi-stories.b8c54168.iframe.bundle.js +1 -0
- package/storybook-static/components-Calories-Calories-stories.8851a637.iframe.bundle.js +1 -0
- package/storybook-static/components-CardList-CardList-stories.963f2911.iframe.bundle.js +1 -0
- package/storybook-static/components-HeartRate-HeartRate-stories.f9844316.iframe.bundle.js +1 -0
- package/storybook-static/components-ListGoals-ListGoals-stories.ca994275.iframe.bundle.js +1 -0
- package/storybook-static/components-MealNutrients-MealNutrients-stories.1850ecb0.iframe.bundle.js +1 -0
- package/storybook-static/components-MealPlanner-MealPlanner-stories.542c85fc.iframe.bundle.js +1 -0
- package/storybook-static/components-NavBar-NavBar-stories.73f09876.iframe.bundle.js +1 -0
- package/storybook-static/components-ProgressInfo-ProgressInfo-stories.f6b5466e.iframe.bundle.js +1 -0
- package/storybook-static/components-StepsCounter-StepsCounter-stories.967e384f.iframe.bundle.js +1 -0
- package/storybook-static/components-UpcomingWorkouts-UpcomingWorkouts-stories.ba735508.iframe.bundle.js +1 -0
- package/storybook-static/components-WaterConsume-WaterConsume-stories.4b5e8cb5.iframe.bundle.js +1 -0
- package/storybook-static/favicon.svg +7 -0
- package/storybook-static/iframe.html +355 -0
- package/storybook-static/index.html +126 -0
- package/storybook-static/index.json +1 -0
- package/storybook-static/main.912c7e67.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -0
- package/storybook-static/runtime~main.e664d5e5.iframe.bundle.js +1 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js +4 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-actions-2/manager-bundle.js.map +7 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js +13 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-backgrounds-3/manager-bundle.js.map +7 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js +117 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +18 -0
- package/storybook-static/sb-addons/essentials-controls-1/manager-bundle.js.map +7 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js +4 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-measure-6/manager-bundle.js.map +7 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js +4 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-outline-7/manager-bundle.js.map +7 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js +4 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-toolbars-5/manager-bundle.js.map +7 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js +4 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/essentials-viewport-4/manager-bundle.js.map +7 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js +28 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/interactions-8/manager-bundle.js.map +7 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js +4 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-static/sb-addons/links-0/manager-bundle.js.map +7 -0
- package/storybook-static/sb-common-assets/fonts.css +31 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-static/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-static/sb-manager/GlobalScrollAreaStyles-DZEYMYDM-UAEZM2KF.js +7 -0
- package/storybook-static/sb-manager/OverlayScrollbars-OGE3XJTA-T3S33YR7.js +1 -0
- package/storybook-static/sb-manager/WithTooltip-I4CCNYWD-ZW5IOTVO.js +1 -0
- package/storybook-static/sb-manager/chunk-3FAXWWKG.js +15 -0
- package/storybook-static/sb-manager/chunk-AA6TEL5N.js +207 -0
- package/storybook-static/sb-manager/chunk-AM2ZNZZH.js +136 -0
- package/storybook-static/sb-manager/chunk-AS2AMEUR.js +1 -0
- package/storybook-static/sb-manager/chunk-FPTBIX6P.js +403 -0
- package/storybook-static/sb-manager/chunk-IPZYHIL3.js +7 -0
- package/storybook-static/sb-manager/chunk-QPL63VNK.js +1 -0
- package/storybook-static/sb-manager/chunk-R5BIZIS3.js +1 -0
- package/storybook-static/sb-manager/formatter-OJ5LH2CX-IQX6U4TO.js +156 -0
- package/storybook-static/sb-manager/globals.js +1 -0
- package/storybook-static/sb-manager/index.js +1 -0
- package/storybook-static/sb-manager/runtime.js +1 -0
- package/storybook-static/sb-manager/syntaxhighlighter-SIPZPD4I-WOB5MYBW.js +1 -0
- package/storybook-static/sb-preview/globals.js +1 -0
- package/storybook-static/sb-preview/runtime.js +105 -0
- package/storybook-static/stories.json +1 -0
- package/tsbuildcache +1 -0
- package/tsconfig.build.json +44 -0
- package/tsconfig.json +17 -0
- package/tsconfig.tsbuildinfo +1 -0
- package/webpack.config.js +28 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { screen, within } from '../../../customTest';
|
|
2
|
+
|
|
3
|
+
import WaterConsume from './index';
|
|
4
|
+
|
|
5
|
+
const steps = [
|
|
6
|
+
{
|
|
7
|
+
title: '600ml',
|
|
8
|
+
caption: '2pm - 4pm',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
title: '500ml',
|
|
12
|
+
caption: '11am - 2pm',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
title: '1000ml',
|
|
16
|
+
caption: '9am - 11am',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
title: '700ml',
|
|
20
|
+
caption: '6am - 8am',
|
|
21
|
+
},
|
|
22
|
+
];
|
|
23
|
+
|
|
24
|
+
const checkListItems = async () => {
|
|
25
|
+
const listItems = await screen.findAllByRole('listitem');
|
|
26
|
+
|
|
27
|
+
for (let i = 0; i < listItems.length; ++i) {
|
|
28
|
+
const itemEl = listItems[i];
|
|
29
|
+
within(itemEl).getByText(steps[steps.length - i - 1].title);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
describe('WaterConsume', () => {
|
|
34
|
+
it('Renders with a custom unit', async () => {
|
|
35
|
+
render(
|
|
36
|
+
<WaterConsume
|
|
37
|
+
minValue={0}
|
|
38
|
+
maxValue={3}
|
|
39
|
+
currentValue={2.7}
|
|
40
|
+
unit={'L'}
|
|
41
|
+
active={2}
|
|
42
|
+
steps={steps}
|
|
43
|
+
/>,
|
|
44
|
+
);
|
|
45
|
+
|
|
46
|
+
screen.getByText('0L');
|
|
47
|
+
screen.getByText('2.7L');
|
|
48
|
+
screen.getByText('3L');
|
|
49
|
+
|
|
50
|
+
await checkListItems();
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
it('Render with the default unit (%)', async () => {
|
|
54
|
+
render(<WaterConsume currentValue={50} active={1} steps={steps} />);
|
|
55
|
+
|
|
56
|
+
screen.getByText('0%');
|
|
57
|
+
screen.getByText('50%');
|
|
58
|
+
screen.getByText('100%');
|
|
59
|
+
|
|
60
|
+
await checkListItems();
|
|
61
|
+
});
|
|
62
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Meta } from '@storybook/react';
|
|
2
|
+
|
|
3
|
+
import { WaterConsume } from './WaterConsume';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'Widgets/WaterConsume',
|
|
7
|
+
component: WaterConsume,
|
|
8
|
+
} as Meta<typeof WaterConsume>;
|
|
9
|
+
|
|
10
|
+
export const Default = {
|
|
11
|
+
args: {
|
|
12
|
+
minValue: 0,
|
|
13
|
+
maxValue: 3,
|
|
14
|
+
currentValue: 2.7,
|
|
15
|
+
unit: 'L',
|
|
16
|
+
active: 3,
|
|
17
|
+
steps: [
|
|
18
|
+
{
|
|
19
|
+
title: '600ml',
|
|
20
|
+
caption: '2pm - 4pm',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: '500ml',
|
|
24
|
+
caption: '11am - 2pm',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title: '1000ml',
|
|
28
|
+
caption: '9am - 11am',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
title: '700ml',
|
|
32
|
+
caption: '6am - 8am',
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { css, useTheme } from '@emotion/react';
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
Card,
|
|
5
|
+
CardContent,
|
|
6
|
+
CardHeader,
|
|
7
|
+
Stepper,
|
|
8
|
+
Step,
|
|
9
|
+
StepLabel,
|
|
10
|
+
Typography,
|
|
11
|
+
ResponsiveImage,
|
|
12
|
+
ProgressBar,
|
|
13
|
+
ProgressLegend,
|
|
14
|
+
ProgressLegendItem,
|
|
15
|
+
ProgressVertical,
|
|
16
|
+
} from '@ssa-ui-kit/core';
|
|
17
|
+
|
|
18
|
+
import { WaterConsumeProps } from './types';
|
|
19
|
+
|
|
20
|
+
const CustomConnector = ({
|
|
21
|
+
active,
|
|
22
|
+
completed,
|
|
23
|
+
}: {
|
|
24
|
+
active?: boolean;
|
|
25
|
+
completed?: boolean;
|
|
26
|
+
}) => {
|
|
27
|
+
const theme = useTheme();
|
|
28
|
+
return (
|
|
29
|
+
<div
|
|
30
|
+
css={css`
|
|
31
|
+
flex: 1 1 auto;
|
|
32
|
+
margin-left: 11.5px;
|
|
33
|
+
`}>
|
|
34
|
+
<span
|
|
35
|
+
css={css`
|
|
36
|
+
display: block;
|
|
37
|
+
border-color: ${active || completed
|
|
38
|
+
? theme.colors.blueLightLighter
|
|
39
|
+
: theme.colors.greyDarker60};
|
|
40
|
+
border-left-style: dashed;
|
|
41
|
+
border-left-width: 1px;
|
|
42
|
+
min-height: 20px;
|
|
43
|
+
`}></span>
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const CustomStep: React.FC = (props: {
|
|
49
|
+
active?: boolean;
|
|
50
|
+
completed?: boolean;
|
|
51
|
+
}) => {
|
|
52
|
+
const { active, completed } = props;
|
|
53
|
+
const theme = useTheme();
|
|
54
|
+
|
|
55
|
+
return (
|
|
56
|
+
<div
|
|
57
|
+
css={css`
|
|
58
|
+
width: 6px;
|
|
59
|
+
height: 6px;
|
|
60
|
+
background-color: ${active || completed
|
|
61
|
+
? theme.colors.blueLightLighter
|
|
62
|
+
: theme.colors.greyDarker60};
|
|
63
|
+
border-radius: 50%;
|
|
64
|
+
`}></div>
|
|
65
|
+
);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* UI Component shows the water consumption objective of the user
|
|
71
|
+
* @param steps - the order goes from top to bottom, from left to right
|
|
72
|
+
*/
|
|
73
|
+
export const WaterConsume = ({
|
|
74
|
+
minValue = 0,
|
|
75
|
+
maxValue = 100,
|
|
76
|
+
currentValue,
|
|
77
|
+
active,
|
|
78
|
+
steps,
|
|
79
|
+
unit = '%',
|
|
80
|
+
}: WaterConsumeProps) => {
|
|
81
|
+
const theme = useTheme();
|
|
82
|
+
const currentPercentage = Math.round((currentValue * 100) / maxValue);
|
|
83
|
+
|
|
84
|
+
return (
|
|
85
|
+
<Card
|
|
86
|
+
css={css`
|
|
87
|
+
box-shadow: 0 10px 40px rgba(42, 48, 57, 0.08);
|
|
88
|
+
border-radius: 20px;
|
|
89
|
+
`}>
|
|
90
|
+
<CardHeader
|
|
91
|
+
icon={
|
|
92
|
+
<ResponsiveImage
|
|
93
|
+
css={{ filter: `drop-shadow(0px 5px 5px ${theme.colors.grey})` }}
|
|
94
|
+
srcSet="https://firebasestorage.googleapis.com/v0/b/admin-themes.appspot.com/o/img%2Fwater%2Fwater_64.png?alt=media&token=2abf9f9c-2159-4235-856c-f054783a007d 64w, https://firebasestorage.googleapis.com/v0/b/admin-themes.appspot.com/o/img%2Fwater%2Fwater_48.png?alt=media&token=abc1e619-940a-4fc0-9f83-ef0a998464f2 48w"
|
|
95
|
+
sizes="(min-width: 1440px) 64px, 48px"
|
|
96
|
+
src="https://firebasestorage.googleapis.com/v0/b/admin-themes.appspot.com/o/img%2Fwater%2Fwater_48.png?alt=media&token=abc1e619-940a-4fc0-9f83-ef0a998464f2"
|
|
97
|
+
alt="Water"
|
|
98
|
+
/>
|
|
99
|
+
}>
|
|
100
|
+
<Typography variant="h6" weight="bold">
|
|
101
|
+
Water
|
|
102
|
+
</Typography>
|
|
103
|
+
</CardHeader>
|
|
104
|
+
|
|
105
|
+
<CardContent
|
|
106
|
+
css={{
|
|
107
|
+
width: '100%',
|
|
108
|
+
justifyContent: 'center',
|
|
109
|
+
alignItems: 'stretch',
|
|
110
|
+
}}>
|
|
111
|
+
<div style={{ fontSize: 14, marginRight: '15px' }}>
|
|
112
|
+
<ProgressVertical>
|
|
113
|
+
<ProgressLegend>
|
|
114
|
+
<ProgressLegendItem position="end" percentage={100}>
|
|
115
|
+
<span
|
|
116
|
+
style={{
|
|
117
|
+
textAlign: 'right',
|
|
118
|
+
display: 'block',
|
|
119
|
+
paddingRight: 6,
|
|
120
|
+
}}>
|
|
121
|
+
{`${maxValue}${unit}`}
|
|
122
|
+
</span>
|
|
123
|
+
</ProgressLegendItem>
|
|
124
|
+
<ProgressLegendItem
|
|
125
|
+
position="current"
|
|
126
|
+
percentage={currentPercentage}>
|
|
127
|
+
<span
|
|
128
|
+
style={{
|
|
129
|
+
textAlign: 'right',
|
|
130
|
+
display: 'block',
|
|
131
|
+
paddingRight: 6,
|
|
132
|
+
}}>
|
|
133
|
+
{`${currentValue}${unit}`}
|
|
134
|
+
</span>
|
|
135
|
+
</ProgressLegendItem>
|
|
136
|
+
<ProgressLegendItem position="start" percentage={0}>
|
|
137
|
+
<span
|
|
138
|
+
style={{
|
|
139
|
+
textAlign: 'right',
|
|
140
|
+
display: 'block',
|
|
141
|
+
paddingRight: 6,
|
|
142
|
+
}}>
|
|
143
|
+
{`${minValue}${unit}`}
|
|
144
|
+
</span>
|
|
145
|
+
</ProgressLegendItem>
|
|
146
|
+
</ProgressLegend>
|
|
147
|
+
<ProgressBar percentage={currentPercentage} color="blueLight" />
|
|
148
|
+
</ProgressVertical>
|
|
149
|
+
</div>
|
|
150
|
+
|
|
151
|
+
<Stepper
|
|
152
|
+
color={theme.colors.blueLight}
|
|
153
|
+
activeStep={active}
|
|
154
|
+
orientation={'vertical'}
|
|
155
|
+
inverted
|
|
156
|
+
sx={{
|
|
157
|
+
rowGap: 0,
|
|
158
|
+
}}>
|
|
159
|
+
{steps.map((step, index) => {
|
|
160
|
+
return (
|
|
161
|
+
<Step key={index} Connector={CustomConnector}>
|
|
162
|
+
<StepLabel StepIcon={CustomStep}>
|
|
163
|
+
<span
|
|
164
|
+
style={{
|
|
165
|
+
textAlign: 'left',
|
|
166
|
+
display: 'block',
|
|
167
|
+
fontSize: 9,
|
|
168
|
+
}}>
|
|
169
|
+
{step.caption}
|
|
170
|
+
</span>
|
|
171
|
+
<span
|
|
172
|
+
style={{
|
|
173
|
+
textAlign: 'left',
|
|
174
|
+
display: 'block',
|
|
175
|
+
fontSize: 9,
|
|
176
|
+
fontWeight: 700,
|
|
177
|
+
}}>
|
|
178
|
+
{step.title}
|
|
179
|
+
</span>
|
|
180
|
+
</StepLabel>
|
|
181
|
+
</Step>
|
|
182
|
+
);
|
|
183
|
+
})}
|
|
184
|
+
</Stepper>
|
|
185
|
+
</CardContent>
|
|
186
|
+
</Card>
|
|
187
|
+
);
|
|
188
|
+
};
|
package/src/consts.ts
ADDED
package/src/index.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
2
|
+
import './injectGlobal';
|
|
3
|
+
import '@emotion/react';
|
|
4
|
+
|
|
5
|
+
import { Theme as T } from '@ssa-ui-kit/core';
|
|
6
|
+
|
|
7
|
+
declare module '@emotion/react' {
|
|
8
|
+
export interface Theme extends T {}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export { default as Activity } from './components/Activity';
|
|
12
|
+
export * from './components/Activity';
|
|
13
|
+
export { default as Calories } from './components/Calories';
|
|
14
|
+
export * from './components/Calories';
|
|
15
|
+
export * from './components/HeartRate';
|
|
16
|
+
export * from './components/MealNutrients';
|
|
17
|
+
export { default as NavBar } from './components/NavBar';
|
|
18
|
+
export * from './components/NavBar';
|
|
19
|
+
export { default as ProgressInfo } from './components/ProgressInfo';
|
|
20
|
+
export * from './components/ProgressInfo';
|
|
21
|
+
export { default as UpcomingWorkouts } from './components/UpcomingWorkouts';
|
|
22
|
+
export * from './components/UpcomingWorkouts';
|
|
23
|
+
export { default as WaterConsume } from './components/WaterConsume';
|
|
24
|
+
export * from './components/WaterConsume';
|
|
25
|
+
export { default as Bmi } from './components/Bmi';
|
|
26
|
+
export * from './components/Bmi';
|
|
27
|
+
export { default as CardList } from './components/CardList';
|
|
28
|
+
export * from './components/CardList';
|
|
29
|
+
export { default as ListGoals } from './components/ListGoals';
|
|
30
|
+
export * from './components/ListGoals';
|
|
31
|
+
export { default as MealPlanner } from './components/MealPlanner';
|
|
32
|
+
export * from './components/MealPlanner';
|
|
33
|
+
export { default as StepsCounter } from './components/StepsCounter';
|
|
34
|
+
export * from './components/StepsCounter';
|
|
35
|
+
export { default as UserCard } from './components/UserCard';
|
|
36
|
+
export * from './components/UserCard';
|
|
37
|
+
export * from './components/Pagination';
|
|
38
|
+
export * from './components/TradingInfoCard';
|
|
39
|
+
export * from './components/TradingScoreboard';
|
|
40
|
+
export * from './components/NotificationCard';
|
|
41
|
+
export * from './components/LinksTabBar';
|
|
42
|
+
export * from './components/NotificationMenu';
|
|
43
|
+
export * from './components/SearchBox';
|
|
44
|
+
export * from './components/UserProfile';
|
|
45
|
+
export * from './components/BotsTable';
|
|
46
|
+
export * from './components/AddNewAccountCard';
|
|
47
|
+
export * from './components/PieChart';
|
|
48
|
+
export * from './components/AccountBalance';
|
|
49
|
+
export * from './components/ExchangeAccount';
|
|
50
|
+
export * from './components/ExchangeAccountKeys';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { injectGlobal } from '@emotion/css';
|
|
2
|
+
|
|
3
|
+
injectGlobal`
|
|
4
|
+
* {
|
|
5
|
+
outline: none;
|
|
6
|
+
|
|
7
|
+
box-sizing: border-box;
|
|
8
|
+
font-family: 'Manrope', sans-serif;
|
|
9
|
+
|
|
10
|
+
&::after,
|
|
11
|
+
&::before {
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
html {
|
|
17
|
+
font-size: 1rem;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
body {
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h1,
|
|
27
|
+
h2,
|
|
28
|
+
h3,
|
|
29
|
+
h4,
|
|
30
|
+
h5,
|
|
31
|
+
h6,
|
|
32
|
+
p {
|
|
33
|
+
margin: 0;
|
|
34
|
+
padding: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
#root {
|
|
38
|
+
height: 100vh;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
`;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_ssa_ui_kit_widgets=self.webpackChunk_ssa_ui_kit_widgets||[]).push([[0],{"../../node_modules/.pnpm/@emotion+styled@11.11.0_@emotion+react@11.11.1_@types+react@18.2.8_react@18.2.0/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Z:function(){return createStyled}});var esm_extends=__webpack_require__("../../node_modules/.pnpm/@babel+runtime@7.22.6/node_modules/@babel/runtime/helpers/esm/extends.js"),react=__webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),emotion_memoize_esm=__webpack_require__("../../node_modules/.pnpm/@emotion+memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js"),reactPropsRegex=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,isPropValid=(0,emotion_memoize_esm.Z)((function(prop){return reactPropsRegex.test(prop)||111===prop.charCodeAt(0)&&110===prop.charCodeAt(1)&&prop.charCodeAt(2)<91})),emotion_element_c39617d8_browser_esm=__webpack_require__("../../node_modules/.pnpm/@emotion+react@11.11.1_@types+react@18.2.8_react@18.2.0/node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js"),emotion_utils_browser_esm=__webpack_require__("../../node_modules/.pnpm/@emotion+utils@1.2.1/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js"),emotion_serialize_browser_esm=__webpack_require__("../../node_modules/.pnpm/@emotion+serialize@1.1.2/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.js"),emotion_use_insertion_effect_with_fallbacks_browser_esm=__webpack_require__("../../node_modules/.pnpm/@emotion+use-insertion-effect-with-fallbacks@1.0.1_react@18.2.0/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.js"),testOmitPropsOnStringTag=isPropValid,testOmitPropsOnComponent=function testOmitPropsOnComponent(key){return"theme"!==key},getDefaultShouldForwardProp=function getDefaultShouldForwardProp(tag){return"string"==typeof tag&&tag.charCodeAt(0)>96?testOmitPropsOnStringTag:testOmitPropsOnComponent},composeShouldForwardProps=function composeShouldForwardProps(tag,options,isReal){var shouldForwardProp;if(options){var optionsShouldForwardProp=options.shouldForwardProp;shouldForwardProp=tag.__emotion_forwardProp&&optionsShouldForwardProp?function(propName){return tag.__emotion_forwardProp(propName)&&optionsShouldForwardProp(propName)}:optionsShouldForwardProp}return"function"!=typeof shouldForwardProp&&isReal&&(shouldForwardProp=tag.__emotion_forwardProp),shouldForwardProp},Insertion=function Insertion(_ref){var cache=_ref.cache,serialized=_ref.serialized,isStringTag=_ref.isStringTag;return(0,emotion_utils_browser_esm.hC)(cache,serialized,isStringTag),(0,emotion_use_insertion_effect_with_fallbacks_browser_esm.L)((function(){return(0,emotion_utils_browser_esm.My)(cache,serialized,isStringTag)})),null},createStyled=function createStyled(tag,options){var identifierName,targetClassName,isReal=tag.__emotion_real===tag,baseTag=isReal&&tag.__emotion_base||tag;void 0!==options&&(identifierName=options.label,targetClassName=options.target);var shouldForwardProp=composeShouldForwardProps(tag,options,isReal),defaultShouldForwardProp=shouldForwardProp||getDefaultShouldForwardProp(baseTag),shouldUseAs=!defaultShouldForwardProp("as");return function(){var args=arguments,styles=isReal&&void 0!==tag.__emotion_styles?tag.__emotion_styles.slice(0):[];if(void 0!==identifierName&&styles.push("label:"+identifierName+";"),null==args[0]||void 0===args[0].raw)styles.push.apply(styles,args);else{0,styles.push(args[0][0]);for(var len=args.length,i=1;i<len;i++)styles.push(args[i],args[0][i])}var Styled=(0,emotion_element_c39617d8_browser_esm.w)((function(props,cache,ref){var FinalTag=shouldUseAs&&props.as||baseTag,className="",classInterpolations=[],mergedProps=props;if(null==props.theme){for(var key in mergedProps={},props)mergedProps[key]=props[key];mergedProps.theme=react.useContext(emotion_element_c39617d8_browser_esm.T)}"string"==typeof props.className?className=(0,emotion_utils_browser_esm.fp)(cache.registered,classInterpolations,props.className):null!=props.className&&(className=props.className+" ");var serialized=(0,emotion_serialize_browser_esm.O)(styles.concat(classInterpolations),cache.registered,mergedProps);className+=cache.key+"-"+serialized.name,void 0!==targetClassName&&(className+=" "+targetClassName);var finalShouldForwardProp=shouldUseAs&&void 0===shouldForwardProp?getDefaultShouldForwardProp(FinalTag):defaultShouldForwardProp,newProps={};for(var _key in props)shouldUseAs&&"as"===_key||finalShouldForwardProp(_key)&&(newProps[_key]=props[_key]);return newProps.className=className,newProps.ref=ref,react.createElement(react.Fragment,null,react.createElement(Insertion,{cache:cache,serialized:serialized,isStringTag:"string"==typeof FinalTag}),react.createElement(FinalTag,newProps))}));return Styled.displayName=void 0!==identifierName?identifierName:"Styled("+("string"==typeof baseTag?baseTag:baseTag.displayName||baseTag.name||"Component")+")",Styled.defaultProps=tag.defaultProps,Styled.__emotion_real=Styled,Styled.__emotion_base=baseTag,Styled.__emotion_styles=styles,Styled.__emotion_forwardProp=shouldForwardProp,Object.defineProperty(Styled,"toString",{value:function value(){return"."+targetClassName}}),Styled.withComponent=function(nextTag,nextOptions){return createStyled(nextTag,(0,esm_extends.Z)({},options,nextOptions,{shouldForwardProp:composeShouldForwardProps(Styled,nextOptions,!0)})).apply(void 0,styles)},Styled}}},"../../node_modules/.pnpm/@nivo+pie@0.80.0_@nivo+core@0.80.0_prop-types@15.8.1_react-dom@18.2.0_react@18.2.0/node_modules/@nivo/pie/dist/nivo-pie.es.js":function(__unused_webpack_module,__webpack_exports__,__webpack_require__){__webpack_require__.d(__webpack_exports__,{Y2:function(){return nivo_pie_es_$}});var react=__webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/index.js"),nivo_core_es=__webpack_require__("../../node_modules/.pnpm/@nivo+core@0.80.0_@nivo+tooltip@0.80.0_prop-types@15.8.1_react-dom@18.2.0_react@18.2.0/node_modules/@nivo/core/dist/nivo-core.es.js"),react_spring_web_esm=__webpack_require__("../../node_modules/.pnpm/@react-spring+web@9.4.5_react-dom@18.2.0_react@18.2.0/node_modules/@react-spring/web/dist/react-spring-web.esm.js"),jsx_runtime=__webpack_require__("../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js"),nivo_colors_es=__webpack_require__("../../node_modules/.pnpm/@nivo+colors@0.80.0_@nivo+core@0.80.0_prop-types@15.8.1_react@18.2.0/node_modules/@nivo/colors/dist/nivo-colors.es.js"),line=__webpack_require__("../../node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/line.js"),path=__webpack_require__("../../node_modules/.pnpm/d3-path@1.0.9/node_modules/d3-path/src/path.js"),constant=__webpack_require__("../../node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/constant.js"),math=__webpack_require__("../../node_modules/.pnpm/d3-shape@1.3.7/node_modules/d3-shape/src/math.js");function arcInnerRadius(d){return d.innerRadius}function arcOuterRadius(d){return d.outerRadius}function arcStartAngle(d){return d.startAngle}function arcEndAngle(d){return d.endAngle}function arcPadAngle(d){return d&&d.padAngle}function cornerTangents(x0,y0,x1,y1,r1,rc,cw){var x01=x0-x1,y01=y0-y1,lo=(cw?rc:-rc)/(0,math._b)(x01*x01+y01*y01),ox=lo*y01,oy=-lo*x01,x11=x0+ox,y11=y0+oy,x10=x1+ox,y10=y1+oy,x00=(x11+x10)/2,y00=(y11+y10)/2,dx=x10-x11,dy=y10-y11,d2=dx*dx+dy*dy,r=r1-rc,D=x11*y10-x10*y11,d=(dy<0?-1:1)*(0,math._b)((0,math.Fp)(0,r*r*d2-D*D)),cx0=(D*dy-dx*d)/d2,cy0=(-D*dx-dy*d)/d2,cx1=(D*dy+dx*d)/d2,cy1=(-D*dx+dy*d)/d2,dx0=cx0-x00,dy0=cy0-y00,dx1=cx1-x00,dy1=cy1-y00;return dx0*dx0+dy0*dy0>dx1*dx1+dy1*dy1&&(cx0=cx1,cy0=cy1),{cx:cx0,cy:cy0,x01:-ox,y01:-oy,x11:cx0*(r1/r-1),y11:cy0*(r1/r-1)}}function arc(){var innerRadius=arcInnerRadius,outerRadius=arcOuterRadius,cornerRadius=(0,constant.Z)(0),padRadius=null,startAngle=arcStartAngle,endAngle=arcEndAngle,padAngle=arcPadAngle,context=null;function arc(){var buffer,r,r0=+innerRadius.apply(this,arguments),r1=+outerRadius.apply(this,arguments),a0=startAngle.apply(this,arguments)-math.ou,a1=endAngle.apply(this,arguments)-math.ou,da=(0,math.Wn)(a1-a0),cw=a1>a0;if(context||(context=buffer=(0,path.Z)()),r1<r0&&(r=r1,r1=r0,r0=r),r1>math.Ho)if(da>math.BZ-math.Ho)context.moveTo(r1*(0,math.mC)(a0),r1*(0,math.O$)(a0)),context.arc(0,0,r1,a0,a1,!cw),r0>math.Ho&&(context.moveTo(r0*(0,math.mC)(a1),r0*(0,math.O$)(a1)),context.arc(0,0,r0,a1,a0,cw));else{var t0,t1,a01=a0,a11=a1,a00=a0,a10=a1,da0=da,da1=da,ap=padAngle.apply(this,arguments)/2,rp=ap>math.Ho&&(padRadius?+padRadius.apply(this,arguments):(0,math._b)(r0*r0+r1*r1)),rc=(0,math.VV)((0,math.Wn)(r1-r0)/2,+cornerRadius.apply(this,arguments)),rc0=rc,rc1=rc;if(rp>math.Ho){var p0=(0,math.ZR)(rp/r0*(0,math.O$)(ap)),p1=(0,math.ZR)(rp/r1*(0,math.O$)(ap));(da0-=2*p0)>math.Ho?(a00+=p0*=cw?1:-1,a10-=p0):(da0=0,a00=a10=(a0+a1)/2),(da1-=2*p1)>math.Ho?(a01+=p1*=cw?1:-1,a11-=p1):(da1=0,a01=a11=(a0+a1)/2)}var x01=r1*(0,math.mC)(a01),y01=r1*(0,math.O$)(a01),x10=r0*(0,math.mC)(a10),y10=r0*(0,math.O$)(a10);if(rc>math.Ho){var oc,x11=r1*(0,math.mC)(a11),y11=r1*(0,math.O$)(a11),x00=r0*(0,math.mC)(a00),y00=r0*(0,math.O$)(a00);if(da<math.pi&&(oc=function intersect(x0,y0,x1,y1,x2,y2,x3,y3){var x10=x1-x0,y10=y1-y0,x32=x3-x2,y32=y3-y2,t=y32*x10-x32*y10;if(!(t*t<math.Ho))return[x0+(t=(x32*(y0-y2)-y32*(x0-x2))/t)*x10,y0+t*y10]}(x01,y01,x00,y00,x11,y11,x10,y10))){var ax=x01-oc[0],ay=y01-oc[1],bx=x11-oc[0],by=y11-oc[1],kc=1/(0,math.O$)((0,math.Kh)((ax*bx+ay*by)/((0,math._b)(ax*ax+ay*ay)*(0,math._b)(bx*bx+by*by)))/2),lc=(0,math._b)(oc[0]*oc[0]+oc[1]*oc[1]);rc0=(0,math.VV)(rc,(r0-lc)/(kc-1)),rc1=(0,math.VV)(rc,(r1-lc)/(kc+1))}}da1>math.Ho?rc1>math.Ho?(t0=cornerTangents(x00,y00,x01,y01,r1,rc1,cw),t1=cornerTangents(x11,y11,x10,y10,r1,rc1,cw),context.moveTo(t0.cx+t0.x01,t0.cy+t0.y01),rc1<rc?context.arc(t0.cx,t0.cy,rc1,(0,math.fv)(t0.y01,t0.x01),(0,math.fv)(t1.y01,t1.x01),!cw):(context.arc(t0.cx,t0.cy,rc1,(0,math.fv)(t0.y01,t0.x01),(0,math.fv)(t0.y11,t0.x11),!cw),context.arc(0,0,r1,(0,math.fv)(t0.cy+t0.y11,t0.cx+t0.x11),(0,math.fv)(t1.cy+t1.y11,t1.cx+t1.x11),!cw),context.arc(t1.cx,t1.cy,rc1,(0,math.fv)(t1.y11,t1.x11),(0,math.fv)(t1.y01,t1.x01),!cw))):(context.moveTo(x01,y01),context.arc(0,0,r1,a01,a11,!cw)):context.moveTo(x01,y01),r0>math.Ho&&da0>math.Ho?rc0>math.Ho?(t0=cornerTangents(x10,y10,x11,y11,r0,-rc0,cw),t1=cornerTangents(x01,y01,x00,y00,r0,-rc0,cw),context.lineTo(t0.cx+t0.x01,t0.cy+t0.y01),rc0<rc?context.arc(t0.cx,t0.cy,rc0,(0,math.fv)(t0.y01,t0.x01),(0,math.fv)(t1.y01,t1.x01),!cw):(context.arc(t0.cx,t0.cy,rc0,(0,math.fv)(t0.y01,t0.x01),(0,math.fv)(t0.y11,t0.x11),!cw),context.arc(0,0,r0,(0,math.fv)(t0.cy+t0.y11,t0.cx+t0.x11),(0,math.fv)(t1.cy+t1.y11,t1.cx+t1.x11),cw),context.arc(t1.cx,t1.cy,rc0,(0,math.fv)(t1.y11,t1.x11),(0,math.fv)(t1.y01,t1.x01),!cw))):context.arc(0,0,r0,a10,a00,cw):context.lineTo(x10,y10)}else context.moveTo(0,0);if(context.closePath(),buffer)return context=null,buffer+""||null}return arc.centroid=function(){var r=(+innerRadius.apply(this,arguments)+ +outerRadius.apply(this,arguments))/2,a=(+startAngle.apply(this,arguments)+ +endAngle.apply(this,arguments))/2-math.pi/2;return[(0,math.mC)(a)*r,(0,math.O$)(a)*r]},arc.innerRadius=function(_){return arguments.length?(innerRadius="function"==typeof _?_:(0,constant.Z)(+_),arc):innerRadius},arc.outerRadius=function(_){return arguments.length?(outerRadius="function"==typeof _?_:(0,constant.Z)(+_),arc):outerRadius},arc.cornerRadius=function(_){return arguments.length?(cornerRadius="function"==typeof _?_:(0,constant.Z)(+_),arc):cornerRadius},arc.padRadius=function(_){return arguments.length?(padRadius=null==_?null:"function"==typeof _?_:(0,constant.Z)(+_),arc):padRadius},arc.startAngle=function(_){return arguments.length?(startAngle="function"==typeof _?_:(0,constant.Z)(+_),arc):startAngle},arc.endAngle=function(_){return arguments.length?(endAngle="function"==typeof _?_:(0,constant.Z)(+_),arc):endAngle},arc.padAngle=function(_){return arguments.length?(padAngle="function"==typeof _?_:(0,constant.Z)(+_),arc):padAngle},arc.context=function(_){return arguments.length?(context=null==_?null:_,arc):context},arc}function nivo_arcs_es_M(){return nivo_arcs_es_M=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},nivo_arcs_es_M.apply(this,arguments)}var k={pointerEvents:"none"},nivo_arcs_es_C=function(n){var e=n.label,r=n.style,a=(0,nivo_core_es.Fg)();return(0,jsx_runtime.jsx)(react_spring_web_esm.animated.g,{transform:r.transform,opacity:r.progress,style:k,children:(0,jsx_runtime.jsx)(react_spring_web_esm.animated.text,{textAnchor:"middle",dominantBaseline:"central",style:nivo_arcs_es_M({},a.labels.text,{fill:r.textColor}),children:e})})},nivo_arcs_es_b=function(t){var n=t%(2*Math.PI);return n<0&&(n+=2*Math.PI),n},nivo_arcs_es_L=function(t,n){return t.filter((function(t){return Math.abs((0,nivo_core_es.vi)(t.arc.endAngle-t.arc.startAngle))>=n}))},nivo_arcs_es_E={startAngle:{enter:function(t){return nivo_arcs_es_M({},t,{endAngle:t.startAngle})},update:function(t){return t},leave:function(t){return nivo_arcs_es_M({},t,{startAngle:t.endAngle})}},middleAngle:{enter:function(t){var n=t.startAngle+(t.endAngle-t.startAngle)/2;return nivo_arcs_es_M({},t,{startAngle:n,endAngle:n})},update:function(t){return t},leave:function(t){var n=t.startAngle+(t.endAngle-t.startAngle)/2;return nivo_arcs_es_M({},t,{startAngle:n,endAngle:n})}},endAngle:{enter:function(t){return nivo_arcs_es_M({},t,{startAngle:t.endAngle})},update:function(t){return t},leave:function(t){return nivo_arcs_es_M({},t,{endAngle:t.startAngle})}},innerRadius:{enter:function(t){return nivo_arcs_es_M({},t,{outerRadius:t.innerRadius})},update:function(t){return t},leave:function(t){return nivo_arcs_es_M({},t,{innerRadius:t.outerRadius})}},centerRadius:{enter:function(t){var n=t.innerRadius+(t.outerRadius-t.innerRadius)/2;return nivo_arcs_es_M({},t,{innerRadius:n,outerRadius:n})},update:function(t){return t},leave:function(t){var n=t.innerRadius+(t.outerRadius-t.innerRadius)/2;return nivo_arcs_es_M({},t,{innerRadius:n,outerRadius:n})}},outerRadius:{enter:function(t){return nivo_arcs_es_M({},t,{innerRadius:t.outerRadius})},update:function(t){return t},leave:function(t){return nivo_arcs_es_M({},t,{outerRadius:t.innerRadius})}},pushIn:{enter:function(t){return nivo_arcs_es_M({},t,{innerRadius:t.innerRadius-t.outerRadius+t.innerRadius,outerRadius:t.innerRadius})},update:function(t){return t},leave:function(t){return nivo_arcs_es_M({},t,{innerRadius:t.outerRadius,outerRadius:t.outerRadius+t.outerRadius-t.innerRadius})}},pushOut:{enter:function(t){return nivo_arcs_es_M({},t,{innerRadius:t.outerRadius,outerRadius:t.outerRadius+t.outerRadius-t.innerRadius})},update:function(t){return t},leave:function(t){return nivo_arcs_es_M({},t,{innerRadius:t.innerRadius-t.outerRadius+t.innerRadius,outerRadius:t.innerRadius})}}},nivo_arcs_es_I=function(t,n){return(0,react.useMemo)((function(){var e=nivo_arcs_es_E[t];return{enter:function(t){return nivo_arcs_es_M({progress:0},e.enter(t.arc),n?n.enter(t):{})},update:function(t){return nivo_arcs_es_M({progress:1},e.update(t.arc),n?n.update(t):{})},leave:function(t){return nivo_arcs_es_M({progress:0},e.leave(t.arc),n?n.leave(t):{})}}}),[t,n])},T=function(t,n){var e=(0,nivo_core_es.Vp)(t)-Math.PI/2,r=t.innerRadius+(t.outerRadius-t.innerRadius)*n;return(0,nivo_core_es.re)(e,r)},j=function(t){return function(e,r,i,a){return(0,react_spring_web_esm.to)([e,r,i,a],(function(n,e,r,i){var a=T({startAngle:n,endAngle:e,innerRadius:r,outerRadius:i},t);return"translate("+a.x+","+a.y+")"}))}},nivo_arcs_es_B=function(t){var n=t.center,e=t.data,r=t.transitionMode,o=t.label,u=t.radiusOffset,l=t.skipAngle,s=t.textColor,f=t.component,c=void 0===f?nivo_arcs_es_C:f,g=(0,nivo_core_es.LR)(o),h=(0,nivo_core_es.Fg)(),x=(0,nivo_colors_es.Bf)(s,h),m=(0,react.useMemo)((function(){return e.filter((function(t){return Math.abs((0,nivo_core_es.vi)(t.arc.endAngle-t.arc.startAngle))>=l}))}),[e,l]),y=function(t,n,r,i){void 0===n&&(n=.5),void 0===r&&(r="innerRadius");var a=(0,nivo_core_es.tf)(),o=a.animate,u=a.config,l=nivo_arcs_es_I(r,i);return{transition:(0,react_spring_web_esm.useTransition)(t,{keys:function(t){return t.id},initial:l.update,from:l.enter,enter:l.update,update:l.update,leave:l.leave,config:u,immediate:!o}),interpolate:j(n)}}(m,u,r),k=y.transition,b=y.interpolate,L=c;return(0,jsx_runtime.jsx)("g",{transform:"translate("+n[0]+","+n[1]+")",children:k((function(t,n){return(0,react.createElement)(L,{key:n.id,datum:n,label:g(n),style:nivo_arcs_es_M({},t,{transform:b(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius),textColor:x(n)})})}))})},G=function(n){var e=n.label,r=n.style,a=(0,nivo_core_es.Fg)();return(0,jsx_runtime.jsxs)(react_spring_web_esm.animated.g,{opacity:r.opacity,children:[(0,jsx_runtime.jsx)(react_spring_web_esm.animated.path,{fill:"none",stroke:r.linkColor,strokeWidth:r.thickness,d:r.path}),(0,jsx_runtime.jsx)(react_spring_web_esm.animated.text,{transform:r.textPosition,textAnchor:r.textAnchor,dominantBaseline:"central",style:nivo_arcs_es_M({},a.labels.text,{fill:r.textColor}),children:e})]})},D=function(t,n,e,r){var i,a,u=nivo_arcs_es_b(t.startAngle+(t.endAngle-t.startAngle)/2-Math.PI/2),l=(0,nivo_core_es.re)(u,t.outerRadius+n),s=(0,nivo_core_es.re)(u,t.outerRadius+n+e);return u<Math.PI/2||u>1.5*Math.PI?(i="after",a={x:s.x+r,y:s.y}):(i="before",a={x:s.x-r,y:s.y}),{side:i,points:[l,s,a]}},H=(0,line.Z)().x((function(t){return t.x})).y((function(t){return t.y})),J=function(t,e,r,i,a,o,u){return(0,react_spring_web_esm.to)([t,e,r,i,a,o,u],(function(t,n,e,r,i,a,o){var u=D({startAngle:t,endAngle:n,innerRadius:e,outerRadius:r},i,a,o).points;return H(u)}))},K=function(t,e,r,i){return(0,react_spring_web_esm.to)([t,e,r,i],(function(t,n,e,r){return function(t){var n=nivo_arcs_es_b(t.startAngle+(t.endAngle-t.startAngle)/2-Math.PI/2);return n<Math.PI/2||n>1.5*Math.PI?"start":"end"}({startAngle:t,endAngle:n,innerRadius:e,outerRadius:r})}))},N=function(t,e,r,i,a,o,u,l){return(0,react_spring_web_esm.to)([t,e,r,i,a,o,u,l],(function(t,n,e,r,i,a,o,u){var l=D({startAngle:t,endAngle:n,innerRadius:e,outerRadius:r},i,a,o),s=l.points,d=l.side,f=s[2];return"before"===d?f.x-=u:f.x+=u,"translate("+f.x+","+f.y+")"}))},nivo_arcs_es_U=function(t){var n=t.center,e=t.data,r=t.label,i=t.skipAngle,a=t.offset,o=t.diagonalLength,u=t.straightLength,l=t.strokeWidth,s=t.textOffset,f=t.textColor,c=t.linkColor,g=t.component,h=void 0===g?G:g,v=(0,nivo_core_es.LR)(r),x=function(t){var n=t.data,r=t.offset,a=void 0===r?0:r,o=t.diagonalLength,u=t.straightLength,l=t.skipAngle,d=void 0===l?0:l,f=t.textOffset,c=t.linkColor,g=t.textColor,p=(0,nivo_core_es.tf)(),h=p.animate,A=p.config,x=(0,nivo_core_es.Fg)(),m=(0,nivo_colors_es.Bf)(c,x),y=(0,nivo_colors_es.Bf)(g,x),M=function(t,n){return(0,react.useMemo)((function(){return nivo_arcs_es_L(t,n)}),[t,n])}(n,d),k=function(t){var n=t.offset,e=t.diagonalLength,r=t.straightLength,i=t.textOffset,a=t.getLinkColor,o=t.getTextColor;return(0,react.useMemo)((function(){return{enter:function(t){return{startAngle:t.arc.startAngle,endAngle:t.arc.endAngle,innerRadius:t.arc.innerRadius,outerRadius:t.arc.outerRadius,offset:n,diagonalLength:0,straightLength:0,textOffset:i,linkColor:a(t),textColor:o(t),opacity:0}},update:function(t){return{startAngle:t.arc.startAngle,endAngle:t.arc.endAngle,innerRadius:t.arc.innerRadius,outerRadius:t.arc.outerRadius,offset:n,diagonalLength:e,straightLength:r,textOffset:i,linkColor:a(t),textColor:o(t),opacity:1}},leave:function(t){return{startAngle:t.arc.startAngle,endAngle:t.arc.endAngle,innerRadius:t.arc.innerRadius,outerRadius:t.arc.outerRadius,offset:n,diagonalLength:0,straightLength:0,textOffset:i,linkColor:a(t),textColor:o(t),opacity:0}}}}),[e,r,i,a,o])}({offset:a,diagonalLength:o,straightLength:u,textOffset:f,getLinkColor:m,getTextColor:y});return{transition:(0,react_spring_web_esm.useTransition)(M,{keys:function(t){return t.id},initial:k.update,from:k.enter,enter:k.update,update:k.update,leave:k.leave,config:A,immediate:!h}),interpolateLink:J,interpolateTextAnchor:K,interpolateTextPosition:N}}({data:e,skipAngle:i,offset:a,diagonalLength:o,straightLength:u,textOffset:s,linkColor:c,textColor:f}),R=x.transition,m=x.interpolateLink,y=x.interpolateTextAnchor,k=x.interpolateTextPosition,C=h;return(0,jsx_runtime.jsx)("g",{transform:"translate("+n[0]+","+n[1]+")",children:R((function(t,n){return(0,react.createElement)(C,{key:n.id,datum:n,label:v(n),style:nivo_arcs_es_M({},t,{thickness:l,path:m(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius,t.offset,t.diagonalLength,t.straightLength),textAnchor:y(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius),textPosition:k(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius,t.offset,t.diagonalLength,t.straightLength,t.textOffset)})})}))})},tt=function(n){var e=n.datum,r=n.style,i=n.onClick,a=n.onMouseEnter,o=n.onMouseMove,u=n.onMouseLeave,l=(0,react.useCallback)((function(t){return null==i?void 0:i(e,t)}),[i,e]),s=(0,react.useCallback)((function(t){return null==a?void 0:a(e,t)}),[a,e]),d=(0,react.useCallback)((function(t){return null==o?void 0:o(e,t)}),[o,e]),f=(0,react.useCallback)((function(t){return null==u?void 0:u(e,t)}),[u,e]);return(0,jsx_runtime.jsx)(react_spring_web_esm.animated.path,{d:r.path,opacity:r.opacity,fill:e.fill||r.color,stroke:r.borderColor,strokeWidth:r.borderWidth,onClick:i?l:void 0,onMouseEnter:a?s:void 0,onMouseMove:o?d:void 0,onMouseLeave:u?f:void 0})},nt=function(t,e,r,i,a){return(0,react_spring_web_esm.to)([t,e,r,i],(function(t,n,e,r){return a({startAngle:t,endAngle:n,innerRadius:Math.max(0,e),outerRadius:Math.max(0,r)})}))},rt=function(t){var n=t.center,e=t.data,r=t.arcGenerator,a=t.borderWidth,o=t.borderColor,u=t.onClick,l=t.onMouseEnter,s=t.onMouseMove,d=t.onMouseLeave,f=t.transitionMode,c=t.component,g=void 0===c?tt:c,h=(0,nivo_core_es.Fg)(),v=(0,nivo_colors_es.Bf)(o,h),x=function(t,n,r){void 0===n&&(n="innerRadius");var i=(0,nivo_core_es.tf)(),a=i.animate,o=i.config,u=nivo_arcs_es_I(n,r);return{transition:(0,react_spring_web_esm.useTransition)(t,{keys:function(t){return t.id},initial:u.update,from:u.enter,enter:u.update,update:u.update,leave:u.leave,config:o,immediate:!a}),interpolate:nt}}(e,f,{enter:function(t){return{opacity:0,color:t.color,borderColor:v(t)}},update:function(t){return{opacity:1,color:t.color,borderColor:v(t)}},leave:function(t){return{opacity:0,color:t.color,borderColor:v(t)}}}),m=x.transition,y=x.interpolate,k=g;return(0,jsx_runtime.jsx)("g",{transform:"translate("+n[0]+","+n[1]+")",children:m((function(t,n){return(0,react.createElement)(k,{key:n.id,datum:n,style:nivo_arcs_es_M({},t,{borderWidth:a,path:y(t.startAngle,t.endAngle,t.innerRadius,t.outerRadius,r)}),onClick:u,onMouseEnter:l,onMouseMove:s,onMouseLeave:d})}))})},lt=function(t){var n=void 0===t?{}:t,e=n.cornerRadius,r=void 0===e?0:e,i=n.padAngle,a=void 0===i?0:i;return(0,react.useMemo)((function(){return arc().innerRadius((function(t){return t.innerRadius})).outerRadius((function(t){return t.outerRadius})).cornerRadius(r).padAngle(a)}),[r,a])},nivo_legends_es=__webpack_require__("../../node_modules/.pnpm/@nivo+legends@0.80.0_@nivo+core@0.80.0_prop-types@15.8.1_react@18.2.0/node_modules/@nivo/legends/dist/nivo-legends.es.js");function descending(a,b){return b<a?-1:b>a?1:b>=a?0:NaN}function identity(d){return d}var nivo_tooltip_es=__webpack_require__("../../node_modules/.pnpm/@nivo+tooltip@0.80.0_@nivo+core@0.80.0_react-dom@18.2.0_react@18.2.0/node_modules/@nivo/tooltip/dist/nivo-tooltip.es.js");function nivo_pie_es_D(){return nivo_pie_es_D=Object.assign||function(e){for(var i=1;i<arguments.length;i++){var t=arguments[i];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},nivo_pie_es_D.apply(this,arguments)}function nivo_pie_es_F(e,i){if(null==e)return{};var t,n,r={},a=Object.keys(e);for(n=0;n<a.length;n++)t=a[n],i.indexOf(t)>=0||(r[t]=e[t]);return r}var nivo_pie_es_H,nivo_pie_es_X=function(e){var i=e.width,t=e.height,n=e.legends,r=e.data,a=e.toggleSerie;return(0,jsx_runtime.jsx)(jsx_runtime.Fragment,{children:n.map((function(e,n){var o;return(0,jsx_runtime.jsx)(nivo_legends_es.$6,nivo_pie_es_D({},e,{containerWidth:i,containerHeight:t,data:null!=(o=e.data)?o:r,toggleSerie:e.toggleSerie?a:void 0}),n)}))})},nivo_pie_es_Y={id:"id",value:"value",sortByValue:!1,innerRadius:0,padAngle:0,cornerRadius:0,layers:["arcLinkLabels","arcs","arcLabels","legends"],startAngle:0,endAngle:360,fit:!0,activeInnerRadiusOffset:0,activeOuterRadiusOffset:0,borderWidth:0,borderColor:{from:"color",modifiers:[["darker",1]]},enableArcLabels:!0,arcLabel:"formattedValue",arcLabelsSkipAngle:0,arcLabelsRadiusOffset:.5,arcLabelsTextColor:{theme:"labels.text.fill"},enableArcLinkLabels:!0,arcLinkLabel:"id",arcLinkLabelsSkipAngle:0,arcLinkLabelsOffset:0,arcLinkLabelsDiagonalLength:16,arcLinkLabelsStraightLength:24,arcLinkLabelsThickness:1,arcLinkLabelsTextOffset:6,arcLinkLabelsTextColor:{theme:"labels.text.fill"},arcLinkLabelsColor:{theme:"axis.ticks.line.stroke"},colors:{scheme:"nivo"},defs:[],fill:[],isInteractive:!0,animate:!0,motionConfig:"gentle",transitionMode:"innerRadius",tooltip:function(e){var i=e.datum;return(0,jsx_runtime.jsx)(nivo_tooltip_es._5,{id:i.id,value:i.formattedValue,enableChip:!0,color:i.color})},legends:[],role:"img",pixelRatio:"undefined"!=typeof window&&null!=(nivo_pie_es_H=window.devicePixelRatio)?nivo_pie_es_H:1},nivo_pie_es_j=["points"],nivo_pie_es_P=function(i){var t=i.data,n=i.id,r=void 0===n?nivo_pie_es_Y.id:n,a=i.value,o=void 0===a?nivo_pie_es_Y.value:a,s=i.valueFormat,c=i.colors,u=void 0===c?nivo_pie_es_Y.colors:c,v=(0,nivo_core_es.LR)(r),f=(0,nivo_core_es.LR)(o),g=(0,nivo_core_es.O_)(s),L=(0,nivo_colors_es.U)(u,"id");return(0,react.useMemo)((function(){return t.map((function(e){var i,t=v(e),n=f(e),r={id:t,label:null!=(i=e.label)?i:t,hidden:!1,value:n,formattedValue:g(n),data:e};return nivo_pie_es_D({},r,{color:L(r)})}))}),[t,v,f,g,L])},nivo_pie_es_q=function(i){var t=i.data,n=i.startAngle,r=i.endAngle,a=i.innerRadius,o=i.outerRadius,d=i.padAngle,l=i.sortByValue,u=i.activeId,v=i.activeInnerRadiusOffset,f=i.activeOuterRadiusOffset,g=i.hiddenIds,L=(0,react.useMemo)((function(){var e=function pie(){var value=identity,sortValues=descending,sort=null,startAngle=(0,constant.Z)(0),endAngle=(0,constant.Z)(math.BZ),padAngle=(0,constant.Z)(0);function pie(data){var i,j,k,a1,v,n=data.length,sum=0,index=new Array(n),arcs=new Array(n),a0=+startAngle.apply(this,arguments),da=Math.min(math.BZ,Math.max(-math.BZ,endAngle.apply(this,arguments)-a0)),p=Math.min(Math.abs(da)/n,padAngle.apply(this,arguments)),pa=p*(da<0?-1:1);for(i=0;i<n;++i)(v=arcs[index[i]=i]=+value(data[i],i,data))>0&&(sum+=v);for(null!=sortValues?index.sort((function(i,j){return sortValues(arcs[i],arcs[j])})):null!=sort&&index.sort((function(i,j){return sort(data[i],data[j])})),i=0,k=sum?(da-n*pa)/sum:0;i<n;++i,a0=a1)j=index[i],a1=a0+((v=arcs[j])>0?v*k:0)+pa,arcs[j]={data:data[j],index:i,value:v,startAngle:a0,endAngle:a1,padAngle:p};return arcs}return pie.value=function(_){return arguments.length?(value="function"==typeof _?_:(0,constant.Z)(+_),pie):value},pie.sortValues=function(_){return arguments.length?(sortValues=_,sort=null,pie):sortValues},pie.sort=function(_){return arguments.length?(sort=_,sortValues=null,pie):sort},pie.startAngle=function(_){return arguments.length?(startAngle="function"==typeof _?_:(0,constant.Z)(+_),pie):startAngle},pie.endAngle=function(_){return arguments.length?(endAngle="function"==typeof _?_:(0,constant.Z)(+_),pie):endAngle},pie.padAngle=function(_){return arguments.length?(padAngle="function"==typeof _?_:(0,constant.Z)(+_),pie):padAngle},pie}().value((function(e){return e.value})).startAngle((0,nivo_core_es.Ht)(n)).endAngle((0,nivo_core_es.Ht)(r)).padAngle((0,nivo_core_es.Ht)(d));return l||e.sortValues(null),e}),[n,r,d,l]);return(0,react.useMemo)((function(){var e=t.filter((function(e){return!g.includes(e.id)}));return{dataWithArc:L(e).map((function(e){var i=Math.abs(e.endAngle-e.startAngle);return nivo_pie_es_D({},e.data,{arc:{index:e.index,startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:u===e.data.id?a-v:a,outerRadius:u===e.data.id?o+f:o,thickness:o-a,padAngle:e.padAngle,angle:i,angleDeg:(0,nivo_core_es.vi)(i)}})})),legendData:t.map((function(e){return nivo_pie_es_D({},e,{hidden:g.includes(e.id)})}))}}),[L,t,g,u,a,v,o,f])},nivo_pie_es_J=function(n){var r=n.data,a=n.width,o=n.height,d=n.innerRadius,l=void 0===d?nivo_pie_es_Y.innerRadius:d,c=n.startAngle,u=void 0===c?nivo_pie_es_Y.startAngle:c,v=n.endAngle,f=void 0===v?nivo_pie_es_Y.endAngle:v,g=n.padAngle,L=void 0===g?nivo_pie_es_Y.padAngle:g,h=n.sortByValue,b=void 0===h?nivo_pie_es_Y.sortByValue:h,A=n.cornerRadius,R=void 0===A?nivo_pie_es_Y.cornerRadius:A,m=n.fit,O=void 0===m?nivo_pie_es_Y.fit:m,C=n.activeInnerRadiusOffset,I=void 0===C?nivo_pie_es_Y.activeInnerRadiusOffset:C,x=n.activeOuterRadiusOffset,M=void 0===x?nivo_pie_es_Y.activeOuterRadiusOffset:x,y=(0,react.useState)(null),w=y[0],W=y[1],S=(0,react.useState)([]),T=S[0],V=S[1],B=(0,react.useMemo)((function(){var e,i=Math.min(a,o)/2,t=i*Math.min(l,1),n=a/2,r=o/2;if(O){var d=function(t,n,e,r,i,a){void 0===a&&(a=!0);var l=[],s=(0,nivo_core_es.re)((0,nivo_core_es.Ht)(r),e);l.push([s.x,s.y]);var d=(0,nivo_core_es.re)((0,nivo_core_es.Ht)(i),e);l.push([d.x,d.y]);for(var f=Math.round(Math.min(r,i));f<=Math.round(Math.max(r,i));f++)if(f%90==0){var c=(0,nivo_core_es.re)((0,nivo_core_es.Ht)(f),e);l.push([c.x,c.y])}l=l.map((function(e){var r=e[0],i=e[1];return[t+r,n+i]})),a&&l.push([t,n]);var g=l.map((function(t){return t[0]})),p=l.map((function(t){return t[1]})),h=Math.min.apply(Math,g),v=Math.max.apply(Math,g),A=Math.min.apply(Math,p);return{points:l,x:h,y:A,width:v-h,height:Math.max.apply(Math,p)-A}}(n,r,i,u-90,f-90),s=d.points,c=nivo_pie_es_F(d,nivo_pie_es_j),v=Math.min(a/c.width,o/c.height),g={width:c.width*v,height:c.height*v};g.x=(a-g.width)/2,g.y=(o-g.height)/2,n=(n-c.x)/c.width*c.width*v+g.x,r=(r-c.y)/c.height*c.height*v+g.y,e={box:c,ratio:v,points:s},i*=v,t*=v}return{centerX:n,centerY:r,radius:i,innerRadius:t,debug:e}}),[a,o,l,u,f,O,R]),G=nivo_pie_es_q({data:r,startAngle:u,endAngle:f,innerRadius:B.innerRadius,outerRadius:B.radius,padAngle:L,sortByValue:b,activeId:w,activeInnerRadiusOffset:I,activeOuterRadiusOffset:M,hiddenIds:T}),E=(0,react.useCallback)((function(e){V((function(i){return i.indexOf(e)>-1?i.filter((function(i){return i!==e})):[].concat(i,[e])}))}),[]);return nivo_pie_es_D({arcGenerator:lt({cornerRadius:R,padAngle:(0,nivo_core_es.Ht)(L)}),setActiveId:W,toggleSerie:E},G,B)},nivo_pie_es_N=function(i){var t=i.center,r=i.data,a=i.arcGenerator,o=i.borderWidth,d=i.borderColor,l=i.isInteractive,s=i.onClick,c=i.onMouseEnter,u=i.onMouseMove,v=i.onMouseLeave,f=i.setActiveId,g=i.tooltip,L=i.transitionMode,h=(0,nivo_tooltip_es.lL)(),b=h.showTooltipFromEvent,p=h.hideTooltip,k=(0,react.useMemo)((function(){if(l)return function(e,i){null==s||s(e,i)}}),[l,s]),R=(0,react.useMemo)((function(){if(l)return function(e,i){b((0,react.createElement)(g,{datum:e}),i),f(e.id),null==c||c(e,i)}}),[l,b,f,c,g]),m=(0,react.useMemo)((function(){if(l)return function(e,i){b((0,react.createElement)(g,{datum:e}),i),null==u||u(e,i)}}),[l,b,u,g]),O=(0,react.useMemo)((function(){if(l)return function(e,i){p(),f(null),null==v||v(e,i)}}),[l,p,f,v]);return(0,jsx_runtime.jsx)(rt,{center:t,data:r,arcGenerator:a,borderWidth:o,borderColor:d,transitionMode:L,onClick:k,onMouseEnter:R,onMouseMove:m,onMouseLeave:O})},nivo_pie_es_Q=["isInteractive","animate","motionConfig","theme","renderWrapper"],U=function(e){var i=e.data,t=e.id,a=void 0===t?nivo_pie_es_Y.id:t,o=e.value,d=void 0===o?nivo_pie_es_Y.value:o,l=e.valueFormat,s=e.sortByValue,c=void 0===s?nivo_pie_es_Y.sortByValue:s,u=e.layers,L=void 0===u?nivo_pie_es_Y.layers:u,h=e.startAngle,b=void 0===h?nivo_pie_es_Y.startAngle:h,p=e.endAngle,k=void 0===p?nivo_pie_es_Y.endAngle:p,A=e.padAngle,O=void 0===A?nivo_pie_es_Y.padAngle:A,C=e.fit,I=void 0===C?nivo_pie_es_Y.fit:C,x=e.innerRadius,M=void 0===x?nivo_pie_es_Y.innerRadius:x,y=e.cornerRadius,w=void 0===y?nivo_pie_es_Y.cornerRadius:y,S=e.activeInnerRadiusOffset,T=void 0===S?nivo_pie_es_Y.activeInnerRadiusOffset:S,V=e.activeOuterRadiusOffset,B=void 0===V?nivo_pie_es_Y.activeOuterRadiusOffset:V,G=e.width,E=e.height,D=e.margin,F=e.colors,H=void 0===F?nivo_pie_es_Y.colors:F,j=e.borderWidth,q=void 0===j?nivo_pie_es_Y.borderWidth:j,z=e.borderColor,Q=void 0===z?nivo_pie_es_Y.borderColor:z,U=e.enableArcLabels,Z=void 0===U?nivo_pie_es_Y.enableArcLabels:U,$=e.arcLabel,_=void 0===$?nivo_pie_es_Y.arcLabel:$,ee=e.arcLabelsSkipAngle,ie=void 0===ee?nivo_pie_es_Y.arcLabelsSkipAngle:ee,te=e.arcLabelsTextColor,ne=void 0===te?nivo_pie_es_Y.arcLabelsTextColor:te,re=e.arcLabelsRadiusOffset,ae=void 0===re?nivo_pie_es_Y.arcLabelsRadiusOffset:re,oe=e.arcLabelsComponent,de=e.enableArcLinkLabels,le=void 0===de?nivo_pie_es_Y.enableArcLinkLabels:de,se=e.arcLinkLabel,ce=void 0===se?nivo_pie_es_Y.arcLinkLabel:se,ue=e.arcLinkLabelsSkipAngle,ve=void 0===ue?nivo_pie_es_Y.arcLinkLabelsSkipAngle:ue,fe=e.arcLinkLabelsOffset,ge=void 0===fe?nivo_pie_es_Y.arcLinkLabelsOffset:fe,Le=e.arcLinkLabelsDiagonalLength,he=void 0===Le?nivo_pie_es_Y.arcLinkLabelsDiagonalLength:Le,be=e.arcLinkLabelsStraightLength,pe=void 0===be?nivo_pie_es_Y.arcLinkLabelsStraightLength:be,ke=e.arcLinkLabelsThickness,Ae=void 0===ke?nivo_pie_es_Y.arcLinkLabelsThickness:ke,Re=e.arcLinkLabelsTextOffset,me=void 0===Re?nivo_pie_es_Y.arcLinkLabelsTextOffset:Re,Oe=e.arcLinkLabelsTextColor,Ce=void 0===Oe?nivo_pie_es_Y.arcLinkLabelsTextColor:Oe,Ie=e.arcLinkLabelsColor,xe=void 0===Ie?nivo_pie_es_Y.arcLinkLabelsColor:Ie,Me=e.arcLinkLabelComponent,ye=e.defs,we=void 0===ye?nivo_pie_es_Y.defs:ye,We=e.fill,Se=void 0===We?nivo_pie_es_Y.fill:We,Te=e.isInteractive,Ve=void 0===Te?nivo_pie_es_Y.isInteractive:Te,Be=e.onClick,Ge=e.onMouseEnter,Ee=e.onMouseMove,De=e.onMouseLeave,Fe=e.tooltip,He=void 0===Fe?nivo_pie_es_Y.tooltip:Fe,Xe=e.transitionMode,Ye=void 0===Xe?nivo_pie_es_Y.transitionMode:Xe,je=e.legends,Pe=void 0===je?nivo_pie_es_Y.legends:je,qe=e.role,ze=void 0===qe?nivo_pie_es_Y.role:qe,Je=(0,nivo_core_es.Bs)(G,E,D),Ke=Je.outerWidth,Ne=Je.outerHeight,Qe=Je.margin,Ue=Je.innerWidth,Ze=Je.innerHeight,$e=nivo_pie_es_P({data:i,id:a,value:d,valueFormat:l,colors:H}),_e=nivo_pie_es_J({data:$e,width:Ue,height:Ze,fit:I,innerRadius:M,startAngle:b,endAngle:k,padAngle:O,sortByValue:c,cornerRadius:w,activeInnerRadiusOffset:T,activeOuterRadiusOffset:B}),ei=_e.dataWithArc,ii=_e.legendData,ti=_e.arcGenerator,ni=_e.centerX,ri=_e.centerY,ai=_e.radius,oi=_e.innerRadius,di=_e.setActiveId,li=_e.toggleSerie,si=(0,nivo_core_es.yU)(we,ei,Se),ci={arcLinkLabels:null,arcs:null,arcLabels:null,legends:null};le&&L.includes("arcLinkLabels")&&(ci.arcLinkLabels=(0,jsx_runtime.jsx)(nivo_arcs_es_U,{center:[ni,ri],data:ei,label:ce,skipAngle:ve,offset:ge,diagonalLength:he,straightLength:pe,strokeWidth:Ae,textOffset:me,textColor:Ce,linkColor:xe,component:Me},"arcLinkLabels")),L.includes("arcs")&&(ci.arcs=(0,jsx_runtime.jsx)(nivo_pie_es_N,{center:[ni,ri],data:ei,arcGenerator:ti,borderWidth:q,borderColor:Q,isInteractive:Ve,onClick:Be,onMouseEnter:Ge,onMouseMove:Ee,onMouseLeave:De,setActiveId:di,tooltip:He,transitionMode:Ye},"arcs")),Z&&L.includes("arcLabels")&&(ci.arcLabels=(0,jsx_runtime.jsx)(nivo_arcs_es_B,{center:[ni,ri],data:ei,label:_,radiusOffset:ae,skipAngle:ie,textColor:ne,transitionMode:Ye,component:oe},"arcLabels")),Pe.length>0&&L.includes("legends")&&(ci.legends=(0,jsx_runtime.jsx)(nivo_pie_es_X,{width:Ue,height:Ze,data:ii,legends:Pe,toggleSerie:li},"legends"));var ui=function(i){var t=i.dataWithArc,n=i.arcGenerator,r=i.centerX,a=i.centerY,o=i.radius,d=i.innerRadius;return(0,react.useMemo)((function(){return{dataWithArc:t,arcGenerator:n,centerX:r,centerY:a,radius:o,innerRadius:d}}),[t,n,r,a,o,d])}({dataWithArc:ei,arcGenerator:ti,centerX:ni,centerY:ri,radius:ai,innerRadius:oi});return(0,jsx_runtime.jsx)(nivo_core_es.tM,{width:Ke,height:Ne,margin:Qe,defs:si,role:ze,children:L.map((function(e,i){return void 0!==ci[e]?ci[e]:"function"==typeof e?(0,jsx_runtime.jsx)(react.Fragment,{children:(0,react.createElement)(e,ui)},i):null}))})},nivo_pie_es_Z=function(e){var i=e.isInteractive,t=void 0===i?nivo_pie_es_Y.isInteractive:i,n=e.animate,r=void 0===n?nivo_pie_es_Y.animate:n,a=e.motionConfig,o=void 0===a?nivo_pie_es_Y.motionConfig:a,d=e.theme,l=e.renderWrapper,s=nivo_pie_es_F(e,nivo_pie_es_Q);return(0,jsx_runtime.jsx)(nivo_core_es.W2,{animate:r,isInteractive:t,motionConfig:o,renderWrapper:l,theme:d,children:(0,jsx_runtime.jsx)(U,nivo_pie_es_D({isInteractive:t},s))})},nivo_pie_es_$=function(e){return(0,jsx_runtime.jsx)(nivo_core_es.d,{children:function(i){var t=i.width,n=i.height;return(0,jsx_runtime.jsx)(nivo_pie_es_Z,nivo_pie_es_D({width:t,height:n},e))}})}}}]);
|