@cuemath/leap 3.2.30 → 3.2.31-m
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 +5 -6
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/lottie/lottie.js +1 -6
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/analytics-events/platform-events-student.js +1 -2
- package/dist/features/analytics-events/platform-events-student.js.map +1 -1
- package/dist/features/analytics-events/platform-events-teacher.js +4 -6
- package/dist/features/analytics-events/platform-events-teacher.js.map +1 -1
- package/dist/features/analytics-events/whitelist-events.js +16 -20
- package/dist/features/analytics-events/whitelist-events.js.map +1 -1
- package/dist/features/auth/account-selector/account-selector.js +52 -54
- package/dist/features/auth/account-selector/account-selector.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js +1 -2
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-constants.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js +8 -8
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message-styled.js.map +1 -1
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js +60 -82
- package/dist/features/auth/comps/animated-avatar-message/animated-avatar-message.js.map +1 -1
- package/dist/features/auth/comps/pill-button/pill-button.js +38 -41
- package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
- package/dist/features/auth/comps/resend-otp/resend-otp.js +14 -18
- package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +26 -32
- package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -1
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +10 -2
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item-styled.js +3 -9
- package/dist/features/auth/comps/user-list/user-item/user-item-styled.js.map +1 -1
- package/dist/features/auth/comps/user-list/user-item/user-item.js +15 -14
- package/dist/features/auth/comps/user-list/user-item/user-item.js.map +1 -1
- package/dist/features/auth/pla-signup/signup-options/signup-options.js +35 -42
- package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js +43 -43
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js.map +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js +1 -1
- package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js.map +1 -1
- package/dist/features/chapters-v2/utils/node-card-utils.js +2 -2
- package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
- package/dist/features/communication/pub-sub/constants.js +4 -7
- package/dist/features/communication/pub-sub/constants.js.map +1 -1
- package/dist/features/homework/homework-card-view.js +97 -85
- package/dist/features/homework/homework-card-view.js.map +1 -1
- package/dist/features/homework/homework-card.js +42 -44
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +29 -31
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list.js +48 -54
- package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
- package/dist/features/homework/utils.js +27 -33
- package/dist/features/homework/utils.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js +11 -17
- package/dist/features/journey/hooks/use-home-page-journey/tooltip-item.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js +1 -1
- package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
- package/dist/features/journey/journey-id/journey-id-teacher.js +2 -2
- package/dist/features/journey/journey-id/journey-id-teacher.js.map +1 -1
- package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js +53 -68
- package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapters-list.js.map +1 -1
- package/dist/features/puzzles/app/puzzle-app-styled.js +6 -10
- package/dist/features/puzzles/app/puzzle-app-styled.js.map +1 -1
- package/dist/features/puzzles/comps/puzzle-card-styled.js +69 -24
- package/dist/features/puzzles/comps/puzzle-card-styled.js.map +1 -1
- package/dist/features/puzzles/comps/puzzle-card.js +30 -79
- package/dist/features/puzzles/comps/puzzle-card.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js +25 -55
- package/dist/features/puzzles/puzzle-container/puzzle-container-styled.js.map +1 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container.js +107 -100
- package/dist/features/puzzles/puzzle-container/puzzle-container.js.map +1 -1
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +1 -1
- package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -1
- package/dist/features/puzzles/utils/puzzle-pattern.js +13 -28
- package/dist/features/puzzles/utils/puzzle-pattern.js.map +1 -1
- package/dist/features/stickers/sticker-data.js +234 -0
- package/dist/features/stickers/sticker-data.js.map +1 -0
- package/dist/features/{ui/sticker-grid/sticker-grid-styles.js → stickers/sticker-selector/sticker-selector-styles.js} +23 -31
- package/dist/features/stickers/sticker-selector/sticker-selector-styles.js.map +1 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js +39 -0
- package/dist/features/stickers/sticker-selector/sticker-selector.js.map +1 -0
- package/dist/features/stickers/sticker-selector/sticker.js +56 -0
- package/dist/features/stickers/sticker-selector/sticker.js.map +1 -0
- package/dist/features/stickers/stickers-effects/effects.js +82 -0
- package/dist/features/stickers/stickers-effects/effects.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-cache.js +19 -0
- package/dist/features/stickers/stickers-effects/stickers-cache.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +105 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js +36 -0
- package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +1 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js +55 -0
- package/dist/features/stickers/stickers-effects/stickers-effects.js.map +1 -0
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js +8 -3
- package/dist/features/ui/arrow-tooltip/arrow-tooltip-styled.js.map +1 -1
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js +40 -40
- package/dist/features/ui/arrow-tooltip/arrow-tooltip.js.map +1 -1
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +88 -75
- package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
- package/dist/features/ui/lottie-animation/lottie-animation.js +45 -43
- package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
- package/dist/features/ui/modals/modal-styled.js +48 -15
- package/dist/features/ui/modals/modal-styled.js.map +1 -1
- package/dist/features/ui/modals/modal.js +43 -35
- package/dist/features/ui/modals/modal.js.map +1 -1
- package/dist/features/ui/theme/layout.js +3 -3
- package/dist/features/ui/theme/layout.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-helpers.js +19 -20
- package/dist/features/worksheet/worksheet/worksheet-helpers.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js +12 -16
- package/dist/features/worksheet/worksheet/worksheet-question/learnosity-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js +47 -101
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +163 -166
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js +207 -242
- package/dist/features/worksheet/worksheet/worksheet-questions-controller/worksheet-questions-controller.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-styled.js +34 -34
- package/dist/features/worksheet/worksheet/worksheet-styled.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-types.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet.js +430 -375
- package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js +1 -1
- package/dist/features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js.map +1 -1
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js +35 -44
- package/dist/features/worksheet/worksheet-preview/worksheet-preview.js.map +1 -1
- package/dist/index.d.ts +86 -149
- package/dist/index.js +418 -430
- package/dist/index.js.map +1 -1
- package/dist/static/animated-avatar.1ad58b1d.json +1 -0
- package/dist/static/animated-avatar.69b07505.json +1 -0
- package/dist/static/animated-avatar.9c560b46.json +1 -0
- package/dist/static/cuemath-app-qr-code.4beefe48.svg +1 -0
- package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +1 -0
- package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
- package/dist/static/otp.2d08f874.json +1 -0
- package/dist/static/phone-number.84f55562.json +1 -0
- package/dist/static/puzzle-pattern-blue.f4bea1ee.svg +1 -0
- package/dist/static/puzzle-pattern-green.c9f84bbc.svg +1 -0
- package/dist/static/puzzle-pattern-orange.3da09665.svg +1 -0
- package/dist/static/puzzle-pattern-purple.5fb5a319.svg +1 -0
- package/dist/static/puzzle-pattern-yellow.aadbf457.svg +1 -0
- package/dist/static/target-achieved-text.053bd142.json +2830 -0
- package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +1 -0
- package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +1 -0
- package/package.json +1 -1
- package/dist/features/auth/pla-signup/pla-analytics-events.js +0 -23
- package/dist/features/auth/pla-signup/pla-analytics-events.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +0 -72
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js +0 -59
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +0 -63
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js +0 -67
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js +0 -70
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js +0 -59
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js +0 -59
- package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.js.map +0 -1
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js +0 -70
- package/dist/features/journey/hooks/use-puzzles-journey/use-teacher-puzzle-assigned-journey.js.map +0 -1
- package/dist/features/puzzles/api/puzzle-dashboard.js +0 -10
- package/dist/features/puzzles/api/puzzle-dashboard.js.map +0 -1
- package/dist/features/puzzles/constants/puzzle-container.js +0 -8
- package/dist/features/puzzles/constants/puzzle-container.js.map +0 -1
- package/dist/features/puzzles/puzzle-analytics-events.js +0 -11
- package/dist/features/puzzles/puzzle-analytics-events.js.map +0 -1
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js +0 -55
- package/dist/features/puzzles/puzzle-container/puzzle-container-view.js.map +0 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js +0 -37
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard-styled.js.map +0 -1
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js +0 -107
- package/dist/features/puzzles/puzzle-dashboard/puzzle-dashboard.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker-grid.js +0 -24
- package/dist/features/ui/sticker-grid/sticker-grid.js.map +0 -1
- package/dist/features/ui/sticker-grid/sticker.js +0 -57
- package/dist/features/ui/sticker-grid/sticker.js.map +0 -1
- package/dist/features/ui/stickers/constants.js +0 -6
- package/dist/features/ui/stickers/constants.js.map +0 -1
- package/dist/features/ui/stickers/stickers-effects.js +0 -64
- package/dist/features/ui/stickers/stickers-effects.js.map +0 -1
- package/dist/features/ui/stickers/stickers-styled.js +0 -29
- package/dist/features/ui/stickers/stickers-styled.js.map +0 -1
- package/dist/features/ui/stickers/stickers-utils.js +0 -91
- package/dist/features/ui/stickers/stickers-utils.js.map +0 -1
- package/dist/features/ui/stickers/stickers.js +0 -40
- package/dist/features/ui/stickers/stickers.js.map +0 -1
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js +0 -28
- package/dist/features/worksheet/worksheet/hooks/use-worksheet-journey.js.map +0 -1
- package/dist/static/animated-avatar.c3a0fa98.json +0 -1
- package/dist/static/puzzle-blue-lottie.bf64ebc5.json +0 -12760
- package/dist/static/puzzle-dashboard-banner.b7956519.svg +0 -1
- package/dist/static/puzzle-green-lottie.1da90698.json +0 -1
- package/dist/static/puzzle-orange-lottie.0a105c42.json +0 -21206
- package/dist/static/puzzle-pattern-blue.abff0164.svg +0 -1
- package/dist/static/puzzle-pattern-green.b8ba1840.svg +0 -1
- package/dist/static/puzzle-pattern-orange.3f5a17ff.svg +0 -1
- package/dist/static/puzzle-pattern-purple.14b09759.svg +0 -1
- package/dist/static/puzzle-pattern-yellow.50917fab.svg +0 -1
- package/dist/static/puzzle-purple-lottie.e70de110.json +0 -9860
- package/dist/static/puzzle-yellow-lottie.275b5cf4.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="1920" height="2160" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="1920" height="2160" fill="#0D0D0D"/><line x1="370.5" y1="2160" x2="370.5" y2="6.55673e-08" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="1546.5" y1="2160" x2="1546.5" y2="6.55673e-08" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="1920" y1="244.5" x2="-1.31134e-07" y2="244.5" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="1920" y1="337.5" x2="-1.31134e-07" y2="337.5" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="1920" y1="526.5" x2="-1.31134e-07" y2="526.5" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="1920" y1="934.5" x2="-1.31134e-07" y2="934.5" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="898.5" y1="2160" x2="898.5" y2="933" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="1018.5" y1="2160" x2="1018.5" y2="933" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="1920" y1="1036.5" x2="-1.31134e-07" y2="1036.5" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="1920" y1="1462.5" x2="-1.31134e-07" y2="1462.5" stroke="white" stroke-opacity="0.15" stroke-width="3"/><line x1="1920" y1="1564.5" x2="-1.31134e-07" y2="1564.5" stroke="white" stroke-opacity="0.15" stroke-width="3"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="640" height="720" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="640" height="720" fill="#0D0D0D"/><line x1="123.5" y1="720" x2="123.5" y2="2.18557e-08" stroke="white" stroke-opacity="0.15"/><line x1="515.5" y1="720" x2="515.5" y2="2.18557e-08" stroke="white" stroke-opacity="0.15"/><line x1="640" y1="81.5" x2="-4.37113e-08" y2="81.4999" stroke="white" stroke-opacity="0.15"/><line x1="640" y1="112.5" x2="-4.37113e-08" y2="112.5" stroke="white" stroke-opacity="0.15"/><line x1="640" y1="175.5" x2="-4.37113e-08" y2="175.5" stroke="white" stroke-opacity="0.15"/><line x1="640" y1="311.5" x2="-4.37113e-08" y2="311.5" stroke="white" stroke-opacity="0.15"/><line x1="299.5" y1="720" x2="299.5" y2="311" stroke="white" stroke-opacity="0.15"/><line x1="339.5" y1="720" x2="339.5" y2="311" stroke="white" stroke-opacity="0.15"/><line x1="640" y1="345.5" x2="-4.37113e-08" y2="345.5" stroke="white" stroke-opacity="0.15"/><line x1="640" y1="487.5" x2="-4.37113e-08" y2="487.5" stroke="white" stroke-opacity="0.15"/><line x1="640" y1="521.5" x2="-4.37113e-08" y2="521.5" stroke="white" stroke-opacity="0.15"/></svg>
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { PLUGINS as _ } from "../../../node_modules/@cuemath/analytics-v2/dist/constants.js";
|
|
2
|
-
var s = /* @__PURE__ */ ((e) => (e.START_SIGNUP_CTA_CLICKED = "start_signup_cta_clicked", e.ECNA_STEP_VIEWED = "ecna_step_viewed", e.ECNA_RESPONSE_RECORDED_DEBUG = "ecna_response_recorded_debug", e.PARENT_SIGNUP_CTA_CLICKED = "parent_signup_cta_clicked", e.PARENT_SIGNUP_SUCCESSFUL = "parent_signup_successful", e.PARENT_SIGNUP_FAILED = "parent_signup_failed", e.STUDENT_SIGNUP_SUCCESSFUL = "signup_successful", e.STUDENT_SIGNUP_FAILED = "signup_failed", e.SIGNUP_OTP_ENTERED = "signup_otp_entered", e.SIGNUP_OTP_VERIFIED = "signup_otp_verified", e.SIGNUP_OTP_FAILED = "signup_otp_failed", e.SLOTS_SHOWN = "slots_shown", e.SLOT_DATE_SELECTED = "slot_date_selected", e.SLOT_TIME_SELECTED = "slot_time_selected", e))(s || {});
|
|
3
|
-
const i = {
|
|
4
|
-
start_signup_cta_clicked: [_.MIXPANEL],
|
|
5
|
-
ecna_step_viewed: [_.MIXPANEL],
|
|
6
|
-
ecna_response_recorded_debug: [_.MIXPANEL],
|
|
7
|
-
parent_signup_cta_clicked: [_.MIXPANEL],
|
|
8
|
-
parent_signup_successful: [_.MIXPANEL],
|
|
9
|
-
parent_signup_failed: [_.MIXPANEL],
|
|
10
|
-
signup_successful: [_.MIXPANEL],
|
|
11
|
-
signup_failed: [_.MIXPANEL],
|
|
12
|
-
signup_otp_entered: [_.MIXPANEL],
|
|
13
|
-
signup_otp_verified: [_.MIXPANEL],
|
|
14
|
-
signup_otp_failed: [_.MIXPANEL],
|
|
15
|
-
slots_shown: [_.MIXPANEL],
|
|
16
|
-
slot_date_selected: [_.MIXPANEL],
|
|
17
|
-
slot_time_selected: [_.MIXPANEL]
|
|
18
|
-
};
|
|
19
|
-
export {
|
|
20
|
-
s as PLA_ANALYTICS_EVENTS,
|
|
21
|
-
i as PLA_ANALYTICS_WHITELIST_EVENTS
|
|
22
|
-
};
|
|
23
|
-
//# sourceMappingURL=pla-analytics-events.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pla-analytics-events.js","sources":["../../../../src/features/auth/pla-signup/pla-analytics-events.ts"],"sourcesContent":["import { PLUGINS } from '@cuemath/analytics-v2/dist/constants';\n\nexport enum PLA_ANALYTICS_EVENTS {\n START_SIGNUP_CTA_CLICKED = 'start_signup_cta_clicked',\n ECNA_STEP_VIEWED = 'ecna_step_viewed',\n ECNA_RESPONSE_RECORDED_DEBUG = 'ecna_response_recorded_debug',\n PARENT_SIGNUP_CTA_CLICKED = 'parent_signup_cta_clicked',\n PARENT_SIGNUP_SUCCESSFUL = 'parent_signup_successful',\n PARENT_SIGNUP_FAILED = 'parent_signup_failed',\n STUDENT_SIGNUP_SUCCESSFUL = 'signup_successful',\n STUDENT_SIGNUP_FAILED = 'signup_failed',\n SIGNUP_OTP_ENTERED = 'signup_otp_entered',\n SIGNUP_OTP_VERIFIED = 'signup_otp_verified',\n SIGNUP_OTP_FAILED = 'signup_otp_failed',\n SLOTS_SHOWN = 'slots_shown',\n SLOT_DATE_SELECTED = 'slot_date_selected',\n SLOT_TIME_SELECTED = 'slot_time_selected',\n}\n\nexport const PLA_ANALYTICS_WHITELIST_EVENTS = {\n [PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.ECNA_STEP_VIEWED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.ECNA_RESPONSE_RECORDED_DEBUG]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_CTA_CLICKED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_SUCCESSFUL]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.PARENT_SIGNUP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STUDENT_SIGNUP_SUCCESSFUL]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.STUDENT_SIGNUP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_ENTERED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_VERIFIED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SIGNUP_OTP_FAILED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOTS_SHOWN]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOT_DATE_SELECTED]: [PLUGINS.MIXPANEL],\n [PLA_ANALYTICS_EVENTS.SLOT_TIME_SELECTED]: [PLUGINS.MIXPANEL],\n};\n"],"names":["PLA_ANALYTICS_EVENTS","PLA_ANALYTICS_WHITELIST_EVENTS","PLUGINS"],"mappings":";AAEY,IAAAA,sBAAAA,OACVA,EAAA,2BAA2B,4BAC3BA,EAAA,mBAAmB,oBACnBA,EAAA,+BAA+B,gCAC/BA,EAAA,4BAA4B,6BAC5BA,EAAA,2BAA2B,4BAC3BA,EAAA,uBAAuB,wBACvBA,EAAA,4BAA4B,qBAC5BA,EAAA,wBAAwB,iBACxBA,EAAA,qBAAqB,sBACrBA,EAAA,sBAAsB,uBACtBA,EAAA,oBAAoB,qBACpBA,EAAA,cAAc,eACdA,EAAA,qBAAqB,sBACrBA,EAAA,qBAAqB,sBAdXA,IAAAA,KAAA,CAAA,CAAA;AAiBL,MAAMC,IAAiC;AAAA,EAC3C,0BAAgD,CAACC,EAAQ,QAAQ;AAAA,EACjE,kBAAwC,CAACA,EAAQ,QAAQ;AAAA,EACzD,8BAAoD,CAACA,EAAQ,QAAQ;AAAA,EACrE,2BAAiD,CAACA,EAAQ,QAAQ;AAAA,EAClE,0BAAgD,CAACA,EAAQ,QAAQ;AAAA,EACjE,sBAA4C,CAACA,EAAQ,QAAQ;AAAA,EAC7D,mBAAiD,CAACA,EAAQ,QAAQ;AAAA,EAClE,eAA6C,CAACA,EAAQ,QAAQ;AAAA,EAC9D,oBAA0C,CAACA,EAAQ,QAAQ;AAAA,EAC3D,qBAA2C,CAACA,EAAQ,QAAQ;AAAA,EAC5D,mBAAyC,CAACA,EAAQ,QAAQ;AAAA,EAC1D,aAAmC,CAACA,EAAQ,QAAQ;AAAA,EACpD,oBAA0C,CAACA,EAAQ,QAAQ;AAAA,EAC3D,oBAA0C,CAACA,EAAQ,QAAQ;AAC9D;"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as r, useCallback as n, useMemo as h } from "react";
|
|
3
|
-
import C from "../../../homework/homework-card-view.js";
|
|
4
|
-
import T from "../../../ui/layout/flex-view.js";
|
|
5
|
-
import { JOURNEY_ID_STUDENT as w } from "../../journey-id/journey-id-student.js";
|
|
6
|
-
import { IndicatorType as E } from "../../use-journey/constants.js";
|
|
7
|
-
import { useJourney as b } from "../../use-journey/use-journey.js";
|
|
8
|
-
import g from "../use-home-page-journey/tooltip-item.js";
|
|
9
|
-
const z = () => {
|
|
10
|
-
const e = w.PUZZLE_ASSIGNED_JOURNEY, d = r(null), o = r(null), p = r([]), { setJourney: i, endJourney: s, nextCoachmark: l } = b(), a = n(() => {
|
|
11
|
-
l(e, !1, 0, !1);
|
|
12
|
-
}, [e, l]), u = n(() => {
|
|
13
|
-
document.body.style.overflow = "unset", s(e);
|
|
14
|
-
}, [s, e]), m = n(
|
|
15
|
-
(f) => {
|
|
16
|
-
if (!(o != null && o.current))
|
|
17
|
-
return;
|
|
18
|
-
const y = [
|
|
19
|
-
{
|
|
20
|
-
originalElementToHighlightRef: o,
|
|
21
|
-
elementToHighlight: /* @__PURE__ */ t(T, { children: /* @__PURE__ */ t(
|
|
22
|
-
C,
|
|
23
|
-
{
|
|
24
|
-
header: "",
|
|
25
|
-
subHeader: "",
|
|
26
|
-
userType: "STUDENT",
|
|
27
|
-
nodeData: f,
|
|
28
|
-
studentContainerRef: d
|
|
29
|
-
}
|
|
30
|
-
) }),
|
|
31
|
-
type: E.TOOLTIP,
|
|
32
|
-
indicator: {
|
|
33
|
-
renderAs: "primary",
|
|
34
|
-
tooltipXCoOrdinates: 66,
|
|
35
|
-
arrowSize: 12,
|
|
36
|
-
arrowXCoOrdinates: -100,
|
|
37
|
-
position: "bottom",
|
|
38
|
-
backgroundColor: "GREEN_4",
|
|
39
|
-
borderColor: "BLACK",
|
|
40
|
-
arrowColor: "BLACK",
|
|
41
|
-
tooltipItem: /* @__PURE__ */ t(
|
|
42
|
-
g,
|
|
43
|
-
{
|
|
44
|
-
text: "New Puzzle assigned! Click here to view.",
|
|
45
|
-
buttonLabel: "Got it",
|
|
46
|
-
onButtonClick: u
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
},
|
|
50
|
-
isActive: !1
|
|
51
|
-
}
|
|
52
|
-
];
|
|
53
|
-
i(e, y);
|
|
54
|
-
const c = setTimeout(() => {
|
|
55
|
-
clearTimeout(c), document.body.style.overflow = "hidden", a();
|
|
56
|
-
}, 500);
|
|
57
|
-
p.current.push(c);
|
|
58
|
-
},
|
|
59
|
-
[u, a, e, i]
|
|
60
|
-
);
|
|
61
|
-
return h(
|
|
62
|
-
() => ({
|
|
63
|
-
puzzleHWCardRef: o,
|
|
64
|
-
startJourney: m
|
|
65
|
-
}),
|
|
66
|
-
[m]
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
export {
|
|
70
|
-
z as usePuzzleAssignedJourney
|
|
71
|
-
};
|
|
72
|
-
//# sourceMappingURL=use-puzzle-assigned.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-puzzle-assigned.js","sources":["../../../../../src/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.tsx"],"sourcesContent":["import type { INodeDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\nimport type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport { useCallback, useMemo, useRef } from 'react';\n\nimport HomeworkCardView from '../../../homework/homework-card-view';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { JOURNEY_ID_STUDENT } from '../../journey-id/journey-id-student';\nimport { IndicatorType } from '../../use-journey/constants';\nimport { useJourney } from '../../use-journey/use-journey';\nimport TooltipItem from '../use-home-page-journey/tooltip-item';\n\nconst usePuzzleAssignedJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.PUZZLE_ASSIGNED_JOURNEY;\n\n const studentContainerRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const puzzleHWCardRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n const { setJourney, endJourney, nextCoachmark } = useJourney();\n\n const handleNextCoachMark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, false);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(\n (nodeData: INodeDataProps) => {\n if (!puzzleHWCardRef?.current) {\n return;\n }\n\n const puzzleAttemptSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: puzzleHWCardRef,\n elementToHighlight: (\n <FlexView>\n <HomeworkCardView\n header=\"\"\n subHeader=\"\"\n userType=\"STUDENT\"\n nodeData={nodeData}\n studentContainerRef={studentContainerRef}\n />\n </FlexView>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n renderAs: 'primary',\n tooltipXCoOrdinates: 66,\n arrowSize: 12,\n arrowXCoOrdinates: -100,\n position: 'bottom',\n backgroundColor: 'GREEN_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n tooltipItem: (\n <TooltipItem\n text=\"New Puzzle assigned! Click here to view.\"\n buttonLabel=\"Got it\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, puzzleAttemptSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n document.body.style.overflow = 'hidden';\n handleNextCoachMark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n },\n [handleEndJourney, handleNextCoachMark, journeyId, setJourney],\n );\n\n const data = useMemo(\n () => ({\n puzzleHWCardRef,\n startJourney,\n }),\n [startJourney],\n );\n\n return data;\n};\n\nexport { usePuzzleAssignedJourney };\n"],"names":["usePuzzleAssignedJourney","journeyId","JOURNEY_ID_STUDENT","studentContainerRef","useRef","puzzleHWCardRef","timerRefs","setJourney","endJourney","nextCoachmark","useJourney","handleNextCoachMark","useCallback","handleEndJourney","startJourney","nodeData","puzzleAttemptSteps","FlexView","jsx","HomeworkCardView","IndicatorType","TooltipItem","delayBeforeStart","useMemo"],"mappings":";;;;;;;;AAaA,MAAMA,IAA2B,MAAM;AACrC,QAAMC,IAAYC,EAAmB,yBAE/BC,IAAsBC,EAAuB,IAAI,GACjDC,IAAkBD,EAAuB,IAAI,GAC7CE,IAAYF,EAAwC,CAAA,CAAE,GAEtD,EAAE,YAAAG,GAAY,YAAAC,GAAY,eAAAC,MAAkBC,EAAW,GAEvDC,IAAsBC,EAAY,MAAM;AAC9B,IAAAH,EAAAR,GAAW,IAAO,GAAG,EAAK;AAAA,EAAA,GACvC,CAACA,GAAWQ,CAAa,CAAC,GAEvBI,IAAmBD,EAAY,MAAM;AAChC,aAAA,KAAK,MAAM,WAAW,SAC/BJ,EAAWP,CAAS;AAAA,EAAA,GACnB,CAACO,GAAYP,CAAS,CAAC,GAEpBa,IAAeF;AAAA,IACnB,CAACG,MAA6B;AACxB,UAAA,EAACV,KAAA,QAAAA,EAAiB;AACpB;AAGF,YAAMW,IAAwC;AAAA,QAC5C;AAAA,UACE,+BAA+BX;AAAA,UAC/B,sCACGY,GACC,EAAA,UAAA,gBAAAC;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,QAAO;AAAA,cACP,WAAU;AAAA,cACV,UAAS;AAAA,cACT,UAAAJ;AAAA,cACA,qBAAAZ;AAAA,YAAA;AAAA,UAAA,GAEJ;AAAA,UAEF,MAAMiB,EAAc;AAAA,UACpB,WAAW;AAAA,YACT,UAAU;AAAA,YACV,qBAAqB;AAAA,YACrB,WAAW;AAAA,YACX,mBAAmB;AAAA,YACnB,UAAU;AAAA,YACV,iBAAiB;AAAA,YACjB,aAAa;AAAA,YACb,YAAY;AAAA,YACZ,aACE,gBAAAF;AAAA,cAACG;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,aAAY;AAAA,gBACZ,eAAeR;AAAA,cAAA;AAAA,YACjB;AAAA,UAEJ;AAAA,UACA,UAAU;AAAA,QACZ;AAAA,MAAA;AAGF,MAAAN,EAAWN,GAAWe,CAAkB;AAElC,YAAAM,IAAmB,WAAW,MAAM;AACxC,qBAAaA,CAAgB,GACpB,SAAA,KAAK,MAAM,WAAW,UACXX;SACnB,GAAG;AAEI,MAAAL,EAAA,QAAQ,KAAKgB,CAAgB;AAAA,IACzC;AAAA,IACA,CAACT,GAAkBF,GAAqBV,GAAWM,CAAU;AAAA,EAAA;AAWxD,SARMgB;AAAA,IACX,OAAO;AAAA,MACL,iBAAAlB;AAAA,MACA,cAAAS;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAIjB;"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as c, useCallback as r, useMemo as y } from "react";
|
|
3
|
-
import f from "../../../ui/buttons/button/button.js";
|
|
4
|
-
import { JOURNEY_ID_STUDENT as h } from "../../journey-id/journey-id-student.js";
|
|
5
|
-
import { IndicatorType as T } from "../../use-journey/constants.js";
|
|
6
|
-
import { useJourney as C } from "../../use-journey/use-journey.js";
|
|
7
|
-
import b from "../use-home-page-journey/tooltip-item.js";
|
|
8
|
-
const z = () => {
|
|
9
|
-
const o = h.PUZZLE_ATTEMPT_JOURNEY, e = c(null), d = c([]), { setJourney: n, endJourney: i, nextCoachmark: s } = C(), l = r(() => {
|
|
10
|
-
s(o, !1, 0, !1);
|
|
11
|
-
}, [o, s]), a = r(() => {
|
|
12
|
-
document.body.style.overflow = "unset", i(o);
|
|
13
|
-
}, [i, o]), u = r(() => {
|
|
14
|
-
if (!(e != null && e.current))
|
|
15
|
-
return;
|
|
16
|
-
const p = [
|
|
17
|
-
{
|
|
18
|
-
originalElementToHighlightRef: e,
|
|
19
|
-
elementToHighlight: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(f, { renderAs: "primary", size: "small", label: "I have solved" }) }),
|
|
20
|
-
type: T.TOOLTIP,
|
|
21
|
-
indicator: {
|
|
22
|
-
renderAs: "primary",
|
|
23
|
-
tooltipXCoOrdinates: -100,
|
|
24
|
-
arrowSize: 12,
|
|
25
|
-
arrowXCoOrdinates: 100,
|
|
26
|
-
position: "top",
|
|
27
|
-
backgroundColor: "PURPLE_4",
|
|
28
|
-
borderColor: "BLACK",
|
|
29
|
-
arrowColor: "BLACK",
|
|
30
|
-
tooltipItem: /* @__PURE__ */ t(
|
|
31
|
-
b,
|
|
32
|
-
{
|
|
33
|
-
text: "Click here when you've solved the puzzle.",
|
|
34
|
-
buttonLabel: "Got it",
|
|
35
|
-
onButtonClick: a
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
},
|
|
39
|
-
isActive: !1
|
|
40
|
-
}
|
|
41
|
-
];
|
|
42
|
-
n(o, p);
|
|
43
|
-
const m = setTimeout(() => {
|
|
44
|
-
clearTimeout(m), document.body.style.overflow = "hidden", l();
|
|
45
|
-
}, 500);
|
|
46
|
-
d.current.push(m);
|
|
47
|
-
}, [a, l, o, n]);
|
|
48
|
-
return y(
|
|
49
|
-
() => ({
|
|
50
|
-
puzzleAttemptCtaRef: e,
|
|
51
|
-
startJourney: u
|
|
52
|
-
}),
|
|
53
|
-
[u]
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
z as usePuzzleAttemptJourney
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=use-puzzle-attempt-journey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-puzzle-attempt-journey.js","sources":["../../../../../src/features/journey/hooks/use-puzzles-journey/use-puzzle-attempt-journey.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport { useCallback, useMemo, useRef } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport { JOURNEY_ID_STUDENT } from '../../journey-id/journey-id-student';\nimport { IndicatorType } from '../../use-journey/constants';\nimport { useJourney } from '../../use-journey/use-journey';\nimport TooltipItem from '../use-home-page-journey/tooltip-item';\n\nconst usePuzzleAttemptJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.PUZZLE_ATTEMPT_JOURNEY;\n\n const puzzleAttemptCtaRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n const { setJourney, endJourney, nextCoachmark } = useJourney();\n\n const handleNextCoachMark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, false);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(() => {\n if (!puzzleAttemptCtaRef?.current) {\n return;\n }\n\n const puzzleAttemptSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: puzzleAttemptCtaRef,\n elementToHighlight: (\n <div>\n <Button renderAs=\"primary\" size=\"small\" label=\"I have solved\" />\n </div>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n renderAs: 'primary',\n tooltipXCoOrdinates: -100,\n arrowSize: 12,\n arrowXCoOrdinates: 100,\n position: 'top',\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n tooltipItem: (\n <TooltipItem\n text={`Click here when you've solved the puzzle.`}\n buttonLabel=\"Got it\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, puzzleAttemptSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n document.body.style.overflow = 'hidden';\n handleNextCoachMark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n }, [handleEndJourney, handleNextCoachMark, journeyId, setJourney]);\n\n const data = useMemo(\n () => ({\n puzzleAttemptCtaRef,\n startJourney,\n }),\n [startJourney],\n );\n\n return data;\n};\n\nexport { usePuzzleAttemptJourney };\n"],"names":["usePuzzleAttemptJourney","journeyId","JOURNEY_ID_STUDENT","puzzleAttemptCtaRef","useRef","timerRefs","setJourney","endJourney","nextCoachmark","useJourney","handleNextCoachMark","useCallback","handleEndJourney","startJourney","puzzleAttemptSteps","jsx","Button","IndicatorType","TooltipItem","delayBeforeStart","useMemo"],"mappings":";;;;;;;AAWA,MAAMA,IAA0B,MAAM;AACpC,QAAMC,IAAYC,EAAmB,wBAE/BC,IAAsBC,EAAuB,IAAI,GACjDC,IAAYD,EAAwC,CAAA,CAAE,GAEtD,EAAE,YAAAE,GAAY,YAAAC,GAAY,eAAAC,MAAkBC,EAAW,GAEvDC,IAAsBC,EAAY,MAAM;AAC9B,IAAAH,EAAAP,GAAW,IAAO,GAAG,EAAK;AAAA,EAAA,GACvC,CAACA,GAAWO,CAAa,CAAC,GAEvBI,IAAmBD,EAAY,MAAM;AAChC,aAAA,KAAK,MAAM,WAAW,SAC/BJ,EAAWN,CAAS;AAAA,EAAA,GACnB,CAACM,GAAYN,CAAS,CAAC,GAEpBY,IAAeF,EAAY,MAAM;AACjC,QAAA,EAACR,KAAA,QAAAA,EAAqB;AACxB;AAGF,UAAMW,IAAwC;AAAA,MAC5C;AAAA,QACE,+BAA+BX;AAAA,QAC/B,oBACG,gBAAAY,EAAA,OAAA,EACC,UAAC,gBAAAA,EAAAC,GAAA,EAAO,UAAS,WAAU,MAAK,SAAQ,OAAM,gBAAA,CAAgB,EAChE,CAAA;AAAA,QAEF,MAAMC,EAAc;AAAA,QACpB,WAAW;AAAA,UACT,UAAU;AAAA,UACV,qBAAqB;AAAA,UACrB,WAAW;AAAA,UACX,mBAAmB;AAAA,UACnB,UAAU;AAAA,UACV,iBAAiB;AAAA,UACjB,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,aACE,gBAAAF;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,MAAM;AAAA,cACN,aAAY;AAAA,cACZ,eAAeN;AAAA,YAAA;AAAA,UACjB;AAAA,QAEJ;AAAA,QACA,UAAU;AAAA,MACZ;AAAA,IAAA;AAGF,IAAAN,EAAWL,GAAWa,CAAkB;AAElC,UAAAK,IAAmB,WAAW,MAAM;AACxC,mBAAaA,CAAgB,GACpB,SAAA,KAAK,MAAM,WAAW,UACXT;OACnB,GAAG;AAEI,IAAAL,EAAA,QAAQ,KAAKc,CAAgB;AAAA,KACtC,CAACP,GAAkBF,GAAqBT,GAAWK,CAAU,CAAC;AAU1D,SARMc;AAAA,IACX,OAAO;AAAA,MACL,qBAAAjB;AAAA,MACA,cAAAU;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAIjB;"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as c, useCallback as r, useMemo as f } from "react";
|
|
3
|
-
import h from "../../../ui/avatar/avatar.js";
|
|
4
|
-
import { JOURNEY_ID_STUDENT as C } from "../../journey-id/journey-id-student.js";
|
|
5
|
-
import { IndicatorType as T } from "../../use-journey/constants.js";
|
|
6
|
-
import { useJourney as b } from "../../use-journey/use-journey.js";
|
|
7
|
-
import A from "../use-home-page-journey/tooltip-item.js";
|
|
8
|
-
const I = () => {
|
|
9
|
-
const o = C.PUZZLE_DASHBOARD_JOURNEY, t = c(null), d = c([]), { setJourney: n, endJourney: i, nextCoachmark: s } = b(), a = r(() => {
|
|
10
|
-
s(o, !1, 0, !1);
|
|
11
|
-
}, [o, s]), l = r(() => {
|
|
12
|
-
document.body.style.overflow = "unset", i(o);
|
|
13
|
-
}, [i, o]), u = r(
|
|
14
|
-
(p) => {
|
|
15
|
-
if (!(t != null && t.current))
|
|
16
|
-
return;
|
|
17
|
-
const y = [
|
|
18
|
-
{
|
|
19
|
-
originalElementToHighlightRef: t,
|
|
20
|
-
elementToHighlight: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(h, { size: 55, avatar: p }) }),
|
|
21
|
-
type: T.TOOLTIP,
|
|
22
|
-
indicator: {
|
|
23
|
-
renderAs: "primary",
|
|
24
|
-
tooltipXCoOrdinates: 42,
|
|
25
|
-
tooltipYCoOrdinates: 36,
|
|
26
|
-
arrowSize: 12,
|
|
27
|
-
arrowYCoOrdinates: -36,
|
|
28
|
-
position: "right",
|
|
29
|
-
backgroundColor: "BLUE_4",
|
|
30
|
-
borderColor: "BLACK",
|
|
31
|
-
arrowColor: "BLACK",
|
|
32
|
-
tooltipItem: /* @__PURE__ */ e(
|
|
33
|
-
A,
|
|
34
|
-
{
|
|
35
|
-
text: "Click here to see all previously solved puzzles.",
|
|
36
|
-
buttonLabel: "Got it",
|
|
37
|
-
onButtonClick: l
|
|
38
|
-
}
|
|
39
|
-
)
|
|
40
|
-
},
|
|
41
|
-
isActive: !1
|
|
42
|
-
}
|
|
43
|
-
];
|
|
44
|
-
n(o, y);
|
|
45
|
-
const m = setTimeout(() => {
|
|
46
|
-
clearTimeout(m), document.body.style.overflow = "hidden", a();
|
|
47
|
-
}, 500);
|
|
48
|
-
d.current.push(m);
|
|
49
|
-
},
|
|
50
|
-
[l, a, o, n]
|
|
51
|
-
);
|
|
52
|
-
return f(
|
|
53
|
-
() => ({
|
|
54
|
-
puzzleProfileRef: t,
|
|
55
|
-
startJourney: u
|
|
56
|
-
}),
|
|
57
|
-
[u]
|
|
58
|
-
);
|
|
59
|
-
};
|
|
60
|
-
export {
|
|
61
|
-
I as usePuzzleDashboardJourney
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=use-puzzle-dashboard-journey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-puzzle-dashboard-journey.js","sources":["../../../../../src/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { IAvatarLayer } from '../../../ui/avatar/avatar-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport { useCallback, useMemo, useRef } from 'react';\n\nimport Avatar from '../../../ui/avatar/avatar';\nimport { JOURNEY_ID_STUDENT } from '../../journey-id/journey-id-student';\nimport { IndicatorType } from '../../use-journey/constants';\nimport { useJourney } from '../../use-journey/use-journey';\nimport TooltipItem from '../use-home-page-journey/tooltip-item';\n\nconst usePuzzleDashboardJourney = () => {\n const journeyId = JOURNEY_ID_STUDENT.PUZZLE_DASHBOARD_JOURNEY;\n\n const puzzleProfileRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n const { setJourney, endJourney, nextCoachmark } = useJourney();\n\n const handleNextCoachMark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, false);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(\n (avatar: IAvatarLayer[]) => {\n if (!puzzleProfileRef?.current) {\n return;\n }\n\n const puzzleAttemptSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: puzzleProfileRef,\n elementToHighlight: (\n <div>\n <Avatar size={55} avatar={avatar} />\n </div>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n renderAs: 'primary',\n tooltipXCoOrdinates: 42,\n tooltipYCoOrdinates: 36,\n arrowSize: 12,\n arrowYCoOrdinates: -36,\n position: 'right',\n backgroundColor: 'BLUE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n tooltipItem: (\n <TooltipItem\n text=\"Click here to see all previously solved puzzles.\"\n buttonLabel=\"Got it\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, puzzleAttemptSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n document.body.style.overflow = 'hidden';\n handleNextCoachMark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n },\n [handleEndJourney, handleNextCoachMark, journeyId, setJourney],\n );\n\n const data = useMemo(\n () => ({\n puzzleProfileRef,\n startJourney,\n }),\n [startJourney],\n );\n\n return data;\n};\n\nexport { usePuzzleDashboardJourney };\n"],"names":["usePuzzleDashboardJourney","journeyId","JOURNEY_ID_STUDENT","puzzleProfileRef","useRef","timerRefs","setJourney","endJourney","nextCoachmark","useJourney","handleNextCoachMark","useCallback","handleEndJourney","startJourney","avatar","puzzleAttemptSteps","jsx","Avatar","IndicatorType","TooltipItem","delayBeforeStart","useMemo"],"mappings":";;;;;;;AAYA,MAAMA,IAA4B,MAAM;AACtC,QAAMC,IAAYC,EAAmB,0BAE/BC,IAAmBC,EAAuB,IAAI,GAC9CC,IAAYD,EAAwC,CAAA,CAAE,GAEtD,EAAE,YAAAE,GAAY,YAAAC,GAAY,eAAAC,MAAkBC,EAAW,GAEvDC,IAAsBC,EAAY,MAAM;AAC9B,IAAAH,EAAAP,GAAW,IAAO,GAAG,EAAK;AAAA,EAAA,GACvC,CAACA,GAAWO,CAAa,CAAC,GAEvBI,IAAmBD,EAAY,MAAM;AAChC,aAAA,KAAK,MAAM,WAAW,SAC/BJ,EAAWN,CAAS;AAAA,EAAA,GACnB,CAACM,GAAYN,CAAS,CAAC,GAEpBY,IAAeF;AAAA,IACnB,CAACG,MAA2B;AACtB,UAAA,EAACX,KAAA,QAAAA,EAAkB;AACrB;AAGF,YAAMY,IAAwC;AAAA,QAC5C;AAAA,UACE,+BAA+BZ;AAAA,UAC/B,sCACG,OACC,EAAA,UAAA,gBAAAa,EAACC,KAAO,MAAM,IAAI,QAAAH,GAAgB,EACpC,CAAA;AAAA,UAEF,MAAMI,EAAc;AAAA,UACpB,WAAW;AAAA,YACT,UAAU;AAAA,YACV,qBAAqB;AAAA,YACrB,qBAAqB;AAAA,YACrB,WAAW;AAAA,YACX,mBAAmB;AAAA,YACnB,UAAU;AAAA,YACV,iBAAiB;AAAA,YACjB,aAAa;AAAA,YACb,YAAY;AAAA,YACZ,aACE,gBAAAF;AAAA,cAACG;AAAA,cAAA;AAAA,gBACC,MAAK;AAAA,gBACL,aAAY;AAAA,gBACZ,eAAeP;AAAA,cAAA;AAAA,YACjB;AAAA,UAEJ;AAAA,UACA,UAAU;AAAA,QACZ;AAAA,MAAA;AAGF,MAAAN,EAAWL,GAAWc,CAAkB;AAElC,YAAAK,IAAmB,WAAW,MAAM;AACxC,qBAAaA,CAAgB,GACpB,SAAA,KAAK,MAAM,WAAW,UACXV;SACnB,GAAG;AAEI,MAAAL,EAAA,QAAQ,KAAKe,CAAgB;AAAA,IACzC;AAAA,IACA,CAACR,GAAkBF,GAAqBT,GAAWK,CAAU;AAAA,EAAA;AAWxD,SARMe;AAAA,IACX,OAAO;AAAA,MACL,kBAAAlB;AAAA,MACA,cAAAU;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAIjB;"}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as T } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as p, useCallback as r, useMemo as b } from "react";
|
|
3
|
-
import g from "../../../../assets/line-icons/icons/puzzle2.js";
|
|
4
|
-
import f from "../../../ui/layout/flex-view.js";
|
|
5
|
-
import h from "../../../ui/text/text.js";
|
|
6
|
-
import { getTheme as E } from "../../../ui/theme/get-theme.js";
|
|
7
|
-
import { JOURNEY_ID_TEACHER as P } from "../../journey-id/journey-id-teacher.js";
|
|
8
|
-
import { IndicatorType as x } from "../../use-journey/constants.js";
|
|
9
|
-
import { useJourney as z } from "../../use-journey/use-journey.js";
|
|
10
|
-
import I from "../use-home-page-journey/tooltip-item.js";
|
|
11
|
-
const N = ({ onJourneyComplete: n }) => {
|
|
12
|
-
const e = P.PUZZLE_INTRO_JOURNEY, o = p(null), y = p([]), { setJourney: i, endJourney: l, nextCoachmark: s } = z(), { colors: a } = E(), c = r(() => {
|
|
13
|
-
s(e, !1, 0, !1);
|
|
14
|
-
}, [e, s]), m = r(() => {
|
|
15
|
-
document.body.style.overflow = "unset", l(e), n();
|
|
16
|
-
}, [l, e, n]), d = r(() => {
|
|
17
|
-
if (!(o != null && o.current))
|
|
18
|
-
return;
|
|
19
|
-
const C = [
|
|
20
|
-
{
|
|
21
|
-
originalElementToHighlightRef: o,
|
|
22
|
-
elementToHighlight: /* @__PURE__ */ t(f, { $gap: 12, $gutter: 12, children: /* @__PURE__ */ t(g, { width: 20, height: 20, fill: a.PURPLE_4 }) }),
|
|
23
|
-
type: x.TOOLTIP,
|
|
24
|
-
indicator: {
|
|
25
|
-
renderAs: "primary",
|
|
26
|
-
tooltipXCoOrdinates: -100,
|
|
27
|
-
tooltipYCoOrdinates: -1,
|
|
28
|
-
arrowSize: 12,
|
|
29
|
-
arrowXCoOrdinates: 100,
|
|
30
|
-
position: "bottom",
|
|
31
|
-
backgroundColor: "PURPLE_4",
|
|
32
|
-
borderColor: "BLACK",
|
|
33
|
-
arrowColor: "BLACK",
|
|
34
|
-
tooltipItem: /* @__PURE__ */ t(
|
|
35
|
-
I,
|
|
36
|
-
{
|
|
37
|
-
element: /* @__PURE__ */ T(f, { children: [
|
|
38
|
-
/* @__PURE__ */ t(h, { $renderAs: "ac4-black", children: "Improved puzzles experience!" }),
|
|
39
|
-
/* @__PURE__ */ t(h, { $renderAs: "ab2", children: "One puzzle per class, auto-adapted to student level." })
|
|
40
|
-
] }),
|
|
41
|
-
buttonLabel: "Click to View",
|
|
42
|
-
ctaWidth: "max-content",
|
|
43
|
-
onButtonClick: m
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
},
|
|
47
|
-
isActive: !1
|
|
48
|
-
}
|
|
49
|
-
];
|
|
50
|
-
i(e, C);
|
|
51
|
-
const u = setTimeout(() => {
|
|
52
|
-
clearTimeout(u), document.body.style.overflow = "hidden", c();
|
|
53
|
-
}, 500);
|
|
54
|
-
y.current.push(u);
|
|
55
|
-
}, [a.PURPLE_4, m, c, e, i]);
|
|
56
|
-
return b(
|
|
57
|
-
() => ({
|
|
58
|
-
puzzleIconRef: o,
|
|
59
|
-
startJourney: d
|
|
60
|
-
}),
|
|
61
|
-
[d]
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
export {
|
|
65
|
-
N as usePuzzleIntroJourney
|
|
66
|
-
};
|
|
67
|
-
//# sourceMappingURL=use-puzzle-intro-journey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-puzzle-intro-journey.js","sources":["../../../../../src/features/journey/hooks/use-puzzles-journey/use-puzzle-intro-journey.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\nimport type { IUsePuzzleIntroJourney } from './puzzle-journey-types';\n\nimport { useCallback, useMemo, useRef } from 'react';\n\nimport PuzzleIcon2 from '../../../../assets/line-icons/icons/puzzle2';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { getTheme } from '../../../ui/theme/get-theme';\nimport { JOURNEY_ID_TEACHER } from '../../journey-id/journey-id-teacher';\nimport { IndicatorType } from '../../use-journey/constants';\nimport { useJourney } from '../../use-journey/use-journey';\nimport TooltipItem from '../use-home-page-journey/tooltip-item';\n\nconst usePuzzleIntroJourney = ({ onJourneyComplete }: IUsePuzzleIntroJourney) => {\n const journeyId = JOURNEY_ID_TEACHER.PUZZLE_INTRO_JOURNEY;\n\n const puzzleIconRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n const { setJourney, endJourney, nextCoachmark } = useJourney();\n const { colors } = getTheme();\n\n const handleNextCoachMark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, false);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n onJourneyComplete();\n }, [endJourney, journeyId, onJourneyComplete]);\n\n const startJourney = useCallback(() => {\n if (!puzzleIconRef?.current) {\n return;\n }\n\n const puzzleAttemptSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: puzzleIconRef,\n elementToHighlight: (\n <FlexView $gap={12} $gutter={12}>\n <PuzzleIcon2 width={20} height={20} fill={colors.PURPLE_4} />\n </FlexView>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n renderAs: 'primary',\n tooltipXCoOrdinates: -100,\n tooltipYCoOrdinates: -1,\n arrowSize: 12,\n arrowXCoOrdinates: 100,\n position: 'bottom',\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n tooltipItem: (\n <TooltipItem\n element={\n <FlexView>\n <Text $renderAs=\"ac4-black\">Improved puzzles experience!</Text>\n <Text $renderAs=\"ab2\">One puzzle per class, auto-adapted to student level.</Text>\n </FlexView>\n }\n buttonLabel=\"Click to View\"\n ctaWidth=\"max-content\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, puzzleAttemptSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n document.body.style.overflow = 'hidden';\n handleNextCoachMark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n }, [colors.PURPLE_4, handleEndJourney, handleNextCoachMark, journeyId, setJourney]);\n\n const data = useMemo(\n () => ({\n puzzleIconRef,\n startJourney,\n }),\n [startJourney],\n );\n\n return data;\n};\n\nexport { usePuzzleIntroJourney };\n"],"names":["usePuzzleIntroJourney","onJourneyComplete","journeyId","JOURNEY_ID_TEACHER","puzzleIconRef","useRef","timerRefs","setJourney","endJourney","nextCoachmark","useJourney","colors","getTheme","handleNextCoachMark","useCallback","handleEndJourney","startJourney","puzzleAttemptSteps","jsx","FlexView","PuzzleIcon2","IndicatorType","TooltipItem","Text","delayBeforeStart","useMemo"],"mappings":";;;;;;;;;;AAeA,MAAMA,IAAwB,CAAC,EAAE,mBAAAC,QAAgD;AAC/E,QAAMC,IAAYC,EAAmB,sBAE/BC,IAAgBC,EAAuB,IAAI,GAC3CC,IAAYD,EAAwC,CAAA,CAAE,GAEtD,EAAE,YAAAE,GAAY,YAAAC,GAAY,eAAAC,MAAkBC,EAAW,GACvD,EAAE,QAAAC,MAAWC,KAEbC,IAAsBC,EAAY,MAAM;AAC9B,IAAAL,EAAAP,GAAW,IAAO,GAAG,EAAK;AAAA,EAAA,GACvC,CAACA,GAAWO,CAAa,CAAC,GAEvBM,IAAmBD,EAAY,MAAM;AAChC,aAAA,KAAK,MAAM,WAAW,SAC/BN,EAAWN,CAAS,GACFD;EACjB,GAAA,CAACO,GAAYN,GAAWD,CAAiB,CAAC,GAEvCe,IAAeF,EAAY,MAAM;AACjC,QAAA,EAACV,KAAA,QAAAA,EAAe;AAClB;AAGF,UAAMa,IAAwC;AAAA,MAC5C;AAAA,QACE,+BAA+Bb;AAAA,QAC/B,oBACG,gBAAAc,EAAAC,GAAA,EAAS,MAAM,IAAI,SAAS,IAC3B,UAAA,gBAAAD,EAACE,GAAY,EAAA,OAAO,IAAI,QAAQ,IAAI,MAAMT,EAAO,SAAU,CAAA,GAC7D;AAAA,QAEF,MAAMU,EAAc;AAAA,QACpB,WAAW;AAAA,UACT,UAAU;AAAA,UACV,qBAAqB;AAAA,UACrB,qBAAqB;AAAA,UACrB,WAAW;AAAA,UACX,mBAAmB;AAAA,UACnB,UAAU;AAAA,UACV,iBAAiB;AAAA,UACjB,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,aACE,gBAAAH;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,2BACGH,GACC,EAAA,UAAA;AAAA,gBAAC,gBAAAD,EAAAK,GAAA,EAAK,WAAU,aAAY,UAA4B,gCAAA;AAAA,gBACvD,gBAAAL,EAAAK,GAAA,EAAK,WAAU,OAAM,UAAoD,wDAAA;AAAA,cAAA,GAC5E;AAAA,cAEF,aAAY;AAAA,cACZ,UAAS;AAAA,cACT,eAAeR;AAAA,YAAA;AAAA,UACjB;AAAA,QAEJ;AAAA,QACA,UAAU;AAAA,MACZ;AAAA,IAAA;AAGF,IAAAR,EAAWL,GAAWe,CAAkB;AAElC,UAAAO,IAAmB,WAAW,MAAM;AACxC,mBAAaA,CAAgB,GACpB,SAAA,KAAK,MAAM,WAAW,UACXX;OACnB,GAAG;AAEI,IAAAP,EAAA,QAAQ,KAAKkB,CAAgB;AAAA,EAAA,GACtC,CAACb,EAAO,UAAUI,GAAkBF,GAAqBX,GAAWK,CAAU,CAAC;AAU3E,SARMkB;AAAA,IACX,OAAO;AAAA,MACL,eAAArB;AAAA,MACA,cAAAY;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAIjB;"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as c, useCallback as r, useMemo as p } from "react";
|
|
3
|
-
import y from "../../../ui/layout/flex-view.js";
|
|
4
|
-
import h from "../../../ui/text/text.js";
|
|
5
|
-
import { JOURNEY_ID_TEACHER as C } from "../../journey-id/journey-id-teacher.js";
|
|
6
|
-
import { IndicatorType as b } from "../../use-journey/constants.js";
|
|
7
|
-
import { useJourney as E } from "../../use-journey/use-journey.js";
|
|
8
|
-
import T from "../use-home-page-journey/tooltip-item.js";
|
|
9
|
-
const P = () => {
|
|
10
|
-
const e = C.PUZZLE_PROGRESS_JOURNEY, o = c(null), d = c([]), { setJourney: n, endJourney: i, nextCoachmark: s } = E(), l = r(() => {
|
|
11
|
-
s(e, !1, 0, !1);
|
|
12
|
-
}, [e, s]), a = r(() => {
|
|
13
|
-
document.body.style.overflow = "unset", i(e);
|
|
14
|
-
}, [i, e]), m = r(() => {
|
|
15
|
-
if (!(o != null && o.current))
|
|
16
|
-
return;
|
|
17
|
-
const f = [
|
|
18
|
-
{
|
|
19
|
-
originalElementToHighlightRef: o,
|
|
20
|
-
elementToHighlight: /* @__PURE__ */ t(
|
|
21
|
-
y,
|
|
22
|
-
{
|
|
23
|
-
$widthX: 3.625,
|
|
24
|
-
$flexDirection: "row",
|
|
25
|
-
$background: "WHITE",
|
|
26
|
-
$justifyContent: "center",
|
|
27
|
-
$alignItems: "center",
|
|
28
|
-
children: /* @__PURE__ */ t(h, { $renderAs: "ub2", children: "Progress" })
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
type: b.TOOLTIP,
|
|
32
|
-
indicator: {
|
|
33
|
-
renderAs: "primary",
|
|
34
|
-
tooltipXCoOrdinates: -100,
|
|
35
|
-
arrowSize: 12,
|
|
36
|
-
arrowXCoOrdinates: 100,
|
|
37
|
-
position: "bottom",
|
|
38
|
-
backgroundColor: "GREEN_4",
|
|
39
|
-
borderColor: "BLACK",
|
|
40
|
-
arrowColor: "BLACK",
|
|
41
|
-
tooltipItem: /* @__PURE__ */ t(
|
|
42
|
-
T,
|
|
43
|
-
{
|
|
44
|
-
text: "Puzzles are available on the timeline view.",
|
|
45
|
-
buttonLabel: "Got it",
|
|
46
|
-
onButtonClick: a
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
},
|
|
50
|
-
isActive: !1
|
|
51
|
-
}
|
|
52
|
-
];
|
|
53
|
-
n(e, f);
|
|
54
|
-
const u = setTimeout(() => {
|
|
55
|
-
clearTimeout(u), document.body.style.overflow = "hidden", l();
|
|
56
|
-
}, 500);
|
|
57
|
-
d.current.push(u);
|
|
58
|
-
}, [a, l, e, n]);
|
|
59
|
-
return p(
|
|
60
|
-
() => ({
|
|
61
|
-
puzzleProgressRef: o,
|
|
62
|
-
startJourney: m
|
|
63
|
-
}),
|
|
64
|
-
[m]
|
|
65
|
-
);
|
|
66
|
-
};
|
|
67
|
-
export {
|
|
68
|
-
P as usePuzzleProgressJourney
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=use-puzzle-progress-journey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-puzzle-progress-journey.js","sources":["../../../../../src/features/journey/hooks/use-puzzles-journey/use-puzzle-progress-journey.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport { useCallback, useMemo, useRef } from 'react';\n\nimport FlexView from '../../../ui/layout/flex-view';\nimport Text from '../../../ui/text/text';\nimport { JOURNEY_ID_TEACHER } from '../../journey-id/journey-id-teacher';\nimport { IndicatorType } from '../../use-journey/constants';\nimport { useJourney } from '../../use-journey/use-journey';\nimport TooltipItem from '../use-home-page-journey/tooltip-item';\n\nconst usePuzzleProgressJourney = () => {\n const journeyId = JOURNEY_ID_TEACHER.PUZZLE_PROGRESS_JOURNEY;\n\n const puzzleProgressRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n const { setJourney, endJourney, nextCoachmark } = useJourney();\n\n const handleNextCoachMark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, false);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(() => {\n if (!puzzleProgressRef?.current) {\n return;\n }\n\n const puzzleAttemptSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: puzzleProgressRef,\n elementToHighlight: (\n <FlexView\n $widthX={3.625}\n $flexDirection=\"row\"\n $background=\"WHITE\"\n $justifyContent=\"center\"\n $alignItems=\"center\"\n >\n <Text $renderAs=\"ub2\">Progress</Text>\n </FlexView>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n renderAs: 'primary',\n tooltipXCoOrdinates: -100,\n arrowSize: 12,\n arrowXCoOrdinates: 100,\n position: 'bottom',\n backgroundColor: 'GREEN_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n tooltipItem: (\n <TooltipItem\n text=\"Puzzles are available on the timeline view.\"\n buttonLabel=\"Got it\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, puzzleAttemptSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n document.body.style.overflow = 'hidden';\n handleNextCoachMark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n }, [handleEndJourney, handleNextCoachMark, journeyId, setJourney]);\n\n const data = useMemo(\n () => ({\n puzzleProgressRef,\n startJourney,\n }),\n [startJourney],\n );\n\n return data;\n};\n\nexport { usePuzzleProgressJourney };\n"],"names":["usePuzzleProgressJourney","journeyId","JOURNEY_ID_TEACHER","puzzleProgressRef","useRef","timerRefs","setJourney","endJourney","nextCoachmark","useJourney","handleNextCoachMark","useCallback","handleEndJourney","startJourney","puzzleAttemptSteps","jsx","FlexView","Text","IndicatorType","TooltipItem","delayBeforeStart","useMemo"],"mappings":";;;;;;;;AAYA,MAAMA,IAA2B,MAAM;AACrC,QAAMC,IAAYC,EAAmB,yBAE/BC,IAAoBC,EAAuB,IAAI,GAC/CC,IAAYD,EAAwC,CAAA,CAAE,GAEtD,EAAE,YAAAE,GAAY,YAAAC,GAAY,eAAAC,MAAkBC,EAAW,GAEvDC,IAAsBC,EAAY,MAAM;AAC9B,IAAAH,EAAAP,GAAW,IAAO,GAAG,EAAK;AAAA,EAAA,GACvC,CAACA,GAAWO,CAAa,CAAC,GAEvBI,IAAmBD,EAAY,MAAM;AAChC,aAAA,KAAK,MAAM,WAAW,SAC/BJ,EAAWN,CAAS;AAAA,EAAA,GACnB,CAACM,GAAYN,CAAS,CAAC,GAEpBY,IAAeF,EAAY,MAAM;AACjC,QAAA,EAACR,KAAA,QAAAA,EAAmB;AACtB;AAGF,UAAMW,IAAwC;AAAA,MAC5C;AAAA,QACE,+BAA+BX;AAAA,QAC/B,oBACE,gBAAAY;AAAA,UAACC;AAAA,UAAA;AAAA,YACC,SAAS;AAAA,YACT,gBAAe;AAAA,YACf,aAAY;AAAA,YACZ,iBAAgB;AAAA,YAChB,aAAY;AAAA,YAEZ,UAAC,gBAAAD,EAAAE,GAAA,EAAK,WAAU,OAAM,UAAQ,YAAA;AAAA,UAAA;AAAA,QAChC;AAAA,QAEF,MAAMC,EAAc;AAAA,QACpB,WAAW;AAAA,UACT,UAAU;AAAA,UACV,qBAAqB;AAAA,UACrB,WAAW;AAAA,UACX,mBAAmB;AAAA,UACnB,UAAU;AAAA,UACV,iBAAiB;AAAA,UACjB,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,aACE,gBAAAH;AAAA,YAACI;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,aAAY;AAAA,cACZ,eAAeP;AAAA,YAAA;AAAA,UACjB;AAAA,QAEJ;AAAA,QACA,UAAU;AAAA,MACZ;AAAA,IAAA;AAGF,IAAAN,EAAWL,GAAWa,CAAkB;AAElC,UAAAM,IAAmB,WAAW,MAAM;AACxC,mBAAaA,CAAgB,GACpB,SAAA,KAAK,MAAM,WAAW,UACXV;OACnB,GAAG;AAEI,IAAAL,EAAA,QAAQ,KAAKe,CAAgB;AAAA,KACtC,CAACR,GAAkBF,GAAqBT,GAAWK,CAAU,CAAC;AAU1D,SARMe;AAAA,IACX,OAAO;AAAA,MACL,mBAAAlB;AAAA,MACA,cAAAU;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAIjB;"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as c, useCallback as r, useMemo as f } from "react";
|
|
3
|
-
import y from "../../../ui/buttons/button/button.js";
|
|
4
|
-
import { JOURNEY_ID_TEACHER as h } from "../../journey-id/journey-id-teacher.js";
|
|
5
|
-
import { IndicatorType as C } from "../../use-journey/constants.js";
|
|
6
|
-
import { useJourney as E } from "../../use-journey/use-journey.js";
|
|
7
|
-
import T from "../use-home-page-journey/tooltip-item.js";
|
|
8
|
-
const k = () => {
|
|
9
|
-
const o = h.PUZZLE_REVIEW_JOURNEY, e = c(null), d = c([]), { setJourney: n, endJourney: i, nextCoachmark: s } = E(), l = r(() => {
|
|
10
|
-
s(o, !1, 0, !1);
|
|
11
|
-
}, [o, s]), a = r(() => {
|
|
12
|
-
document.body.style.overflow = "unset", i(o);
|
|
13
|
-
}, [i, o]), u = r(() => {
|
|
14
|
-
if (!(e != null && e.current))
|
|
15
|
-
return;
|
|
16
|
-
const p = [
|
|
17
|
-
{
|
|
18
|
-
originalElementToHighlightRef: e,
|
|
19
|
-
elementToHighlight: /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(y, { widthX: 6, renderAs: "primary", size: "small", label: "Review" }) }),
|
|
20
|
-
type: C.TOOLTIP,
|
|
21
|
-
indicator: {
|
|
22
|
-
renderAs: "primary",
|
|
23
|
-
tooltipXCoOrdinates: -100,
|
|
24
|
-
arrowSize: 12,
|
|
25
|
-
arrowXCoOrdinates: 100,
|
|
26
|
-
position: "top",
|
|
27
|
-
backgroundColor: "ORANGE_4",
|
|
28
|
-
borderColor: "BLACK",
|
|
29
|
-
arrowColor: "BLACK",
|
|
30
|
-
tooltipItem: /* @__PURE__ */ t(
|
|
31
|
-
T,
|
|
32
|
-
{
|
|
33
|
-
text: "Click here to review the student's solution.",
|
|
34
|
-
buttonLabel: "Got it",
|
|
35
|
-
onButtonClick: a
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
},
|
|
39
|
-
isActive: !1
|
|
40
|
-
}
|
|
41
|
-
];
|
|
42
|
-
n(o, p);
|
|
43
|
-
const m = setTimeout(() => {
|
|
44
|
-
clearTimeout(m), document.body.style.overflow = "hidden", l();
|
|
45
|
-
}, 500);
|
|
46
|
-
d.current.push(m);
|
|
47
|
-
}, [a, l, o, n]);
|
|
48
|
-
return f(
|
|
49
|
-
() => ({
|
|
50
|
-
puzzleReviewCtaRef: e,
|
|
51
|
-
startJourney: u
|
|
52
|
-
}),
|
|
53
|
-
[u]
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
k as usePuzzleReviewJourney
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=use-puzzle-review-journey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-puzzle-review-journey.js","sources":["../../../../../src/features/journey/hooks/use-puzzles-journey/use-puzzle-review-journey.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport { useCallback, useMemo, useRef } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport { JOURNEY_ID_TEACHER } from '../../journey-id/journey-id-teacher';\nimport { IndicatorType } from '../../use-journey/constants';\nimport { useJourney } from '../../use-journey/use-journey';\nimport TooltipItem from '../use-home-page-journey/tooltip-item';\n\nconst usePuzzleReviewJourney = () => {\n const journeyId = JOURNEY_ID_TEACHER.PUZZLE_REVIEW_JOURNEY;\n\n const puzzleReviewCtaRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n const { setJourney, endJourney, nextCoachmark } = useJourney();\n\n const handleNextCoachMark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, false);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(() => {\n if (!puzzleReviewCtaRef?.current) {\n return;\n }\n\n const puzzleAttemptSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: puzzleReviewCtaRef,\n elementToHighlight: (\n <div>\n <Button widthX={6} renderAs=\"primary\" size=\"small\" label=\"Review\" />\n </div>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n renderAs: 'primary',\n tooltipXCoOrdinates: -100,\n arrowSize: 12,\n arrowXCoOrdinates: 100,\n position: 'top',\n backgroundColor: 'ORANGE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n tooltipItem: (\n <TooltipItem\n text={`Click here to review the student's solution.`}\n buttonLabel=\"Got it\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, puzzleAttemptSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n document.body.style.overflow = 'hidden';\n handleNextCoachMark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n }, [handleEndJourney, handleNextCoachMark, journeyId, setJourney]);\n\n const data = useMemo(\n () => ({\n puzzleReviewCtaRef,\n startJourney,\n }),\n [startJourney],\n );\n\n return data;\n};\n\nexport { usePuzzleReviewJourney };\n"],"names":["usePuzzleReviewJourney","journeyId","JOURNEY_ID_TEACHER","puzzleReviewCtaRef","useRef","timerRefs","setJourney","endJourney","nextCoachmark","useJourney","handleNextCoachMark","useCallback","handleEndJourney","startJourney","puzzleAttemptSteps","jsx","Button","IndicatorType","TooltipItem","delayBeforeStart","useMemo"],"mappings":";;;;;;;AAWA,MAAMA,IAAyB,MAAM;AACnC,QAAMC,IAAYC,EAAmB,uBAE/BC,IAAqBC,EAAuB,IAAI,GAChDC,IAAYD,EAAwC,CAAA,CAAE,GAEtD,EAAE,YAAAE,GAAY,YAAAC,GAAY,eAAAC,MAAkBC,EAAW,GAEvDC,IAAsBC,EAAY,MAAM;AAC9B,IAAAH,EAAAP,GAAW,IAAO,GAAG,EAAK;AAAA,EAAA,GACvC,CAACA,GAAWO,CAAa,CAAC,GAEvBI,IAAmBD,EAAY,MAAM;AAChC,aAAA,KAAK,MAAM,WAAW,SAC/BJ,EAAWN,CAAS;AAAA,EAAA,GACnB,CAACM,GAAYN,CAAS,CAAC,GAEpBY,IAAeF,EAAY,MAAM;AACjC,QAAA,EAACR,KAAA,QAAAA,EAAoB;AACvB;AAGF,UAAMW,IAAwC;AAAA,MAC5C;AAAA,QACE,+BAA+BX;AAAA,QAC/B,oBACE,gBAAAY,EAAC,OACC,EAAA,UAAA,gBAAAA,EAACC,GAAO,EAAA,QAAQ,GAAG,UAAS,WAAU,MAAK,SAAQ,OAAM,SAAS,CAAA,GACpE;AAAA,QAEF,MAAMC,EAAc;AAAA,QACpB,WAAW;AAAA,UACT,UAAU;AAAA,UACV,qBAAqB;AAAA,UACrB,WAAW;AAAA,UACX,mBAAmB;AAAA,UACnB,UAAU;AAAA,UACV,iBAAiB;AAAA,UACjB,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,aACE,gBAAAF;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,MAAM;AAAA,cACN,aAAY;AAAA,cACZ,eAAeN;AAAA,YAAA;AAAA,UACjB;AAAA,QAEJ;AAAA,QACA,UAAU;AAAA,MACZ;AAAA,IAAA;AAGF,IAAAN,EAAWL,GAAWa,CAAkB;AAElC,UAAAK,IAAmB,WAAW,MAAM;AACxC,mBAAaA,CAAgB,GACpB,SAAA,KAAK,MAAM,WAAW,UACXT;OACnB,GAAG;AAEI,IAAAL,EAAA,QAAQ,KAAKc,CAAgB;AAAA,KACtC,CAACP,GAAkBF,GAAqBT,GAAWK,CAAU,CAAC;AAU1D,SARMc;AAAA,IACX,OAAO;AAAA,MACL,oBAAAjB;AAAA,MACA,cAAAU;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAIjB;"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useRef as c, useCallback as r, useMemo as f } from "react";
|
|
3
|
-
import y from "../../../ui/buttons/button/button.js";
|
|
4
|
-
import { JOURNEY_ID_TEACHER as h } from "../../journey-id/journey-id-teacher.js";
|
|
5
|
-
import { IndicatorType as C } from "../../use-journey/constants.js";
|
|
6
|
-
import { useJourney as T } from "../../use-journey/use-journey.js";
|
|
7
|
-
import b from "../use-home-page-journey/tooltip-item.js";
|
|
8
|
-
const L = () => {
|
|
9
|
-
const o = h.PUZZLE_UNASSIGN_JOURNEY, t = c(null), d = c([]), { setJourney: n, endJourney: i, nextCoachmark: s } = T(), a = r(() => {
|
|
10
|
-
s(o, !1, 0, !1);
|
|
11
|
-
}, [o, s]), l = r(() => {
|
|
12
|
-
document.body.style.overflow = "unset", i(o);
|
|
13
|
-
}, [i, o]), u = r(() => {
|
|
14
|
-
if (!(t != null && t.current))
|
|
15
|
-
return;
|
|
16
|
-
const p = [
|
|
17
|
-
{
|
|
18
|
-
originalElementToHighlightRef: t,
|
|
19
|
-
elementToHighlight: /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(y, { widthX: 6, renderAs: "primary", size: "small", label: "Unassign" }) }),
|
|
20
|
-
type: C.TOOLTIP,
|
|
21
|
-
indicator: {
|
|
22
|
-
renderAs: "primary",
|
|
23
|
-
tooltipXCoOrdinates: -100,
|
|
24
|
-
arrowSize: 12,
|
|
25
|
-
arrowXCoOrdinates: 100,
|
|
26
|
-
position: "top",
|
|
27
|
-
backgroundColor: "PURPLE_4",
|
|
28
|
-
borderColor: "BLACK",
|
|
29
|
-
arrowColor: "BLACK",
|
|
30
|
-
tooltipItem: /* @__PURE__ */ e(
|
|
31
|
-
b,
|
|
32
|
-
{
|
|
33
|
-
text: "You can click here to unassign the puzzle.",
|
|
34
|
-
buttonLabel: "Got it",
|
|
35
|
-
onButtonClick: l
|
|
36
|
-
}
|
|
37
|
-
)
|
|
38
|
-
},
|
|
39
|
-
isActive: !1
|
|
40
|
-
}
|
|
41
|
-
];
|
|
42
|
-
n(o, p);
|
|
43
|
-
const m = setTimeout(() => {
|
|
44
|
-
clearTimeout(m), document.body.style.overflow = "hidden", a();
|
|
45
|
-
}, 500);
|
|
46
|
-
d.current.push(m);
|
|
47
|
-
}, [l, a, o, n]);
|
|
48
|
-
return f(
|
|
49
|
-
() => ({
|
|
50
|
-
puzzleUnassignRef: t,
|
|
51
|
-
startJourney: u
|
|
52
|
-
}),
|
|
53
|
-
[u]
|
|
54
|
-
);
|
|
55
|
-
};
|
|
56
|
-
export {
|
|
57
|
-
L as usePuzzleUnassignJourney
|
|
58
|
-
};
|
|
59
|
-
//# sourceMappingURL=use-puzzle-unassign-journey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-puzzle-unassign-journey.js","sources":["../../../../../src/features/journey/hooks/use-puzzles-journey/use-puzzle-unassign-journey.tsx"],"sourcesContent":["import type { IArrowTooltipProps } from '../../../ui/arrow-tooltip/arrow-tooltip-types';\nimport type { ICoachmarkProps } from '../../use-journey/journey-context-types';\n\nimport { useCallback, useMemo, useRef } from 'react';\n\nimport Button from '../../../ui/buttons/button/button';\nimport { JOURNEY_ID_TEACHER } from '../../journey-id/journey-id-teacher';\nimport { IndicatorType } from '../../use-journey/constants';\nimport { useJourney } from '../../use-journey/use-journey';\nimport TooltipItem from '../use-home-page-journey/tooltip-item';\n\nconst usePuzzleUnassignJourney = () => {\n const journeyId = JOURNEY_ID_TEACHER.PUZZLE_UNASSIGN_JOURNEY;\n\n const puzzleUnassignRef = useRef<HTMLDivElement>(null) as React.RefObject<HTMLDivElement>;\n const timerRefs = useRef<ReturnType<typeof setTimeout>[]>([]);\n\n const { setJourney, endJourney, nextCoachmark } = useJourney();\n\n const handleNextCoachMark = useCallback(() => {\n nextCoachmark(journeyId, false, 0, false);\n }, [journeyId, nextCoachmark]);\n\n const handleEndJourney = useCallback(() => {\n document.body.style.overflow = 'unset';\n endJourney(journeyId);\n }, [endJourney, journeyId]);\n\n const startJourney = useCallback(() => {\n if (!puzzleUnassignRef?.current) {\n return;\n }\n\n const puzzleAttemptSteps: ICoachmarkProps[] = [\n {\n originalElementToHighlightRef: puzzleUnassignRef,\n elementToHighlight: (\n <div>\n <Button widthX={6} renderAs=\"primary\" size=\"small\" label=\"Unassign\" />\n </div>\n ),\n type: IndicatorType.TOOLTIP,\n indicator: {\n renderAs: 'primary',\n tooltipXCoOrdinates: -100,\n arrowSize: 12,\n arrowXCoOrdinates: 100,\n position: 'top',\n backgroundColor: 'PURPLE_4',\n borderColor: 'BLACK',\n arrowColor: 'BLACK',\n tooltipItem: (\n <TooltipItem\n text=\"You can click here to unassign the puzzle.\"\n buttonLabel=\"Got it\"\n onButtonClick={handleEndJourney}\n />\n ),\n } as IArrowTooltipProps,\n isActive: false,\n },\n ];\n\n setJourney(journeyId, puzzleAttemptSteps);\n\n const delayBeforeStart = setTimeout(() => {\n clearTimeout(delayBeforeStart);\n document.body.style.overflow = 'hidden';\n handleNextCoachMark();\n }, 500);\n\n timerRefs.current.push(delayBeforeStart);\n }, [handleEndJourney, handleNextCoachMark, journeyId, setJourney]);\n\n const data = useMemo(\n () => ({\n puzzleUnassignRef,\n startJourney,\n }),\n [startJourney],\n );\n\n return data;\n};\n\nexport { usePuzzleUnassignJourney };\n"],"names":["usePuzzleUnassignJourney","journeyId","JOURNEY_ID_TEACHER","puzzleUnassignRef","useRef","timerRefs","setJourney","endJourney","nextCoachmark","useJourney","handleNextCoachMark","useCallback","handleEndJourney","startJourney","puzzleAttemptSteps","jsx","Button","IndicatorType","TooltipItem","delayBeforeStart","useMemo"],"mappings":";;;;;;;AAWA,MAAMA,IAA2B,MAAM;AACrC,QAAMC,IAAYC,EAAmB,yBAE/BC,IAAoBC,EAAuB,IAAI,GAC/CC,IAAYD,EAAwC,CAAA,CAAE,GAEtD,EAAE,YAAAE,GAAY,YAAAC,GAAY,eAAAC,MAAkBC,EAAW,GAEvDC,IAAsBC,EAAY,MAAM;AAC9B,IAAAH,EAAAP,GAAW,IAAO,GAAG,EAAK;AAAA,EAAA,GACvC,CAACA,GAAWO,CAAa,CAAC,GAEvBI,IAAmBD,EAAY,MAAM;AAChC,aAAA,KAAK,MAAM,WAAW,SAC/BJ,EAAWN,CAAS;AAAA,EAAA,GACnB,CAACM,GAAYN,CAAS,CAAC,GAEpBY,IAAeF,EAAY,MAAM;AACjC,QAAA,EAACR,KAAA,QAAAA,EAAmB;AACtB;AAGF,UAAMW,IAAwC;AAAA,MAC5C;AAAA,QACE,+BAA+BX;AAAA,QAC/B,oBACE,gBAAAY,EAAC,OACC,EAAA,UAAA,gBAAAA,EAACC,GAAO,EAAA,QAAQ,GAAG,UAAS,WAAU,MAAK,SAAQ,OAAM,WAAW,CAAA,GACtE;AAAA,QAEF,MAAMC,EAAc;AAAA,QACpB,WAAW;AAAA,UACT,UAAU;AAAA,UACV,qBAAqB;AAAA,UACrB,WAAW;AAAA,UACX,mBAAmB;AAAA,UACnB,UAAU;AAAA,UACV,iBAAiB;AAAA,UACjB,aAAa;AAAA,UACb,YAAY;AAAA,UACZ,aACE,gBAAAF;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,MAAK;AAAA,cACL,aAAY;AAAA,cACZ,eAAeN;AAAA,YAAA;AAAA,UACjB;AAAA,QAEJ;AAAA,QACA,UAAU;AAAA,MACZ;AAAA,IAAA;AAGF,IAAAN,EAAWL,GAAWa,CAAkB;AAElC,UAAAK,IAAmB,WAAW,MAAM;AACxC,mBAAaA,CAAgB,GACpB,SAAA,KAAK,MAAM,WAAW,UACXT;OACnB,GAAG;AAEI,IAAAL,EAAA,QAAQ,KAAKc,CAAgB;AAAA,KACtC,CAACP,GAAkBF,GAAqBT,GAAWK,CAAU,CAAC;AAU1D,SARMc;AAAA,IACX,OAAO;AAAA,MACL,mBAAAjB;AAAA,MACA,cAAAU;AAAA,IAAA;AAAA,IAEF,CAACA,CAAY;AAAA,EAAA;AAIjB;"}
|