@cuemath/leap 3.5.66 → 3.5.67-as2
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/features/analytics-events/platform-events-student.js +1 -1
- package/dist/features/analytics-events/platform-events-student.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/node-card-types.js.map +1 -1
- package/dist/features/chapters-v2/constants/node-constants.js +5 -4
- package/dist/features/chapters-v2/constants/node-constants.js.map +1 -1
- package/dist/features/homework/homework-card.js +168 -161
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +96 -95
- package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
- package/dist/features/homework/utils.js +65 -41
- package/dist/features/homework/utils.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +10 -5
- package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
- package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js +2 -1
- package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js.map +1 -1
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js +35 -26
- package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js.map +1 -1
- package/dist/features/math-fit/math-fit-overview/math-fit-overview.js +70 -49
- package/dist/features/math-fit/math-fit-overview/math-fit-overview.js.map +1 -1
- package/dist/features/math-fit/math-fit-report/math-fit-report.js +37 -27
- package/dist/features/math-fit/math-fit-report/math-fit-report.js.map +1 -1
- package/dist/features/math-fit/mathfit-events.js +7 -0
- package/dist/features/math-fit/mathfit-events.js.map +1 -0
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +40 -36
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -1
- package/dist/features/sheet-v2/resource-list/resource-list.js +39 -35
- package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -1
- package/dist/index.d.ts +5 -3
- package/dist/index.js +382 -380
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PLUGINS as t } from "../../node_modules/@cuemath/analytics-v2/dist/constants.js";
|
|
2
|
-
var _ = /* @__PURE__ */ ((e) => (e.PAGE_VIEWED = "page_viewed", e.CUSTOM_TEST_SUBMITTED = "custom_test_submitted", e.HOMEWORK_COMPLETED = "homework_completed", e.ERROR_VIA_AUTO_LOGIN_FROM_CUEMATH_APP = "error_via_auto_login_from_cuemath_app", e.PUZZLE_ATTEMPTED = "puzzle_attempted", e.WORKOUT_TAB_CLICKED = "workout_tab_clicked", e.TABLES_TAB_CLICKED = "tables_tab_clicked", e.INFO_BUTTON_CLICKED = "info_button_clicked", e.PROFILE_ICON_CLICKED = "profile_icon_clicked", e.CIRCLE_ONBOARDING_COMPLETED = "circle_onboarding_completed", e.ACTIVITY_STARTED = "activity_started", e.ACTIVITY_TUTORIAL_SEEN = "activity_tutorial_seen", e.STREAK_ICON_CLICKED = "streak_icon_clicked", e.LEADERBOARD_BUTTON_CLICKED = "leaderboard_button_clicked", e.ONBOARDING_STEP_VIEWED = "onboarding_step_viewed", e.ONBOARDING_STEP_COMPLETED = "onboarding_step_completed", e.COACHMARK_DISMISSED = "coachmark_dismissed", e))(_ || {});
|
|
2
|
+
var _ = /* @__PURE__ */ ((e) => (e.PAGE_VIEWED = "page_viewed", e.CUSTOM_TEST_SUBMITTED = "custom_test_submitted", e.HOMEWORK_COMPLETED = "homework_completed", e.ERROR_VIA_AUTO_LOGIN_FROM_CUEMATH_APP = "error_via_auto_login_from_cuemath_app", e.PUZZLE_ATTEMPTED = "puzzle_attempted", e.WORKOUT_TAB_CLICKED = "workout_tab_clicked", e.TABLES_TAB_CLICKED = "tables_tab_clicked", e.INFO_BUTTON_CLICKED = "info_button_clicked", e.PROFILE_ICON_CLICKED = "profile_icon_clicked", e.CIRCLE_ONBOARDING_COMPLETED = "circle_onboarding_completed", e.ACTIVITY_STARTED = "activity_started", e.ACTIVITY_TUTORIAL_SEEN = "activity_tutorial_seen", e.STREAK_ICON_CLICKED = "streak_icon_clicked", e.LEADERBOARD_BUTTON_CLICKED = "leaderboard_button_clicked", e.ONBOARDING_STEP_VIEWED = "onboarding_step_viewed", e.ONBOARDING_STEP_COMPLETED = "onboarding_step_completed", e.COACHMARK_DISMISSED = "coachmark_dismissed", e.MATHFIT_SECTION_COMPLETED = "mathfit_section_completed", e))(_ || {});
|
|
3
3
|
const i = {
|
|
4
4
|
page_viewed: [t.MIXPANEL],
|
|
5
5
|
custom_test_submitted: [t.MIXPANEL],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"platform-events-student.js","sources":["../../../src/features/analytics-events/platform-events-student.ts"],"sourcesContent":["import { PLUGINS } from '@cuemath/analytics-v2/dist/constants';\n\n/**\n ** Global/Platform specific events that needs to be tracked goes here\n ** Naming convention needs to be snake_case\n */\nexport enum PLATFORM_EVENTS_STUDENT {\n PAGE_VIEWED = 'page_viewed',\n CUSTOM_TEST_SUBMITTED = 'custom_test_submitted',\n HOMEWORK_COMPLETED = 'homework_completed',\n ERROR_VIA_AUTO_LOGIN_FROM_CUEMATH_APP = 'error_via_auto_login_from_cuemath_app',\n PUZZLE_ATTEMPTED = 'puzzle_attempted',\n WORKOUT_TAB_CLICKED = 'workout_tab_clicked',\n TABLES_TAB_CLICKED = 'tables_tab_clicked',\n INFO_BUTTON_CLICKED = 'info_button_clicked',\n PROFILE_ICON_CLICKED = 'profile_icon_clicked',\n\n // circle on leap mixpanel events\n CIRCLE_ONBOARDING_COMPLETED = 'circle_onboarding_completed',\n ACTIVITY_STARTED = 'activity_started',\n ACTIVITY_TUTORIAL_SEEN = 'activity_tutorial_seen',\n STREAK_ICON_CLICKED = 'streak_icon_clicked',\n LEADERBOARD_BUTTON_CLICKED = 'leaderboard_button_clicked',\n ONBOARDING_STEP_VIEWED = 'onboarding_step_viewed',\n ONBOARDING_STEP_COMPLETED = 'onboarding_step_completed',\n COACHMARK_DISMISSED = 'coachmark_dismissed',\n}\n\n/**\n ** Events that need to be tracked at particular plugins\n ** Value will be array of strings.\n */\nexport const PLATFORM_WHITELIST_EVENTS_STUDENT = {\n [PLATFORM_EVENTS_STUDENT.PAGE_VIEWED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.CUSTOM_TEST_SUBMITTED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.HOMEWORK_COMPLETED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.PUZZLE_ATTEMPTED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.PROFILE_ICON_CLICKED]: [PLUGINS.MIXPANEL],\n\n // circle on leap mixpanel events\n [PLATFORM_EVENTS_STUDENT.CIRCLE_ONBOARDING_COMPLETED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.ACTIVITY_STARTED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.ACTIVITY_TUTORIAL_SEEN]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.STREAK_ICON_CLICKED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.LEADERBOARD_BUTTON_CLICKED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.ONBOARDING_STEP_VIEWED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.ONBOARDING_STEP_COMPLETED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.COACHMARK_DISMISSED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.WORKOUT_TAB_CLICKED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.TABLES_TAB_CLICKED]: [PLUGINS.MIXPANEL],\n};\n"],"names":["PLATFORM_EVENTS_STUDENT","PLATFORM_WHITELIST_EVENTS_STUDENT","PLUGINS"],"mappings":";AAMY,IAAAA,sBAAAA,OACVA,EAAA,cAAc,eACdA,EAAA,wBAAwB,yBACxBA,EAAA,qBAAqB,sBACrBA,EAAA,wCAAwC,yCACxCA,EAAA,mBAAmB,oBACnBA,EAAA,sBAAsB,uBACtBA,EAAA,qBAAqB,sBACrBA,EAAA,sBAAsB,uBACtBA,EAAA,uBAAuB,wBAGvBA,EAAA,8BAA8B,+BAC9BA,EAAA,mBAAmB,oBACnBA,EAAA,yBAAyB,0BACzBA,EAAA,sBAAsB,uBACtBA,EAAA,6BAA6B,8BAC7BA,EAAA,yBAAyB,0BACzBA,EAAA,4BAA4B,6BAC5BA,EAAA,sBAAsB,
|
|
1
|
+
{"version":3,"file":"platform-events-student.js","sources":["../../../src/features/analytics-events/platform-events-student.ts"],"sourcesContent":["import { PLUGINS } from '@cuemath/analytics-v2/dist/constants';\n\n/**\n ** Global/Platform specific events that needs to be tracked goes here\n ** Naming convention needs to be snake_case\n */\nexport enum PLATFORM_EVENTS_STUDENT {\n PAGE_VIEWED = 'page_viewed',\n CUSTOM_TEST_SUBMITTED = 'custom_test_submitted',\n HOMEWORK_COMPLETED = 'homework_completed',\n ERROR_VIA_AUTO_LOGIN_FROM_CUEMATH_APP = 'error_via_auto_login_from_cuemath_app',\n PUZZLE_ATTEMPTED = 'puzzle_attempted',\n WORKOUT_TAB_CLICKED = 'workout_tab_clicked',\n TABLES_TAB_CLICKED = 'tables_tab_clicked',\n INFO_BUTTON_CLICKED = 'info_button_clicked',\n PROFILE_ICON_CLICKED = 'profile_icon_clicked',\n\n // circle on leap mixpanel events\n CIRCLE_ONBOARDING_COMPLETED = 'circle_onboarding_completed',\n ACTIVITY_STARTED = 'activity_started',\n ACTIVITY_TUTORIAL_SEEN = 'activity_tutorial_seen',\n STREAK_ICON_CLICKED = 'streak_icon_clicked',\n LEADERBOARD_BUTTON_CLICKED = 'leaderboard_button_clicked',\n ONBOARDING_STEP_VIEWED = 'onboarding_step_viewed',\n ONBOARDING_STEP_COMPLETED = 'onboarding_step_completed',\n COACHMARK_DISMISSED = 'coachmark_dismissed',\n MATHFIT_SECTION_COMPLETED = 'mathfit_section_completed',\n}\n\n/**\n ** Events that need to be tracked at particular plugins\n ** Value will be array of strings.\n */\nexport const PLATFORM_WHITELIST_EVENTS_STUDENT = {\n [PLATFORM_EVENTS_STUDENT.PAGE_VIEWED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.CUSTOM_TEST_SUBMITTED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.HOMEWORK_COMPLETED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.PUZZLE_ATTEMPTED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.PROFILE_ICON_CLICKED]: [PLUGINS.MIXPANEL],\n\n // circle on leap mixpanel events\n [PLATFORM_EVENTS_STUDENT.CIRCLE_ONBOARDING_COMPLETED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.ACTIVITY_STARTED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.ACTIVITY_TUTORIAL_SEEN]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.STREAK_ICON_CLICKED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.LEADERBOARD_BUTTON_CLICKED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.ONBOARDING_STEP_VIEWED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.ONBOARDING_STEP_COMPLETED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.COACHMARK_DISMISSED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.WORKOUT_TAB_CLICKED]: [PLUGINS.MIXPANEL],\n [PLATFORM_EVENTS_STUDENT.TABLES_TAB_CLICKED]: [PLUGINS.MIXPANEL],\n};\n"],"names":["PLATFORM_EVENTS_STUDENT","PLATFORM_WHITELIST_EVENTS_STUDENT","PLUGINS"],"mappings":";AAMY,IAAAA,sBAAAA,OACVA,EAAA,cAAc,eACdA,EAAA,wBAAwB,yBACxBA,EAAA,qBAAqB,sBACrBA,EAAA,wCAAwC,yCACxCA,EAAA,mBAAmB,oBACnBA,EAAA,sBAAsB,uBACtBA,EAAA,qBAAqB,sBACrBA,EAAA,sBAAsB,uBACtBA,EAAA,uBAAuB,wBAGvBA,EAAA,8BAA8B,+BAC9BA,EAAA,mBAAmB,oBACnBA,EAAA,yBAAyB,0BACzBA,EAAA,sBAAsB,uBACtBA,EAAA,6BAA6B,8BAC7BA,EAAA,yBAAyB,0BACzBA,EAAA,4BAA4B,6BAC5BA,EAAA,sBAAsB,uBACtBA,EAAA,4BAA4B,6BApBlBA,IAAAA,KAAA,CAAA,CAAA;AA2BL,MAAMC,IAAoC;AAAA,EAC9C,aAAsC,CAACC,EAAQ,QAAQ;AAAA,EACvD,uBAAgD,CAACA,EAAQ,QAAQ;AAAA,EACjE,oBAA6C,CAACA,EAAQ,QAAQ;AAAA,EAC9D,kBAA2C,CAACA,EAAQ,QAAQ;AAAA,EAC5D,sBAA+C,CAACA,EAAQ,QAAQ;AAAA;AAAA,EAGhE,6BAAsD,CAACA,EAAQ,QAAQ;AAAA,EACvE,kBAA2C,CAACA,EAAQ,QAAQ;AAAA,EAC5D,wBAAiD,CAACA,EAAQ,QAAQ;AAAA,EAClE,qBAA8C,CAACA,EAAQ,QAAQ;AAAA,EAC/D,4BAAqD,CAACA,EAAQ,QAAQ;AAAA,EACtE,wBAAiD,CAACA,EAAQ,QAAQ;AAAA,EAClE,2BAAoD,CAACA,EAAQ,QAAQ;AAAA,EACrE,qBAA8C,CAACA,EAAQ,QAAQ;AAAA,EAC/D,qBAA8C,CAACA,EAAQ,QAAQ;AAAA,EAC/D,oBAA6C,CAACA,EAAQ,QAAQ;AACjE;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-card-types.js","sources":["../../../../../src/features/chapters-v2/comps/node-card/node-card-types.ts"],"sourcesContent":["import type { EWorksheetActivity, IWorksheetModel } from '../../../../types/models/worksheet';\nimport type {\n NODE_TYPE,\n PYTHON_NODE_TYPES,\n SAT_NODE_TYPE,\n SHEET_ATTEMPT_LOCATION,\n} from '../../../sheets/constants/sheet';\nimport type { THueNames, TUserTypes } from '../../../ui/types';\nimport type { BLOCK_TYPE } from '../../constants/block-constants';\nimport type { NODE_CARD_COURSE_TYPES, NODE_CARD_STATES } from '../../constants/node-constants';\n\ntype TSheetAttemptLocation = keyof typeof SHEET_ATTEMPT_LOCATION;\n\ntype TSheetStates = keyof typeof NODE_CARD_STATES;\nexport type TNodeTypes =\n | keyof typeof NODE_TYPE\n | keyof typeof PYTHON_NODE_TYPES\n | keyof typeof SAT_NODE_TYPE;\nexport type TCourseType = keyof typeof NODE_CARD_COURSE_TYPES;\n\nexport enum ECardType {\n MATHFIT = 'MATHFIT',\n}\n\ninterface INodePermissions {\n can_change_attempt_location: boolean;\n can_mark_familiar: boolean;\n can_reattempt: boolean;\n can_reset: boolean;\n can_resume: boolean;\n can_review: boolean;\n can_assign_as_homework: boolean;\n can_start: boolean;\n can_teacher_review: boolean;\n can_unassign: boolean;\n can_unlock: boolean;\n can_un_skip: boolean;\n can_skip: boolean;\n}\n\nexport interface TNodeDataTestItemsDataProps {\n chapter_name: string;\n goal_name: string;\n ref: string;\n}\n\ninterface INodeDataProps {\n accuracy: number | null;\n attempt_location: TSheetAttemptLocation;\n block_id: string;\n card_header: string;\n chapter_id: string | null;\n chapter_name?: string;\n complete_status: boolean;\n course_type: TCourseType;\n desmos_calculator_enabled: boolean;\n due_date_ts: number | null;\n id: string;\n image_hue: THueNames;\n image_url: string | null;\n activity_type: EWorksheetActivity | null;\n is_optional: boolean;\n is_timed: boolean;\n is_worksheet_v3: boolean | null;\n items?: TNodeDataTestItemsDataProps[];\n learnosity_activity_ref: string;\n marked_as_completed: boolean;\n node_id: string;\n node_type: TNodeTypes;\n permissions: INodePermissions;\n sheet_statement: string;\n sheet_time: number | null;\n state: TSheetStates;\n subtext: string | null;\n title: string;\n total_questions: number | null;\n unlocked_on_ts: number | null;\n user_attempt_id: string | null;\n user_chapter_id: string | null;\n user_block_id: string | null;\n user_milestone_id?: string;\n user_node_id: string | null;\n worksheet_id: string;\n is_turing: boolean;\n student_instructions_ref: string | null;\n instructions_ref: string | null;\n worksheet?: IWorksheetModel | null;\n}\n\ninterface INodeCardTagsProps {\n state: TSheetStates;\n accuracy?: number | null;\n nodeType: TNodeTypes;\n dueDateTs?: number | null;\n isStudent?: boolean;\n isMilestone?: boolean;\n isMathFitCard?: boolean;\n}\n\ninterface INodeCardCallbacks {\n onNodeAttempt?: (\n nodeData: INodeDataProps,\n milestoneId?: string,\n homeworkId?: string,\n isSatMockTestBlock?: boolean,\n ) => void;\n onNodeView?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeReview?: (\n nodeData: INodeDataProps,\n milestoneId?: string,\n homeworkId?: string,\n isSatMockTestBlock?: boolean,\n ) => void;\n onNodeReattempt?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeAssignAsHomework?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeMarkAsDone?: (nodeData: INodeDataProps) => void;\n onNodeReset?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeUnassign?: (nodeData: INodeDataProps, milestoneId?: string, homeworkId?: string) => void;\n onNodeUnlock?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeSkipUnSkip?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onCardClick?: ({ entityId, type }: { entityId: string; type: ECardType }) => void;\n}\n\ninterface INodeCardProps extends INodeCardCallbacks {\n userType: TUserTypes;\n nodeData: INodeDataProps;\n imageHue: THueNames;\n blockType?: keyof typeof BLOCK_TYPE;\n isSkipped?: boolean;\n isStudent?: boolean;\n}\n\nexport type {\n TSheetStates,\n INodeDataProps,\n INodePermissions,\n INodeCardProps,\n INodeCardCallbacks,\n INodeCardTagsProps,\n};\n"],"names":["ECardType"],"mappings":"AAoBY,IAAAA,sBAAAA,OACVA,EAAA,UAAU,WADAA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"node-card-types.js","sources":["../../../../../src/features/chapters-v2/comps/node-card/node-card-types.ts"],"sourcesContent":["import type { EWorksheetActivity, IWorksheetModel } from '../../../../types/models/worksheet';\nimport type {\n NODE_TYPE,\n PYTHON_NODE_TYPES,\n SAT_NODE_TYPE,\n SHEET_ATTEMPT_LOCATION,\n} from '../../../sheets/constants/sheet';\nimport type { THueNames, TUserTypes } from '../../../ui/types';\nimport type { BLOCK_TYPE } from '../../constants/block-constants';\nimport type { NODE_CARD_COURSE_TYPES, NODE_CARD_STATES } from '../../constants/node-constants';\n\ntype TSheetAttemptLocation = keyof typeof SHEET_ATTEMPT_LOCATION;\n\ntype TSheetStates = keyof typeof NODE_CARD_STATES;\nexport type TNodeTypes =\n | keyof typeof NODE_TYPE\n | keyof typeof PYTHON_NODE_TYPES\n | keyof typeof SAT_NODE_TYPE;\nexport type TCourseType = keyof typeof NODE_CARD_COURSE_TYPES;\n\nexport enum ECardType {\n MATHFIT = 'MATHFIT',\n}\n\ninterface INodePermissions {\n can_change_attempt_location: boolean;\n can_mark_familiar: boolean;\n can_reattempt: boolean;\n can_reset: boolean;\n can_resume: boolean;\n can_review: boolean;\n can_assign_as_homework: boolean;\n can_start: boolean;\n can_teacher_review: boolean;\n can_unassign: boolean;\n can_unlock: boolean;\n can_un_skip: boolean;\n can_skip: boolean;\n}\n\nexport interface TNodeDataTestItemsDataProps {\n chapter_name: string;\n goal_name: string;\n ref: string;\n}\n\ninterface INodeDataProps {\n accuracy: number | null;\n attempt_location: TSheetAttemptLocation;\n block_id: string;\n card_header: string;\n chapter_id: string | null;\n chapter_name?: string;\n complete_status: boolean;\n course_type: TCourseType;\n desmos_calculator_enabled: boolean;\n correct_answers: number;\n due_date_ts: number | null;\n id: string;\n image_hue: THueNames;\n image_url: string | null;\n activity_type: EWorksheetActivity | null;\n is_optional: boolean;\n is_timed: boolean;\n is_worksheet_v3: boolean | null;\n items?: TNodeDataTestItemsDataProps[];\n learnosity_activity_ref: string;\n marked_as_completed: boolean;\n node_id: string;\n node_type: TNodeTypes;\n permissions: INodePermissions;\n sheet_statement: string;\n sheet_time: number | null;\n state: TSheetStates;\n subtext: string | null;\n title: string;\n total_questions: number | null;\n unlocked_on_ts: number | null;\n user_attempt_id: string | null;\n user_chapter_id: string | null;\n user_block_id: string | null;\n user_milestone_id?: string;\n user_node_id: string | null;\n worksheet_id: string;\n is_turing: boolean;\n student_instructions_ref: string | null;\n instructions_ref: string | null;\n worksheet?: IWorksheetModel | null;\n}\n\ninterface INodeCardTagsProps {\n state: TSheetStates;\n accuracy?: number | null;\n nodeType: TNodeTypes;\n dueDateTs?: number | null;\n isStudent?: boolean;\n isMilestone?: boolean;\n isMathFitCard?: boolean;\n}\n\ninterface INodeCardCallbacks {\n onNodeAttempt?: (\n nodeData: INodeDataProps,\n milestoneId?: string,\n homeworkId?: string,\n isSatMockTestBlock?: boolean,\n ) => void;\n onNodeView?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeReview?: (\n nodeData: INodeDataProps,\n milestoneId?: string,\n homeworkId?: string,\n isSatMockTestBlock?: boolean,\n ) => void;\n onNodeReattempt?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeAssignAsHomework?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeMarkAsDone?: (nodeData: INodeDataProps) => void;\n onNodeReset?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeUnassign?: (nodeData: INodeDataProps, milestoneId?: string, homeworkId?: string) => void;\n onNodeUnlock?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onNodeSkipUnSkip?: (nodeData: INodeDataProps, milestoneId?: string) => void;\n onCardClick?: ({ entityId, type }: { entityId: string; type: ECardType }) => void;\n}\n\ninterface INodeCardProps extends INodeCardCallbacks {\n userType: TUserTypes;\n nodeData: INodeDataProps;\n imageHue: THueNames;\n blockType?: keyof typeof BLOCK_TYPE;\n isSkipped?: boolean;\n isStudent?: boolean;\n}\n\nexport type {\n TSheetStates,\n INodeDataProps,\n INodePermissions,\n INodeCardProps,\n INodeCardCallbacks,\n INodeCardTagsProps,\n};\n"],"names":["ECardType"],"mappings":"AAoBY,IAAAA,sBAAAA,OACVA,EAAA,UAAU,WADAA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const M = {
|
|
2
2
|
ASSIGN_AS_HW: "Assign as HW",
|
|
3
3
|
MARK_AS_DONE: "Mark as Done",
|
|
4
4
|
SKIP: "Skip",
|
|
@@ -9,9 +9,10 @@ const I = {
|
|
|
9
9
|
LOCK: "Lock",
|
|
10
10
|
UNLOCK: "Unlock"
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var I = /* @__PURE__ */ ((E) => (E.LOCKED = "LOCKED", E.NOT_STARTED = "NOT_STARTED", E.WAIT_FOR_REVIEW = "WAIT_FOR_REVIEW", E.IN_PROGRESS = "IN_PROGRESS", E.COMPLETED = "COMPLETED", E.EXPIRED = "EXPIRED", E))(I || {}), R = /* @__PURE__ */ ((E) => (E.PROGRAM = "PROGRAM", E.REMEDIAL = "REMEDIAL", E.TEST_SERIES = "TEST_SERIES", E.EXAM = "EXAM", E.MATHFIT = "MATHFIT", E))(R || {});
|
|
13
13
|
export {
|
|
14
|
-
R as
|
|
15
|
-
I as
|
|
14
|
+
R as NODE_CARD_COURSE_TYPES,
|
|
15
|
+
I as NODE_CARD_STATES,
|
|
16
|
+
M as TEACHER_MENU_LABELS
|
|
16
17
|
};
|
|
17
18
|
//# sourceMappingURL=node-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-constants.js","sources":["../../../../src/features/chapters-v2/constants/node-constants.ts"],"sourcesContent":["export const TEACHER_MENU_LABELS = {\n ASSIGN_AS_HW: 'Assign as HW',\n MARK_AS_DONE: 'Mark as Done',\n SKIP: 'Skip',\n REVERT_SKIP: 'Revert Skip',\n REVIEW: 'Review',\n VIEW: 'View',\n RESET: 'Reset',\n LOCK: 'Lock',\n UNLOCK: 'Unlock',\n};\n\nexport enum NODE_CARD_STATES {\n LOCKED = 'LOCKED',\n NOT_STARTED = 'NOT_STARTED',\n WAIT_FOR_REVIEW = 'WAIT_FOR_REVIEW',\n IN_PROGRESS = 'IN_PROGRESS',\n COMPLETED = 'COMPLETED',\n EXPIRED = 'EXPIRED',\n}\n\nexport enum NODE_CARD_COURSE_TYPES {\n PROGRAM = 'PROGRAM',\n REMEDIAL = 'REMEDIAL',\n TEST_SERIES = 'TEST_SERIES',\n EXAM = 'EXAM',\n MATHFIT = 'MATHFIT',\n}\n"],"names":["TEACHER_MENU_LABELS","NODE_CARD_STATES"],"mappings":"AAAO,MAAMA,IAAsB;AAAA,EACjC,cAAc;AAAA,EACd,cAAc;AAAA,EACd,MAAM;AAAA,EACN,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AACV;AAEY,IAAAC,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,cAAc,eACdA,EAAA,kBAAkB,mBAClBA,EAAA,cAAc,eACdA,EAAA,YAAY,aACZA,EAAA,UAAU,WANAA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"node-constants.js","sources":["../../../../src/features/chapters-v2/constants/node-constants.ts"],"sourcesContent":["export const TEACHER_MENU_LABELS = {\n ASSIGN_AS_HW: 'Assign as HW',\n MARK_AS_DONE: 'Mark as Done',\n SKIP: 'Skip',\n REVERT_SKIP: 'Revert Skip',\n REVIEW: 'Review',\n VIEW: 'View',\n RESET: 'Reset',\n LOCK: 'Lock',\n UNLOCK: 'Unlock',\n};\n\nexport enum NODE_CARD_STATES {\n LOCKED = 'LOCKED',\n NOT_STARTED = 'NOT_STARTED',\n WAIT_FOR_REVIEW = 'WAIT_FOR_REVIEW',\n IN_PROGRESS = 'IN_PROGRESS',\n COMPLETED = 'COMPLETED',\n EXPIRED = 'EXPIRED',\n}\n\nexport enum NODE_CARD_COURSE_TYPES {\n PROGRAM = 'PROGRAM',\n REMEDIAL = 'REMEDIAL',\n TEST_SERIES = 'TEST_SERIES',\n EXAM = 'EXAM',\n MATHFIT = 'MATHFIT',\n}\n"],"names":["TEACHER_MENU_LABELS","NODE_CARD_STATES","NODE_CARD_COURSE_TYPES"],"mappings":"AAAO,MAAMA,IAAsB;AAAA,EACjC,cAAc;AAAA,EACd,cAAc;AAAA,EACd,MAAM;AAAA,EACN,aAAa;AAAA,EACb,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,OAAO;AAAA,EACP,MAAM;AAAA,EACN,QAAQ;AACV;AAEY,IAAAC,sBAAAA,OACVA,EAAA,SAAS,UACTA,EAAA,cAAc,eACdA,EAAA,kBAAkB,mBAClBA,EAAA,cAAc,eACdA,EAAA,YAAY,aACZA,EAAA,UAAU,WANAA,IAAAA,KAAA,CAAA,CAAA,GASAC,sBAAAA,OACVA,EAAA,UAAU,WACVA,EAAA,WAAW,YACXA,EAAA,cAAc,eACdA,EAAA,OAAO,QACPA,EAAA,UAAU,WALAA,IAAAA,KAAA,CAAA,CAAA;"}
|
|
@@ -1,299 +1,306 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { ECardType as
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { EHWCardListEntityType as
|
|
15
|
-
import { CardContainer as
|
|
16
|
-
import { getCardAnalyticProps as
|
|
17
|
-
const
|
|
1
|
+
import { jsxs as z, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as fr, useRef as B, useCallback as _, useMemo as hr } from "react";
|
|
3
|
+
import K from "../../assets/line-icons/icons/eye2.js";
|
|
4
|
+
import dr from "../../assets/line-icons/icons/home2.js";
|
|
5
|
+
import mr from "../../assets/line-icons/icons/more-vertical.js";
|
|
6
|
+
import Z from "../../assets/line-icons/icons/redo.js";
|
|
7
|
+
import { ECardType as A } from "../chapters-v2/comps/node-card/node-card-types.js";
|
|
8
|
+
import I from "../ui/arrow-tooltip/arrow-tooltip.js";
|
|
9
|
+
import pr from "../ui/buttons/clickable/clickable.js";
|
|
10
|
+
import Y from "../ui/hooks/use-context-menu-click-handler.js";
|
|
11
|
+
import br from "../ui/layout/flex-view.js";
|
|
12
|
+
import q from "./card-menu-options.js";
|
|
13
|
+
import wr from "./homework-card-view.js";
|
|
14
|
+
import { EHWCardListEntityType as Cr } from "./hw-card-list/hw-card-list-types.js";
|
|
15
|
+
import { CardContainer as Er, MenuWrapper as Mr, CardKebabMenuWrapper as Tr, BlurContainer as _r, BlurFlexView as $r, StyledMinus2Icon as kr } from "./styles.js";
|
|
16
|
+
import { getCardAnalyticProps as Rr } from "./utils.js";
|
|
17
|
+
const vr = ({
|
|
18
18
|
// callbacks
|
|
19
|
-
nodeData:
|
|
20
|
-
onNodeAttempt:
|
|
19
|
+
nodeData: r,
|
|
20
|
+
onNodeAttempt: $,
|
|
21
21
|
onNodeReattempt: m,
|
|
22
|
-
onNodeReview:
|
|
22
|
+
onNodeReview: a,
|
|
23
23
|
onNodeUnassign: p,
|
|
24
|
-
onNodeView:
|
|
24
|
+
onNodeView: k,
|
|
25
25
|
onNodeAssignAsHomework: b,
|
|
26
|
-
onCardClick:
|
|
27
|
-
entityId:
|
|
28
|
-
entityType:
|
|
29
|
-
header:
|
|
30
|
-
homeworkId:
|
|
31
|
-
isInQueue:
|
|
32
|
-
puzzleHWCardRef:
|
|
33
|
-
mathFitCardRef:
|
|
34
|
-
renderAs:
|
|
26
|
+
onCardClick: l,
|
|
27
|
+
entityId: t,
|
|
28
|
+
entityType: w,
|
|
29
|
+
header: G,
|
|
30
|
+
homeworkId: n,
|
|
31
|
+
isInQueue: S,
|
|
32
|
+
puzzleHWCardRef: J,
|
|
33
|
+
mathFitCardRef: U,
|
|
34
|
+
renderAs: y,
|
|
35
35
|
score: Q,
|
|
36
|
-
shouldOpenOnRight:
|
|
36
|
+
shouldOpenOnRight: D,
|
|
37
37
|
state: d,
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
38
|
+
totalQuestions: O,
|
|
39
|
+
imageUrl: N,
|
|
40
|
+
studentId: V,
|
|
41
|
+
subHeader: rr,
|
|
42
|
+
userMilestoneId: er,
|
|
43
|
+
userType: F
|
|
43
44
|
}) => {
|
|
44
|
-
const
|
|
45
|
-
can_start:
|
|
46
|
-
can_resume:
|
|
45
|
+
const o = y === "homework", { node_type: C, permissions: ir, user_node_id: u } = r, e = er || "", W = C === "PUZZLE_CARD", c = w === Cr.MATHFIT_TEST, H = d === "LOCKED", R = B(null), v = B(null), { menuVisible: L, onMenuClick: tr } = Y(R), { menuVisible: nr, onMenuClick: x } = Y(v), {
|
|
46
|
+
can_start: E,
|
|
47
|
+
can_resume: M,
|
|
47
48
|
can_review: f,
|
|
48
|
-
can_unassign:
|
|
49
|
-
can_reset:
|
|
50
|
-
can_assign_as_homework:
|
|
51
|
-
} =
|
|
49
|
+
can_unassign: cr,
|
|
50
|
+
can_reset: P,
|
|
51
|
+
can_assign_as_homework: or
|
|
52
|
+
} = ir, s = F === "STUDENT", T = _(() => {
|
|
52
53
|
if (f) {
|
|
53
|
-
if (typeof
|
|
54
|
+
if (typeof a != "function")
|
|
54
55
|
throw new Error("onReview must be a function");
|
|
55
56
|
if (!u)
|
|
56
57
|
throw new Error("user node id must be present to review the sheet");
|
|
57
|
-
|
|
58
|
+
a(r, e);
|
|
58
59
|
return;
|
|
59
60
|
}
|
|
60
|
-
}, [f,
|
|
61
|
-
if (
|
|
62
|
-
if (typeof
|
|
61
|
+
}, [f, a, u, r, e]), sr = _(() => {
|
|
62
|
+
if (c && t) {
|
|
63
|
+
if (typeof l != "function")
|
|
63
64
|
throw new Error("onCardClick must be a function for MathFit cards");
|
|
64
|
-
|
|
65
|
+
l({ entityId: t, type: A.MATHFIT });
|
|
65
66
|
return;
|
|
66
67
|
}
|
|
67
|
-
if (
|
|
68
|
-
if (typeof
|
|
68
|
+
if (E || M) {
|
|
69
|
+
if (typeof $ != "function")
|
|
69
70
|
throw new Error("onNodeAttempt must be a function");
|
|
70
|
-
|
|
71
|
+
$(r, e, n);
|
|
71
72
|
return;
|
|
72
73
|
}
|
|
73
|
-
if (!
|
|
74
|
-
|
|
74
|
+
if (!o) {
|
|
75
|
+
x();
|
|
75
76
|
return;
|
|
76
77
|
}
|
|
77
|
-
|
|
78
|
+
T();
|
|
78
79
|
}, [
|
|
80
|
+
M,
|
|
79
81
|
E,
|
|
80
|
-
|
|
81
|
-
l,
|
|
82
|
-
i,
|
|
83
|
-
c,
|
|
82
|
+
t,
|
|
84
83
|
n,
|
|
85
|
-
|
|
84
|
+
o,
|
|
85
|
+
c,
|
|
86
86
|
e,
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
87
|
+
r,
|
|
88
|
+
l,
|
|
89
|
+
$,
|
|
90
|
+
x,
|
|
91
|
+
T
|
|
92
|
+
]), g = _(() => {
|
|
93
|
+
if (c && t) {
|
|
94
|
+
if (typeof l != "function")
|
|
94
95
|
throw new Error("onCardClick must be a function for MathFit cards");
|
|
95
|
-
|
|
96
|
+
l({ entityId: t, type: A.MATHFIT });
|
|
96
97
|
return;
|
|
97
98
|
}
|
|
98
99
|
if (f) {
|
|
99
|
-
if (typeof
|
|
100
|
+
if (typeof a != "function")
|
|
100
101
|
throw new Error("onNodeReview must be a function");
|
|
101
102
|
if (!u)
|
|
102
103
|
throw new Error("user node id must be present to review the sheet");
|
|
103
|
-
|
|
104
|
+
a(r, e, n);
|
|
104
105
|
return;
|
|
105
106
|
}
|
|
106
|
-
if (typeof
|
|
107
|
+
if (typeof k != "function")
|
|
107
108
|
throw new Error("onNodeView must be a function");
|
|
108
|
-
|
|
109
|
+
k(r, e);
|
|
109
110
|
}, [
|
|
110
111
|
f,
|
|
111
|
-
|
|
112
|
-
i,
|
|
112
|
+
t,
|
|
113
113
|
n,
|
|
114
|
-
|
|
114
|
+
c,
|
|
115
115
|
e,
|
|
116
|
+
r,
|
|
117
|
+
l,
|
|
116
118
|
a,
|
|
117
|
-
|
|
118
|
-
_,
|
|
119
|
+
k,
|
|
119
120
|
u
|
|
120
|
-
]), h =
|
|
121
|
-
(
|
|
122
|
-
switch (
|
|
121
|
+
]), h = _(
|
|
122
|
+
(j) => {
|
|
123
|
+
switch (j) {
|
|
123
124
|
case "teacher-card-view":
|
|
124
|
-
|
|
125
|
+
g();
|
|
125
126
|
return;
|
|
126
127
|
case "student-card-view":
|
|
127
|
-
|
|
128
|
+
T();
|
|
128
129
|
return;
|
|
129
130
|
case "teacher-card-unassign":
|
|
130
|
-
p == null || p(
|
|
131
|
+
p == null || p(r, e, n);
|
|
131
132
|
return;
|
|
132
133
|
case "student-card-reattempt":
|
|
133
134
|
case "teacher-card-redo":
|
|
134
|
-
m == null || m(
|
|
135
|
+
m == null || m(r, e);
|
|
135
136
|
return;
|
|
136
137
|
case "teacher-card-assign-as-hw":
|
|
137
|
-
b == null || b(
|
|
138
|
+
b == null || b(r, e);
|
|
138
139
|
return;
|
|
139
140
|
default:
|
|
140
|
-
throw new Error(`No callback function for ${
|
|
141
|
+
throw new Error(`No callback function for ${j}`);
|
|
141
142
|
}
|
|
142
143
|
},
|
|
143
144
|
[
|
|
144
|
-
|
|
145
|
-
r,
|
|
145
|
+
n,
|
|
146
146
|
e,
|
|
147
|
+
r,
|
|
147
148
|
b,
|
|
148
149
|
m,
|
|
149
150
|
p,
|
|
150
|
-
|
|
151
|
-
|
|
151
|
+
T,
|
|
152
|
+
g
|
|
152
153
|
]
|
|
153
|
-
),
|
|
154
|
+
), ar = [
|
|
154
155
|
{
|
|
155
156
|
id: "teacher-card-view",
|
|
156
157
|
label: f ? "Review" : "View",
|
|
157
|
-
icon:
|
|
158
|
+
icon: K,
|
|
158
159
|
disabled: !1,
|
|
159
160
|
onClick: h
|
|
160
161
|
},
|
|
161
162
|
{
|
|
162
163
|
id: "teacher-card-unassign",
|
|
163
164
|
label: "Unassign",
|
|
164
|
-
icon:
|
|
165
|
-
disabled:
|
|
165
|
+
icon: kr,
|
|
166
|
+
disabled: o ? C === "MASTERY" : !cr,
|
|
166
167
|
onClick: h
|
|
167
168
|
},
|
|
168
169
|
{
|
|
169
170
|
id: "teacher-card-redo",
|
|
170
171
|
label: "Redo",
|
|
171
|
-
icon:
|
|
172
|
-
disabled: !
|
|
172
|
+
icon: Z,
|
|
173
|
+
disabled: !P,
|
|
173
174
|
onClick: h
|
|
174
175
|
},
|
|
175
176
|
{
|
|
176
177
|
id: "teacher-card-assign-as-hw",
|
|
177
178
|
label: "Assign as HW",
|
|
178
|
-
icon:
|
|
179
|
-
disabled: !
|
|
179
|
+
icon: dr,
|
|
180
|
+
disabled: !or,
|
|
180
181
|
onClick: h
|
|
181
182
|
}
|
|
182
|
-
],
|
|
183
|
+
], lr = [
|
|
183
184
|
{
|
|
184
185
|
id: "student-card-view",
|
|
185
186
|
label: "Review",
|
|
186
|
-
icon:
|
|
187
|
+
icon: K,
|
|
187
188
|
disabled: !f,
|
|
188
189
|
onClick: h
|
|
189
190
|
},
|
|
190
191
|
{
|
|
191
192
|
id: "student-card-reattempt",
|
|
192
193
|
label: "Reattempt",
|
|
193
|
-
icon:
|
|
194
|
-
disabled: !
|
|
194
|
+
icon: Z,
|
|
195
|
+
disabled: !P,
|
|
195
196
|
onClick: h
|
|
196
197
|
}
|
|
197
|
-
],
|
|
198
|
-
() =>
|
|
199
|
-
canResume:
|
|
200
|
-
canStart:
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
198
|
+
], X = hr(
|
|
199
|
+
() => Rr({
|
|
200
|
+
canResume: M,
|
|
201
|
+
canStart: E,
|
|
202
|
+
entityId: t,
|
|
203
|
+
entityType: w,
|
|
204
|
+
homeworkId: n,
|
|
205
|
+
isHomeWork: o,
|
|
206
|
+
isStudent: s,
|
|
207
|
+
milestoneId: e,
|
|
208
|
+
nodeType: C,
|
|
209
|
+
studentId: V,
|
|
210
|
+
totalQuestions: O,
|
|
207
211
|
userNodeId: u
|
|
208
212
|
}),
|
|
209
213
|
[
|
|
214
|
+
M,
|
|
210
215
|
E,
|
|
211
|
-
|
|
212
|
-
i,
|
|
213
|
-
c,
|
|
214
|
-
o,
|
|
215
|
-
r,
|
|
216
|
+
t,
|
|
216
217
|
w,
|
|
218
|
+
n,
|
|
219
|
+
o,
|
|
220
|
+
s,
|
|
221
|
+
e,
|
|
222
|
+
C,
|
|
223
|
+
V,
|
|
217
224
|
O,
|
|
218
225
|
u
|
|
219
226
|
]
|
|
220
|
-
),
|
|
221
|
-
return /* @__PURE__ */
|
|
222
|
-
/* @__PURE__ */
|
|
223
|
-
|
|
227
|
+
), ur = s && W && H || !s && c && d !== "COMPLETED" && d !== "EXPIRED" || c && H;
|
|
228
|
+
return /* @__PURE__ */ z(Er, { $position: "relative", $width: "fit-content", children: [
|
|
229
|
+
/* @__PURE__ */ i(
|
|
230
|
+
pr,
|
|
224
231
|
{
|
|
225
|
-
onClick:
|
|
232
|
+
onClick: s ? sr : g,
|
|
226
233
|
label: "homework-card",
|
|
227
|
-
analyticsLabel:
|
|
228
|
-
analyticsProps:
|
|
229
|
-
disabled:
|
|
230
|
-
children: /* @__PURE__ */
|
|
231
|
-
|
|
234
|
+
analyticsLabel: X.analyticsLabel,
|
|
235
|
+
analyticsProps: X.analyticsProps,
|
|
236
|
+
disabled: ur,
|
|
237
|
+
children: /* @__PURE__ */ i(
|
|
238
|
+
wr,
|
|
232
239
|
{
|
|
233
|
-
entityType:
|
|
234
|
-
header:
|
|
235
|
-
isInQueue:
|
|
236
|
-
isMilestone:
|
|
237
|
-
nodeData:
|
|
238
|
-
puzzleHWCardRef:
|
|
239
|
-
mathFitCardRef:
|
|
240
|
+
entityType: w,
|
|
241
|
+
header: G,
|
|
242
|
+
isInQueue: S,
|
|
243
|
+
isMilestone: y === "milestone",
|
|
244
|
+
nodeData: r,
|
|
245
|
+
puzzleHWCardRef: J,
|
|
246
|
+
mathFitCardRef: U,
|
|
240
247
|
score: Q,
|
|
241
|
-
imageUrl:
|
|
248
|
+
imageUrl: N,
|
|
242
249
|
state: d,
|
|
243
|
-
studentContainerRef:
|
|
244
|
-
subHeader:
|
|
245
|
-
userType:
|
|
250
|
+
studentContainerRef: v,
|
|
251
|
+
subHeader: rr,
|
|
252
|
+
userType: F
|
|
246
253
|
}
|
|
247
254
|
)
|
|
248
255
|
}
|
|
249
256
|
),
|
|
250
|
-
|
|
251
|
-
|
|
257
|
+
s && !o && !c && /* @__PURE__ */ i(
|
|
258
|
+
q,
|
|
252
259
|
{
|
|
253
260
|
$width: 200,
|
|
254
|
-
options:
|
|
255
|
-
triggerRef:
|
|
256
|
-
visible:
|
|
261
|
+
options: lr,
|
|
262
|
+
triggerRef: v,
|
|
263
|
+
visible: nr,
|
|
257
264
|
shouldOpenOnRight: !1
|
|
258
265
|
}
|
|
259
266
|
),
|
|
260
|
-
!
|
|
261
|
-
/* @__PURE__ */
|
|
262
|
-
|
|
267
|
+
!s && !W && !c && /* @__PURE__ */ z(Mr, { $position: "absolute", $width: "fit-content", $borderRadiusX: 2, children: [
|
|
268
|
+
/* @__PURE__ */ i(
|
|
269
|
+
I,
|
|
263
270
|
{
|
|
264
271
|
renderAs: "primary",
|
|
265
272
|
tooltipItem: "Review",
|
|
266
273
|
position: "bottom",
|
|
267
274
|
zIndex: 6,
|
|
268
275
|
parentWidth: "100%",
|
|
269
|
-
hidden:
|
|
270
|
-
children: /* @__PURE__ */
|
|
271
|
-
|
|
276
|
+
hidden: L || d !== "WAIT_FOR_REVIEW" && o,
|
|
277
|
+
children: /* @__PURE__ */ i(
|
|
278
|
+
Tr,
|
|
272
279
|
{
|
|
273
280
|
$alignItems: "center",
|
|
274
281
|
$justifyContent: "center",
|
|
275
|
-
ref:
|
|
276
|
-
onClick:
|
|
277
|
-
children: /* @__PURE__ */
|
|
282
|
+
ref: R,
|
|
283
|
+
onClick: tr,
|
|
284
|
+
children: /* @__PURE__ */ i(mr, { width: 16, height: 16 })
|
|
278
285
|
}
|
|
279
286
|
)
|
|
280
287
|
}
|
|
281
288
|
),
|
|
282
|
-
/* @__PURE__ */
|
|
283
|
-
|
|
289
|
+
/* @__PURE__ */ i(
|
|
290
|
+
q,
|
|
284
291
|
{
|
|
285
|
-
options:
|
|
286
|
-
triggerRef:
|
|
287
|
-
visible:
|
|
288
|
-
shouldOpenOnRight:
|
|
292
|
+
options: ar,
|
|
293
|
+
triggerRef: R,
|
|
294
|
+
visible: L,
|
|
295
|
+
shouldOpenOnRight: D,
|
|
289
296
|
$width: 144
|
|
290
297
|
}
|
|
291
298
|
)
|
|
292
299
|
] }),
|
|
293
|
-
|
|
300
|
+
S && /* @__PURE__ */ i(_r, { $background: "WHITE_5", children: /* @__PURE__ */ i($r, { $heightX: 1, $widthX: 6, children: /* @__PURE__ */ i(I, { renderAs: "primary", tooltipItem: "Not visible to student", position: "bottom", children: /* @__PURE__ */ i(br, { $heightX: 1, $widthX: 6 }) }) }) })
|
|
294
301
|
] });
|
|
295
|
-
},
|
|
302
|
+
}, Zr = fr(vr);
|
|
296
303
|
export {
|
|
297
|
-
|
|
304
|
+
Zr as default
|
|
298
305
|
};
|
|
299
306
|
//# sourceMappingURL=homework-card.js.map
|