@cuemath/leap 3.5.30-link.4 → 3.5.31-as1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/illustrations/illustrations.js +43 -0
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/images/images.js +0 -12
- package/dist/assets/images/images.js.map +1 -1
- package/dist/assets/line-icons/icons/carat-right.js +26 -0
- package/dist/assets/line-icons/icons/carat-right.js.map +1 -0
- package/dist/assets/line-icons/icons/dots-icon.js +21 -0
- package/dist/assets/line-icons/icons/dots-icon.js.map +1 -0
- package/dist/assets/line-icons/icons/pause-icon.js +24 -0
- package/dist/assets/line-icons/icons/pause-icon.js.map +1 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js +82 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.js.map +1 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.styled.js +77 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-circular-progress/chapter-circular-progress.styled.js.map +1 -0
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js +18 -91
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item-styled.js.map +1 -1
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js +42 -58
- package/dist/features/chapters/chapters-list/chapter-item/chapter-item.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js +16 -32
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js.map +1 -1
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js +85 -87
- package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js.map +1 -1
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +35 -35
- package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +1 -1
- package/dist/features/homework/card-title.js +8 -8
- package/dist/features/homework/card-title.js.map +1 -1
- package/dist/features/milestone/constants.js +15 -28
- package/dist/features/milestone/constants.js.map +1 -1
- package/dist/features/milestone/create/milestone-create-helpers.js +42 -43
- package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
- package/dist/features/parent-dashboard/comps/compact-header/compact-header.js +5 -5
- package/dist/features/parent-dashboard/comps/compact-header/compact-header.js.map +1 -1
- package/dist/features/timeline/comps/constants.js +18 -18
- package/dist/features/timeline/comps/constants.js.map +1 -1
- package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items.js +14 -14
- package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items.js.map +1 -1
- package/dist/features/timeline/daily-timeline-styled.js +13 -9
- package/dist/features/timeline/daily-timeline-styled.js.map +1 -1
- package/dist/features/timeline/daily-timeline-types.js +4 -4
- package/dist/features/timeline/daily-timeline-types.js.map +1 -1
- package/dist/features/timeline/daily-timeline-view.js +9 -10
- package/dist/features/timeline/daily-timeline-view.js.map +1 -1
- package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js +13 -0
- package/dist/features/timeline/monthly-report/api/use-monthly-report-get.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.js +59 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js +15 -0
- package/dist/features/timeline/monthly-report/comps/achievements/achievements.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/achievements/constant.js +16 -0
- package/dist/features/timeline/monthly-report/comps/achievements/constant.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js +128 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js +53 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card/activities-card.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js +121 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js +58 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities-card-puzzles/activities-card-puzzles.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities.js +27 -0
- package/dist/features/timeline/monthly-report/comps/activities/activities.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/constants.js +96 -0
- package/dist/features/timeline/monthly-report/comps/activities/constants.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/activities/utils.js +15 -0
- package/dist/features/timeline/monthly-report/comps/activities/utils.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js +29 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-constants.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js +107 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance-utils.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.js +44 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js +39 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendance.styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js +52 -0
- package/dist/features/timeline/monthly-report/comps/attendance/attendence-view.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js +9 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback-styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback.js +94 -0
- package/dist/features/timeline/monthly-report/comps/feedback/feedback.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js +48 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goal-chapter-card.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js +28 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card-styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js +113 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-card/goals-card.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js +30 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals-constants.js.map +1 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals.js +22 -0
- package/dist/features/timeline/monthly-report/comps/goals/goals.js.map +1 -0
- package/dist/features/timeline/monthly-report/monthly-report-styled.js +14 -0
- package/dist/features/timeline/monthly-report/monthly-report-styled.js.map +1 -0
- package/dist/features/timeline/monthly-report/monthly-report-types.js +5 -0
- package/dist/features/timeline/monthly-report/monthly-report-types.js.map +1 -0
- package/dist/features/timeline/monthly-report/monthly-report.js +69 -0
- package/dist/features/timeline/monthly-report/monthly-report.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js +10 -0
- package/dist/features/timeline/monthly-timeline/api/use-monthly-timeline-get.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js +87 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js +9 -0
- package/dist/features/timeline/monthly-timeline/comps/monthly-card/monthly-card.styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/constants.js +40 -0
- package/dist/features/timeline/monthly-timeline/constants.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js +13 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-styled.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js +6 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-types.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js +28 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline-view.js.map +1 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline.js +62 -0
- package/dist/features/timeline/monthly-timeline/monthly-timeline.js.map +1 -0
- package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js +9 -0
- package/dist/features/timeline/ptm-report/api/use-ptm-report-get.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need.js +35 -0
- package/dist/features/timeline/ptm-report/comps/key-need/key-need.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js +53 -0
- package/dist/features/timeline/ptm-report/comps/parent-support/parent-support.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js +19 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js +50 -0
- package/dist/features/timeline/ptm-report/comps/real-world-projects/real-world-projects.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card.js +22 -0
- package/dist/features/timeline/ptm-report/comps/report-card/report-card.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support.js +84 -0
- package/dist/features/timeline/ptm-report/comps/school-support/school-support.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js +11 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies-constant.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies.js +36 -0
- package/dist/features/timeline/ptm-report/comps/strategies/strategies.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js +55 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js +35 -0
- package/dist/features/timeline/ptm-report/comps/strategy-card/strategy-card.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js +21 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info.js +21 -0
- package/dist/features/timeline/ptm-report/comps/student-info/student-info.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js +9 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card.js +30 -0
- package/dist/features/timeline/ptm-report/comps/support-card/support-card.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js +9 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations-constant.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js +56 -0
- package/dist/features/timeline/ptm-report/comps/teacher-observations/teacher-observations.js.map +1 -0
- package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js +15 -0
- package/dist/features/timeline/ptm-report/comps/upcoming-chapters/upcoming-chapters.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-constants.js +16 -0
- package/dist/features/timeline/ptm-report/ptm-report-constants.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-helpers.js +8 -0
- package/dist/features/timeline/ptm-report/ptm-report-helpers.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-styled.js +11 -0
- package/dist/features/timeline/ptm-report/ptm-report-styled.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report-types.js +5 -0
- package/dist/features/timeline/ptm-report/ptm-report-types.js.map +1 -0
- package/dist/features/timeline/ptm-report/ptm-report.js +113 -0
- package/dist/features/timeline/ptm-report/ptm-report.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js +5 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs-types.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.js +42 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.js.map +1 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js +37 -0
- package/dist/features/timeline/timeline-tabs/timeline-tabs.styled.js.map +1 -0
- package/dist/features/trial-session/comps/school-goals/school-goals.js +71 -82
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/worksheet/worksheet.js +33 -42
- package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
- package/dist/features/trial-session/helper.js +66 -69
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-slide-config-update.js +17 -22
- package/dist/features/trial-session/hooks/use-slide-config-update.js.map +1 -1
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +128 -139
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/left-panel/index.js.map +1 -1
- package/dist/features/trial-session/trial-session-constants.js +9 -16
- package/dist/features/trial-session/trial-session-constants.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session.js +66 -68
- package/dist/features/trial-session/trial-session.js.map +1 -1
- package/dist/features/ui/animated-arc/animated-arc-styled.js +7 -7
- package/dist/features/ui/animated-arc/animated-arc-styled.js.map +1 -1
- package/dist/features/ui/animated-arc/animated-arc.js +37 -26
- package/dist/features/ui/animated-arc/animated-arc.js.map +1 -1
- package/dist/features/ui/linear-progress-bar/linear-progress-bar.js +39 -0
- package/dist/features/ui/linear-progress-bar/linear-progress-bar.js.map +1 -0
- package/dist/features/ui/linear-progress-bar/linear-progress-bar.styled.js +23 -0
- package/dist/features/ui/linear-progress-bar/linear-progress-bar.styled.js.map +1 -0
- package/dist/features/ui/swipeable-carousel/constants.js +16 -0
- package/dist/features/ui/swipeable-carousel/constants.js.map +1 -0
- package/dist/features/ui/swipeable-carousel/swipeable-carousel-styled.js +57 -0
- package/dist/features/ui/swipeable-carousel/swipeable-carousel-styled.js.map +1 -0
- package/dist/features/ui/swipeable-carousel/swipeable-carousel.js +150 -0
- package/dist/features/ui/swipeable-carousel/swipeable-carousel.js.map +1 -0
- package/dist/features/ui/swipeable-component/swipeable-component-styled.js.map +1 -0
- package/dist/features/ui/swipeable-component/swipeable-component.js +27 -0
- package/dist/features/ui/swipeable-component/swipeable-component.js.map +1 -0
- package/dist/features/ui/theme/text.js +14 -0
- package/dist/features/ui/theme/text.js.map +1 -1
- package/dist/index.d.ts +246 -41
- package/dist/index.js +588 -568
- package/dist/index.js.map +1 -1
- package/dist/static/2021.2a1a2ec9.svg +1 -0
- package/dist/static/2022.2091553a.svg +1 -0
- package/dist/static/2023.ed718b4e.svg +1 -0
- package/dist/static/2024.aa60edc5.svg +1 -0
- package/dist/static/2025.014a8ad3.svg +1 -0
- package/dist/static/2026.95d70f27.svg +1 -0
- package/dist/static/2027.fe83a41c.svg +1 -0
- package/dist/static/2028.b1c253ef.svg +1 -0
- package/dist/static/apr.cd56f13d.svg +1 -0
- package/dist/static/aug.3ceade02.svg +1 -0
- package/dist/static/coding-report-icon.91a1e900.svg +1 -0
- package/dist/static/dec.90729a5e.svg +1 -0
- package/dist/static/elp-icon.d45b457d.svg +1 -0
- package/dist/static/empty-reports.fe92faad.svg +1 -0
- package/dist/static/english-icon.50c2e005.svg +1 -0
- package/dist/static/feb.a9ecd320.svg +1 -0
- package/dist/static/focus-blue.664be268.svg +1 -0
- package/dist/static/full-report.00112c74.svg +1 -0
- package/dist/static/jan.f8fb9c39.svg +1 -0
- package/dist/static/jul.04a98cf0.svg +1 -0
- package/dist/static/jun.9b6ab6bf.svg +1 -0
- package/dist/static/key.fa0b4c98.svg +1 -0
- package/dist/static/live-session-blue.ec7fa85f.svg +1 -0
- package/dist/static/mar.f8b372ef.svg +1 -0
- package/dist/static/math-fit-grey.c32f37b3.svg +1 -0
- package/dist/static/may.23adae48.svg +1 -0
- package/dist/static/no-report.4158fad3.svg +1 -0
- package/dist/static/nov.c44e4739.svg +1 -0
- package/dist/static/oct.856b3b3f.svg +1 -0
- package/dist/static/opened-book-green.faacda34.svg +1 -0
- package/dist/static/percentage-pattern-yellow.6a25e820.svg +1 -0
- package/dist/static/pi-orange.132b108d.svg +1 -0
- package/dist/static/ptm-report-icon.5089218f.svg +1 -0
- package/dist/static/puzzle-purple.60ff4884.svg +1 -0
- package/dist/static/question-mark-yellow.1925aa04.svg +1 -0
- package/dist/static/renewal-blue.1ab3b2d4.svg +1 -0
- package/dist/static/sat-report-icon.4331be86.svg +1 -0
- package/dist/static/science-report-icon.a0014c40.svg +1 -0
- package/dist/static/sep.2d547b31.svg +1 -0
- package/dist/static/thumbs-up-green.6a03b9d2.svg +1 -0
- package/dist/static/thumps-down.a1192a62.svg +1 -0
- package/dist/static/thumps-up.caa35a98.svg +1 -0
- package/dist/static/time-purple.ab1a458d.svg +1 -0
- package/package.json +3 -2
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js +0 -12
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar-styled.js.map +0 -1
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js +0 -34
- package/dist/features/auth/comps/linear-progress-bar/linear-progress-bar.js.map +0 -1
- package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component-styled.js.map +0 -1
- package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js +0 -26
- package/dist/features/circle-games/game-launcher/comps/swipable-component/swipeable-component.js.map +0 -1
- package/dist/static/apr.09a50ff7.png +0 -0
- package/dist/static/aug.7179d37e.png +0 -0
- package/dist/static/dec.09f7e315.png +0 -0
- package/dist/static/feb.9e72504d.png +0 -0
- package/dist/static/jan.da91944a.png +0 -0
- package/dist/static/jul.5a1c4932.png +0 -0
- package/dist/static/jun.62639c2f.png +0 -0
- package/dist/static/mar.f51bcfa6.png +0 -0
- package/dist/static/may.7c542020.png +0 -0
- package/dist/static/nov.058343e7.png +0 -0
- package/dist/static/oct.573ee19d.png +0 -0
- package/dist/static/sep.3ccb6468.png +0 -0
- /package/dist/features/{circle-games/game-launcher/comps/swipable-component → ui/swipeable-component}/swipeable-component-styled.js +0 -0
|
@@ -1,95 +1,93 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { getTimezone as
|
|
4
|
-
import
|
|
5
|
-
import { useGetMileStoneConfig as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { useGetTrialHome as
|
|
9
|
-
import { filterAndUpdateSlideNavigation as
|
|
10
|
-
import
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import { memo as h, useState as I, useCallback as n, useEffect as p } from "react";
|
|
3
|
+
import { getTimezone as L } from "../../helpers/date-time.js";
|
|
4
|
+
import z from "../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker.js";
|
|
5
|
+
import { useGetMileStoneConfig as F } from "../milestone/create/api/milestone-config.js";
|
|
6
|
+
import y from "../ui/error/error.js";
|
|
7
|
+
import w from "../ui/loader/app-loader/app-loader.js";
|
|
8
|
+
import { useGetTrialHome as k } from "./api/trial-home.js";
|
|
9
|
+
import { filterAndUpdateSlideNavigation as x } from "./helper.js";
|
|
10
|
+
import G from "./trial-session-view.js";
|
|
11
|
+
const V = h(function(f) {
|
|
12
|
+
const { userType: e, teacherId: d, studentId: g, teacherClassroomId: N, height: S = "100vh" } = f, [m, A] = I(null), [D, _] = I(), {
|
|
13
|
+
data: T,
|
|
14
|
+
get: E,
|
|
15
|
+
isProcessing: v,
|
|
16
|
+
isProcessingFailed: H
|
|
17
|
+
} = k(), {
|
|
18
|
+
get: u,
|
|
19
|
+
data: a,
|
|
16
20
|
isProcessing: P,
|
|
17
|
-
isProcessingFailed:
|
|
18
|
-
} =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
isProcessingFailed: U
|
|
23
|
-
} = y(), t = n(() => {
|
|
24
|
-
p("trial-v3", {
|
|
25
|
-
student_id: S,
|
|
26
|
-
teacher_id: g,
|
|
21
|
+
isProcessingFailed: R
|
|
22
|
+
} = F(), t = n(() => {
|
|
23
|
+
E("trial-v3", {
|
|
24
|
+
student_id: g,
|
|
25
|
+
teacher_id: d,
|
|
27
26
|
viewer: e.toLocaleLowerCase()
|
|
28
27
|
});
|
|
29
|
-
}, [
|
|
30
|
-
t(),
|
|
28
|
+
}, [E, g, d, e]), l = n(() => {
|
|
29
|
+
t(), u("", {
|
|
31
30
|
demo_type: "TRIAL_V3"
|
|
32
31
|
});
|
|
33
|
-
}, [t,
|
|
34
|
-
(
|
|
35
|
-
e ===
|
|
32
|
+
}, [t, u]), C = n(
|
|
33
|
+
(s) => {
|
|
34
|
+
e === "STUDENT" && s.forEach((i) => {
|
|
36
35
|
i.eventName === "TRIAL_INFORMATION_UPDATED" && t();
|
|
37
|
-
}), e ===
|
|
36
|
+
}), e === "TEACHER" && s.forEach((i) => {
|
|
38
37
|
if (i.eventName === "TRIAL_SESSION_STUDENT_TIMEZONE") {
|
|
39
38
|
const {
|
|
40
|
-
eventPayload: { timezone:
|
|
39
|
+
eventPayload: { timezone: O }
|
|
41
40
|
} = i;
|
|
42
|
-
|
|
41
|
+
_(O);
|
|
43
42
|
}
|
|
44
43
|
});
|
|
45
44
|
},
|
|
46
45
|
[t, e]
|
|
47
|
-
), { publish: o } =
|
|
48
|
-
teacherClassroomId:
|
|
49
|
-
onMessageReceive:
|
|
50
|
-
}),
|
|
51
|
-
t(), e ===
|
|
46
|
+
), { publish: o } = z({
|
|
47
|
+
teacherClassroomId: N,
|
|
48
|
+
onMessageReceive: C
|
|
49
|
+
}), M = n(() => {
|
|
50
|
+
t(), e === "TEACHER" && (o == null || o({
|
|
52
51
|
eventName: "TRIAL_INFORMATION_UPDATED"
|
|
53
52
|
}));
|
|
54
|
-
}, [t, o, e]),
|
|
55
|
-
e ===
|
|
53
|
+
}, [t, o, e]), U = n(() => {
|
|
54
|
+
e === "STUDENT" && (o == null || o({
|
|
56
55
|
eventName: "TRIAL_SESSION_STUDENT_TIMEZONE",
|
|
57
|
-
eventPayload: { timezone:
|
|
56
|
+
eventPayload: { timezone: L() }
|
|
58
57
|
}));
|
|
59
58
|
}, [o, e]);
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}, [
|
|
63
|
-
const
|
|
64
|
-
(
|
|
65
|
-
if (
|
|
66
|
-
const
|
|
67
|
-
milestoneConfigData:
|
|
68
|
-
trialHomeData:
|
|
69
|
-
grade:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
D(c);
|
|
59
|
+
p(() => {
|
|
60
|
+
l();
|
|
61
|
+
}, [l]);
|
|
62
|
+
const r = n(
|
|
63
|
+
(s) => {
|
|
64
|
+
if (T && a) {
|
|
65
|
+
const i = x({
|
|
66
|
+
milestoneConfigData: a,
|
|
67
|
+
trialHomeData: T,
|
|
68
|
+
grade: s
|
|
69
|
+
});
|
|
70
|
+
A(i);
|
|
73
71
|
}
|
|
74
72
|
},
|
|
75
|
-
[
|
|
73
|
+
[a, T]
|
|
76
74
|
);
|
|
77
|
-
return
|
|
78
|
-
|
|
79
|
-
}, [
|
|
80
|
-
|
|
75
|
+
return p(() => {
|
|
76
|
+
r == null || r();
|
|
77
|
+
}, [r]), v && !m || P ? /* @__PURE__ */ c(w, { height: S }) : H || R ? /* @__PURE__ */ c(y, { height: S, onTryAgain: l }) : m && a ? /* @__PURE__ */ c(
|
|
78
|
+
G,
|
|
81
79
|
{
|
|
82
|
-
...
|
|
83
|
-
onTrialInformationUpdate:
|
|
84
|
-
onStudentTimezoneUpdate:
|
|
85
|
-
trialHomeData:
|
|
86
|
-
milestoneConfig:
|
|
87
|
-
onRemoveOptionalSlides:
|
|
88
|
-
studentTimezone:
|
|
80
|
+
...f,
|
|
81
|
+
onTrialInformationUpdate: M,
|
|
82
|
+
onStudentTimezoneUpdate: U,
|
|
83
|
+
trialHomeData: m,
|
|
84
|
+
milestoneConfig: a,
|
|
85
|
+
onRemoveOptionalSlides: r,
|
|
86
|
+
studentTimezone: D
|
|
89
87
|
}
|
|
90
88
|
) : null;
|
|
91
|
-
}),
|
|
89
|
+
}), b = V;
|
|
92
90
|
export {
|
|
93
|
-
|
|
91
|
+
b as default
|
|
94
92
|
};
|
|
95
93
|
//# sourceMappingURL=trial-session.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trial-session.js","sources":["../../../src/features/trial-session/trial-session.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useState, type FC } from 'react';\n\nimport { getTimezone } from '../../helpers/date-time';\nimport useTrialSessionMessageBroker from '../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker';\nimport type { TTrialSessionMessage } from '../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker-types';\nimport { useGetMileStoneConfig } from '../milestone/create/api/milestone-config';\nimport Error from '../ui/error/error';\nimport AppLoader from '../ui/loader/app-loader/app-loader';\nimport { useGetTrialHome } from './api/trial-home';\nimport { filterAndUpdateSlideNavigation } from './helper';\nimport type { ITrialHomeData, ITrialSessionProps } from './trial-session-types';\nimport TrialSessionView from './trial-session-view';\
|
|
1
|
+
{"version":3,"file":"trial-session.js","sources":["../../../src/features/trial-session/trial-session.tsx"],"sourcesContent":["import { memo, useCallback, useEffect, useState, type FC } from 'react';\n\nimport { getTimezone } from '../../helpers/date-time';\nimport useTrialSessionMessageBroker from '../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker';\nimport type { TTrialSessionMessage } from '../communication/hooks/use-trial-session-message-broker/use-trial-session-message-broker-types';\nimport { useGetMileStoneConfig } from '../milestone/create/api/milestone-config';\nimport Error from '../ui/error/error';\nimport AppLoader from '../ui/loader/app-loader/app-loader';\nimport { useGetTrialHome } from './api/trial-home';\nimport { filterAndUpdateSlideNavigation } from './helper';\nimport type { ITrialHomeData, ITrialSessionProps } from './trial-session-types';\nimport TrialSessionView from './trial-session-view';\n\nconst TrialSession: FC<ITrialSessionProps> = memo(function TrialSession(props) {\n const { userType, teacherId, studentId, teacherClassroomId, height = '100vh' } = props;\n const [trialHomeData, setTrialHomeData] = useState<ITrialHomeData | null>(null);\n const [studentTimezone, setStudentTimezone] = useState<string>();\n\n const {\n data: trialHomeResponse,\n get: getTrialHome,\n isProcessing: isProcessingTrialHome,\n isProcessingFailed: isProcessingFailedTrialHome,\n } = useGetTrialHome();\n const {\n get: getMilestoneConfig,\n data: milestoneConfigData,\n isProcessing: isProcessingMilestoneConfig,\n isProcessingFailed: isProcessingFailedMilestoneConfig,\n } = useGetMileStoneConfig();\n\n const fetchTrialHome = useCallback(() => {\n getTrialHome('trial-v3', {\n student_id: studentId,\n teacher_id: teacherId,\n viewer: userType.toLocaleLowerCase(),\n });\n }, [getTrialHome, studentId, teacherId, userType]);\n\n const fetchData = useCallback(() => {\n fetchTrialHome();\n getMilestoneConfig('', {\n demo_type: 'TRIAL_V3',\n });\n }, [fetchTrialHome, getMilestoneConfig]);\n\n const handleMessageReceive = useCallback(\n (messages: TTrialSessionMessage[]) => {\n if (userType === 'STUDENT') {\n messages.forEach(message => {\n if (message.eventName === 'TRIAL_INFORMATION_UPDATED') {\n fetchTrialHome();\n }\n });\n }\n\n if (userType === 'TEACHER') {\n messages.forEach(message => {\n if (message.eventName === 'TRIAL_SESSION_STUDENT_TIMEZONE') {\n const {\n eventPayload: { timezone },\n } = message;\n\n setStudentTimezone(timezone);\n }\n });\n }\n },\n [fetchTrialHome, userType],\n );\n\n const { publish } = useTrialSessionMessageBroker({\n teacherClassroomId,\n onMessageReceive: handleMessageReceive,\n });\n\n const handleOnTrialInformationUpdate = useCallback(() => {\n fetchTrialHome();\n\n if (userType === 'TEACHER') {\n publish?.({\n eventName: 'TRIAL_INFORMATION_UPDATED',\n });\n }\n }, [fetchTrialHome, publish, userType]);\n\n const handleOnTrialStudentTimezoneUpdate = useCallback(() => {\n if (userType === 'STUDENT') {\n publish?.({\n eventName: 'TRIAL_SESSION_STUDENT_TIMEZONE',\n eventPayload: { timezone: getTimezone() },\n });\n }\n }, [publish, userType]);\n\n useEffect(() => {\n fetchData();\n }, [fetchData]);\n\n const handleRemoveOptionalSlides = useCallback(\n (grade?: string) => {\n if (trialHomeResponse && milestoneConfigData) {\n const updatedTrialHomeData = filterAndUpdateSlideNavigation({\n milestoneConfigData,\n trialHomeData: trialHomeResponse,\n grade,\n });\n\n setTrialHomeData(updatedTrialHomeData);\n }\n },\n [milestoneConfigData, trialHomeResponse],\n );\n\n useEffect(() => {\n handleRemoveOptionalSlides?.();\n }, [handleRemoveOptionalSlides]);\n\n if ((isProcessingTrialHome && !trialHomeData) || isProcessingMilestoneConfig) {\n return <AppLoader height={height} />;\n }\n\n if (isProcessingFailedTrialHome || isProcessingFailedMilestoneConfig) {\n return <Error height={height} onTryAgain={fetchData} />;\n }\n\n if (trialHomeData && milestoneConfigData) {\n return (\n <TrialSessionView\n {...props}\n onTrialInformationUpdate={handleOnTrialInformationUpdate}\n onStudentTimezoneUpdate={handleOnTrialStudentTimezoneUpdate}\n trialHomeData={trialHomeData}\n milestoneConfig={milestoneConfigData}\n onRemoveOptionalSlides={handleRemoveOptionalSlides}\n studentTimezone={studentTimezone}\n />\n );\n }\n\n return null;\n});\n\nexport default TrialSession;\n"],"names":["TrialSession","memo","props","userType","teacherId","studentId","teacherClassroomId","height","trialHomeData","setTrialHomeData","useState","studentTimezone","setStudentTimezone","trialHomeResponse","getTrialHome","isProcessingTrialHome","isProcessingFailedTrialHome","useGetTrialHome","getMilestoneConfig","milestoneConfigData","isProcessingMilestoneConfig","isProcessingFailedMilestoneConfig","useGetMileStoneConfig","fetchTrialHome","useCallback","fetchData","handleMessageReceive","messages","message","timezone","publish","useTrialSessionMessageBroker","handleOnTrialInformationUpdate","handleOnTrialStudentTimezoneUpdate","getTimezone","useEffect","handleRemoveOptionalSlides","grade","updatedTrialHomeData","filterAndUpdateSlideNavigation","jsx","AppLoader","Error","TrialSessionView","TrialSession$1"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAAuCC,EAAK,SAAsBC,GAAO;AAC7E,QAAM,EAAE,UAAAC,GAAU,WAAAC,GAAW,WAAAC,GAAW,oBAAAC,GAAoB,QAAAC,IAAS,QAAY,IAAAL,GAC3E,CAACM,GAAeC,CAAgB,IAAIC,EAAgC,IAAI,GACxE,CAACC,GAAiBC,CAAkB,IAAIF,EAAiB,GAEzD;AAAA,IACJ,MAAMG;AAAA,IACN,KAAKC;AAAA,IACL,cAAcC;AAAA,IACd,oBAAoBC;AAAA,MAClBC,EAAgB,GACd;AAAA,IACJ,KAAKC;AAAA,IACL,MAAMC;AAAA,IACN,cAAcC;AAAA,IACd,oBAAoBC;AAAA,MAClBC,EAAsB,GAEpBC,IAAiBC,EAAY,MAAM;AACvC,IAAAV,EAAa,YAAY;AAAA,MACvB,YAAYT;AAAA,MACZ,YAAYD;AAAA,MACZ,QAAQD,EAAS,kBAAkB;AAAA,IAAA,CACpC;AAAA,KACA,CAACW,GAAcT,GAAWD,GAAWD,CAAQ,CAAC,GAE3CsB,IAAYD,EAAY,MAAM;AACnB,IAAAD,KACfL,EAAmB,IAAI;AAAA,MACrB,WAAW;AAAA,IAAA,CACZ;AAAA,EAAA,GACA,CAACK,GAAgBL,CAAkB,CAAC,GAEjCQ,IAAuBF;AAAA,IAC3B,CAACG,MAAqC;AACpC,MAAIxB,MAAa,aACfwB,EAAS,QAAQ,CAAWC,MAAA;AACtB,QAAAA,EAAQ,cAAc,+BACTL;MACjB,CACD,GAGCpB,MAAa,aACfwB,EAAS,QAAQ,CAAWC,MAAA;AACtB,YAAAA,EAAQ,cAAc,kCAAkC;AACpD,gBAAA;AAAA,YACJ,cAAc,EAAE,UAAAC,EAAS;AAAA,UACvB,IAAAD;AAEJ,UAAAhB,EAAmBiB,CAAQ;AAAA,QAC7B;AAAA,MAAA,CACD;AAAA,IAEL;AAAA,IACA,CAACN,GAAgBpB,CAAQ;AAAA,EAAA,GAGrB,EAAE,SAAA2B,EAAQ,IAAIC,EAA6B;AAAA,IAC/C,oBAAAzB;AAAA,IACA,kBAAkBoB;AAAA,EAAA,CACnB,GAEKM,IAAiCR,EAAY,MAAM;AACxC,IAAAD,KAEXpB,MAAa,cACL2B,KAAA,QAAAA,EAAA;AAAA,MACR,WAAW;AAAA,IAAA;AAAA,EAGd,GAAA,CAACP,GAAgBO,GAAS3B,CAAQ,CAAC,GAEhC8B,IAAqCT,EAAY,MAAM;AAC3D,IAAIrB,MAAa,cACL2B,KAAA,QAAAA,EAAA;AAAA,MACR,WAAW;AAAA,MACX,cAAc,EAAE,UAAUI,IAAc;AAAA,IAAA;AAAA,EAE5C,GACC,CAACJ,GAAS3B,CAAQ,CAAC;AAEtB,EAAAgC,EAAU,MAAM;AACJ,IAAAV;EAAA,GACT,CAACA,CAAS,CAAC;AAEd,QAAMW,IAA6BZ;AAAA,IACjC,CAACa,MAAmB;AAClB,UAAIxB,KAAqBM,GAAqB;AAC5C,cAAMmB,IAAuBC,EAA+B;AAAA,UAC1D,qBAAApB;AAAA,UACA,eAAeN;AAAA,UACf,OAAAwB;AAAA,QAAA,CACD;AAED,QAAA5B,EAAiB6B,CAAoB;AAAA,MACvC;AAAA,IACF;AAAA,IACA,CAACnB,GAAqBN,CAAiB;AAAA,EAAA;AAOpC,SAJLsB,EAAU,MAAM;AACe,IAAAC,KAAA,QAAAA;AAAA,EAAA,GAC5B,CAACA,CAA0B,CAAC,GAE1BrB,KAAyB,CAACP,KAAkBY,IACxC,gBAAAoB,EAACC,KAAU,QAAAlC,EAAgB,CAAA,IAGhCS,KAA+BK,IACzB,gBAAAmB,EAAAE,GAAA,EAAM,QAAAnC,GAAgB,YAAYkB,EAAW,CAAA,IAGnDjB,KAAiBW,IAEjB,gBAAAqB;AAAA,IAACG;AAAA,IAAA;AAAA,MACE,GAAGzC;AAAA,MACJ,0BAA0B8B;AAAA,MAC1B,yBAAyBC;AAAA,MACzB,eAAAzB;AAAA,MACA,iBAAiBW;AAAA,MACjB,wBAAwBiB;AAAA,MACxB,iBAAAzB;AAAA,IAAA;AAAA,EAAA,IAKC;AACT,CAAC,GAEDiC,IAAe5C;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import r, { keyframes as e } from "styled-components";
|
|
2
|
-
import {
|
|
3
|
-
const
|
|
2
|
+
import { RAINBOW_COLOR_ANIMATION_DURATION as n } from "./animated-arc-constants.js";
|
|
3
|
+
const s = e`
|
|
4
4
|
0% {
|
|
5
5
|
stroke: #FFB700;
|
|
6
6
|
color: #FFB700;
|
|
@@ -17,17 +17,17 @@ const F = e`
|
|
|
17
17
|
stroke: #33CCFF;
|
|
18
18
|
color: #33CCFF;
|
|
19
19
|
}
|
|
20
|
-
`,
|
|
20
|
+
`, a = r.svg`
|
|
21
21
|
position: absolute;
|
|
22
|
-
z-index: ${
|
|
22
|
+
z-index: ${({ $zIndex: o }) => o};
|
|
23
23
|
pointer-events: none;
|
|
24
24
|
`, c = r.path`
|
|
25
25
|
stroke: ${({ theme: o, stroke: t }) => o.colors[t]};
|
|
26
|
-
animation: ${({ $showAnimatedRainbowArc: o }) => o ?
|
|
27
|
-
${
|
|
26
|
+
animation: ${({ $showAnimatedRainbowArc: o }) => o ? s : "undefined"}
|
|
27
|
+
${n}s ease infinite forwards;
|
|
28
28
|
`;
|
|
29
29
|
export {
|
|
30
30
|
c as Path,
|
|
31
|
-
|
|
31
|
+
a as Svg
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=animated-arc-styled.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animated-arc-styled.js","sources":["../../../../src/features/ui/animated-arc/animated-arc-styled.tsx"],"sourcesContent":["import styled, { keyframes } from 'styled-components';\n\nimport type { TColorNames } from '../types';\nimport {
|
|
1
|
+
{"version":3,"file":"animated-arc-styled.js","sources":["../../../../src/features/ui/animated-arc/animated-arc-styled.tsx"],"sourcesContent":["import styled, { keyframes } from 'styled-components';\n\nimport type { TColorNames } from '../types';\nimport { RAINBOW_COLOR_ANIMATION_DURATION } from './animated-arc-constants';\n\nconst rainbowColorAnimation = keyframes`\n 0% {\n stroke: #FFB700;\n color: #FFB700;\n }\n 33% {\n stroke: #FF884C;\n color: #FF884C;\n }\n 66% {\n stroke: #FF80F4;\n color: #FF80F4;\n }\n 100% {\n stroke: #33CCFF;\n color: #33CCFF;\n }\n`;\n\nexport const Svg = styled.svg<{ $zIndex: number }>`\n position: absolute;\n z-index: ${({ $zIndex }) => $zIndex};\n pointer-events: none;\n`;\n\nexport const Path = styled.path<{ stroke: TColorNames; $showAnimatedRainbowArc: boolean }>`\n stroke: ${({ theme, stroke }) => theme.colors[stroke]};\n animation: ${({ $showAnimatedRainbowArc }) =>\n $showAnimatedRainbowArc ? rainbowColorAnimation : 'undefined'}\n ${RAINBOW_COLOR_ANIMATION_DURATION}s ease infinite forwards;\n`;\n"],"names":["rainbowColorAnimation","keyframes","Svg","styled","$zIndex","Path","theme","stroke","$showAnimatedRainbowArc","RAINBOW_COLOR_ANIMATION_DURATION"],"mappings":";;AAKA,MAAMA,IAAwBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAmBjBC,IAAMC,EAAO;AAAA;AAAA,aAEb,CAAC,EAAE,SAAAC,EAAQ,MAAMA,CAAO;AAAA;AAAA,GAIxBC,IAAOF,EAAO;AAAA,YACf,CAAC,EAAE,OAAAG,GAAO,QAAAC,EAAA,MAAaD,EAAM,OAAOC,CAAM,CAAC;AAAA,eACxC,CAAC,EAAE,yBAAAC,EAAA,MACZA,IAA0BR,IAAwB,WAAW;AAAA,MAC7DS,CAAgC;AAAA;"}
|
|
@@ -1,48 +1,59 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as u, useMemo as
|
|
2
|
+
import { useRef as u, useMemo as R, useLayoutEffect as g } from "react";
|
|
3
3
|
import { describeArc as w } from "./animated-arc-helpers.js";
|
|
4
|
-
import { Svg as
|
|
5
|
-
|
|
4
|
+
import { Svg as k, Path as D } from "./animated-arc-styled.js";
|
|
5
|
+
import { ANIMATED_ARC_Z_INDEX as d } from "./animated-arc-constants.js";
|
|
6
|
+
const x = ({
|
|
6
7
|
radius: e,
|
|
7
8
|
strokeWidth: i,
|
|
8
|
-
color:
|
|
9
|
+
color: $,
|
|
9
10
|
targetAngle: a,
|
|
10
11
|
startAngle: c = 0,
|
|
11
|
-
duration:
|
|
12
|
-
mode:
|
|
12
|
+
duration: o = 2,
|
|
13
|
+
mode: s = "draw",
|
|
13
14
|
delay: n = 0,
|
|
14
|
-
showAnimatedRainbowArc:
|
|
15
|
+
showAnimatedRainbowArc: y = !1,
|
|
16
|
+
zIndex: A = d
|
|
15
17
|
}) => {
|
|
16
|
-
const f = u(null), r = e,
|
|
17
|
-
() => w(r, r,
|
|
18
|
-
[a, c,
|
|
18
|
+
const f = u(null), r = e, m = e - i / 2, l = R(
|
|
19
|
+
() => w(r, r, m, c, a),
|
|
20
|
+
[a, c, m, r]
|
|
19
21
|
);
|
|
20
22
|
return g(() => {
|
|
21
23
|
const t = f.current;
|
|
22
24
|
if (t) {
|
|
23
|
-
if (
|
|
24
|
-
const
|
|
25
|
-
t.style.strokeDasharray = `${
|
|
26
|
-
t.style.transition = `stroke-dashoffset ${
|
|
25
|
+
if (s === "draw") {
|
|
26
|
+
const h = t.getTotalLength();
|
|
27
|
+
t.style.strokeDasharray = `${h}`, t.style.strokeDashoffset = `${h}`, t.getBoundingClientRect(), requestAnimationFrame(() => {
|
|
28
|
+
t.style.transition = `stroke-dashoffset ${o}s linear ${n}s`, t.style.strokeDashoffset = "0";
|
|
27
29
|
});
|
|
28
30
|
}
|
|
29
|
-
|
|
30
|
-
t.style.transition = `opacity ${
|
|
31
|
+
s === "fade" && (t.style.opacity = "0", t.getBoundingClientRect(), requestAnimationFrame(() => {
|
|
32
|
+
t.style.transition = `opacity ${o}s ease-in-out ${n}s`, t.style.opacity = "1";
|
|
31
33
|
}));
|
|
32
34
|
}
|
|
33
|
-
}, [
|
|
35
|
+
}, [l, s, o, n]), /* @__PURE__ */ p(
|
|
34
36
|
k,
|
|
35
37
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
width: 2 * e,
|
|
39
|
+
height: 2 * e,
|
|
40
|
+
viewBox: `0 0 ${2 * e} ${2 * e}`,
|
|
41
|
+
$zIndex: A,
|
|
42
|
+
children: /* @__PURE__ */ p(
|
|
43
|
+
D,
|
|
44
|
+
{
|
|
45
|
+
ref: f,
|
|
46
|
+
d: l,
|
|
47
|
+
fill: "none",
|
|
48
|
+
stroke: $,
|
|
49
|
+
strokeWidth: i,
|
|
50
|
+
strokeLinecap: "butt",
|
|
51
|
+
$showAnimatedRainbowArc: y
|
|
52
|
+
}
|
|
53
|
+
)
|
|
43
54
|
}
|
|
44
|
-
)
|
|
45
|
-
}, L =
|
|
55
|
+
);
|
|
56
|
+
}, L = x;
|
|
46
57
|
export {
|
|
47
58
|
L as default
|
|
48
59
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animated-arc.js","sources":["../../../../src/features/ui/animated-arc/animated-arc.tsx"],"sourcesContent":["import { useRef, useLayoutEffect, useMemo, type FC } from 'react';\n\nimport { describeArc } from './animated-arc-helpers';\nimport * as Styled from './animated-arc-styled';\nimport type { IAnimatedArcProps } from './animated-arc-types';\n\nconst AnimatedArc: FC<IAnimatedArcProps> = ({\n radius,\n strokeWidth,\n color,\n targetAngle,\n startAngle = 0,\n duration = 2,\n mode = 'draw',\n delay = 0,\n showAnimatedRainbowArc = false,\n}) => {\n const pathRef = useRef<SVGPathElement>(null);\n\n const center = radius;\n const arcRadius = radius - strokeWidth / 2; // draw arc inside the visible bounds\n const arcPath = useMemo(\n () => describeArc(center, center, arcRadius, startAngle, targetAngle),\n [targetAngle, startAngle, arcRadius, center],\n );\n\n useLayoutEffect(() => {\n const path = pathRef.current;\n\n if (!path) return;\n\n if (mode === 'draw') {\n const length = path.getTotalLength();\n\n path.style.strokeDasharray = `${length}`;\n path.style.strokeDashoffset = `${length}`;\n path.getBoundingClientRect();\n\n requestAnimationFrame(() => {\n path.style.transition = `stroke-dashoffset ${duration}s linear ${delay}s`;\n path.style.strokeDashoffset = '0';\n });\n }\n\n if (mode === 'fade') {\n path.style.opacity = '0';\n path.getBoundingClientRect();\n\n requestAnimationFrame(() => {\n path.style.transition = `opacity ${duration}s ease-in-out ${delay}s`;\n path.style.opacity = '1';\n });\n }\n }, [arcPath, mode, duration, delay]);\n\n return (\n <Styled.Svg
|
|
1
|
+
{"version":3,"file":"animated-arc.js","sources":["../../../../src/features/ui/animated-arc/animated-arc.tsx"],"sourcesContent":["import { useRef, useLayoutEffect, useMemo, type FC } from 'react';\n\nimport { describeArc } from './animated-arc-helpers';\nimport * as Styled from './animated-arc-styled';\nimport type { IAnimatedArcProps } from './animated-arc-types';\nimport { ANIMATED_ARC_Z_INDEX } from './animated-arc-constants';\n\nconst AnimatedArc: FC<IAnimatedArcProps> = ({\n radius,\n strokeWidth,\n color,\n targetAngle,\n startAngle = 0,\n duration = 2,\n mode = 'draw',\n delay = 0,\n showAnimatedRainbowArc = false,\n zIndex = ANIMATED_ARC_Z_INDEX,\n}) => {\n const pathRef = useRef<SVGPathElement>(null);\n\n const center = radius;\n const arcRadius = radius - strokeWidth / 2; // draw arc inside the visible bounds\n const arcPath = useMemo(\n () => describeArc(center, center, arcRadius, startAngle, targetAngle),\n [targetAngle, startAngle, arcRadius, center],\n );\n\n useLayoutEffect(() => {\n const path = pathRef.current;\n\n if (!path) return;\n\n if (mode === 'draw') {\n const length = path.getTotalLength();\n\n path.style.strokeDasharray = `${length}`;\n path.style.strokeDashoffset = `${length}`;\n path.getBoundingClientRect();\n\n requestAnimationFrame(() => {\n path.style.transition = `stroke-dashoffset ${duration}s linear ${delay}s`;\n path.style.strokeDashoffset = '0';\n });\n }\n\n if (mode === 'fade') {\n path.style.opacity = '0';\n path.getBoundingClientRect();\n\n requestAnimationFrame(() => {\n path.style.transition = `opacity ${duration}s ease-in-out ${delay}s`;\n path.style.opacity = '1';\n });\n }\n }, [arcPath, mode, duration, delay]);\n\n return (\n <Styled.Svg\n width={2 * radius}\n height={2 * radius}\n viewBox={`0 0 ${2 * radius} ${2 * radius}`}\n $zIndex={zIndex}\n >\n <Styled.Path\n ref={pathRef}\n d={arcPath}\n fill=\"none\"\n stroke={color}\n strokeWidth={strokeWidth}\n strokeLinecap=\"butt\"\n $showAnimatedRainbowArc={showAnimatedRainbowArc}\n />\n </Styled.Svg>\n );\n};\n\nexport default AnimatedArc;\n"],"names":["AnimatedArc","radius","strokeWidth","color","targetAngle","startAngle","duration","mode","delay","showAnimatedRainbowArc","zIndex","ANIMATED_ARC_Z_INDEX","pathRef","useRef","center","arcRadius","arcPath","useMemo","describeArc","useLayoutEffect","path","length","jsx","Styled.Svg","Styled.Path","AnimatedArc$1"],"mappings":";;;;;AAOA,MAAMA,IAAqC,CAAC;AAAA,EAC1C,QAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,YAAAC,IAAa;AAAA,EACb,UAAAC,IAAW;AAAA,EACX,MAAAC,IAAO;AAAA,EACP,OAAAC,IAAQ;AAAA,EACR,wBAAAC,IAAyB;AAAA,EACzB,QAAAC,IAASC;AACX,MAAM;AACE,QAAAC,IAAUC,EAAuB,IAAI,GAErCC,IAASb,GACTc,IAAYd,IAASC,IAAc,GACnCc,IAAUC;AAAA,IACd,MAAMC,EAAYJ,GAAQA,GAAQC,GAAWV,GAAYD,CAAW;AAAA,IACpE,CAACA,GAAaC,GAAYU,GAAWD,CAAM;AAAA,EAAA;AAG7C,SAAAK,EAAgB,MAAM;AACpB,UAAMC,IAAOR,EAAQ;AAErB,QAAKQ,GAEL;AAAA,UAAIb,MAAS,QAAQ;AACb,cAAAc,IAASD,EAAK;AAEf,QAAAA,EAAA,MAAM,kBAAkB,GAAGC,CAAM,IACjCD,EAAA,MAAM,mBAAmB,GAAGC,CAAM,IACvCD,EAAK,sBAAsB,GAE3B,sBAAsB,MAAM;AAC1B,UAAAA,EAAK,MAAM,aAAa,qBAAqBd,CAAQ,YAAYE,CAAK,KACtEY,EAAK,MAAM,mBAAmB;AAAA,QAAA,CAC/B;AAAA,MACH;AAEA,MAAIb,MAAS,WACXa,EAAK,MAAM,UAAU,KACrBA,EAAK,sBAAsB,GAE3B,sBAAsB,MAAM;AAC1B,QAAAA,EAAK,MAAM,aAAa,WAAWd,CAAQ,iBAAiBE,CAAK,KACjEY,EAAK,MAAM,UAAU;AAAA,MAAA,CACtB;AAAA;AAAA,KAEF,CAACJ,GAAST,GAAMD,GAAUE,CAAK,CAAC,GAGjC,gBAAAc;AAAA,IAACC;AAAAA,IAAA;AAAA,MACC,OAAO,IAAItB;AAAA,MACX,QAAQ,IAAIA;AAAA,MACZ,SAAS,OAAO,IAAIA,CAAM,IAAI,IAAIA,CAAM;AAAA,MACxC,SAASS;AAAA,MAET,UAAA,gBAAAY;AAAA,QAACE;AAAAA,QAAA;AAAA,UACC,KAAKZ;AAAA,UACL,GAAGI;AAAA,UACH,MAAK;AAAA,UACL,QAAQb;AAAA,UACR,aAAAD;AAAA,UACA,eAAc;AAAA,UACd,yBAAyBO;AAAA,QAAA;AAAA,MAC3B;AAAA,IAAA;AAAA,EAAA;AAGN,GAEAgB,IAAezB;"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { jsx as s, jsxs as d } from "react/jsx-runtime";
|
|
2
|
+
import { ProgressContainer as c, ProgressBar as m, ProgressFill as t } from "./linear-progress-bar.styled.js";
|
|
3
|
+
const f = ({
|
|
4
|
+
fillColor: a = "YELLOW_4",
|
|
5
|
+
backgroundColor: i = "WHITE_T_10",
|
|
6
|
+
borderRadius: o = 0,
|
|
7
|
+
height: n = 8,
|
|
8
|
+
percentage: $,
|
|
9
|
+
delta: h = 0,
|
|
10
|
+
deltaProgressColor: g = "GREEN_5"
|
|
11
|
+
}) => {
|
|
12
|
+
const r = Math.min(Math.max($, 0), 100), e = Math.min(Math.max(h, 0), 100 - r);
|
|
13
|
+
return /* @__PURE__ */ s(c, { children: /* @__PURE__ */ d(m, { $background: i, $height: n, children: [
|
|
14
|
+
/* @__PURE__ */ s(
|
|
15
|
+
t,
|
|
16
|
+
{
|
|
17
|
+
$width: `${r}%`,
|
|
18
|
+
$background: a,
|
|
19
|
+
$offset: 0,
|
|
20
|
+
$borderRadius: o,
|
|
21
|
+
$height: "100%"
|
|
22
|
+
}
|
|
23
|
+
),
|
|
24
|
+
e > 0 && /* @__PURE__ */ s(
|
|
25
|
+
t,
|
|
26
|
+
{
|
|
27
|
+
$width: `${e}%`,
|
|
28
|
+
$background: g,
|
|
29
|
+
$offset: r,
|
|
30
|
+
$height: "100%",
|
|
31
|
+
$borderRadius: o
|
|
32
|
+
}
|
|
33
|
+
)
|
|
34
|
+
] }) });
|
|
35
|
+
}, P = f;
|
|
36
|
+
export {
|
|
37
|
+
P as default
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=linear-progress-bar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linear-progress-bar.js","sources":["../../../../src/features/ui/linear-progress-bar/linear-progress-bar.tsx"],"sourcesContent":["import { type FC } from 'react';\n\nimport { type ILinearProgressBarProps } from './linear-progress-bar-types';\nimport * as Styled from './linear-progress-bar.styled';\n\nconst LinearProgressBar: FC<ILinearProgressBarProps> = ({\n fillColor = 'YELLOW_4',\n backgroundColor = 'WHITE_T_10',\n borderRadius = 0,\n height = 8,\n percentage,\n delta = 0,\n deltaProgressColor = 'GREEN_5',\n}) => {\n const progress = Math.min(Math.max(percentage, 0), 100);\n const deltaProgress = Math.min(Math.max(delta, 0), 100 - progress);\n\n return (\n <Styled.ProgressContainer>\n <Styled.ProgressBar $background={backgroundColor} $height={height}>\n <Styled.ProgressFill\n $width={`${progress}%`}\n $background={fillColor}\n $offset={0}\n $borderRadius={borderRadius}\n $height=\"100%\"\n />\n {deltaProgress > 0 && (\n <Styled.ProgressFill\n $width={`${deltaProgress}%`}\n $background={deltaProgressColor}\n $offset={progress}\n $height=\"100%\"\n $borderRadius={borderRadius}\n />\n )}\n </Styled.ProgressBar>\n </Styled.ProgressContainer>\n );\n};\n\nexport default LinearProgressBar;\n"],"names":["LinearProgressBar","fillColor","backgroundColor","borderRadius","height","percentage","delta","deltaProgressColor","progress","deltaProgress","jsx","Styled.ProgressContainer","jsxs","Styled.ProgressBar","Styled.ProgressFill","LinearProgressBar$1"],"mappings":";;AAKA,MAAMA,IAAiD,CAAC;AAAA,EACtD,WAAAC,IAAY;AAAA,EACZ,iBAAAC,IAAkB;AAAA,EAClB,cAAAC,IAAe;AAAA,EACf,QAAAC,IAAS;AAAA,EACT,YAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,oBAAAC,IAAqB;AACvB,MAAM;AACE,QAAAC,IAAW,KAAK,IAAI,KAAK,IAAIH,GAAY,CAAC,GAAG,GAAG,GAChDI,IAAgB,KAAK,IAAI,KAAK,IAAIH,GAAO,CAAC,GAAG,MAAME,CAAQ;AAG/D,SAAA,gBAAAE,EAACC,GAAA,EACC,UAAA,gBAAAC,EAACC,GAAA,EAAmB,aAAaX,GAAiB,SAASE,GACzD,UAAA;AAAA,IAAA,gBAAAM;AAAA,MAACI;AAAAA,MAAA;AAAA,QACC,QAAQ,GAAGN,CAAQ;AAAA,QACnB,aAAaP;AAAA,QACb,SAAS;AAAA,QACT,eAAeE;AAAA,QACf,SAAQ;AAAA,MAAA;AAAA,IACV;AAAA,IACCM,IAAgB,KACf,gBAAAC;AAAA,MAACI;AAAAA,MAAA;AAAA,QACC,QAAQ,GAAGL,CAAa;AAAA,QACxB,aAAaF;AAAA,QACb,SAASC;AAAA,QACT,SAAQ;AAAA,QACR,eAAeL;AAAA,MAAA;AAAA,IACjB;AAAA,EAAA,EAEJ,CAAA,EACF,CAAA;AAEJ,GAEAY,IAAef;"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import i from "styled-components";
|
|
2
|
+
import r from "../layout/flex-view.js";
|
|
3
|
+
const l = i.div`
|
|
4
|
+
position: relative;
|
|
5
|
+
width: 100%;
|
|
6
|
+
`, n = i.div`
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: ${({ $height: o }) => o}px;
|
|
9
|
+
background-color: ${({ theme: o, $background: t }) => o.colors[t || "GREY_1"]};
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
position: relative;
|
|
12
|
+
`, d = i(r)`
|
|
13
|
+
height: 100%;
|
|
14
|
+
position: absolute;
|
|
15
|
+
top: 0;
|
|
16
|
+
left: ${({ $offset: o }) => o}%;
|
|
17
|
+
`;
|
|
18
|
+
export {
|
|
19
|
+
n as ProgressBar,
|
|
20
|
+
l as ProgressContainer,
|
|
21
|
+
d as ProgressFill
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=linear-progress-bar.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"linear-progress-bar.styled.js","sources":["../../../../src/features/ui/linear-progress-bar/linear-progress-bar.styled.tsx"],"sourcesContent":["import styled from 'styled-components';\n\nimport FlexView from '../layout/flex-view';\nimport { type TColorNames } from '../types';\n\nexport const ProgressContainer = styled.div`\n position: relative;\n width: 100%;\n`;\n\nexport const ProgressBar = styled.div<{ $height: number; $background: TColorNames }>`\n width: 100%;\n height: ${({ $height }) => $height}px;\n background-color: ${({ theme, $background }) => theme.colors[$background || 'GREY_1']};\n overflow: hidden;\n position: relative;\n`;\n\nexport const ProgressFill = styled(FlexView)<{ $offset: number }>`\n height: 100%;\n position: absolute;\n top: 0;\n left: ${({ $offset }) => $offset}%;\n`;\n"],"names":["ProgressContainer","styled","ProgressBar","$height","theme","$background","ProgressFill","FlexView","$offset"],"mappings":";;AAKO,MAAMA,IAAoBC,EAAO;AAAA;AAAA;AAAA,GAK3BC,IAAcD,EAAO;AAAA;AAAA,YAEtB,CAAC,EAAE,SAAAE,EAAQ,MAAMA,CAAO;AAAA,sBACd,CAAC,EAAE,OAAAC,GAAO,aAAAC,QAAkBD,EAAM,OAAOC,KAAe,QAAQ,CAAC;AAAA;AAAA;AAAA,GAK1EC,IAAeL,EAAOM,CAAQ;AAAA;AAAA;AAAA;AAAA,UAIjC,CAAC,EAAE,SAAAC,EAAQ,MAAMA,CAAO;AAAA;"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
dotColor: "BLACK_1",
|
|
3
|
+
inactiveDotColor: "WHITE_1",
|
|
4
|
+
activeIndicatorSize: "8px",
|
|
5
|
+
inactiveIndicatorSize: "8px",
|
|
6
|
+
spacing: "8px"
|
|
7
|
+
}, o = {
|
|
8
|
+
buttonVariant: "secondary",
|
|
9
|
+
buttonSize: "xsmall",
|
|
10
|
+
spacing: 8
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
t as defaultDotConfig,
|
|
14
|
+
o as defaultNavigationConfig
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sources":["../../../../src/features/ui/swipeable-carousel/constants.ts"],"sourcesContent":["const defaultDotConfig = {\n dotColor: 'BLACK_1' as const,\n inactiveDotColor: 'WHITE_1' as const,\n activeIndicatorSize: '8px',\n inactiveIndicatorSize: '8px',\n spacing: '8px',\n};\n\nconst defaultNavigationConfig = {\n buttonVariant: 'secondary' as const,\n buttonSize: 'xsmall' as const,\n spacing: 8,\n};\n\nexport { defaultDotConfig, defaultNavigationConfig };\n"],"names":["defaultDotConfig","defaultNavigationConfig"],"mappings":"AAAA,MAAMA,IAAmB;AAAA,EACvB,UAAU;AAAA,EACV,kBAAkB;AAAA,EAClB,qBAAqB;AAAA,EACrB,uBAAuB;AAAA,EACvB,SAAS;AACX,GAEMC,IAA0B;AAAA,EAC9B,eAAe;AAAA,EACf,YAAY;AAAA,EACZ,SAAS;AACX;"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import i from "styled-components";
|
|
2
|
+
const r = i.div`
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
position: relative;
|
|
6
|
+
display: flex;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
touch-action: none;
|
|
9
|
+
`;
|
|
10
|
+
i.div`
|
|
11
|
+
width: 100%;
|
|
12
|
+
height: 100%;
|
|
13
|
+
position: relative;
|
|
14
|
+
display: flex;
|
|
15
|
+
justify-content: center;
|
|
16
|
+
touch-action: none;
|
|
17
|
+
`;
|
|
18
|
+
const a = i.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
width: 100%;
|
|
21
|
+
flex-grow: 1;
|
|
22
|
+
transform: ${({ $translate: o = 0 }) => `translateX(${-o}%)`};
|
|
23
|
+
transition: ${({ $translateDuration: o }) => `all ${o}ms ease-in`};
|
|
24
|
+
touch-action: none;
|
|
25
|
+
`, l = i.div`
|
|
26
|
+
width: 100%;
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
justify-content: center;
|
|
30
|
+
flex-grow: 1;
|
|
31
|
+
flex-shrink: 0;
|
|
32
|
+
touch-action: none;
|
|
33
|
+
`, c = i.span`
|
|
34
|
+
background: ${({ theme: o, $isCurrent: t, $dotColor: n, $inactiveDotColor: e }) => t ? o.colors[n] : o.colors[e]};
|
|
35
|
+
border: 1px solid ${({ theme: o, $dotColor: t }) => o.colors[t]};
|
|
36
|
+
width: ${({ $isCurrent: o, $activeIndicatorSize: t, $inactiveIndicatorSize: n }) => o ? t : n};
|
|
37
|
+
height: ${({ $isCurrent: o, $activeIndicatorSize: t, $inactiveIndicatorSize: n }) => o ? t : n};
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
display: inline-block;
|
|
40
|
+
transition: all 0.3s ease;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
|
|
43
|
+
&:hover {
|
|
44
|
+
opacity: 0.8;
|
|
45
|
+
}
|
|
46
|
+
`, d = i.div`
|
|
47
|
+
position: absolute;
|
|
48
|
+
bottom: ${({ $bottom: o }) => o || "-48px"};
|
|
49
|
+
`;
|
|
50
|
+
export {
|
|
51
|
+
r as Carousel,
|
|
52
|
+
l as CarouselItemContainer,
|
|
53
|
+
a as CarouselWrapper,
|
|
54
|
+
c as Dot,
|
|
55
|
+
d as NavigationContainer
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=swipeable-carousel-styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"swipeable-carousel-styled.js","sources":["../../../../src/features/ui/swipeable-carousel/swipeable-carousel-styled.ts"],"sourcesContent":["import styled from 'styled-components';\n\nimport type { TColorNames } from '../types';\n\nexport const Carousel = styled.div`\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n justify-content: center;\n touch-action: none;\n`;\n\nexport const CarouselContent = styled.div`\n width: 100%;\n height: 100%;\n position: relative;\n display: flex;\n justify-content: center;\n touch-action: none;\n`;\n\nexport const CarouselWrapper = styled.div<{ $translate?: number; $translateDuration?: number }>`\n display: flex;\n width: 100%;\n flex-grow: 1;\n transform: ${({ $translate = 0 }) => `translateX(${-$translate}%)`};\n transition: ${({ $translateDuration }) => `all ${$translateDuration}ms ease-in`};\n touch-action: none;\n`;\n\nexport const CarouselItemContainer = styled.div`\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: center;\n flex-grow: 1;\n flex-shrink: 0;\n touch-action: none;\n`;\n\ninterface IDotProps {\n $isCurrent: boolean;\n $dotColor: TColorNames;\n $inactiveDotColor: TColorNames;\n $activeIndicatorSize: string;\n $inactiveIndicatorSize: string;\n}\n\nexport const Dot = styled.span<IDotProps>`\n background: ${({ theme, $isCurrent, $dotColor, $inactiveDotColor }) =>\n $isCurrent ? theme.colors[$dotColor] : theme.colors[$inactiveDotColor]};\n border: 1px solid ${({ theme, $dotColor }) => theme.colors[$dotColor]};\n width: ${({ $isCurrent, $activeIndicatorSize, $inactiveIndicatorSize }) =>\n $isCurrent ? $activeIndicatorSize : $inactiveIndicatorSize};\n height: ${({ $isCurrent, $activeIndicatorSize, $inactiveIndicatorSize }) =>\n $isCurrent ? $activeIndicatorSize : $inactiveIndicatorSize};\n border-radius: 50%;\n display: inline-block;\n transition: all 0.3s ease;\n cursor: pointer;\n\n &:hover {\n opacity: 0.8;\n }\n`;\n\nexport const NavigationContainer = styled.div<{ $bottom?: string }>`\n position: absolute;\n bottom: ${({ $bottom }) => $bottom || '-48px'};\n`;\n"],"names":["Carousel","styled","CarouselWrapper","$translate","$translateDuration","CarouselItemContainer","Dot","theme","$isCurrent","$dotColor","$inactiveDotColor","$activeIndicatorSize","$inactiveIndicatorSize","NavigationContainer","$bottom"],"mappings":";AAIO,MAAMA,IAAWC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASAA,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAS/B,MAAMC,IAAkBD,EAAO;AAAA;AAAA;AAAA;AAAA,eAIvB,CAAC,EAAE,YAAAE,IAAa,QAAQ,cAAc,CAACA,CAAU,IAAI;AAAA,gBACpD,CAAC,EAAE,oBAAAC,EAAyB,MAAA,OAAOA,CAAkB,YAAY;AAAA;AAAA,GAIpEC,IAAwBJ,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAkB/BK,IAAML,EAAO;AAAA,gBACV,CAAC,EAAE,OAAAM,GAAO,YAAAC,GAAY,WAAAC,GAAW,mBAAAC,EAAkB,MAC/DF,IAAaD,EAAM,OAAOE,CAAS,IAAIF,EAAM,OAAOG,CAAiB,CAAC;AAAA,sBACpD,CAAC,EAAE,OAAAH,GAAO,WAAAE,EAAA,MAAgBF,EAAM,OAAOE,CAAS,CAAC;AAAA,WAC5D,CAAC,EAAE,YAAAD,GAAY,sBAAAG,GAAsB,wBAAAC,QAC5CJ,IAAaG,IAAuBC,CAAsB;AAAA,YAClD,CAAC,EAAE,YAAAJ,GAAY,sBAAAG,GAAsB,wBAAAC,QAC7CJ,IAAaG,IAAuBC,CAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAWjDC,IAAsBZ,EAAO;AAAA;AAAA,YAE9B,CAAC,EAAE,SAAAa,QAAcA,KAAW,OAAO;AAAA;"}
|